(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app"],{

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js":
/*!************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js ***!
  \************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./store.js */ "./src/store.js");
/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./platform */ "./src/platform.js");
/* harmony import */ var vue_cool_lightbox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-cool-lightbox */ "./node_modules/vue-cool-lightbox/dist/vue-cool-lightbox.esm.js");
/* harmony import */ var vue_cool_lightbox_dist_vue_cool_lightbox_min_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-cool-lightbox/dist/vue-cool-lightbox.min.css */ "./node_modules/vue-cool-lightbox/dist/vue-cool-lightbox.min.css");
/* harmony import */ var vue_cool_lightbox_dist_vue_cool_lightbox_min_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_cool_lightbox_dist_vue_cool_lightbox_min_css__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ipc_ipcMain__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ipc/ipcMain */ "./src/ipc/ipcMain.vue");
/* harmony import */ var _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./wfc/client/wfc */ "./src/wfc/client/wfc.js");







/* harmony default export */ __webpack_exports__["default"] = ({
  name: "App",
  data() {
    return {
      url: "",
      sharedMiscState: _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].state.misc,
      sharedConversationState: _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].state.conversation
    };
  },
  methods: {
    visibilityChange(event, hidden) {
      _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].setPageVisibility(!hidden);
      console.log("page visibilityChange", hidden);
      if (!hidden && !Object(_platform__WEBPACK_IMPORTED_MODULE_1__["isElectron"])()) {
        _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].onForeground();
      }
    },
    onblur() {
      _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].setPageVisibility(false);
    },
    onfocus() {
      _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].setPageVisibility(true);
    }
  },
  created() {
    let root = document.documentElement;
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_1__["isElectron"])() || window.location.href.indexOf("voip") >= 0) {
      root.style.setProperty("--main-margin-left", "0px");
      root.style.setProperty("--main-margin-right", "0px");
      root.style.setProperty("--main-margin-top", "0px");
      root.style.setProperty("--main-margin-bottom", "0px");
      root.style.setProperty("--composite-message-page-width", "100vw");
      root.style.setProperty("--composite-message-page-height", "100vh");
    }
    if (this.sharedMiscState.isElectronWindowsOrLinux) {
      root.style.setProperty("--main-border-radius", "0px");
      root.style.setProperty("--home-menu-padding-top", "0px");
    }
    window.addEventListener("blur", this.onblur);
    window.addEventListener("focus", this.onfocus);
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_1__["isElectron"])()) {
      _platform__WEBPACK_IMPORTED_MODULE_1__["currentWindow"].minimizable = this.sharedMiscState.enableMinimize;
    }
  },
  mounted() {
    let href = window.location.href;
    if (href.indexOf("voip") >= 0 || href.indexOf("files") >= 0) {
      let app = document.getElementById("app");
      let el = document.getElementById("blur-container");
      el && app.removeChild(el);
      el = document.getElementById("styled_video_container");
      el && app.removeChild(el);
      el = document.getElementById("main-content-container");
      el.style.backgroundColor = "#292929";
    }
    this.$eventBus.$on("uploadFile", file => {
      if (!file) {
        return;
      }
      if (file.size > 100 * 1024 * 1024 && !_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].isSupportBigFilesUpload()) {
        this.$notify({
          title: "大文件提示",
          text: " 不支持大文件上传",
          type: "warn"
        });
      }
    });
  },
  beforeDestroy() {
    this.$eventBus.$off("uploadFile");
    window.removeEventListener("blur", this.onblur);
    window.removeEventListener("focus", this.onfocus);
  },
  components: {
    IpcMain: _ipc_ipcMain__WEBPACK_IMPORTED_MODULE_4__["default"],
    CoolLightBox: vue_cool_lightbox__WEBPACK_IMPORTED_MODULE_2__["default"]
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ipc/ipcMain.vue?vue&type=script&lang=js":
/*!********************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ipc/ipcMain.vue?vue&type=script&lang=js ***!
  \********************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _localStorageEmitter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./localStorageEmitter */ "./src/ipc/localStorageEmitter.js");
/* harmony import */ var _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wfc/model/conversation */ "./src/wfc/model/conversation.js");
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../store */ "./src/store.js");
/* harmony import */ var _wfc_av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../wfc/av/engine/avenginekitproxy */ "./src/wfc/av/engine/avenginekitproxy.js");
/* harmony import */ var _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../wfc/model/conversationType */ "./src/wfc/model/conversationType.js");
/* harmony import */ var _localStorageIpcEventType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./localStorageIpcEventType */ "./src/ipc/localStorageIpcEventType.js");
/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform */ "./src/platform.js");
/* harmony import */ var _wfc_av_engine_callEndReason__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../wfc/av/engine/callEndReason */ "./src/wfc/av/engine/callEndReason.js");
/* harmony import */ var _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../wfc/client/wfc */ "./src/wfc/client/wfc.js");









/* harmony default export */ __webpack_exports__["default"] = ({
  name: "ipcMain",
  render() {
    return null;
  },
  mounted() {
    _localStorageEmitter__WEBPACK_IMPORTED_MODULE_0__["default"].on(_localStorageIpcEventType__WEBPACK_IMPORTED_MODULE_5__["default"].startConversation, (ev, args) => {
      let conversation = Object.assign(new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_1__["default"](), args.conversation);
      _store__WEBPACK_IMPORTED_MODULE_2__["default"].setCurrentConversation(conversation);
    });
    _localStorageEmitter__WEBPACK_IMPORTED_MODULE_0__["default"].on(_localStorageIpcEventType__WEBPACK_IMPORTED_MODULE_5__["default"].startVoipCall, (ev, args) => {
      let conversation = Object.assign(new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_1__["default"](), args.conversation);
      let audioOnly = args.audioOnly;
      if (conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_4__["default"].Single) {
        _wfc_av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_3__["default"].startCall(conversation, audioOnly, [conversation.target], "");
      } else {
        this.startGroupVoip(conversation, audioOnly);
      }
    });
    _localStorageEmitter__WEBPACK_IMPORTED_MODULE_0__["default"].on(_localStorageIpcEventType__WEBPACK_IMPORTED_MODULE_5__["default"].openConversation, (events, args) => {
      let conversation = args.conversation;
      let win = _platform__WEBPACK_IMPORTED_MODULE_6__["remote"].getCurrentWindow();
      win.focus();
      _store__WEBPACK_IMPORTED_MODULE_2__["default"].setCurrentConversation(Object.assign(new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_1__["default"](), conversation));
    });
    _localStorageEmitter__WEBPACK_IMPORTED_MODULE_0__["default"].on(_localStorageIpcEventType__WEBPACK_IMPORTED_MODULE_5__["default"].joinConferenceFailed, (sender, args) => {
      let reason = args.reason;
      let session = args.session;
      if (reason === _wfc_av_engine_callEndReason__WEBPACK_IMPORTED_MODULE_7__["default"].RoomNotExist) {
        if (session.host === _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_8__["default"].getUserId()) {
          this.$alert({
            showIcon: false,
            content: "会议已结束，是否重新开启会议？",
            cancelCallback: () => {
              // do nothing
            },
            confirmCallback: () => {
              // 等待之前的音视频通话窗口完全关闭
              setTimeout(() => {
                _wfc_av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_3__["default"].startConference(session.callId, session.audioOnly, session.pin, session.host, session.title, session.desc, session.audience, session.advance);
              }, 1000);
            }
          });
        } else {
          this.$notify({
            title: "会议已结束",
            text: "请联系主持人开启会议",
            type: "warn"
          });
        }
      } else if (reason === _wfc_av_engine_callEndReason__WEBPACK_IMPORTED_MODULE_7__["default"].RoomParticipantsFull) {
        this.$notify({
          title: "加入会议失败",
          text: "参与者已满，请重试",
          type: "warn"
        });
      }
    });
  },
  methods: {
    startGroupVoip(conversation, isAudioOnly) {
      this.$startVoipCall({
        audioOnly: isAudioOnly,
        conversation: conversation
      });
    }
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/common/AlertView.vue?vue&type=script&lang=js":
/*!****************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/common/AlertView.vue?vue&type=script&lang=js ***!
  \****************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
  name: "AlertView",
  props: {
    showIcon: {
      type: Boolean,
      required: false,
      default: true
    },
    title: {
      type: String,
      required: false,
      default: ""
    },
    content: {
      type: String,
      required: false,
      default: ""
    },
    cancelText: {
      type: String,
      required: false,
      default: "取消"
    },
    confirmText: {
      type: String,
      required: false,
      default: "确定"
    },
    cancelCallback: {
      type: Function,
      required: false
    },
    confirmCallback: {
      type: Function,
      required: false
    }
  },
  methods: {
    cancel() {
      this.$modal.hide("alert-modal", {
        cancel: true
      });
    },
    confirm() {
      this.$modal.hide("alert-modal", {
        confirm: true
      });
    }
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=script&lang=js":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=script&lang=js ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/store.js */ "./src/store.js");
/* harmony import */ var _ForwardMessageView_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ForwardMessageView.vue */ "./src/ui/main/conversation/message/forward/ForwardMessageView.vue");
/* harmony import */ var _user_CheckableUserListView_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../user/CheckableUserListView.vue */ "./src/ui/main/user/CheckableUserListView.vue");
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../config */ "./src/config.js");






/* harmony default export */ __webpack_exports__["default"] = ({
  name: "ForwardMessageByCreateConversationView",
  props: {
    users: {
      type: Array,
      required: true
    },
    forwardType: {
      // 可参考ForwardType
      type: Number,
      required: false
    },
    messages: {
      type: Array,
      required: true
    }
  },
  data() {
    return {
      sharedPickState: _store_js__WEBPACK_IMPORTED_MODULE_2__["default"].state.pick,
      query: ""
    };
  },
  methods: {
    unpick(user) {
      _store_js__WEBPACK_IMPORTED_MODULE_2__["default"].pickOrUnpickUser(user, false);
    },
    backPickConversation() {
      this.sharedPickState.users.length = 0;
      this.$modal.hide("forward-by-create-conversation-modal", {
        backPickConversation: true,
        forwardType: this.forwardType,
        messages: this.messages
      });
    },
    cancel() {
      this.sharedPickState.users.length = 0;
      this.$modal.hide("forward-by-create-conversation-modal", {
        confirm: false
      });
    },
    confirm() {
      let pickedUsers = [...this.sharedPickState.users];
      this.sharedPickState.users.length = 0;
      this.$modal.hide("forward-by-create-conversation-modal", {
        confirm: true,
        users: pickedUsers,
        forwardType: this.forwardType,
        messages: this.messages,
        extraMessageText: this.$refs["forwardMessageView"].extraMessageText
      });
    }
  },
  computed: {
    filteredUsers() {
      let result;
      if (this.query && this.query.trim()) {
        result = _store_js__WEBPACK_IMPORTED_MODULE_2__["default"].filterContact(this.query);
      } else {
        result = this.users;
      }
      return result.filter(u => u.uid !== _config__WEBPACK_IMPORTED_MODULE_5__["default"].FILE_HELPER_ID);
    }
  },
  components: {
    CheckableUserListView: _user_CheckableUserListView_vue__WEBPACK_IMPORTED_MODULE_4__["default"],
    ForwardMessageView: _ForwardMessageView_vue__WEBPACK_IMPORTED_MODULE_3__["default"]
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=script&lang=js":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=script&lang=js ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/store.js */ "./src/store.js");
/* harmony import */ var _ForwardMessageView_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ForwardMessageView.vue */ "./src/ui/main/conversation/message/forward/ForwardMessageView.vue");


/* harmony default export */ __webpack_exports__["default"] = ({
  name: "ForwardMessageByPickConversationView",
  props: {
    forwardType: {
      // 可参考ForwardType
      type: Number,
      required: false
    },
    messages: {
      type: Array,
      required: true
    }
  },
  data() {
    return {
      sharedConversation: _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].state.conversation,
      sharedPickState: _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].state.pick,
      query: "",
      sharedSearchState: _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].state.search
    };
  },
  methods: {
    onConversationItemClick(conversation) {
      _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].pickOrUnpickConversation(conversation, true);
    },
    unpConversation(conversation) {
      _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].pickOrUnpickConversation(conversation, false);
    },
    showForwardByCreateConversationModal() {
      this.sharedPickState.conversations.length = 0;
      this.$modal.hide("forward-by-pick-conversation-modal", {
        toCreateConversation: true,
        forwardType: this.forwardType,
        messages: this.messages
      });
    },
    cancel() {
      this.sharedPickState.conversations.length = 0;
      this.$modal.hide("forward-by-pick-conversation-modal", {
        confirm: false
      });
    },
    confirm() {
      let pickedConversations = [...this.sharedPickState.conversations];
      this.sharedPickState.conversations.length = 0;
      this.$modal.hide("forward-by-pick-conversation-modal", {
        confirm: true,
        conversations: pickedConversations,
        forwardType: this.forwardType,
        messages: this.messages,
        extraMessageText: this.$refs["forwardMessageView"].extraMessageText
      });
    }
  },
  computed: {
    conversationInfos() {
      if (this.query && this.query.trim()) {
        return _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].filterConversation(this.query);
      } else {
        return this.sharedConversation.conversationInfoList;
      }
    }
  },
  components: {
    ForwardMessageView: _ForwardMessageView_vue__WEBPACK_IMPORTED_MODULE_1__["default"]
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=script&lang=js":
/*!****************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=script&lang=js ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../wfc/messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _ForwardType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ForwardType */ "./src/ui/main/conversation/message/forward/ForwardType.js");
/* harmony import */ var _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../wfc/model/conversationType */ "./src/wfc/model/conversationType.js");



/* harmony default export */ __webpack_exports__["default"] = ({
  name: "ForwardMessageView",
  props: {
    forwardType: {
      // 可参考ForwardType
      type: Number,
      required: false
    },
    messages: {
      type: Array,
      required: true
    }
  },
  data() {
    return {
      extraMessageText: ""
    };
  },
  methods: {},
  computed: {
    forwardMessageStr() {
      let str;
      let firstMsg = this.messages[0];
      switch (this.forwardType) {
        case _ForwardType__WEBPACK_IMPORTED_MODULE_1__["default"].NORMAL:
          str = !firstMsg._from ? "" : firstMsg._from._displayName + ":";
          if ([_wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_0__["default"].Image, _wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_0__["default"].Video].indexOf(firstMsg.messageContent.type) < 0) {
            str += firstMsg.messageContent.digest(this.quotedMessage);
          }
          break;
        case _ForwardType__WEBPACK_IMPORTED_MODULE_1__["default"].ONE_BY_ONE:
          str = "[" + this.$t("conversation.forward_one_by_one") + "]";
          if (firstMsg.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_2__["default"].Single) {
            str += this.$t("conversation.user_message_records", [firstMsg._from._displayName]);
          } else {
            str += this.$t("conversation.group_message_records");
          }
          break;
        case _ForwardType__WEBPACK_IMPORTED_MODULE_1__["default"].COMPOSITE:
          str = "[" + this.$t("conversation.forward_composite") + "]";
          if (firstMsg.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_2__["default"].Single) {
            str += this.$t("conversation.user_message_records", [firstMsg._from._displayName]);
          } else {
            str += this.$t("conversation.group_message_records");
          }
          break;
        default:
          break;
      }
      return str;
    }
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=script&lang=js":
/*!***************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=script&lang=js ***!
  \***************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../config */ "./src/config.js");
/* harmony import */ var _api_organizationServerApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../api/organizationServerApi */ "./src/api/organizationServerApi.js");
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/store.js */ "./src/store.js");



/* harmony default export */ __webpack_exports__["default"] = ({
  name: "CheckableOrganizationTreeView",
  props: {},
  components: {},
  data() {
    return {
      subOrganizations: [],
      employees: [],
      currentOrganizationPathList: [],
      defaultDepartmentPortraitUrl: _config__WEBPACK_IMPORTED_MODULE_0__["default"].DEFAULT_DEPARTMENT_PORTRAIT_URL,
      defaultEmployeePortraitUrl: _config__WEBPACK_IMPORTED_MODULE_0__["default"].DEFAULT_PORTRAIT_URL,
      activeTippy: null
    };
  },
  mounted() {
    // this.loadAndShowOrganization(this.sharedContactState.currentOrganization);
    _api_organizationServerApi__WEBPACK_IMPORTED_MODULE_1__["default"].getRootOrganization().then(orgs => {
      if (orgs.length > 0) {
        this.loadAndShowOrganization(orgs[0]);
      }
    });
  },
  methods: {
    loadAndShowOrganization(org) {
      this.loadAndShowOrganizationById(org.id);
    },
    loadAndShowOrganizationById(orgId) {
      _api_organizationServerApi__WEBPACK_IMPORTED_MODULE_1__["default"].getOrganizationEx(orgId).then(res => {
        this.subOrganizations = res.subOrganizations;
        this.employees = res.employees;
      });
      _api_organizationServerApi__WEBPACK_IMPORTED_MODULE_1__["default"].getOrganizationPath(orgId).then(orgs => {
        this.currentOrganizationPathList = orgs.reverse();
        this.$emit("organization-path-update", this.currentOrganizationPathList);
      });
    },
    onShowSubOrganizationButtonClick(org) {
      if (this.isOrganizationChecked(org)) {
        return;
      }
      this.loadAndShowOrganization(org);
    },
    isOrganizationChecked(org) {
      return _store_js__WEBPACK_IMPORTED_MODULE_2__["default"].isOrganizationPicked(org);
    },
    clickOrganizationItem(org) {
      _store_js__WEBPACK_IMPORTED_MODULE_2__["default"].pickOrUnpickOrganization(org);
    },
    isEmployeeChecked(employee) {
      return _store_js__WEBPACK_IMPORTED_MODULE_2__["default"].isUserPicked(_api_organizationServerApi__WEBPACK_IMPORTED_MODULE_1__["default"].employeeToUserInfo(employee));
    },
    clickEmployeeItem(employee) {
      _store_js__WEBPACK_IMPORTED_MODULE_2__["default"].pickOrUnpickUser(_api_organizationServerApi__WEBPACK_IMPORTED_MODULE_1__["default"].employeeToUserInfo(employee));
    }
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/PickUserView.vue?vue&type=script&lang=js":
/*!**********************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/pick/PickUserView.vue?vue&type=script&lang=js ***!
  \**********************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/store */ "./src/store.js");
/* harmony import */ var _user_CheckableUserListView_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../user/CheckableUserListView.vue */ "./src/ui/main/user/CheckableUserListView.vue");
/* harmony import */ var _CheckableOrganizationTreeView_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CheckableOrganizationTreeView.vue */ "./src/ui/main/pick/CheckableOrganizationTreeView.vue");
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/config */ "./src/config.js");
/* harmony import */ var _api_organizationServerApi__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/api/organizationServerApi */ "./src/api/organizationServerApi.js");
/* harmony import */ var _wfc_model_userInfo__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/wfc/model/userInfo */ "./src/wfc/model/userInfo.js");










/* harmony default export */ __webpack_exports__["default"] = ({
  name: "PickUserView",
  props: {
    users: {
      type: Array,
      required: true
    },
    initialCheckedUsers: {
      type: Array,
      required: false,
      default: null
    },
    uncheckableUsers: {
      type: Array,
      required: false,
      default: null
    },
    title: {
      type: String,
      required: false,
      default: ""
    },
    confirmTitle: {
      type: String,
      required: false,
      default: "confirm"
    },
    showCategoryLabel: {
      type: Boolean,
      required: false,
      default: true
    },
    showOrganization: {
      type: Boolean,
      required: false,
      default: false
    }
  },
  data() {
    return {
      sharedPickState: _store__WEBPACK_IMPORTED_MODULE_4__["default"].state.pick,
      filterQuery: "",
      pickSource: null,
      organizationPathList: [],
      defaultOrganizationPortraitUrl: _config__WEBPACK_IMPORTED_MODULE_7__["default"].DEFAULT_DEPARTMENT_PORTRAIT_URL
    };
  },
  methods: {
    onPickUser(user) {
      if (this.isUserUncheckable(user)) {
        return;
      }
      _store__WEBPACK_IMPORTED_MODULE_4__["default"].pickOrUnpickUser(user);
    },
    onPickOrganization(organization) {
      _store__WEBPACK_IMPORTED_MODULE_4__["default"].pickOrUnpickOrganization(organization);
    },
    isUserUncheckable(user) {
      return this.uncheckableUsers && this.uncheckableUsers.findIndex(u => u.uid === user.uid) >= 0;
    },
    onOrganizationPathUpdate(orgPathList) {
      this.organizationPathList = orgPathList;
    },
    loadAndShowOrganization(org) {
      this.$refs.checkableOrganizationTreeView.loadAndShowOrganization(org);
    },
    cancel() {
      this.sharedPickState.users.length = 0;
      this.sharedPickState.organizations.length = 0;
      this.$modal.hide("pick-user-modal", {
        confirm: false
      });
    },
    /**
     * 不包含默认选中的用户
     */
    confirm() {
      let pickedUsers = this.sharedPickState.users;
      if (this.initialCheckedUsers) {
        pickedUsers = this.sharedPickState.users.filter(u => this.initialCheckedUsers.findIndex(iu => iu.uid === u.uid) === -1);
      } else {
        pickedUsers = this.sharedPickState.users;
      }
      let users = [...pickedUsers];
      this.sharedPickState.users.length = 0;
      if (this.sharedPickState.organizations.length) {
        let orgIds = this.sharedPickState.organizations.map(o => o.id);
        _api_organizationServerApi__WEBPACK_IMPORTED_MODULE_8__["default"].getOrganizationEmployees(orgIds).then(employeeList => {
          this.sharedPickState.organizations.length = 0;
          for (const employee of employeeList) {
            let userInfo = new _wfc_model_userInfo__WEBPACK_IMPORTED_MODULE_9__["default"]();
            userInfo.uid = employee.employeeId;
            userInfo.displayName = employee.name;
            userInfo.updateDt = employee.updateDt;
            users.push(userInfo);
          }
          this.$modal.hide("pick-user-modal", {
            confirm: true,
            users: users
          });
        });
      } else {
        this.$modal.hide("pick-user-modal", {
          confirm: true,
          users: users
        });
      }
    }
  },
  computed: {
    checkedUsers() {
      let users = this.sharedPickState.users;
      if (!this.initialCheckedUsers || this.initialCheckedUsers.length === 0) {
        return users;
      }
      return users.filter(u => {
        return this.initialCheckedUsers.findIndex(iu => iu.uid === u.uid) === -1;
      });
    },
    filterUsers() {
      if (this.filterQuery) {
        return _store__WEBPACK_IMPORTED_MODULE_4__["default"].filterUsers(this.users, this.filterQuery);
      } else {
        return this.users;
      }
    }
  },
  components: {
    CheckableOrganizationTreeView: _CheckableOrganizationTreeView_vue__WEBPACK_IMPORTED_MODULE_6__["default"],
    CheckableUserListView: _user_CheckableUserListView_vue__WEBPACK_IMPORTED_MODULE_5__["default"]
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserItemView.vue?vue&type=script&lang=js":
/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/user/CheckableUserItemView.vue?vue&type=script&lang=js ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/store.js */ "./src/store.js");




/* harmony default export */ __webpack_exports__["default"] = ({
  name: "CheckableUserItemView",
  props: {
    source: {
      type: Object,
      required: true
    },
    initialCheckedUsers: {
      type: Array,
      required: false,
      default: null
    },
    uncheckableUsers: {
      type: Array,
      required: false,
      default: null
    },
    showCategoryLabel: {
      type: Boolean,
      required: false,
      default: true
    },
    enableCategoryLabelSticky: {
      type: Boolean,
      required: false,
      default: false
    },
    paddingLeft: {
      type: String,
      required: false,
      default: "5px"
    }
  },
  data() {
    return {
      sharedPickState: _store_js__WEBPACK_IMPORTED_MODULE_3__["default"].state.pick,
      sharedContactState: _store_js__WEBPACK_IMPORTED_MODULE_3__["default"].state.contact
    };
  },
  methods: {
    clickUserItem(user) {
      if (this.isUserUncheckable(user)) {
        return;
      }
      _store_js__WEBPACK_IMPORTED_MODULE_3__["default"].pickOrUnpickUser(user);
    },
    isUserInitialChecked(user) {
      return this.initialCheckedUsers && this.initialCheckedUsers.findIndex(u => u.uid === user.uid) >= 0;
    },
    isUserUncheckable(user) {
      return this.uncheckableUsers && this.uncheckableUsers.findIndex(u => u.uid === user.uid) >= 0;
    },
    isUserChecked(user) {
      return _store_js__WEBPACK_IMPORTED_MODULE_3__["default"].isUserPicked(user);
    }
  },
  mounted() {
    if (this.initialCheckedUsers) {
      // why?
      // 1. checkbox :checked 和 v-model冲突，以v-model为准
      // 2. v-model 的实现里，应当是采用引用比较，而不是值比较
      let oriCUs = this.users.filter(u => this.initialCheckedUsers.findIndex(iu => iu.uid === u.uid) > -1);
      oriCUs.forEach(u => _store_js__WEBPACK_IMPORTED_MODULE_3__["default"].pickOrUnpickUser(u));
    }
  },
  computed: {
    paddingStyle() {
      return {
        paddingLeft: this.paddingLeft
      };
    }
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserListView.vue?vue&type=script&lang=js":
/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/user/CheckableUserListView.vue?vue&type=script&lang=js ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/store.js */ "./src/store.js");
/* harmony import */ var _CheckableUserItemView_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CheckableUserItemView.vue */ "./src/ui/main/user/CheckableUserItemView.vue");






/* harmony default export */ __webpack_exports__["default"] = ({
  name: "CheckableUserListView",
  props: {
    enablePick: {
      type: Boolean,
      default: false
    },
    users: {
      type: Array,
      required: true
    },
    initialCheckedUsers: {
      type: Array,
      required: false,
      default: null
    },
    uncheckableUsers: {
      type: Array,
      required: false,
      default: null
    },
    showCategoryLabel: {
      type: Boolean,
      required: false,
      default: true
    },
    enableCategoryLabelSticky: {
      type: Boolean,
      required: false,
      default: false
    },
    paddingLeft: {
      type: String,
      required: false,
      default: "5px"
    }
  },
  data() {
    return {
      sharedPickState: _store_js__WEBPACK_IMPORTED_MODULE_4__["default"].state.pick,
      sharedContactState: _store_js__WEBPACK_IMPORTED_MODULE_4__["default"].state.contact
    };
  },
  methods: {
    clickUserItem(user) {
      if (this.isUserUncheckable(user)) {
        return;
      }
      _store_js__WEBPACK_IMPORTED_MODULE_4__["default"].pickOrUnpickUser(user);
    },
    isUserInitialChecked(user) {
      return this.initialCheckedUsers && this.initialCheckedUsers.findIndex(u => u.uid === user.uid) >= 0;
    },
    isUserUncheckable(user) {
      return this.uncheckableUsers && this.uncheckableUsers.findIndex(u => u.uid === user.uid) >= 0;
    },
    isUserChecked(user) {
      return _store_js__WEBPACK_IMPORTED_MODULE_4__["default"].isUserPicked(user);
    }
  },
  mounted() {
    if (this.initialCheckedUsers) {
      // why?
      // 1. checkbox :checked 和 v-model冲突，以v-model为准
      // 2. v-model 的实现里，应当是采用引用比较，而不是值比较
      let oriCUs = this.users.filter(u => this.initialCheckedUsers.findIndex(iu => iu.uid === u.uid) > -1);
      oriCUs.forEach(u => _store_js__WEBPACK_IMPORTED_MODULE_4__["default"].pickOrUnpickUser(u));
    }
  },
  computed: {
    CheckableUserItemView() {
      return _CheckableUserItemView_vue__WEBPACK_IMPORTED_MODULE_5__["default"];
    },
    virtualListGroupedUsers() {
      let groupedUsers = [];
      let currentCategory = {};
      let lastCategory = null;
      let index = 0;
      this.users.forEach(user => {
        index++;
        if (this.showCategoryLabel && (!lastCategory || lastCategory !== user._category)) {
          lastCategory = user._category;
          currentCategory = {
            type: "category",
            category: user._category,
            uid: user._category + index
          };
          groupedUsers.push(currentCategory);
          groupedUsers.push(user);
        } else {
          groupedUsers.push(user);
        }
      });
      return groupedUsers;
    },
    groupedUsers() {
      let groupedUsers = [];
      if (!this.showCategoryLabel) {
        groupedUsers.push({
          category: "",
          users: this.users
        });
        return groupedUsers;
      }
      let current = {};
      let lastCategory = null;
      this.users.forEach(user => {
        if (!lastCategory || lastCategory !== user._category) {
          lastCategory = user._category;
          current = {
            category: user._category,
            users: [user]
          };
          groupedUsers.push(current);
        } else {
          current.users.push(user);
        }
      });
      return groupedUsers;
    },
    paddingStyle() {
      return {
        paddingLeft: this.paddingLeft
      };
    }
  }
});

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=template&id=7ba5bd90":
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=template&id=7ba5bd90 ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    attrs: {
      id: "app"
    }
  }, [_c("CoolLightBox", {
    attrs: {
      items: _vm.sharedConversationState.previewMediaItems,
      index: _vm.sharedConversationState.previewMediaIndex,
      slideshow: false
    },
    on: {
      close: function ($event) {
        _vm.sharedConversationState.previewMediaIndex = null;
      }
    }
  }), _c("notifications"), _vm.sharedMiscState.isMainWindow ? _c("IpcMain") : _vm._e(), _c("router-view")], 1);
};
var staticRenderFns = [];
render._withStripped = true;


/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/common/AlertView.vue?vue&type=template&id=28d02aa2&scoped=true":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/common/AlertView.vue?vue&type=template&id=28d02aa2&scoped=true ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("section", {
    staticClass: "alert-content-container"
  }, [_vm.showIcon ? _c("div", {
    staticClass: "portrait-container"
  }, [_c("img", {
    attrs: {
      src: __webpack_require__(/*! @/assets/images/icon.png */ "./src/assets/images/icon.png"),
      alt: ""
    }
  })]) : _vm._e(), _vm.title ? _c("h2", {
    staticClass: "title"
  }, [_vm._v(_vm._s(this.title))]) : _vm._e(), _vm.content ? _c("p", {
    staticClass: "content"
  }, [_vm._v(_vm._s(this.content))]) : _vm._e(), _c("div", {
    staticClass: "action-container"
  }, [_c("button", {
    staticClass: "confirm",
    on: {
      click: _vm.confirm
    }
  }, [_vm._v(_vm._s(this.confirmText))]), _c("button", {
    staticClass: "cancel",
    on: {
      click: _vm.cancel
    }
  }, [_vm._v(_vm._s(this.cancelText))])])]);
};
var staticRenderFns = [];
render._withStripped = true;


/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=template&id=9db52e12&scoped=true":
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=template&id=9db52e12&scoped=true ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "pick-user-container"
  }, [_c("section", {
    staticClass: "user-list-panel"
  }, [_c("div", {
    staticClass: "input-container"
  }, [_c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.query,
      expression: "query"
    }],
    attrs: {
      type: "text",
      placeholder: _vm.$t("common.search")
    },
    domProps: {
      value: _vm.query
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.query = $event.target.value;
      }
    }
  })]), _c("div", {
    staticClass: "user-list-container"
  }, [_c("div", {
    staticClass: "back",
    on: {
      click: _vm.backPickConversation
    }
  }, [_c("p", [_vm._v(_vm._s(_vm.$t("common.back")))])]), _c("CheckableUserListView", {
    staticClass: "user-list",
    attrs: {
      "enable-pick": true,
      users: _vm.filteredUsers,
      "padding-left": "20px",
      "enable-category-label-sticky": true
    }
  })], 1)]), _c("section", {
    staticClass: "checked-user-list-container"
  }, [_c("header", [_c("h2", [_vm._v(_vm._s(_vm.$t("conversation.forward_title")))]), _vm.sharedPickState.users.length === 0 ? _c("span", [_vm._v(_vm._s(_vm.$t("conversation.picked_contact")))]) : _c("span", [_vm._v(_vm._s(_vm.$t("conversation.picked_contact") + this.sharedPickState.users.length))])]), _c("div", {
    staticClass: "content"
  }, _vm._l(_vm.sharedPickState.users, function (user, index) {
    return _c("div", {
      key: index,
      staticClass: "picked-user-container"
    }, [_c("div", {
      staticClass: "picked-user"
    }, [_c("img", {
      staticClass: "avatar",
      attrs: {
        src: user.portrait,
        alt: ""
      }
    }), _c("button", {
      staticClass: "unpick-button",
      on: {
        click: function ($event) {
          return _vm.unpick(user);
        }
      }
    }, [_vm._v("x")])]), _c("span", {
      staticClass: "name single-line"
    }, [_vm._v(_vm._s(user.displayName))])]);
  }), 0), _vm.sharedPickState.users.length > 0 ? _c("ForwardMessageView", {
    ref: "forwardMessageView",
    attrs: {
      "forward-type": _vm.forwardType,
      messages: _vm.messages
    }
  }) : _vm._e(), _c("footer", [_c("button", {
    staticClass: "cancel",
    on: {
      click: _vm.cancel
    }
  }, [_vm._v(_vm._s(_vm.$t("common.cancel")))]), _c("button", {
    staticClass: "confirm",
    on: {
      click: _vm.confirm
    }
  }, [_vm._v(_vm._s(_vm.$t("common.send")))])])], 1)]);
};
var staticRenderFns = [];
render._withStripped = true;


/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=template&id=3a34665c&scoped=true":
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=template&id=3a34665c&scoped=true ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "pick-conversation-container"
  }, [_c("section", {
    staticClass: "conversation-list-panel"
  }, [_c("div", {
    staticClass: "input-container"
  }, [_c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.query,
      expression: "query"
    }],
    attrs: {
      type: "text",
      placeholder: _vm.$t("common.search")
    },
    domProps: {
      value: _vm.query
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.query = $event.target.value;
      }
    }
  })]), _c("section", {
    staticClass: "conversation-list-container"
  }, [_c("div", {
    staticClass: "create-group",
    on: {
      click: _vm.showForwardByCreateConversationModal
    }
  }, [_c("p", [_vm._v(_vm._s(_vm.$t("conversation.create_group")))])]), _c("p", [_vm._v(_vm._s(_vm.$t("conversation.recent_conversation")))]), _vm.conversationInfos.length ? _c("ul", {
    staticClass: "conversation-list"
  }, _vm._l(_vm.conversationInfos, function (conversationInfo, index) {
    return _c("li", {
      key: index
    }, [_c("div", {
      staticClass: "conversation-item",
      on: {
        click: function ($event) {
          $event.stopPropagation();
          return _vm.onConversationItemClick(conversationInfo.conversation);
        }
      }
    }, [_c("input", {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: _vm.sharedPickState.conversations,
        expression: "sharedPickState.conversations"
      }],
      staticClass: "checkbox",
      attrs: {
        type: "checkbox",
        placeholder: ""
      },
      domProps: {
        value: conversationInfo.conversation,
        checked: Array.isArray(_vm.sharedPickState.conversations) ? _vm._i(_vm.sharedPickState.conversations, conversationInfo.conversation) > -1 : _vm.sharedPickState.conversations
      },
      on: {
        change: function ($event) {
          var $$a = _vm.sharedPickState.conversations,
            $$el = $event.target,
            $$c = $$el.checked ? true : false;
          if (Array.isArray($$a)) {
            var $$v = conversationInfo.conversation,
              $$i = _vm._i($$a, $$v);
            if ($$el.checked) {
              $$i < 0 && _vm.$set(_vm.sharedPickState, "conversations", $$a.concat([$$v]));
            } else {
              $$i > -1 && _vm.$set(_vm.sharedPickState, "conversations", $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
            }
          } else {
            _vm.$set(_vm.sharedPickState, "conversations", $$c);
          }
        }
      }
    }), _c("div", {
      staticClass: "header"
    }, [_c("img", {
      staticClass: "avatar",
      attrs: {
        src: conversationInfo.conversation._target.portrait,
        alt: ""
      }
    })]), _c("p", {
      staticClass: "title single-line"
    }, [_vm._v(_vm._s(conversationInfo.conversation._target._displayName))])])]);
  }), 0) : _vm._e()])]), _c("section", {
    staticClass: "checked-conversation-list-container"
  }, [_c("header", [_c("h2", [_vm._v(_vm._s(_vm.$t("conversation.forward_title")))]), _vm.sharedPickState.conversations.length === 0 ? _c("span", [_vm._v(_vm._s(_vm.$t("conversation.not_select_conversation")))]) : _c("span", [_vm._v(_vm._s(_vm.$t("conversation.select_conversation_desc", [this.sharedPickState.conversations.length])))])]), _c("div", {
    staticClass: "content"
  }, _vm._l(_vm.sharedPickState.conversations, function (conversation, index) {
    return _c("div", {
      key: index,
      staticClass: "picked-user-container"
    }, [_c("div", {
      staticClass: "picked-user"
    }, [_c("img", {
      staticClass: "avatar",
      attrs: {
        src: conversation._target.portrait,
        alt: ""
      }
    }), _c("button", {
      staticClass: "unpick-button",
      on: {
        click: function ($event) {
          return _vm.unpConversation(conversation);
        }
      }
    }, [_vm._v("X")])]), _c("span", {
      staticClass: "name single-line"
    }, [_vm._v(_vm._s(conversation._target._displayName))])]);
  }), 0), _vm.sharedPickState.conversations.length > 0 ? _c("ForwardMessageView", {
    ref: "forwardMessageView",
    attrs: {
      "forward-type": _vm.forwardType,
      messages: _vm.messages
    }
  }) : _vm._e(), _c("footer", [_c("button", {
    staticClass: "cancel",
    on: {
      click: _vm.cancel
    }
  }, [_vm._v(_vm._s(_vm.$t("common.cancel")))]), _c("button", {
    staticClass: "confirm",
    on: {
      click: _vm.confirm
    }
  }, [_vm._v(_vm._s(_vm.$t("common.send")))])])], 1)]);
};
var staticRenderFns = [];
render._withStripped = true;


/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=template&id=8df1e6fe&scoped=true":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=template&id=8df1e6fe&scoped=true ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("section", {
    staticClass: "forward-message-container"
  }, [_c("div", {
    staticClass: "forward-message"
  }, [_vm.forwardType === 0 ? _c("div", [[3, 6].indexOf(_vm.messages[0].messageContent.type) >= 0 ? _c("img", {
    attrs: {
      src: "data:video/jpeg;base64," + _vm.messages[0].messageContent.thumbnail,
      alt: ""
    }
  }) : _c("p", [_vm._v(" " + _vm._s(this.forwardMessageStr) + " ")])]) : _c("div", [_c("p", [_vm._v(" " + _vm._s(this.forwardMessageStr) + " ")])])]), _c("label", [_c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.extraMessageText,
      expression: "extraMessageText"
    }],
    attrs: {
      type: "text",
      placeholder: _vm.$t("conversation.forward_extra")
    },
    domProps: {
      value: _vm.extraMessageText
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.extraMessageText = $event.target.value;
      }
    }
  })])]);
};
var staticRenderFns = [];
render._withStripped = true;


/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=template&id=ab1b3144&scoped=true":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=template&id=ab1b3144&scoped=true ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("section", {
    staticClass: "organization-tree-container"
  }, [_c("div", {
    staticClass: "member-list-container"
  }, [_c("ul", [_vm._l(_vm.subOrganizations, function (org, index) {
    return _c("li", {
      key: org.id
    }, [_c("div", {
      staticClass: "organization-item",
      on: {
        click: function ($event) {
          $event.stopPropagation();
          return _vm.clickOrganizationItem(org);
        }
      }
    }, [_c("input", {
      staticStyle: {
        "margin-right": "10px"
      },
      attrs: {
        type: "checkbox"
      },
      domProps: {
        value: org,
        checked: _vm.isOrganizationChecked(org)
      }
    }), _c("img", {
      attrs: {
        src: org.portrait ? org.portrait : _vm.defaultDepartmentPortraitUrl
      }
    }), _c("p", {
      staticClass: "name"
    }, [_vm._v(_vm._s(org.name))]), _c("p", {
      staticClass: "button",
      class: {
        disabled: _vm.isOrganizationChecked(org)
      },
      on: {
        click: function ($event) {
          $event.stopPropagation();
          return _vm.onShowSubOrganizationButtonClick(org);
        }
      }
    }, [_vm._v(" 下级 ")])])]);
  }), _vm._l(_vm.employees, function (employee, index) {
    return _c("li", {
      key: employee.employeeId
    }, [_c("div", {
      staticClass: "organization-item",
      on: {
        click: function ($event) {
          $event.stopPropagation();
          return _vm.clickEmployeeItem(employee);
        }
      }
    }, [_c("input", {
      staticStyle: {
        "margin-right": "10px"
      },
      attrs: {
        type: "checkbox"
      },
      domProps: {
        value: employee,
        checked: _vm.isEmployeeChecked(employee)
      }
    }), _c("img", {
      attrs: {
        src: employee.portrait ? employee.portrait : _vm.defaultEmployeePortraitUrl
      }
    }), _c("p", {
      staticClass: "name"
    }, [_vm._v(_vm._s(employee.name))])])]);
  })], 2)])]);
};
var staticRenderFns = [];
render._withStripped = true;


/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/PickUserView.vue?vue&type=template&id=8f3499ca&scoped=true":
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/pick/PickUserView.vue?vue&type=template&id=8f3499ca&scoped=true ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "pick-contact-container"
  }, [_c("section", {
    staticClass: "contact-list-container"
  }, [_c("div", {
    staticClass: "input-container"
  }, [_c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.filterQuery,
      expression: "filterQuery"
    }],
    attrs: {
      type: "text",
      placeholder: _vm.$t("common.search")
    },
    domProps: {
      value: _vm.filterQuery
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.filterQuery = $event.target.value;
      }
    }
  }), _c("i", {
    staticClass: "icon-ion-ios-search"
  })]), _vm.showOrganization ? _c("div", {
    staticClass: "pick-source-container"
  }, [_vm.pickSource ? _c("div", {
    staticClass: "pick-source-nav"
  }, [_c("ul", [_c("li", {
    on: {
      click: function ($event) {
        _vm.pickSource = null;
      }
    }
  }, [_c("a", {
    attrs: {
      href: "#"
    }
  }, [_vm._v("联系人")])]), _vm.pickSource === "friend" ? _c("li", [_c("a", {
    attrs: {
      href: "#"
    }
  }, [_vm._v("好友")])]) : _vm._e(), _vm._l(_vm.organizationPathList, function (org) {
    return _c("li", {
      key: org.id
    }, [_c("a", {
      attrs: {
        href: "#"
      },
      on: {
        click: function ($event) {
          return _vm.loadAndShowOrganization(org);
        }
      }
    }, [_vm._v(_vm._s(org.name))])]);
  })], 2)]) : _vm._e(), _c("div", {
    staticClass: "pick-source-list"
  }, [!_vm.pickSource ? _c("ul", [_c("li", {
    on: {
      click: function ($event) {
        _vm.pickSource = "friend";
        _vm.organizationPathList = [];
      }
    }
  }, [_vm._m(0)]), _c("li", {
    on: {
      click: function ($event) {
        _vm.pickSource = "organization";
      }
    }
  }, [_vm._m(1)])]) : _vm._e()])]) : _vm._e(), !_vm.showOrganization || _vm.pickSource === "friend" ? _c("div", {
    staticClass: "friend-list-container"
  }, [_c("CheckableUserListView", {
    attrs: {
      "enable-pick": true,
      users: _vm.filterUsers,
      "initial-checked-users": _vm.initialCheckedUsers,
      "uncheckable-users": _vm.uncheckableUsers,
      "show-category-label": _vm.showCategoryLabel && !_vm.filterQuery,
      "padding-left": "20px",
      "enable-category-label-sticky": ""
    }
  })], 1) : _vm._e(), _vm.pickSource === "organization" ? _c("CheckableOrganizationTreeView", {
    ref: "checkableOrganizationTreeView",
    on: {
      "organization-path-update": _vm.onOrganizationPathUpdate
    }
  }) : _vm._e()], 1), _c("section", {
    staticClass: "checked-contact-list-container"
  }, [_c("header", [_c("h2", [_vm._v(_vm._s(_vm.$t("pick.pick_contact")))]), _c("div", {
    staticStyle: {
      display: "flex",
      "justify-content": "flex-end"
    }
  }, [_vm.checkedUsers.length === 0 ? _c("span", [_vm._v(_vm._s(_vm.$t("pick.picked_contact")))]) : _c("span", [_vm._v(_vm._s(_vm.$t("pick.picked_contact") + ":" + this.checkedUsers.length))]), _vm.sharedPickState.organizations.length ? _c("span", [_vm._v(_vm._s("组织: " + _vm.sharedPickState.organizations.length))]) : _vm._e()])]), _c("div", {
    staticClass: "content"
  }, [_vm._l(_vm.checkedUsers, function (user, index) {
    return _c("div", {
      key: user.uid,
      staticClass: "picked-user-container"
    }, [_c("div", {
      staticClass: "picked-user"
    }, [_c("img", {
      staticClass: "avatar",
      attrs: {
        src: user.portrait,
        alt: ""
      }
    }), _c("button", {
      staticClass: "unpick-button",
      on: {
        click: function ($event) {
          return _vm.onPickUser(user);
        }
      }
    }, [_vm._v("X")])]), _c("span", {
      staticClass: "name single-line"
    }, [_vm._v(_vm._s(user.displayName))])]);
  }), _vm._l(_vm.sharedPickState.organizations, function (org, index) {
    return _c("div", {
      key: org.id,
      staticClass: "picked-user-container"
    }, [_c("div", {
      staticClass: "picked-user"
    }, [_c("img", {
      staticClass: "avatar",
      attrs: {
        src: org.portrait ? org.portrait : _vm.defaultOrganizationPortraitUrl,
        alt: ""
      }
    }), _c("button", {
      staticClass: "unpick-button",
      on: {
        click: function ($event) {
          return _vm.onPickOrganization(org);
        }
      }
    }, [_vm._v("X")])]), _c("span", {
      staticClass: "name single-line"
    }, [_vm._v(_vm._s(org.name))])]);
  })], 2), _c("footer", [_c("button", {
    staticClass: "cancel",
    on: {
      click: _vm.cancel
    }
  }, [_vm._v(_vm._s(_vm.$t("common.cancel")))]), _c("button", {
    staticClass: "confirm",
    class: {
      disable: _vm.checkedUsers.length === 0 && _vm.sharedPickState.organizations.length === 0
    },
    on: {
      click: _vm.confirm
    }
  }, [_vm._v(" " + _vm._s(_vm.confirmTitle) + " ")])])])]);
};
var staticRenderFns = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    attrs: {
      href: "#"
    }
  }, [_c("i", {
    staticClass: "icon-ion-android-contacts"
  }), _vm._v(" 选择好友 ")]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    attrs: {
      href: "#"
    }
  }, [_c("i", {
    staticClass: "icon-ion-android-document"
  }), _vm._v(" 选择组织联系人 ")]);
}];
render._withStripped = true;


/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserItemView.vue?vue&type=template&id=eb4640d6&scoped=true":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/user/CheckableUserItemView.vue?vue&type=template&id=eb4640d6&scoped=true ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    ref: "contactItem",
    staticClass: "contact-item"
  }, [_vm.showCategoryLabel && _vm.source.type === "category" ? _c("div", {
    staticClass: "label",
    style: _vm.paddingStyle
  }, [_c("p", [_vm._v(_vm._s(_vm.source.category.toUpperCase()))])]) : _c("div", {
    staticClass: "content",
    class: {
      disabled: _vm.isUserUncheckable(_vm.source)
    },
    style: _vm.paddingStyle,
    attrs: {
      name: "user-" + _vm.source.uid
    },
    on: {
      click: function ($event) {
        $event.stopPropagation();
        return _vm.clickUserItem(_vm.source);
      }
    }
  }, [_c("input", {
    staticClass: "checkbox",
    attrs: {
      disabled: _vm.isUserUncheckable(_vm.source),
      type: "checkbox"
    },
    domProps: {
      value: _vm.source,
      checked: _vm.isUserChecked(_vm.source)
    }
  }), _c("img", {
    staticClass: "avatar",
    attrs: {
      src: _vm.source.portrait,
      alt: ""
    }
  }), _c("span", {
    staticClass: "single-line"
  }, [_vm._v(" " + _vm._s(_vm.source._displayName || (_vm.source.groupAlias ? _vm.source.groupAlias : _vm.source.friendAlias ? _vm.source.friendAlias : _vm.source.displayName ? _vm.source.displayName : "用户")))])])]);
};
var staticRenderFns = [];
render._withStripped = true;


/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserListView.vue?vue&type=template&id=b4fd4bc0&scoped=true":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/user/CheckableUserListView.vue?vue&type=template&id=b4fd4bc0&scoped=true ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return this.users.length < 100 ? _c("ul", _vm._l(_vm.groupedUsers, function (groupedUser) {
    return _c("li", {
      key: groupedUser.category
    }, [_c("div", {
      ref: "contactItem",
      refInFor: true,
      staticClass: "contact-item"
    }, [_vm.showCategoryLabel ? _c("div", {
      staticClass: "label",
      class: {
        sticky: _vm.enableCategoryLabelSticky
      },
      style: _vm.paddingStyle
    }, [_c("p", [_vm._v(_vm._s(groupedUser.category.toUpperCase()))])]) : _vm._e(), _c("ul", _vm._l(groupedUser.users, function (user) {
      return _c("li", {
        key: user.uid
      }, [_c("div", {
        staticClass: "content",
        class: {
          disabled: _vm.isUserUncheckable(user)
        },
        style: _vm.paddingStyle,
        attrs: {
          name: "user-" + user.uid
        },
        on: {
          click: function ($event) {
            $event.stopPropagation();
            return _vm.clickUserItem(user);
          }
        }
      }, [_c("input", {
        staticClass: "checkbox",
        attrs: {
          disabled: _vm.isUserUncheckable(user),
          type: "checkbox"
        },
        domProps: {
          value: user,
          checked: _vm.isUserChecked(user)
        }
      }), _c("img", {
        staticClass: "avatar",
        attrs: {
          src: user.portrait,
          alt: ""
        }
      }), _c("span", {
        staticClass: "single-line"
      }, [_vm._v(" " + _vm._s(user._displayName || (user.groupAlias ? user.groupAlias : user.friendAlias ? user.friendAlias : user.displayName ? user.displayName : "用户")))])])]);
    }), 0)])]);
  }), 0) : _c("virtual-list", {
    staticStyle: {
      "max-height": "100%",
      height: "100%",
      "overflow-y": "auto"
    },
    attrs: {
      "data-component": _vm.CheckableUserItemView,
      "data-sources": _vm.virtualListGroupedUsers,
      "data-key": "uid",
      "estimate-size": 30,
      "extra-props": {
        enablePick: _vm.enablePick,
        initialCheckedUsers: _vm.initialCheckedUsers,
        uncheckableUsers: _vm.uncheckableUsers,
        showCategoryLabel: _vm.showCategoryLabel,
        enableCategoryLabelSticky: _vm.enableCategoryLabelSticky,
        paddingLeft: _vm.paddingLeft
      }
    }
  });
};
var staticRenderFns = [];
render._withStripped = true;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./src/styles/index.scss":
/*!****************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-3-1!./node_modules/postcss-loader/src??ref--9-oneOf-3-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-3-3!./src/styles/index.scss ***!
  \****************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! @/assets/images/mapSearch/报警.png */ "./src/assets/images/mapSearch/报警.png");
var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__(/*! @/assets/images/layout/prefix-icon.png */ "./src/assets/images/layout/prefix-icon.png");
var ___CSS_LOADER_URL_IMPORT_2___ = __webpack_require__(/*! @/assets/images/layout/prefix-icon-active.png */ "./src/assets/images/layout/prefix-icon-active.png");
var ___CSS_LOADER_URL_IMPORT_3___ = __webpack_require__(/*! @/assets/images/map/报警红色.png */ "./src/assets/images/map/报警红色.png");
exports = ___CSS_LOADER_API_IMPORT___(false);
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
var ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);
// Module
exports.push([module.i, "@charset \"UTF-8\";\nhtml,\nbody {\n  height: 100%;\n  width: 100%;\n  margin: 0;\n  padding: 0;\n  overflow: hidden;\n}\n\nbody {\n  line-height: 1.15;\n  -moz-osx-font-smoothing: grayscale;\n  -webkit-font-smoothing: antialiased;\n  text-rendering: optimizeLegibility;\n  font-family: \"Microsoft YaHei\", -apple-system, PingFang SC, Hiragino Sans GB, Helvetica Neue, Helvetica, sans-serif;\n}\n\nlabel {\n  font-weight: 700;\n}\n\n*,\n*:before,\n*:after {\n  box-sizing: inherit;\n}\n\na,\na:focus,\na:hover {\n  cursor: pointer;\n  color: inherit;\n  outline: none;\n  text-decoration: none;\n}\n\ndiv:focus {\n  outline: none;\n}\n\na:focus,\na:active {\n  outline: none;\n}\n\na,\na:focus,\na:hover {\n  cursor: pointer;\n  color: inherit;\n  text-decoration: none;\n}\n\n.emojis {\n  height: 8.33333vw;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: row;\n  flex-wrap: wrap;\n  overflow-y: scroll;\n}\n.emojis .emoji {\n  height: 2.08333vw;\n  width: 2.08333vw;\n  box-sizing: border-box;\n  cursor: pointer;\n}\n\n.app-wrapper {\n  position: relative;\n  height: 100%;\n  width: 100%;\n}\n.app-wrapper:after {\n  content: \"\";\n  display: table;\n  clear: both;\n}\n.app-wrapper .app-main {\n  box-sizing: border-box;\n  overflow: hidden;\n  height: calc(100vh - 3.33333vw);\n}\n.app-wrapper .app-main-content {\n  background-color: #ffffff;\n}\n.app-wrapper .app-main-content .page {\n  width: 100%;\n  height: 100%;\n}\n.app-wrapper .nav-bar-wrap {\n  height: 3.33333vw;\n  width: 100%;\n  line-height: 3.33333vw;\n  border-radius: 0;\n}\n.app-wrapper .nav-bar-wrap .navbar {\n  height: 3.33333vw;\n  width: 100%;\n  line-height: 3.33333vw;\n  border-radius: 0 !important;\n  box-shadow: 0px 0.41667vw 0.41667vw 0px rgba(0, 0, 0, 0.08);\n  z-index: 999;\n}\n.app-wrapper .nav-bar-wrap .navbar .el-dropdown-link {\n  color: #fff;\n}\n.app-wrapper .nav-bar-wrap .navbar .title-div {\n  height: 100%;\n  float: left;\n  padding-left: 0;\n  display: flex;\n  align-items: center;\n  margin-left: 1.25vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .title-div .title-size {\n  float: left;\n  width: 3.33333vw;\n  height: 3.33333vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .title-div .title-size .title-img {\n  margin-top: 0.52083vw;\n  height: 2.34375vw;\n  width: 2.34375vw;\n  transition: all 0.2s linear;\n}\n.app-wrapper .nav-bar-wrap .navbar .title-div .title-text {\n  color: #213241;\n  float: left;\n  font-size: 1.14583vw;\n  padding-left: 0.625vw;\n  font-weight: bold;\n  letter-spacing: 1px;\n  white-space: nowrap;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv {\n  width: 100%;\n  float: left;\n  height: 100%;\n  min-width: 23.4375vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-item {\n  padding-left: 0.625vw;\n  padding-right: 0.625vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .shangsj {\n  padding-top: 0px;\n  width: 0px !important;\n  height: 0px !important;\n  margin-left: 1.77083vw;\n  border-right: 0.52083vw solid transparent;\n  border-left: 0.52083vw solid transparent;\n  border-bottom: 0.52083vw solid #ffffff;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu {\n  width: 9.375vw;\n  left: 0px;\n  font-size: 0.83333vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu .el-menu-item {\n  font-size: 0.83333vw;\n  height: 1.875vw;\n  line-height: 1.875vw;\n  border-top: 0px solid transparent;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu .el-submenu {\n  font-size: 0.83333vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu .el-submenu .shangsj {\n  padding-top: 0px;\n  width: 0px !important;\n  height: 0px !important;\n  margin-left: 2.60417vw;\n  border-right: 0px solid transparent;\n  border-left: 0px solid transparent;\n  border-bottom: 0px solid #ffffff;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu .el-submenu__title {\n  height: 1.875vw;\n  font-size: 0.83333vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu .el-submenu__title .el-icon-arrow-down {\n  position: absolute;\n  display: none;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu .el-submenu__title .el-icon-arrow-right {\n  position: absolute;\n  margin-top: -0.26042vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu > div .el-menu-item {\n  font-size: 0.83333vw;\n  height: 1.875vw;\n  line-height: 1.875vw;\n  border-top: 0px solid transparent;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu > div .el-submenu {\n  width: 9.375vw;\n  height: 1.875vw !important;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu > div .el-submenu .el-menu {\n  font-size: 0.83333vw;\n  left: 9.6875vw;\n  top: 0px;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-demo .el-submenu .el-menu > div .el-submenu .el-submenu__title {\n  font-size: 0.83333vw;\n  line-height: 1.875vw;\n  width: 9.79167vw;\n  border-top: 0px solid transparent;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-submenu__title {\n  padding-left: 0.625vw;\n  padding-right: 0.625vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu-item.is-active {\n  color: #409eff;\n  border-bottom: 0.10417vw solid #409eff;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu--horizontal .el-submenu .el-submenu__title {\n  border-bottom: 0px solid transparent;\n}\n.app-wrapper .nav-bar-wrap .navbar .menudiv .el-menu--horizontal .el-submenu .el-submenu__icon-arrow {\n  display: none;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-system {\n  width: 100%;\n  float: left;\n  height: 3.33333vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-system .nav-system-menu {\n  text-align: center;\n  height: 3.33333vw;\n  background: rgba(0, 0, 0, 0);\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-system .nav-system-menu .menu-class {\n  font-size: 0.83333vw;\n  padding-left: 0.83333vw;\n  padding-right: 0.83333vw;\n  height: 3.33333vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-system .nav-system-menu .el-menu-item.is-active {\n  color: #409eff;\n  border-bottom: 0.10417vw solid #409eff;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-system .nav-system-menu .el-menu-item:hover {\n  background: #409eff;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-system .el-menu--horizontal .el-menu-item {\n  border-bottom: 0px solid #409eff !important;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div {\n  width: 100%;\n  float: left;\n  padding-left: 1.25vw;\n  height: 3.33333vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tag-left-button {\n  background-color: #1e2a44;\n  color: #ffffff;\n  height: 3.33333vw;\n  width: 1.82292vw;\n  border-left: 1px solid #404a5f;\n  border-right: 1px solid #404a5f;\n  border-top-width: 0px;\n  border-bottom-width: 0px;\n  left: 57.8125vw;\n  position: absolute;\n  padding-left: 0.41667vw;\n  font-size: 1.04167vw;\n  z-index: 101;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tag-right-button {\n  background-color: #1e2a44;\n  color: #ffffff;\n  height: 3.33333vw;\n  width: 1.82292vw;\n  border-left: 1px solid #404a5f;\n  border-right: 1px solid #404a5f;\n  border-top-width: 0px;\n  border-bottom-width: 0px;\n  top: 0px;\n  left: 90.83333vw;\n  position: absolute;\n  padding-left: 0.41667vw;\n  font-size: 1.04167vw;\n  z-index: 101;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tags-wrapper {\n  background: #1e2a44;\n  height: 3.33333vw;\n  width: 100%;\n  color: #cbced3;\n  z-index: 100;\n  box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.12), 0 0 0.15625vw 0 rgba(0, 0, 0, 0.04);\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tags-wrapper .scroll-wrapper {\n  right: 1.25vw !important;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tags-wrapper .nav-open-tags {\n  width: 1.66667vw;\n  height: 3.33333vw;\n  border-right: 1px solid #404a5f;\n  border-left: 0px;\n  border-top: 0px;\n  border-bottom: 0px;\n  padding-right: 0.10417vw;\n  text-align: center;\n  height: 64px;\n  background-color: #1e2a44;\n  color: #ffffff;\n  padding: 0px;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tags-wrapper .nav-tags-item {\n  display: inline-block;\n  position: relative;\n  height: 3.33333vw;\n  border-right: 1px solid #404a5f;\n  line-height: 3.33333vw;\n  color: #cbced3;\n  background: #1e2a44;\n  padding-left: 0.625vw;\n  padding-right: 0.3125vw;\n  font-size: 0.72917vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tags-wrapper .nav-tags-item .el-icon-close {\n  width: 0.9375vw;\n  height: 0.9375vw;\n  font-size: 0.9375vw;\n  vertical-align: -0.10417vw;\n  border-radius: 50%;\n  text-align: center;\n  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n  transform-origin: 100% 50%;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tags-wrapper .nav-tags-item .el-icon-close:before {\n  transform: scale(0.6);\n  display: inline-block;\n  vertical-align: 0px;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tags-wrapper .nav-tags-item .el-icon-close:hover {\n  background-color: #b4bccc;\n  color: #fff;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tags-wrapper .nav-tags-item:first-of-type {\n  border-left: 1px solid #404a5f;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .nav-tags-wrapper .nav-tags-item.onactive {\n  color: #409eff;\n  background: rgba(57, 70, 93, 0.5);\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .contex-tmenu {\n  margin: 0;\n  background: #fff;\n  z-index: 100;\n  position: absolute;\n  padding: 0.26042vw 0;\n  line-height: 1.04167vw;\n  list-style-type: none;\n  border-radius: 0.20833vw;\n  font-size: 0.625vw;\n  font-weight: 400;\n  color: #333;\n  box-shadow: 0.10417vw 0.10417vw 0.15625vw 0 rgba(0, 0, 0, 0.3);\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .contex-tmenu li {\n  margin: 0;\n  padding: 0.36458vw 0.41667vw;\n  cursor: pointer;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-tag-div .nav-tags-container .contex-tmenu li:hover {\n  background: #eee;\n}\n.app-wrapper .nav-bar-wrap .navbar .avatar-container {\n  height: 3.33333vw;\n  display: inline-block;\n  position: absolute;\n  right: 1.82292vw;\n  color: #ffffff;\n}\n.app-wrapper .nav-bar-wrap .navbar .avatar-container .avatar-wrapper {\n  cursor: pointer;\n  margin-top: 0.26042vw;\n  position: relative;\n}\n.app-wrapper .nav-bar-wrap .navbar .avatar-container .avatar-wrapper .user-avatar {\n  color: #ffffff;\n  width: 3.33333vw;\n  height: 3.33333vw;\n  border-radius: 0.52083vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .avatar-container .avatar-wrapper .el-icon-caret-bottom {\n  position: absolute;\n  right: -1.04167vw;\n  top: 1.30208vw;\n  font-size: 0.625vw;\n}\n.app-wrapper .nav-bar-wrap .navbar .avatar-container .avatar-wrapper .img-Style {\n  margin: 0px 1.30208vw 0.78125vw 0px;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-bar-righr {\n  display: inline-block;\n  position: absolute;\n  right: 0px;\n  top: 0px;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-bar-righr .nav-button-context {\n  border-right: 0px solid #404a5f;\n  border-left: 0px;\n  border-top: 0px;\n  border-bottom: 0px;\n  padding-right: 0.83333vw;\n  height: 3.33333vw;\n  line-height: 3.33333vw;\n  text-align: center;\n  background-color: #0551e9;\n  color: #ffffff;\n  padding: 0px;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-bar-righr .nav-context-menu {\n  margin: 0.41667vw;\n  background: #244288;\n  z-index: 100;\n  padding-left: 0px;\n  line-height: 1.5625vw;\n  list-style-type: none;\n  border-radius: 0.20833vw;\n  font-size: 0.625vw;\n  font-weight: 400;\n  color: #ffffff;\n  box-shadow: 0.10417vw 0.10417vw 0.15625vw 0 rgba(0, 0, 0, 0.3);\n  top: 100%;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-bar-righr .nav-context-menu li {\n  margin: 0;\n  padding: 0.36458vw 0.41667vw;\n  cursor: pointer;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-bar-righr .nav-context-menu li:hover {\n  background: rgb(17, 27, 48);\n  color: #409eff;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-bar-righr .nav-context-menu span {\n  position: absolute;\n  right: 40%;\n  top: -0.83333vw;\n  width: 0;\n  height: 0;\n  line-height: 0;\n  font-size: 0;\n  border: 0.41667vw solid transparent;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-bar-righr .nav-user-class {\n  display: inline-block;\n  text-align: center;\n  height: 3.33333vw;\n  width: 5.41667vw;\n  color: #ffffff;\n}\n.app-wrapper .nav-bar-wrap .navbar .nav-bar-righr .nav-user-class:last-of-type {\n  width: 4.16667vw;\n}\n.app-wrapper .nav-bar-wrap .el-menu--horizontal {\n  border-right: none;\n  border-bottom: solid 0px #e6e6e6;\n  height: 100%;\n  line-height: 0;\n}\n.app-wrapper .nav-bar-wrap .el-menu--horizontal .el-menu .el-menu-item {\n  float: left !important;\n}\n\n.custom-message {\n  background: transparent;\n  border: none;\n  transform: translate(calc(-50% + 2.65625vw), 0);\n}\n.custom-message .el-icon-info {\n  display: none;\n}\n.custom-message .warning-message {\n  display: flex;\n  align-items: center;\n  height: 2.5vw;\n  background: #ffffff;\n  box-shadow: 0 0.46875vw 1.45833vw 0 rgba(0, 0, 0, 0.05), 0 0.3125vw 0.83333vw 0 rgba(0, 0, 0, 0.08), 0 0.15625vw 0.3125vw 0 rgba(0, 0, 0, 0.12);\n  border-radius: 0.20833vw 0.20833vw 0.20833vw 0.20833vw;\n  opacity: 1;\n  border: 1px solid #ffa39e;\n  padding: 0.625vw 1.25vw;\n}\n.custom-message .warning-message .icon-warning {\n  width: 1.25vw;\n  height: 1.25vw;\n  background: url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat;\n  background-size: 100% 100%;\n  margin-right: 0.83333vw;\n}\n.custom-message .warning-message .message {\n  width: 26.5625vw;\n  height: 1.875vw;\n  line-height: 1.875vw;\n  font-size: 0.72917vw;\n  color: #333333;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.custom-message .warning-message .btn-handle {\n  margin-left: auto;\n  height: 1.875vw;\n  line-height: 1.875vw;\n  font-size: 0.72917vw;\n  font-weight: 400;\n  color: #0e71ff;\n  cursor: pointer;\n}\n\n.platform-selection-popper .el-select-dropdown__item {\n  display: flex;\n  align-items: center;\n  padding: 0 0.625vw;\n}\n.platform-selection-popper .el-select-dropdown__item .option-prefix {\n  display: block;\n  width: 1.04167vw;\n  height: 1.04167vw;\n  background: url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") no-repeat;\n  background-size: 100% 100%;\n  margin-right: 0.41667vw;\n}\n.platform-selection-popper .el-select-dropdown__item.selected .option-prefix {\n  display: block;\n  width: 1.04167vw;\n  height: 1.04167vw;\n  background: url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") no-repeat;\n  background-size: 100% 100%;\n  margin-right: 0.41667vw;\n}\n\n.info-window-common {\n  position: relative;\n  background: #fff;\n  padding: 0.52083vw 0.9375vw 0.52083vw 0.52083vw;\n  line-height: 1.4;\n  box-shadow: 0 1px 0.10417vw rgba(0, 0, 0, 0.1);\n  border-radius: 0.10417vw;\n}\n.info-window-common:after {\n  content: \" \";\n  width: 0;\n  height: 0;\n  border: 0.41667vw solid transparent;\n  border-top-color: #ffffff;\n  position: absolute;\n  left: 50%;\n  bottom: -0.83333vw;\n  transform: translate(-50%, 0);\n}\n.info-window-common .close {\n  position: absolute;\n  right: 0.26042vw;\n  top: 0.26042vw;\n  color: #c3c3c3;\n  text-decoration: none;\n  text-decoration-thickness: initial;\n  -webkit-text-decoration-style: initial;\n          text-decoration-style: initial;\n  -webkit-text-decoration-color: initial;\n          text-decoration-color: initial;\n  font: 700 0.83333vw/0.72917vw Tahoma, Verdana, sans-serif;\n  width: 0.72917vw;\n  height: 0.72917vw;\n  cursor: pointer;\n}\n.info-window-common .close:hover {\n  color: #000000;\n}\n.info-window-location {\n  width: 19.0625vw;\n  height: 11.5625vw;\n}\n.info-window-company {\n  width: 19.0625vw;\n  height: 18.22917vw;\n}\n.info-window-project {\n  width: 21.875vw;\n  height: 21.61458vw;\n}\n.info-window-station {\n  width: 21.875vw;\n  height: 21.61458vw;\n}\n.info-window-employee {\n  width: 20.26042vw;\n  height: 24.47917vw;\n}\n.info-window-employee-res {\n  width: 20.26042vw;\n  height: 21.875vw;\n}\n.info-window-stationEmployees {\n  width: 24.47917vw;\n  height: 23.75vw;\n  overflow: hidden;\n}\n.info-window-stationEmployees-people {\n  height: 16.14583vw;\n  overflow-y: auto;\n}\n.info-window-companyStations {\n  width: 24.47917vw;\n  height: 23.75vw;\n  overflow: hidden;\n}\n.info-window-companyStations-station {\n  height: 16.14583vw;\n  overflow-y: auto;\n}\n.info-window-rail {\n  width: 24.16667vw;\n}\n.info-window-device {\n  width: 21.82292vw;\n  height: 25vw;\n}\n.info-window-exam {\n  width: 16.45833vw;\n  height: 19.79167vw;\n}\n.info-window-examSite {\n  width: 16.45833vw;\n  height: 15.10417vw;\n}\n.info-window-railSecurity {\n  width: 45.3125vw;\n  height: 25.625vw;\n}\n.info-window-sos {\n  width: 16.92708vw;\n  height: 7.5vw;\n  background: url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") no-repeat;\n  background-size: 100% 100%;\n  position: relative;\n}\n.info-window-sos .content {\n  position: absolute;\n  bottom: 2.86458vw;\n  left: 3.125vw;\n  display: flex;\n  align-items: center;\n}\n.info-window-sos .content span {\n  font-size: 0.72917vw;\n  font-weight: 400;\n  color: #3d3d3d;\n  line-height: 1.14583vw;\n}\n.info-window-sos .content span.name {\n  padding-right: 0.625vw;\n  border-right: 1px solid #bdcfde;\n}\n.info-window-sos .content span.ellipse {\n  display: inline-block;\n  padding-left: 0.625vw;\n  width: 9.27083vw;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.info-window .address-header {\n  font-size: 0.83333vw;\n  color: #333333;\n  font-weight: 500;\n  border-bottom: 1px solid #bdcfde;\n  padding: 1.04167vw 0;\n}\n.info-window .address-item {\n  display: flex;\n  align-items: center;\n  font-size: 0.72917vw;\n  margin-top: 0.9375vw;\n}\n.info-window .address-item .address-label {\n  color: #5e5e5e;\n}\n.info-window .address-item .address-value {\n  color: #333333;\n  display: flex;\n  align-items: center;\n}\n.info-window .address-item .address-value img {\n  width: 0.83333vw;\n  height: 0.83333vw;\n  cursor: pointer;\n  margin-left: 0.41667vw;\n}\n.info-window .address-btn {\n  border-top: 1px solid #bdcfde;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding-top: 0.625vw;\n  margin-top: 0.9375vw;\n}\n.info-window .address-btn .btn {\n  width: 4.58333vw;\n  height: 1.45833vw;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: 0.20833vw;\n  opacity: 1;\n  border: 1px solid #0e70ff;\n  font-size: 0.72917vw;\n  color: #0e70ff;\n  cursor: pointer;\n}\n\n.info-window-btn {\n  text-align: center;\n  width: 4.16667vw;\n  height: 1.45833vw;\n  line-height: 1.45833vw;\n  background: #ffffff;\n  border-radius: 0.20833vw 0.20833vw 0.20833vw 0.20833vw;\n  opacity: 1;\n  border: 1px solid #0e70ff;\n  cursor: pointer;\n  font-size: 0.72917vw;\n  font-family: PingFang SC-Regular, PingFang SC;\n  font-weight: 400;\n  color: #0e70ff;\n  float: left;\n  margin-right: 0.26042vw;\n}\n\n.activeBtn {\n  background: #0e70ff;\n  color: #fff;\n}\n\n.disabledBtn {\n  background: #fff;\n  border: 1px solid #cccccc;\n  color: #cccccc;\n  pointer-events: none;\n}\n\n.infoWin {\n  font-size: 0.72917vw;\n  background: #ffffff;\n  border-radius: 0px 0px 0px 0px;\n}\n.infoWin .header-new {\n  display: flex;\n  align-items: center;\n  font-size: 0.83333vw;\n  color: #333333;\n  font-weight: 500;\n  border-bottom: 1px solid #bdcfde;\n  padding-bottom: 1.04167vw;\n  margin-bottom: 0.88542vw;\n}\n.infoWin .header-new .header-img {\n  margin-right: 0.625vw;\n  width: 2.5vw;\n  height: 2.5vw;\n}\n.infoWin .header-new .header-details .header-btn {\n  display: flex;\n  align-items: center;\n  margin-top: 0.41667vw;\n}\n.infoWin .header-new .header-details .header-btn .btn {\n  margin-right: 0.57292vw;\n  font-size: 0.625vw;\n  color: #0e70ff;\n  border: 1px solid #0e70ff;\n  width: 4.11458vw;\n  height: 1.25vw;\n  background: #ffffff;\n  border-radius: 0.20833vw;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  cursor: pointer;\n}\n.infoWin .content-new {\n  display: flex;\n  align-items: center;\n  margin-bottom: 0.57292vw;\n  font-size: 0.72917vw;\n}\n.infoWin .content-new .content-new-label {\n  color: #5e5e5e;\n}\n.infoWin .content-new .content-new-value {\n  display: flex;\n  align-items: center;\n  color: #333333;\n}\n.infoWin .content-new .content-new-value .content-new-img {\n  margin-left: 0.36458vw;\n  width: 0.83333vw;\n  height: 0.83333vw;\n  cursor: pointer;\n}\n.infoWin .content-new .active {\n  cursor: pointer;\n  color: #0e70ff;\n  border-bottom: 1px solid #0e70ff;\n}\n.infoWin .header {\n  height: 4.0625vw;\n  line-height: 4.0625vw;\n  font-size: 0.83333vw;\n  font-weight: 500;\n  color: #333333;\n  border-bottom: 1px solid #bdcfde;\n}\n.infoWin .header .header-img {\n  padding-top: 0.26042vw;\n}\n.infoWin .content {\n  padding-left: 1.25vw;\n  padding-top: 1.45833vw;\n  font-size: 0.72917vw;\n  height: 0.88542vw;\n  line-height: 0.88542vw;\n  font-weight: 400;\n  color: #333333;\n}\n.infoWin .back-station {\n  font-size: 0.72917vw;\n  color: #0e70ff;\n  cursor: pointer;\n  padding: 0.83333vw 0 1.04167vw 0;\n}\n.infoWin .back {\n  font-size: 0.72917vw;\n  color: #0e70ff;\n  margin-top: 0.83333vw;\n  cursor: pointer;\n  margin-bottom: 0.98958vw;\n}\n.infoWin .rail-item {\n  display: flex;\n  align-items: center;\n  margin-top: 0.57292vw;\n}\n.infoWin .rail-item .rail-label {\n  font-size: 0.72917vw;\n  color: #5e5e5e;\n}\n.infoWin .rail-item .rail-value {\n  font-size: 0.72917vw;\n  color: #333333;\n}\n.infoWin .rail-footer {\n  display: flex;\n  align-items: center;\n  color: #0e70ff;\n  font-size: 0.72917vw;\n  border-top: 1px solid #bdcfde;\n  padding-top: 0.41667vw;\n  margin-top: 0.41667vw;\n}\n.infoWin .rail-footer .footer-select {\n  margin-left: 0.57292vw;\n  width: 6.97917vw;\n  height: 1.66667vw;\n}\n.infoWin .rail-footer .btn {\n  margin-left: 0.57292vw;\n  cursor: pointer;\n  font-size: 0.72917vw;\n  color: #0e70ff;\n  border: 1px solid #0e70ff;\n  border-radius: 0.20833vw;\n  text-align: center;\n  width: 4.58333vw;\n  height: 1.66667vw;\n  line-height: 1.66667vw;\n}\n.infoWin .noborder-Top {\n  border-top: none;\n}\n\n.company {\n  padding: 0 0.52083vw;\n}\n.company .company-header {\n  display: flex;\n  align-items: center;\n  font-size: 0.83333vw;\n  color: #333333;\n  border-bottom: 1px solid #bdcfde;\n  padding-bottom: 0.83333vw;\n}\n.company .company-header img {\n  width: 1.97917vw;\n  height: 1.97917vw;\n  margin-right: 0.41667vw;\n}\n.company .back {\n  font-size: 0.72917vw;\n  color: #0e70ff;\n  margin-top: 0.83333vw;\n  cursor: pointer;\n  margin-bottom: 0.98958vw;\n}\n.company .company-item {\n  display: flex;\n  align-items: center;\n  font-size: 0.72917vw;\n  margin-bottom: 0.57292vw;\n}\n.company .company-item .company-label {\n  color: #5e5e5e;\n}\n.company .company-item .company-value {\n  color: #333333;\n}\n.company .company-item img {\n  width: 0.83333vw;\n  height: 0.83333vw;\n  margin-left: 0.41667vw;\n  cursor: pointer;\n}\n\n.security .header {\n  display: flex;\n  align-items: center;\n  font-size: 0.83333vw;\n  color: #333333;\n  border: none;\n  margin-bottom: 0.83333vw;\n}\n.security .header .photo {\n  width: 1.97917vw;\n  height: 1.97917vw;\n  background: #0e70ff;\n  border-radius: 50%;\n  text-align: center;\n  line-height: 1.97917vw;\n  color: #fff;\n  font-size: 0.72917vw;\n  margin-right: 0.41667vw;\n}\n.security .security-content {\n  display: flex;\n  align-items: center;\n  font-size: 0.72917vw;\n  color: #5e5e5e;\n}\n.security .security-content .active {\n  color: #333333;\n}\n.security .security-content .blue {\n  color: #0e70ff;\n  border-bottom: 1px solid #0e70ff;\n  cursor: pointer;\n}\n.security .security-content img {\n  width: 0.83333vw;\n  height: 0.83333vw;\n  margin-left: 0.41667vw;\n  cursor: pointer;\n}\n.security .marginBottom11 {\n  margin-bottom: 0.57292vw;\n}\n\n.hide-show {\n  font-size: 0.625vw;\n  font-family: PingFang SC-Regular, PingFang SC;\n  font-weight: 400;\n  color: #0e70ff;\n  cursor: pointer;\n  padding-left: 0.26042vw;\n}", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./src/assets/fonts/icomoon/style.css":
/*!********************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!./node_modules/postcss-loader/src??ref--7-oneOf-3-2!./src/assets/fonts/icomoon/style.css ***!
  \********************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! ./fonts/icomoon.eot?lc1wol */ "./src/assets/fonts/icomoon/fonts/icomoon.eot?lc1wol");
var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__(/*! ./fonts/icomoon.ttf?lc1wol */ "./src/assets/fonts/icomoon/fonts/icomoon.ttf?lc1wol");
var ___CSS_LOADER_URL_IMPORT_2___ = __webpack_require__(/*! ./fonts/icomoon.woff?lc1wol */ "./src/assets/fonts/icomoon/fonts/icomoon.woff?lc1wol");
var ___CSS_LOADER_URL_IMPORT_3___ = __webpack_require__(/*! ./fonts/icomoon.svg?lc1wol */ "./src/assets/fonts/icomoon/fonts/icomoon.svg?lc1wol");
exports = ___CSS_LOADER_API_IMPORT___(false);
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___, { hash: "#iefix" });
var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
var ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
var ___CSS_LOADER_URL_REPLACEMENT_4___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___, { hash: "#icomoon" });
// Module
exports.push([module.i, "@font-face {\n\tfont-family: 'icomoon';\n\tsrc:  url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");\n\tsrc:  url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") format('embedded-opentype'),\n\turl(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") format('truetype'),\n\turl(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") format('woff'),\n\turl(" + ___CSS_LOADER_URL_REPLACEMENT_4___ + ") format('svg');\n\tfont-weight: normal;\n\tfont-style: normal;\n}\n\n[class^=\"icon-\"], [class*=\" icon-\"] {\n\t/* use !important to prevent issues with browser extensions that change fonts */\n\tfont-family: 'icomoon' !important;\n\tspeak: none;\n\tfont-style: normal;\n\tfont-weight: normal;\n\tfont-variant: normal;\n\ttext-transform: none;\n\tline-height: 1;\n\n\t/* Better Font Rendering =========== */\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\n.icon-ion-alert-circled:before {\n\tcontent: \"\\f100\";\n}\n\n.icon-ion-alert:before {\n\tcontent: \"\\f101\";\n}\n\n.icon-ion-android-add-circle:before {\n\tcontent: \"\\f359\";\n}\n\n.icon-ion-android-add:before {\n\tcontent: \"\\f2c7\";\n}\n\n.icon-ion-android-alarm-clock:before {\n\tcontent: \"\\f35a\";\n}\n\n.icon-ion-android-alert:before {\n\tcontent: \"\\f35b\";\n}\n\n.icon-ion-android-apps:before {\n\tcontent: \"\\f35c\";\n}\n\n.icon-ion-android-archive:before {\n\tcontent: \"\\f2c9\";\n}\n\n.icon-ion-android-arrow-back:before {\n\tcontent: \"\\f2ca\";\n}\n\n.icon-ion-android-arrow-down:before {\n\tcontent: \"\\f35d\";\n}\n\n.icon-ion-android-arrow-dropdown-circle:before {\n\tcontent: \"\\f35e\";\n}\n\n.icon-ion-android-arrow-dropdown:before {\n\tcontent: \"\\f35f\";\n}\n\n.icon-ion-android-arrow-dropleft-circle:before {\n\tcontent: \"\\f360\";\n}\n\n.icon-ion-android-arrow-dropleft:before {\n\tcontent: \"\\f361\";\n}\n\n.icon-ion-android-arrow-dropright-circle:before {\n\tcontent: \"\\f362\";\n}\n\n.icon-ion-android-arrow-dropright:before {\n\tcontent: \"\\f363\";\n}\n\n.icon-ion-android-arrow-dropup-circle:before {\n\tcontent: \"\\f364\";\n}\n\n.icon-ion-android-arrow-dropup:before {\n\tcontent: \"\\f365\";\n}\n\n.icon-ion-android-arrow-forward:before {\n\tcontent: \"\\f30f\";\n}\n\n.icon-ion-android-arrow-up:before {\n\tcontent: \"\\f366\";\n}\n\n.icon-ion-android-attach:before {\n\tcontent: \"\\f367\";\n}\n\n.icon-ion-android-bar:before {\n\tcontent: \"\\f368\";\n}\n\n.icon-ion-android-bicycle:before {\n\tcontent: \"\\f369\";\n}\n\n.icon-ion-android-boat:before {\n\tcontent: \"\\f36a\";\n}\n\n.icon-ion-android-bookmark:before {\n\tcontent: \"\\f36b\";\n}\n\n.icon-ion-android-bulb:before {\n\tcontent: \"\\f36c\";\n}\n\n.icon-ion-android-bus:before {\n\tcontent: \"\\f36d\";\n}\n\n.icon-ion-android-calendar:before {\n\tcontent: \"\\f2d1\";\n}\n\n.icon-ion-android-call:before {\n\tcontent: \"\\f2d2\";\n}\n\n.icon-ion-android-camera:before {\n\tcontent: \"\\f2d3\";\n}\n\n.icon-ion-android-cancel:before {\n\tcontent: \"\\f36e\";\n}\n\n.icon-ion-android-car:before {\n\tcontent: \"\\f36f\";\n}\n\n.icon-ion-android-cart:before {\n\tcontent: \"\\f370\";\n}\n\n.icon-ion-android-chat:before {\n\tcontent: \"\\f2d4\";\n}\n\n.icon-ion-android-checkbox-blank:before {\n\tcontent: \"\\f371\";\n}\n\n.icon-ion-android-checkbox-outline-blank:before {\n\tcontent: \"\\f372\";\n}\n\n.icon-ion-android-checkbox-outline:before {\n\tcontent: \"\\f373\";\n}\n\n.icon-ion-android-checkbox:before {\n\tcontent: \"\\f374\";\n}\n\n.icon-ion-android-checkmark-circle:before {\n\tcontent: \"\\f375\";\n}\n\n.icon-ion-android-clipboard:before {\n\tcontent: \"\\f376\";\n}\n\n.icon-ion-android-close:before {\n\tcontent: \"\\f2d7\";\n}\n\n.icon-ion-android-cloud-circle:before {\n\tcontent: \"\\f377\";\n}\n\n.icon-ion-android-cloud-done:before {\n\tcontent: \"\\f378\";\n}\n\n.icon-ion-android-cloud-outline:before {\n\tcontent: \"\\f379\";\n}\n\n.icon-ion-android-cloud:before {\n\tcontent: \"\\f37a\";\n}\n\n.icon-ion-android-color-palette:before {\n\tcontent: \"\\f37b\";\n}\n\n.icon-ion-android-compass:before {\n\tcontent: \"\\f37c\";\n}\n\n.icon-ion-android-contact:before {\n\tcontent: \"\\f2d8\";\n}\n\n.icon-ion-android-contacts:before {\n\tcontent: \"\\f2d9\";\n}\n\n.icon-ion-android-contract:before {\n\tcontent: \"\\f37d\";\n}\n\n.icon-ion-android-create:before {\n\tcontent: \"\\f37e\";\n}\n\n.icon-ion-android-delete:before {\n\tcontent: \"\\f37f\";\n}\n\n.icon-ion-android-desktop:before {\n\tcontent: \"\\f380\";\n}\n\n.icon-ion-android-document:before {\n\tcontent: \"\\f381\";\n}\n\n.icon-ion-android-done-all:before {\n\tcontent: \"\\f382\";\n}\n\n.icon-ion-android-done:before {\n\tcontent: \"\\f383\";\n}\n\n.icon-ion-android-download:before {\n\tcontent: \"\\f2dd\";\n}\n\n.icon-ion-android-drafts:before {\n\tcontent: \"\\f384\";\n}\n\n.icon-ion-android-exit:before {\n\tcontent: \"\\f385\";\n}\n\n.icon-ion-android-expand:before {\n\tcontent: \"\\f386\";\n}\n\n.icon-ion-android-favorite-outline:before {\n\tcontent: \"\\f387\";\n}\n\n.icon-ion-android-favorite:before {\n\tcontent: \"\\f388\";\n}\n\n.icon-ion-android-film:before {\n\tcontent: \"\\f389\";\n}\n\n.icon-ion-android-folder-open:before {\n\tcontent: \"\\f38a\";\n}\n\n.icon-ion-android-folder:before {\n\tcontent: \"\\f2e0\";\n}\n\n.icon-ion-android-funnel:before {\n\tcontent: \"\\f38b\";\n}\n\n.icon-ion-android-globe:before {\n\tcontent: \"\\f38c\";\n}\n\n.icon-ion-android-hand:before {\n\tcontent: \"\\f2e3\";\n}\n\n.icon-ion-android-hangout:before {\n\tcontent: \"\\f38d\";\n}\n\n.icon-ion-android-happy:before {\n\tcontent: \"\\f38e\";\n}\n\n.icon-ion-android-home:before {\n\tcontent: \"\\f38f\";\n}\n\n.icon-ion-android-image:before {\n\tcontent: \"\\f2e4\";\n}\n\n.icon-ion-android-laptop:before {\n\tcontent: \"\\f390\";\n}\n\n.icon-ion-android-list:before {\n\tcontent: \"\\f391\";\n}\n\n.icon-ion-android-locate:before {\n\tcontent: \"\\f2e9\";\n}\n\n.icon-ion-android-lock:before {\n\tcontent: \"\\f392\";\n}\n\n.icon-ion-android-mail:before {\n\tcontent: \"\\f2eb\";\n}\n\n.icon-ion-android-map:before {\n\tcontent: \"\\f393\";\n}\n\n.icon-ion-android-menu:before {\n\tcontent: \"\\f394\";\n}\n\n.icon-ion-android-microphone-off:before {\n\tcontent: \"\\f395\";\n}\n\n.icon-ion-android-microphone:before {\n\tcontent: \"\\f2ec\";\n}\n\n.icon-ion-android-more-horizontal:before {\n\tcontent: \"\\f396\";\n}\n\n.icon-ion-android-more-vertical:before {\n\tcontent: \"\\f397\";\n}\n\n.icon-ion-android-navigate:before {\n\tcontent: \"\\f398\";\n}\n\n.icon-ion-android-notifications-none:before {\n\tcontent: \"\\f399\";\n}\n\n.icon-ion-android-notifications-off:before {\n\tcontent: \"\\f39a\";\n}\n\n.icon-ion-android-notifications:before {\n\tcontent: \"\\f39b\";\n}\n\n.icon-ion-android-open:before {\n\tcontent: \"\\f39c\";\n}\n\n.icon-ion-android-options:before {\n\tcontent: \"\\f39d\";\n}\n\n.icon-ion-android-people:before {\n\tcontent: \"\\f39e\";\n}\n\n.icon-ion-android-person-add:before {\n\tcontent: \"\\f39f\";\n}\n\n.icon-ion-android-person:before {\n\tcontent: \"\\f3a0\";\n}\n\n.icon-ion-android-phone-landscape:before {\n\tcontent: \"\\f3a1\";\n}\n\n.icon-ion-android-phone-portrait:before {\n\tcontent: \"\\f3a2\";\n}\n\n.icon-ion-android-pin:before {\n\tcontent: \"\\f3a3\";\n}\n\n.icon-ion-android-plane:before {\n\tcontent: \"\\f3a4\";\n}\n\n.icon-ion-android-playstore:before {\n\tcontent: \"\\f2f0\";\n}\n\n.icon-ion-android-print:before {\n\tcontent: \"\\f3a5\";\n}\n\n.icon-ion-android-radio-button-off:before {\n\tcontent: \"\\f3a6\";\n}\n\n.icon-ion-android-radio-button-on:before {\n\tcontent: \"\\f3a7\";\n}\n\n.icon-ion-android-refresh:before {\n\tcontent: \"\\f3a8\";\n}\n\n.icon-ion-android-remove-circle:before {\n\tcontent: \"\\f3a9\";\n}\n\n.icon-ion-android-remove:before {\n\tcontent: \"\\f2f4\";\n}\n\n.icon-ion-android-restaurant:before {\n\tcontent: \"\\f3aa\";\n}\n\n.icon-ion-android-sad:before {\n\tcontent: \"\\f3ab\";\n}\n\n.icon-ion-android-search:before {\n\tcontent: \"\\f2f5\";\n}\n\n.icon-ion-android-send:before {\n\tcontent: \"\\f2f6\";\n}\n\n.icon-ion-android-settings:before {\n\tcontent: \"\\f2f7\";\n}\n\n.icon-ion-android-share-alt:before {\n\tcontent: \"\\f3ac\";\n}\n\n.icon-ion-android-share:before {\n\tcontent: \"\\f2f8\";\n}\n\n.icon-ion-android-star-half:before {\n\tcontent: \"\\f3ad\";\n}\n\n.icon-ion-android-star-outline:before {\n\tcontent: \"\\f3ae\";\n}\n\n.icon-ion-android-star:before {\n\tcontent: \"\\f2fc\";\n}\n\n.icon-ion-android-stopwatch:before {\n\tcontent: \"\\f2fd\";\n}\n\n.icon-ion-android-subway:before {\n\tcontent: \"\\f3af\";\n}\n\n.icon-ion-android-sunny:before {\n\tcontent: \"\\f3b0\";\n}\n\n.icon-ion-android-sync:before {\n\tcontent: \"\\f3b1\";\n}\n\n.icon-ion-android-textsms:before {\n\tcontent: \"\\f3b2\";\n}\n\n.icon-ion-android-time:before {\n\tcontent: \"\\f3b3\";\n}\n\n.icon-ion-android-train:before {\n\tcontent: \"\\f3b4\";\n}\n\n.icon-ion-android-unlock:before {\n\tcontent: \"\\f3b5\";\n}\n\n.icon-ion-android-upload:before {\n\tcontent: \"\\f3b6\";\n}\n\n.icon-ion-android-volume-down:before {\n\tcontent: \"\\f3b7\";\n}\n\n.icon-ion-android-volume-mute:before {\n\tcontent: \"\\f3b8\";\n}\n\n.icon-ion-android-volume-off:before {\n\tcontent: \"\\f3b9\";\n}\n\n.icon-ion-android-volume-up:before {\n\tcontent: \"\\f3ba\";\n}\n\n.icon-ion-android-walk:before {\n\tcontent: \"\\f3bb\";\n}\n\n.icon-ion-android-warning:before {\n\tcontent: \"\\f3bc\";\n}\n\n.icon-ion-android-watch:before {\n\tcontent: \"\\f3bd\";\n}\n\n.icon-ion-android-wifi:before {\n\tcontent: \"\\f305\";\n}\n\n.icon-ion-aperture:before {\n\tcontent: \"\\f313\";\n}\n\n.icon-ion-archive:before {\n\tcontent: \"\\f102\";\n}\n\n.icon-ion-arrow-down-a:before {\n\tcontent: \"\\f103\";\n}\n\n.icon-ion-arrow-down-b:before {\n\tcontent: \"\\f104\";\n}\n\n.icon-ion-arrow-down-c:before {\n\tcontent: \"\\f105\";\n}\n\n.icon-ion-arrow-expand:before {\n\tcontent: \"\\f25e\";\n}\n\n.icon-ion-arrow-graph-down-left:before {\n\tcontent: \"\\f25f\";\n}\n\n.icon-ion-arrow-graph-down-right:before {\n\tcontent: \"\\f260\";\n}\n\n.icon-ion-arrow-graph-up-left:before {\n\tcontent: \"\\f261\";\n}\n\n.icon-ion-arrow-graph-up-right:before {\n\tcontent: \"\\f262\";\n}\n\n.icon-ion-arrow-left-a:before {\n\tcontent: \"\\f106\";\n}\n\n.icon-ion-arrow-left-b:before {\n\tcontent: \"\\f107\";\n}\n\n.icon-ion-arrow-left-c:before {\n\tcontent: \"\\f108\";\n}\n\n.icon-ion-arrow-move:before {\n\tcontent: \"\\f263\";\n}\n\n.icon-ion-arrow-resize:before {\n\tcontent: \"\\f264\";\n}\n\n.icon-ion-arrow-return-left:before {\n\tcontent: \"\\f265\";\n}\n\n.icon-ion-arrow-return-right:before {\n\tcontent: \"\\f266\";\n}\n\n.icon-ion-arrow-right-a:before {\n\tcontent: \"\\f109\";\n}\n\n.icon-ion-arrow-right-b:before {\n\tcontent: \"\\f10a\";\n}\n\n.icon-ion-arrow-right-c:before {\n\tcontent: \"\\f10b\";\n}\n\n.icon-ion-arrow-shrink:before {\n\tcontent: \"\\f267\";\n}\n\n.icon-ion-arrow-swap:before {\n\tcontent: \"\\f268\";\n}\n\n.icon-ion-arrow-up-a:before {\n\tcontent: \"\\f10c\";\n}\n\n.icon-ion-arrow-up-b:before {\n\tcontent: \"\\f10d\";\n}\n\n.icon-ion-arrow-up-c:before {\n\tcontent: \"\\f10e\";\n}\n\n.icon-ion-asterisk:before {\n\tcontent: \"\\f314\";\n}\n\n.icon-ion-at:before {\n\tcontent: \"\\f10f\";\n}\n\n.icon-ion-backspace-outline:before {\n\tcontent: \"\\f3be\";\n}\n\n.icon-ion-backspace:before {\n\tcontent: \"\\f3bf\";\n}\n\n.icon-ion-bag:before {\n\tcontent: \"\\f110\";\n}\n\n.icon-ion-battery-charging:before {\n\tcontent: \"\\f111\";\n}\n\n.icon-ion-battery-empty:before {\n\tcontent: \"\\f112\";\n}\n\n.icon-ion-battery-full:before {\n\tcontent: \"\\f113\";\n}\n\n.icon-ion-battery-half:before {\n\tcontent: \"\\f114\";\n}\n\n.icon-ion-battery-low:before {\n\tcontent: \"\\f115\";\n}\n\n.icon-ion-beaker:before {\n\tcontent: \"\\f269\";\n}\n\n.icon-ion-beer:before {\n\tcontent: \"\\f26a\";\n}\n\n.icon-ion-bluetooth:before {\n\tcontent: \"\\f116\";\n}\n\n.icon-ion-bonfire:before {\n\tcontent: \"\\f315\";\n}\n\n.icon-ion-bookmark:before {\n\tcontent: \"\\f26b\";\n}\n\n.icon-ion-bowtie:before {\n\tcontent: \"\\f3c0\";\n}\n\n.icon-ion-briefcase:before {\n\tcontent: \"\\f26c\";\n}\n\n.icon-ion-bug:before {\n\tcontent: \"\\f2be\";\n}\n\n.icon-ion-calculator:before {\n\tcontent: \"\\f26d\";\n}\n\n.icon-ion-calendar:before {\n\tcontent: \"\\f117\";\n}\n\n.icon-ion-camera:before {\n\tcontent: \"\\f118\";\n}\n\n.icon-ion-card:before {\n\tcontent: \"\\f119\";\n}\n\n.icon-ion-cash:before {\n\tcontent: \"\\f316\";\n}\n\n.icon-ion-chatbox-working:before {\n\tcontent: \"\\f11a\";\n}\n\n.icon-ion-chatbox:before {\n\tcontent: \"\\f11b\";\n}\n\n.icon-ion-chatboxes:before {\n\tcontent: \"\\f11c\";\n}\n\n.icon-ion-chatbubble-working:before {\n\tcontent: \"\\f11d\";\n}\n\n.icon-ion-chatbubble:before {\n\tcontent: \"\\f11e\";\n}\n\n.icon-ion-chatbubbles:before {\n\tcontent: \"\\f11f\";\n}\n\n.icon-ion-checkmark-circled:before {\n\tcontent: \"\\f120\";\n}\n\n.icon-ion-checkmark-round:before {\n\tcontent: \"\\f121\";\n}\n\n.icon-ion-checkmark:before {\n\tcontent: \"\\f122\";\n}\n\n.icon-ion-chevron-down:before {\n\tcontent: \"\\f123\";\n}\n\n.icon-ion-chevron-left:before {\n\tcontent: \"\\f124\";\n}\n\n.icon-ion-chevron-right:before {\n\tcontent: \"\\f125\";\n}\n\n.icon-ion-chevron-up:before {\n\tcontent: \"\\f126\";\n}\n\n.icon-ion-clipboard:before {\n\tcontent: \"\\f127\";\n}\n\n.icon-ion-clock:before {\n\tcontent: \"\\f26e\";\n}\n\n.icon-ion-close-circled:before {\n\tcontent: \"\\f128\";\n}\n\n.icon-ion-close-round:before {\n\tcontent: \"\\f129\";\n}\n\n.icon-ion-close:before {\n\tcontent: \"\\f12a\";\n}\n\n.icon-ion-closed-captioning:before {\n\tcontent: \"\\f317\";\n}\n\n.icon-ion-cloud:before {\n\tcontent: \"\\f12b\";\n}\n\n.icon-ion-code-download:before {\n\tcontent: \"\\f26f\";\n}\n\n.icon-ion-code-working:before {\n\tcontent: \"\\f270\";\n}\n\n.icon-ion-code:before {\n\tcontent: \"\\f271\";\n}\n\n.icon-ion-coffee:before {\n\tcontent: \"\\f272\";\n}\n\n.icon-ion-compass:before {\n\tcontent: \"\\f273\";\n}\n\n.icon-ion-compose:before {\n\tcontent: \"\\f12c\";\n}\n\n.icon-ion-connection-bars:before {\n\tcontent: \"\\f274\";\n}\n\n.icon-ion-contrast:before {\n\tcontent: \"\\f275\";\n}\n\n.icon-ion-crop:before {\n\tcontent: \"\\f3c1\";\n}\n\n.icon-ion-cube:before {\n\tcontent: \"\\f318\";\n}\n\n.icon-ion-disc:before {\n\tcontent: \"\\f12d\";\n}\n\n.icon-ion-document-text:before {\n\tcontent: \"\\f12e\";\n}\n\n.icon-ion-document:before {\n\tcontent: \"\\f12f\";\n}\n\n.icon-ion-drag:before {\n\tcontent: \"\\f130\";\n}\n\n.icon-ion-earth:before {\n\tcontent: \"\\f276\";\n}\n\n.icon-ion-easel:before {\n\tcontent: \"\\f3c2\";\n}\n\n.icon-ion-edit:before {\n\tcontent: \"\\f2bf\";\n}\n\n.icon-ion-egg:before {\n\tcontent: \"\\f277\";\n}\n\n.icon-ion-eject:before {\n\tcontent: \"\\f131\";\n}\n\n.icon-ion-email-unread:before {\n\tcontent: \"\\f3c3\";\n}\n\n.icon-ion-email:before {\n\tcontent: \"\\f132\";\n}\n\n.icon-ion-erlenmeyer-flask-bubbles:before {\n\tcontent: \"\\f3c4\";\n}\n\n.icon-ion-erlenmeyer-flask:before {\n\tcontent: \"\\f3c5\";\n}\n\n.icon-ion-eye-disabled:before {\n\tcontent: \"\\f306\";\n}\n\n.icon-ion-eye:before {\n\tcontent: \"\\f133\";\n}\n\n.icon-ion-female:before {\n\tcontent: \"\\f278\";\n}\n\n.icon-ion-filing:before {\n\tcontent: \"\\f134\";\n}\n\n.icon-ion-film-marker:before {\n\tcontent: \"\\f135\";\n}\n\n.icon-ion-fireball:before {\n\tcontent: \"\\f319\";\n}\n\n.icon-ion-flag:before {\n\tcontent: \"\\f279\";\n}\n\n.icon-ion-flame:before {\n\tcontent: \"\\f31a\";\n}\n\n.icon-ion-flash-off:before {\n\tcontent: \"\\f136\";\n}\n\n.icon-ion-flash:before {\n\tcontent: \"\\f137\";\n}\n\n.icon-ion-folder:before {\n\tcontent: \"\\f139\";\n}\n\n.icon-ion-fork-repo:before {\n\tcontent: \"\\f2c0\";\n}\n\n.icon-ion-fork:before {\n\tcontent: \"\\f27a\";\n}\n\n.icon-ion-forward:before {\n\tcontent: \"\\f13a\";\n}\n\n.icon-ion-funnel:before {\n\tcontent: \"\\f31b\";\n}\n\n.icon-ion-gear-a:before {\n\tcontent: \"\\f13d\";\n}\n\n.icon-ion-gear-b:before {\n\tcontent: \"\\f13e\";\n}\n\n.icon-ion-grid:before {\n\tcontent: \"\\f13f\";\n}\n\n.icon-ion-hammer:before {\n\tcontent: \"\\f27b\";\n}\n\n.icon-ion-happy-outline:before {\n\tcontent: \"\\f3c6\";\n}\n\n.icon-ion-happy:before {\n\tcontent: \"\\f31c\";\n}\n\n.icon-ion-headphone:before {\n\tcontent: \"\\f140\";\n}\n\n.icon-ion-heart-broken:before {\n\tcontent: \"\\f31d\";\n}\n\n.icon-ion-heart:before {\n\tcontent: \"\\f141\";\n}\n\n.icon-ion-help-buoy:before {\n\tcontent: \"\\f27c\";\n}\n\n.icon-ion-help-circled:before {\n\tcontent: \"\\f142\";\n}\n\n.icon-ion-help:before {\n\tcontent: \"\\f143\";\n}\n\n.icon-ion-home:before {\n\tcontent: \"\\f144\";\n}\n\n.icon-ion-icecream:before {\n\tcontent: \"\\f27d\";\n}\n\n.icon-ion-image:before {\n\tcontent: \"\\f147\";\n}\n\n.icon-ion-images:before {\n\tcontent: \"\\f148\";\n}\n\n.icon-ion-information-circled:before {\n\tcontent: \"\\f149\";\n}\n\n.icon-ion-information:before {\n\tcontent: \"\\f14a\";\n}\n\n.icon-ion-ionic:before {\n\tcontent: \"\\f14b\";\n}\n\n.icon-ion-ios-alarm-outline:before {\n\tcontent: \"\\f3c7\";\n}\n\n.icon-ion-ios-alarm:before {\n\tcontent: \"\\f3c8\";\n}\n\n.icon-ion-ios-albums-outline:before {\n\tcontent: \"\\f3c9\";\n}\n\n.icon-ion-ios-albums:before {\n\tcontent: \"\\f3ca\";\n}\n\n.icon-ion-ios-americanfootball-outline:before {\n\tcontent: \"\\f3cb\";\n}\n\n.icon-ion-ios-americanfootball:before {\n\tcontent: \"\\f3cc\";\n}\n\n.icon-ion-ios-analytics-outline:before {\n\tcontent: \"\\f3cd\";\n}\n\n.icon-ion-ios-analytics:before {\n\tcontent: \"\\f3ce\";\n}\n\n.icon-ion-ios-arrow-back:before {\n\tcontent: \"\\f3cf\";\n}\n\n.icon-ion-ios-arrow-down:before {\n\tcontent: \"\\f3d0\";\n}\n\n.icon-ion-ios-arrow-forward:before {\n\tcontent: \"\\f3d1\";\n}\n\n.icon-ion-ios-arrow-left:before {\n\tcontent: \"\\f3d2\";\n}\n\n.icon-ion-ios-arrow-right:before {\n\tcontent: \"\\f3d3\";\n}\n\n.icon-ion-ios-arrow-thin-down:before {\n\tcontent: \"\\f3d4\";\n}\n\n.icon-ion-ios-arrow-thin-left:before {\n\tcontent: \"\\f3d5\";\n}\n\n.icon-ion-ios-arrow-thin-right:before {\n\tcontent: \"\\f3d6\";\n}\n\n.icon-ion-ios-arrow-thin-up:before {\n\tcontent: \"\\f3d7\";\n}\n\n.icon-ion-ios-arrow-up:before {\n\tcontent: \"\\f3d8\";\n}\n\n.icon-ion-ios-at-outline:before {\n\tcontent: \"\\f3d9\";\n}\n\n.icon-ion-ios-at:before {\n\tcontent: \"\\f3da\";\n}\n\n.icon-ion-ios-barcode-outline:before {\n\tcontent: \"\\f3db\";\n}\n\n.icon-ion-ios-barcode:before {\n\tcontent: \"\\f3dc\";\n}\n\n.icon-ion-ios-baseball-outline:before {\n\tcontent: \"\\f3dd\";\n}\n\n.icon-ion-ios-baseball:before {\n\tcontent: \"\\f3de\";\n}\n\n.icon-ion-ios-basketball-outline:before {\n\tcontent: \"\\f3df\";\n}\n\n.icon-ion-ios-basketball:before {\n\tcontent: \"\\f3e0\";\n}\n\n.icon-ion-ios-bell-outline:before {\n\tcontent: \"\\f3e1\";\n}\n\n.icon-ion-ios-bell:before {\n\tcontent: \"\\f3e2\";\n}\n\n.icon-ion-ios-body-outline:before {\n\tcontent: \"\\f3e3\";\n}\n\n.icon-ion-ios-body:before {\n\tcontent: \"\\f3e4\";\n}\n\n.icon-ion-ios-bolt-outline:before {\n\tcontent: \"\\f3e5\";\n}\n\n.icon-ion-ios-bolt:before {\n\tcontent: \"\\f3e6\";\n}\n\n.icon-ion-ios-book-outline:before {\n\tcontent: \"\\f3e7\";\n}\n\n.icon-ion-ios-book:before {\n\tcontent: \"\\f3e8\";\n}\n\n.icon-ion-ios-bookmarks-outline:before {\n\tcontent: \"\\f3e9\";\n}\n\n.icon-ion-ios-bookmarks:before {\n\tcontent: \"\\f3ea\";\n}\n\n.icon-ion-ios-box-outline:before {\n\tcontent: \"\\f3eb\";\n}\n\n.icon-ion-ios-box:before {\n\tcontent: \"\\f3ec\";\n}\n\n.icon-ion-ios-briefcase-outline:before {\n\tcontent: \"\\f3ed\";\n}\n\n.icon-ion-ios-briefcase:before {\n\tcontent: \"\\f3ee\";\n}\n\n.icon-ion-ios-browsers-outline:before {\n\tcontent: \"\\f3ef\";\n}\n\n.icon-ion-ios-browsers:before {\n\tcontent: \"\\f3f0\";\n}\n\n.icon-ion-ios-calculator-outline:before {\n\tcontent: \"\\f3f1\";\n}\n\n.icon-ion-ios-calculator:before {\n\tcontent: \"\\f3f2\";\n}\n\n.icon-ion-ios-calendar-outline:before {\n\tcontent: \"\\f3f3\";\n}\n\n.icon-ion-ios-calendar:before {\n\tcontent: \"\\f3f4\";\n}\n\n.icon-ion-ios-camera-outline:before {\n\tcontent: \"\\f3f5\";\n}\n\n.icon-ion-ios-camera:before {\n\tcontent: \"\\f3f6\";\n}\n\n.icon-ion-ios-cart-outline:before {\n\tcontent: \"\\f3f7\";\n}\n\n.icon-ion-ios-cart:before {\n\tcontent: \"\\f3f8\";\n}\n\n.icon-ion-ios-chatboxes-outline:before {\n\tcontent: \"\\f3f9\";\n}\n\n.icon-ion-ios-chatboxes:before {\n\tcontent: \"\\f3fa\";\n}\n\n.icon-ion-ios-chatbubble-outline:before {\n\tcontent: \"\\f3fb\";\n}\n\n.icon-ion-ios-chatbubble:before {\n\tcontent: \"\\f3fc\";\n}\n\n.icon-ion-ios-checkmark-empty:before {\n\tcontent: \"\\f3fd\";\n}\n\n.icon-ion-ios-checkmark-outline:before {\n\tcontent: \"\\f3fe\";\n}\n\n.icon-ion-ios-checkmark:before {\n\tcontent: \"\\f3ff\";\n}\n\n.icon-ion-ios-circle-filled:before {\n\tcontent: \"\\f400\";\n}\n\n.icon-ion-ios-circle-outline:before {\n\tcontent: \"\\f401\";\n}\n\n.icon-ion-ios-clock-outline:before {\n\tcontent: \"\\f402\";\n}\n\n.icon-ion-ios-clock:before {\n\tcontent: \"\\f403\";\n}\n\n.icon-ion-ios-close-empty:before {\n\tcontent: \"\\f404\";\n}\n\n.icon-ion-ios-close-outline:before {\n\tcontent: \"\\f405\";\n}\n\n.icon-ion-ios-close:before {\n\tcontent: \"\\f406\";\n}\n\n.icon-ion-ios-cloud-download-outline:before {\n\tcontent: \"\\f407\";\n}\n\n.icon-ion-ios-cloud-download:before {\n\tcontent: \"\\f408\";\n}\n\n.icon-ion-ios-cloud-outline:before {\n\tcontent: \"\\f409\";\n}\n\n.icon-ion-ios-cloud-upload-outline:before {\n\tcontent: \"\\f40a\";\n}\n\n.icon-ion-ios-cloud-upload:before {\n\tcontent: \"\\f40b\";\n}\n\n.icon-ion-ios-cloud:before {\n\tcontent: \"\\f40c\";\n}\n\n.icon-ion-ios-cloudy-night-outline:before {\n\tcontent: \"\\f40d\";\n}\n\n.icon-ion-ios-cloudy-night:before {\n\tcontent: \"\\f40e\";\n}\n\n.icon-ion-ios-cloudy-outline:before {\n\tcontent: \"\\f40f\";\n}\n\n.icon-ion-ios-cloudy:before {\n\tcontent: \"\\f410\";\n}\n\n.icon-ion-ios-cog-outline:before {\n\tcontent: \"\\f411\";\n}\n\n.icon-ion-ios-cog:before {\n\tcontent: \"\\f412\";\n}\n\n.icon-ion-ios-color-filter-outline:before {\n\tcontent: \"\\f413\";\n}\n\n.icon-ion-ios-color-filter:before {\n\tcontent: \"\\f414\";\n}\n\n.icon-ion-ios-color-wand-outline:before {\n\tcontent: \"\\f415\";\n}\n\n.icon-ion-ios-color-wand:before {\n\tcontent: \"\\f416\";\n}\n\n.icon-ion-ios-compose-outline:before {\n\tcontent: \"\\f417\";\n}\n\n.icon-ion-ios-compose:before {\n\tcontent: \"\\f418\";\n}\n\n.icon-ion-ios-contact-outline:before {\n\tcontent: \"\\f419\";\n}\n\n.icon-ion-ios-contact:before {\n\tcontent: \"\\f41a\";\n}\n\n.icon-ion-ios-copy-outline:before {\n\tcontent: \"\\f41b\";\n}\n\n.icon-ion-ios-copy:before {\n\tcontent: \"\\f41c\";\n}\n\n.icon-ion-ios-crop-strong:before {\n\tcontent: \"\\f41d\";\n}\n\n.icon-ion-ios-crop:before {\n\tcontent: \"\\f41e\";\n}\n\n.icon-ion-ios-download-outline:before {\n\tcontent: \"\\f41f\";\n}\n\n.icon-ion-ios-download:before {\n\tcontent: \"\\f420\";\n}\n\n.icon-ion-ios-drag:before {\n\tcontent: \"\\f421\";\n}\n\n.icon-ion-ios-email-outline:before {\n\tcontent: \"\\f422\";\n\t\n}\n\n.icon-ion-ios-email:before {\n\tcontent: \"\\f423\";\n}\n\n.icon-ion-ios-eye-outline:before {\n\tcontent: \"\\f424\";\n}\n\n.icon-ion-ios-eye:before {\n\tcontent: \"\\f425\";\n}\n\n.icon-ion-ios-fastforward-outline:before {\n\tcontent: \"\\f426\";\n}\n\n.icon-ion-ios-fastforward:before {\n\tcontent: \"\\f427\";\n}\n\n.icon-ion-ios-filing-outline:before {\n\tcontent: \"\\f428\";\n}\n\n.icon-ion-ios-filing:before {\n\tcontent: \"\\f429\";\n}\n\n.icon-ion-ios-film-outline:before {\n\tcontent: \"\\f42a\";\n}\n\n.icon-ion-ios-film:before {\n\tcontent: \"\\f42b\";\n}\n\n.icon-ion-ios-flag-outline:before {\n\tcontent: \"\\f42c\";\n}\n\n.icon-ion-ios-flag:before {\n\tcontent: \"\\f42d\";\n}\n\n.icon-ion-ios-flame-outline:before {\n\tcontent: \"\\f42e\";\n}\n\n.icon-ion-ios-flame:before {\n\tcontent: \"\\f42f\";\n}\n\n.icon-ion-ios-flask-outline:before {\n\tcontent: \"\\f430\";\n}\n\n.icon-ion-ios-flask:before {\n\tcontent: \"\\f431\";\n}\n\n.icon-ion-ios-flower-outline:before {\n\tcontent: \"\\f432\";\n}\n\n.icon-ion-ios-flower:before {\n\tcontent: \"\\f433\";\n}\n\n.icon-ion-ios-folder-outline:before {\n\tcontent: \"\\f434\";\n}\n\n.icon-ion-ios-folder:before {\n\tcontent: \"\\f435\";\n}\n\n.icon-ion-ios-football-outline:before {\n\tcontent: \"\\f436\";\n}\n\n.icon-ion-ios-football:before {\n\tcontent: \"\\f437\";\n}\n\n.icon-ion-ios-game-controller-a-outline:before {\n\tcontent: \"\\f438\";\n}\n\n.icon-ion-ios-game-controller-a:before {\n\tcontent: \"\\f439\";\n}\n\n.icon-ion-ios-game-controller-b-outline:before {\n\tcontent: \"\\f43a\";\n}\n\n.icon-ion-ios-game-controller-b:before {\n\tcontent: \"\\f43b\";\n}\n\n.icon-ion-ios-gear-outline:before {\n\tcontent: \"\\f43c\";\n}\n\n.icon-ion-ios-gear:before {\n\tcontent: \"\\f43d\";\n}\n\n.icon-ion-ios-glasses-outline:before {\n\tcontent: \"\\f43e\";\n}\n\n.icon-ion-ios-glasses:before {\n\tcontent: \"\\f43f\";\n}\n\n.icon-ion-ios-grid-view-outline:before {\n\tcontent: \"\\f440\";\n}\n\n.icon-ion-ios-grid-view:before {\n\tcontent: \"\\f441\";\n}\n\n.icon-ion-ios-heart-outline:before {\n\tcontent: \"\\f442\";\n}\n\n.icon-ion-ios-heart:before {\n\tcontent: \"\\f443\";\n}\n\n.icon-ion-ios-help-empty:before {\n\tcontent: \"\\f444\";\n}\n\n.icon-ion-ios-help-outline:before {\n\tcontent: \"\\f445\";\n}\n\n.icon-ion-ios-help:before {\n\tcontent: \"\\f446\";\n}\n\n.icon-ion-ios-home-outline:before {\n\tcontent: \"\\f447\";\n}\n\n.icon-ion-ios-home:before {\n\tcontent: \"\\f448\";\n}\n\n.icon-ion-ios-infinite-outline:before {\n\tcontent: \"\\f449\";\n}\n\n.icon-ion-ios-infinite:before {\n\tcontent: \"\\f44a\";\n}\n\n.icon-ion-ios-information-empty:before {\n\tcontent: \"\\f44b\";\n}\n\n.icon-ion-ios-information-outline:before {\n\tcontent: \"\\f44c\";\n}\n\n.icon-ion-ios-information:before {\n\tcontent: \"\\f44d\";\n}\n\n.icon-ion-ios-ionic-outline:before {\n\tcontent: \"\\f44e\";\n}\n\n.icon-ion-ios-keypad-outline:before {\n\tcontent: \"\\f44f\";\n}\n\n.icon-ion-ios-keypad:before {\n\tcontent: \"\\f450\";\n}\n\n.icon-ion-ios-lightbulb-outline:before {\n\tcontent: \"\\f451\";\n}\n\n.icon-ion-ios-lightbulb:before {\n\tcontent: \"\\f452\";\n}\n\n.icon-ion-ios-list-outline:before {\n\tcontent: \"\\f453\";\n}\n\n.icon-ion-ios-list:before {\n\tcontent: \"\\f454\";\n}\n\n.icon-ion-ios-location-outline:before {\n\tcontent: \"\\f455\";\n}\n\n.icon-ion-ios-location:before {\n\tcontent: \"\\f456\";\n}\n\n.icon-ion-ios-locked-outline:before {\n\tcontent: \"\\f457\";\n}\n\n.icon-ion-ios-locked:before {\n\tcontent: \"\\f458\";\n}\n\n.icon-ion-ios-loop-strong:before {\n\tcontent: \"\\f459\";\n}\n\n.icon-ion-ios-loop:before {\n\tcontent: \"\\f45a\";\n}\n\n.icon-ion-ios-medical-outline:before {\n\tcontent: \"\\f45b\";\n}\n\n.icon-ion-ios-medical:before {\n\tcontent: \"\\f45c\";\n}\n\n.icon-ion-ios-medkit-outline:before {\n\tcontent: \"\\f45d\";\n}\n\n.icon-ion-ios-medkit:before {\n\tcontent: \"\\f45e\";\n}\n\n.icon-ion-ios-mic-off:before {\n\tcontent: \"\\f45f\";\n}\n\n.icon-ion-ios-mic-outline:before {\n\tcontent: \"\\f460\";\n}\n\n.icon-ion-ios-mic:before {\n\tcontent: \"\\f461\";\n}\n\n.icon-ion-ios-minus-empty:before {\n\tcontent: \"\\f462\";\n}\n\n.icon-ion-ios-minus-outline:before {\n\tcontent: \"\\f463\";\n}\n\n.icon-ion-ios-minus:before {\n\tcontent: \"\\f464\";\n}\n\n.icon-ion-ios-monitor-outline:before {\n\tcontent: \"\\f465\";\n}\n\n.icon-ion-ios-monitor:before {\n\tcontent: \"\\f466\";\n}\n\n.icon-ion-ios-moon-outline:before {\n\tcontent: \"\\f467\";\n}\n\n.icon-ion-ios-moon:before {\n\tcontent: \"\\f468\";\n}\n\n.icon-ion-ios-more-outline:before {\n\tcontent: \"\\f469\";\n}\n\n.icon-ion-ios-more:before {\n\tcontent: \"\\f46a\";\n}\n\n.icon-ion-ios-musical-note:before {\n\tcontent: \"\\f46b\";\n}\n\n.icon-ion-ios-musical-notes:before {\n\tcontent: \"\\f46c\";\n}\n\n.icon-ion-ios-navigate-outline:before {\n\tcontent: \"\\f46d\";\n}\n\n.icon-ion-ios-navigate:before {\n\tcontent: \"\\f46e\";\n}\n\n.icon-ion-ios-nutrition-outline:before {\n\tcontent: \"\\f46f\";\n}\n\n.icon-ion-ios-nutrition:before {\n\tcontent: \"\\f470\";\n}\n\n.icon-ion-ios-paper-outline:before {\n\tcontent: \"\\f471\";\n}\n\n.icon-ion-ios-paper:before {\n\tcontent: \"\\f472\";\n}\n\n.icon-ion-ios-paperplane-outline:before {\n\tcontent: \"\\f473\";\n}\n\n.icon-ion-ios-paperplane:before {\n\tcontent: \"\\f474\";\n}\n\n.icon-ion-ios-partlysunny-outline:before {\n\tcontent: \"\\f475\";\n}\n\n.icon-ion-ios-partlysunny:before {\n\tcontent: \"\\f476\";\n}\n\n.icon-ion-ios-pause-outline:before {\n\tcontent: \"\\f477\";\n}\n\n.icon-ion-ios-pause:before {\n\tcontent: \"\\f478\";\n}\n\n.icon-ion-ios-paw-outline:before {\n\tcontent: \"\\f479\";\n}\n\n.icon-ion-ios-paw:before {\n\tcontent: \"\\f47a\";\n}\n\n.icon-ion-ios-people-outline:before {\n\tcontent: \"\\f47b\";\n}\n\n.icon-ion-ios-people:before {\n\tcontent: \"\\f47c\";\n}\n\n.icon-ion-ios-person-outline:before {\n\tcontent: \"\\f47d\";\n}\n\n.icon-ion-ios-person:before {\n\tcontent: \"\\f47e\";\n}\n\n.icon-ion-ios-personadd-outline:before {\n\tcontent: \"\\f47f\";\n}\n\n.icon-ion-ios-personadd:before {\n\tcontent: \"\\f480\";\n}\n\n.icon-ion-ios-photos-outline:before {\n\tcontent: \"\\f481\";\n}\n\n.icon-ion-ios-photos:before {\n\tcontent: \"\\f482\";\n}\n\n.icon-ion-ios-pie-outline:before {\n\tcontent: \"\\f483\";\n}\n\n.icon-ion-ios-pie:before {\n\tcontent: \"\\f484\";\n}\n\n.icon-ion-ios-pint-outline:before {\n\tcontent: \"\\f485\";\n}\n\n.icon-ion-ios-pint:before {\n\tcontent: \"\\f486\";\n}\n\n.icon-ion-ios-play-outline:before {\n\tcontent: \"\\f487\";\n}\n\n.icon-ion-ios-play:before {\n\tcontent: \"\\f488\";\n}\n\n.icon-ion-ios-plus-empty:before {\n\tcontent: \"\\f489\";\n}\n\n.icon-ion-ios-plus-outline:before {\n\tcontent: \"\\f48a\";\n}\n\n.icon-ion-ios-plus:before {\n\tcontent: \"\\f48b\";\n}\n\n.icon-ion-ios-pricetag-outline:before {\n\tcontent: \"\\f48c\";\n}\n\n.icon-ion-ios-pricetag:before {\n\tcontent: \"\\f48d\";\n}\n\n.icon-ion-ios-pricetags-outline:before {\n\tcontent: \"\\f48e\";\n}\n\n.icon-ion-ios-pricetags:before {\n\tcontent: \"\\f48f\";\n}\n\n.icon-ion-ios-printer-outline:before {\n\tcontent: \"\\f490\";\n}\n\n.icon-ion-ios-printer:before {\n\tcontent: \"\\f491\";\n}\n\n.icon-ion-ios-pulse-strong:before {\n\tcontent: \"\\f492\";\n}\n\n.icon-ion-ios-pulse:before {\n\tcontent: \"\\f493\";\n}\n\n.icon-ion-ios-rainy-outline:before {\n\tcontent: \"\\f494\";\n}\n\n.icon-ion-ios-rainy:before {\n\tcontent: \"\\f495\";\n}\n\n.icon-ion-ios-recording-outline:before {\n\tcontent: \"\\f496\";\n}\n\n.icon-ion-ios-recording:before {\n\tcontent: \"\\f497\";\n}\n\n.icon-ion-ios-redo-outline:before {\n\tcontent: \"\\f498\";\n}\n\n.icon-ion-ios-redo:before {\n\tcontent: \"\\f499\";\n}\n\n.icon-ion-ios-refresh-empty:before {\n\tcontent: \"\\f49a\";\n}\n\n.icon-ion-ios-refresh-outline:before {\n\tcontent: \"\\f49b\";\n}\n\n.icon-ion-ios-refresh:before {\n\tcontent: \"\\f49c\";\n}\n\n.icon-ion-ios-reload:before {\n\tcontent: \"\\f49d\";\n}\n\n.icon-ion-ios-reverse-camera-outline:before {\n\tcontent: \"\\f49e\";\n}\n\n.icon-ion-ios-reverse-camera:before {\n\tcontent: \"\\f49f\";\n}\n\n.icon-ion-ios-rewind-outline:before {\n\tcontent: \"\\f4a0\";\n}\n\n.icon-ion-ios-rewind:before {\n\tcontent: \"\\f4a1\";\n}\n\n.icon-ion-ios-rose-outline:before {\n\tcontent: \"\\f4a2\";\n}\n\n.icon-ion-ios-rose:before {\n\tcontent: \"\\f4a3\";\n}\n\n.icon-ion-ios-search-strong:before {\n\tcontent: \"\\f4a4\";\n}\n\n.icon-ion-ios-search:before {\n\tcontent: \"\\f4a5\";\n}\n\n.icon-ion-ios-settings-strong:before {\n\tcontent: \"\\f4a6\";\n}\n\n.icon-ion-ios-settings:before {\n\tcontent: \"\\f4a7\";\n}\n\n.icon-ion-ios-shuffle-strong:before {\n\tcontent: \"\\f4a8\";\n}\n\n.icon-ion-ios-shuffle:before {\n\tcontent: \"\\f4a9\";\n}\n\n.icon-ion-ios-skipbackward-outline:before {\n\tcontent: \"\\f4aa\";\n}\n\n.icon-ion-ios-skipbackward:before {\n\tcontent: \"\\f4ab\";\n}\n\n.icon-ion-ios-skipforward-outline:before {\n\tcontent: \"\\f4ac\";\n}\n\n.icon-ion-ios-skipforward:before {\n\tcontent: \"\\f4ad\";\n}\n\n.icon-ion-ios-snowy:before {\n\tcontent: \"\\f4ae\";\n}\n\n.icon-ion-ios-speedometer-outline:before {\n\tcontent: \"\\f4af\";\n}\n\n.icon-ion-ios-speedometer:before {\n\tcontent: \"\\f4b0\";\n}\n\n.icon-ion-ios-star-half:before {\n\tcontent: \"\\f4b1\";\n}\n\n.icon-ion-ios-star-outline:before {\n\tcontent: \"\\f4b2\";\n}\n\n.icon-ion-ios-star:before {\n\tcontent: \"\\f4b3\";\n}\n\n.icon-ion-ios-stopwatch-outline:before {\n\tcontent: \"\\f4b4\";\n}\n\n.icon-ion-ios-stopwatch:before {\n\tcontent: \"\\f4b5\";\n}\n\n.icon-ion-ios-sunny-outline:before {\n\tcontent: \"\\f4b6\";\n}\n\n.icon-ion-ios-sunny:before {\n\tcontent: \"\\f4b7\";\n}\n\n.icon-ion-ios-telephone-outline:before {\n\tcontent: \"\\f4b8\";\n}\n\n.icon-ion-ios-telephone:before {\n\tcontent: \"\\f4b9\";\n}\n\n.icon-ion-ios-tennisball-outline:before {\n\tcontent: \"\\f4ba\";\n}\n\n.icon-ion-ios-tennisball:before {\n\tcontent: \"\\f4bb\";\n}\n\n.icon-ion-ios-thunderstorm-outline:before {\n\tcontent: \"\\f4bc\";\n}\n\n.icon-ion-ios-thunderstorm:before {\n\tcontent: \"\\f4bd\";\n}\n\n.icon-ion-ios-time-outline:before {\n\tcontent: \"\\f4be\";\n}\n\n.icon-ion-ios-time:before {\n\tcontent: \"\\f4bf\";\n}\n\n.icon-ion-ios-timer-outline:before {\n\tcontent: \"\\f4c0\";\n}\n\n.icon-ion-ios-timer:before {\n\tcontent: \"\\f4c1\";\n}\n\n.icon-ion-ios-toggle-outline:before {\n\tcontent: \"\\f4c2\";\n}\n\n.icon-ion-ios-toggle:before {\n\tcontent: \"\\f4c3\";\n}\n\n.icon-ion-ios-trash-outline:before {\n\tcontent: \"\\f4c4\";\n}\n\n.icon-ion-ios-trash:before {\n\tcontent: \"\\f4c5\";\n}\n\n.icon-ion-ios-undo-outline:before {\n\tcontent: \"\\f4c6\";\n}\n\n.icon-ion-ios-undo:before {\n\tcontent: \"\\f4c7\";\n}\n\n.icon-ion-ios-unlocked-outline:before {\n\tcontent: \"\\f4c8\";\n}\n\n.icon-ion-ios-unlocked:before {\n\tcontent: \"\\f4c9\";\n}\n\n.icon-ion-ios-upload-outline:before {\n\tcontent: \"\\f4ca\";\n}\n\n.icon-ion-ios-upload:before {\n\tcontent: \"\\f4cb\";\n}\n\n.icon-ion-ios-videocam-outline:before {\n\tcontent: \"\\f4cc\";\n}\n\n.icon-ion-ios-videocam:before {\n\tcontent: \"\\f4cd\";\n}\n\n.icon-ion-ios-volume-high:before {\n\tcontent: \"\\f4ce\";\n}\n\n.icon-ion-ios-volume-low:before {\n\tcontent: \"\\f4cf\";\n}\n\n.icon-ion-ios-wineglass-outline:before {\n\tcontent: \"\\f4d0\";\n}\n\n.icon-ion-ios-wineglass:before {\n\tcontent: \"\\f4d1\";\n}\n\n.icon-ion-ios-world-outline:before {\n\tcontent: \"\\f4d2\";\n}\n\n.icon-ion-ios-world:before {\n\tcontent: \"\\f4d3\";\n}\n\n.icon-ion-ipad:before {\n\tcontent: \"\\f1f9\";\n}\n\n.icon-ion-iphone:before {\n\tcontent: \"\\f1fa\";\n}\n\n.icon-ion-ipod:before {\n\tcontent: \"\\f1fb\";\n}\n\n.icon-ion-jet:before {\n\tcontent: \"\\f295\";\n}\n\n.icon-ion-key:before {\n\tcontent: \"\\f296\";\n}\n\n.icon-ion-knife:before {\n\tcontent: \"\\f297\";\n}\n\n.icon-ion-laptop:before {\n\tcontent: \"\\f1fc\";\n}\n\n.icon-ion-leaf:before {\n\tcontent: \"\\f1fd\";\n}\n\n.icon-ion-levels:before {\n\tcontent: \"\\f298\";\n}\n\n.icon-ion-lightbulb:before {\n\tcontent: \"\\f299\";\n}\n\n.icon-ion-link:before {\n\tcontent: \"\\f1fe\";\n}\n\n.icon-ion-load-a:before {\n\tcontent: \"\\f29a\";\n}\n\n.icon-ion-load-b:before {\n\tcontent: \"\\f29b\";\n}\n\n.icon-ion-load-c:before {\n\tcontent: \"\\f29c\";\n}\n\n.icon-ion-load-d:before {\n\tcontent: \"\\f29d\";\n}\n\n.icon-ion-location:before {\n\tcontent: \"\\f1ff\";\n}\n\n.icon-ion-lock-combination:before {\n\tcontent: \"\\f4d4\";\n}\n\n.icon-ion-locked:before {\n\tcontent: \"\\f200\";\n}\n\n.icon-ion-log-in:before {\n\tcontent: \"\\f29e\";\n}\n\n.icon-ion-log-out:before {\n\tcontent: \"\\f29f\";\n}\n\n.icon-ion-loop:before {\n\tcontent: \"\\f201\";\n}\n\n.icon-ion-magnet:before {\n\tcontent: \"\\f2a0\";\n}\n\n.icon-ion-male:before {\n\tcontent: \"\\f2a1\";\n}\n\n.icon-ion-man:before {\n\tcontent: \"\\f202\";\n}\n\n.icon-ion-map:before {\n\tcontent: \"\\f203\";\n}\n\n.icon-ion-medkit:before {\n\tcontent: \"\\f2a2\";\n}\n\n.icon-ion-merge:before {\n\tcontent: \"\\f33f\";\n}\n\n.icon-ion-mic-a:before {\n\tcontent: \"\\f204\";\n}\n\n.icon-ion-mic-b:before {\n\tcontent: \"\\f205\";\n}\n\n.icon-ion-mic-c:before {\n\tcontent: \"\\f206\";\n}\n\n.icon-ion-minus-circled:before {\n\tcontent: \"\\f207\";\n}\n\n.icon-ion-minus-round:before {\n\tcontent: \"\\f208\";\n}\n\n.icon-ion-minus:before {\n\tcontent: \"\\f209\";\n}\n\n.icon-ion-model-s:before {\n\tcontent: \"\\f2c1\";\n}\n\n.icon-ion-monitor:before {\n\tcontent: \"\\f20a\";\n}\n\n.icon-ion-more:before {\n\tcontent: \"\\f20b\";\n}\n\n.icon-ion-mouse:before {\n\tcontent: \"\\f340\";\n}\n\n.icon-ion-music-note:before {\n\tcontent: \"\\f20c\";\n}\n\n.icon-ion-navicon-round:before {\n\tcontent: \"\\f20d\";\n}\n\n.icon-ion-navicon:before {\n\tcontent: \"\\f20e\";\n}\n\n.icon-ion-navigate:before {\n\tcontent: \"\\f2a3\";\n}\n\n.icon-ion-network:before {\n\tcontent: \"\\f341\";\n}\n\n.icon-ion-no-smoking:before {\n\tcontent: \"\\f2c2\";\n}\n\n.icon-ion-nuclear:before {\n\tcontent: \"\\f2a4\";\n}\n\n.icon-ion-outlet:before {\n\tcontent: \"\\f342\";\n}\n\n.icon-ion-paintbrush:before {\n\tcontent: \"\\f4d5\";\n}\n\n.icon-ion-paintbucket:before {\n\tcontent: \"\\f4d6\";\n}\n\n.icon-ion-paper-airplane:before {\n\tcontent: \"\\f2c3\";\n}\n\n.icon-ion-paperclip:before {\n\tcontent: \"\\f20f\";\n}\n\n.icon-ion-pause:before {\n\tcontent: \"\\f210\";\n}\n\n.icon-ion-person-add:before {\n\tcontent: \"\\f211\";\n}\n\n.icon-ion-person-stalker:before {\n\tcontent: \"\\f212\";\n}\n\n.icon-ion-person:before {\n\tcontent: \"\\f213\";\n}\n\n.icon-ion-pie-graph:before {\n\tcontent: \"\\f2a5\";\n}\n\n.icon-ion-pin:before {\n\tcontent: \"\\f2a6\";\n}\n\n.icon-ion-pinpoint:before {\n\tcontent: \"\\f2a7\";\n}\n\n.icon-ion-pizza:before {\n\tcontent: \"\\f2a8\";\n}\n\n.icon-ion-plane:before {\n\tcontent: \"\\f214\";\n}\n\n.icon-ion-planet:before {\n\tcontent: \"\\f343\";\n}\n\n.icon-ion-play:before {\n\tcontent: \"\\f215\";\n}\n\n.icon-ion-playstation:before {\n\tcontent: \"\\f30a\";\n}\n\n.icon-ion-plus-circled:before {\n\tcontent: \"\\f216\";\n}\n\n.icon-ion-plus-round:before {\n\tcontent: \"\\f217\";\n}\n\n.icon-ion-plus:before {\n\tcontent: \"\\f218\";\n}\n\n.icon-ion-podium:before {\n\tcontent: \"\\f344\";\n}\n\n.icon-ion-pound:before {\n\tcontent: \"\\f219\";\n}\n\n.icon-ion-power:before {\n\tcontent: \"\\f2a9\";\n}\n\n.icon-ion-pricetag:before {\n\tcontent: \"\\f2aa\";\n}\n\n.icon-ion-pricetags:before {\n\tcontent: \"\\f2ab\";\n}\n\n.icon-ion-printer:before {\n\tcontent: \"\\f21a\";\n}\n\n.icon-ion-pull-request:before {\n\tcontent: \"\\f345\";\n}\n\n.icon-ion-qr-scanner:before {\n\tcontent: \"\\f346\";\n}\n\n.icon-ion-quote:before {\n\tcontent: \"\\f347\";\n}\n\n.icon-ion-radio-waves:before {\n\tcontent: \"\\f2ac\";\n}\n\n.icon-ion-record:before {\n\tcontent: \"\\f21b\";\n}\n\n.icon-ion-refresh:before {\n\tcontent: \"\\f21c\";\n}\n\n.icon-ion-reply-all:before {\n\tcontent: \"\\f21d\";\n}\n\n.icon-ion-reply:before {\n\tcontent: \"\\f21e\";\n}\n\n.icon-ion-ribbon-a:before {\n\tcontent: \"\\f348\";\n}\n\n.icon-ion-ribbon-b:before {\n\tcontent: \"\\f349\";\n}\n\n.icon-ion-sad-outline:before {\n\tcontent: \"\\f4d7\";\n}\n\n.icon-ion-sad:before {\n\tcontent: \"\\f34a\";\n}\n\n.icon-ion-scissors:before {\n\tcontent: \"\\f34b\";\n}\n\n.icon-ion-search:before {\n\tcontent: \"\\f21f\";\n}\n\n.icon-ion-settings:before {\n\tcontent: \"\\f2ad\";\n}\n\n.icon-ion-share:before {\n\tcontent: \"\\f220\";\n}\n\n.icon-ion-shuffle:before {\n\tcontent: \"\\f221\";\n}\n\n.icon-ion-skip-backward:before {\n\tcontent: \"\\f222\";\n}\n\n.icon-ion-skip-forward:before {\n\tcontent: \"\\f223\";\n}\n\n.icon-ion-social-android-outline:before {\n\tcontent: \"\\f224\";\n}\n\n.icon-ion-social-android:before {\n\tcontent: \"\\f225\";\n}\n\n.icon-ion-social-angular-outline:before {\n\tcontent: \"\\f4d8\";\n}\n\n.icon-ion-social-angular:before {\n\tcontent: \"\\f4d9\";\n}\n\n.icon-ion-social-apple-outline:before {\n\tcontent: \"\\f226\";\n}\n\n.icon-ion-social-apple:before {\n\tcontent: \"\\f227\";\n}\n\n.icon-ion-social-bitcoin-outline:before {\n\tcontent: \"\\f2ae\";\n}\n\n.icon-ion-social-bitcoin:before {\n\tcontent: \"\\f2af\";\n}\n\n.icon-ion-social-buffer-outline:before {\n\tcontent: \"\\f228\";\n}\n\n.icon-ion-social-buffer:before {\n\tcontent: \"\\f229\";\n}\n\n.icon-ion-social-chrome-outline:before {\n\tcontent: \"\\f4da\";\n}\n\n.icon-ion-social-chrome:before {\n\tcontent: \"\\f4db\";\n}\n\n.icon-ion-social-codepen-outline:before {\n\tcontent: \"\\f4dc\";\n}\n\n.icon-ion-social-codepen:before {\n\tcontent: \"\\f4dd\";\n}\n\n.icon-ion-social-css3-outline:before {\n\tcontent: \"\\f4de\";\n}\n\n.icon-ion-social-css3:before {\n\tcontent: \"\\f4df\";\n}\n\n.icon-ion-social-designernews-outline:before {\n\tcontent: \"\\f22a\";\n}\n\n.icon-ion-social-designernews:before {\n\tcontent: \"\\f22b\";\n}\n\n.icon-ion-social-dribbble-outline:before {\n\tcontent: \"\\f22c\";\n}\n\n.icon-ion-social-dribbble:before {\n\tcontent: \"\\f22d\";\n}\n\n.icon-ion-social-dropbox-outline:before {\n\tcontent: \"\\f22e\";\n}\n\n.icon-ion-social-dropbox:before {\n\tcontent: \"\\f22f\";\n}\n\n.icon-ion-social-euro-outline:before {\n\tcontent: \"\\f4e0\";\n}\n\n.icon-ion-social-euro:before {\n\tcontent: \"\\f4e1\";\n}\n\n.icon-ion-social-facebook-outline:before {\n\tcontent: \"\\f230\";\n}\n\n.icon-ion-social-facebook:before {\n\tcontent: \"\\f231\";\n}\n\n.icon-ion-social-foursquare-outline:before {\n\tcontent: \"\\f34c\";\n}\n\n.icon-ion-social-foursquare:before {\n\tcontent: \"\\f34d\";\n}\n\n.icon-ion-social-freebsd-devil:before {\n\tcontent: \"\\f2c4\";\n}\n\n.icon-ion-social-github-outline:before {\n\tcontent: \"\\f232\";\n}\n\n.icon-ion-social-github:before {\n\tcontent: \"\\f233\";\n}\n\n.icon-ion-social-google-outline:before {\n\tcontent: \"\\f34e\";\n}\n\n.icon-ion-social-google:before {\n\tcontent: \"\\f34f\";\n}\n\n.icon-ion-social-googleplus-outline:before {\n\tcontent: \"\\f234\";\n}\n\n.icon-ion-social-googleplus:before {\n\tcontent: \"\\f235\";\n}\n\n.icon-ion-social-hackernews-outline:before {\n\tcontent: \"\\f236\";\n}\n\n.icon-ion-social-hackernews:before {\n\tcontent: \"\\f237\";\n}\n\n.icon-ion-social-html5-outline:before {\n\tcontent: \"\\f4e2\";\n}\n\n.icon-ion-social-html5:before {\n\tcontent: \"\\f4e3\";\n}\n\n.icon-ion-social-instagram-outline:before {\n\tcontent: \"\\f350\";\n}\n\n.icon-ion-social-instagram:before {\n\tcontent: \"\\f351\";\n}\n\n.icon-ion-social-javascript-outline:before {\n\tcontent: \"\\f4e4\";\n}\n\n.icon-ion-social-javascript:before {\n\tcontent: \"\\f4e5\";\n}\n\n.icon-ion-social-linkedin-outline:before {\n\tcontent: \"\\f238\";\n}\n\n.icon-ion-social-linkedin:before {\n\tcontent: \"\\f239\";\n}\n\n.icon-ion-social-markdown:before {\n\tcontent: \"\\f4e6\";\n}\n\n.icon-ion-social-nodejs:before {\n\tcontent: \"\\f4e7\";\n}\n\n.icon-ion-social-octocat:before {\n\tcontent: \"\\f4e8\";\n}\n\n.icon-ion-social-pinterest-outline:before {\n\tcontent: \"\\f2b0\";\n}\n\n.icon-ion-social-pinterest:before {\n\tcontent: \"\\f2b1\";\n}\n\n.icon-ion-social-python:before {\n\tcontent: \"\\f4e9\";\n}\n\n.icon-ion-social-reddit-outline:before {\n\tcontent: \"\\f23a\";\n}\n\n.icon-ion-social-reddit:before {\n\tcontent: \"\\f23b\";\n}\n\n.icon-ion-social-rss-outline:before {\n\tcontent: \"\\f23c\";\n}\n\n.icon-ion-social-rss:before {\n\tcontent: \"\\f23d\";\n}\n\n.icon-ion-social-sass:before {\n\tcontent: \"\\f4ea\";\n}\n\n.icon-ion-social-skype-outline:before {\n\tcontent: \"\\f23e\";\n}\n\n.icon-ion-social-skype:before {\n\tcontent: \"\\f23f\";\n}\n\n.icon-ion-social-snapchat-outline:before {\n\tcontent: \"\\f4eb\";\n}\n\n.icon-ion-social-snapchat:before {\n\tcontent: \"\\f4ec\";\n}\n\n.icon-ion-social-tumblr-outline:before {\n\tcontent: \"\\f240\";\n}\n\n.icon-ion-social-tumblr:before {\n\tcontent: \"\\f241\";\n}\n\n.icon-ion-social-tux:before {\n\tcontent: \"\\f2c5\";\n}\n\n.icon-ion-social-twitch-outline:before {\n\tcontent: \"\\f4ed\";\n}\n\n.icon-ion-social-twitch:before {\n\tcontent: \"\\f4ee\";\n}\n\n.icon-ion-social-twitter-outline:before {\n\tcontent: \"\\f242\";\n}\n\n.icon-ion-social-twitter:before {\n\tcontent: \"\\f243\";\n}\n\n.icon-ion-social-usd-outline:before {\n\tcontent: \"\\f352\";\n}\n\n.icon-ion-social-usd:before {\n\tcontent: \"\\f353\";\n}\n\n.icon-ion-social-vimeo-outline:before {\n\tcontent: \"\\f244\";\n}\n\n.icon-ion-social-vimeo:before {\n\tcontent: \"\\f245\";\n}\n\n.icon-ion-social-whatsapp-outline:before {\n\tcontent: \"\\f4ef\";\n}\n\n.icon-ion-social-whatsapp:before {\n\tcontent: \"\\f4f0\";\n}\n\n.icon-ion-social-windows-outline:before {\n\tcontent: \"\\f246\";\n}\n\n.icon-ion-social-windows:before {\n\tcontent: \"\\f247\";\n}\n\n.icon-ion-social-wordpress-outline:before {\n\tcontent: \"\\f248\";\n}\n\n.icon-ion-social-wordpress:before {\n\tcontent: \"\\f249\";\n}\n\n.icon-ion-social-yahoo-outline:before {\n\tcontent: \"\\f24a\";\n}\n\n.icon-ion-social-yahoo:before {\n\tcontent: \"\\f24b\";\n}\n\n.icon-ion-social-yen-outline:before {\n\tcontent: \"\\f4f1\";\n}\n\n.icon-ion-social-yen:before {\n\tcontent: \"\\f4f2\";\n}\n\n.icon-ion-social-youtube-outline:before {\n\tcontent: \"\\f24c\";\n}\n\n.icon-ion-social-youtube:before {\n\tcontent: \"\\f24d\";\n}\n\n.icon-ion-soup-can-outline:before {\n\tcontent: \"\\f4f3\";\n}\n\n.icon-ion-soup-can:before {\n\tcontent: \"\\f4f4\";\n}\n\n.icon-ion-speakerphone:before {\n\tcontent: \"\\f2b2\";\n}\n\n.icon-ion-speedometer:before {\n\tcontent: \"\\f2b3\";\n}\n\n.icon-ion-spoon:before {\n\tcontent: \"\\f2b4\";\n}\n\n.icon-ion-star:before {\n\tcontent: \"\\f24e\";\n}\n\n.icon-ion-stats-bars:before {\n\tcontent: \"\\f2b5\";\n}\n\n.icon-ion-steam:before {\n\tcontent: \"\\f30b\";\n}\n\n.icon-ion-stop:before {\n\tcontent: \"\\f24f\";\n}\n\n.icon-ion-thermometer:before {\n\tcontent: \"\\f2b6\";\n}\n\n.icon-ion-thumbsdown:before {\n\tcontent: \"\\f250\";\n}\n\n.icon-ion-thumbsup:before {\n\tcontent: \"\\f251\";\n}\n\n.icon-ion-toggle-filled:before {\n\tcontent: \"\\f354\";\n}\n\n.icon-ion-toggle:before {\n\tcontent: \"\\f355\";\n}\n\n.icon-ion-transgender:before {\n\tcontent: \"\\f4f5\";\n}\n\n.icon-ion-trash-a:before {\n\tcontent: \"\\f252\";\n}\n\n.icon-ion-trash-b:before {\n\tcontent: \"\\f253\";\n}\n\n.icon-ion-trophy:before {\n\tcontent: \"\\f356\";\n}\n\n.icon-ion-tshirt-outline:before {\n\tcontent: \"\\f4f6\";\n}\n\n.icon-ion-tshirt:before {\n\tcontent: \"\\f4f7\";\n}\n\n.icon-ion-umbrella:before {\n\tcontent: \"\\f2b7\";\n}\n\n.icon-ion-university:before {\n\tcontent: \"\\f357\";\n}\n\n.icon-ion-unlocked:before {\n\tcontent: \"\\f254\";\n}\n\n.icon-ion-upload:before {\n\tcontent: \"\\f255\";\n}\n\n.icon-ion-usb:before {\n\tcontent: \"\\f2b8\";\n}\n\n.icon-ion-videocamera:before {\n\tcontent: \"\\f256\";\n}\n\n.icon-ion-volume-high:before {\n\tcontent: \"\\f257\";\n}\n\n.icon-ion-volume-low:before {\n\tcontent: \"\\f258\";\n}\n\n.icon-ion-volume-medium:before {\n\tcontent: \"\\f259\";\n}\n\n.icon-ion-volume-mute:before {\n\tcontent: \"\\f25a\";\n}\n\n.icon-ion-wand:before {\n\tcontent: \"\\f358\";\n}\n\n.icon-ion-waterdrop:before {\n\tcontent: \"\\f25b\";\n}\n\n.icon-ion-wifi:before {\n\tcontent: \"\\f25c\";\n}\n\n.icon-ion-wineglass:before {\n\tcontent: \"\\f2b9\";\n}\n\n.icon-ion-woman:before {\n\tcontent: \"\\f25d\";\n}\n\n.icon-ion-wrench:before {\n\tcontent: \"\\f2ba\";\n}\n\n.icon-ion-xbox:before {\n\tcontent: \"\\f30c\";\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./src/global.css":
/*!************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!./node_modules/postcss-loader/src??ref--7-oneOf-3-2!./src/global.css ***!
  \************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "@charset \"UTF-8\";.v-context,.v-context ul{background-color:#fff;background-clip:padding-box;border-radius:.25rem;border:1px solid rgba(0,0,0,.15);box-shadow:0 0.10417vw 0.10417vw #00000024,0 0.15625vw 1px -0.10417vw #0003,0 1px 0.26042vw #0000001f;display:block;margin:0;padding:0.52083vw 0;min-width:10rem;z-index:1500;position:fixed;list-style:none;box-sizing:border-box;max-height:calc(100% - 2.60417vw);overflow-y:auto}.v-context>li,.v-context ul>li{margin:0;position:relative}.v-context>li>a,.v-context ul>li>a{display:block;padding:.5rem 1.5rem;font-weight:400;color:#212529;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.v-context>li>a:hover,.v-context>li>a:focus,.v-context ul>li>a:hover,.v-context ul>li>a:focus{text-decoration:none;color:#212529;background-color:#f8f9fa}.v-context>li>a:focus,.v-context ul>li>a:focus{outline:0}.v-context:focus,.v-context ul:focus{outline:0}.v-context__sub>a:after{content:\"›\";float:right;padding-left:1rem}.v-context__sub>ul{display:none}\n\n.v-context {\n    font-size: 0.72917vw;\n}\n\n.v-context > li > a {\n    padding: .4rem 1rem;\n}\n\n* {\n    margin: 0;\n    padding: 0;\n    box-sizing: border-box;\n    -webkit-app-region: no-drag;\n}\n\nimg.emoji {\n    height: 1em !important;\n    width: 1em !important;\n    margin: 0 .05em 0 .1em;\n    vertical-align: -0.1em;\n    -webkit-user-select: none;\n       -moz-user-select: none;\n            user-select: none;\n}\n\n.single-line {\n    max-width: 100%;\n    text-overflow: ellipsis;\n    overflow: hidden;\n    white-space: nowrap;\n}\n\nul,\nol {\n    list-style: none;\n}\n\ndiv,\nbutton,\nimg,\nvideo {\n    outline: none;\n}\n\np,\ndiv {\n    word-break: break-all;\n    -webkit-user-select: none;\n       -moz-user-select: none;\n            user-select: none;\n}\n\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./src/wfc.css":
/*!*********************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!./node_modules/postcss-loader/src??ref--7-oneOf-3-2!./src/wfc.css ***!
  \*********************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".flex-row {\n    display: flex;\n}\n\n.flex-column {\n    display: flex;\n    flex-direction: column;\n}\n\n.flex-1 {\n    flex: 1;\n    overflow: hidden;\n}\n\n.flex-justify-center {\n    justify-content: center;\n}\n\n.flex-justify-start {\n    justify-content: flex-start;\n}\n\n.flex-justify-end {\n    justify-content: flex-end;\n}\n\n.flex-align-start {\n    align-items: flex-start;\n}\n\n.flex-align-center {\n    align-items: center;\n}\n\n.flex-align-end {\n    align-items: flex-end;\n}\n\n.relative {\n    position: relative;\n}\n\n.full-height {\n    height: 100%;\n}\n\n.full-width {\n    width: 100%;\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/common/AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/common/AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.alert-content-container[data-v-28d02aa2] {\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  height: 100%;\n  justify-content: center;\n  align-items: center;\n  box-shadow: 0 0.20833vw 0.41667vw 0 rgba(0, 0, 0, 0.2), 0 0.3125vw 1.04167vw 0 rgba(0, 0, 0, 0.19);\n}\n.portrait-container[data-v-28d02aa2] {\n  width: 3.125vw;\n  height: 3.125vw;\n  margin: 0.52083vw 0;\n}\n.portrait-container > img[data-v-28d02aa2] {\n  width: 100%;\n  height: 100%;\n}\n.title[data-v-28d02aa2] {\n  font-size: 0.78125vw;\n  text-align: center;\n  padding-top: 0.52083vw;\n}\n.content[data-v-28d02aa2] {\n  font-size: 0.72917vw;\n  padding: 0.52083vw;\n  flex: 1;\n}\n.action-container[data-v-28d02aa2] {\n  display: flex;\n  width: 100%;\n  height: 2.08333vw;\n  margin-bottom: 1.04167vw;\n  flex-direction: row-reverse;\n  justify-content: space-around;\n  align-items: center;\n}\n.action-container button[data-v-28d02aa2] {\n  flex: 1;\n  border-radius: 0.20833vw;\n  padding: 0.26042vw 0;\n  margin: 0 0.78125vw;\n  border: 1px solid #cccccc;\n}\n.action-container .confirm[data-v-28d02aa2] {\n  background: #4168e0ef;\n  color: white;\n}\n.action-container .cancel[data-v-28d02aa2] {\n  color: black;\n  background: white;\n}\n.action-container .cancel[data-v-28d02aa2]:active {\n  background: lightgrey;\n  color: black;\n}\n.action-container .confirm[data-v-28d02aa2]:active {\n  background: #4168e0;\n  color: white;\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.pick-user-container[data-v-9db52e12] {\n  display: flex;\n  height: 100%;\n  width: 100%;\n}\n.user-list-panel[data-v-9db52e12] {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  background-color: #f7f7f7;\n  overflow: hidden;\n}\n.user-list-panel .input-container[data-v-9db52e12] {\n  display: flex;\n  width: 100%;\n}\n.user-list-panel input[data-v-9db52e12] {\n  height: 1.30208vw;\n  margin: 0.78125vw 1.04167vw 0 0.78125vw;\n  flex: 1;\n  border-radius: 0.15625vw;\n  border: 1px solid #ededed;\n  background-color: white;\n  padding-left: 0.52083vw;\n  text-align: left;\n}\n.user-list-panel .user-list-container[data-v-9db52e12] {\n  height: 100%;\n  overflow: auto;\n}\n.user-list-container .back[data-v-9db52e12] {\n  background-color: #f7f7f7;\n  height: 2.08333vw;\n  font-size: 0.67708vw;\n  padding-left: 0.78125vw;\n  display: flex;\n  align-items: center;\n}\n.user-list-container .back[data-v-9db52e12]:active {\n  background-color: #e5e5e5;\n}\n.checked-user-list-container[data-v-9db52e12] {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n}\n.checked-user-list-container header[data-v-9db52e12] {\n  height: 2.86458vw;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n.checked-user-list-container header h2[data-v-9db52e12] {\n  font-size: 0.83333vw;\n  font-weight: normal;\n  margin-left: 1.5625vw;\n}\n.checked-user-list-container header span[data-v-9db52e12] {\n  font-size: 0.625vw;\n  margin-right: 1.04167vw;\n}\n.checked-user-list-container .content[data-v-9db52e12] {\n  height: 100%;\n  flex: 1;\n  display: flex;\n  padding: 0 1.5625vw;\n  flex-wrap: wrap;\n  justify-content: flex-start;\n  align-items: flex-start;\n  align-content: flex-start;\n  overflow: auto;\n}\n.checked-user-list-container .content .picked-user-container[data-v-9db52e12] {\n  width: 33%;\n  display: flex;\n  flex-direction: column;\n  -moz-column-count: 1;\n       column-count: 1;\n  justify-content: center;\n  align-items: center;\n  padding: 0.26042vw 0.52083vw;\n  overflow: hidden;\n}\n.checked-user-list-container .content .picked-user-container .name[data-v-9db52e12] {\n  text-align: center;\n  max-width: 4.16667vw;\n  font-size: 0.625vw;\n}\n.checked-user-list-container .content .picked-user-container .picked-user[data-v-9db52e12] {\n  position: relative;\n  height: 3.38542vw;\n  width: 3.38542vw;\n}\n.checked-user-list-container .content .avatar[data-v-9db52e12] {\n  width: 2.34375vw;\n  height: 2.34375vw;\n  margin: 0.52083vw 0.52083vw;\n  border-radius: 0.15625vw;\n}\n.checked-user-list-container .content .unpick-button[data-v-9db52e12] {\n  position: absolute;\n  width: 1.04167vw;\n  height: 1.04167vw;\n  border: 1px solid white;\n  border-radius: 0.52083vw;\n  top: 0;\n  right: 0;\n}\n.checked-user-list-container .content .unpick-button[data-v-9db52e12]:active {\n  background-color: #e5e5e5;\n}\n.checked-user-list-container footer[data-v-9db52e12] {\n  height: 2.86458vw;\n  display: flex;\n  justify-content: flex-end;\n  align-items: center;\n  margin-bottom: 0.52083vw;\n}\n.checked-user-list-container footer button[data-v-9db52e12] {\n  padding: 0.26042vw 1.5625vw;\n  border-radius: 0.20833vw;\n  border: 1px solid #cccccc;\n}\n.checked-user-list-container footer button.confirm[data-v-9db52e12] {\n  background-color: #4168e0;\n  color: white;\n  margin-left: 1.04167vw;\n  margin-right: 1.04167vw;\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.pick-conversation-container[data-v-3a34665c] {\n  display: flex;\n  height: 100%;\n  width: 100%;\n}\n.conversation-list-panel[data-v-3a34665c] {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  background-color: #f7f7f7;\n  overflow: hidden;\n}\n.conversation-list-panel .input-container[data-v-3a34665c] {\n  display: flex;\n  width: 100%;\n}\n.conversation-list-panel .input-container input[data-v-3a34665c] {\n  height: 1.30208vw;\n  margin: 0.78125vw 1.04167vw 0 0.78125vw;\n  flex: 1;\n  border-radius: 0.15625vw;\n  border: 1px solid #ededed;\n  background-color: white;\n  padding-left: 0.52083vw;\n  text-align: left;\n}\n.conversation-list-panel .create-group[data-v-3a34665c] {\n  background-color: #f7f7f7;\n  height: 2.08333vw;\n  font-size: 0.67708vw;\n  padding-left: 0.78125vw;\n  display: flex;\n  align-items: center;\n}\n.conversation-list-panel .create-group[data-v-3a34665c]:active {\n  background-color: #e5e5e5;\n}\n.conversation-list-container[data-v-3a34665c] {\n  overflow: auto;\n}\n.conversation-list-container > p[data-v-3a34665c] {\n  position: sticky;\n  background-color: #f7f7f7;\n  font-size: 0.625vw;\n  color: #888888;\n  z-index: 1;\n  top: 0;\n  padding-left: 0.78125vw;\n}\n.conversation-item[data-v-3a34665c] {\n  width: 100%;\n  height: 3.64583vw;\n  display: flex;\n  flex-direction: row;\n  border-bottom: 1px solid #eeeeee;\n  align-items: center;\n  justify-content: flex-start;\n  padding-left: 0.78125vw;\n}\n.conversation-item[data-v-3a34665c]:active {\n  background-color: #d6d6d6;\n}\n.conversation-item .header[data-v-3a34665c] {\n  height: 100%;\n  padding: 0.52083vw 0.625vw 0.52083vw 0.78125vw;\n}\n.conversation-item .header .avatar[data-v-3a34665c] {\n  position: relative;\n  width: 2.34375vw;\n  height: 2.34375vw;\n  display: inline-block;\n  top: 50%;\n  background: #d6d6d6;\n  transform: translateY(-50%);\n  border-radius: 0.15625vw;\n}\n.conversation-item .title[data-v-3a34665c] {\n  font-size: 0.72917vw;\n  color: #262626;\n  font-style: normal;\n  font-weight: normal;\n  padding-right: 0.52083vw;\n}\n.checkbox[data-v-3a34665c] {\n  margin-right: 0;\n}\n.checked-conversation-list-container[data-v-3a34665c] {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n}\n.checked-conversation-list-container header[data-v-3a34665c] {\n  height: 2.86458vw;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n.checked-conversation-list-container header h2[data-v-3a34665c] {\n  font-size: 0.83333vw;\n  font-weight: normal;\n  margin-left: 1.5625vw;\n}\n.checked-conversation-list-container header span[data-v-3a34665c] {\n  font-size: 0.625vw;\n  margin-right: 1.04167vw;\n}\n.checked-conversation-list-container .content[data-v-3a34665c] {\n  height: 100%;\n  flex: 1;\n  display: flex;\n  padding: 0 1.5625vw;\n  flex-wrap: wrap;\n  justify-content: flex-start;\n  align-items: flex-start;\n  align-content: flex-start;\n  overflow: auto;\n}\n.checked-conversation-list-container .content .picked-user-container[data-v-3a34665c] {\n  width: 33%;\n  display: flex;\n  flex-direction: column;\n  -moz-column-count: 1;\n       column-count: 1;\n  justify-content: center;\n  align-items: center;\n  padding: 0.26042vw 0.52083vw;\n  overflow: hidden;\n}\n.checked-conversation-list-container .content .picked-user-container .name[data-v-3a34665c] {\n  text-align: center;\n  max-width: 4.16667vw;\n  font-size: 0.625vw;\n}\n.checked-conversation-list-container .content .picked-user-container .picked-user[data-v-3a34665c] {\n  position: relative;\n  height: 3.38542vw;\n  width: 3.38542vw;\n}\n.checked-conversation-list-container .content .avatar[data-v-3a34665c] {\n  width: 2.34375vw;\n  height: 2.34375vw;\n  margin: 0.52083vw 0.52083vw;\n  display: inline-block;\n  background: #d6d6d6;\n  border-radius: 0.15625vw;\n}\n.checked-conversation-list-container .content .unpick-button[data-v-3a34665c] {\n  position: absolute;\n  width: 1.04167vw;\n  height: 1.04167vw;\n  border: 1px solid #e5e5e5;\n  border-radius: 0.52083vw;\n  top: 0;\n  right: 0;\n}\n.checked-conversation-list-container .content .unpick-button[data-v-3a34665c]:active {\n  background-color: #e5e5e5;\n}\n.checked-conversation-list-container footer[data-v-3a34665c] {\n  height: 2.86458vw;\n  display: flex;\n  justify-content: flex-end;\n  align-items: center;\n  margin-bottom: 0.52083vw;\n}\n.checked-conversation-list-container footer button[data-v-3a34665c] {\n  padding: 0.26042vw 1.5625vw;\n  border-radius: 0.20833vw;\n  border: 1px solid #cccccc;\n}\n.checked-conversation-list-container footer button.confirm[data-v-3a34665c] {\n  background-color: #4168e0;\n  margin-left: 1.04167vw;\n  color: white;\n  margin-right: 1.04167vw;\n}\n.checked-conversation-list-container label[data-v-3a34665c] {\n  width: 100%;\n  padding: 0.26042vw 0.52083vw;\n  height: 1.5625vw;\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.forward-message-container[data-v-8df1e6fe] {\n  width: 100%;\n  padding: 0 1.5625vw;\n}\n.forward-message[data-v-8df1e6fe] {\n  display: flex;\n  max-width: 100%;\n  border-radius: 0.26042vw;\n  justify-content: center;\n  max-height: 5.20833vw;\n  overflow: hidden;\n}\n.forward-message p[data-v-8df1e6fe] {\n  padding: 0.26042vw 0.52083vw;\n  border-radius: 0.26042vw;\n  word-wrap: break-word;\n  word-break: break-all;\n  color: #aaaaaa;\n  font-size: 0.67708vw;\n  overflow: hidden;\n  background-color: #e7e7e7;\n  text-overflow: ellipsis;\n}\n.forward-message img[data-v-8df1e6fe] {\n  max-width: 10.41667vw;\n  max-height: 10.41667vw;\n  border-radius: 0.15625vw;\n}\n.forward-message-container label input[data-v-8df1e6fe] {\n  width: 100%;\n  margin: 1.04167vw 0;\n  outline: none;\n  border-top: 0;\n  border-right: 0;\n  border-left: 0;\n  border-bottom: 1px solid #e6e6e6;\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true":
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.organization-tree-container[data-v-ab1b3144] {\n  display: flex;\n  height: 100%;\n  flex-direction: column;\n  border-top-right-radius: var(--main-border-radius);\n  border-bottom-right-radius: var(--main-border-radius);\n}\n.member-list-container[data-v-ab1b3144] {\n  margin: 0.26042vw 0.26042vw 1.04167vw 0.26042vw;\n  flex: 1;\n  overflow-y: scroll;\n}\n.organization-item[data-v-ab1b3144] {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  height: 2.91667vw;\n  padding: 0 1.04167vw;\n  border-radius: 0.26042vw;\n  font-size: 0.72917vw;\n}\n.organization-item[data-v-ab1b3144]:hover {\n  background: #d6d6d6;\n}\n.organization-item img[data-v-ab1b3144] {\n  width: 2.08333vw;\n  height: 2.08333vw;\n  border-radius: 0.26042vw;\n  margin-right: 0.52083vw;\n}\n.organization-item .button[data-v-ab1b3144] {\n  justify-self: flex-end;\n  margin-left: auto;\n  padding: 0.26042vw;\n  font-size: 0.72917vw;\n  color: #4168e0;\n}\n.organization-item .button[data-v-ab1b3144]:not(.disabled):hover {\n  background: #dbe1f0;\n  border-radius: 0.26042vw;\n}\n.organization-item .button.disabled[data-v-ab1b3144] {\n  color: gray;\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/pick/PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.pick-contact-container[data-v-8f3499ca] {\n  display: flex;\n  height: 100%;\n  width: 100%;\n}\n.contact-list-container[data-v-8f3499ca] {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  background-color: #f7f7f7;\n  overflow: hidden;\n}\n.contact-list-container .input-container[data-v-8f3499ca] {\n  position: relative;\n  display: flex;\n  width: 100%;\n}\n.input-container input[data-v-8f3499ca] {\n  height: 1.30208vw;\n  margin: 0.78125vw 1.04167vw 0 0.78125vw;\n  flex: 1;\n  border-radius: 0.15625vw;\n  border: 1px solid #ededed;\n  background-color: white;\n  padding-left: 1.04167vw;\n  text-align: left;\n  outline: none;\n}\n.input-container input[data-v-8f3499ca]:active {\n  border: 1px solid #4168e0;\n}\n.input-container input[data-v-8f3499ca]:focus {\n  border: 1px solid #4168e0;\n}\n.input-container i[data-v-8f3499ca] {\n  position: absolute;\n  top: 1.04167vw;\n  left: 1.04167vw;\n}\n.pick-source-container[data-v-8f3499ca] {\n  width: 100%;\n}\n.pick-source-nav[data-v-8f3499ca] {\n  padding: 0.52083vw 0 0 1.04167vw;\n  width: 100%;\n  display: flex;\n  align-items: center;\n}\n.pick-source-nav ul[data-v-8f3499ca] {\n  display: flex;\n  flex-wrap: wrap;\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n.pick-source-nav a[data-v-8f3499ca] {\n  text-decoration: none;\n  font-size: 0.72917vw;\n}\n.pick-source-nav li[data-v-8f3499ca]:not(:last-child)::after {\n  display: inline-block;\n  margin: 0 0.52083vw;\n  color: #8f959f;\n  content: \">\";\n}\n.pick-source-nav li:not(:last-child) a[data-v-8f3499ca] {\n  color: #4168e0;\n}\n.pick-source-nav li:last-child a[data-v-8f3499ca] {\n  color: #8f959f;\n  pointer-events: none;\n}\n.pick-source-list[data-v-8f3499ca] {\n  padding: 0.26042vw 0.52083vw;\n}\n.pick-source-list ul li[data-v-8f3499ca] {\n  padding: 0 0.52083vw;\n  height: 2.08333vw;\n  width: 100%;\n  display: flex;\n  align-items: center;\n}\n.pick-source-list ul li[data-v-8f3499ca]:hover {\n  background: #d6d6d6;\n  border-radius: 0.26042vw;\n}\n.pick-source-list ul li a[data-v-8f3499ca] {\n  width: 100%;\n}\n.pick-source-list ul li[data-v-8f3499ca]::after {\n  display: inline-block;\n  color: #8f959f;\n  content: \">\";\n}\n.pick-source-list a[data-v-8f3499ca] {\n  text-decoration: none;\n  color: black;\n  font-size: 0.72917vw;\n}\n.contact-list-container .friend-list-container[data-v-8f3499ca] {\n  height: 100%;\n  overflow: auto;\n}\n.checked-contact-list-container[data-v-8f3499ca] {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n}\n.checked-contact-list-container header[data-v-8f3499ca] {\n  height: 2.86458vw;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n.checked-contact-list-container header h2[data-v-8f3499ca] {\n  font-size: 0.83333vw;\n  font-weight: normal;\n  margin-left: 1.5625vw;\n}\n.checked-contact-list-container header span[data-v-8f3499ca] {\n  font-size: 0.625vw;\n  margin-right: 1.04167vw;\n}\n.checked-contact-list-container .content[data-v-8f3499ca] {\n  height: 100%;\n  flex: 1;\n  display: flex;\n  padding: 0 1.5625vw;\n  flex-wrap: wrap;\n  justify-content: flex-start;\n  align-items: flex-start;\n  align-content: flex-start;\n  overflow: auto;\n}\n.checked-contact-list-container .content .picked-user-container[data-v-8f3499ca] {\n  width: 33%;\n  display: flex;\n  flex-direction: column;\n  -moz-column-count: 1;\n       column-count: 1;\n  justify-content: center;\n  align-items: center;\n  padding: 0.26042vw 0.52083vw;\n}\n.checked-contact-list-container .content .picked-user-container .name[data-v-8f3499ca] {\n  text-align: center;\n  max-width: 4.16667vw;\n  font-size: 0.625vw;\n}\n.checked-contact-list-container .content .picked-user-container .picked-user[data-v-8f3499ca] {\n  position: relative;\n  height: 3.38542vw;\n  width: 3.38542vw;\n}\n.checked-contact-list-container .content .avatar[data-v-8f3499ca] {\n  width: 2.34375vw;\n  height: 2.34375vw;\n  margin: 0.52083vw 0.52083vw;\n  border-radius: 0.15625vw;\n}\n.checked-contact-list-container .content .unpick-button[data-v-8f3499ca] {\n  position: absolute;\n  width: 1.04167vw;\n  height: 1.04167vw;\n  border: 1px solid white;\n  border-radius: 0.52083vw;\n  background-color: #f2f2f2;\n  top: 0;\n  right: 0;\n}\n.checked-contact-list-container .content .unpick-button[data-v-8f3499ca]:active {\n  background-color: #e5e5e5;\n}\n.checked-contact-list-container footer[data-v-8f3499ca] {\n  height: 2.86458vw;\n  display: flex;\n  justify-content: flex-end;\n  align-items: center;\n  margin-bottom: 0.52083vw;\n}\nfooter button[data-v-8f3499ca] {\n  padding: 0.26042vw 1.5625vw;\n  border-radius: 0.20833vw;\n  border: 1px solid #cccccc;\n}\nfooter button.confirm[data-v-8f3499ca] {\n  background-color: #4168e0;\n  margin-left: 1.04167vw;\n  margin-right: 1.04167vw;\n  color: white;\n}\nfooter button.confirm.disable[data-v-8f3499ca] {\n  background-color: #f2f2f2;\n  color: #c2c2c2;\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true":
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/user/CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.contact-item[data-v-eb4640d6] {\n  --user-item-padding-left: 1.5625vw;\n}\nul[data-v-eb4640d6] {\n  list-style: none;\n  width: 100%;\n}\n.avatar[data-v-eb4640d6] {\n  width: 2.08333vw;\n  height: 2.08333vw;\n  border-radius: 0.15625vw;\n}\n.checkbox[data-v-eb4640d6] {\n  margin-right: 0.52083vw;\n}\n.contact-item[data-v-eb4640d6] {\n  display: flex;\n  flex-direction: column;\n  font-size: 0.67708vw;\n  align-items: flex-start;\n}\n.contact-item .label[data-v-eb4640d6] {\n  width: 100%;\n  background-color: #fafafa;\n}\n.contact-item .label p[data-v-eb4640d6] {\n  padding: 0.26042vw 0.26042vw 0.26042vw 0;\n  border-bottom: 1px solid #e0e0e0;\n}\n.contact-item .label.sticky[data-v-eb4640d6] {\n  position: sticky;\n  top: 0;\n}\n.contact-item .content[data-v-eb4640d6] {\n  padding: 0.26042vw 0.26042vw 0.26042vw 0;\n  display: flex;\n  width: 100%;\n  align-items: center;\n}\n.contact-item .content span[data-v-eb4640d6] {\n  margin-left: 0.52083vw;\n}\n.contact-item .content.active[data-v-eb4640d6] {\n  background-color: #d6d6d6;\n}\n.contact-item .content[data-v-eb4640d6]:active {\n  background-color: #d6d6d6;\n}\n.disabled[data-v-eb4640d6] {\n  pointer-events: none;\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true":
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/user/CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n.contact-item[data-v-b4fd4bc0] {\n  --user-item-padding-left: 1.5625vw;\n}\nul[data-v-b4fd4bc0] {\n  list-style: none;\n  width: 100%;\n}\n.avatar[data-v-b4fd4bc0] {\n  width: 2.08333vw;\n  height: 2.08333vw;\n  border-radius: 0.15625vw;\n}\n.checkbox[data-v-b4fd4bc0] {\n  margin-right: 0.52083vw;\n}\n.contact-item[data-v-b4fd4bc0] {\n  display: flex;\n  flex-direction: column;\n  font-size: 0.67708vw;\n  align-items: flex-start;\n}\n.contact-item .label[data-v-b4fd4bc0] {\n  width: 100%;\n  background-color: #fafafa;\n}\n.contact-item .label p[data-v-b4fd4bc0] {\n  padding: 0.26042vw 0.26042vw 0.26042vw 0;\n  border-bottom: 1px solid #e0e0e0;\n}\n.contact-item .label.sticky[data-v-b4fd4bc0] {\n  position: sticky;\n  top: 0;\n}\n.contact-item .content[data-v-b4fd4bc0] {\n  padding: 0.26042vw 0.26042vw 0.26042vw 0;\n  display: flex;\n  width: 100%;\n  align-items: center;\n}\n.contact-item .content span[data-v-b4fd4bc0] {\n  margin-left: 0.52083vw;\n}\n.contact-item .content.active[data-v-b4fd4bc0] {\n  background-color: #d6d6d6;\n}\n.contact-item .content[data-v-b4fd4bc0]:active {\n  background-color: #d6d6d6;\n}\n.disabled[data-v-b4fd4bc0] {\n  pointer-events: none;\n}\n", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ":root {\n  --main-border-radius: 0.52083vw;\n  --main-margin-left: 4.16667vw;\n  --main-margin-right: 9.375vw;\n  --main-margin-top: 7.8125vw;\n  --main-margin-bottom: 7.8125vw;\n  --tippy-right: 0px;\n  --home-menu-padding-top: 3.125vw;\n  --composite-message-page-width: 100%;\n  --composite-message-page-height: 100%;\n}\n.tippy-tooltip {\n  right: var(--tippy-right) !important;\n  border: 1px solid #f5f5f5 !important;\n  background-color: #fcfcfc !important;\n  box-shadow: 0 0 1.30208vw rgba(0, 0, 0, 0.125);\n}\n#app {\n  height: 100vh;\n}", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/common/AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/common/AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib??vue-loader-options!./AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/common/AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("eb318ff4", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("45e744ee", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("5e68cf28", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("73febb48", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("74944297", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/pick/PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("d96f84b4", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true":
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/user/CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("482ceb3e", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true":
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/ui/main/user/CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("498eec9c", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--9-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src??ref--9-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!./App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("47569611", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./src/App.vue":
/*!*********************!*\
  !*** ./src/App.vue ***!
  \*********************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _App_vue_vue_type_template_id_7ba5bd90__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./App.vue?vue&type=template&id=7ba5bd90 */ "./src/App.vue?vue&type=template&id=7ba5bd90");
/* harmony import */ var _App_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./App.vue?vue&type=script&lang=js */ "./src/App.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _App_vue_vue_type_style_index_0_id_7ba5bd90_lang_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss */ "./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");






/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _App_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _App_vue_vue_type_template_id_7ba5bd90__WEBPACK_IMPORTED_MODULE_0__["render"],
  _App_vue_vue_type_template_id_7ba5bd90__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  null,
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/App.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/App.vue?vue&type=script&lang=js":
/*!*********************************************!*\
  !*** ./src/App.vue?vue&type=script&lang=js ***!
  \*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!./App.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss":
/*!******************************************************************!*\
  !*** ./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_style_index_0_id_7ba5bd90_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../node_modules/vue-style-loader??ref--9-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src??ref--9-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!./App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss */ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_style_index_0_id_7ba5bd90_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_style_index_0_id_7ba5bd90_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_style_index_0_id_7ba5bd90_lang_scss__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_style_index_0_id_7ba5bd90_lang_scss__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ "./src/App.vue?vue&type=template&id=7ba5bd90":
/*!***************************************************!*\
  !*** ./src/App.vue?vue&type=template&id=7ba5bd90 ***!
  \***************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_template_id_7ba5bd90__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!./App.vue?vue&type=template&id=7ba5bd90 */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=template&id=7ba5bd90");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_template_id_7ba5bd90__WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_template_id_7ba5bd90__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ }),

/***/ "./src/api/appServerError.js":
/*!***********************************!*\
  !*** ./src/api/appServerError.js ***!
  \***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AppServerError; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__);


class AppServerError extends Error {
  constructor(errorCode, message) {
    super(message);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "errorCode", void 0);
    this.errorCode = errorCode;
  }
  toString() {
    return this.errorCode + "-" + this.message;
  }
}

/***/ }),

/***/ "./src/api/auth.js":
/*!*************************!*\
  !*** ./src/api/auth.js ***!
  \*************************/
/*! exports provided: getAccessToken, permission, clearAllPTTGroups */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAccessToken", function() { return getAccessToken; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "permission", function() { return permission; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clearAllPTTGroups", function() { return clearAllPTTGroups; });
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.find.js */ "./node_modules/core-js/modules/es.iterator.find.js");
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils */ "./src/utils/index.js");
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
/* harmony import */ var _api_tenant_user_controller__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/api/tenant-user-controller */ "./src/api/tenant-user-controller.js");
/* harmony import */ var _store_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/store/index */ "./src/store/index.js");
/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/router */ "./src/router/index.js");
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! element-ui */ "./node_modules/element-ui/lib/element-ui.common.js");
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(element_ui__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _utils_setup__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/setup */ "./src/utils/setup.js");
/* harmony import */ var _router_dynamicRouters__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/router/dynamicRouters */ "./src/router/dynamicRouters.js");
/* harmony import */ var _api_gwsd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/api/gwsd */ "./src/api/gwsd/index.js");
/* harmony import */ var _services_mqttService__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/services/mqttService */ "./src/services/mqttService.js");














// ! 初始一个loading当遮罩层
const loadingInstance = element_ui__WEBPACK_IMPORTED_MODULE_9__["Loading"].service({
  fullscreen: true,
  spinner: "none",
  background: "rgba(0, 0, 0, 0.8)"
});
_store_index__WEBPACK_IMPORTED_MODULE_7__["default"].commit("SET_APP_LOADING_MASK", loadingInstance);
const getAccessToken = () => {
  return new Promise(resolve => {
    if (false) {} else {
      resolve(localStorage.getItem("accessToken"));
    }
  });
};

/**
 * * 自动登录获取dispatchToken
 */
const permission = async () => {
  const accessToken = await getAccessToken();
  return new Promise((resolve, reject) => {
    axios__WEBPACK_IMPORTED_MODULE_5__["default"].post(`${"/dispatch"}/identity/Desk/auto-login`, {}, {
      headers: {
        "Content-Type": "multipart/form-data",
        // "skip-ip-validation":1,
        accessToken
      }
    }).then(async res => {
      const {
        status,
        data
      } = res;
      if (status === 200) {
        const {
          data: {
            dispatchToken
          }
        } = data;
        localStorage.setItem("dispatchToken", dispatchToken);
        // 获取配置
        try {
          const setting = await Object(_api_tenant_user_controller__WEBPACK_IMPORTED_MODULE_6__["getCurrentSetting"])();
          _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].commit("SET_APP_SETTING", setting);
        } catch (e) {
          console.error(e);
        }
        resolve(true);
      } else if (status === 401 || status === 403) {
        localStorage.setItem("dispatchToken", "");
        localStorage.setItem("userInfo", "");
        _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].commit("showMessage", {
          type: "error",
          message: "未授权无效调度台用户",
          duration: 0
        });
        _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].commit("SET_SYS_USER_INFO", null);
        reject("未授权无效调度台用户");
      }
    }).catch(error => {
      localStorage.setItem("dispatchToken", "");
      localStorage.setItem("userInfo", "");
      _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].commit("showMessage", {
        type: "error",
        message: "未授权无效调度台用户",
        duration: 0
      });
      _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].commit("SET_SYS_USER_INFO", null);
      reject("未授权无效调度台用户");
      throw error;
    });
  });
};

/**
 * 删除所有PTT调度组群
 * 避免没有关闭弹框直接关闭页面或者直接刷新页面没有退出组群下次无法创建组群的情况
 * @returns {Promise<void>}
 */
const clearAllPTTGroups = async () => {
  await _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].dispatch("clearGroup");
};
_router__WEBPACK_IMPORTED_MODULE_8__["default"].beforeEach(async (to, from, next) => {
  if (to.path.toLowerCase().indexOf("voip") > -1) {
    loadingInstance.close();
  }
  await permission();
  console.log("v2.调用permission之后的响应信息:", _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].getters.sysUserInfo);
  // * 判断当前用户是否已拉取完user_info信息
  if (_store_index__WEBPACK_IMPORTED_MODULE_7__["default"].getters.sysUserInfo === null || Object.keys(_store_index__WEBPACK_IMPORTED_MODULE_7__["default"].getters.sysUserInfo).length <= 0) {
    // * 获取用户信息、启动调度客户端
    Object(_utils_setup__WEBPACK_IMPORTED_MODULE_10__["default"])().then(async response => {
      console.log("current user info ===", response);
      let tracking = "开始获取用户信息";
      try {
        let pttAccount = null;
        for (var aIndex = 0; aIndex < 2; aIndex++) {
          // 获取ptt账号信息（账号、密码、用户名等）
          pttAccount = await Object(_api_gwsd__WEBPACK_IMPORTED_MODULE_12__["getAdminAccount"])({
            subAccount: response.dispatchNo
          });
          if (!pttAccount.data) {
            let ptAt = await Object(_api_gwsd__WEBPACK_IMPORTED_MODULE_12__["doCreateAdminAccount"])({
              subAccount: response.dispatchNo,
              adminName: "ttadmin3",
              fgrp: 37
            });
            console.log("v2.调用新增调度台账号之后的响应信息：", ptAt);
            if (ptAt.data) {
              pttAccount = ptAt.data[0];
              tracking += "调用新增的API之后存在的用户信息:" + response.dispatchNo;
              pttAccount = await Object(_api_gwsd__WEBPACK_IMPORTED_MODULE_12__["getAdminAccount"])({
                subAccount: response.dispatchNo
              });
              break;
            }
          } else {
            tracking += "用户已经存在:" + response.dispatchNo + "执行次数:" + (aIndex + 1);
            break;
          }
        }
        // 初始化MQTT客户端
        await _services_mqttService__WEBPACK_IMPORTED_MODULE_13__["default"].initClient(pttAccount.data);
        _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].commit("SET_PTT_ACCOUNT", pttAccount.data);
        console.log("v2.获取调度台账号信息" + tracking, pttAccount);

        // 清除所有的PTT调度组群
        await clearAllPTTGroups();
      } catch (e) {
        console.error("getAdminAccount 获取子组织账号接口异常:", e);
      }
      // * 储存用户信息
      localStorage.setItem("userInfo", JSON.stringify(response));
      _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].commit("SET_SYS_USER_INFO", response);
      // * 根据用户角色判断调度台类型并储存
      const platformInfRole = [{
        value: "1",
        label: "指挥调度台",
        role: ["Company", "Urban", "SubUrb", "PoliceStation", "PopulationPoliceStation", "PopulationUrban", "PopulationSubUrb"]
      }, {
        value: "2",
        label: "内保调度台",
        role: ["Proprietor", "PoliceStation", "PopulationPoliceStation"]
      }, {
        value: "3",
        label: "临保调度台",
        role: ["Company", "Urban", "SubUrb", "PoliceStation", "PopulationPoliceStation"]
        // disabled: true,
      }, {
        value: "4",
        label: "赛演调度台",
        role: ["Company", "Urban", "SubUrb", "PoliceStation", "PopulationPoliceStation"]
        // disabled: true,
      }].filter(x => x.role.includes(response.role));
      let defaultPlatform = platformInfRole[0].value;
      const userInfo = localStorage.getItem("userInfo") && JSON.parse(localStorage.getItem("userInfo"));
      if (userInfo.orgInstitutional === "0201") {
        defaultPlatform = 3;
      }
      const storePlatform = localStorage.getItem("platform");
      if (platformInfRole.filter(x => x.value === storePlatform).length <= 0) {
        localStorage.setItem("platform", defaultPlatform);
      }
      localStorage.setItem("userInfo", JSON.stringify(response));
      // * 根据调度台类型动态生成路由
      Object(_router_dynamicRouters__WEBPACK_IMPORTED_MODULE_11__["default"])(localStorage.getItem("platform"), response).forEach(route => {
        _router__WEBPACK_IMPORTED_MODULE_8__["default"].addRoute(route); // 生成该用户的新路由json操作完毕之后,调用vue-router的动态新增路由方法,将新路由添加
      });
      // !! 判断跳转页面是否有权访问
      if (_router__WEBPACK_IMPORTED_MODULE_8__["default"].getRoutes() && _router__WEBPACK_IMPORTED_MODULE_8__["default"].getRoutes().length > 0) {
        const [{
          path
        }] = _router__WEBPACK_IMPORTED_MODULE_8__["default"].getRoutes(); // 第一个路由
        if (_router__WEBPACK_IMPORTED_MODULE_8__["default"].getRoutes().filter(x => x.path === to.path).length > 0 || to.path === "/") {
          next({
            ...to,
            replace: true
          });
        } else {
          next({
            path,
            replace: true
          }); // 跳转到有权限的第一个路由
        }
      }
      loadingInstance.close();
    }).catch(e => {
      console.log("err", e);
      loadingInstance.close();
      return false;
    });
  } else {
    // * 有用户信息直接进入
    next();
    loadingInstance.close();
  }
});

/***/ }),

/***/ "./src/api/bcxin/identify.js":
/*!***********************************!*\
  !*** ./src/api/bcxin/identify.js ***!
  \***********************************/
/*! exports provided: getTencentSig, getTencentTRTCSig, getWFToken, sendVideoRoomMsg, rooms, exitRoom */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTencentSig", function() { return getTencentSig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTencentTRTCSig", function() { return getTencentTRTCSig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWFToken", function() { return getWFToken; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sendVideoRoomMsg", function() { return sendVideoRoomMsg; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rooms", function() { return rooms; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exitRoom", function() { return exitRoom; });
/* harmony import */ var _api_bcxin_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/api/bcxin/request */ "./src/api/bcxin/request.js");
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);



/**
 * @获取腾讯Sig
 * @param params
 * @returns {*}
 * 获取腾IM sigid信息
返回值：{
"api": "",
"v": "",
"retType": "0",
-"data": {
"api": "",
"v": "",
"retType": "0",
"data": "eJw1jk0LgkAURf-LrEPem3EmEdoYBmGL6Mu2xoz2kGSaTIvovzdpLe*598B9sd1qG5iHJWdYjFJKDgCTgXbGsZjxANiYb7ourCXtdyGA5Fwijg1p07RU0iAILsD3gH*NKk9rJ3pMw75B*7wv8-3iWEVFnhzmXdMl5elK63qTnbNEh*nsJ7Z0*X5SkZiiUkq8P5NGMYw_",
"msg": "操作成功！"
},
"msg": ""
}
 */
const getTencentSig = params => {
  return Object(_api_bcxin_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/identify/api/tencent/get-tencent-sig",
    method: "GET",
    params
  });
};

//获取TRTC SigId  name="+user.name+"&cid="+user.tencentUserId;
const getTencentTRTCSig = params => {
  return Object(_api_bcxin_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/identify/api/tencent/get-tencent-ysp-sig",
    method: "GET",
    params
  });
};
const getWFToken = data => {
  return Object(_api_bcxin_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/identify/api/yehuo/get/token",
    method: "POST",
    data
  });
};

//推送音视频房间号给指定人员
function sendVideoRoomMsg(params) {
  const url = "/identify/api/tencent/send-video-room-msg";
  return Object(_api_bcxin_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: url,
    method: "POST",
    headers: {
      "content-type": "application/x-www-form-urlencoded"
    },
    data: qs__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(params)
  });
}
function rooms(data) {
  return Object(_api_bcxin_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/rooms",
    method: "POST",
    data
    // headers: { "content-type": "application/x-www-form-urlencoded" },
  });
}
function exitRoom(params) {
  const url = "/identify/api/tencent/trtc-video-room";
  return Object(_api_bcxin_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: url,
    method: "POST",
    headers: {
      "content-type": "application/x-www-form-urlencoded"
    },
    data: qs__WEBPACK_IMPORTED_MODULE_1___default.a.stringify(params)
  });
}

/***/ }),

/***/ "./src/api/bcxin/request.js":
/*!**********************************!*\
  !*** ./src/api/bcxin/request.js ***!
  \**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
/**
 * @百川信服务入口
 * @公共服务api
 */



// 创建axios实例
const instance = axios__WEBPACK_IMPORTED_MODULE_0__["default"].create({
  // axios中请求配置有baseURL选项，表示请求URL公共部分
  baseURL: "https://identify.test.bcxin.com.cn",
  timeout: 30000
});
instance.interceptors.response.use(response => {
  const {
    status,
    data
  } = response;
  if (status === 200) {
    return data.data;
  }
});
/* harmony default export */ __webpack_exports__["default"] = (instance);

/***/ }),

/***/ "./src/api/gwsd/index.js":
/*!*******************************!*\
  !*** ./src/api/gwsd/index.js ***!
  \*******************************/
/*! exports provided: getAdminAccount, doCreateAdminAccount, createGroup, delGroup, addUsers, removeUsers, dispatchGroupList, dispatchUsers */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAdminAccount", function() { return getAdminAccount; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doCreateAdminAccount", function() { return doCreateAdminAccount; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createGroup", function() { return createGroup; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delGroup", function() { return delGroup; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addUsers", function() { return addUsers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeUsers", function() { return removeUsers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatchGroupList", function() { return dispatchGroupList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatchUsers", function() { return dispatchUsers; });
/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./request */ "./src/api/gwsd/request.js");


/**
 * 查询子组织账号详情
 * @param {Object} data
 * @param {String} data.subAccount
 * @returns {Promise<AxiosResponse<any>> | *}
 */
const getAdminAccount = data => {
  return Object(_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/sapi/misc/virtualAccount/detail",
    method: "POST",
    data
  });
};
const doCreateAdminAccount = data => {
  return Object(_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/sapi/org/manage/create_virtualAccount",
    method: "POST",
    data
  });
};
/**
 * 创建群组
 * @param {Object} data
 * @param {string} data.adminName -三级组织登录名 required
 * @param {string} data.name -群组名 required
 * @param {string[]} data.accountLists -账号数组
 * @returns {Promise<AxiosResponse<any>> | {status: number, data: number, message: string}}}}
 */
const createGroup = data => {
  return Object(_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/sapi/dispatch/group/create",
    method: "POST",
    data
  });
};
/**
 * 删除群组
 * @param {Object} data
 * @param {string} data.adminName -三级组织登录名 required
 * @param {number} data.gid -三级组织登录名 required
 * @returns {*}
 */
const delGroup = data => {
  return Object(_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/sapi/dispatch/group/delete",
    method: "POST",
    data
  });
};
/**
 * 调度群组加人
 * @param {Object} data
 * @param {string} data.adminName -三级组织登录名 required
 * @param {string[]} data.accountLists -账号数组 required
 * @param {number|null} data.gid -群组id required
 * @returns {Promise<AxiosResponse<any>> | {status: number, data: any, message: string}}}}
 */
const addUsers = data => {
  return Object(_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/sapi/dispatch/users_add",
    method: "POST",
    data
  });
};
/**
 * 调度群组删人
 * @param {Object} data
 * @param {string} data.adminName 三级组织登录名
 * @param {number|null} data.gid 群组id
 * @param {string[]} data.accountLists 账号数组
 * @returns {*}
 */
const removeUsers = data => {
  return Object(_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/sapi/dispatch/users_delete",
    method: "POST",
    data
  });
};
/**
 * 调度群组列表
 * @param {Object} data
 * @param {string} data.adminName -三级组织登录名
 * @returns {Promise<AxiosResponse<any>> | *}
 */
const dispatchGroupList = data => {
  return Object(_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/sapi/dispatch/list",
    method: "POST",
    data
  });
};
/**
 * 调度群组内成员列表
 * @param {Object} data
 * @param {number} data.gid
 */
const dispatchUsers = data => {
  return Object(_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/sapi/dispatch/users",
    method: "POST",
    data
  });
};

/***/ }),

/***/ "./src/api/gwsd/request.js":
/*!*********************************!*\
  !*** ./src/api/gwsd/request.js ***!
  \*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");

const instance = axios__WEBPACK_IMPORTED_MODULE_0__["default"].create({
  // axios中请求配置有baseURL选项，表示请求URL公共部分
  baseURL: "/pttApi",
  timeout: 60000
});
instance.interceptors.request.use(async config => {
  var _localStorage$getItem;
  config.headers.auth_code = (_localStorage$getItem = localStorage.getItem("auth_code")) !== null && _localStorage$getItem !== void 0 ? _localStorage$getItem : "37TBSAERG28";
  return config;
}, error => {
  return Promise.reject(error);
});
instance.interceptors.response.use(response => {
  const {
    status,
    data
  } = response;
  if (status === 200) {
    return data;
  }
});
/* harmony default export */ __webpack_exports__["default"] = (instance);

/***/ }),

/***/ "./src/api/organizationServerApi.js":
/*!******************************************!*\
  !*** ./src/api/organizationServerApi.js ***!
  \******************************************/
/*! exports provided: OrganizationServerApi, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrganizationServerApi", function() { return OrganizationServerApi; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.url-search-params.delete.js */ "./node_modules/core-js/modules/web.url-search-params.delete.js");
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/web.url-search-params.has.js */ "./node_modules/core-js/modules/web.url-search-params.has.js");
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.url-search-params.size.js */ "./node_modules/core-js/modules/web.url-search-params.size.js");
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config */ "./src/config.js");
/* harmony import */ var _ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../ui/util/storageHelper */ "./src/ui/util/storageHelper.js");
/* harmony import */ var _appServerError__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./appServerError */ "./src/api/appServerError.js");
/* harmony import */ var _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../wfc/client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _organizationServerError__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./organizationServerError */ "./src/api/organizationServerError.js");
/* harmony import */ var _wfc_model_userInfo__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../wfc/model/userInfo */ "./src/wfc/model/userInfo.js");













class OrganizationServerApi {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "isServiceAvailable", true);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "serviceUnavailbelError", new _organizationServerError__WEBPACK_IMPORTED_MODULE_11__["default"](-1, "未登录或服务不可用"));
  } // do nothing
  login() {
    return new Promise((resolve, reject) => {
      //        int ApplicationType_Robot = 0;
      //        int ApplicationType_Channel = 1;
      //        int ApplicationType_Admin = 2;
      if (!_config__WEBPACK_IMPORTED_MODULE_7__["default"].ORGANIZATION_SERVER) {
        return Promise.reject(this.serviceUnavailbelError);
      }
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_10__["default"].getAuthCode("admin", 2, "", code => {
        let path = "/api/user_login";
        this._post(path, {
          authCode: code
        }, true).then(response => {
          if (response.data.code === 0) {
            let appAuthToken = response.headers["authtoken"];
            if (!appAuthToken) {
              appAuthToken = response.headers["authToken"];
            }
            if (appAuthToken) {
              Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_8__["setItem"])("authToken-" + new URL(response.config.url).host, appAuthToken);
            }
            this.isServiceAvailable = true;
            resolve(response.data.result);
          } else {
            reject(new _organizationServerError__WEBPACK_IMPORTED_MODULE_11__["default"](response.data.code, response.data.message));
          }
        });
      }, error => {
        console.error("getAuthCode error", error);
        reject(new _organizationServerError__WEBPACK_IMPORTED_MODULE_11__["default"](-1, "未登录，或服务不可用"));
      });
    });
  }
  getRootOrganization() {
    return this._post("/api/organization/root");
  }
  getRelationShip(employeeId) {
    return this._post("/api/relationship/employee", {
      employeeId
    });
  }
  getOrganizationEx(orgId) {
    return this._post("/api/organization/query_ex", {
      id: orgId
    });
  }
  getOrganizations(orgIds) {
    return this._post("/api/organization/query_list", {
      ids: orgIds
    });
  }
  async getOrganizationEmployees(orgIds) {
    let employeeIds = await this._post("/api/organization/batch_employees", {
      ids: orgIds
    });
    return this.getEmployeeList(employeeIds);
  }
  getOrgEmployees(orgId) {
    return this._post("/api/organization/employees", {
      ids: orgId
    });
  }
  getEmployee(employeeId) {
    return this._post("/api/employee/query", {
      employeeId
    });
  }
  getEmployeeEx(employeeId) {
    return this._post("/api/employee/query_ex", {
      employeeId
    });
  }
  getEmployeeList(employeeIds) {
    return this._post("/api/employee/query_list", {
      employeeIds: employeeIds
    });
  }
  searchEmployee(orgId, keyword) {
    return this._post("/api/employee/search", {
      organizationId: orgId,
      keyword: keyword
    });
  }
  async getOrganizationPath(organizationId) {
    let pathList = [];
    let org = await this._getOrganizationSync(organizationId);
    if (org) {
      pathList.push(org);
      if (org.parentId) {
        pathList.push(...(await this.getOrganizationPath(org.parentId)));
      }
    }
    return pathList;
  }
  employeeToUserInfo(employee) {
    let userInfo = new _wfc_model_userInfo__WEBPACK_IMPORTED_MODULE_12__["default"]();
    userInfo.uid = employee.employeeId;
    userInfo.name = employee.name;
    userInfo.displayName = employee.name;
    userInfo.portrait = employee.portrait ? employee.portrait : _config__WEBPACK_IMPORTED_MODULE_7__["default"].DEFAULT_PORTRAIT_URL;
    userInfo.gender = employee.gender;
    userInfo.mobile = employee.mobile;
    userInfo.email = employee.email;
    userInfo.updateDt = employee.updateDt;
    //0 normal; 1 robot; 2 thing;
    userInfo.type = 1;
    userInfo.deleted = 0;
    return userInfo;
  }
  async _getOrganizationSync(orgId) {
    let orgs = await this.getOrganizations([orgId]);
    return orgs && orgs.length > 0 ? orgs[0] : null;
  }

  /**
   *
   * @param path
   * @param data
   * @param rawResponse
   * @param rawResponseData
   * @return {Promise<string | AxiosResponse<any>|*|T>}
   * @private
   */
  async _post(path, data = {}, rawResponse = false, rawResponseData = false) {
    let response;
    path = _config__WEBPACK_IMPORTED_MODULE_7__["default"].ORGANIZATION_SERVER + path;
    response = await axios__WEBPACK_IMPORTED_MODULE_6__["default"].post(path, data, {
      transformResponse: rawResponseData ? [data => data] : axios__WEBPACK_IMPORTED_MODULE_6__["default"].defaults.transformResponse,
      headers: {
        authToken: Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_8__["getItem"])("authToken-" + new URL(path).host)
      },
      withCredentials: true
    });
    if (rawResponse) {
      return response;
    }
    if (response.data) {
      if (rawResponseData) {
        return response.data;
      }
      if (response.data.code === 0) {
        return response.data.result;
      } else {
        throw new _appServerError__WEBPACK_IMPORTED_MODULE_9__["default"](response.data.code, response.data.message);
      }
    } else {
      throw new Error("request error, status code: " + response.status);
    }
  }
}
const organizationServerApi = new OrganizationServerApi();
/* harmony default export */ __webpack_exports__["default"] = (organizationServerApi);

/***/ }),

/***/ "./src/api/organizationServerError.js":
/*!********************************************!*\
  !*** ./src/api/organizationServerError.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return OrganizationServerError; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__);


class OrganizationServerError extends Error {
  constructor(errorCode, message) {
    super(message);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "errorCode", void 0);
    this.errorCode = errorCode;
  }
  toString() {
    return this.errorCode + "-" + this.message;
  }
}

/***/ }),

/***/ "./src/api/request.js":
/*!****************************!*\
  !*** ./src/api/request.js ***!
  \****************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");


// 创建axios实例
const instance = axios__WEBPACK_IMPORTED_MODULE_0__["default"].create({
  // axios中请求配置有baseURL选项，表示请求URL公共部分
  baseURL: "/dispatch",
  timeout: 60000
});
instance.interceptors.request.use(async config => {
  // config.headers["skip-ip-validation"] = 1;
  let dispatchToken = localStorage.getItem("dispatchToken");
  if (dispatchToken) {
    config.headers.dispatchToken = dispatchToken;
  }
  return config;
}, error => {
  return Promise.reject(error);
});
instance.interceptors.response.use(response => {
  const {
    status,
    data
  } = response;
  if (status === 200) {
    const {
      url
    } = response.config;
    if (url.indexOf("json") > -1) {
      // mock api
      return data;
    } else {
      return data.data;
    }
  }
});
/* harmony default export */ __webpack_exports__["default"] = (instance);

/***/ }),

/***/ "./src/api/tenant-user-controller.js":
/*!*******************************************!*\
  !*** ./src/api/tenant-user-controller.js ***!
  \*******************************************/
/*! exports provided: getCurrentUser, getCurrentSetting */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCurrentUser", function() { return getCurrentUser; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCurrentSetting", function() { return getCurrentSetting; });
/* harmony import */ var _api_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/api/request */ "./src/api/request.js");


//获取当前用户信息
function getCurrentUser(params) {
  return Object(_api_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/tenant/users/current",
    method: "GET",
    params
  });
}
function getCurrentSetting(params) {
  return Object(_api_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
    url: "/tenant/users/current/setting",
    method: "GET",
    params
  });
}

/***/ }),

/***/ "./src/assets/fonts/icomoon/fonts/icomoon.eot?lc1wol":
/*!***********************************************************!*\
  !*** ./src/assets/fonts/icomoon/fonts/icomoon.eot?lc1wol ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "static/fonts/icomoon.b7c5e79c.eot";

/***/ }),

/***/ "./src/assets/fonts/icomoon/fonts/icomoon.svg?lc1wol":
/*!***********************************************************!*\
  !*** ./src/assets/fonts/icomoon/fonts/icomoon.svg?lc1wol ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "static/img/icomoon.3a539c72.svg";

/***/ }),

/***/ "./src/assets/fonts/icomoon/fonts/icomoon.ttf?lc1wol":
/*!***********************************************************!*\
  !*** ./src/assets/fonts/icomoon/fonts/icomoon.ttf?lc1wol ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "static/fonts/icomoon.fbe14665.ttf";

/***/ }),

/***/ "./src/assets/fonts/icomoon/fonts/icomoon.woff?lc1wol":
/*!************************************************************!*\
  !*** ./src/assets/fonts/icomoon/fonts/icomoon.woff?lc1wol ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "static/fonts/icomoon.a60723ac.woff";

/***/ }),

/***/ "./src/assets/fonts/icomoon/style.css":
/*!********************************************!*\
  !*** ./src/assets/fonts/icomoon/style.css ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!../../../../node_modules/postcss-loader/src??ref--7-oneOf-3-2!./style.css */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./src/assets/fonts/icomoon/style.css");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("aeb8e34a", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./src/assets/images/icon.png":
/*!************************************!*\
  !*** ./src/assets/images/icon.png ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "static/img/icon.3b851ff2.png";

/***/ }),

/***/ "./src/assets/images/layout/prefix-icon-active.png":
/*!*********************************************************!*\
  !*** ./src/assets/images/layout/prefix-icon-active.png ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACy3fD9AAACXElEQVQ4Ea2VP2hTURTGfzcxadCG0EWKONXJyUWU4qyDTkVSEBHRQVGXCkFFxUmlSqGi4FBdigqCCFWoiziLg0MLgih0KiIK1lD/tGnT6/nezbPvpU1awQN5775zvu+795x774ljDes670v1GlcFy+a5PHPDVdtRXMtg2WdLWzmI46J37BDOeSbwXK9O85Qnrr4ad1XBYsX3GvmSkQ+QMVpMzdp4ScqM2yTXZofc62bRlGDprO8xYMWcR32WjSw2wxvfG0yzzi8PozbxUHXYTcXISLB0wXdR44QBBsjSHa3IPtqamFpxnc82vEWekeqgm1FCMMdpn2PQUunWqvxaYkaJMMrAOBHXNCQVBB3FqDZWn0jLHvMthCWkmIARVjUNdS0uC/rIRd0CW0rw6Dgc2mmTWy41kRsmIfmO7IYHx2Bzp2lJTNbQCCsMLjIG/vYTpr5aUcowdhJ6e8KKJLZnGzw7BTf74OMX+P47TNCgRy/br2XT7HMLcG4MHr+FK/th/Aw8fKNSweFd8PI97LsDk9PQod1WIGEpQfkFKJh3wgjle7B3O9zuD6n134dXHwxkxSvkEiqJ4QrBOJazI6GiP5+EvuiewIt3sKkjrDbGNb9bCgqobPKGUG1lGjdlGAKJZ3xsUpuTiK9/6MIRDCv0zEafko2PQUIq2246xfSThlkQLHDX1Vi0mg2YJ3X1dJA/qWHZO3WDlHt89Rbs6hUYkWCqJGoO5qmY/29zkEinbYTsx7wRxFAtrTnYaNQmWtkcBE5ac/taatyWjPIJ12x97Sspyv9ssEnhf/0L+AML/c9oNv52wwAAAABJRU5ErkJggg=="

/***/ }),

/***/ "./src/assets/images/layout/prefix-icon.png":
/*!**************************************************!*\
  !*** ./src/assets/images/layout/prefix-icon.png ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACy3fD9AAACHElEQVQ4Ea2Vu4paURSG1/GOGMRCnU4ICjaSxiaIT5AyDzBdiqmmmCqZMhmmmGKqFOnmAVLmCUTS2ETQ0sJGQbwREe/O/y+yBo/HC4HZhee41v9/e63t3ltHzoxarRafzWZfKYtEIrfFYnF8yuIcS263W3+1Wv2I/Ge/3/+OuvV6/QePu1Kp9NNxnDVj++MgEKD3EH6B6YPP55Plcqm+YDAom81GMNkvBL4B/PsksFKpvAXkBpBLVBUlCGaXB3khGNVOAX9C/qFcLrdMpBUClEDgE8TXoVDogiBWcmqwcoIXi0UX0EdofwA89P0zXUWj0XuILubz+VkYPZyQWnroReiKcQUi+Wa1WrENxnScqnA3Rw+9ZNCoQLT60h9alnw+L6lUygM2UDqdVg1btmGMgAXsydmw7ySbzQqN7XZbxuOx8MeIx+OSyWQkFotJp9PRysxnTw+QVbRaLen1emouFArS7XYVyKqHw6HU63WZTCZcP+O8PD1AZiikodFoSCKRkFwup9un2WzKaDRS8yEYEweBTLBFjn6/L8lkUoGDwUCwPzV+7MNb857SKuEE9r4ncX1VIDbmWbDLdeCLMRSEmf8GAoGj7bA6W4J9FpeAXjKYszX8Pp1OVzBdh8Nh19HDzHoiKOa7gdm+HT149ehR47pteDlAeAOT63JgFYRxSxFolwNiT4h5LweSd8erXV+7UMz+ehfsLvh//wKeAfkDHr55IoL7AAAAAElFTkSuQmCC"

/***/ }),

/***/ "./src/assets/images/map/报警红色.png":
/*!****************************************!*\
  !*** ./src/assets/images/map/报警红色.png ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "static/img/报警红色.d82caf70.png";

/***/ }),

/***/ "./src/assets/images/mapSearch/报警.png":
/*!********************************************!*\
  !*** ./src/assets/images/mapSearch/报警.png ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAsxJREFUSEu1lt9LFFEUx79nZt2dXdRCoQSlIoxAS/dXIVQgaOo6a1APUb0EPQVhJT31J/QSoT301KP4VJS7bclKkgVRzq6CSpEgKWQEKoruzujOnJglY9pd1/VH8zLMPd9zPveee+65Q9jGk5C9PabcFY51FupGhQpNnRr0PTffUki5WKhfFiARcJ8hgY47w/GnmUHyAZKy5wYb/NUVGf1g9csCqEHPTWahRzCMekckPmkVq7L3WXoF4dgl67gW8NQYgjBGZHRKofiTvIARn6+otoLHQDTrDCmtVvFah/uU+W3vH/1sHU/KvgGAq6TVWB0NIZUXkM617G1lotcAzjlDyvt8+U4GfWcBDBNzmxSOvcnUbrrJWrv/qqatDJQOfplXZU8zE11jUK0ZgJjHQdzrDMUHl1pryySbvcURjvflmkgawI01xRiaXCWAraLFRvd+qVjoBSiQy5kZL1QN18uiypLVzgAtBKpLyiNTy2lAQvbNg7BO4CgMRH8mFvpSThtXiqVDBGrIX5I8PDFHTeUl82KFq+wKBDrP4GYw2VxhpTwNWLvg8eu60AHTADpN4KBBqCfQg0LqnYF7AvMEg0IAfwIoKoJf2sMxJWsPvgWqHcciU1pS9s2CUJUJYLBCTAczbNPOkHJ0w3fLKlpscx+RbOJ01uwZaiqV8tuKxBhA9n/yvqYdcg2MzxZURSvtbrcoiPEsMXNXitU+UXDOZdp0Q/cUvxod3TmA+a0UjjWrLXWHyV700AAaCKjYCLg7AGMZGk46o8qMGVCT/ScMMkYAcuwJgMGLAH1fh375l74yUyns+0gEtzUdu1vBn0gp3ThgE4UuAPf/wx5AtUFvSpH4DoC45wAG/yAgAVB1rsO3JynKd6oLBpiNSgv6bjPwqJA2saEh4K4jpHRnNswcN5r3FoMebyf4XwjhjtSvdG/ZKnYSfDOfbf1V7AT8GxP5QCiN5wZLAAAAAElFTkSuQmCC"

/***/ }),

/***/ "./src/assets/lang/en.json":
/*!*********************************!*\
  !*** ./src/assets/lang/en.json ***!
  \*********************************/
/*! exports provided: login, contact, friend_request, group, message, conversation, fav, voip, pick, search, file_record, setting, common, misc, default */
/***/ (function(module) {

module.exports = JSON.parse("{\"login\":{\"desc\":\"Scan the QR code to login Wildfire IM\",\"tip_pc\":\"Wildfire IM PC client needs to be used with your mobile\",\"tip_web\":\"Wildfire IM Web client needs to be used with your mobile\",\"warning\":\"Don't use WeChat to scan the QR code!!!\",\"scan_qr_success\":\"Scan code successfully\",\"confirm_login_tip\":\"Please confirm the login on your mobile\",\"remember_me\":\"Remember me\",\"cancel_login\":\"Cancel Login\",\"login\":\"Login\",\"switch_user\":\"Switch User\",\"auto_login_tip\":\"Automatically logging in...\"},\"contact\":{\"new_friend\":\"New friend\",\"group\":\"Group Chat\",\"contact\":\"Contact\"},\"friend_request\":{\"request\":\"Friend Request\",\"send_request_tip\":\"Send friend request to {0}\",\"accepted\":\"Accepted\",\"sent\":\"Sent\",\"denied\":\"Rejected\",\"im\":\"I am\",\"intro\":\"Hello\"},\"group\":{\"name\":\"Group name {0}\",\"chat\":\"Start group chat\",\"fav\":\"Save to contact list\"},\"message\":{\"send_message\":\"Send Message\",\"records\":\"Chat Records\",\"unsupport_message_desc\":\"This message type is not supported, please check it on your phone\",\"receipt\":\"Message Receipt\",\"receipt_detail\":\"Message Receipt Detail\",\"receipt_read_users\":\"Read\",\"receipt_unread_users\":\"Unread\",\"receipt_received_users\":\"Delivered\",\"receipt_unreceived_users\":\"Undelivered\",\"sender\":\"Message Sender\",\"content\":\"Message content\"},\"conversation\":{\"forward_title\":\"Send separately\",\"picked_contact\":\"Selected contact\",\"create_group\":\"Create a group chat\",\"recent_conversation\":\"Recent Chat\",\"not_select_conversation\":\"Not select any chat\",\"select_conversation_desc\":\"{0} chats selected\",\"forward_extra\":\"Leave a message to friend\",\"forward_one_by_one\":\"Forward one by one\",\"forward_composite\":\"Merge Forward\",\"user_message_records\":\"{0}’s chat records\",\"group_message_records\":\"Group Chat Records\",\"drag_to_send_to\":\"Drag here to send to {0}\",\"no_more_message\":\"No more messages\",\"all_message_load\":\"All messages have been loaded :(\",\"drag_to_send_limit_tip\":\"Send up to 5 files at a time\",\"not_support_send_folder\":\"Not support send folder\",\"not_support_send_such_file\":\"Not support this type of file\",\"group_name\":\"Group name\",\"group_announcement\":\"Group announcement\",\"add_member\":\"Add member\",\"remove_member\":\"Remove member\",\"quit_group\":\"Quit group chat\",\"dismiss_group\":\"Dismiss group chat\",\"click_to_edit_group_announcement\":\"click to edit group announcement\",\"all_people\":\"Everyone\",\"sticky_top\":\"sticky_top\",\"cancel_sticky_top\":\"Cancel sticky top\",\"enable_notification\":\"Allow notification\",\"disable_notification\":\"Not disturb\",\"mark_as_unread\":\"Mark as unread\",\"mark_as_read\":\"Mark as read\",\"clear_conversation_history\":\"Clear local history\",\"clear_remote_conversation_history\":\"Clear remote history\"},\"fav\":{\"fav\":\"Collection\",\"all\":\"All Collection\",\"file\":\"File\",\"media\":\"Album\",\"composite\":\"Chat Record\",\"from\":\"From\",\"no_more\":\"No more favorites\",\"all_fav_load\":\"All favorites have been loaded :(\"},\"voip\":{\"desc\":\"Audio and Video Call\",\"not_answer\":\"The other party did not answer\",\"ongoing\":\"Calling\",\"duration\":\"Call duration\"},\"pick\":{\"pick_contact\":\"Select Contact\",\"picked_contact\":\"Selected contact\"},\"search\":{\"new_user\":\"User\",\"view_all\":\"View All\",\"message_history\":\"Chat History\",\"search_message_history\":\"Search chat history...\"},\"file_record\":{\"no_more\":\"No more files\",\"all_file_load\":\"All files have been loaded :(\"},\"setting\":{\"setting\":\"Settings\",\"enable_notification\":\"Enable notification\",\"enable_notification_detail\":\"Notification display message content\",\"close_window_to_exit\":\"When closing the window, exit directly\",\"auto_login\":\"Remember me\",\"exit_switch_user\":\"Exit/Switch Account\",\"feedback\":\"Send feedback to us\",\"lang\":\"Language (valid after restart)\",\"zh_cn\":\"简体中文\",\"zh_tw\":\"繁體中文\",\"en\":\"English\",\"sync_draft\":\"Sync draft\"},\"common\":{\"add\":\"Add\",\"remove\":\"Remove\",\"send\":\"Send\",\"contact\":\"Contact\",\"confirm\":\"Confirm\",\"cancel\":\"Cancel\",\"alias\":\"Remarks\",\"area\":\"Area\",\"label\":\"Label\",\"conversation\":\"Chat\",\"sender\":\"Sender\",\"all\":\"All\",\"mine\":\"Mine\",\"unknown\":\"Unknown\",\"search\":\"Search\",\"back\":\"Back\",\"create\":\"Create\",\"none\":\"None\",\"copy\":\"Copy\",\"paste\":\"Paste\",\"cut\":\"Cut\",\"delete\":\"Delete\",\"forward\":\"forward\",\"fav\":\"Collection\",\"quote\":\"quote\",\"multi_select\":\"Multiselect\",\"recall\":\"Recall\",\"cancel_send\":\"Cancel Send\",\"open\":\"Open\",\"open_dir\":\"Open Directory\",\"draft\":\"Draft\",\"save\":\"Save\",\"month_1\":\"January\",\"month_2\":\"February\",\"month_3\":\"March Month\",\"month_4\":\"April\",\"month_5\":\"May\",\"month_6\":\"June\",\"month_7\":\"July\",\"month_8\":\"August\",\"month_9\":\"September\",\"month_10\":\"October\",\"month_11\":\"November\",\"month_12\":\"December\",\"wfc_id\":\"ID\",\"channel\":\"Channel\"},\"misc\":{\"beijing\":\"Beijing\",\"test_user\":\"Test User\",\"gen_qr_code\":\"Generating QR code\",\"send_to_friend\":\"Send to Friend...\",\"share_to_friend\":\"Share to Friend...\"}}");

/***/ }),

/***/ "./src/assets/lang/zh-CN.json":
/*!************************************!*\
  !*** ./src/assets/lang/zh-CN.json ***!
  \************************************/
/*! exports provided: login, contact, friend_request, group, channel, message, conversation, fav, voip, pick, search, file_record, setting, common, misc, default */
/***/ (function(module) {

module.exports = JSON.parse("{\"login\":{\"desc\":\"扫码登录野火IM\",\"tip_pc\":\"野火IM PC端需要配合您的手机客户端登录使用\",\"tip_web\":\"野火IM Web端需要配合您的手机客户端登录使用\",\"warning\":\"不是使用微信扫码登录!!!\",\"scan_qr_success\":\"扫码成功\",\"confirm_login_tip\":\"请在手机上点击确认以登录\",\"remember_me\":\"记住登录\",\"cancel_login\":\"取消登录\",\"login\":\"登录\",\"switch_user\":\"切换用户\",\"auto_login_tip\":\"自动登录中...\"},\"contact\":{\"new_friend\":\"新的朋友\",\"group\":\"群聊\",\"channel\":\"频道\",\"contact\":\"联系人\"},\"friend_request\":{\"request\":\"好友请求\",\"send_request_tip\":\"向{0}发送好友请求\",\"accepted\":\"已添加\",\"sent\":\"已发送\",\"denied\":\"已拒绝\",\"im\":\"我是\",\"intro\":\"你好\"},\"group\":{\"name\":\"群名称: {0}\",\"chat\":\"进入群聊\",\"fav\":\"保存到通讯录\",\"alias\":\"我在本群的昵称\"},\"channel\":{\"name\":\" 频道名称: {0}\",\"chat\":\"进入频道\",\"subscribe\":\"订阅\"},\"message\":{\"send_message\":\"发消息\",\"records\":\"聊天记录\",\"unsupport_message_desc\":\"不支持该消息类型，请在手机上查看\",\"receipt\":\"消息回执\",\"receipt_detail\":\"消息回执详情\",\"receipt_read_users\":\"已读人员\",\"receipt_unread_users\":\"未读人员\",\"receipt_received_users\":\"已送达\",\"receipt_unreceived_users\":\"未送达\",\"sender\":\"消息发送者\",\"content\":\"消息内容\"},\"conversation\":{\"forward_title\":\"分别发送给\",\"picked_contact\":\"已选择联系人\",\"create_group\":\"创建群聊\",\"recent_conversation\":\"最近聊天\",\"not_select_conversation\":\"未选择聊天\",\"select_conversation_desc\":\"已选择{0}个聊天\",\"forward_extra\":\"给朋友留言\",\"forward_one_by_one\":\"逐条转发\",\"forward_composite\":\"合并转发\",\"user_message_records\":\"{0}的聊天记录\",\"group_message_records\":\"群聊的聊天记录\",\"drag_to_send_to\":\"拖拽到此发送给{0}\",\"no_more_message\":\"没有更多消息\",\"all_message_load\":\"已加载全部消息 :(\",\"drag_to_send_limit_tip\":\"一次最多发送5个文件\",\"not_support_send_folder\":\"不支持发送文件夹\",\"not_support_send_such_file\":\"不支持发送该类型文件\",\"group_name\":\"群名\",\"group_announcement\":\"群公告\",\"channel_name\":\"频道名称\",\"channel_desc\":\"频道描述\",\"unsubscribe_channel\":\"取消订阅\",\"subscribe_channel\":\"订阅频道\",\"add_member\":\"添加成员\",\"remove_member\":\"移除成员\",\"quit_group\":\"退出群聊\",\"dismiss_group\":\"解散群组\",\"click_to_edit_group_announcement\":\"点击编辑群公告\",\"all_people\":\"所有人\",\"sticky_top\":\"置顶\",\"cancel_sticky_top\":\"取消置顶\",\"enable_notification\":\"允许通知\",\"disable_notification\":\"消息免打扰\",\"mark_as_unread\":\"标记为未读\",\"mark_as_read\":\"标记为已读\",\"show_in_float_window\":\"在独立窗口打开\",\"clear_conversation_history\":\"清空本地聊天记录\",\"clear_remote_conversation_history\":\"清空远程聊天记录\"},\"fav\":{\"fav\":\"收藏\",\"all\":\"全部收藏\",\"file\":\"文件\",\"media\":\"相册\",\"composite\":\"聊天记录\",\"from\":\"来自\",\"no_more\":\"没有更多收藏\",\"all_fav_load\":\"已加载全部收藏 :(\"},\"voip\":{\"desc\":\"音视频通话\",\"not_answer\":\"对方未接听\",\"ongoing\":\"通话中\",\"duration\":\"通话时长\"},\"pick\":{\"pick_contact\":\"选择联系人\",\"picked_contact\":\"已选择联系人\"},\"search\":{\"new_user\":\"用户\",\"view_all\":\"查看全部\",\"message_history\":\"聊天记录\",\"search_message_history\":\"搜索聊天记录...\"},\"file_record\":{\"no_more\":\"没有更多文件\",\"all_file_load\":\"已加载全部文件 :(\"},\"setting\":{\"setting\":\"设置\",\"enable_notification\":\"开启通知\",\"enable_notification_detail\":\"通知显示消息内容\",\"close_window_to_exit\":\"关闭窗口时，直接退出\",\"enable_minimize\":\"支持最小化\",\"auto_login\":\"记住登录\",\"exit_switch_user\":\"退出/切换账号\",\"feedback\":\"发送反馈给我们\",\"lang\":\"语言(重启生效)\",\"zh_cn\":\"简体中文\",\"zh_tw\":\"繁體中文\",\"en\":\"English\",\"sync_draft\":\"同步草稿\"},\"common\":{\"add\":\"添加\",\"remove\":\"移除\",\"send\":\"发送\",\"contact\":\"联系人\",\"confirm\":\"确认\",\"cancel\":\"取消\",\"alias\":\"备注\",\"area\":\"地区\",\"label\":\"标签\",\"conversation\":\"聊天\",\"sender\":\"发送者\",\"all\":\"全部\",\"mine\":\"我的\",\"unknown\":\"未知\",\"search\":\"搜索\",\"back\":\"返回\",\"create\":\"创建\",\"none\":\"无\",\"copy\":\"复制\",\"paste\":\"粘贴\",\"cut\":\"剪切\",\"delete\":\"删除\",\"forward\":\"转发\",\"fav\":\"收藏\",\"quote\":\"引用\",\"multi_select\":\"多选\",\"recall\":\"撤回\",\"cancel_send\":\"取消发送\",\"open\":\"打开\",\"open_dir\":\"打开目录\",\"draft\":\"草稿\",\"save\":\"存储\",\"month_1\":\"一月\",\"month_2\":\"二月\",\"month_3\":\"三月\",\"month_4\":\"四月\",\"month_5\":\"五月\",\"month_6\":\"六月\",\"month_7\":\"七月\",\"month_8\":\"八月\",\"month_9\":\"九月\",\"month_10\":\"十月\",\"month_11\":\"十一月\",\"month_12\":\"十二月\",\"wfc_id\":\"账号\",\"channel\":\"频道\"},\"misc\":{\"beijing\":\"北京\",\"test_user\":\"测试用户\",\"gen_qr_code\":\"二维码生成中\",\"send_to_friend\":\"发送给朋友...\",\"share_to_friend\":\"分享给朋友...\"}}");

/***/ }),

/***/ "./src/assets/lang/zh-TW.json":
/*!************************************!*\
  !*** ./src/assets/lang/zh-TW.json ***!
  \************************************/
/*! exports provided: login, contact, friend_request, group, message, conversation, fav, voip, pick, search, file_record, setting, common, misc, default */
/***/ (function(module) {

module.exports = JSON.parse("{\"login\":{\"desc\":\"掃碼登錄野火IM\",\"tip_pc\":\"野火IM PC端需要配合您的手機客戶端登錄使用\",\"tip_web\":\"野火IM Web端需要配合您的手機客戶端登錄使用\",\"warning\":\"不是使用微信掃碼登錄!!!\",\"scan_qr_success\":\"掃碼成功\",\"confirm_login_tip\":\"請在手機上點擊確認以登錄\",\"remember_me\":\"記住登錄\",\"cancel_login\":\"取消登錄\",\"login\":\"登錄\",\"switch_user\":\"切換用戶\",\"auto_login_tip\":\"自動登錄中...\"},\"contact\":{\"new_friend\":\"新的朋友\",\"group\":\"群聊\",\"channel\":\"頻道\",\"contact\":\"聯系人\"},\"friend_request\":{\"request\":\"好友請求\",\"send_request_tip\":\"向{0}發送好友請求\",\"accepted\":\"已添加\",\"sent\":\"已發送\",\"denied\":\"已拒絕\",\"im\":\"我是\",\"intro\":\"你好\"},\"group\":{\"name\":\"群名稱{0}\",\"chat\":\"進入群聊\",\"fav\":\"保存到通訊錄\"},\"message\":{\"send_message\":\"發消息\",\"records\":\"聊天記錄\",\"unsupport_message_desc\":\"不支持該消息類型，請在手機上查看\",\"receipt\":\"消息回執\",\"receipt_detail\":\"消息回執詳情\",\"receipt_read_users\":\"已讀人員\",\"receipt_unread_users\":\"未讀人員\",\"receipt_received_users\":\"已送達\",\"receipt_unreceived_users\":\"未送達\",\"sender\":\"消息發送者\",\"content\":\"消息內容\"},\"conversation\":{\"forward_title\":\"分別發送給\",\"picked_contact\":\"已選擇聯系人\",\"create_group\":\"創建群聊\",\"recent_conversation\":\"最近聊天\",\"not_select_conversation\":\"未選擇聊天\",\"select_conversation_desc\":\"已選擇{0}個聊天\",\"forward_extra\":\"給朋友留言\",\"forward_one_by_one\":\"逐條轉發\",\"forward_composite\":\"合並轉發\",\"user_message_records\":\"{0}的聊天記錄\",\"group_message_records\":\"群聊的聊天記錄\",\"drag_to_send_to\":\"拖拽到此發送給{0}\",\"no_more_message\":\"沒有更多消息\",\"all_message_load\":\"已加載全部消息 :(\",\"drag_to_send_limit_tip\":\"一次最多發送5個文件\",\"not_support_send_folder\":\"不支持發送文件夾\",\"not_support_send_such_file\":\"不支持發送該類型文件\",\"group_name\":\"群名\",\"group_announcement\":\"群公告\",\"add_member\":\"添加成員\",\"remove_member\":\"移除成員\",\"quit_group\":\"解散群組\",\"click_to_edit_group_announcement\":\"點擊編輯群公告\",\"all_people\":\"所有人\",\"sticky_top\":\"置頂\",\"cancel_sticky_top\":\"取消置頂\",\"enable_notification\":\"允許通知\",\"disable_notification\":\"消息免打擾\",\"mark_as_unread\":\"標記為未讀\",\"mark_as_read\":\"標記為已讀\",\"clear_conversation_history\":\"清空本地聊天記錄\",\"clear_remote_conversation_history\":\"清空遠程聊天記錄\"},\"fav\":{\"fav\":\"收藏\",\"all\":\"全部收藏\",\"file\":\"文件\",\"media\":\"相冊\",\"composite\":\"聊天記錄\",\"from\":\"來自\",\"no_more\":\"沒有更多收藏\",\"all_fav_load\":\"已加載全部收藏 :(\"},\"voip\":{\"desc\":\"音視頻通話\",\"not_answer\":\"對方未接聽\",\"ongoing\":\"通話中\",\"duration\":\"通話時長\"},\"pick\":{\"pick_contact\":\"選擇聯系人\",\"picked_contact\":\"已選擇聯系人\"},\"search\":{\"new_user\":\"用戶\",\"view_all\":\"查看全部\",\"message_history\":\"聊天記錄\",\"search_message_history\":\"搜索聊天記錄...\"},\"file_record\":{\"no_more\":\"沒有更多文件\",\"all_file_load\":\"已加載全部文件 :(\"},\"setting\":{\"setting\":\"設置\",\"enable_notification\":\"開啟通知\",\"enable_notification_detail\":\"通知顯示消息內容\",\"close_window_to_exit\":\"關閉窗口時，直接退出\",\"enable_minimize\":\"支持最小化\",\"auto_login\":\"記住登錄\",\"exit_switch_user\":\"退出/切換賬號\",\"feedback\":\"發送反饋給我們\",\"lang\":\"語言(重啟生效)\",\"zh_cn\":\"简体中文\",\"zh_tw\":\"繁體中文\",\"en\":\"English\",\"sync_draft\":\"同步草稿\"},\"common\":{\"add\":\"添加\",\"remove\":\"移除\",\"send\":\"發送\",\"contact\":\"聯系人\",\"confirm\":\"確認\",\"cancel\":\"取消\",\"alias\":\"備註\",\"area\":\"地區\",\"label\":\"標簽\",\"conversation\":\"聊天\",\"sender\":\"發送者\",\"all\":\"全部\",\"mine\":\"我的\",\"unknown\":\"未知\",\"search\":\"搜索\",\"back\":\"返回\",\"create\":\"創建\",\"none\":\"無\",\"copy\":\"復製\",\"paste\":\"粘貼\",\"cut\":\"剪切\",\"delete\":\"刪除\",\"forward\":\"轉發\",\"fav\":\"收藏\",\"quote\":\"引用\",\"multi_select\":\"多選\",\"recall\":\"撤回\",\"cancel_send\":\"取消发送\",\"open\":\"打開\",\"open_dir\":\"打開目錄\",\"draft\":\"草稿\",\"save\":\"存儲\",\"month_1\":\"一月\",\"month_2\":\"二月\",\"month_3\":\"三月\",\"month_4\":\"四月\",\"month_5\":\"五月\",\"month_6\":\"六月\",\"month_7\":\"七月\",\"month_8\":\"八月\",\"month_9\":\"九月\",\"month_10\":\"十月\",\"month_11\":\"十一月\",\"month_12\":\"十二月\",\"wfc_id\":\"賬號\",\"channel\":\"頻道\"},\"misc\":{\"beijing\":\"北京\",\"test_user\":\"測試用戶\",\"gen_qr_code\":\"二維碼生成中\",\"send_to_friend\":\"發送給朋友...\",\"share_to_friend\":\"分享給朋友...\"}}");

/***/ }),

/***/ "./src/components/mqttClient/WebMqtt.js":
/*!**********************************************!*\
  !*** ./src/components/mqttClient/WebMqtt.js ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var mqtt__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! mqtt */ "./node_modules/mqtt/lib/connect/index.js");
/* harmony import */ var mqtt__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(mqtt__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_sdk__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/sdk */ "./src/components/mqttClient/utils/sdk.js");







class MQTT {
  /**
   * @constructor
   * @param options {{password: *, roomId: *, username: *}}
   * @param options.username {string} 登录用户名，登录接口返回的loginUser中的name
   * @param options.password {string} 登录用户密码，登录接口返回的loginUser中的password
   * @param options.mqttId {string} mqtt登录id,调度台的唯一id
   * @param options.roomId {string} 房间id
   */
  constructor(options = {}) {
    const {
      username,
      password,
      mqttId,
      roomId
    } = options;
    // 视频服务器地址
    this.server = "wss://media.baibaodun.cn:8989";
    // 信令控制
    this.brokerUrl = "wss://push.baibaodun.cn:8084";
    // 登录用户名，登录接口返回的loginUser中的name
    this.username = username;
    // 登录用户密码，登录接口返回的loginUser中的password
    this.password = password;
    // mqtt登录id,调度台的唯一id
    this.mqttId = mqttId || JSON.parse(localStorage.getItem("userInfo"))['dispatchNo'];
    this.roomId = roomId;
    // 远程视频流
    this.remoteVideos = {};
    // 事件绑定
    this._events = {};
    // mqtt客户端
    this.client = null;
    this.pushVideoObj = null;
    // 必填参数校验
    optionsValidator(this, ["server", "brokerUrl", "username", "password", "mqttId"]);
    // 初始化
    console.log('mqtt初始化:', this);
    this.connect(this);
  }

  // 监听事件
  on(event, listener) {
    if (typeof listener !== "function") {
      throw new TypeError("Listener must be a function");
    }
    if (!this._events[event]) {
      this._events[event] = [];
    }
    this._events[event].push(listener);
  }

  // 触发事件
  emit(event, ...args) {
    if (this._events[event]) {
      this._events[event].forEach(listener => {
        listener.apply(this, args);
      });
    }
  }

  // 连接服务器
  connect() {
    // 初始化库
    Object(_utils_sdk__WEBPACK_IMPORTED_MODULE_6__["initLibrary"])(ok => {
      // console.log("init video library succeed.", ok);
      Object(_utils_sdk__WEBPACK_IMPORTED_MODULE_6__["setServerInfo"])(this.server); //配置服务器地址
      setTimeout(() => {
        this.emit("init", ok);
      }, 0);
    });
    // Step 1  信令服务器初始化
    this.client = mqtt__WEBPACK_IMPORTED_MODULE_5___default.a.connect(this.brokerUrl, {
      path: "/mqtt",
      username: this.username,
      password: this.password
    });
    // Step 2 订阅主题,id为调度台的唯一id
    this.client.on("connect", () => {
      // 连接成功订阅主题
      this.client.subscribe(`target/pc/qos0/msg/${this.mqttId}`, err => {
        // console.log(err, "订阅上下线成功");
        if (!err) {
          this.emit("subscribe");
        }
      });
      this.client.subscribe(`target/media/signal/${this.mqttId}`, err => {
        // console.log(err, "订阅语音视频");
        if (!err) {
          this.emit("subscribeMedia");
        }
      });
      // this.client.subscribe(`target/media/signal/${this.roomId}`, (err) => {
      //   console.log("err", "测试订阅成功", err);
      // });
      this.emit("connect");
    });
    // 监听终端信令，监听终端发过来的指令
    this.client.on("message", (topic, message) => {
      console.log(message, 'message');
      let response = JSON.parse(message.toString());
      this.emit("message", {
        response,
        topic
      });
    });
    // 设置错误处理函数
    this.client.on("error", error => {
      console.log(error);
      this.emit("error", error);
    });
  }
}
function optionsValidator(target, requiredFields) {
  let invalidFields = [];
  requiredFields.forEach(field => {
    if (target[field] === null || target[field === undefined] || target[field] === "") {
      invalidFields.push(field);
    }
  });
  if (invalidFields.length > 0) {
    throw new Error(`参数${invalidFields.join(", ")}缺失！`);
  }
}

/**
 * 信令下发
 * @param options {{toId: string, action: number, name: string, audioonly: boolean}}
 * @param options.toId 目标ID
 * @param options.action 0:发起呼叫 | 1:接听呼叫 | 2:挂断呼叫
 * @param options.name 会话名称
 * @param options.audioonly 是否仅音频通话
 */
MQTT.prototype.publish = function (options = {}) {
  console.log('信令下发:', options);
  optionsValidator(options, ["toId", "action"]);
  let cmd = {
    cmd: "meeting",
    to: options.toId,
    //目标ID
    from: this.roomId,
    //本人ID
    name: options.name || "调度台",
    sessionId: "",
    fromUType: 1,
    timestamp: new Date().getTime(),
    data: {
      roomId: this.roomId,
      roomDesc: "",
      videoRatio: "1280*720",
      action: options.action,
      audioonly: options.audioonly || false,
      //仅音频通话
      reason: ""
    }
  };
  console.log('调度台:', JSON.stringify(cmd));
  this.client.publish(`target/media/signal/${options.toId}`, JSON.stringify(cmd));
};

// 拉取远程视频
MQTT.prototype.sendPullVideoCall = function (options = {}) {
  var videoRatio = 1;
  // videoRation 为单选框 选择条件为高清 流畅
  let videoRatioStr = "1280*720";
  if (videoRatio == 1) {
    videoRatioStr = "1280*720";
  } else if (videoRatio == 2) {
    videoRatioStr = "1920*1080";
  } else {
    videoRatioStr = "1280*720";
  }
  let cmd = {
    cmd: 'call',
    to: Number(options.toId),
    from: this.mqttId,
    name: "拉取视频",
    sessionId: "",
    // 你无需关注
    timestamp: new Date().getTime(),
    // 时间戳(单位: 秒)   //terminal
    data: {
      calltype: "dispatch",
      server: "",
      // 你无需关注
      roomId: "",
      // 你无需关注
      userId: "",
      // 你无需关注,
      mediaId: "",
      // 你无需关注,
      audio: true,
      // 是否带音频
      video: true,
      // 是否带视频（注：音频视频不能同时为false）
      silent: true,
      //是否是静默拉取，true 为静默拉取，false 非静默监控
      videoRatio: videoRatioStr,
      videoPriority: videoRatio == 2 ? 0 : 1
    }
  };
  console.log('拉取远程视频:', JSON.stringify(cmd));
  this.client.publish(`target/media/signal/${options.toId}`, JSON.stringify(cmd));
};

// 挂断监控或静默
MQTT.prototype.handUpVideo = function (options = {}) {
  if (!options.toId) {
    console.error("Missing toId in handUpVideo");
    return;
  }
  let cmd = {
    cmd: "bye",
    to: options.toId,
    from: this.mqttId,
    // 来源者Id
    sessionId: "",
    timestamp: new Date().getTime(),
    // 时间戳(单位: 秒)
    data: {
      calltype: "dispatch"
    }
  };
  console.log('挂断监控或静默:', JSON.stringify(cmd));
  this.client.publish(`target/media/signal/${options.toId}`, JSON.stringify(cmd));
};

//切换摄像头
MQTT.prototype.switchCamera = function (options = {}) {
  try {
    if (!options.toId) {
      console.error("Invalid toId for switchCamera");
      this.emit("error", "Invalid toId for switchCamera");
      return;
    }
    let cmd = {
      type: 1306,
      remark: '',
      from: this.mqttId,
      timestamp: new Date().getTime(),
      data: {
        cameraType: options.isFront ? 0 : 1 // 0后置 1前置
      }
    };
    console.log('切换摄像头:', JSON.stringify(cmd));
    this.client.publish(`target/ptt/qos0/msg/${options.toId}`, JSON.stringify(cmd));
  } catch (err) {
    console.error("Exception in switchCamera:", err);
    this.emit("error", `Exception in switchCamera: ${err.message || err}`);
  }
};

// 邀请参会人
MQTT.prototype.invite = function (options = {}) {
  if (options.isCallVideo) {
    this.sendPullVideoCall(options);
  } else {
    this.publish({
      ...options,
      action: 0
    });
  }
};

// 踢掉单个参会人
MQTT.prototype.kickOut = function (options) {
  this.publish({
    ...options,
    action: 2
  });
  if (this.remoteVideos[options.toId]) {
    this.remoteVideos[options.toId].closeRemoteVideo();
    delete this.remoteVideos[options.toId];
    // const videoElem = document.getElementById(`remote-video-${options.toId}`);
    // if (videoElem) videoElem.remove();
  }
};

// 远程邀请连麦
MQTT.prototype.toSendMic = function (options) {
  this.publish({
    ...options,
    action: 5
  });
};
// 远程取消连麦
MQTT.prototype.toCancelMic = function (options) {
  this.publish({
    ...options,
    action: 4
  });
};
// 1 调度台发起
MQTT.prototype.publishLocalVideo = function (options = {}) {
  console.log("publishLocalVideo", options);
  this.pushVideoObj = new _utils_sdk__WEBPACK_IMPORTED_MODULE_6__["PublishVideo"]();
  this.pushVideoObj.init({
    success: () => {
      this.emit("localVideoPush");
      this.openLocalVideo(options);
    },
    error: err => {
      this.emit("localVideoPushError", err);
      console.log("init publish video fail:" + err);
    }
  });
};

// 静默拉取远程视频
MQTT.prototype.pullOnVideo = function (data) {
  console.log('走这里拉流了', data);
  // setServerInfo("ws://58.48.240.39:8188"); //配置服务器地址
  // setServerInfo("wss://chn-gwsd-video-fx.hawk-sight.com:8989"); //配置服务器地址
  Object(_utils_sdk__WEBPACK_IMPORTED_MODULE_6__["setServerInfo"])(this.server); //配置服务器地址

  try {
    if (!data || !data.data) {
      console.error("Invalid data for pullOnVideo:", data);
      this.emit("remoteVideoError", "Invalid data for video pull");
      return;
    }
    const pullCall = new _utils_sdk__WEBPACK_IMPORTED_MODULE_6__["SubscibeVideo"]();
    pullCall.init({
      success: () => {
        try {
          const videoElement = document.getElementById(`remote-video-${data.from}`);
          if (!videoElement) {
            console.warn(`Video element remote-video-${data.from} not found`);
          }
          pullCall.openRemoteVideo({
            videoWnd: videoElement,
            // !! 在view层写video标签，id一定要为【remote-video】 !!
            roomId: data.data.roomId,
            roomId: data.data.roomId,
            userId: data.data.userId,
            videoId: data.data.mediaId,
            isAudio: true,
            isVideo: true,
            success: function () {
              console.log("remote video open success!");
            },
            videoClose: function () {
              console.log("remote video closed!");
              pullCall = null;
            },
            error: err => {
              console.error("open remote video fail: " + err);
              this.emit("remoteVideoError", err);
            }
          });
        } catch (err) {
          console.error("Error in openRemoteVideo:", err);
          this.emit("remoteVideoError", err.message || "Failed to open remote video");
        }
      },
      error: err => {
        console.error("init pull video fail:" + err);
        this.emit("pullRemoteError", err);
      }
    });
  } catch (err) {
    console.error("Exception in pullOnVideo:", err);
    this.emit("remoteVideoError", err.message || "Exception in video pull");
  }
};
MQTT.prototype.openLocalVideo = function (options = {}) {
  const {
    videoName,
    isAudio,
    isVideo
  } = options;
  this.pushVideoObj.openLocalVideo({
    videoName: videoName || "调度台",
    // html视频控件
    videoWnd: document.getElementById("local-video"),
    // !! 在view层写video标签，id一定要为【local-video】 !!
    roomId: this.roomId,
    isAudio,
    // 是否上传音频
    isVideo,
    // 是否上传视频
    success: (userId, mediaId) => {
      this.emit("localVideoOpen", {
        userId,
        mediaId
      });
    },
    videoClose: () => {
      console.log("videoClose", this.pushVideoObj);
      this.pushVideoObj = null;
      this.emit("localVideoClose");
    },
    error: err => {
      this.emit("localVideoError", err);
      console.log("open local video fail: " + err);
    }
  });
};
MQTT.prototype.deleteRemote = function (userId) {
  if (this.remoteVideos[userId]) {
    delete this.remoteVideos[userId];
  }
};

// 移除事件监听
MQTT.prototype.off = function (event, listener) {
  if (!this._events[event]) return;
  if (!listener) {
    delete this._events[event]; // 移除所有监听器
  } else {
    this._events[event] = this._events[event].filter(l => l !== listener);
  }
};

// 彻底释放资源
MQTT.prototype.destroy = function () {
  // 移除所有事件监听
  this._events = {};

  // 关闭MQTT连接
  if (this.client) {
    this.client.end(true);
    this.client = null;
  }

  // 清理视频资源
  this.closeAllVideos();
  this.pushVideoObj = null;
};

// 关闭所有视频
MQTT.prototype.closeAllVideos = function () {
  console.log("close all videos", this.remoteVideos);
  Object.keys(this.remoteVideos).forEach(userId => {
    if (this.remoteVideos[userId]) {
      console.log("remote subscribe video", this.remoteVideos[userId]);
      this.kickOut({
        toId: userId
      });
      // this.remoteVideos[userId].closeRemoteVideo();
      delete this.remoteVideos[userId];
      // const videoElem = document.getElementById(`remote-video-${userId}`);
      // if (videoElem) videoElem.remove();
    }
  });
};

// 挂断
MQTT.prototype.leave = function (isCallVideo = false, toId) {
  try {
    this.closeAllVideos();

    // 销毁整个会话
    if (isCallVideo) {
      this.handUpVideo({
        toId
      });
    } else {
      this.pushVideoObj.closeLocalVideo(this.roomId);
    }
  } catch (e) {
    console.log("销毁整个会话异常", e);
  }
};

/**
 * 3 终端接收上面调度台发的mqtt后，给返回消息(
 * "data":{
 * "mediaId":4065489132,
 * "roomId":4147994882254753,
 * "server":"ws://47.106.165.35:8188",
 * "userId":8706460590024001
 * }为目标终端返回的数据) 给调度台，调度执行拉取音频操作即可进行双工会话
 */

/**
 * 拉取远端视频
 * @param userId 远端用户id
 */
MQTT.prototype.pullRemoteVideo = function (userId) {
  if (this.remoteVideos[userId]) {
    console.warn(`用户 ${userId} 的视频已存在`);
    return;
  }
  Object(_utils_sdk__WEBPACK_IMPORTED_MODULE_6__["setServerInfo"])(this.server); //配置服务器地址
  const pullCall = new _utils_sdk__WEBPACK_IMPORTED_MODULE_6__["SubscibeVideo"]();
  pullCall.init({
    success: () => {
      this.emit("pullRemoteSuccess");
      pullCall.openRemoteVideo({
        videoWnd: document.getElementById(`remote-video-${userId}`),
        // videoWnd: document.getElementById(`remote-${userId}`),
        roomId: this.roomId,
        userId,
        isAudio: true,
        isVideo: true,
        success: () => {
          console.log(`远程用户 ${userId} 视频打开成功!`);
          this.remoteVideos[userId] = pullCall;
          this.emit("remoteVideoOpen");
        },
        videoClose: () => {
          delete this.remoteVideos[userId];
          // videoElem.remove();
          this.emit("remoteVideoClose");
        },
        error: err => {
          this.emit("remoteVideoError", err);
          throw new Error(err);
        }
      });
    },
    error: err => {
      this.emit("pullRemoteError", err);
      console.error("init pull video fail:" + err);
    }
  });
};
/* harmony default export */ __webpack_exports__["default"] = (MQTT);

/***/ }),

/***/ "./src/components/mqttClient/utils/bus.js":
/*!************************************************!*\
  !*** ./src/components/mqttClient/utils/bus.js ***!
  \************************************************/
/*! exports provided: bus */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bus", function() { return bus; });
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");

const bus = new vue__WEBPACK_IMPORTED_MODULE_0__["default"]();

/***/ }),

/***/ "./src/components/mqttClient/utils/sdk.js":
/*!************************************************!*\
  !*** ./src/components/mqttClient/utils/sdk.js ***!
  \************************************************/
/*! exports provided: initLibrary, setServerInfo, getLibraryVersion, PublishVideo, SubscibeVideo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initLibrary", function() { return initLibrary; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setServerInfo", function() { return setServerInfo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLibraryVersion", function() { return getLibraryVersion; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PublishVideo", function() { return PublishVideo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscibeVideo", function() { return SubscibeVideo; });
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _webrtc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./webrtc */ "./src/components/mqttClient/utils/webrtc.js");
/* harmony import */ var _bus__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bus */ "./src/components/mqttClient/utils/bus.js");
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! element-ui */ "./node_modules/element-ui/lib/element-ui.common.js");
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(element_ui__WEBPACK_IMPORTED_MODULE_4__);





// var serverInfo = "ws://127.0.0.1:8188";
var serverInfo = "";
var libraryVersion = "v1.0.3";
var localstreamAudio = null;
var localstreamVideo = null;
function initLibrary(callback) {
  _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].init({
    debug: "all",
    callback: function () {
      callback(_webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].isWebrtcSupported());
    }
  });
}
function setServerInfo(svrInfo) {
  serverInfo = svrInfo;
}
function getLibraryVersion() {
  return libraryVersion;
}
function generateUUID() {
  var d = new Date().getTime();
  var uuid = "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function (c) {
    var r = (d + Math.random() * 16) % 16 | 0;
    d = Math.floor(d / 16);
    return (c == "x" ? r : r & 0x3 | 0x8).toString(16);
  });
  return uuid;
}
function PublishVideo() {
  var libraryHandle = null;
  var sessionHandle = null;
  var sessionId = generateUUID();
  // 房间
  var roomCallback = null;
  // 视频相关变量
  var localVideoRatio = "hires";
  var localVideoCodec = "vp9";
  var localAudioCodec = "opus";
  var selfUserId = null;
  var selfVideoId = null;
  var openVideoOptions = null;
  var localVideoStream = null;
  console.log(serverInfo, 11111);
  // 初始化
  this.init = function (options) {
    console.log(options);
    libraryHandle = new _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"]({
      server: serverInfo,
      success: function () {
        libraryHandle.attach({
          plugin: "janus.plugin.videoroom",
          opaqueId: sessionId,
          success: function (pluginHandle) {
            sessionHandle = pluginHandle;
            _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("publish: video server load success.");
            options.success();
          },
          error: function (err) {
            _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].error("publish: video server load fail:" + err);
            options.error(err);
          },
          consentDialog: onConsentDialog,
          mediaState: onMediaState,
          webrtcState: onWebrtcState,
          onmessage: onMessage,
          onlocalstream: onLocalStream,
          onremotestream: onRemoteStream,
          oncleanup: onCleanup
        });
      },
      error: function (err) {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].error("publish: load video library fail:" + err);
        options.error(err);
      },
      destroyed: function () {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("publish: video library is destoryed.");
      }
    });
  };
  this.setLocalVideoRatio = function (ratio) {
    if (ratio == "320*240") {
      localVideoRatio = "lowres";
      // localVideoCodec = "vp8";
    } else if (ratio == "1280*720") {
      localVideoRatio = "hires";
      // localVideoCodec = "vp9";
    } else {
      localVideoRatio = "stdres";
      // localVideoCodec = "vp8";
    }
  };

  //创建房间和加入房间
  this.openLocalVideo = function (options) {
    openVideoOptions = options;
    if (openVideoOptions.type === "camera") {
      var createRoomMsg = {
        request: "create",
        room: Number(openVideoOptions.roomId),
        description: `${Number(openVideoOptions.roomId)}:${openVideoOptions.videoName}`,
        publishers: 32,
        permanent: false,
        bitrate: 20480000,
        fir_freq: 10,
        audiocodec: "pcmu",
        videocodec: "vp8,h264",
        opus_fec: true,
        video_svc: false,
        record: false
      };
      localAudioCodec = "pcmu";
      localVideoCodec = "H264";
    } else {
      var createRoomMsg = {
        request: "create",
        room: Number(openVideoOptions.roomId),
        description: `${Number(openVideoOptions.roomId)}:${openVideoOptions.videoName}`,
        publishers: 32,
        permanent: false,
        bitrate: 20480000,
        fir_freq: 10,
        audiocodec: "opus",
        videocodec: "vp8,vp9",
        opus_fec: true,
        video_svc: false,
        record: false
      };
    }
    sessionHandle.send({
      message: createRoomMsg,
      success: function (msg) {
        console.log(msg, "createRoom");
        if (msg != null && msg != undefined) {
          if (options.type === "camera") {
            var joinRoomMsg = {
              request: "join",
              room: Number(options.roomId),
              ptype: "publisher",
              id: Number(options.roomId),
              display: `${Number(options.roomId)}:${options.videoName}`
            };
            sessionHandle.send({
              message: joinRoomMsg,
              success: function (msg) {}
            });
          } else {
            var joinRoomMsg = {
              request: "join",
              room: Number(options.roomId),
              ptype: "publisher",
              id: Number(options.roomId),
              display: `${Number(options.roomId)}:${options.videoName}`
            };
            sessionHandle.send({
              message: joinRoomMsg,
              success: function (msg) {}
            });
          }
        }
      },
      error: function (err) {
        console.log(error, "createRoomError");
      }
    });
  };
  this.getLocalVideoStream = function () {
    return localVideoStream;
  };
  this.closeLocalVideo = function () {
    var unpublishMsg = {
      request: "unpublish"
    };
    sessionHandle.send({
      message: unpublishMsg
    });
    let bindingUserId = Number(localStorage.getItem("bindingUserId"));
    var destroyRoomMsg = {
      request: "destroy",
      room: bindingUserId,
      permanent: false
    };
    sessionHandle.send({
      message: destroyRoomMsg,
      success: function (msg) {
        if (msg != null && msg != undefined) {
          onMessage(msg, null);
        }
      },
      error: function (err) {
        if (roomCallback != null) {
          roomCallback.error(err);
          roomCallback = null;
        }
      }
    });
  };

  // 消息回调
  function onConsentDialog(on) {
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("publish: consent dialog should be " + (on ? "on" : "off"));
  }
  function onMediaState(medium, on) {
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("publish: janus " + (on ? "started" : "stopped") + " receiving our " + medium);
  }
  function onWebrtcState(on) {
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("publish: webrtc connection state: " + (on ? "opened" : "closed"));
  }
  function onMessage(msg, jsep) {
    var event = msg["videoroom"];
    console.log(msg, 11);
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("publish: on recv notify event: " + msg);
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("publish: Event: " + event);
    if (event != undefined && event != null) {
      if (event == "created") {
        var roomId = msg["room"];
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("publish: successfully create room: " + roomId);
        if (roomCallback != null) {
          roomCallback.success(roomId);
          roomCallback = null;
        }
        sessionDestroy();
      } else if (event == "destroyed") {
        console.log(event, "event");
        var roomId = msg["room"];
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].warn("publish: room: " + roomId + " is destroyed");
        if (roomCallback != null) {
          roomCallback.success(roomId);
          roomCallback = null;
        }
        sessionDestroy();
      } else if (event == "joined") {
        selfUserId = msg["id"];
        selfVideoId = msg["private_id"];
        publishers = msg["publishers"];
        console.log(selfUserId, 11, selfVideoId, 111);
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("publish: successfully joined room " + msg["room"] + " with id " + selfUserId);
        if (msg["publishers"] !== undefined && msg["publishers"] !== null) {
          var publishers = msg["publishers"];
          var room = msg["room"];
          _bus__WEBPACK_IMPORTED_MODULE_3__["bus"].$emit("pull_video_joined", publishers);
          publishLocalVideo();
        }
        openVideoOptions.success(selfUserId, selfVideoId);
      } else if (event == "event") {
        if (msg["publishers"] !== undefined && msg["publishers"] !== null) {
          var publishers = msg["publishers"];
          var room = msg["room"];
          _bus__WEBPACK_IMPORTED_MODULE_3__["bus"].$emit("pull_video_message_new_remote", publishers);
        } else if (msg["videoroom"] == "event" && msg["leaving"] != undefined) {
          _bus__WEBPACK_IMPORTED_MODULE_3__["bus"].$emit("remote_HangUp", msg["leaving"]); //当有用户离开时进入这里
        } else if (msg["unpublished"] !== undefined && msg["unpublished"] !== null) {
          var unpublished = msg["unpublished"];
          if (typeof unpublished == "string" || unpublished == selfUserId) {
            _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("publish: unpublisher userId:" + selfUserId + " videoId:" + selfVideoId + " result:" + unpublished);
            var leaveMsg = {
              request: "leave"
            };
            sessionHandle.send({
              message: leaveMsg
            });
          } else if (false) {}
        } else if (msg["leaving"] != undefined && msg["leaving"] != null) {
          var leaving = msg["leaving"];
          if (typeof leaving == "string" || leaving == selfUserId) {
            _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("publish: leaving room:" + openVideoOptions.roomId + " result: " + leaving);
            sessionDestroy();
          } else if (false) {}
        } else if (msg["error"] !== undefined && msg["error"] !== null) {
          var errMsg = msg["error"];
          if (msg["error_code"] == 426) {
            _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].error("publish: server not found room <code>:" + currentRoomId);
          } else {
            _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].error("publish: other error: " + errMsg);
          }
          if (openVideoOptions != null) {
            openVideoOptions.error(errMsg);
            openVideoOptions = null;
          }
          if (roomCallback != null) {
            roomCallback.error(errMsg);
            roomCallback = null;
          }
          sessionDestroy();
        }
      }
    }
    if (jsep !== undefined && jsep !== null) {
      // 检查视频是否被拒绝
      _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("publish: handling sdp as well.");
      _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug(jsep);
      sessionHandle.handleRemoteJsep({
        jsep: jsep
      });
      var audio = msg["audio_codec"];
      if (localVideoStream && localVideoStream.getAudioTracks() && localVideoStream.getAudioTracks().length > 0 && !audio) {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].warn("publish: our audio stream has been rejected, viewers won't hear us");
      }
      var video = msg["video_codec"];
      if (localVideoStream && localVideoStream.getVideoTracks() && localVideoStream.getVideoTracks().length > 0 && !video) {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].warn("publish: our video stream has been rejected, viewers won't see us");
      }
    }
  }
  // 禁麦
  this.getLocalAudioEnabledTrack = function () {
    if (localstreamAudio) {
      localstreamAudio.enabled = false;
      _bus__WEBPACK_IMPORTED_MODULE_3__["bus"].$emit("local_audio_micphone", false);
    } else {
      Object(element_ui__WEBPACK_IMPORTED_MODULE_4__["Message"])("请先开启会议");
    }
  };
  //取消禁麦
  this.getLocalAudioTrack = function () {
    if (localstreamAudio) {
      localstreamAudio.enabled = true;
      _bus__WEBPACK_IMPORTED_MODULE_3__["bus"].$emit("local_audio_micphone", true);
    } else {
      Object(element_ui__WEBPACK_IMPORTED_MODULE_4__["Message"])("请先开启会议");
    }
  };
  // 关闭摄像头
  this.getLocalCameraEnabledTrack = function () {
    if (localVideoStream) {
      // 假设你要关闭视频流
      localVideoStream.getTracks().forEach(track => {
        if (track.kind === "video") {
          track.enabled = false; // 关闭视频流
        }
      });
      _bus__WEBPACK_IMPORTED_MODULE_3__["bus"].$emit("local_video_camera", false); // 更新应用状态或通知其他组件
    } else {
      Object(element_ui__WEBPACK_IMPORTED_MODULE_4__["Message"])("请先开启会议");
    }
  };
  // 打开摄像头
  this.getLocalCameraTrack = function () {
    // 打开本地摄像头
    if (localVideoStream) {
      // 遍历所有轨道，并启用视频轨道
      localVideoStream.getTracks().forEach(track => {
        if (track.kind === "video") {
          track.enabled = true; // 启用视频流
        }
      });
      _bus__WEBPACK_IMPORTED_MODULE_3__["bus"].$emit("local_video_camera", true); // 更新应用状态或通知其他组件
    } else {
      // 如果本地摄像头流不存在，创建一个新的视频流
      navigator.mediaDevices.getUserMedia({
        video: true
      }).then(stream => {
        localVideoStream = stream; // 赋值给本地摄像头流变量 // 遍历所有轨道，并启用视频轨道
        localVideoStream.getTracks().forEach(track => {
          if (track.kind === "video") {
            track.enabled = true; // 启用视频流
          }
        });
        _bus__WEBPACK_IMPORTED_MODULE_3__["bus"].$emit("local_video_camera", true); // 更新应用状态或通知其他组件
      }).catch(error => {
        Object(element_ui__WEBPACK_IMPORTED_MODULE_4__["Message"])(`获取摄像头失败: ${error.message}`);
      });
    }
  };
  function onLocalStream(stream) {
    console.log(stream, "localstream");
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("publish: got a local video stream");
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug(stream);
    console.log(stream.getAudioTracks()[0], 11);
    localVideoStream = stream;
    localstreamAudio = stream.getAudioTracks()[0];

    // localstreamAudio.enabled = false
    if (openVideoOptions.videoWnd != undefined && openVideoOptions.videoWnd != null) {
      _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].attachMediaStream(openVideoOptions.videoWnd, stream);
    }
  }
  function onRemoteStream(stream) {
    // 流发送者不会收到此通知
  }
  function onCleanup() {
    localVideoStream = null;
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("publish: got a cleanup notification: we are unpublished now...");
    sessionDestroy();
  }
  function publishLocalVideo() {
    console.log(openVideoOptions, 11);
    sessionHandle.createOffer({
      media: {
        audioRecv: false,
        videoRecv: false,
        audioSend: openVideoOptions.isAudio,
        videoSend: openVideoOptions.isVideo,
        video: localVideoRatio
      },
      // Publishers are sendonly
      simulcast: false,
      simulcast2: false,
      success: function (jsep) {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("publish: got publisher sdp.");
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug(jsep);
        var publish = {
          request: "configure",
          audio: openVideoOptions.isAudio,
          video: openVideoOptions.isVideo
        };
        publish["audiocodec"] = localAudioCodec;
        publish["videocodec"] = localVideoCodec;
        sessionHandle.send({
          message: publish,
          jsep: jsep
        });
      },
      error: function (error) {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].error("publish: webrtc error:", error);
        if (openVideoOptions.isAudio) {
          if (!openVideoOptions.isVideo) {
            openVideoOptions.error(error);
          } else {
            openVideoOptions.isAudio = false;
            publishLocalVideo();
          }
        } else {
          // 初始化webrtc错误
          openVideoOptions.error(error);
        }
      }
    });
  }

  // 会话销毁
  function sessionDestroy() {
    var sh = sessionHandle;
    sessionHandle = null;
    if (sh != undefined && sh != null) {
      sh.detach({
        success: function () {
          libraryDestroy();
        },
        error: function (err) {
          _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("publish: session destroy fail: " + err);
          libraryDestroy();
        }
      });
      // openVideoOptions.videoClose();
    } else {
      libraryDestroy();
    }
  }
  function libraryDestroy() {
    var lh = libraryHandle;
    libraryHandle = null;
    if (lh != undefined && lh != null) {
      lh.destroy();
    }
  }
}
function SubscibeVideo() {
  var libraryHandle = null;
  var sessionHandle = null;
  var sessionId = generateUUID();
  // 视频相关变量
  var openVideoOptions = null;
  var remoteVideoStream = null;

  // 初始化
  this.init = function (options) {
    libraryHandle = new _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"]({
      server: serverInfo,
      success: function () {
        libraryHandle.attach({
          plugin: "janus.plugin.videoroom",
          opaqueId: sessionId,
          success: function (pluginHandle) {
            sessionHandle = pluginHandle;
            _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("subscibe: video server load success.");
            options.success();
          },
          error: function (err) {
            _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].error("subscibe: video server load fail:" + err);
            options.error(err);
          },
          consentDialog: onConsentDialog,
          mediaState: onMediaState,
          webrtcState: onWebrtcState,
          onmessage: onMessage,
          onlocalstream: onLocalStream,
          onremotestream: onRemoteStream,
          oncleanup: onCleanup
        });
      },
      error: function (err) {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].error("subscibe: load video library fail:" + err);
        options.error(err);
      },
      destroyed: function () {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("subscibe: video library is destoryed.");
      }
    });
  };

  // 订阅视频
  this.openRemoteVideo = function (options) {
    console.log(options, "options");
    if (!sessionHandle) {
      console.error("sessionHandle is not initialized");
      if (options.error) options.error("Video session is not initialized");
      return;
    }
    openVideoOptions = options;
    var subscibeMsg = {
      request: "join",
      room: options.roomId,
      ptype: "subscriber",
      feed: options.userId,
      private_id: options.videoId,
      offer_video: options.isVideo,
      offer_audio: options.isAudio
    };
    try {
      sessionHandle.send({
        message: subscibeMsg
      });
    } catch (err) {
      console.error("Failed to send subscribe message:", err);
      if (options.error) options.error(err.message || "Failed to subscribe video");
    }
  };
  this.getRemoteVideoStream = function () {
    return remoteVideoStream;
  };
  // 踢出
  this.kickout = function (options) {
    console.log(options, 22);
    var kick = {
      request: "kick",
      secret: "",
      room: options.room,
      id: options.uid
    };
    sessionHandle.send({
      message: kick
    });
  }, this.closeRemoteVideo = function () {
    var leaveMsg = {
      request: "leave"
    };
    sessionHandle.send({
      message: leaveMsg
    });
  };
  this.destroyRoom = function (callback) {
    console.log(11123123);
    let bindingUserId = Number(localStorage.getItem("bindingUserId"));
    console.log(bindingUserId);
    var destroyRoomMsg = {
      request: "destroy",
      room: bindingUserId,
      permanent: false
    };
    sessionHandle.send({
      message: destroyRoomMsg,
      success: function (msg) {
        if (msg != null && msg != undefined) {
          onMessage(msg, null);
        }
      },
      error: function (err) {
        if (roomCallback != null) {
          roomCallback.error(err);
          roomCallback = null;
        }
      }
    });
  };
  // 消息回调
  function onConsentDialog(on) {
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("subscibe: consent dialog should be " + (on ? "on" : "off"));
  }
  function onMediaState(medium, on) {
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: janus " + (on ? "started" : "stopped") + " receiving our " + medium);
  }
  function onWebrtcState(on) {
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: webrtc connection state: " + (on ? "opened" : "closed"));
  }
  function onMessage(msg, jsep) {
    var event = msg["videoroom"];
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: on recv notify event: " + msg);
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: Event: " + event);
    if (msg["error"] !== undefined && msg["error"] !== null) {
      _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].error("subscibe: join roomId:" + openVideoOptions.roomId + " fail: " + msg["error"]);
      openVideoOptions.error("subscibe: remote videoId:" + openVideoOptions.videoId + " not exist.");
    } else if (event != undefined && event != null) {
      if (event == "attached") {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: successfully attached to room: " + openVideoOptions.roomId + " feed: " + openVideoOptions.VideoId);
      } else if (event == "event") {
        if (msg["leaving"] !== undefined && msg["leaving"] !== null) {
          // 视频发布者停止发布了
          var leaving = msg["leaving"];
          _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: publisher left: " + leaving + " leaving.");
          if (leaving == openVideoOptions.videoId) {
            sessionDestroy();
          }
        }
        if (msg["left"] != undefined && msg["left"] != null) {
          _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: leave roomId:" + openVideoOptions.roomId);
          sessionDestroy();
        }
      } else {
        _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: event: " + event + " un handler");
      }
    }
    if (jsep !== undefined && jsep !== null) {
      //
      _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: handling SDP...");
      _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log(jsep);
      sessionHandle.createAnswer({
        jsep: jsep,
        media: {
          audioSend: false,
          videoSend: false
        },
        success: function (jsep) {
          _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("subscibe: get SDP!");
          _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug(jsep);
          var body = {
            request: "start",
            room: openVideoOptions.roomId
          };
          sessionHandle.send({
            message: body,
            jsep: jsep
          });
          openVideoOptions.success();
        },
        error: function (err) {
          _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].error("subscibe: webrtc error: ", err);
          openVideoOptions.error(err);
        }
      });
    }
  }
  function onLocalStream(stream) {
    // 流订阅者不会收到此通知
  }
  function onRemoteStream(stream) {
    console.log(stream);
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug("subscibe: got a remote video stream");
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].debug(stream);
    remoteVideoStream = stream;
    console.log(openVideoOptions.videoWnd, 1111111111111111);
    if (openVideoOptions.videoWnd != undefined && openVideoOptions.videoWnd != null) {
      _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].attachMediaStream(openVideoOptions.videoWnd, stream);
    }
  }
  function onCleanup() {
    remoteVideoStream = null;
    _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: got a cleanup notification: we cannot view remote video.");
    sessionDestroy();
  }

  // 会话销毁
  function sessionDestroy() {
    var sh = sessionHandle;
    sessionHandle = null;
    if (sh != undefined && sh != null) {
      sh.detach({
        success: function () {
          libraryDestroy();
        },
        error: function (err) {
          _webrtc__WEBPACK_IMPORTED_MODULE_2__["default"].log("subscibe: session destroy fail: " + err);
          libraryDestroy();
        }
      });
      // openVideoOptions.videoClose();
    } else {
      libraryDestroy();
    }
  }
  function libraryDestroy() {
    var lh = libraryHandle;
    libraryHandle = null;
    if (lh != undefined && lh != null) {
      lh.destroy();
    }
  }
}

/***/ }),

/***/ "./src/components/mqttClient/utils/webrtc.js":
/*!***************************************************!*\
  !*** ./src/components/mqttClient/utils/webrtc.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.find.js */ "./node_modules/core-js/modules/es.iterator.find.js");
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_iterator_some_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.iterator.some.js */ "./node_modules/core-js/modules/es.iterator.some.js");
/* harmony import */ var core_js_modules_es_iterator_some_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_some_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.url-search-params.delete.js */ "./node_modules/core-js/modules/web.url-search-params.delete.js");
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.url-search-params.has.js */ "./node_modules/core-js/modules/web.url-search-params.has.js");
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/web.url-search-params.size.js */ "./node_modules/core-js/modules/web.url-search-params.size.js");
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var webrtc_adapter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! webrtc-adapter */ "./node_modules/webrtc-adapter/src/js/adapter_core.js");










Janus.sessions = {}, Janus.isExtensionEnabled = function () {
  return !(!navigator.mediaDevices || !navigator.mediaDevices.getDisplayMedia) || !window.navigator.userAgent.match("Chrome") || (e = parseInt(window.navigator.userAgent.match(/Chrome\/(.*) /)[1], 10), n = 33, window.navigator.userAgent.match("Linux") && (n = 35), 26 <= e && e <= n || Janus.extension.isInstalled());
  var e, n;
};
var defaultExtension = {
  extensionId: "hapfgfdkleiggjjpfpenajgdnfckjpaj",
  isInstalled: function () {
    return null !== document.querySelector("#janus-extension-installed");
  },
  getScreen: function (e) {
    var n = window.setTimeout(function () {
      return (error = new Error("NavigatorUserMediaError")).name = 'The required Chrome extension is not installed: click <a href="#">here</a> to install it. (NOTE: this will need you to refresh the page)', e(error);
    }, 1e3);
    this.cache[n] = e, window.postMessage({
      type: "janusGetScreen",
      id: n
    }, "*");
  },
  init: function () {
    var a = {};
    this.cache = a, window.addEventListener("message", function (e) {
      var n, r;
      e.origin == window.location.origin && ("janusGotScreen" == e.data.type && a[e.data.id] ? (n = a[e.data.id], delete a[e.data.id], "" === e.data.sourceId ? ((r = new Error("NavigatorUserMediaError")).name = "You cancelled the request for permission, giving up...", n(r)) : n(null, e.data.sourceId)) : "janusGetScreenPending" == e.data.type && (console.log("clearing ", e.data.id), window.clearTimeout(e.data.id)));
    });
  }
};
function Janus(u) {
  if (void 0 === Janus.initDone) return u.error("Library not initialized"), {};
  if (!Janus.isWebrtcSupported()) return u.error("WebRTC not supported by this browser"), {};
  if (Janus.log("Library initialized: " + Janus.initDone), (u = u || {}).success = "function" == typeof u.success ? u.success : Janus.noop, u.error = "function" == typeof u.error ? u.error : Janus.noop, u.destroyed = "function" == typeof u.destroyed ? u.destroyed : Janus.noop, null === u.server || void 0 === u.server) return u.error("Invalid server url"), {};
  var c = !1,
    l = null,
    f = {},
    v = null,
    o = null,
    t = 0,
    g = u.server,
    C = (Janus.isArray(g) ? (Janus.log("Multiple servers provided (" + g.length + "), will use the first that works"), g = null, o = u.server, Janus.debug(o)) : 0 === g.indexOf("ws") ? (c = !0, Janus.log("Using WebSockets to contact Janus: " + g)) : (c = !1, Janus.log("Using REST API to contact Janus: " + g)), u.iceServers),
    N = (null == C && (C = [{
      urls: "stun:stun.l.google.com:19302"
    }]), u.iceTransportPolicy),
    F = u.bundlePolicy,
    R = u.ipv6,
    p = (null == R && (R = !1), !1),
    n = (void 0 !== u.withCredentials && null !== u.withCredentials && (p = !0 === u.withCredentials), 10),
    m = ((n = void 0 !== u.max_poll_events && null !== u.max_poll_events ? u.max_poll_events : n) < 1 && (n = 1), null),
    b = (void 0 !== u.token && null !== u.token && (m = u.token), null),
    s = (void 0 !== u.apisecret && null !== u.apisecret && (b = u.apisecret), this.destroyOnUnload = !0, void 0 !== u.destroyOnUnload && null !== u.destroyOnUnload && (this.destroyOnUnload = !0 === u.destroyOnUnload), 25e3),
    r = (void 0 !== u.keepAlivePeriod && null !== u.keepAlivePeriod && (s = u.keepAlivePeriod), isNaN(s) && (s = 25e3), 6e4),
    J = (void 0 !== u.longPollTimeout && null !== u.longPollTimeout && (r = u.longPollTimeout), isNaN(r) && (r = 6e4), !1),
    w = null,
    I = {},
    i = this,
    U = 0,
    d = {};
  function h() {
    var e;
    null != w && (Janus.debug("Long poll..."), J ? (e = g + "/" + w + "?rid=" + new Date().getTime(), null != n && (e = e + "&maxev=" + n), null != m && (e = e + "&token=" + encodeURIComponent(m)), null != b && (e = e + "&apisecret=" + encodeURIComponent(b)), Janus.httpAPICall(e, {
      verb: "GET",
      withCredentials: p,
      success: S,
      timeout: r,
      error: function (e, n) {
        if (Janus.error(e + ":", n), 3 < ++U) return J = !1, void u.error("Lost connection to the server (is it down?)");
        h();
      }
    })) : Janus.warn("Is the server down? (connected=false)"));
  }
  function S(e, n) {
    var r, a, o, t, s;
    if (U = 0, c || null == w || !0 === n || h(), !c && Janus.isArray(e)) for (var i = 0; i < e.length; i++) S(e[i], !0);else "keepalive" === e.janus ? Janus.vdebug("Got a keepalive on session " + w) : "ack" === e.janus ? (Janus.debug("Got an ack on session " + w), Janus.debug(e), null != (s = e.transaction) && (null != (t = d[s]) && t(e), delete d[s])) : "success" === e.janus ? (Janus.debug("Got a success on session " + w), Janus.debug(e), null != (s = e.transaction) && (null != (t = d[s]) && t(e), delete d[s])) : "trickle" === e.janus ? null == (r = e.sender) ? Janus.warn("Missing sender...") : null == (o = I[r]) ? Janus.debug("This handle is not attached to this session") : (n = e.candidate, Janus.debug("Got a trickled candidate on session " + w), Janus.debug(n), (a = o.webrtcStuff).pc && a.remoteSdp ? (Janus.debug("Adding remote candidate:", n), n && !0 !== n.completed ? a.pc.addIceCandidate(n) : a.pc.addIceCandidate()) : (Janus.debug("We didn't do setRemoteDescription (trickle got here before the offer?), caching candidate"), a.candidates || (a.candidates = []), a.candidates.push(n), Janus.debug(a.candidates))) : "webrtcup" === e.janus ? (Janus.debug("Got a webrtcup event on session " + w), Janus.debug(e), null == (r = e.sender) ? Janus.warn("Missing sender...") : null == (o = I[r]) ? Janus.debug("This handle is not attached to this session") : o.webrtcState(!0)) : "hangup" === e.janus ? (Janus.debug("Got a hangup event on session " + w), Janus.debug(e), null == (r = e.sender) ? Janus.warn("Missing sender...") : null == (o = I[r]) ? Janus.debug("This handle is not attached to this session") : (o.webrtcState(!1, e.reason), o.hangup())) : "detached" === e.janus ? (Janus.debug("Got a detached event on session " + w), Janus.debug(e), null == (r = e.sender) ? Janus.warn("Missing sender...") : null != (o = I[r]) && (o.detached = !0, o.ondetached(), o.detach())) : "media" === e.janus ? (Janus.debug("Got a media event on session " + w), Janus.debug(e), null == (r = e.sender) ? Janus.warn("Missing sender...") : null == (o = I[r]) ? Janus.debug("This handle is not attached to this session") : o.mediaState(e.type, e.receiving)) : "slowlink" === e.janus ? (Janus.debug("Got a slowlink event on session " + w), Janus.debug(e), null == (r = e.sender) ? Janus.warn("Missing sender...") : null == (o = I[r]) ? Janus.debug("This handle is not attached to this session") : o.slowLink(e.uplink, e.nacks)) : "error" === e.janus ? (Janus.error("Ooops: " + e.error.code + " " + e.error.reason), Janus.debug(e), null != (s = e.transaction) && (null != (t = d[s]) && t(e), delete d[s])) : "event" === e.janus ? (Janus.debug("Got a plugin event on session " + w), Janus.debug(e), null == (r = e.sender) ? Janus.warn("Missing sender...") : null == (n = e.plugindata) ? Janus.warn("Missing plugindata...") : (Janus.debug("  -- Event is coming from " + r + " (" + n.plugin + ")"), a = n.data, Janus.debug(a), null == (o = I[r]) ? Janus.warn("This handle is not attached to this session") : (null != (t = e.jsep) && (Janus.debug("Handling SDP as well..."), Janus.debug(t)), null != (s = o.onmessage) ? (Janus.debug("Notifying application..."), s(a, t)) : Janus.debug("No provided notification callback")))) : "timeout" === e.janus ? (Janus.error("Timeout on session " + w), Janus.debug(e), c && l.close(3504, "Gateway timeout")) : (Janus.warn("Unknown message/event  '" + e.janus + "' on session " + w), Janus.debug(e));
  }
  function W() {
    var e;
    null !== g && c && J && (v = setTimeout(W, s), e = {
      janus: "keepalive",
      session_id: w,
      transaction: Janus.randomString(12)
    }, null != m && (e.token = m), null != b && (e.apisecret = b), l.send(JSON.stringify(e)));
  }
  function y(r) {
    var e = Janus.randomString(12),
      n = {
        janus: "create",
        transaction: e
      };
    if (r.reconnect && (J = !1, n.janus = "claim", n.session_id = w, l && (l.onopen = null, l.onerror = null, l.onclose = null, v && (clearTimeout(v), v = null))), null != m && (n.token = m), null != b && (n.apisecret = b), null === g && Janus.isArray(o) && (0 === (g = o[t]).indexOf("ws") ? (c = !0, Janus.log("Server #" + (t + 1) + ": trying WebSockets to contact success(" + g + ")")) : (c = !1, Janus.log("Server #" + (t + 1) + ": trying REST API to contact Janus (" + g + ")"))), c) for (var a in l = Janus.newWebSocket(g, "janus-protocol"), f = {
      error: function () {
        if (Janus.error("Error connecting to the Janus WebSockets server... " + g), Janus.isArray(o) && !r.reconnect) return ++t == o.length ? void r.error("Error connecting to any of the provided Janus servers: Is the server down?") : (g = null, void setTimeout(function () {
          y(r);
        }, 200));
        r.error("Error connecting to the Janus WebSockets server: Is the server down?");
      },
      open: function () {
        d[e] = function (e) {
          if (Janus.debug(e), "success" !== e.janus) return Janus.error("Ooops: " + e.error.code + " " + e.error.reason), void r.error(e.error.reason);
          v = setTimeout(W, s), J = !0, w = e.session_id || e.data.id, r.reconnect ? Janus.log("Claimed session: " + w) : Janus.log("Created session: " + w), Janus.sessions[w] = i, r.success();
        }, l.send(JSON.stringify(n));
      },
      message: function (e) {
        S(JSON.parse(e.data));
      },
      close: function () {
        null !== g && J && (J = !1, u.error("Lost connection to the server (is it down?)"));
      }
    }) l.addEventListener(a, f[a]);else Janus.httpAPICall(g, {
      verb: "POST",
      withCredentials: p,
      body: n,
      success: function (e) {
        if (Janus.debug(e), "success" !== e.janus) return Janus.error("Ooops: " + e.error.code + " " + e.error.reason), void r.error(e.error.reason);
        J = !0, w = e.session_id || e.data.id, r.reconnect ? Janus.log("Claimed session: " + w) : Janus.log("Created session: " + w), Janus.sessions[w] = i, h(), r.success();
      },
      error: function (e, n) {
        if (Janus.error(e + ":", n), Janus.isArray(o) && !r.reconnect) return ++t == o.length ? void r.error("Error connecting to any of the provided Janus servers: Is the server down?") : (g = null, void setTimeout(function () {
          y(r);
        }, 200));
        "" === n ? r.error(e + ": Is the server down?") : r.error(e + ": " + n);
      }
    });
  }
  function q(e, r) {
    if ((r = r || {}).success = "function" == typeof r.success ? r.success : Janus.noop, r.error = "function" == typeof r.error ? r.error : Janus.noop, !J) return Janus.warn("Is the server down? (connected=false)"), void r.error("Is the server down? (connected=false)");
    var n,
      a,
      o,
      t = I[e];
    return null == t || null === t.webrtcStuff || void 0 === t.webrtcStuff ? (Janus.warn("Invalid handle"), void r.error("Invalid handle")) : (a = r.message, n = r.jsep, o = {
      janus: "message",
      body: a,
      transaction: a = Janus.randomString(12)
    }, null !== t.token && void 0 !== t.token && (o.token = t.token), null != b && (o.apisecret = b), null != n && (o.jsep = n), Janus.debug("Sending message to plugin (handle=" + e + "):"), Janus.debug(o), c ? (o.session_id = w, o.handle_id = e, d[a] = function (e) {
      if (Janus.debug("Message sent!"), Janus.debug(e), "success" === e.janus) {
        var n = e.plugindata;
        if (null == n) return Janus.warn("Request succeeded, but missing plugindata..."), void r.success();
        Janus.log("Synchronous transaction successful (" + n.plugin + ")");
        n = n.data;
        return Janus.debug(n), void r.success(n);
      }
      "ack" !== e.janus ? void 0 !== e.error && null !== e.error ? (Janus.error("Ooops: " + e.error.code + " " + e.error.reason), r.error(e.error.code + " " + e.error.reason)) : (Janus.error("Unknown error"), r.error("Unknown error")) : r.success();
    }, void l.send(JSON.stringify(o))) : void Janus.httpAPICall(g + "/" + w + "/" + e, {
      verb: "POST",
      withCredentials: p,
      body: o,
      success: function (e) {
        if (Janus.debug("Message sent!"), Janus.debug(e), "success" === e.janus) {
          var n = e.plugindata;
          if (null == n) return Janus.warn("Request succeeded, but missing plugindata..."), void r.success();
          Janus.log("Synchronous transaction successful (" + n.plugin + ")");
          n = n.data;
          return Janus.debug(n), void r.success(n);
        }
        "ack" !== e.janus ? void 0 !== e.error && null !== e.error ? (Janus.error("Ooops: " + e.error.code + " " + e.error.reason), r.error(e.error.code + " " + e.error.reason)) : (Janus.error("Unknown error"), r.error("Unknown error")) : r.success();
      },
      error: function (e, n) {
        Janus.error(e + ":", n), r.error(e + ": " + n);
      }
    }));
  }
  function _(e, n) {
    if (J) {
      var r = I[e];
      if (null == r || null === r.webrtcStuff || void 0 === r.webrtcStuff) Janus.warn("Invalid handle");else {
        n = {
          janus: "trickle",
          candidate: n,
          transaction: Janus.randomString(12)
        };
        if (null !== r.token && void 0 !== r.token && (n.token = r.token), null != b && (n.apisecret = b), Janus.vdebug("Sending trickle candidate (handle=" + e + "):"), Janus.vdebug(n), c) return n.session_id = w, n.handle_id = e, void l.send(JSON.stringify(n));
        Janus.httpAPICall(g + "/" + w + "/" + e, {
          verb: "POST",
          withCredentials: p,
          body: n,
          success: function (e) {
            Janus.vdebug("Candidate sent!"), Janus.vdebug(e), "ack" !== e.janus && Janus.error("Ooops: " + e.error.code + " " + e.error.reason);
          },
          error: function (e, n) {
            Janus.error(e + ":", n);
          }
        });
      }
    } else Janus.warn("Is the server down? (connected=false)");
  }
  function V(e, n, r, a) {
    var o,
      t = I[e];
    null == t || null === t.webrtcStuff || void 0 === t.webrtcStuff ? Janus.warn("Invalid handle") : (e = function (e) {
      Janus.log("Received state change on data channel:", e);
      var n = e.target.label,
        e = o.dataChannel[n] ? o.dataChannel[n].readyState : "null";
      if (Janus.log("State change on <" + n + "> data channel: " + e), "open" === e) {
        if (o.dataChannel[n].pending && 0 < o.dataChannel[n].pending.length) {
          for (var r in Janus.log("Sending pending messages on <' + label + '>:", o.dataChannel[n].pending.length), o.dataChannel[n].pending) {
            r = o.dataChannel[n].pending[r];
            Janus.log("Sending string on data channel <" + n + ">: " + r), o.dataChannel[n].send(r);
          }
          o.dataChannel[n].pending = [];
        }
        t.ondataopen(n);
      }
    }, (o = t.webrtcStuff).dataChannel[n] = r || o.pc.createDataChannel(n, {
      ordered: !1
    }), o.dataChannel[n].onmessage = function (e) {
      Janus.log("Received message on data channel:", e);
      var n = e.target.label;
      t.ondata(e.data, n);
    }, o.dataChannel[n].onopen = e, o.dataChannel[n].onclose = e, o.dataChannel[n].onerror = function (e) {
      Janus.error("Got error on data channel:", e);
    }, o.dataChannel[n].pending = [], a && o.dataChannel[n].pending.push(a));
  }
  function G(e, n) {
    (n = n || {}).success = "function" == typeof n.success ? n.success : Janus.noop, n.error = "function" == typeof n.error ? n.error : Janus.noop;
    var r = I[e];
    if (null == r || null === r.webrtcStuff || void 0 === r.webrtcStuff) return Janus.warn("Invalid handle"), void n.error("Invalid handle");
    var a,
      r = r.webrtcStuff,
      o = n.text;
    return null == o ? (Janus.warn("Invalid text"), void n.error("Invalid text")) : (a = n.label || Janus.dataChanDefaultLabel, r.dataChannel[a] ? "open" !== r.dataChannel[a].readyState ? r.dataChannel[a].pending.push(o) : (Janus.log("Sending string on data channel <" + a + ">: " + o), r.dataChannel[a].send(o)) : V(e, a, !1, o), void n.success());
  }
  function B(e, n) {
    (n = n || {}).success = "function" == typeof n.success ? n.success : Janus.noop, n.error = "function" == typeof n.error ? n.error : Janus.noop;
    e = I[e];
    if (null == e || null === e.webrtcStuff || void 0 === e.webrtcStuff) return Janus.warn("Invalid handle"), void n.error("Invalid handle");
    e = e.webrtcStuff;
    if (null === e.dtmfSender || void 0 === e.dtmfSender) {
      if (void 0 !== e.pc && null !== e.pc) {
        var r = e.pc.getSenders().find(function (e) {
          return e.track && "audio" === e.track.kind;
        });
        if (!r) return Janus.warn("Invalid DTMF configuration (no audio track)"), void n.error("Invalid DTMF configuration (no audio track)");
        e.dtmfSender = r.dtmf, e.dtmfSender && (Janus.log("Created DTMF Sender"), e.dtmfSender.ontonechange = function (e) {
          Janus.debug("Sent DTMF tone: " + e.tone);
        });
      }
      if (null === e.dtmfSender || void 0 === e.dtmfSender) return Janus.warn("Invalid DTMF configuration"), void n.error("Invalid DTMF configuration");
    }
    r = n.dtmf;
    if (null == r) return Janus.warn("Invalid DTMF parameters"), void n.error("Invalid DTMF parameters");
    var a = r.tones;
    if (null == a) return Janus.warn("Invalid DTMF string"), void n.error("Invalid DTMF string");
    var o = r.duration,
      r = r.gap;
    Janus.debug("Sending DTMF string " + a + " (duration " + (o = null == o ? 500 : o) + "ms, gap " + (r = null == r ? 50 : r) + "ms)"), e.dtmfSender.insertDTMF(a, o, r), n.success();
  }
  function k(r, a) {
    (a = a || {}).success = "function" == typeof a.success ? a.success : Janus.noop, a.error = "function" == typeof a.error ? a.error : Janus.noop;
    var e = !0,
      n = (void 0 !== a.asyncRequest && null !== a.asyncRequest && (e = !0 === a.asyncRequest), !0),
      o = (void 0 !== a.noRequest && null !== a.noRequest && (n = !0 === a.noRequest), Janus.log("Destroying handle " + r + " (async=" + e + ")"), M(r), I[r]);
    return null == o || o.detached || n ? (delete I[r], void a.success()) : J ? (n = {
      janus: "detach",
      transaction: Janus.randomString(12)
    }, null !== o.token && void 0 !== o.token && (n.token = o.token), null != b && (n.apisecret = b), c ? (n.session_id = w, n.handle_id = r, l.send(JSON.stringify(n)), delete I[r], void a.success()) : void Janus.httpAPICall(g + "/" + w + "/" + r, {
      verb: "POST",
      async: e,
      withCredentials: p,
      body: n,
      success: function (e) {
        Janus.log("Destroyed handle:"), Janus.debug(e), "success" !== e.janus && Janus.error("Ooops: " + e.error.code + " " + e.error.reason), delete I[r], a.success();
      },
      error: function (e, n) {
        Janus.error(e + ":", n), delete I[r], a.success();
      }
    })) : (Janus.warn("Is the server down? (connected=false)"), void a.error("Is the server down? (connected=false)"));
  }
  function T(v, g, p, m, n) {
    var r = I[v];
    if (null == r || null === r.webrtcStuff || void 0 === r.webrtcStuff) return Janus.warn("Invalid handle"), void m.error("Invalid handle");
    var a,
      b = r.webrtcStuff,
      e = (Janus.debug("streamsDone:", n), n && (Janus.debug("  -- Audio tracks:", n.getAudioTracks()), Janus.debug("  -- Video tracks:", n.getVideoTracks())), !1);
    if (b.myStream && p.update && !b.streamExternal) {
      if ((!p.update && O(p) || p.update && (p.addAudio || p.replaceAudio)) && n.getAudioTracks() && n.getAudioTracks().length) if (b.myStream.addTrack(n.getAudioTracks()[0]), "firefox" === Janus.webRTCAdapter.browserDetails.browser && 59 <= Janus.webRTCAdapter.browserDetails.version || "safari" === Janus.webRTCAdapter.browserDetails.browser && window.RTCRtpSender.prototype.replaceTrack || "chrome" === Janus.webRTCAdapter.browserDetails.browser && 72 <= Janus.webRTCAdapter.browserDetails.version) {
        Janus.log((p.replaceAudio ? "Replacing" : "Adding") + " audio track:", n.getAudioTracks()[0]);
        var o = null;
        if ((s = b.pc.getTransceivers()) && 0 < s.length) for (var t in s) if ((i = s[t]).sender && i.sender.track && "audio" === i.sender.track.kind || i.receiver && i.receiver.track && "audio" === i.receiver.track.kind) {
          o = i;
          break;
        }
        o && o.sender ? o.sender.replaceTrack(n.getAudioTracks()[0]) : b.pc.addTrack(n.getAudioTracks()[0], n);
      } else Janus.log((p.replaceAudio ? "Replacing" : "Adding") + " audio track:", n.getAudioTracks()[0]), b.pc.addTrack(n.getAudioTracks()[0], n);
      if ((!p.update && E(p) || p.update && (p.addVideo || p.replaceVideo)) && n.getVideoTracks() && n.getVideoTracks().length) if (b.myStream.addTrack(n.getVideoTracks()[0]), "firefox" === Janus.webRTCAdapter.browserDetails.browser && 59 <= Janus.webRTCAdapter.browserDetails.version || "safari" === Janus.webRTCAdapter.browserDetails.browser && window.RTCRtpSender.prototype.replaceTrack || "chrome" === Janus.webRTCAdapter.browserDetails.browser && 72 <= Janus.webRTCAdapter.browserDetails.version) {
        Janus.log((p.replaceVideo ? "Replacing" : "Adding") + " video track:", n.getVideoTracks()[0]);
        var s,
          i,
          d = null;
        if ((s = b.pc.getTransceivers()) && 0 < s.length) for (var t in s) if ((i = s[t]).sender && i.sender.track && "video" === i.sender.track.kind || i.receiver && i.receiver.track && "video" === i.receiver.track.kind) {
          d = i;
          break;
        }
        d && d.sender ? d.sender.replaceTrack(n.getVideoTracks()[0]) : b.pc.addTrack(n.getVideoTracks()[0], n);
      } else Janus.log((p.replaceVideo ? "Replacing" : "Adding") + " video track:", n.getVideoTracks()[0]), b.pc.addTrack(n.getVideoTracks()[0], n);
    } else b.myStream = n, e = !0;
    if (!b.pc) {
      var u = {
          iceServers: C,
          iceTransportPolicy: N,
          bundlePolicy: F
        },
        c = ("chrome" === Janus.webRTCAdapter.browserDetails.browser && (u.sdpSemantics = Janus.webRTCAdapter.browserDetails.version < 72 ? "plan-b" : "unified-plan"), {
          optional: [{
            DtlsSrtpKeyAgreement: !0
          }]
        });
      if (!0 === R && c.optional.push({
        googIPv6: !0
      }), m.rtcConstraints && "object" == typeof m.rtcConstraints) for (var t in Janus.debug("Adding custom PeerConnection constraints:", m.rtcConstraints), m.rtcConstraints) c.optional.push(m.rtcConstraints[t]);
      "edge" === Janus.webRTCAdapter.browserDetails.browser && (u.bundlePolicy = "max-bundle"), Janus.log("Creating PeerConnection"), Janus.debug(c), b.pc = new RTCPeerConnection(u, c), Janus.debug(b.pc), b.pc.getStats && (b.volume = {}, b.bitrate.value = "0 kbits/sec"), Janus.log("Preparing local SDP and gathering candidates (trickle=" + b.trickle + ")"), b.pc.oniceconnectionstatechange = function (e) {
        b.pc && r.iceState(b.pc.iceConnectionState);
      }, b.pc.onicecandidate = function (e) {
        var n, r;
        null == e.candidate || "edge" === Janus.webRTCAdapter.browserDetails.browser && 0 < e.candidate.candidate.indexOf("endOfCandidates") ? (Janus.log("End of candidates."), (b.iceDone = !0) === b.trickle ? _(v, {
          completed: !0
        }) : (n = v, (r = (r = m) || {}).success = "function" == typeof r.success ? r.success : Janus.noop, r.error = "function" == typeof r.error ? r.error : Janus.noop, null == (n = I[n]) || null === n.webrtcStuff || void 0 === n.webrtcStuff ? Janus.warn("Invalid handle, not sending anything") : (n = n.webrtcStuff, Janus.log("Sending offer/answer SDP..."), null === n.mySdp || void 0 === n.mySdp ? Janus.warn("Local SDP instance is invalid, not sending anything...") : (!(n.mySdp = {
          type: n.pc.localDescription.type,
          sdp: n.pc.localDescription.sdp
        }) === n.trickle && (n.mySdp.trickle = !1), Janus.debug(r), n.sdpSent = !0, r.success(n.mySdp))))) : (console.log("candidate", 111), r = {
          candidate: e.candidate.candidate,
          sdpMid: e.candidate.sdpMid,
          sdpMLineIndex: e.candidate.sdpMLineIndex
        }, !0 === b.trickle && _(v, r));
      }, b.pc.ontrack = function (e) {
        Janus.log("Handling Remote Track"), Janus.debug(e), e.streams && (b.remoteStream = e.streams[0], r.onremotestream(b.remoteStream), e.track && !e.track.onended && (Janus.log("Adding onended callback to track:", e.track), e.track.onended = function (e) {
          Janus.log("Remote track removed:", e), b.remoteStream && (b.remoteStream.removeTrack(e.target), r.onremotestream(b.remoteStream));
        }));
      };
    }
    if (e && null != n && (Janus.log("Adding local stream"), a = !0 === m.simulcast2, n.getTracks().forEach(function (e) {
      Janus.log("Adding local track:", e), !a || "audio" === e.kind ? b.pc.addTrack(e, n) : (Janus.log("Enabling rid-based simulcasting:", e), b.pc.addTransceiver(e, {
        direction: "sendrecv",
        streams: [n],
        sendEncodings: [{
          rid: "h",
          active: !0,
          maxBitrate: 9e5
        }, {
          rid: "m",
          active: !0,
          maxBitrate: 3e5,
          scaleResolutionDownBy: 2
        }, {
          rid: "l",
          active: !0,
          maxBitrate: 1e5,
          scaleResolutionDownBy: 4
        }]
      }));
    })), u = p, Janus.debug("isDataEnabled:", u), ("edge" != Janus.webRTCAdapter.browserDetails.browser ? null == u || !0 !== u.data : (Janus.warn("Edge doesn't support data channels yet"), 1)) || b.dataChannel[Janus.dataChanDefaultLabel] || (Janus.log("Creating data channel"), V(v, Janus.dataChanDefaultLabel, !1), b.pc.ondatachannel = function (e) {
      Janus.log("Data channel created by Janus:", e), V(v, e.channel.label, e.channel);
    }), b.myStream && r.onlocalstream(b.myStream), null == g) {
      var e = v,
        l = p,
        f = m;
      if ((f = f || {}).success = "function" == typeof f.success ? f.success : Janus.noop, f.error = "function" == typeof f.error ? f.error : Janus.noop, f.customizeSdp = "function" == typeof f.customizeSdp ? f.customizeSdp : Janus.noop, null == (e = I[e]) || null === e.webrtcStuff || void 0 === e.webrtcStuff) Janus.warn("Invalid handle"), f.error("Invalid handle");else {
        var J = e.webrtcStuff,
          w = !0 === f.simulcast,
          h = (w ? Janus.log("Creating offer (iceDone=" + J.iceDone + ", simulcast=" + w + ")") : Janus.log("Creating offer (iceDone=" + J.iceDone + ")"), {});
        if ("firefox" === Janus.webRTCAdapter.browserDetails.browser && 59 <= Janus.webRTCAdapter.browserDetails.version || "safari" === Janus.webRTCAdapter.browserDetails.browser && window.RTCRtpSender.prototype.replaceTrack || "chrome" === Janus.webRTCAdapter.browserDetails.browser && 72 <= Janus.webRTCAdapter.browserDetails.version) {
          var S = null,
            y = null,
            k = J.pc.getTransceivers();
          if (k && 0 < k.length) for (var T in k) {
            T = k[T];
            T.sender && T.sender.track && "audio" === T.sender.track.kind || T.receiver && T.receiver.track && "audio" === T.receiver.track.kind ? S = S || T : (T.sender && T.sender.track && "video" === T.sender.track.kind || T.receiver && T.receiver.track && "video" === T.receiver.track.kind) && (y = y || T);
          }
          var e = O(l),
            D = j(l),
            e = (e || D ? e && D ? S && (S.setDirection ? S.setDirection("sendrecv") : S.direction = "sendrecv", Janus.log("Setting audio transceiver to sendrecv:", S)) : e && !D ? S && (S.setDirection ? S.setDirection("sendonly") : S.direction = "sendonly", Janus.log("Setting audio transceiver to sendonly:", S)) : !e && D && (S ? (S.setDirection ? S.setDirection("recvonly") : S.direction = "recvonly", Janus.log("Setting audio transceiver to recvonly:", S)) : (S = J.pc.addTransceiver("audio", {
              direction: "recvonly"
            }), Janus.log("Adding recvonly audio transceiver:", S))) : l.removeAudio && S && (S.setDirection ? S.setDirection("inactive") : S.direction = "inactive", Janus.log("Setting audio transceiver to inactive:", S)), E(l)),
            D = L(l);
          e || D ? e && D ? y && (y.setDirection ? y.setDirection("sendrecv") : y.direction = "sendrecv", Janus.log("Setting video transceiver to sendrecv:", y)) : e && !D ? y && (y.setDirection ? y.setDirection("sendonly") : y.direction = "sendonly", Janus.log("Setting video transceiver to sendonly:", y)) : !e && D && (y ? (y.setDirection ? y.setDirection("recvonly") : y.direction = "recvonly", Janus.log("Setting video transceiver to recvonly:", y)) : (y = J.pc.addTransceiver("video", {
            direction: "recvonly"
          }), Janus.log("Adding recvonly video transceiver:", y))) : l.removeVideo && y && (y.setDirection ? y.setDirection("inactive") : y.direction = "inactive", Janus.log("Setting video transceiver to inactive:", y));
        } else h.offerToReceiveAudio = j(l), h.offerToReceiveVideo = L(l);
        !0 === f.iceRestart && (h.iceRestart = !0), Janus.debug(h);
        var A = E(l);
        A && w && "firefox" === Janus.webRTCAdapter.browserDetails.browser && (Janus.log("Enabling Simulcasting for Firefox (RID)"), (e = J.pc.getSenders().find(function (e) {
          return "video" == e.track.kind;
        })) && ((D = (D = e.getParameters()) || {}).encodings = [{
          rid: "h",
          active: !0,
          maxBitrate: 9e5
        }, {
          rid: "m",
          active: !0,
          maxBitrate: 3e5,
          scaleResolutionDownBy: 2
        }, {
          rid: "l",
          active: !0,
          maxBitrate: 1e5,
          scaleResolutionDownBy: 4
        }], e.setParameters(D))), J.pc.createOffer(h).then(function (e) {
          Janus.debug(e);
          var n = {
            type: e.type,
            sdp: e.sdp
          };
          f.customizeSdp(n), e.sdp = n.sdp, Janus.log("Setting local description"), A && w && ("chrome" === Janus.webRTCAdapter.browserDetails.browser || "safari" === Janus.webRTCAdapter.browserDetails.browser ? (Janus.log("Enabling Simulcasting for Chrome (SDP munging)"), e.sdp = function (e) {
            for (var n = e.split("\r\n"), r = !1, a = [-1], o = [-1], t = null, s = null, i = null, d = null, u = -1, c = 0; c < n.length; c++) {
              var l = n[c].match(/m=(\w+) */);
              if (l) {
                if ("video" === l[1]) {
                  if (!(a[0] < 0)) {
                    u = c;
                    break;
                  }
                  r = !0;
                } else if (-1 < a[0]) {
                  u = c;
                  break;
                }
              } else if (r) {
                var f = n[c].match(/a=ssrc-group:FID (\d+) (\d+)/);
                if (f) a[0] = f[1], o[0] = f[2], n.splice(c, 1), c--;else {
                  if (a[0]) {
                    if ((v = n[c].match("a=ssrc:" + a[0] + " cname:(.+)")) && (t = v[1]), (v = n[c].match("a=ssrc:" + a[0] + " msid:(.+)")) && (s = v[1]), (v = n[c].match("a=ssrc:" + a[0] + " mslabel:(.+)")) && (i = v[1]), (v = n[c].match("a=ssrc:" + a[0] + " label:(.+)")) && (d = v[1]), 0 === n[c].indexOf("a=ssrc:" + o[0])) {
                      n.splice(c, 1), c--;
                      continue;
                    }
                    if (0 === n[c].indexOf("a=ssrc:" + a[0])) {
                      n.splice(c, 1), c--;
                      continue;
                    }
                  }
                  0 == n[c].length && (n.splice(c, 1), c--);
                }
              }
            }
            if (a[0] < 0) {
              r = !(u = -1);
              for (c = 0; c < n.length; c++) {
                var v,
                  l = n[c].match(/m=(\w+) */);
                if (l) {
                  if ("video" === l[1]) {
                    if (!(a[0] < 0)) {
                      u = c;
                      break;
                    }
                    r = !0;
                  } else if (-1 < a[0]) {
                    u = c;
                    break;
                  }
                } else if (r) {
                  if (a[0] < 0) {
                    var g = n[c].match(/a=ssrc:(\d+)/);
                    if (g) {
                      a[0] = g[1], n.splice(c, 1), c--;
                      continue;
                    }
                  } else {
                    if ((v = n[c].match("a=ssrc:" + a[0] + " cname:(.+)")) && (t = v[1]), (v = n[c].match("a=ssrc:" + a[0] + " msid:(.+)")) && (s = v[1]), (v = n[c].match("a=ssrc:" + a[0] + " mslabel:(.+)")) && (i = v[1]), (v = n[c].match("a=ssrc:" + a[0] + " label:(.+)")) && (d = v[1]), 0 === n[c].indexOf("a=ssrc:" + o[0])) {
                      n.splice(c, 1), c--;
                      continue;
                    }
                    if (0 === n[c].indexOf("a=ssrc:" + a[0])) {
                      n.splice(c, 1), c--;
                      continue;
                    }
                  }
                  0 == n[c].length && (n.splice(c, 1), c--);
                }
              }
            }
            if (a[0] < 0) return Janus.warn("Couldn't find the video SSRC, simulcasting NOT enabled"), e;
            u < 0 && (u = n.length);
            a[1] = Math.floor(4294967295 * Math.random()), a[2] = Math.floor(4294967295 * Math.random()), o[1] = Math.floor(4294967295 * Math.random()), o[2] = Math.floor(4294967295 * Math.random());
            for (c = 0; c < a.length; c++) t && (n.splice(u, 0, "a=ssrc:" + a[c] + " cname:" + t), u++), s && (n.splice(u, 0, "a=ssrc:" + a[c] + " msid:" + s), u++), i && (n.splice(u, 0, "a=ssrc:" + a[c] + " mslabel:" + i), u++), d && (n.splice(u, 0, "a=ssrc:" + a[c] + " label:" + d), u++), t && (n.splice(u, 0, "a=ssrc:" + o[c] + " cname:" + t), u++), s && (n.splice(u, 0, "a=ssrc:" + o[c] + " msid:" + s), u++), i && (n.splice(u, 0, "a=ssrc:" + o[c] + " mslabel:" + i), u++), d && (n.splice(u, 0, "a=ssrc:" + o[c] + " label:" + d), u++);
            n.splice(u, 0, "a=ssrc-group:FID " + a[2] + " " + o[2]), n.splice(u, 0, "a=ssrc-group:FID " + a[1] + " " + o[1]), n.splice(u, 0, "a=ssrc-group:FID " + a[0] + " " + o[0]), n.splice(u, 0, "a=ssrc-group:SIM " + a[0] + " " + a[1] + " " + a[2]), (e = n.join("\r\n")).endsWith("\r\n") || (e += "\r\n");
            return e;
          }(e.sdp)) : "firefox" !== Janus.webRTCAdapter.browserDetails.browser && Janus.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")), J.mySdp = e.sdp, J.pc.setLocalDescription(e).catch(f.error), J.mediaConstraints = h, J.iceDone || J.trickle ? (Janus.log("Offer ready"), Janus.debug(f), f.success(e)) : Janus.log("Waiting for all candidates...");
        }, f.error);
      }
    } else b.pc.setRemoteDescription(g).then(function () {
      if (Janus.log("Remote description accepted!"), b.remoteSdp = g.sdp, b.candidates && 0 < b.candidates.length) {
        for (var e in b.candidates) {
          e = b.candidates[e];
          Janus.debug("Adding remote candidate:", e), e && !0 !== e.completed ? b.pc.addIceCandidate(e) : b.pc.addIceCandidate();
        }
        b.candidates = [];
      }
      var n = v,
        r = p,
        a = m;
      if ((a = a || {}).success = "function" == typeof a.success ? a.success : Janus.noop, a.error = "function" == typeof a.error ? a.error : Janus.noop, a.customizeSdp = "function" == typeof a.customizeSdp ? a.customizeSdp : Janus.noop, null == (n = I[n]) || null === n.webrtcStuff || void 0 === n.webrtcStuff) Janus.warn("Invalid handle"), a.error("Invalid handle");else {
        var o = n.webrtcStuff,
          t = !0 === a.simulcast,
          s = (t ? Janus.log("Creating answer (iceDone=" + o.iceDone + ", simulcast=" + t + ")") : Janus.log("Creating answer (iceDone=" + o.iceDone + ")"), null);
        if ("firefox" === Janus.webRTCAdapter.browserDetails.browser && 59 <= Janus.webRTCAdapter.browserDetails.version || "safari" === Janus.webRTCAdapter.browserDetails.browser && window.RTCRtpSender.prototype.replaceTrack || "chrome" === Janus.webRTCAdapter.browserDetails.browser && 72 <= Janus.webRTCAdapter.browserDetails.version) {
          s = {};
          var i = null,
            d = null,
            u = o.pc.getTransceivers();
          if (u && 0 < u.length) for (var c in u) {
            c = u[c];
            c.sender && c.sender.track && "audio" === c.sender.track.kind || c.receiver && c.receiver.track && "audio" === c.receiver.track.kind ? i = i || c : (c.sender && c.sender.track && "video" === c.sender.track.kind || c.receiver && c.receiver.track && "video" === c.receiver.track.kind) && (d = d || c);
          }
          var n = O(r),
            l = j(r),
            n = (n || l ? n && l ? i && (i.setDirection ? i.setDirection("sendrecv") : i.direction = "sendrecv", Janus.log("Setting audio transceiver to sendrecv:", i)) : n && !l ? i && (i.setDirection ? i.setDirection("sendonly") : i.direction = "sendonly", Janus.log("Setting audio transceiver to sendonly:", i)) : !n && l && (i ? (i.setDirection ? i.setDirection("recvonly") : i.direction = "recvonly", Janus.log("Setting audio transceiver to recvonly:", i)) : (i = o.pc.addTransceiver("audio", {
              direction: "recvonly"
            }), Janus.log("Adding recvonly audio transceiver:", i))) : r.removeAudio && i && (i.setDirection ? i.setDirection("inactive") : i.direction = "inactive", Janus.log("Setting audio transceiver to inactive:", i)), E(r)),
            l = L(r);
          n || l ? n && l ? d && (d.setDirection ? d.setDirection("sendrecv") : d.direction = "sendrecv", Janus.log("Setting video transceiver to sendrecv:", d)) : n && !l ? d && (d.setDirection ? d.setDirection("sendonly") : d.direction = "sendonly", Janus.log("Setting video transceiver to sendonly:", d)) : !n && l && (d ? (d.setDirection ? d.setDirection("recvonly") : d.direction = "recvonly", Janus.log("Setting video transceiver to recvonly:", d)) : (d = o.pc.addTransceiver("video", {
            direction: "recvonly"
          }), Janus.log("Adding recvonly video transceiver:", d))) : r.removeVideo && d && (d.setDirection ? d.setDirection("inactive") : d.direction = "inactive", Janus.log("Setting video transceiver to inactive:", d));
        } else s = "firefox" == Janus.webRTCAdapter.browserDetails.browser || "edge" == Janus.webRTCAdapter.browserDetails.browser ? {
          offerToReceiveAudio: j(r),
          offerToReceiveVideo: L(r)
        } : {
          mandatory: {
            OfferToReceiveAudio: j(r),
            OfferToReceiveVideo: L(r)
          }
        };
        Janus.debug(s);
        var f = E(r);
        f && t && "firefox" === Janus.webRTCAdapter.browserDetails.browser && (Janus.log("Enabling Simulcasting for Firefox (RID)"), n = o.pc.getSenders()[1], Janus.log(n), l = n.getParameters(), Janus.log(l), n.setParameters({
          encodings: [{
            rid: "high",
            active: !0,
            priority: "high",
            maxBitrate: 1e6
          }, {
            rid: "medium",
            active: !0,
            priority: "medium",
            maxBitrate: 3e5
          }, {
            rid: "low",
            active: !0,
            priority: "low",
            maxBitrate: 1e5
          }]
        })), o.pc.createAnswer(s).then(function (e) {
          Janus.debug(e);
          var n = {
            type: e.type,
            sdp: e.sdp
          };
          a.customizeSdp(n), e.sdp = n.sdp, Janus.log("Setting local description"), f && t && ("chrome" === Janus.webRTCAdapter.browserDetails.browser ? Janus.warn("simulcast=true, but this is an answer, and video breaks in Chrome if we enable it") : "firefox" !== Janus.webRTCAdapter.browserDetails.browser && Janus.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")), o.mySdp = e.sdp, o.pc.setLocalDescription(e).catch(a.error), o.mediaConstraints = s, o.iceDone || o.trickle ? a.success(e) : Janus.log("Waiting for all candidates...");
        }, a.error);
      }
    }, m.error);
  }
  function D(s, e, i) {
    (i = i || {}).success = "function" == typeof i.success ? i.success : Janus.noop, i.error = "function" == typeof i.error ? i.error : Q;
    var d = i.jsep;
    if (e && d) return Janus.error("Provided a JSEP to a createOffer"), void i.error("Provided a JSEP to a createOffer");
    if (!(e || d && d.type && d.sdp)) return Janus.error("A valid JSEP is required for createAnswer"), void i.error("A valid JSEP is required for createAnswer");
    i.media = i.media || {
      audio: !0,
      video: !0
    };
    var u = i.media,
      c = I[s];
    if (null == c || null === c.webrtcStuff || void 0 === c.webrtcStuff) return Janus.warn("Invalid handle"), void i.error("Invalid handle");
    var n = c.webrtcStuff;
    if (n.trickle = (e = i.trickle, Janus.debug("isTrickleEnabled:", e), null == e || !0 === e), void 0 === n.pc || null === n.pc) u.update = !1, u.keepAudio = !1, u.keepVideo = !1;else if (void 0 !== n.pc && null !== n.pc) {
      if (Janus.log("Updating existing media session"), u.update = !0, null !== i.stream && void 0 !== i.stream) i.stream !== n.myStream && Janus.log("Renegotiation involves a new external stream");else {
        if (u.addAudio) {
          if (u.keepAudio = !1, u.replaceAudio = !1, u.removeAudio = !1, u.audioSend = !0, n.myStream && n.myStream.getAudioTracks() && n.myStream.getAudioTracks().length) return Janus.error("Can't add audio stream, there already is one"), void i.error("Can't add audio stream, there already is one");
        } else u.removeAudio ? (u.keepAudio = !1, u.replaceAudio = !1, u.addAudio = !1, u.audioSend = !1) : u.replaceAudio && (u.keepAudio = !1, u.addAudio = !1, u.removeAudio = !1, u.audioSend = !0);
        if (null === n.myStream || void 0 === n.myStream ? (u.replaceAudio && (u.keepAudio = !1, u.replaceAudio = !1, u.addAudio = !0, u.audioSend = !0), O(u) && (u.keepAudio = !1, u.addAudio = !0)) : null === n.myStream.getAudioTracks() || void 0 === n.myStream.getAudioTracks() || 0 === n.myStream.getAudioTracks().length ? (u.replaceAudio && (u.keepAudio = !1, u.replaceAudio = !1, u.addAudio = !0, u.audioSend = !0), O(u) && (u.keepVideo = !1, u.addAudio = !0)) : !O(u) || u.removeAudio || u.replaceAudio || (u.keepAudio = !0), u.addVideo) {
          if (u.keepVideo = !1, u.replaceVideo = !1, u.removeVideo = !1, u.videoSend = !0, n.myStream && n.myStream.getVideoTracks() && n.myStream.getVideoTracks().length) return Janus.error("Can't add video stream, there already is one"), void i.error("Can't add video stream, there already is one");
        } else u.removeVideo ? (u.keepVideo = !1, u.replaceVideo = !1, u.addVideo = !1, u.videoSend = !1) : u.replaceVideo && (u.keepVideo = !1, u.addVideo = !1, u.removeVideo = !1, u.videoSend = !0);
        null === n.myStream || void 0 === n.myStream || null === n.myStream.getVideoTracks() || void 0 === n.myStream.getVideoTracks() || 0 === n.myStream.getVideoTracks().length ? (u.replaceVideo && (u.keepVideo = !1, u.replaceVideo = !1, u.addVideo = !0, u.videoSend = !0), E(u) && (u.keepVideo = !1, u.addVideo = !0)) : !E(u) || u.removeVideo || u.replaceVideo || (u.keepVideo = !0), u.addData && (u.data = !0);
      }
      if (O(u) && u.keepAudio && E(u) && u.keepVideo) return c.consentDialog(!1), void T(s, d, u, i, n.myStream);
    }
    if (u.update && !n.streamExternal) {
      if (u.removeAudio || u.replaceAudio) {
        if (n.myStream && n.myStream.getAudioTracks() && n.myStream.getAudioTracks().length) {
          var r = n.myStream.getAudioTracks()[0];
          Janus.log("Removing audio track:", r), n.myStream.removeTrack(r);
          try {
            r.stop();
          } catch (e) {}
        }
        if (n.pc.getSenders() && n.pc.getSenders().length) {
          e = !0;
          if (e = u.replaceAudio && ("firefox" === Janus.webRTCAdapter.browserDetails.browser || "chrome" === Janus.webRTCAdapter.browserDetails.browser && 72 <= Janus.webRTCAdapter.browserDetails.version) ? !1 : e) for (var a in n.pc.getSenders()) (r = n.pc.getSenders()[a]) && r.track && "audio" === r.track.kind && (Janus.log("Removing audio sender:", r), n.pc.removeTrack(r));
        }
      }
      if (u.removeVideo || u.replaceVideo) {
        if (n.myStream && n.myStream.getVideoTracks() && n.myStream.getVideoTracks().length) {
          r = n.myStream.getVideoTracks()[0];
          Janus.log("Removing video track:", r), n.myStream.removeTrack(r);
          try {
            r.stop();
          } catch (e) {}
        }
        if (n.pc.getSenders() && n.pc.getSenders().length) {
          e = !0;
          if (e = u.replaceVideo && ("firefox" === Janus.webRTCAdapter.browserDetails.browser || "chrome" === Janus.webRTCAdapter.browserDetails.browser && 72 <= Janus.webRTCAdapter.browserDetails.version) ? !1 : e) for (var a in n.pc.getSenders()) (r = n.pc.getSenders()[a]) && r.track && "video" === r.track.kind && (Janus.log("Removing video sender:", r), n.pc.removeTrack(r));
        }
      }
    }
    if (null !== i.stream && void 0 !== i.stream) {
      var l = i.stream;
      if (Janus.log("MediaStream provided by the application"), Janus.debug(l), u.update && n.myStream && n.myStream !== i.stream && !n.streamExternal) {
        try {
          var o,
            t = n.myStream.getTracks();
          for (o in t) {
            var f = t[o];
            Janus.log(f), null != f && f.stop();
          }
        } catch (e) {}
        n.myStream = null;
      }
      return n.streamExternal = !0, c.consentDialog(!1), void T(s, d, u, i, l);
    }
    if (O(u) || E(u)) {
      if (Janus.isGetUserMediaAvailable()) {
        var v = {
            mandatory: {},
            optional: []
          },
          g = (c.consentDialog(!0), O(u)),
          p = (!0 === g && null != u && null != u && "object" == typeof u.audio && (g = u.audio), E(u));
        if (!0 === p && null != u && null != u) {
          var e = !0 === i.simulcast,
            m = !0 === i.simulcast2;
          if (!e && !m || d || void 0 !== u.video && !1 !== u.video || (u.video = "hires"), u.video && "screen" != u.video && "window" != u.video) "object" == typeof u.video ? p = u.video : (m = e = 0, e = "lowres" === u.video ? (m = 240, 320) : "lowres-16:9" === u.video ? (m = 180, 320) : "hires" === u.video || "hires-16:9" === u.video || "hdres" === u.video ? (m = 720, 1280) : "fhdres" === u.video ? (m = 1080, 1920) : "4kres" === u.video ? (m = 2160, 3840) : (m = "stdres" === u.video ? 480 : "stdres-16:9" === u.video ? 360 : (Janus.log("Default video setting is stdres 4:3"), 480), 640), Janus.log("Adding media constraint:", u.video), p = {
            height: m,
            width: e
          }, Janus.log("Adding video constraint:", p));else if ("screen" === u.video || "window" === u.video) {
            if (u.screenshareFrameRate || (u.screenshareFrameRate = 3), navigator.mediaDevices && navigator.mediaDevices.getDisplayMedia) return void navigator.mediaDevices.getDisplayMedia({
              video: !0
            }).then(function (n) {
              c.consentDialog(!1), O(u) && !u.keepAudio ? navigator.mediaDevices.getUserMedia({
                audio: !0,
                video: !1
              }).then(function (e) {
                n.addTrack(e.getAudioTracks()[0]), T(s, d, u, i, n);
              }) : T(s, d, u, i, n);
            }, function (e) {
              c.consentDialog(!1), i.error(e);
            });
            function b(e, n) {
              c.consentDialog(!1), e ? i.error(e) : T(s, d, u, i, n);
            }
            function J(e, r, a) {
              Janus.log("Adding media constraint (screen capture)"), Janus.debug(e), navigator.mediaDevices.getUserMedia(e).then(function (n) {
                a ? navigator.mediaDevices.getUserMedia({
                  audio: !0,
                  video: !1
                }).then(function (e) {
                  n.addTrack(e.getAudioTracks()[0]), r(null, n);
                }) : r(null, n);
              }).catch(function (e) {
                c.consentDialog(!1), r(e);
              });
            }
            if ("chrome" === Janus.webRTCAdapter.browserDetails.browser) {
              var m = Janus.webRTCAdapter.browserDetails.version,
                e = 33;
              window.navigator.userAgent.match("Linux") && (e = 35), 26 <= m && m <= e ? J(v = {
                video: {
                  mandatory: {
                    googLeakyBucket: !0,
                    maxWidth: window.screen.width,
                    maxHeight: window.screen.height,
                    minFrameRate: u.screenshareFrameRate,
                    maxFrameRate: u.screenshareFrameRate,
                    chromeMediaSource: "screen"
                  }
                },
                audio: O(u) && !u.keepAudio
              }, b) : Janus.extension.getScreen(function (e, n) {
                if (e) return c.consentDialog(!1), i.error(e);
                (v = {
                  audio: !1,
                  video: {
                    mandatory: {
                      chromeMediaSource: "desktop",
                      maxWidth: window.screen.width,
                      maxHeight: window.screen.height,
                      minFrameRate: u.screenshareFrameRate,
                      maxFrameRate: u.screenshareFrameRate
                    },
                    optional: [{
                      googLeakyBucket: !0
                    }, {
                      googTemporalLayeredScreencast: !0
                    }]
                  }
                }).video.mandatory.chromeMediaSourceId = n, J(v, b, O(u) && !u.keepAudio);
              });
            } else if ("firefox" === Janus.webRTCAdapter.browserDetails.browser) {
              if (!(33 <= Janus.webRTCAdapter.browserDetails.version)) return (m = new Error("NavigatorUserMediaError")).name = "Your version of Firefox does not support screen sharing, please install Firefox 33 (or more recent versions)", c.consentDialog(!1), void i.error(m);
              J(v = {
                video: {
                  mozMediaSource: u.video,
                  mediaSource: u.video
                },
                audio: O(u) && !u.keepAudio
              }, function (e, n) {
                var r, a;
                b(e, n), e || (r = n.currentTime, a = window.setInterval(function () {
                  n || window.clearInterval(a), n.currentTime == r && (window.clearInterval(a), n.onended && n.onended()), r = n.currentTime;
                }, 500));
              });
            }
            return;
          }
        }
        null != u && "screen" === u.video || navigator.mediaDevices.enumerateDevices().then(function (e) {
          var n = e.some(function (e) {
              return "audioinput" === e.kind;
            }),
            e = function (e) {
              if (Janus.debug("isScreenSendEnabled:", e), null == e) return !1;
              if ("object" != typeof e.video || "object" != typeof e.video.mandatory) return !1;
              e = e.video.mandatory;
              {
                if (e.chromeMediaSource) return "desktop" === e.chromeMediaSource || "screen" === e.chromeMediaSource;
                if (e.mozMediaSource) return "window" === e.mozMediaSource || "screen" === e.mozMediaSource;
                if (e.mediaSource) return "window" === e.mediaSource || "screen" === e.mediaSource;
              }
              return !1;
            }(u) || e.some(function (e) {
              return "videoinput" === e.kind;
            }),
            r = O(u),
            a = E(u),
            o = (o = u, Janus.debug("isAudioSendRequired:", o), null != o && !1 !== o.audio && !1 !== o.audioSend && void 0 !== o.failIfNoAudio && null !== o.failIfNoAudio && !0 === o.failIfNoAudio),
            t = (t = u, Janus.debug("isVideoSendRequired:", t), null != t && !1 !== t.video && !1 !== t.videoSend && void 0 !== t.failIfNoVideo && null !== t.failIfNoVideo && !0 === t.failIfNoVideo);
          if (r || a || o || t) {
            r = !!r && n, a = !!a && e;
            if (!r && !a) return c.consentDialog(!1), i.error("No capture device found"), !1;
            if (!r && o) return c.consentDialog(!1), i.error("Audio capture is required, but no capture device found"), !1;
            if (!a && t) return c.consentDialog(!1), i.error("Video capture is required, but no capture device found"), !1;
          }
          r = {
            audio: !(!n || u.keepAudio) && g,
            video: !(!e || u.keepVideo) && p
          };
          Janus.debug("getUserMedia constraints", r), r.audio || r.video ? navigator.mediaDevices.getUserMedia(r).then(function (e) {
            c.consentDialog(!1), T(s, d, u, i, e);
          }).catch(function (e) {
            c.consentDialog(!1), i.error({
              code: e.code,
              name: e.name,
              message: e.message
            });
          }) : (c.consentDialog(!1), T(s, d, u, i, l));
        }).catch(function (e) {
          c.consentDialog(!1), i.error("enumerateDevices error", e);
        });
      } else i.error("getUserMedia not available");
    } else T(s, d, u, i);
  }
  function z(e, n) {
    (n = n || {}).success = "function" == typeof n.success ? n.success : Janus.noop, n.error = "function" == typeof n.error ? n.error : Q;
    var r = n.jsep,
      e = I[e];
    if (null == e || null === e.webrtcStuff || void 0 === e.webrtcStuff) return Janus.warn("Invalid handle"), void n.error("Invalid handle");
    var a = e.webrtcStuff;
    if (null != r) {
      if (null === a.pc) return Janus.warn("Wait, no PeerConnection?? if this is an answer, use createAnswer and not handleRemoteJsep"), void n.error("No PeerConnection: if this is an answer, use createAnswer and not handleRemoteJsep");
      a.pc.setRemoteDescription(r).then(function () {
        if (Janus.log("Remote description accepted!"), a.remoteSdp = r.sdp, a.candidates && 0 < a.candidates.length) {
          for (var e in a.candidates) {
            e = a.candidates[e];
            Janus.debug("Adding remote candidate:", e), e && !0 !== e.completed ? a.pc.addIceCandidate(e) : a.pc.addIceCandidate();
          }
          a.candidates = [];
        }
        n.success();
      }, n.error);
    } else n.error("Invalid JSEP");
  }
  function A(e, o) {
    e = I[e];
    if (null == e || null === e.webrtcStuff || void 0 === e.webrtcStuff) return Janus.warn("Invalid handle"), 0;
    var t = o ? "remote" : "local",
      s = e.webrtcStuff;
    return s.volume[t] || (s.volume[t] = {
      value: 0
    }), s.pc.getStats && "chrome" === Janus.webRTCAdapter.browserDetails.browser ? !o || null !== s.remoteStream && void 0 !== s.remoteStream ? o || null !== s.myStream && void 0 !== s.myStream ? null === s.volume[t].timer || void 0 === s.volume[t].timer ? (Janus.log("Starting " + t + " volume monitor"), s.volume[t].timer = setInterval(function () {
      s.pc.getStats(function (e) {
        for (var n = e.result(), r = 0; r < n.length; r++) {
          var a = n[r];
          "ssrc" == a.type && (o && a.stat("audioOutputLevel") ? s.volume[t].value = parseInt(a.stat("audioOutputLevel")) : !o && a.stat("audioInputLevel") && (s.volume[t].value = parseInt(a.stat("audioInputLevel"))));
        }
      });
    }, 200), 0) : s.volume[t].value : (Janus.warn("Local stream unavailable"), 0) : (Janus.warn("Remote stream unavailable"), 0) : (Janus.warn("Getting the " + t + " volume unsupported by browser"), 0);
  }
  function x(e, n) {
    e = I[e];
    if (null == e || null === e.webrtcStuff || void 0 === e.webrtcStuff) return Janus.warn("Invalid handle"), !0;
    e = e.webrtcStuff;
    return null === e.pc || void 0 === e.pc ? (Janus.warn("Invalid PeerConnection"), !0) : void 0 === e.myStream || null === e.myStream ? (Janus.warn("Invalid local MediaStream"), !0) : n ? null === e.myStream.getVideoTracks() || void 0 === e.myStream.getVideoTracks() || 0 === e.myStream.getVideoTracks().length ? (Janus.warn("No video track"), !0) : !e.myStream.getVideoTracks()[0].enabled : null === e.myStream.getAudioTracks() || void 0 === e.myStream.getAudioTracks() || 0 === e.myStream.getAudioTracks().length ? (Janus.warn("No audio track"), !0) : !e.myStream.getAudioTracks()[0].enabled;
  }
  function P(e, n, r) {
    e = I[e];
    if (null == e || null === e.webrtcStuff || void 0 === e.webrtcStuff) return Janus.warn("Invalid handle"), !1;
    e = e.webrtcStuff;
    return null === e.pc || void 0 === e.pc ? (Janus.warn("Invalid PeerConnection"), !1) : void 0 === e.myStream || null === e.myStream ? (Janus.warn("Invalid local MediaStream"), !1) : n ? null === e.myStream.getVideoTracks() || void 0 === e.myStream.getVideoTracks() || 0 === e.myStream.getVideoTracks().length ? (Janus.warn("No video track"), !1) : (e.myStream.getVideoTracks()[0].enabled = !r, !0) : null === e.myStream.getAudioTracks() || void 0 === e.myStream.getAudioTracks() || 0 === e.myStream.getAudioTracks().length ? (Janus.warn("No audio track"), !1) : (e.myStream.getAudioTracks()[0].enabled = !r, !0);
  }
  function H(e) {
    e = I[e];
    if (null == e || null === e.webrtcStuff || void 0 === e.webrtcStuff) return Janus.warn("Invalid handle"), "Invalid handle";
    var r = e.webrtcStuff;
    return null === r.pc || void 0 === r.pc ? "Invalid PeerConnection" : r.pc.getStats ? null === r.bitrate.timer || void 0 === r.bitrate.timer ? (Janus.log("Starting bitrate timer (via getStats)"), r.bitrate.timer = setInterval(function () {
      r.pc.getStats().then(function (e) {
        e.forEach(function (e) {
          var n;
          e && (n = !1, (n = !(("video" === e.mediaType || -1 < e.id.toLowerCase().indexOf("video")) && "inbound-rtp" === e.type && e.id.indexOf("rtcp") < 0) && ("ssrc" != e.type || !e.bytesReceived || "VP8" !== e.googCodecName && "" !== e.googCodecName) ? n : !0) && (r.bitrate.bsnow = e.bytesReceived, r.bitrate.tsnow = e.timestamp, null !== r.bitrate.bsbefore && null !== r.bitrate.tsbefore && (n = r.bitrate.tsnow - r.bitrate.tsbefore, "safari" == Janus.webRTCAdapter.browserDetails.browser && (n /= 1e3), e = Math.round(8 * (r.bitrate.bsnow - r.bitrate.bsbefore) / n), "safari" === Janus.webRTCAdapter.browserDetails.browser && (e = parseInt(e / 1e3)), r.bitrate.value = e + " kbits/sec"), r.bitrate.bsbefore = r.bitrate.bsnow, r.bitrate.tsbefore = r.bitrate.tsnow));
        });
      });
    }, 1e3), "0 kbits/sec") : r.bitrate.value : (Janus.warn("Getting the video bitrate unsupported by browser"), "Feature unsupported by browser");
  }
  function Q(e) {
    Janus.error("WebRTC error:", e);
  }
  function M(e, n) {
    Janus.log("Cleaning WebRTC stuff");
    var r = I[e];
    if (null != r) {
      var a = r.webrtcStuff;
      if (null != a) {
        !0 === n && (n = {
          janus: "hangup",
          transaction: Janus.randomString(12)
        }, null !== r.token && void 0 !== r.token && (n.token = r.token), null != b && (n.apisecret = b), Janus.debug("Sending hangup request (handle=" + e + "):"), Janus.debug(n), c ? (n.session_id = w, n.handle_id = e, l.send(JSON.stringify(n))) : Janus.httpAPICall(g + "/" + w + "/" + e, {
          verb: "POST",
          withCredentials: p,
          body: n
        })), a.remoteStream = null, a.volume && (a.volume.local && a.volume.local.timer && clearInterval(a.volume.local.timer), a.volume.remote && a.volume.remote.timer && clearInterval(a.volume.remote.timer)), a.volume = {}, a.bitrate.timer && clearInterval(a.bitrate.timer), a.bitrate.timer = null, a.bitrate.bsnow = null, a.bitrate.bsbefore = null, a.bitrate.tsnow = null, a.bitrate.tsbefore = null, a.bitrate.value = null;
        try {
          if (!a.streamExternal && null !== a.myStream && void 0 !== a.myStream) {
            Janus.log("Stopping local stream tracks");
            var o,
              t = a.myStream.getTracks();
            for (o in t) {
              var s = t[o];
              Janus.log(s), null != s && s.stop();
            }
          }
        } catch (e) {}
        a.streamExternal = !1, a.myStream = null;
        try {
          a.pc.close();
        } catch (e) {}
        a.pc = null, a.candidates = null, a.mySdp = null, a.remoteSdp = null, a.iceDone = !1, a.dataChannel = {}, a.dtmfSender = null;
      }
      r.oncleanup();
    }
  }
  function O(e) {
    return Janus.debug("isAudioSendEnabled:", e), null == e || !1 !== e.audio && (void 0 === e.audioSend || null === e.audioSend || !0 === e.audioSend);
  }
  function j(e) {
    return Janus.debug("isAudioRecvEnabled:", e), null == e || !1 !== e.audio && (void 0 === e.audioRecv || null === e.audioRecv || !0 === e.audioRecv);
  }
  function E(e) {
    return Janus.debug("isVideoSendEnabled:", e), null == e || !1 !== e.video && (void 0 === e.videoSend || null === e.videoSend || !0 === e.videoSend);
  }
  function L(e) {
    return Janus.debug("isVideoRecvEnabled:", e), null == e || !1 !== e.video && (void 0 === e.videoRecv || null === e.videoRecv || !0 === e.videoRecv);
  }
  y(u), this.getServer = function () {
    return g;
  }, this.isConnected = function () {
    return J;
  }, this.reconnect = function (e) {
    (e = e || {}).success = "function" == typeof e.success ? e.success : Janus.noop, e.error = "function" == typeof e.error ? e.error : Janus.noop, e.reconnect = !0, y(e);
  }, this.getSessionId = function () {
    return w;
  }, this.destroy = function (e) {
    var r = e,
      e = ((r = r || {}).success = "function" == typeof r.success ? r.success : Janus.noop, !0),
      a = (void 0 !== r.asyncRequest && null !== r.asyncRequest && (e = !0 === r.asyncRequest), !0),
      n = (void 0 !== r.notifyDestroyed && null !== r.notifyDestroyed && (a = !0 === r.notifyDestroyed), !1);
    if (void 0 !== r.cleanupHandles && null !== r.cleanupHandles && (n = !0 === r.cleanupHandles), Janus.log("Destroying session " + w + " (async=" + e + ")"), J) {
      if (null == w) Janus.warn("No session to destroy"), r.success(), a && u.destroyed();else {
        if (n) for (var o in I) k(o, {
          noRequest: !0
        });
        var t,
          s,
          i,
          d = {
            janus: "destroy",
            transaction: Janus.randomString(12)
          };
        null != m && (d.token = m), null != b && (d.apisecret = b), c ? (d.session_id = w, t = function () {
          for (var e in f) l.removeEventListener(e, f[e]);
          l.removeEventListener("message", s), l.removeEventListener("error", i), v && clearTimeout(v), l.close();
        }, s = function (e) {
          e = JSON.parse(e.data);
          e.session_id == d.session_id && e.transaction == d.transaction && (t(), r.success(), a && u.destroyed());
        }, i = function (e) {
          t(), r.error("Failed to destroy the server: Is the server down?"), a && u.destroyed();
        }, l.addEventListener("message", s), l.addEventListener("error", i), l.send(JSON.stringify(d))) : Janus.httpAPICall(g + "/" + w, {
          verb: "POST",
          async: e,
          withCredentials: p,
          body: d,
          success: function (e) {
            Janus.log("Destroyed session:"), Janus.debug(e), w = null, J = !1, "success" !== e.janus && Janus.error("Ooops: " + e.error.code + " " + e.error.reason), r.success(), a && u.destroyed();
          },
          error: function (e, n) {
            Janus.error(e + ":", n), w = null, J = !1, r.success(), a && u.destroyed();
          }
        });
      }
    } else Janus.warn("Is the server down? (connected=false)"), r.success();
  }, this.attach = function (e) {
    var r, a, o, n;
    (r = (r = e) || {}).success = "function" == typeof r.success ? r.success : Janus.noop, r.error = "function" == typeof r.error ? r.error : Janus.noop, r.consentDialog = "function" == typeof r.consentDialog ? r.consentDialog : Janus.noop, r.iceState = "function" == typeof r.iceState ? r.iceState : Janus.noop, r.mediaState = "function" == typeof r.mediaState ? r.mediaState : Janus.noop, r.webrtcState = "function" == typeof r.webrtcState ? r.webrtcState : Janus.noop, r.slowLink = "function" == typeof r.slowLink ? r.slowLink : Janus.noop, r.onmessage = "function" == typeof r.onmessage ? r.onmessage : Janus.noop, r.onlocalstream = "function" == typeof r.onlocalstream ? r.onlocalstream : Janus.noop, r.onremotestream = "function" == typeof r.onremotestream ? r.onremotestream : Janus.noop, r.ondata = "function" == typeof r.ondata ? r.ondata : Janus.noop, r.ondataopen = "function" == typeof r.ondataopen ? r.ondataopen : Janus.noop, r.oncleanup = "function" == typeof r.oncleanup ? r.oncleanup : Janus.noop, r.ondetached = "function" == typeof r.ondetached ? r.ondetached : Janus.noop, J ? null == (a = r.plugin) ? (Janus.error("Invalid plugin"), r.error("Invalid plugin")) : (e = r.opaqueId, o = r.token || m, n = Janus.randomString(12), e = {
      janus: "attach",
      plugin: a,
      opaque_id: e,
      transaction: n
    }, null != o && (e.token = o), null != b && (e.apisecret = b), c ? (d[n] = function (e) {
      if (Janus.debug(e), "success" !== e.janus) return Janus.error("Ooops: " + e.error.code + " " + e.error.reason), void r.error("Ooops: " + e.error.code + " " + e.error.reason);
      var n = e.data.id,
        e = (Janus.log("Created handle: " + n), {
          session: i,
          plugin: a,
          id: n,
          token: o,
          detached: !1,
          webrtcStuff: {
            started: !1,
            myStream: null,
            streamExternal: !1,
            remoteStream: null,
            mySdp: null,
            mediaConstraints: null,
            pc: null,
            dataChannel: {},
            dtmfSender: null,
            trickle: !0,
            iceDone: !1,
            volume: {
              value: null,
              timer: null
            },
            bitrate: {
              value: null,
              bsnow: null,
              bsbefore: null,
              tsnow: null,
              tsbefore: null,
              timer: null
            }
          },
          getId: function () {
            return n;
          },
          getPlugin: function () {
            return a;
          },
          getVolume: function () {
            return A(n, !0);
          },
          getRemoteVolume: function () {
            return A(n, !0);
          },
          getLocalVolume: function () {
            return A(n, !1);
          },
          isAudioMuted: function () {
            return x(n, !1);
          },
          muteAudio: function () {
            return P(n, !1, !0);
          },
          unmuteAudio: function () {
            return P(n, !1, !1);
          },
          isVideoMuted: function () {
            return x(n, !0);
          },
          muteVideo: function () {
            return P(n, !0, !0);
          },
          unmuteVideo: function () {
            return P(n, !0, !1);
          },
          getBitrate: function () {
            return H(n);
          },
          send: function (e) {
            q(n, e);
          },
          data: function (e) {
            G(n, e);
          },
          dtmf: function (e) {
            B(n, e);
          },
          consentDialog: r.consentDialog,
          iceState: r.iceState,
          mediaState: r.mediaState,
          webrtcState: r.webrtcState,
          slowLink: r.slowLink,
          onmessage: r.onmessage,
          createOffer: function (e) {
            D(n, !0, e);
          },
          createAnswer: function (e) {
            D(n, !1, e);
          },
          handleRemoteJsep: function (e) {
            z(n, e);
          },
          onlocalstream: r.onlocalstream,
          onremotestream: r.onremotestream,
          ondata: r.ondata,
          ondataopen: r.ondataopen,
          oncleanup: r.oncleanup,
          ondetached: r.ondetached,
          hangup: function (e) {
            M(n, !0 === e);
          },
          detach: function (e) {
            k(n, e);
          }
        });
      I[n] = e, r.success(e);
    }, e.session_id = w, l.send(JSON.stringify(e))) : Janus.httpAPICall(g + "/" + w, {
      verb: "POST",
      withCredentials: p,
      body: e,
      success: function (e) {
        if (Janus.debug(e), "success" !== e.janus) return Janus.error("Ooops: " + e.error.code + " " + e.error.reason), void r.error("Ooops: " + e.error.code + " " + e.error.reason);
        var n = e.data.id,
          e = (Janus.log("Created handle: " + n), {
            session: i,
            plugin: a,
            id: n,
            token: o,
            detached: !1,
            webrtcStuff: {
              started: !1,
              myStream: null,
              streamExternal: !1,
              remoteStream: null,
              mySdp: null,
              mediaConstraints: null,
              pc: null,
              dataChannel: {},
              dtmfSender: null,
              trickle: !0,
              iceDone: !1,
              volume: {
                value: null,
                timer: null
              },
              bitrate: {
                value: null,
                bsnow: null,
                bsbefore: null,
                tsnow: null,
                tsbefore: null,
                timer: null
              }
            },
            getId: function () {
              return n;
            },
            getPlugin: function () {
              return a;
            },
            getVolume: function () {
              return A(n, !0);
            },
            getRemoteVolume: function () {
              return A(n, !0);
            },
            getLocalVolume: function () {
              return A(n, !1);
            },
            isAudioMuted: function () {
              return x(n, !1);
            },
            muteAudio: function () {
              return P(n, !1, !0);
            },
            unmuteAudio: function () {
              return P(n, !1, !1);
            },
            isVideoMuted: function () {
              return x(n, !0);
            },
            muteVideo: function () {
              return P(n, !0, !0);
            },
            unmuteVideo: function () {
              return P(n, !0, !1);
            },
            getBitrate: function () {
              return H(n);
            },
            send: function (e) {
              q(n, e);
            },
            data: function (e) {
              G(n, e);
            },
            dtmf: function (e) {
              B(n, e);
            },
            consentDialog: r.consentDialog,
            iceState: r.iceState,
            mediaState: r.mediaState,
            webrtcState: r.webrtcState,
            slowLink: r.slowLink,
            onmessage: r.onmessage,
            createOffer: function (e) {
              D(n, !0, e);
            },
            createAnswer: function (e) {
              D(n, !1, e);
            },
            handleRemoteJsep: function (e) {
              z(n, e);
            },
            onlocalstream: r.onlocalstream,
            onremotestream: r.onremotestream,
            ondata: r.ondata,
            ondataopen: r.ondataopen,
            oncleanup: r.oncleanup,
            ondetached: r.ondetached,
            hangup: function (e) {
              M(n, !0 === e);
            },
            detach: function (e) {
              k(n, e);
            }
          });
        I[n] = e, r.success(e);
      },
      error: function (e, n) {
        Janus.error(e + ":", n);
      }
    })) : (Janus.warn("Is the server down? (connected=false)"), r.error("Is the server down? (connected=false)"));
  };
}
Janus.useDefaultDependencies = function (e) {
  var r = e && e.fetch || fetch,
    o = e && e.Promise || Promise,
    a = e && e.WebSocket || WebSocket;
  return {
    newWebSocket: function (e, n) {
      return new a(e, n);
    },
    extension: e && e.extension || defaultExtension,
    isArray: function (e) {
      return Array.isArray(e);
    },
    webRTCAdapter: e && e.adapter || webrtc_adapter__WEBPACK_IMPORTED_MODULE_9__["default"],
    httpAPICall: function (e, a) {
      var n = {
          method: a.verb,
          headers: {
            Accept: "application/json, text/plain, */*"
          },
          cache: "no-cache"
        },
        e = ("POST" === a.verb && (n.headers["Content-Type"] = "application/json"), void 0 !== a.withCredentials && (n.credentials = !0 === a.withCredentials ? "include" : a.withCredentials || "omit"), void 0 !== a.body && (n.body = JSON.stringify(a.body)), r(e, n).catch(function (e) {
          return o.reject({
            message: "Probably a network error, is the server down?",
            error: e
          });
        }));
      return void 0 !== a.timeout && (n = new o(function (e, n) {
        var r = setTimeout(function () {
          return clearTimeout(r), n({
            message: "Request timed out",
            timeout: a.timeout
          });
        }, a.timeout);
      }), e = o.race([e, n])), e.then(function (n) {
        return n.ok ? typeof a.success == typeof Janus.noop ? n.json().then(function (e) {
          a.success(e);
        }).catch(function (e) {
          return o.reject({
            message: "Failed to parse response body",
            error: e,
            response: n
          });
        }) : void 0 : o.reject({
          message: "API call failed",
          response: n
        });
      }).catch(function (e) {
        typeof a.error == typeof Janus.noop && a.error(e.message || "<< internal error >>", e);
      }), e;
    }
  };
}, Janus.useOldDependencies = function (e) {
  var o = e && e.jQuery || jQuery,
    r = e && e.WebSocket || WebSocket;
  return {
    newWebSocket: function (e, n) {
      return new r(e, n);
    },
    isArray: function (e) {
      return o.isArray(e);
    },
    extension: e && e.extension || defaultExtension,
    webRTCAdapter: e && e.adapter || webrtc_adapter__WEBPACK_IMPORTED_MODULE_9__["default"],
    httpAPICall: function (e, a) {
      var n = void 0 !== a.body ? {
          contentType: "application/json",
          data: JSON.stringify(a.body)
        } : {},
        r = void 0 !== a.withCredentials ? {
          xhrFields: {
            withCredentials: a.withCredentials
          }
        } : {};
      return o.ajax(o.extend(n, r, {
        url: e,
        type: a.verb,
        cache: !1,
        dataType: "json",
        async: a.async,
        timeout: a.timeout,
        success: function (e) {
          typeof a.success == typeof Janus.noop && a.success(e);
        },
        error: function (e, n, r) {
          typeof a.error == typeof Janus.noop && a.error(n, r);
        }
      }));
    }
  };
}, Janus.noop = function () {}, Janus.dataChanDefaultLabel = "JanusDataChannel", Janus.init = function (e) {
  if ((e = e || {}).callback = "function" == typeof e.callback ? e.callback : Janus.noop, !0 === Janus.initDone) e.callback();else {
    if ("undefined" != typeof console && void 0 !== console.log || (console = {
      log: function () {}
    }), Janus.trace = Janus.noop, Janus.debug = Janus.noop, Janus.vdebug = Janus.noop, Janus.log = Janus.noop, Janus.warn = Janus.noop, Janus.error = Janus.noop, !0 === e.debug || "all" === e.debug) Janus.trace = console.trace.bind(console), Janus.debug = console.debug.bind(console), Janus.vdebug = console.debug.bind(console), Janus.log = console.log.bind(console), Janus.warn = console.warn.bind(console), Janus.error = console.error.bind(console);else if (Array.isArray(e.debug)) for (var n in e.debug) {
      var r = e.debug[n];
      switch (r) {
        case "trace":
          Janus.trace = console.trace.bind(console);
          break;
        case "debug":
          Janus.debug = console.debug.bind(console);
          break;
        case "vdebug":
          Janus.vdebug = console.debug.bind(console);
          break;
        case "log":
          Janus.log = console.log.bind(console);
          break;
        case "warn":
          Janus.warn = console.warn.bind(console);
          break;
        case "error":
          Janus.error = console.error.bind(console);
          break;
        default:
          console.error("Unknown debugging option '" + r + "' (supported: 'trace', 'debug', 'vdebug', 'log', warn', 'error')");
      }
    }
    Janus.log("Initializing library");
    var a = e.dependencies || Janus.useDefaultDependencies();
    Janus.isArray = a.isArray, Janus.webRTCAdapter = a.webRTCAdapter, Janus.httpAPICall = a.httpAPICall, Janus.newWebSocket = a.newWebSocket, Janus.extension = a.extension, Janus.extension.init(), Janus.listDevices = function (t, e) {
      t = "function" == typeof t ? t : Janus.noop, null == e && (e = {
        audio: !0,
        video: !0
      }), Janus.isGetUserMediaAvailable() ? navigator.mediaDevices.getUserMedia(e).then(function (o) {
        navigator.mediaDevices.enumerateDevices().then(function (e) {
          Janus.debug(e), t(e);
          try {
            var n,
              r = o.getTracks();
            for (n in r) {
              var a = r[n];
              null != a && a.stop();
            }
          } catch (e) {}
        });
      }).catch(function (e) {
        Janus.error(e), t([]);
      }) : (Janus.warn("navigator.mediaDevices unavailable"), t([]));
    }, Janus.attachMediaStream = function (e, n) {
      "chrome" !== Janus.webRTCAdapter.browserDetails.browser || 52 <= Janus.webRTCAdapter.browserDetails.version ? e.srcObject = n : void 0 !== e.src ? e.src = URL.createObjectURL(n) : Janus.error("Error attaching stream to element");
    }, Janus.reattachMediaStream = function (e, n) {
      "chrome" !== Janus.webRTCAdapter.browserDetails.browser || 52 <= Janus.webRTCAdapter.browserDetails.version ? e.srcObject = n.srcObject : void 0 !== e.src ? e.src = n.src : Janus.error("Error reattaching stream to element");
    };
    var a = 0 <= ["iPad", "iPhone", "iPod"].indexOf(navigator.platform) ? "pagehide" : "beforeunload",
      o = window["on" + a];
    if (window.addEventListener(a, function (e) {
      for (var n in Janus.log("Closing window"), Janus.sessions) null !== Janus.sessions[n] && void 0 !== Janus.sessions[n] && Janus.sessions[n].destroyOnUnload && (Janus.log("Destroying session " + n), Janus.sessions[n].destroy({
        asyncRequest: !1,
        notifyDestroyed: !1
      }));
      o && "function" == typeof o && o();
    }), Janus.safariVp8 = !1, "safari" === Janus.webRTCAdapter.browserDetails.browser && 605 <= Janus.webRTCAdapter.browserDetails.version) if (RTCRtpSender && RTCRtpSender.getCapabilities && RTCRtpSender.getCapabilities("video") && RTCRtpSender.getCapabilities("video").codecs && RTCRtpSender.getCapabilities("video").codecs.length) {
      for (var n in RTCRtpSender.getCapabilities("video").codecs) {
        var t = RTCRtpSender.getCapabilities("video").codecs[n];
        if (t && t.mimeType && "video/vp8" === t.mimeType.toLowerCase()) {
          Janus.safariVp8 = !0;
          break;
        }
      }
      Janus.safariVp8 ? Janus.log("This version of Safari supports VP8") : Janus.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu");
    } else {
      var s = new RTCPeerConnection({}, {});
      s.createOffer({
        offerToReceiveVideo: !0
      }).then(function (e) {
        Janus.safariVp8 = -1 !== e.sdp.indexOf("VP8"), Janus.safariVp8 ? Janus.log("This version of Safari supports VP8") : Janus.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu"), s.close(), s = null;
      });
    }
    Janus.initDone = !0, e.callback();
  }
}, Janus.isWebrtcSupported = function () {
  return void 0 !== window.RTCPeerConnection && null !== window.RTCPeerConnection;
}, Janus.isGetUserMediaAvailable = function () {
  return void 0 !== navigator.mediaDevices && null !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia && null !== navigator.mediaDevices.getUserMedia;
}, Janus.randomString = function (e) {
  for (var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", r = "", a = 0; a < e; a++) {
    var o = Math.floor(Math.random() * n.length);
    r += n.substring(o, o + 1);
  }
  return r;
};
/* harmony default export */ __webpack_exports__["default"] = (Janus);

/***/ }),

/***/ "./src/config.js":
/*!***********************!*\
  !*** ./src/config.js ***!
  \***********************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Config; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./platform */ "./src/platform.js");
/* harmony import */ var _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./wfc/client/wfc */ "./src/wfc/client/wfc.js");

var _Config;





class Config {
  static getWFCPlatform() {
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_4__["isElectron"])()) {
      if (window.process && window.process.platform === "darwin") {
        // osx
        return 4;
      } else {
        // windows
        return 3;
      }
    } else {
      // web
      return 5;
    }
  }
  static config(options) {
    Object.keys(options).forEach(key => {
      Config[key] = options[key];
    });
  }

  /**
   * 网络地址重定向
   *
   * 仅当双网环境时，需要特殊处理，默认原样返回
   *
   * @param {string} url
   * @return {string} newUrl
   */
  static urlRedirect(url) {
    if (!url) {
      return url;
    }
    // 示例代码
    // 双网环境时，将媒体文件地址切到备选网络
    // if (Config.isUseBackupAddress()) {
    //     url = url.replace('oss.xxxx.com', '192.168.2.19');
    // }
    return url;
  }

  /**
   * 双网环境时，判断是否是备选网络
   * @return {boolean}
   */
  static isUseBackupAddress() {
    //示例代码
    let host = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].getHost();
    if (host === "192.168.2.169" /* backupHost */) {
      return true;
    }
    return false;
  }

  /**
   * 表情 base 路径
   * @return {string}
   */
  static emojiBaseUrl() {
    // 表情的 baseUrl，一定要求以 / 结尾
    let emojiBaseUrl = "https://static.wildfirechat.net/twemoji/assets/";
    // 实例代码
    // 双网环境时，将表情地址切换到备选网络
    // if (Config.isUseBackupAddress()) {
    //     emojiBaseUrl = 'https://192.168.2.169/twemoji/assets/';
    // }
    return emojiBaseUrl;
  }

  /**
   * 动态表情 base 路径
   * @return {string}
   */
  static stickerBaseUrl() {
    // 动态表情的 baseUrl，一定要求以 / 结尾
    let stickerBaseUrl = "https://static.wildfirechat.net/sticker/";
    // 实例代码
    // 双网环境时，将动态表情地址切换到备选网络
    // if (Config.isUseBackupAddress()) {
    //     stickerBaseUrl = 'https://192.168.2.169/sticker/';
    // }
    return stickerBaseUrl;
  }
  static validate() {
    if (Config.APP_SERVER === "https://app.wildfirechat.net") {
      console.warn("APP SERVER 配置为野火官方，如果需要连接自行部署的IM Server，请修改为说部署的app server");
    }
    console.log(`当前配置信息:
                    app server: ${Config.APP_SERVER}
                    use wss: ${Config.USE_WSS}
                    route port: ${Config.ROUTE_PORT}`);
    if (!Config.APP_SERVER.startsWith("http")) {
      throw new Error("配置错误, Config.APP_SERVER 必须是完整的http地址");
    }
    if (Config.USE_WSS) {
      console.warn("已启用WSS，请确认服务端已配置支持https，配置方法请参考：https://docs.wildfirechat.cn/faq/web/https.html");
    }
    if (Config.APP_SERVER.startsWith("https:") && !Config.USE_WSS) {
      throw new Error("https 站点，不能使用 ws，请配置wss, 配置方法请参考：https://docs.wildfirechat.cn/faq/web/https.html");
    }
    if (Config.USE_WSS && Config.ROUTE_PORT !== 443) {
      console.warn(`配置使用WSS连接时，默认端口是443，但目前配置是${Config.ROUTE_PORT}，请确认!!`);
    }
    if (!Config.USE_WSS && Config.ROUTE_PORT !== 80) {
      console.warn(`配置使用WS连接时，默认端口是80，但目前配置是${Config.ROUTE_PORT}，请确认!!`);
    }
  }
}
_Config = Config;
// 调试用
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_AUTO_LOGIN", true);
// 是否支持多人音视频通话
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_MULTI_VOIP_CALL", true);
// 是否支持1对1音视频通话
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_SINGLE_VOIP_CALL", true);
// 打开voip调试模式时，voip window不会自动关闭，方便分析控制台日志，需要手动关闭。
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_VOIP_DEBUG_MODE", false);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "DEFAULT_PORTRAIT_URL", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAFfgAABX4BPgLDIQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAWCSURBVHic7Z3/T9R1HMefn7vPHXfenXeAw0a4UHSVmptKzK0knVqr+MEfwpyuzdqarVqzWcu5WrOfWuZixZitn8TNctRqTdaKvqDpzAoGZKQQaAQUJhwHx32/+/SDc7NT2u58fz7vJ/J+/AHv1xsevL9+Xu8XmmEYBhQ02GR3QPFflBAylBAylBAylBAylBAylBAylBAylBAylBAylBAylBAylBAydNkdyJdo3MDgSAojY2mkUlcurHVdw23FdpSV6HAVaJJ7mB8zSsjEVAYtP0TQ2hZFd38SqfSNvxzodg3LKpxYt9qNTWvc8M2ZOROBNhO+h8STBo58MYmPvgojFs+tu64CDVsf9GL7wz44Hfyjhl7IuYsJvPFBEEOXUjfVzoL5Ol57ugh33uEQ1DNzoBZy7Psp1B0JIZkS00WHruHF7QE8ev8cIe2ZAa2QD78M4+DHIeHtahrwbK0fWzZ5hbctAsrVruVMBO9/Il4GABgG0NAUwjc/Rk1p/2ahE9I/lMTbh8dh5rg1DGB/YxAXhpPmBckTOiH1R0M576TyIRo3cMBk8flAJeR0Vwxtv8Uti/fL7wkcb+eauqiENDZPWh6zqSVsecz/g0bIxeEUuvsTlsc925fAnyM3d8YRCY2QU53ypo5THTFpsbOhEfJrn/Wj4ypnJcbOhkbIwN/ypo0//uLZ/tIIGQ2lJcbOSIudDY0QK84e0xGNKyHXkZF4QMvw+OARoriCEkKGEkKGEkKGEkKGEkKGEkKGEkIGjRC7xJ44dJ58LRohHonZhR63EnIdJYV2abHnF8mLnQ2NkEVl8jIKKxbwZDPSCFl1V4G02JV3u6TFzoZGyJrlLikLu0PXcO9SeX8M2dAIKZxrwwOr3ZbH3VDlxlwvza+BRwgAPLbBC83CDY/NBtRu5MrxpRKyrMKJ9ZXWjZJH7vNgMdGCDpAJAYBd2wIo9pu/DS0r0fH8437T4+QKnRC/14Y9OwKmLvAFDg17niyEm/AdIp0QAKha7sLepwphM6F3Dl3DvmeKcM9ip/jGBUD7YAcAunoTeLVhFKGwmCwEv9eGN18oxtKFnDIA0hFylRVLnKheJW6Rr17lppYBkAuZjSghZCghZCghZCghZCghZFALSaUN9A+Je7sxeClF9+o2G9qDYc9AEm8dCqJ3QOxjmrUrXdi1LYB5AZ7PttdCJ6RvMInG5kmcaIua9kTBXaChZq0HtRu9mF/MJYZGSO9AEoeOTeJkR9SyaUW3a1hf6cbWh7w01/BShSRTBk60x/BZaxhdvXIfXq5Y4sTm9V5Ur3RJzdOSIiQcyaDp6zA+/W5K2MWhKAI+Gzav82DLJi88buv3PJYKSaUNfH48gsbmCQQnuERkU+S3Y0eNDzXVHkuTLywTcrorhoamkNTnz/lQXqrjuVo/qpZbkypkupBwJIP9jeNobeMq8pIr6yrdePmJALwmp7yaKqR/KInXD47NuFExHeWlOvbtLEZ5qXnFXE0T0tETx976MUxFudeKXAn4bHhn9zwsut2cbbIpQs5fTGDXgcuIxCiOOMIJ+Gyo2z0PC02QInxCHAul8cq7o7esDAAYn8zgpTpx3/qvRbiQ946GEJy8taapG3F5PI36o+ILdQoV0nE+jm9/mtm7qVxoORMRfsMgVIiMEn0yMQzgsOCfWZiQkdE02s9ZV8CShZ+7Y/gnKK60lDAhJzutu6VlImMApzrFlQgUJqSrh6dMntV09oibGYQJYawSbRUXhsXdRAgTMkZUJs9qRJYnFCYkEpu9QiJRcYunMCHp2etj2n+9lA/Cri337SwS1dSshibJQXEF6kS52YgSQoYSQoYSQoYSQoYSQoYSQoYSQoYSQoYSQoYSQoYSQoYSQoYSQoYSQsa/0LPTp+EdzPEAAAAASUVORK5CYII=");
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "DEFAULT_GROUP_PORTRAIT_URL", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA+CAYAAAB3NHh5AAAGjUlEQVRoQ+1baWxUVRT+7pt57SydaaeFQodSoHUhIYRVUaGl1aCGIGDRuERkh0JSDJFUiU34AYmsKpsGNECoVhR/sCgB17IUJS0gohUbytYWBNoy087Wzrx3zX1DS6HLvDdvkNKZ82smc+fe853v3LPc9y5BKxkx94rB6KUJopbqOerTtP7tQfssEq2gpXA1cFzdiS1WV7P+xP+BksyZl0eLWs1UUGQA6AdA/6CBvEtfN4BLIDjM+YSCoq0pxQChhIFNn105kSPcWgqaBtyywQOO9rb6FASkQqTi20c+67uXZOZc6E8FfjcFhnQbjO0AIcBpovFOJhlzqhcDdBW6H7V3w6YAySMZc6tPgtJh3ZndFmyEnGIMOwFqCAvAIC6SMaeKhgdYP8oI4O7OdoThCMPdzAIRl+5mhLaBE3KGo3iC9KE6DOzPg+OA89U+HD3lgd0pdglbhgywxcRhQroRLz1jRJzpzlba7hDx3VEn9hxy4t9a4b4CDwlgfTTBO9PiMHqIHozh9oRSoKTMg3Vf2lB1/f6BDgngt16NxYtZMSABWmkGes8hBz7eVY9Gb/sVbVqyFpkj9LD20OKGTcDhk26cveSFGKIdoRpwWjKPlbkJ6GmRdyJUVy9g0doaXLzqa9XEAAOsPKZPMCFjuA6kleUEkeL4nx5s3duAc5VeMKOpEdWAJ2YYkftKbIeu3J5yH3xuw57DzpafeidokD/LgkFp0eA68JLz1V6s2mHD3xea1OBV1zwwIma8YMK0CWZFSuwucuDDQnvLfxa9HotJYzvfEozZg7+58FGhDe7G4GlWxTBjY9YkM94Yb1IE+NsjTqwusEn/iY0h+GZVEqK0gc/Sau0CFq6pQdW129tB0cKhaA+zs4xY8HIseBkKNyu3aZcdX//gkL4+OViHFbkJsvRmLC9eV4PSskZZ49sbpIphNuHgh6KwLCceFrO8oOVpoliw4gYqqrySPs8+ocd7M+NlA1i6uQ5FJ9gJbHCiGrCGA5bMsGDcqMCnRCIFfjzu34dOj38fMoNtzOspS3tBoMhdU4O/KoIPXKoBM00T4zV4d1ochg9kKaVj3c9VNmHlDhvKL/nZZcIKle1LE9EnURsQNPOKvPW1qLEFX7iEBDDTlOXhedkmPD3SAI3mTtSMy9IyD9YU2HCtTmiTS8eN0mPJjHgwb+lIfALF9n31KDzggKCiCAkZYKYoaxZGDIxG1kg9+iVpwXEE1dd9+LnEhZKyJnh97acTVprOnmyWanFdVFsXafJSFP/hwdoCGxpcKtCGIkp3xAhzbSVVkcnASYbKGqlDajIP9t3lpqio9uLoKTf2H3PB6Q4+/zbrGVKGA27CAAOYkcxGDkY9gVZDIAiA0yOi3il2nVq6GUM0TxAdRcBrIe3h5hKRRWYWXeudtEOXVmsoJf9XxTDrgR9O4dHfyqNvLy0SLRpYzIwh7lblxEACDpeIwu8dKCoNPn8qAdXZ2KAA9+mpxeRMIx4fFC01+yYDaROZWy/a4BSR/0ktfi9vmz81GuDRlCjphCSlN48ecRz0OiI9tGU1c61dROU1H8ovN+Gfi16wwkWNKAY8wKrF8vkJSO4VOG8yxZh6rHbe8JUdjbeUZXs01cpj/BgD0ofppQAlR5xuUWoV9xe7cPaiFw63qCgwsjUUA142Px4Zw+S/HMAa/Q07bdh3xP/WAWsFc6bEYuxwvZTGghEWzE6c9WD9TrvEvhJRDPjgxiToouRryqLs6h02/FLqlgC+9lwMZk40S1FYjfjbRSfe3+bvuuSKYsCHtvSRO7c0jrkha9xZwW/QEeRNtSDrMfke0tlizJjjF15VpM//CjjGwGHJ9DiMGRoawAzp2LnVEcAhTUtqXDrCsCJnbH9wxKUDGFFx0CrabL3j3DgQSS6PKPXBP5W4wVyaHRSwYiMUQilF5rwriqZSDPjT/EQ8ksLLXoQ1Dtv2NeCLAw1S7s2ZYka2jKcUchYov+zFnOXX5QxtGaMY8OghOuS9GdfmgVlnqx4/48HyrTelNm9QKo/82fHSoxQ1crNBkAqa4tMeRdMoBsxmT7Vq8fxTBlknlawiOlPRiIO/usFOLpiYYzhkZxqR1EMjnYoolZv1Ag4cc+H8FWVlJVsnKMBKFexK4yOAuxIb90KXCMP3wqpdac4Iw12JjXuhSzgyHG4viIfhFYDwuuQRdtd4wu6ilj/0h9VVvNvZjl22NIlivI/A0B0uW3I+4nbypLb1Zcv/AOmjBXoSCJhJAAAAAElFTkSuQmCC");
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "DEFAULT_ORGANIZATION_PORTRAIT_URL", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAABlUlEQVR4nO2aIW7DQBBFc409UJRD9AoFJr1DeUADSrogoDws8EslloKCLeUEOcDWEzWtii133d2xH/h0ZD/9Pzs72lVSMBRGM1gBL/zJQAAUAK1kinCgAGg4UH4nASIsABoOVPkoEmEtBGDcN5PodFgvA+Dm+WMSfUFcDMDm/WK79jObANgC0HAgETZ6oDhEjENEnMKMMWIONAbplkHauIlwlTPuwprhMuFhd74vFHJpccuEDeus6UHHfXMHXcJVVTswARCACQcGIpwqaDP0QAHQcKAYY4wxpkLFJQ3Sp8M6+1ONp5fX3ztublUHMP64xYuqBZgyfpiXmgAUAA0Higibh35FDxQADQc6jltkjAkATDjQb9wiEQ6+AY5dGqQZ1MwKcHu8DNLj23nwz9ZeMyvA7toP0vb4/W5lDjUBeAWg4UARYRf9KtIDewB2ONBv3CIR7gHY4UC/cYtEuAdghwP/Z00UndTMskwY+worzaBmFoAoADBlNgIOFACtZGvBgQKg4UD5PeGJsABoOFDlo0iEVQbgDWanvolAkB8PAAAAAElFTkSuQmCC");
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "DEFAULT_DEPARTMENT_PORTRAIT_URL", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAFCgAwAEAAAAAQAAAFAAAAAAwtohTAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KGV7hBwAAAjlJREFUeAHt28FOwkAQgOGt8UF4Cg0nOJjo1bfgEfRkPekj8BZeOGjigRuRcNeTJ30NsW0g2UzatTNTpE3+JiS7dGba/dgAW0oIbAgggAACCCCAAAIIIIAAAgMTyI59vlcPq2lxDuVDtT3fjnNVwoGCTw9UV1N2us3CnSZhF5sbcjpP6QNgNajri7NWg/v4/A7vxaMv20lfTmSo5wGg85UDEECngDOdGQigU8CZzgwE0CngTGcGAugUcKYzAwF0CjjTmYEAOgWc6b25nPX0unYO5TjpfQBcZtvawY9+QhgV7zHL2r08mRYoLvXnl4+retp06r/u5UPEyQ0ggE4BZzozEECngDOdGQigU8CZ3smtHdbbM1LnXnyJnmZZmBRfsu9TcZZ9Xd4W0tVKxHp7RuP496+s8baPxrq7HflfAW33dwVYHe/lZrwfd9vjN8aVK5ES7xA1Gw9q2MGHiAEtTgEw1jC0ATSgxSkAxhqGNoAGtDgFwFjD0AbQgBanABhrGNoAGtDiFNXKIbHmTf4AlFp7DqVmjBa3tUu5xjVv+UoUvwBN4uJRO4/asjmUmvK8q74WsEqaz85ri8knF5uvsNi0+0vCUGrKMfIeKEWUfQCVYDIcQCmi7AOoBJPhAEoRZR9AJZgMB1CKKPsAKsFkOIBSRNkHUAkmwwGUIso+gEowGQ6gFFH2AVSCyXDT5azZ/E3WcfeHUlMOVAvY9JcEWVfTH0pNzZiIRQABBBBAAAEEEEAAAQQQ6K/ALz1vZTdxNVa5AAAAAElFTkSuQmCC");
// 默认缩略图，200 x200，#d3d3d3
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "DEFAULT_THUMBNAIL_URL", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAABSlJREFUeF7t1bERwzAMBEGx//JYkN2A5eDSX+UIsOCNzr338/gIEPgpcATiZRB4FxCI10Hgj4BAPA8CAvEGCDQBf5DmZmpEQCAjh7ZmExBIczM1IiCQkUNbswkIpLmZGhEQyMihrdkEBNLcTI0ICGTk0NZsAgJpbqZGBAQycmhrNgGBNDdTIwICGTm0NZuAQJqbqREBgYwc2ppNQCDNzdSIgEBGDm3NJiCQ5mZqREAgI4e2ZhMQSHMzNSIgkJFDW7MJCKS5mRoREMjIoa3ZBATS3EyNCAhk5NDWbAICaW6mRgQEMnJoazYBgTQ3UyMCAhk5tDWbgECam6kRAYGMHNqaTUAgzc3UiIBARg5tzSYgkOZmakRAICOHtmYTEEhzMzUiIJCRQ1uzCQikuZkaERDIyKGt2QQE0txMjQgIZOTQ1mwCAmlupkYEBDJyaGs2AYE0N1MjAgIZObQ1m4BAmpupEQGBjBzamk1AIM3N1IiAQEYObc0mIJDmZmpEQCAjh7ZmExBIczM1IiCQkUNbswkIpLmZGhEQyMihrdkEBNLcTI0ICGTk0NZsAgJpbqZGBAQycmhrNgGBNDdTIwICGTm0NZuAQJqbqREBgYwc2ppNQCDNzdSIgEBGDm3NJiCQ5mZqREAgI4e2ZhMQSHMzNSIgkJFDW7MJCKS5mRoREMjIoa3ZBATS3EyNCAhk5NDWbAICaW6mRgQEMnJoazYBgTQ3UyMCAhk5tDWbgECam6kRAYGMHNqaTUAgzc3UiIBARg5tzSYgkOZmakRAICOHtmYTEEhzMzUiIJCRQ1uzCQikuZkaERDIyKGt2QQE0txMjQgIZOTQ1mwCAmlupkYEBDJyaGs2AYE0N1MjAgIZObQ1m4BAmpupEQGBjBzamk1AIM3N1IiAQEYObc0mIJDmZmpEQCAjh7ZmExBIczM1IiCQkUNbswkIpLmZGhEQyMihrdkEBNLcTI0ICGTk0NZsAgJpbqZGBAQycmhrNgGBNDdTIwICGTm0NZuAQJqbqREBgYwc2ppNQCDNzdSIgEBGDm3NJiCQ5mZqREAgI4e2ZhMQSHMzNSIgkJFDW7MJCKS5mRoREMjIoa3ZBATS3EyNCAhk5NDWbAICaW6mRgQEMnJoazYBgTQ3UyMCAhk5tDWbgECam6kRAYGMHNqaTUAgzc3UiIBARg5tzSYgkOZmakRAICOHtmYTEEhzMzUiIJCRQ1uzCQikuZkaERDIyKGt2QQE0txMjQgIZOTQ1mwCAmlupkYEBDJyaGs2AYE0N1MjAgIZObQ1m4BAmpupEQGBjBzamk1AIM3N1IiAQEYObc0mIJDmZmpEQCAjh7ZmExBIczM1IiCQkUNbswkIpLmZGhEQyMihrdkEBNLcTI0ICGTk0NZsAgJpbqZGBAQycmhrNgGBNDdTIwICGTm0NZuAQJqbqREBgYwc2ppNQCDNzdSIgEBGDm3NJiCQ5mZqREAgI4e2ZhMQSHMzNSIgkJFDW7MJCKS5mRoREMjIoa3ZBATS3EyNCAhk5NDWbAICaW6mRgQEMnJoazYBgTQ3UyMCAhk5tDWbgECam6kRAYGMHNqaTUAgzc3UiIBARg5tzSYgkOZmakRAICOHtmYTEEhzMzUiIJCRQ1uzCQikuZkaERDIyKGt2QQE0txMjQgIZOTQ1mwCAmlupkYEBDJyaGs2AYE0N1MjAgIZObQ1m4BAmpupEQGBjBzamk1AIM3N1IiAQEYObc0mIJDmZmpEQCAjh7ZmExBIczM1IvAFWDC2pw/rRZEAAAAASUVORK5CYII=");
// 如果需要支持音视频通话功能，必须全站使用https(包括app server和im server) + wss，
// WebSockets over SSL/TLS，启用https时，一定要配置为true；不启用https，一定要为false
// 置为true时，请确保 IM SERVER 支持https访问。IM SERVER本身不能处理https请求，一般是通过在IM SERVER前面加上nginx之类的负载均衡器来实现https支持
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "USE_WSS", true);
// ROUTE请求端口，默认是80；配置https时，请修改为其他端口，如443等
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ROUTE_PORT", 443);
// 是否关闭日志，web和小程序有效
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "DISABLE_LOG", false);
// APP SERVER的地址，启用https时，APP SERVER也需要支持https
// 默认的app server使用端口是8888
// static APP_SERVER = 'https://appim.baibaodun.com.cn';
// static APP_SERVER = "https://appim.baibaodun.cn";
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "APP_SERVER", "https://appim.baibaodun.com.cn");
// 组织结构服务地址，如果没有部署组织结构服务，或者不需要组织结构的话，可置为 null
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ORGANIZATION_SERVER", "https://org.wildfirechat.cn");
// 野火二维码 scheme，不要修改，如果需要修改的话，所有端都需要一起修改
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "QR_CODE_PREFIX_PC_SESSION", "wildfirechat://pcsession/");
// turn server 配置，可以添加多个
// !!! 我们提供的服务仅供用户测试和体验，为了保证测试可用，我们会不定期的更改密码. !!!
// 上线时，请一定要切换为你们自己部署的服务
// 格式: [uri, 用户名, 密码]，可以添加多个
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ICE_SERVERS", [["turn:turn.wildfirechat.net:3478", "wfchat", "wfchat1"]]);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "LANGUAGE", "zh_CN");
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "MESSAGE_ROAMING", 1);
/**
 * web/wx 端有效
 * 配置是否开启漫游消息通知，即连接过程中，收到的漫游消息，也对上层进行消息通知
 * 如果开启的话，需要注意一下问题：
 * 1. 此时消息回执状态不对
 * 2. 这时候，不应当刷新 UI，需等待连接状态切换为connected之后，再进行刷新
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_ROAMING_MESSAGE_RECEIVING_NOTIFICATION", false);
/**
 * web/wx 端有效
 * 配置是否开启透传漫游消息通知
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_ROAMING_TRANSPARENT_MESSAGE_RECEIVING_NOTIFICATION", false);
/**
 * web/wx 端有效
 * 配置收到透传消息时，是否生成对应的会话
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_GENERATE_CONVERSATION_FOR_TRANSPARENT_MESSAGE", false);
// 配置clientId的生成策略，可选0，1，2；默认0
// 0 clientId存储于内存，每次刷新网页，都会随机生成新的clientId
// 1 clientId存储于sessionStorage，每个session对应一个clientId，刷新网页时，clientId不会变化；但打开新的tab页面，或者重启浏览器等，会重新生成
// 2 clientId存储于localStorage，和域名绑定，每个域名，对应一个clientId，重启浏览器等，不会变化，会导致同一个浏览器，不能同时登录多个不同的账号
// token是和clientId绑定的，当选策略1和2的时候，应用层可选择将上次成功连接的userId和token持久化，当用户进行刷新网页等操作时，可以直接用持久化的userId和token进行连接；而不用重新进行扫码登录
// 选2时，支持web端快速登录
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "CLIENT_ID_STRATEGY", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "SDK_PLATFORM_WINDOWS", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "SDK_PLATFORM_OSX", 4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "SDK_PLATFORM_WEB", 5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "SDK_PLATFORM_WX", 6);
// 向服务端发送ping的间隔，单位是秒。没有特殊需求，不建议修改
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "KEEP_ALIVE_INTERNAL", 180);
/**
 * 配合{@link wfc.onForeground}使用，切换到前台时，如果多少时间没有活动，将进行重连，单位是秒
 * 需要大于{@link KEEP_ALIVE_INTERNAL}
 * 没有特殊需求，不建议修改
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "KEEP_ALIVE_TIMEOUT", 200);
// html5 audio 标签不能播放amr格式的音频，需要将amr格式转换为mp3格式
// 本服务传入amr音频文件的地址，将音频文件转换为mp3格式，并以application/octet-stream的格式返回
// 如果语音消息很多，建议使用cdn
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "AMR_TO_MP3_SERVER_ADDRESS", _Config.APP_SERVER + "/amr2mp3?path=");
// 发送消息超时时间，超时之后，认为当前连接已不可用，将进行重连，单位是秒。没有特殊需求不，不建议修改
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "SEND_MESSAGE_TIMEOUT", 20);
// 会话过期时间，表示一个会话，自己不再参与之后，多久会过期。会话列表不展示已过期的会话；单位是天
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "CONVERSATION_EXPIRE_TIME", 30);
// 文件传输助手ID
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "FILE_HELPER_ID", "wfc_file_transfer");
// 是否将用户信息、群组信息、频道信息、聊天室信息持久化
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_INFO_PERSISTENCE", false);
// 登录时，每个会话最多加载多少条未读消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "MAX_TO_LOAD_UNREAD_COUNT_PER_CONVERSATION", 99);
/**
 * 允许重新编辑多长时间内的撤回消息，单位是秒
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "RECALL_REEDIT_TIME_LIMIT", 60);
// 允许主动加入多人音视频通话
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_MULTI_CALL_AUTO_JOIN", false);
// 需要专业版 im-server 才支持，是否打开语音对讲功能，和对讲机类似的功能，不是发送语音消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Config, "ENABLE_PTT", true);
Config.validate();

/***/ }),

/***/ "./src/global.css":
/*!************************!*\
  !*** ./src/global.css ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!../node_modules/postcss-loader/src??ref--7-oneOf-3-2!./global.css */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./src/global.css");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("db0cde52", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./src/ipc/ipcMain.vue":
/*!*****************************!*\
  !*** ./src/ipc/ipcMain.vue ***!
  \*****************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ipcMain_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ipcMain.vue?vue&type=script&lang=js */ "./src/ipc/ipcMain.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
var render, staticRenderFns




/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])(
  _ipcMain_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  render,
  staticRenderFns,
  false,
  null,
  "017ac4b9",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/ipc/ipcMain.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/ipc/ipcMain.vue?vue&type=script&lang=js":
/*!*****************************************************!*\
  !*** ./src/ipc/ipcMain.vue?vue&type=script&lang=js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ipcMain_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/babel-loader/lib!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib??vue-loader-options!./ipcMain.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ipc/ipcMain.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ipcMain_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/ipc/ipcSub.js":
/*!***************************!*\
  !*** ./src/ipc/ipcSub.js ***!
  \***************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return IpcSub; });
/* harmony import */ var _localStorageEmitter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./localStorageEmitter */ "./src/ipc/localStorageEmitter.js");
/* harmony import */ var _localStorageIpcEventType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./localStorageIpcEventType */ "./src/ipc/localStorageIpcEventType.js");



// pc 端，可以直接使用 wfc.js 里面的接口，这儿的实现，已经没有意义，应尽量避免使用
// web 端，实现音视频窗口和主窗口通信
class IpcSub {
  static startConversation(conversation) {
    _localStorageEmitter__WEBPACK_IMPORTED_MODULE_0__["default"].send(_localStorageIpcEventType__WEBPACK_IMPORTED_MODULE_1__["default"].startConversation, {
      conversation: conversation
    });
  }
  static startVoipCall(conversation, audioOnly) {
    _localStorageEmitter__WEBPACK_IMPORTED_MODULE_0__["default"].send(_localStorageIpcEventType__WEBPACK_IMPORTED_MODULE_1__["default"].startVoipCall, {
      conversation: conversation,
      audioOnly: audioOnly
    });
  }
  static openConversation(conversation) {
    _localStorageEmitter__WEBPACK_IMPORTED_MODULE_0__["default"].send(_localStorageIpcEventType__WEBPACK_IMPORTED_MODULE_1__["default"].openConversation, {
      conversation: conversation
    });
  }
}

/***/ }),

/***/ "./src/ipc/localStorageEmitter.js":
/*!****************************************!*\
  !*** ./src/ipc/localStorageEmitter.js ***!
  \****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _localStorageEvent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./localStorageEvent */ "./src/ipc/localStorageEvent.js");




class LocalStorageEmitter {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "namespace", "wfc-");
    /**
     *
     * @type {Map<string, any>}
     */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "subscriptions", void 0);
    /**
     *
     * @type {Map<string, any>}
     */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "handles", void 0);
    /**
     *
     * @type {Map<string, any>}
     */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "invokes", void 0);
    window.__lse = this;
    window.addEventListener("storage", ev => {
      let key = ev.key;
      if (!key) {
        return;
      }
      if (!key.startsWith(this.namespace + "$") || !key.endsWith("$")) {
        return;
      }
      let value;
      try {
        value = JSON.parse(ev.newValue);
      } catch (e) {
        value = null;
      }
      if (value === null) {
        console.log("localStorageEmitter ignore null", key);
        return;
      }
      if (key.endsWith("$r$")) {
        this.invokes.forEach((invoke, k) => {
          let invokeReturnValueKey = k + "r" + "$";
          if (invokeReturnValueKey === key) {
            invoke.callback(value.r);
            let b = this.invokes.delete(k);
            localStorage.removeItem(invokeReturnValueKey);
            localStorage.removeItem(k);
          }
        });
      } else {
        this.subscriptions.forEach((subscription, k) => {
          if (k === key) {
            subscription.listener(new _localStorageEvent__WEBPACK_IMPORTED_MODULE_3__["default"](this), value.args);
            if (subscription.once) {
              this.subscriptions.delete(k);
            }
            localStorage.removeItem(k);
          }
        });
        this.handles.forEach((handle, k) => {
          if (key.indexOf("$$") === -1 || key.indexOf("$r$") > -1) {
            return;
          }
          let index = key.indexOf("$$");
          let invokeKey = key.substr(0, index + 1);
          if (k === invokeKey) {
            let invokeId = value.invokeId;
            let returnValue = handle.listener(new _localStorageEvent__WEBPACK_IMPORTED_MODULE_3__["default"](this), value.args);
            let invokeReturnValueKey = k + "$" + invokeId + "$" + "r" + "$";
            if (returnValue instanceof Promise) {
              returnValue.then(v => {
                let r = {
                  r: v
                };
                localStorage.setItem(invokeReturnValueKey, JSON.stringify(r));
              }).catch(reason => {
                console.log("handle failed", reason);
              });
              if (handle.once) {
                this.handles.delete(k);
              }
            } else {
              let r = {
                r: returnValue
              };
              console.log("handle res", invokeId, returnValue);
              localStorage.setItem(invokeReturnValueKey, JSON.stringify(r));
              if (handle.once) {
                this.handles.delete(k);
              }
            }
            localStorage.removeItem(invokeKey);
          }
        });
      }
    });
    this.subscriptions = new Map();
    this.handles = new Map();
    this.invokes = new Map();
  }

  /**
   * 订阅通知
   * @param {string} channel
   * @param {function(LocalStorageEvent, args)} listener
   */
  on(channel, listener) {
    this.subscriptions.set(this.namespace + "$" + channel + "$", {
      once: false,
      listener: listener
    });
  }

  /**
   * 一次性订阅
   * @param {string} channel
   * @param {function(LocalStorageEvent, args)} listener
   */
  once(channel, listener) {
    this.subscriptions.set(this.namespace + "$" + channel + "$", {
      once: true,
      listener: listener
    });
  }

  /**
   * 发布通知
   * @param {string} channel
   * @param {any} args
   */
  send(channel, args) {
    let tmp = {
      args: args
    };
    localStorage.setItem(this.namespace + "$" + channel + "$", JSON.stringify(tmp));
  }

  //
  // sendSync(channel, args) {
  //     this.send(channel, args);
  // }

  /**
   * 处理远程调用
   * @param {string} channel
   * @param {function (any)} listener
   */
  handle(channel, listener) {
    this.handles.set(this.namespace + "$" + channel + "$", {
      once: false,
      listener: listener
    });
  }

  /**
   * 一次性处理远程调用
   * @param {string} channel
   * @param {function (any)} listener
   */
  handleOnce(channel, listener) {
    this.handles.set(this.namespace + "$" + channel + "$", {
      once: true,
      listener: listener
    });
  }

  /**
   * 执行远程调用，调用结果通过callback回调
   * @param {string} channel
   * @param {any} args
   * @param {function (any)} callback
   */
  invoke(channel, args, callback) {
    let invokeId = new Date().getTime() + "-" + Math.ceil(Math.random() * 10000);
    this.invokes.set(this.namespace + "$" + channel + "$$" + invokeId + "$", {
      invokeId: invokeId,
      callback: callback
    });
    let tmp = {
      invokeId: invokeId,
      args: args
    };
    localStorage.setItem(this.namespace + "$" + channel + "$$" + invokeId + "$", JSON.stringify(tmp));
  }

  /**
   * 执行远程调用，调用结果通过promise返回
   * @param channel
   * @param args
   * @return {Promise<any>}
   */
  promiseInvoke(channel, args) {
    return new Promise((resolve, reject) => {
      this.invoke(channel, args, v => {
        resolve(v);
      });
    });
  }
  _dump() {
    console.log("dump localStorageEmitter");
    this.subscriptions.forEach((value, key) => {
      console.log(key, value);
    });
    this.handles.forEach((value, key) => {
      console.log(key, value);
    });
    this.invokes.forEach((value, key) => {
      console.log(key, value);
    });
  }
}
let self = new LocalStorageEmitter();
/* harmony default export */ __webpack_exports__["default"] = (self);

/***/ }),

/***/ "./src/ipc/localStorageEvent.js":
/*!**************************************!*\
  !*** ./src/ipc/localStorageEvent.js ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return LocalStorageEvent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

class LocalStorageEvent {
  constructor(sender) {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "sender", void 0);
    this.sender = sender;
  }
  // returnValue;

  reply(channel, args) {
    this.sender.send(channel, args);
  }
}

/***/ }),

/***/ "./src/ipc/localStorageIpcEventType.js":
/*!*********************************************!*\
  !*** ./src/ipc/localStorageIpcEventType.js ***!
  \*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return LocalStorageIpcEventType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

// 不同窗口间通信事件定义
class LocalStorageIpcEventType {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(LocalStorageIpcEventType, "openConversation", "open-conversation");
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(LocalStorageIpcEventType, "startConversation", "start-conversation");
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(LocalStorageIpcEventType, "startVoipCall", "start-voip-call");
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(LocalStorageIpcEventType, "inviteConferenceParticipant", "invite-conference-participant");
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(LocalStorageIpcEventType, "joinConferenceFailed", "join-conference-failed");

/***/ }),

/***/ "./src/main.js":
/*!*********************!*\
  !*** ./src/main.js ***!
  \*********************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");
/* harmony import */ var _App_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./App.vue */ "./src/App.vue");
/* harmony import */ var vue_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-router */ "./node_modules/vue-router/dist/vue-router.esm.js");
/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./router */ "./src/router/index.js");
/* harmony import */ var vue_tippy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-tippy */ "./node_modules/vue-tippy/dist/vue-tippy.esm.js");
/* harmony import */ var vue_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue-context */ "./node_modules/vue-context/src/js/index.js");
/* harmony import */ var vue_js_modal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-js-modal */ "./node_modules/vue-js-modal/dist/index.js");
/* harmony import */ var vue_js_modal__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_js_modal__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _global_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./global.css */ "./src/global.css");
/* harmony import */ var _global_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_global_css__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _wfc_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./wfc.css */ "./src/wfc.css");
/* harmony import */ var _wfc_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wfc_css__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _assets_fonts_icomoon_style_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./assets/fonts/icomoon/style.css */ "./src/assets/fonts/icomoon/style.css");
/* harmony import */ var _assets_fonts_icomoon_style_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_assets_fonts_icomoon_style_css__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _store_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./store/index */ "./src/store/index.js");
/* harmony import */ var vue_visibility_change__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! vue-visibility-change */ "./node_modules/vue-visibility-change/lib/vue-visibility.js");
/* harmony import */ var vue_visibility_change__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(vue_visibility_change__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ui/util/storageHelper */ "./src/ui/util/storageHelper.js");
/* harmony import */ var vue_i18n__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-i18n */ "./node_modules/vue-i18n/dist/vue-i18n.esm.js");
/* harmony import */ var vue_notification__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! vue-notification */ "./node_modules/vue-notification/dist/index.js");
/* harmony import */ var vue_notification__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(vue_notification__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _ui_common_Alert_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ui/common/Alert.js */ "./src/ui/common/Alert.js");
/* harmony import */ var _ui_common_Picker__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ui/common/Picker */ "./src/ui/common/Picker.js");
/* harmony import */ var _ui_common_Forward__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ui/common/Forward */ "./src/ui/common/Forward.js");
/* harmony import */ var _ui_common_Voip__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ui/common/Voip */ "./src/ui/common/Voip.js");
/* harmony import */ var vue_virtual_scroll_list_src__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! vue-virtual-scroll-list/src */ "./node_modules/vue-virtual-scroll-list/src/index.js");
/* harmony import */ var xss__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! xss */ "./node_modules/xss/lib/index.js");
/* harmony import */ var xss__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(xss__WEBPACK_IMPORTED_MODULE_20__);
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! element-ui */ "./node_modules/element-ui/lib/element-ui.common.js");
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(element_ui__WEBPACK_IMPORTED_MODULE_21__);
/* harmony import */ var tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! tim-js-sdk/tim-js-friendship */ "./node_modules/tim-js-sdk/tim-js-friendship.js");
/* harmony import */ var tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_22__);
/* harmony import */ var element_ui_lib_theme_chalk_index_css__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! element-ui/lib/theme-chalk/index.css */ "./node_modules/element-ui/lib/theme-chalk/index.css");
/* harmony import */ var element_ui_lib_theme_chalk_index_css__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_theme_chalk_index_css__WEBPACK_IMPORTED_MODULE_23__);
/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! normalize.css */ "./node_modules/normalize.css/normalize.css");
/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(normalize_css__WEBPACK_IMPORTED_MODULE_24__);
/* harmony import */ var _styles_index_scss__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @/styles/index.scss */ "./src/styles/index.scss");
/* harmony import */ var _styles_index_scss__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_styles_index_scss__WEBPACK_IMPORTED_MODULE_25__);
/* harmony import */ var _api_auth__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @/api/auth */ "./src/api/auth.js");
/* harmony import */ var _utils_directive__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @/utils/directive */ "./src/utils/directive.js");
/* harmony import */ var _utils_drag__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @/utils/drag */ "./src/utils/drag.js");





















 // elementUI



 // 公共样式
 // 权限控制
 // 拖拽弹窗，在需要用到拖拽功能的弹窗标签上加v-dialogDrag

vue__WEBPACK_IMPORTED_MODULE_0__["default"].config.productionTip = false;
// init end
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(vue_router__WEBPACK_IMPORTED_MODULE_2__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(vue_tippy__WEBPACK_IMPORTED_MODULE_4__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].component("tippy", vue_tippy__WEBPACK_IMPORTED_MODULE_4__["TippyComponent"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(vue_context__WEBPACK_IMPORTED_MODULE_5__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].component("vue-context", vue_context__WEBPACK_IMPORTED_MODULE_5__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].component("virtual-list", vue_virtual_scroll_list_src__WEBPACK_IMPORTED_MODULE_19__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(vue_js_modal__WEBPACK_IMPORTED_MODULE_6___default.a);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(vue_visibility_change__WEBPACK_IMPORTED_MODULE_11___default.a);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(vue_i18n__WEBPACK_IMPORTED_MODULE_13__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(_ui_common_Alert_js__WEBPACK_IMPORTED_MODULE_15__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(_ui_common_Picker__WEBPACK_IMPORTED_MODULE_16__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(_ui_common_Forward__WEBPACK_IMPORTED_MODULE_17__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(_ui_common_Voip__WEBPACK_IMPORTED_MODULE_18__["default"]);
const i18n = new vue_i18n__WEBPACK_IMPORTED_MODULE_13__["default"]({
  // 使用localStorage存储语言状态是为了保证页面刷新之后还是保持原来选择的语言状态
  locale: Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_12__["getItem"])("lang") ? Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_12__["getItem"])("lang") : "zh-CN",
  // 定义默认语言为中文
  messages: {
    "zh-CN": __webpack_require__(/*! @/assets/lang/zh-CN.json */ "./src/assets/lang/zh-CN.json"),
    "zh-TW": __webpack_require__(/*! @/assets/lang/zh-TW.json */ "./src/assets/lang/zh-TW.json"),
    en: __webpack_require__(/*! @/assets/lang/en.json */ "./src/assets/lang/en.json")
  }
});
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(vue_notification__WEBPACK_IMPORTED_MODULE_14___default.a);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.$eventBus = new vue__WEBPACK_IMPORTED_MODULE_0__["default"]();
vue__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.xss = xss__WEBPACK_IMPORTED_MODULE_20___default.a;
vue__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.xssOptions = () => {
  let whiteList = xss__WEBPACK_IMPORTED_MODULE_20___default.a.getDefaultWhiteList();
  window.__whiteList = whiteList;
  //xss 处理的时候，默认会将 img 便签的class属性去除，导致 emoji 表情显示太大
  //这儿配置保留 img 标签的style、class、src、alt、id 属性
  whiteList.img = ["style", "class", "src", "alt", "id"];
  return {
    whiteList
  };
};
vue__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.$store = _store_index__WEBPACK_IMPORTED_MODULE_10__["default"];
vue__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.TIM = tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_22___default.a;
vue__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.$bus = new vue__WEBPACK_IMPORTED_MODULE_0__["default"](); // event Bus 用于无关系组件间的通信。

vue__WEBPACK_IMPORTED_MODULE_0__["default"].directive("drag", _utils_drag__WEBPACK_IMPORTED_MODULE_28__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0__["default"].use(element_ui__WEBPACK_IMPORTED_MODULE_21___default.a, {
  size: "medium"
});
new vue__WEBPACK_IMPORTED_MODULE_0__["default"]({
  router: _router__WEBPACK_IMPORTED_MODULE_3__["default"],
  store: _store_index__WEBPACK_IMPORTED_MODULE_10__["default"],
  i18n,
  render: h => h(_App_vue__WEBPACK_IMPORTED_MODULE_1__["default"])
}).$mount("#app");

// vm.store = WFStore.state;

// window.vm = vm;

/***/ }),

/***/ "./src/platform.js":
/*!*************************!*\
  !*** ./src/platform.js ***!
  \*************************/
/*! exports provided: isElectron, PostMessageEventEmitter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isElectron", function() { return isElectron; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostMessageEventEmitter", function() { return PostMessageEventEmitter; });
// 平台相关代码，目前主要用来处理electron 和 浏览器之间不同

function isElectron() {
  // Renderer process
  if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
    return true;
  }

  // Main process
  if (typeof process !== "undefined" && typeof process.versions === "object" && !!process.versions.electron) {
    return true;
  }

  // Detect the user agent when the `nodeIntegration` option is set to true
  return typeof navigator === "object" && typeof navigator.userAgent === "string" && navigator.userAgent.indexOf("Electron") >= 0;
}

// pc
// export const remote = require('@electron/remote');
// export const ipcRenderer = require('electron').ipcRenderer;
// export const ipcMain = require('electron').ipcMain;
// export const shell = require('electron').shell;
// export const fs = require('file-system').fs;
// export const currentWindow = require('@electron/remote').getCurrentWindow();
// export const BrowserWindow = require('@electron/remote').BrowserWindow;
// export const AppPath = require('@electron/remote').app.getAppPath();
// export const desktopCapturer = require('electron').desktopCapturer;
// export const app = require('@electron/remote').app;
// export const screen = require('@electron/remote').screen

// for web
const PostMessageEventEmitter = __webpack_require__(/*! ./windowEmitter */ "./src/windowEmitter.js");
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! process/browser */ "./node_modules/process/browser.js")))

/***/ }),

/***/ "./src/router/dynamicRouters.js":
/*!**************************************!*\
  !*** ./src/router/dynamicRouters.js ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return generateRoutes; });
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);

const children = [{
  path: "/dispatch",
  name: "dispatch",
  component: () => Promise.all(/*! import() | home */[__webpack_require__.e("vendors~business~home~resources"), __webpack_require__.e("vendors~business~home"), __webpack_require__.e("vendors~home"), __webpack_require__.e("business~home"), __webpack_require__.e("home~resources"), __webpack_require__.e("home")]).then(__webpack_require__.bind(null, /*! ../views/dispatch/index.vue */ "./src/views/dispatch/index.vue")),
  meta: {
    title: "指挥调度",
    cache: true,
    platform: ["*"],
    activePath: "/dispatch"
  }
}, {
  path: "/resources",
  name: "resources",
  component: () => Promise.all(/*! import() | resources */[__webpack_require__.e("vendors~business~home~resources"), __webpack_require__.e("vendors~resources"), __webpack_require__.e("home~resources"), __webpack_require__.e("resources")]).then(__webpack_require__.bind(null, /*! ../views/resources/index.vue */ "./src/views/resources/index.vue")),
  meta: {
    title: "安保资源",
    cache: true,
    platform: ["1"],
    activePath: "/resources"
  }
}, {
  path: "/business",
  name: "business",
  component: () => Promise.all(/*! import() | business */[__webpack_require__.e("vendors~business~home~resources"), __webpack_require__.e("vendors~business~home"), __webpack_require__.e("vendors~business"), __webpack_require__.e("business~home"), __webpack_require__.e("business")]).then(__webpack_require__.bind(null, /*! ../views/business/index.vue */ "./src/views/business/index.vue")),
  meta: {
    title: "业务管理",
    cache: true,
    platform: ["*"],
    activePath: "/business"
  }
}, {
  path: "/multiVideo",
  name: "multiVideo",
  component: () => Promise.all(/*! import() | business */[__webpack_require__.e("vendors~business~home~resources"), __webpack_require__.e("vendors~business~home"), __webpack_require__.e("vendors~business"), __webpack_require__.e("business~home"), __webpack_require__.e("business")]).then(__webpack_require__.bind(null, /*! ../views/videoManage/index.vue */ "./src/views/videoManage/index.vue")),
  meta: {
    title: "视频监控",
    cache: true,
    platform: ["*"],
    activePath: "/multiVideo",
    hidden: true
  }
}
// {
//   path: "/dataScreen",
//   name: "DataScreen",
//   component: () => import("../views/dataScreen/index.vue"),
//   meta: {
//     title: "人员管控",
//     cache: true,
//     platform: ["3"],
//     activePath: "/dataScreen",
//   },
// },
];
const routesInPermission = function (platform, userInfo) {
  const validOrganizationIdList = ["09T9dNBG", "1tBb2bDAEeJsWHEi02u", "Jhwx4QbA", "2lM9EmWI", "2q2vgdok", "5jpd0sLw", "7JXUKfBb", "8z4xyS11", "dhzd5mhY", "F2ACPNgL", "fQApDBw1", "GyuorRdo", "HBFWrven", "HEMcjFVa", "hQm4YmPf", "i4P1jXhT", "IsARDObt", "kkYyAtqg", "KwQQ69Dv", "mztStsRw", "O7f4fVUf", "PuMEHWd8", "sj1Kf5em", "SQqrXjZR", "SwFbtxtI", "UylOOzvJ", "VNzrc1JJ", "VP5I6tAj", "VxPArVQC", "wQXqGyYF", "Zyrpkhh1", "__7Zw9tQ63kkYjLppAa0X", "__iZjB3As6MOfttXkZTXo", "__l4j8hCF7xNmFSRfeQb0", "__Ovmh5cBQhH9e6IJtWlz", "__PqwmbX3GUVvK74BWzKY", "__Qqg3L4GhNXG4iRAmcTB", "__yUx7oCr0CPEjfFd0T1K", "__Zjepzcyikm2y1AHdlbQ", "eGrmlAN1", "gZGdnW3U", "kJe5VD6U", "mli417t9", "3iT1CmoS", "qdnOMp3X"];
  console.log("当前系统的配置信息2", Object({"NODE_ENV":"staging","VUE_APP_ENV":"staging","VUE_APP_API_ROOT":"/dispatch","VUE_APP_API_WS":"wss://v5qy.te.baibaodun.com.cn/dispatch","VUE_APP_BCX_API_URL":"https://identify.test.bcxin.com.cn","VUE_APP_SDK_IM_ID":"1400522511","VUE_APP_SDK_TRTC_ID":"1400522511","VUE_APP_SECRETE_KEY":"5d0e73298984029fab13f00137a666b924a8d51d88287cbc4a1b78b7c3e98210","VUE_APP_IM_AUDIO_API":"/IMAudio","VUE_APP_PTT_SERVER":"wss://rtc.baibaodun.cn:9007","VUE_APP_GWSD_WS_SERVER":"wss://media.baibaodun.cn:8989","VUE_APP_GWSD_CMD_SERVER":"wss://push.baibaodun.cn:8084","VUE_APP_GWSD_API_ROOT":"/pttApi","VUE_APP_PTT_ADMIN_NAME":"ttadmin3","VUE_APP_UPLOAD_FILE_API":"https://v5qy.te.baibaodun.com.cn/v3/shared/common/resources","VUE_APP_MAP_TYPE":"tianditu","VUE_APP_API":"https://v5qy.te.baibaodun.com.cn","VUE_APP_ENABLE_SCREEN":"true","VUE_APP_DISPALY_RISK_CIRCLE":"false","VUE_APP_HUAWEI_API":"/video-platform/huawei-api","VUE_APP_YEHUO_APP_SERVER":"https://appim.baibaodun.com.cn","BASE_URL":"","PACKAGE_VERSION":"1.2.0.20251204100745"}), "xxxxx:", "true", "children", children);
  const baibaodunyanshi = ["7JXUKfBb", "09T9dNBG", "VxPArVQC"];
  if (true) {
    children.push({
      path: "/bigScreen",
      name: "bigScreen",
      component: () => Promise.all(/*! import() | business */[__webpack_require__.e("vendors~business~home~resources"), __webpack_require__.e("vendors~business~home"), __webpack_require__.e("vendors~business"), __webpack_require__.e("business~home"), __webpack_require__.e("business")]).then(__webpack_require__.bind(null, /*! ../views/bigScreen/index.vue */ "./src/views/bigScreen/index.vue")),
      meta: {
        title: "指挥大屏",
        cache: true,
        platform: ["*"],
        activePath: "/bigScreen"
      }
    });
  }
  if (false) {}
  let permissionList = [...children];
  if (false) {} else {
    //如果不是生产环境，显示点名管理菜单
    permissionList.push({
      path: "/rollCallManage",
      name: "rollCallManage",
      component: () => Promise.all(/*! import() | business */[__webpack_require__.e("vendors~business~home~resources"), __webpack_require__.e("vendors~business~home"), __webpack_require__.e("vendors~business"), __webpack_require__.e("business~home"), __webpack_require__.e("business")]).then(__webpack_require__.bind(null, /*! ../components/parentView/index.vue */ "./src/components/parentView/index.vue")),
      meta: {
        title: "点名管理",
        cache: true,
        platform: ["1", "2"],
        activePath: "/rollCallManage"
      },
      redirect: "/polling",
      children: [{
        path: "/polling",
        name: "polling",
        component: () => Promise.all(/*! import() | business */[__webpack_require__.e("vendors~business~home~resources"), __webpack_require__.e("vendors~business~home"), __webpack_require__.e("vendors~business"), __webpack_require__.e("business~home"), __webpack_require__.e("business")]).then(__webpack_require__.bind(null, /*! ../views/rollCallManage/polling/index.vue */ "./src/views/rollCallManage/polling/index.vue")),
        meta: {
          title: "点名轮询",
          cache: true,
          platform: ["*"],
          hidden: true,
          activePath: "/rollCallManage"
        }
      }, {
        path: "/supervision",
        name: "supervision",
        component: () => Promise.all(/*! import() | business */[__webpack_require__.e("vendors~business~home~resources"), __webpack_require__.e("vendors~business~home"), __webpack_require__.e("vendors~business"), __webpack_require__.e("business~home"), __webpack_require__.e("business")]).then(__webpack_require__.bind(null, /*! ../views/rollCallManage/supervision/index.vue */ "./src/views/rollCallManage/supervision/index.vue")),
        meta: {
          title: "督导点名",
          cache: true,
          platform: ["*"],
          hidden: true,
          activePath: "/rollCallManage"
        }
      }]
    });
  }
  console.log("======permissionList======", permissionList);
  return permissionList.filter(route => {
    // const sysUserInfo = JSON.parse(userInfo);
    return route.meta.platform.includes("*") || route.meta.platform.includes(platform);
    // 移除 !route.meta.hidden 条件，使得带有 hidden: true 的路由也能被注册
  });
};
function generateRoutes(platform, userInfo) {
  return [{
    path: "/",
    name: "layout",
    redirect: "/dispatch",
    component: () => Promise.all(/*! import() | home */[__webpack_require__.e("vendors~business~home~resources"), __webpack_require__.e("vendors~business~home"), __webpack_require__.e("vendors~home"), __webpack_require__.e("business~home"), __webpack_require__.e("home~resources"), __webpack_require__.e("home")]).then(__webpack_require__.bind(null, /*! ../views/layout/index.vue */ "./src/views/layout/index.vue")),
    children: routesInPermission(platform, userInfo),
    meta: {
      hidden: true
    }
  }];
}

/***/ }),

/***/ "./src/router/index.js":
/*!*****************************!*\
  !*** ./src/router/index.js ***!
  \*****************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");
/* harmony import */ var vue_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-router */ "./node_modules/vue-router/dist/vue-router.esm.js");



vue__WEBPACK_IMPORTED_MODULE_1__["default"].use(vue_router__WEBPACK_IMPORTED_MODULE_2__["default"]);
const originalPush = vue_router__WEBPACK_IMPORTED_MODULE_2__["default"].prototype.push;
vue_router__WEBPACK_IMPORTED_MODULE_2__["default"].prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err);
};
const router = new vue_router__WEBPACK_IMPORTED_MODULE_2__["default"]({
  mode: "hash",
  base: "",
  routes: []
});
/* harmony default export */ __webpack_exports__["default"] = (router);

/***/ }),

/***/ "./src/services/mqttService.js":
/*!*************************************!*\
  !*** ./src/services/mqttService.js ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _components_mqttClient_WebMqtt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/mqttClient/WebMqtt */ "./src/components/mqttClient/WebMqtt.js");
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! element-ui */ "./node_modules/element-ui/lib/element-ui.common.js");
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(element_ui__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _store_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/store/index */ "./src/store/index.js");






class MQTTService {
  constructor() {
    this.client = null;
    this.isInitialized = false;
    this.lat = 0;
    this.lon = 0;
    this.sendName = '';
  }

  /**
   * 初始化MQTT客户端
   * @param {Object} account - 账号信息
   */
  async initClient(account) {
    console.log('MQTTService initClient-----', account);

    // 如果已经初始化且客户端存在，直接返回
    // if (this.isInitialized && this.client) {
    //   return this.client;
    // }

    // 清理之前的客户端
    if (this.client) {
      this.client.destroy();
    }
    const {
      name,
      password,
      uid,
      id,
      createBy
    } = account;
    localStorage.setItem("bindingUserId", uid);
    try {
      this.client = new _components_mqttClient_WebMqtt__WEBPACK_IMPORTED_MODULE_3__["default"]({
        username: name,
        password,
        roomId: uid,
        mqttId: createBy
      });

      // 设置客户端事件监听
      this.setupClientEvents();
      this.isInitialized = true;
      return this.client;
    } catch (e) {
      console.error(e);
      element_ui__WEBPACK_IMPORTED_MODULE_4__["Message"].error(e);
      throw e;
    }
  }

  /**
  * 获取MQTT实例
  * @returns {Object} - 返回已初始化的MQTT实例
  */
  getMqttInstance() {
    if (!this.client) {
      throw new Error('MQTT实例未初始化');
    }
    return this.client;
  }
  /**
   * 设置客户端事件监听
   */
  setupClientEvents() {
    // 处理初始化事件
    this.client.on("init", () => {
      _store_index__WEBPACK_IMPORTED_MODULE_5__["default"].commit("showMessage", {
        message: '客户端已创建'
      });
    });

    // 处理错误事件
    this.client.on("error", error => {
      console.error(error);
      _store_index__WEBPACK_IMPORTED_MODULE_5__["default"].commit("showMessage", {
        message: error,
        type: "error"
      });
    });
    // 处理连接事件
    this.client.on("connect", message => {
      console.log('connect', message);
    });
    // 处理消息事件
    this.client.on("message", message => {
      console.log('message', message);
      this.handleMessage(message);
    });
  }

  /**
   * 处理MQTT消息
   * @param {Object} message - 消息对象
   */
  handleMessage({
    topic,
    response
  }) {
    console.log("MQTT message received:", topic, response);

    // 根据topic类型处理不同消息
    if (topic.includes("target/pc/qos0/msg")) {
      console.log("Online/offline status update:", response);
      if (response.remark === "Signal SOS") {
        this.lat = response.data.lat;
        this.lon = response.data.lon;
        this.sendName = response.data.sendName;
      }
    } else if (topic.includes("target/media/signal")) {
      // 媒体信令处理
      console.log("Media signal received");
      this.handleMediaSignal(response);
    } else {
      console.warn("Unknown MQTT topic:", topic);
    }
  }

  /**
   * 处理媒体信令
   * @param {Object} response - 响应数据
   */
  handleMediaSignal(response) {
    // 实现媒体信令处理逻辑
    const {
      from,
      data,
      cmd
    } = response;
    if (cmd === "report") {
      this.handleSOSReport({
        ...response,
        lat: this.lat,
        lon: this.lon,
        sendName: this.sendName
      });
    } else if (cmd === "bye") {
      this.handleSOSExit(from);
    } else if (from && data && data.action === 3) {
      this.updateMemberList(from);
    }

    // 延迟拉取视频
    setTimeout(() => {
      this.client.pullOnVideo(response);
    }, 1000);
  }

  /**
   * 处理SOS报告
   * @param {Object} response - 响应数据
   */
  handleSOSReport(response) {
    const yarman = {
      type: "2",
      callType: "dispatch",
      video: true,
      audio: true,
      isMutedAudio: false,
      isCallVideo: true
    };
    _store_index__WEBPACK_IMPORTED_MODULE_5__["default"].dispatch('setYardman', yarman);
    const event = new CustomEvent('sos-event', {
      detail: response
    });
    window.dispatchEvent(event);
  }

  /**
   * 处理SOS退出
   * @param {String} from - 用户ID
   */
  handleSOSExit(from) {
    console.log("退出SOS");
    // const videoElem = document.getElementById(`remote-video-${from}`);
    // if (videoElem) videoElem.remove();

    const event = new CustomEvent('sos-exit');
    window.dispatchEvent(event);
  }

  /**
   * 更新成员列表
   * @param {String} from - 用户ID
   */
  updateMemberList(from) {
    const memberList = _store_index__WEBPACK_IMPORTED_MODULE_5__["default"].state.memberList || [];
    const updatedMemberList = memberList.map(member => {
      if (member.dispatchUid.toString() === from.toString()) {
        member.handUp = true;
      }
      return member;
    });
    if (memberList.length > 0) {
      _store_index__WEBPACK_IMPORTED_MODULE_5__["default"].commit("SET_MEMBER_LIST", updatedMemberList);
    }
  }

  /**
   * 发布本地视频流
   * @param {Object} options - 选项
   * @param {Boolean} options.isAudio - 是否包含音频
   * @param {Boolean} options.isVideo - 是否包含视频
   */
  publishLocalVideo({
    isAudio,
    isVideo
  }) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.publishLocalVideo({
      isAudio,
      isVideo
    });
  }

  /**
   * 打开本地视频
   * @param {Object} options - 选项
   * @param {Boolean} options.isAudio - 是否包含音频
   * @param {Boolean} options.isVideo - 是否包含视频
   */
  openLocalVideo({
    isAudio,
    isVideo
  }) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.openLocalVideo({
      isAudio,
      isVideo
    });
  }

  /**
   * 关闭本地视频
   */
  closeLocalVideo() {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.closeLocalVideo();
  }

  /**
   * 离开会话
   * @param {Boolean} isCallVideo - 是否是视频通话
   * @param {String} toId - 目标用户ID
   */
  leave(isCallVideo, toId) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.leave(isCallVideo, toId);
  }

  /**
   * 邀请成员
   * @param {Object} options - 选项
   * @param {Boolean} options.audioonly - 是否仅音频
   * @param {Boolean} options.isCallVideo - 是否是视频通话
   * @param {String} options.toId - 目标用户ID
   */
  invite({
    audioonly,
    isCallVideo,
    toId
  }) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.invite({
      audioonly,
      isCallVideo,
      toId
    });
  }

  /**
   * 切换摄像头
   * @param {Object} options - 选项
   * @param {String} options.toId - 目标用户ID
   * @param {Boolean} options.isFront - 是否前置摄像头
   */
  switchCamera({
    toId,
    isFront
  }) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.switchCamera({
      toId,
      isFront
    });
  }

  /**
   * 静音本地音频
   */
  muteAudio() {
    var _this$client;
    if (!((_this$client = this.client) !== null && _this$client !== void 0 && _this$client.pushVideoObj)) {
      throw new Error('MQTT client or video object not initialized');
    }
    this.client.pushVideoObj.getLocalAudioEnabledTrack();
  }

  /**
   * 取消静音本地音频
   */
  unmuteAudio() {
    var _this$client2;
    if (!((_this$client2 = this.client) !== null && _this$client2 !== void 0 && _this$client2.pushVideoObj)) {
      throw new Error('MQTT client or video object not initialized');
    }
    this.client.pushVideoObj.getLocalAudioTrack();
  }

  /**
   * 关闭本地视频
   */
  muteVideo() {
    var _this$client3;
    if (!((_this$client3 = this.client) !== null && _this$client3 !== void 0 && _this$client3.pushVideoObj)) {
      throw new Error('MQTT client or video object not initialized');
    }
    this.client.pushVideoObj.getLocalCameraEnabledTrack();
  }

  /**
   * 开启本地视频
   */
  unmuteVideo() {
    var _this$client4;
    if (!((_this$client4 = this.client) !== null && _this$client4 !== void 0 && _this$client4.pushVideoObj)) {
      throw new Error('MQTT client or video object not initialized');
    }
    this.client.pushVideoObj.getLocalCameraTrack();
  }

  /**
   * 踢出成员
   * @param {Object} options - 选项
   * @param {String} options.toId - 目标用户ID
   */
  kickOut({
    toId
  }) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.kickOut({
      toId
    });
  }

  /**
   * 处理举手请求
   * @param {String} dispatchUid - 用户ID
   */
  handUpRemote(dispatchUid) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.publish({
      action: 5,
      toId: dispatchUid
    });
  }

  /**
   * 拉取远程视频
   * @param {String} id - 用户ID
   */
  pullRemoteVideo(id) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.pullRemoteVideo(id);
  }

  /**
   * 删除远程流
   * @param {String} id - 用户ID
   */
  deleteRemote(id) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.deleteRemote(id);
  }

  /**
   * 处理视频拉取请求
   * @param {Object} response - 响应数据
   */
  pullOnVideo(response) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.pullOnVideo(response);
  }

  /**
   * 发送麦克风控制
   * @param {Object} options - 选项
   * @param {String} options.toId - 目标用户ID
   */
  toSendMic({
    toId
  }) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.toSendMic({
      toId
    });
  }

  /**
   * 取消麦克风控制
   * @param {Object} options - 选项
   * @param {String} options.toId - 目标用户ID
   */
  toCancelMic({
    toId
  }) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.toCancelMic({
      toId
    });
  }

  /**
   * 添加事件监听
   * @param {String} eventName - 事件名称
   * @param {Function} callback - 回调函数
   */
  on(eventName, callback) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.on(eventName, callback);
  }

  /**
   * 移除事件监听
   * @param {String} eventName - 事件名称
   * @param {Function} callback - 回调函数
   */
  off(eventName, callback) {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.off(eventName, callback);
  }

  /**
   * 移除所有事件监听
   */
  removeAllListeners() {
    if (!this.client) {
      throw new Error('MQTT client not initialized');
    }
    this.client.off();
  }

  /**
   * 处理错误
   * @param {Error} error - 错误对象
   */
  handleError(error) {
    console.error('MQTT Service Error:', error);
    _store_index__WEBPACK_IMPORTED_MODULE_5__["default"].commit("showMessage", {
      message: error.message,
      type: "error"
    });

    // 触发错误事件
    if (this.client) {
      this.client.emit('error', error);
    }
  }
}

// 导出单例实例
/* harmony default export */ __webpack_exports__["default"] = (new MQTTService());

/***/ }),

/***/ "./src/store.js":
/*!**********************!*\
  !*** ./src/store.js ***!
  \**********************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.find.js */ "./node_modules/core-js/modules/es.iterator.find.js");
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_set_difference_v2_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.set.difference.v2.js */ "./node_modules/core-js/modules/es.set.difference.v2.js");
/* harmony import */ var core_js_modules_es_set_difference_v2_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_difference_v2_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_set_intersection_v2_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.set.intersection.v2.js */ "./node_modules/core-js/modules/es.set.intersection.v2.js");
/* harmony import */ var core_js_modules_es_set_intersection_v2_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_intersection_v2_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_set_is_disjoint_from_v2_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.set.is-disjoint-from.v2.js */ "./node_modules/core-js/modules/es.set.is-disjoint-from.v2.js");
/* harmony import */ var core_js_modules_es_set_is_disjoint_from_v2_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_is_disjoint_from_v2_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_set_is_subset_of_v2_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.set.is-subset-of.v2.js */ "./node_modules/core-js/modules/es.set.is-subset-of.v2.js");
/* harmony import */ var core_js_modules_es_set_is_subset_of_v2_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_is_subset_of_v2_js__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_set_is_superset_of_v2_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.set.is-superset-of.v2.js */ "./node_modules/core-js/modules/es.set.is-superset-of.v2.js");
/* harmony import */ var core_js_modules_es_set_is_superset_of_v2_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_is_superset_of_v2_js__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var core_js_modules_es_set_symmetric_difference_v2_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.set.symmetric-difference.v2.js */ "./node_modules/core-js/modules/es.set.symmetric-difference.v2.js");
/* harmony import */ var core_js_modules_es_set_symmetric_difference_v2_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_symmetric_difference_v2_js__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var core_js_modules_es_set_union_v2_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.set.union.v2.js */ "./node_modules/core-js/modules/es.set.union.v2.js");
/* harmony import */ var core_js_modules_es_set_union_v2_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_union_v2_js__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/web.url-search-params.delete.js */ "./node_modules/core-js/modules/web.url-search-params.delete.js");
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/web.url-search-params.has.js */ "./node_modules/core-js/modules/web.url-search-params.has.js");
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/web.url-search-params.size.js */ "./node_modules/core-js/modules/web.url-search-params.size.js");
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./wfc/client/connectionStatus */ "./src/wfc/client/connectionStatus.js");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");
/* harmony import */ var _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./wfc/client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./wfc/client/wfcEvent */ "./src/wfc/client/wfcEvent.js");
/* harmony import */ var _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./wfc/model/conversationType */ "./src/wfc/model/conversationType.js");
/* harmony import */ var _wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./wfc/util/longUtil */ "./src/wfc/util/longUtil.js");
/* harmony import */ var _ui_util_helper__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./ui/util/helper */ "./src/ui/util/helper.js");
/* harmony import */ var _vendor_pinyin__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./vendor/pinyin */ "./src/vendor/pinyin/lib/web-pinyin.js");
/* harmony import */ var _vendor_pinyin__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_vendor_pinyin__WEBPACK_IMPORTED_MODULE_23__);
/* harmony import */ var _wfc_model_groupType__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./wfc/model/groupType */ "./src/wfc/model/groupType.js");
/* harmony import */ var _ui_util_imageUtil__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ui/util/imageUtil */ "./src/ui/util/imageUtil.js");
/* harmony import */ var _wfc_messages_messageContentMediaType__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./wfc/messages/messageContentMediaType */ "./src/wfc/messages/messageContentMediaType.js");
/* harmony import */ var _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./wfc/model/conversation */ "./src/wfc/model/conversation.js");
/* harmony import */ var _wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./wfc/messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _wfc_messages_messageStatus__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./wfc/messages/messageStatus */ "./src/wfc/messages/messageStatus.js");
/* harmony import */ var _wfc_messages_message__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./wfc/messages/message */ "./src/wfc/messages/message.js");
/* harmony import */ var _wfc_messages_imageMessageContent__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./wfc/messages/imageMessageContent */ "./src/wfc/messages/imageMessageContent.js");
/* harmony import */ var _wfc_messages_videoMessageContent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./wfc/messages/videoMessageContent */ "./src/wfc/messages/videoMessageContent.js");
/* harmony import */ var _wfc_messages_fileMessageContent__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./wfc/messages/fileMessageContent */ "./src/wfc/messages/fileMessageContent.js");
/* harmony import */ var push_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! push.js */ "./node_modules/push.js/bin/push.min.js");
/* harmony import */ var push_js__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(push_js__WEBPACK_IMPORTED_MODULE_34__);
/* harmony import */ var _wfc_client_messageConfig__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./wfc/client/messageConfig */ "./src/wfc/client/messageConfig.js");
/* harmony import */ var _wfc_messages_persistFlag__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./wfc/messages/persistFlag */ "./src/wfc/messages/persistFlag.js");
/* harmony import */ var _ui_main_conversation_message_forward_ForwardType__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./ui/main/conversation/message/forward/ForwardType */ "./src/ui/main/conversation/message/forward/ForwardType.js");
/* harmony import */ var _wfc_messages_textMessageContent__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./wfc/messages/textMessageContent */ "./src/wfc/messages/textMessageContent.js");
/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./platform */ "./src/platform.js");
/* harmony import */ var _wfc_model_searchType__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./wfc/model/searchType */ "./src/wfc/model/searchType.js");
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./config */ "./src/config.js");
/* harmony import */ var _ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./ui/util/storageHelper */ "./src/ui/util/storageHelper.js");
/* harmony import */ var _wfc_messages_compositeMessageContent__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./wfc/messages/compositeMessageContent */ "./src/wfc/messages/compositeMessageContent.js");
/* harmony import */ var _wfc_messages_notification_dismissGroupNotification__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./wfc/messages/notification/dismissGroupNotification */ "./src/wfc/messages/notification/dismissGroupNotification.js");
/* harmony import */ var _wfc_messages_notification_kickoffGroupMemberNotification__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./wfc/messages/notification/kickoffGroupMemberNotification */ "./src/wfc/messages/notification/kickoffGroupMemberNotification.js");
/* harmony import */ var _wfc_messages_notification_quitGroupNotification__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./wfc/messages/notification/quitGroupNotification */ "./src/wfc/messages/notification/quitGroupNotification.js");
/* harmony import */ var _wfc_av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./wfc/av/engine/avenginekitproxy */ "./src/wfc/av/engine/avenginekitproxy.js");
/* harmony import */ var _wfc_messages_mediaMessageContent__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./wfc/messages/mediaMessageContent */ "./src/wfc/messages/mediaMessageContent.js");
/* harmony import */ var _wfc_model_unreadCount__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./wfc/model/unreadCount */ "./src/wfc/model/unreadCount.js");
/* harmony import */ var _wfc_messages_leaveChannelChatMessageContent__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./wfc/messages/leaveChannelChatMessageContent */ "./src/wfc/messages/leaveChannelChatMessageContent.js");
/* harmony import */ var _wfc_messages_enterChannelChatMessageContent__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./wfc/messages/enterChannelChatMessageContent */ "./src/wfc/messages/enterChannelChatMessageContent.js");
/* harmony import */ var _wfc_messages_articlesMessageContent__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./wfc/messages/articlesMessageContent */ "./src/wfc/messages/articlesMessageContent.js");
/* harmony import */ var _wfc_model_nullUserInfo__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./wfc/model/nullUserInfo */ "./src/wfc/model/nullUserInfo.js");
/* harmony import */ var _wfc_model_nullGroupInfo__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./wfc/model/nullGroupInfo */ "./src/wfc/model/nullGroupInfo.js");
/* harmony import */ var _wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! @/wfc/ipcEventType */ "./src/wfc/ipcEventType.js");
/* harmony import */ var _wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_55___default = /*#__PURE__*/__webpack_require__.n(_wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_55__);
/* harmony import */ var _wfc_model_NullChannelInfo__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./wfc/model/NullChannelInfo */ "./src/wfc/model/NullChannelInfo.js");
/* harmony import */ var _wfc_messages_notification_modifyGroupSettingNotification__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./wfc/messages/notification/modifyGroupSettingNotification */ "./src/wfc/messages/notification/modifyGroupSettingNotification.js");
























































// import { genGroupPortrait } from "./ui/util/imageUtil";




/**
 * 一些说明
 * _开头的字段，是为了UI层展示方便，而打补丁上出去的
 * __开头的字段，仅内部使用
 * _开头的函数，是内部函数
 * 外部不直接更新字段，而是通过提供各种action方法更新
 */
let store = {
  debug: true,
  state: {
    conversation: {
      _wfc: _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"],
      currentConversationInfo: null,
      conversationInfoList: [],
      currentConversationMessageList: [],
      currentConversationOldestMessageId: 0,
      currentConversationOldestMessageUid: 0,
      currentConversationRead: null,
      // TODO 调用setUserEnableReceipt时，需要更新
      isMessageReceiptEnable: false,
      inputtingUser: null,
      inputClearHandler: null,
      shouldAutoScrollToBottom: true,
      previewMediaItems: [],
      previewMediaIndex: null,
      enableMessageMultiSelection: false,
      showChannelMenu: false,
      quotedMessage: null,
      // 为什么不用 map？
      // map 里面的元素并不是 reactive 的
      downloadingMessages: [],
      sendingMessages: [],
      floatingConversations: [],
      currentVoiceMessage: null,
      contextMenuConversationInfo: null,
      _reset() {
        this.currentConversationInfo = null;
        this.conversationInfoList = [];
        this.currentConversationMessageList = [];
        this.currentConversationOldestMessageId = 0;
        this.currentConversationOldestMessageUid = 0;
        this.currentConversationRead = null;
        this.isMessageReceiptEnable = false;
        this.inputtingUser = null;
        this.inputClearHandler = null;
        this.shouldAutoScrollToBottom = true;
        this.previewMediaItems = [];
        this.previewMediaIndex = null;
        this.enableMessageMultiSelection = false;
        this.showChannelMenu = false;
        this.quotedMessage = null;
        this.downloadingMessages = [];
        this.sendingMessages = [];
        this.floatingConversations = [];
        this.currentVoiceMessage = null;
        this.contextMenuConversationInfo = null;
      }
    },
    contact: {
      currentFriendRequest: null,
      currentGroup: null,
      currentChannel: null,
      currentFriend: null,
      currentOrganization: null,
      currentUser: null,
      expandFriendRequestList: false,
      expandFriendList: true,
      expandGroup: false,
      expandChanel: false,
      expandOrganization: false,
      unreadFriendRequestCount: 0,
      friendList: [],
      friendRequestList: [],
      favGroupList: [],
      channelList: [],
      organizationList: [],
      favContactList: [],
      selfUserInfo: null,
      contextMenuUserInfo: null,
      _reset() {
        this.currentFriendRequest = null;
        this.currentGroup = null;
        this.currentChannel = null;
        this.currentFriend = null;
        this.currentOrganization = null;
        this.currentUser = null;
        this.expandFriendRequestList = false;
        this.expandFriendList = true;
        this.expandGroup = false;
        this.expandChanel = false;
        this.unreadFriendRequestCount = 0;
        this.friendList = [];
        this.friendRequestList = [];
        this.favGroupList = [];
        this.channelList = [];
        this.organizationList = [];
        this.favContactList = [];
        this.selfUserInfo = null;
        this.contextMenuUserInfo = null;
      }
    },
    search: {
      query: null,
      show: false,
      userSearchResult: [],
      channelSearchResult: [],
      contactSearchResult: [],
      groupSearchResult: [],
      conversationSearchResult: [],
      messageSearchResult: [],
      _reset() {
        this.query = null;
        this.show = false;
        this.userSearchResult = [];
        this.channelSearchResult = [];
        this.contactSearchResult = [];
        this.groupSearchResult = [];
        this.conversationSearchResult = [];
        this.messageSearchResult = [];
      }
    },
    pick: {
      users: [],
      organizations: [],
      conversations: [],
      messages: [],
      _reset() {
        this.users = [];
        this.organizations = [];
        this.conversations = [];
        this.messages = [];
      }
    },
    misc: {
      connectionStatus: _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusUnconnected,
      isPageHidden: false,
      enableNotification: true,
      enableMinimize: Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["getItem"])("minimizable") === "1",
      enableNotificationMessageDetail: true,
      enableCloseWindowToExit: false,
      enableAutoLogin: true,
      // 自动登录
      isElectron: Object(_platform__WEBPACK_IMPORTED_MODULE_39__["isElectron"])(),
      isElectronWindowsOrLinux: process && (process.platform === "win32" || process.platform === "linux"),
      isMainWindow: false,
      linuxUpdateTitleInterval: 0,
      wfc: _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"],
      config: _config__WEBPACK_IMPORTED_MODULE_41__["default"],
      userOnlineStateMap: new Map(),
      enableOpenWorkSpace: !!_config__WEBPACK_IMPORTED_MODULE_41__["default"].OPEN_PLATFORM_WORK_SPACE_URL,
      _reset() {
        this.connectionStatus = _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusUnconnected;
        this.isPageHidden = false;
        this.enableNotification = true;
        this.enableMinimize = Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["getItem"])("minimizable") === "1";
        this.enableNotificationMessageDetail = true;
        this.enableCloseWindowToExit = false;
        this.enableAutoLogin = false;
        this.isElectron = Object(_platform__WEBPACK_IMPORTED_MODULE_39__["isElectron"])();
        this.isElectronWindowsOrLinux = process && (process.platform === "win32" || process.platform === "linux");
        // this.isMainWindow = false;
        this.linuxUpdateTitleInterval = 0;
        this.wfc = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"];
        this.config = _config__WEBPACK_IMPORTED_MODULE_41__["default"];
        this.userOnlineStateMap = new Map();
      }
    }
  },
  init(isMainWindow, subWindowLoadDataOptions) {
    console.log("init store");
    miscState.connectionStatus = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConnectionStatus();
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].ConnectionStatusChanged, status => {
      console.log("store ConnectionStatusChanged", status);
      miscState.connectionStatus = status;
      try {
        if (status === _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusConnected) {
          this._loadDefaultData();
          this.updateTray();
        } else if (status === _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusLogout || status === _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusRejected || status === _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusSecretKeyMismatch || status === _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusKickedOff || status === _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusTokenIncorrect) {
          _reset();
          this.updateTray();
        }
      } catch (e) {
        // do nothing
      }
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].UserInfosUpdate, userInfos => {
      console.log("store UserInfosUpdate", userInfos, miscState.connectionStatus);
      this._reloadSingleConversationIfExist(userInfos);
      // TODO optimize
      this._patchCurrentConversationMessages();
      this._loadFriendList();
      this._loadFriendRequest();
      this._loadSelfUserInfo();
      // TODO 其他相关逻辑
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].SettingUpdate, () => {
      console.log("store SettingUpdate");
      this._loadDefaultConversationList();
      this._loadFavContactList();
      this._loadFavGroupList();
      this._loadChannelList();
      this.updateTray();
      // 清除远程消息时，WEB SDK会同时触发ConversationInfoUpdate 和 setting更新，但PC SDK不会，只会触发setting更新
      // if (isElectron()) {
      //     this._loadCurrentConversationMessages();
      // }
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].FriendRequestUpdate, newFrs => {
      console.log(newFrs);
      this._loadFriendRequest();
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].FriendListUpdate, updatedFriendIds => {
      console.log("FriendListUpdate", updatedFriendIds);
      this._loadFriendList();
      this._loadFriendRequest();
      this._loadFavContactList();
      this._loadDefaultConversationList();
      this._patchCurrentConversationMessages();
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].GroupInfosUpdate, groupInfos => {
      // TODO optimize
      console.log("store GroupInfosUpdate", groupInfos);
      this._reloadGroupConversationIfExist(groupInfos);
      this._loadFavGroupList();
      // TODO 其他相关逻辑
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].GroupMembersUpdate, (groupId, members) => {
      // TODO optimize
      console.log("store GroupMembersUpdate", groupId, members);
      this._reloadGroupConversationIfExist([new _wfc_model_nullGroupInfo__WEBPACK_IMPORTED_MODULE_54__["default"](groupId)]);
      // this._loadFavGroupList();
      // TODO 其他相关逻辑
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].ChannelInfosUpdate, groupInfos => {
      console.log(groupInfos);
      this._loadDefaultConversationList();
      this._loadChannelList();
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].ConversationInfoUpdate, conversationInfo => {
      this._reloadConversation(conversationInfo.conversation);
      // if (conversationState.currentConversationInfo && conversationState.currentConversationInfo.conversation.equal(conversationInfo.conversation)) {
      //     this._loadCurrentConversationMessages();
      // }
      // 标记已读未读
      this.updateTray();
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].ReceiveMessage, (msg, hasMore) => {
      if (miscState.connectionStatus === _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusReceiveing) {
        return;
      }
      if (miscState.isMainWindow && !this.isConversationInCurrentWindow(msg.conversation)) {
        return;
      }
      if (!hasMore) {
        this._reloadConversation(msg.conversation);
      }
      if (conversationState.currentConversationInfo && msg.conversation.equal(conversationState.currentConversationInfo.conversation)) {
        if (msg.messageContent instanceof _wfc_messages_notification_dismissGroupNotification__WEBPACK_IMPORTED_MODULE_44__["default"] || msg.messageContent instanceof _wfc_messages_notification_kickoffGroupMemberNotification__WEBPACK_IMPORTED_MODULE_45__["default"] && msg.messageContent.kickedMembers.indexOf(_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserId()) >= 0 || msg.messageContent instanceof _wfc_messages_notification_quitGroupNotification__WEBPACK_IMPORTED_MODULE_46__["default"] && msg.messageContent.operator === _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserId()) {
          this.setCurrentConversationInfo(null);
          return;
        }
        if (msg.messageContent.type === _wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_28__["default"].Typing) {
          let groupId = msg.conversation.type === 1 ? msg.conversation.target : "";
          let userInfo = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfo(msg.from, false, groupId);
          userInfo = Object.assign({}, userInfo);
          userInfo._displayName = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getGroupMemberDisplayNameEx(userInfo);
          conversationState.inputtingUser = userInfo;
          if (!conversationState.inputClearHandler) {
            conversationState.inputClearHandler = () => {
              conversationState.inputtingUser = null;
            };
          }
          clearTimeout(conversationState.inputClearHandler);
          setTimeout(conversationState.inputClearHandler, 3000);
        } else {
          clearTimeout(conversationState.inputClearHandler);
          conversationState.inputtingUser = null;
        }
        if (!this._isDisplayMessage(msg) || msg.messageContent.type === _wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_28__["default"].RecallMessage_Notification) {
          return;
        }

        // 会把下来加载更多加载的历史消息给清理了
        let lastTimestamp = 0;
        let msgListLength = conversationState.currentConversationMessageList.length;
        if (msgListLength > 0) {
          lastTimestamp = conversationState.currentConversationMessageList[msgListLength - 1].timestamp;
        }
        this._patchMessage(msg, lastTimestamp);
        let msgIndex = conversationState.currentConversationMessageList.findIndex(m => {
          return m.messageId === msg.messageId || Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["gt"])(m.messageUid, 0) && Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["eq"])(m.messageUid, msg.messageUid);
        });
        if (msgIndex > -1) {
          // FYI: https://v2.vuejs.org/v2/guide/reactivity#Change-Detection-Caveats
          conversationState.currentConversationMessageList.splice(msgIndex, 1, msg);
          console.log("msg duplicate");
          return;
        }
        conversationState.currentConversationMessageList.push(msg);
      }
      if (miscState.isMainWindow && this.isConversationInCurrentWindow(msg.conversation)) {
        if (msg.conversation.type !== 2 && miscState.isPageHidden && (miscState.enableNotification || msg.status === _wfc_messages_messageStatus__WEBPACK_IMPORTED_MODULE_29__["default"].AllMentioned || msg.status === _wfc_messages_messageStatus__WEBPACK_IMPORTED_MODULE_29__["default"].Mentioned)) {
          this.notify(msg);
        }
        this.updateTray();
      }
      if (msg.messageContent instanceof _wfc_messages_notification_modifyGroupSettingNotification__WEBPACK_IMPORTED_MODULE_57__["default"]) {
        _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getGroupInfo(msg.messageContent.groupId, true);
      }
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].RecallMessage, (operator, messageUid) => {
      this._reloadConversationByMessageUidIfExist(messageUid);
      if (conversationState.currentConversationInfo) {
        let msg = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMessageByUid(messageUid);
        if (msg && msg.conversation.equal(conversationState.currentConversationInfo.conversation)) {
          if (conversationState.currentConversationMessageList) {
            let lastTimestamp = 0;
            conversationState.currentConversationMessageList = conversationState.currentConversationMessageList.map(msg => {
              if (Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["eq"])(msg.messageUid, messageUid)) {
                let newMsg = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMessageByUid(messageUid);
                this._patchMessage(newMsg, lastTimestamp);
                return newMsg;
              }
              lastTimestamp = msg.timestamp;
              return msg;
            });
          }
        }
      }
      this.updateTray();
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].UserOnlineEvent, userOnlineStatus => {
      userOnlineStatus.forEach(e => {
        miscState.userOnlineStateMap.set(e.userId, e);
      });
      // 更新在线状态
      contactState.friendList = this._patchAndSortUserInfos(contactState.friendList, "");
    });
    // 服务端删除
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].MessageDeleted, messageUid => {
      this._reloadConversationByMessageUidIfExist(messageUid);
      if (conversationState.currentConversationInfo) {
        if (conversationState.currentConversationMessageList) {
          conversationState.currentConversationMessageList = conversationState.currentConversationMessageList.filter(msg => !Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["eq"])(msg.messageUid, messageUid));
        }
      }
      this.updateTray();
    });
    // 本地删除
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].DeleteMessage, messageId => {
      this._reloadConversationByMessageIdIfExist(messageId);
      if (conversationState.currentConversationInfo) {
        if (conversationState.currentConversationMessageList) {
          conversationState.currentConversationMessageList = conversationState.currentConversationMessageList.filter(msg => msg.messageId !== messageId);
        }
      }
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].SecretChatMessageBurned, (target, playedMessageId) => {
      // todo 倒计时等
      console.log(target, playedMessageId);
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].SecretChatMessageBurned, messageIds => {
      this._loadDefaultConversationList();
      if (conversationState.currentConversationInfo) {
        if (conversationState.currentConversationMessageList) {
          conversationState.currentConversationMessageList = conversationState.currentConversationMessageList.filter(msg => messageIds.indexOf(msg.messageId) < 0);
        }
      }
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].SecretChatStateChange, targetId => {
      console.log(targetId);
      this._loadDefaultConversationList();
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].SendMessage, message => {
      // 删除频道，或者从频道会话切到其他会话时，会发送一条离开频道的消息
      if (message.messageContent instanceof _wfc_messages_leaveChannelChatMessageContent__WEBPACK_IMPORTED_MODULE_50__["default"]) {
        return;
      }
      this._reloadConversation(message.conversation);
      if (!this._isDisplayMessage(message)) {
        return;
      }
      if (!conversationState.currentConversationInfo || !message.conversation.equal(conversationState.currentConversationInfo.conversation)) {
        console.log("not current conv");
        return;
      }
      let index = conversationState.currentConversationMessageList.findIndex(m => m.messageId === message.messageId);
      if (index !== -1) {
        return;
      }
      let length = conversationState.currentConversationMessageList.length;
      let lastTimestamp = 0;
      if (length > 0) {
        let lastMessage = conversationState.currentConversationMessageList[length - 1];
        lastTimestamp = lastMessage.timestamp;
      }
      this._patchMessage(message, lastTimestamp);
      conversationState.currentConversationMessageList.push(message);
      const defaultRenderMessageCount = 50;
      if (conversationState.currentConversationMessageList.length > defaultRenderMessageCount) {
        conversationState.currentConversationMessageList = conversationState.currentConversationMessageList.slice(conversationState.currentConversationMessageList.length - defaultRenderMessageCount);
      }
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].MessageStatusUpdate, message => {
      console.log("message status update", message);
      if (!this._isDisplayMessage(message)) {
        return;
      }
      if (!conversationState.currentConversationInfo || !message.conversation.equal(conversationState.currentConversationInfo.conversation)) {
        console.log("not current conv");
        return;
      }
      let index = conversationState.currentConversationMessageList.findIndex(m => m.messageId === message.messageId);
      if (index < 0) {
        return;
      }
      let msg = conversationState.currentConversationMessageList[index];
      Object.assign(msg, message);
      if (conversationState.currentConversationInfo.lastMessage && conversationState.currentConversationInfo.lastMessage.messageId === message.messageId) {
        Object.assign(conversationState.currentConversationInfo.lastMessage, message);
      }
    });
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].eventEmitter.on(_wfc_client_wfcEvent__WEBPACK_IMPORTED_MODULE_19__["default"].MessageRead, readEntries => {
      console.log(readEntries);
      // optimization
      if (conversationState.currentConversationInfo) {
        // wfc.getConversationRead 每次返回同一个对象，只是该对象的值不一样。
        // 由于 VUE 不能检测到初始化时，不存在的属性的变更，故此处重新 new 一个新的对象，并赋值。
        // FYI:https://vuejs.org/v2/guide/reactivity.html
        conversationState.currentConversationRead = new Map(_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConversationRead(conversationState.currentConversationInfo.conversation));
      }
    });
    _wfc_av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_47__["default"].onVoipCallStatusCallback = this.updateVoipStatus;
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_39__["isElectron"])()) {
      if (isMainWindow) {
        _platform__WEBPACK_IMPORTED_MODULE_39__["ipcRenderer"].on("deep-link", (event, args) => {
          console.log("deep-link", args);
          // 下面是示例
          // 可以根据 pathname 和 query parameter 进行相应的逻辑处理，这儿是跳转到对应的会话
          let url = new URL(args);
          let pathname = url.pathname;
          let searchParams = url.searchParams;
          if ("//conversation" === pathname) {
            let target = searchParams.get("target");
            let line = Number(searchParams.get("line"));
            let type = Number(searchParams.get("type"));
            let conversation = new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_27__["default"](type, target, line);
            this.setCurrentConversation(conversation);
          }
        });
        _platform__WEBPACK_IMPORTED_MODULE_39__["ipcRenderer"].on("floating-conversation-window-closed", (event, args) => {
          let type = args.type;
          let target = args.target;
          let line = args.line;
          let conv = new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_27__["default"](type, target, line);
          this.removeFloatingConversation(conv);
          this._reloadConversation(conv);
        });
      }
      _platform__WEBPACK_IMPORTED_MODULE_39__["ipcRenderer"].on("file-downloaded", (event, args) => {
        let messageId = args.messageId;
        let localPath = args.filePath;
        console.log("file-downloaded", args);
        conversationState.downloadingMessages = conversationState.downloadingMessages.filter(v => v.messageId !== messageId);
        let msg = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMessageById(messageId);
        if (msg) {
          msg.messageContent.localPath = localPath;
          _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].updateMessageContent(messageId, msg.messageContent);
          conversationState.currentConversationMessageList.forEach(m => {
            if (m.messageId === messageId) {
              m.messageContent = msg.messageContent;
            }
          });
        }
      });
      _platform__WEBPACK_IMPORTED_MODULE_39__["ipcRenderer"].on("file-download-failed", (event, args) => {
        let messageId = args.messageId;
        conversationState.downloadingMessages = conversationState.downloadingMessages.filter(v => v.messageId !== messageId);
        // TODO 其他下载失败处理
      });
      _platform__WEBPACK_IMPORTED_MODULE_39__["ipcRenderer"].on("file-download-progress", (event, args) => {
        let messageId = args.messageId;
        let receivedBytes = args.receivedBytes;
        let totalBytes = args.totalBytes;
        let dm = conversationState.downloadingMessages.find(dm => dm.messageId === messageId);
        if (dm) {
          dm.progress = receivedBytes;
          dm.total = totalBytes;
        }
        // console.log('file download progress', messageId, receivedBytes, totalBytes);
      });
      miscState.subWindowLoadDataOptions = subWindowLoadDataOptions ? subWindowLoadDataOptions : {};
      if (!isMainWindow && _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConnectionStatus() === _wfc_client_connectionStatus__WEBPACK_IMPORTED_MODULE_16__["default"].ConnectionStatusConnected) {
        // 根据 subWindowLoadDataOptions 配置去加载
        this._loadDefaultData();
      }
      window.__wfc = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"];
    }
    miscState.isMainWindow = isMainWindow;
    window.__cw = _platform__WEBPACK_IMPORTED_MODULE_39__["currentWindow"];
  },
  _loadDefaultData() {
    this._loadFavGroupList();
    this._loadChannelList();
    this._loadFriendList();
    this._loadFavContactList();
    this._loadFriendRequest();
    this._loadSelfUserInfo();
    this._loadDefaultConversationList();
    this._loadUserLocalSettings();
    conversationState.isMessageReceiptEnable = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].isReceiptEnabled() && _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].isUserReceiptEnabled();
    // if (conversationState.currentConversationInfo) {
    //     this._loadCurrentConversationMessages();
    // }
  },
  // conversation actions

  _isDisplayMessage(message) {
    // return [PersistFlag.Persist, PersistFlag.Persist_And_Count].indexOf(MessageConfig.getMessageContentPersitFlag(message.messageContent.type)) > -1;
    return message.messageId !== 0;
  },
  _loadDefaultConversationList() {
    console.log("store _loadDefaultConversationList");
    let conversationTypes = Object(_platform__WEBPACK_IMPORTED_MODULE_39__["isElectron"])() ? [0, 1, 3, 5] : [0, 1, 3];
    this._loadConversationList(conversationTypes, [0]);
  },
  _loadConversationList(conversationType = [0, 1, 3], lines = [0]) {
    let conversationList = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConversationList(conversationType, lines);
    console.log("conversationList", conversationList);
    let toLoadUserIdSet = new Set();
    let toLoadGroupIds = [];
    conversationList.forEach(info => {
      if (info.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single) {
        toLoadUserIdSet.add(info.conversation.target);
        if (info.lastMessage && info.lastMessage.from) {
          toLoadUserIdSet.add(info.lastMessage.from);
        }
      } else if (info.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Group) {
        toLoadGroupIds.push(info.conversation.target);
        if (info.lastMessage && info.lastMessage.from) {
          toLoadUserIdSet.add(info.lastMessage.from);
        }
      }
    });
    let userInfoMap = new Map();
    let groupInfoMap = new Map();
    toLoadUserIdSet.forEach(uid => {
      userInfoMap.set(uid, new _wfc_model_nullUserInfo__WEBPACK_IMPORTED_MODULE_53__["default"](uid));
    });
    toLoadGroupIds.forEach(gid => {
      groupInfoMap.set(gid, new _wfc_model_nullGroupInfo__WEBPACK_IMPORTED_MODULE_54__["default"](gid));
    });
    console.log("to load userIds", [...toLoadUserIdSet]);
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfos([...toLoadUserIdSet]).forEach(u => {
      userInfoMap.set(u.uid, u);
    });
    console.log("to load groupIds", toLoadGroupIds);
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getGroupInfos(toLoadGroupIds).forEach(g => {
      groupInfoMap.set(g.target, g);
    });
    conversationList.forEach(info => {
      this._patchConversationInfo(info, true, userInfoMap, groupInfoMap);
      // side affect
      if (conversationState.currentConversationInfo && conversationState.currentConversationInfo.conversation.equal(info.conversation)) {
        conversationState.currentConversationInfo = info;
        this._patchCurrentConversationOnlineStatus();
      }
    });
    conversationState.conversationInfoList = conversationList;
  },
  _reloadConversation(conversation, insertIfNoExist = true) {
    let conversationInfo = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConversationInfo(conversation);
    if (conversationInfo) {
      conversationInfo = this._patchConversationInfo(conversationInfo);
    }
    let index = conversationState.conversationInfoList.findIndex(info => info.conversation.equal(conversation));
    if (index >= 0) {
      Object.assign(conversationState.conversationInfoList[index], conversationInfo);
    } else {
      if (insertIfNoExist && conversation.type !== _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].ChatRoom) {
        conversationState.conversationInfoList.push(conversationInfo);
      } else {
        return conversationInfo;
      }
    }
    if (conversationState.currentConversationInfo && conversationState.currentConversationInfo.conversation.equal(conversation)) {
      conversationState.currentConversationInfo = conversationInfo;
      // 清除聊天记录
      if (!conversationInfo.lastMessage) {
        conversationState.currentConversationMessageList = [];
      }
    }

    // sort
    conversationState.conversationInfoList.sort((a, b) => {
      if (a.top && b.top || !a.top && !b.top) {
        return Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["gt"])(a.timestamp, b.timestamp) ? -1 : 1;
      } else {
        if (a.top) {
          return -1;
        } else {
          return 1;
        }
      }
    });
    return conversationInfo;
  },
  _reloadSingleConversationIfExist(userInfos) {
    if (userInfos.length > 10) {
      this._loadDefaultConversationList();
    } else {
      userInfos.forEach(ui => {
        let conv = new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_27__["default"](_wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single, ui.uid, 0);
        this._reloadConversation(conv, false);
      });
    }
  },
  _reloadGroupConversationIfExist(groupInfos) {
    if (groupInfos.length > 10) {
      this._loadDefaultConversationList();
    } else {
      groupInfos.forEach(gi => {
        let conv = new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_27__["default"](_wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Group, gi.target, 0);
        this._reloadConversation(conv, false);
      });
    }
  },
  _reloadConversationByMessageIdIfExist(messageId) {
    if (messageId === 0) {
      return;
    }
    let toLoadConversationInfo = null;
    for (let i = 0; i < conversationState.conversationInfoList.length; i++) {
      let info = conversationState.conversationInfoList[i];
      if (info.lastMessage && info.lastMessage.messageId === messageId) {
        toLoadConversationInfo = info;
        break;
      }
    }
    if (toLoadConversationInfo) {
      this._reloadConversation(toLoadConversationInfo.conversation);
    }
  },
  _reloadConversationByMessageUidIfExist(messageUid) {
    let toLoadConversationInfo = null;
    for (let i = 0; i < conversationState.conversationInfoList.length; i++) {
      let info = conversationState.conversationInfoList[i];
      if (info.lastMessage && Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["eq"])(info.lastMessage.messageUid, messageUid)) {
        toLoadConversationInfo = info;
        break;
      }
    }
    if (toLoadConversationInfo) {
      this._reloadConversation(toLoadConversationInfo.conversation);
    }
  },
  setCurrentConversation(conversation) {
    if (!conversation) {
      this.setCurrentConversationInfo(null);
      return;
    }
    if (conversationState.currentConversationInfo && conversation.equal(conversationState.currentConversationInfo.conversation)) {
      return;
    }
    let convs = conversationState.conversationInfoList.filter(info => info.conversation.equal(conversation));
    let info;
    if (convs && convs.length > 0) {
      info = convs[0];
    } else {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].setConversationTimestamp(conversation, new Date().getTime());
      info = this._reloadConversation(conversation);
    }
    this.setCurrentConversationInfo(info);
  },
  setCurrentConversationInfo(conversationInfo) {
    if (!conversationInfo) {
      if (conversationState.currentConversationInfo) {
        let conversation = conversationState.currentConversationInfo.conversation;
        _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].unwatchOnlineState(conversation.type, [conversation.target]);
        if (conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Channel) {
          let content = new _wfc_messages_leaveChannelChatMessageContent__WEBPACK_IMPORTED_MODULE_50__["default"]();
          _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].sendConversationMessage(conversation, content);
        }
      }
      conversationState.currentConversationInfo = null;
      conversationState.shouldAutoScrollToBottom = false;
      conversationState.currentConversationMessageList.length = 0;
      conversationState.currentConversationOldestMessageId = 0;
      conversationState.currentConversationOldestMessageUid = 0;
      conversationState.currentConversationRead = null;
      conversationState.enableMessageMultiSelection = false;
      conversationState.showChannelMenu = false;
      return;
    }
    if (conversationState.currentConversationInfo && conversationState.currentConversationInfo.conversation.equal(conversationInfo.conversation)) {
      return;
    }
    let conversation = conversationInfo.conversation;
    if (conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Group || conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single && !_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].isMyFriend(conversation.target)) {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].watchOnlineState(conversation.type, [conversation.target], 1000, states => {
        states.forEach(e => {
          miscState.userOnlineStateMap.set(e.userId, e);
        });
        this._patchCurrentConversationOnlineStatus();
      }, err => {
        console.log("watchOnlineState error", err);
      });
    }
    if (conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Channel) {
      let content = new _wfc_messages_enterChannelChatMessageContent__WEBPACK_IMPORTED_MODULE_51__["default"]();
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].sendConversationMessage(conversation, content);
    }
    conversationState.currentConversationInfo = conversationInfo;
    conversationState.shouldAutoScrollToBottom = true;
    conversationState.currentConversationMessageList.length = 0;
    conversationState.currentConversationOldestMessageId = 0;
    conversationState.currentConversationOldestMessageUid = 0;
    // 会话页面会触发调用 loadConversationHistoryMessages，这儿不用提前加载消息
    // this._loadCurrentConversationMessages();
    this._patchCurrentConversationOnlineStatus();
    conversationState.currentConversationRead = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConversationRead(conversationInfo.conversation);
    conversationState.enableMessageMultiSelection = false;
    conversationState.showChannelMenu = false;
    if (conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Channel) {
      let channelInfo = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getChannelInfo(conversation.target, true);
      if (channelInfo.menus && channelInfo.menus.length > 0) {
        conversationState.showChannelMenu = true;
      }
    } else if (conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Group) {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getGroupInfo(conversation.target, true);
    } else if (conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single) {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfo(conversation.target, true);
    }
    conversationState.quotedMessage = null;
    conversationState.currentVoiceMessage = null;
    clearTimeout(conversationState.inputClearHandler);
    conversationState.inputtingUser = null;
    pickState.messages.length = 0;
  },
  quitGroup(groupId) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].quitGroup(groupId, [0], null, () => {
      this.setCurrentConversationInfo(null);
    }, err => {
      console.log("quit group error", err);
    });
  },
  dismissGroup(groupId) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].dismissGroup(groupId, [0], null, () => {
      this.setCurrentConversationInfo(null);
    }, err => {
      console.log("dismiss group error", err);
    });
  },
  subscribeChannel(channelId, subscribe) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].listenChannel(channelId, subscribe, () => {
      //this.setCurrentConversationInfo(null)
    }, err => {
      console.log("unsubscribe channel error", err);
    });
  },
  toggleMessageMultiSelection(message) {
    conversationState.enableMessageMultiSelection = !conversationState.enableMessageMultiSelection;
    pickState.messages.length = 0;
    if (conversationState.enableMessageMultiSelection && message) {
      pickState.messages.push(message);
    }
  },
  toggleChannelMenu(toggle) {
    conversationState.showChannelMenu = toggle;
  },
  selectOrDeselectMessage(message) {
    let index = pickState.messages.findIndex(m => m.messageId === message.messageId);
    if (index >= 0) {
      pickState.messages.splice(index, 1);
    } else {
      pickState.messages.push(message);
    }
  },
  deleteSelectedMessages() {
    conversationState.enableMessageMultiSelection = false;
    if (pickState.messages.length < 1) {
      return;
    }
    pickState.messages.sort((m1, m2) => m1.messageId - m2.messageId);
    pickState.messages.forEach(m => {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].deleteMessage(m.messageId);
    });
    pickState.messages.length = 0;
  },
  forwardMessage(forwardType, targetConversations, messages, extraMessageText, successCB) {
    // web 端，避免撤回消息等操作，影响组合消息
    if (!Object(_platform__WEBPACK_IMPORTED_MODULE_39__["isElectron"])()) {
      messages = messages.map(m => Object.assign({}, m));
    }
    targetConversations.forEach(conversation => {
      // let msg =new Message(conversation, message.messageContent)
      // wfc.sendMessage(msg)
      // 或者下面这种
      if (forwardType === _ui_main_conversation_message_forward_ForwardType__WEBPACK_IMPORTED_MODULE_37__["default"].NORMAL || forwardType === _ui_main_conversation_message_forward_ForwardType__WEBPACK_IMPORTED_MODULE_37__["default"].ONE_BY_ONE) {
        messages.forEach(message => {
          if (message.messageContent instanceof _wfc_messages_articlesMessageContent__WEBPACK_IMPORTED_MODULE_52__["default"]) {
            let linkContents = message.messageContent.toLinkMessageContent();
            linkContents.forEach(lm => {
              _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].sendConversationMessage(conversation, lm);
            });
          } else {
            _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].sendConversationMessage(conversation, message.messageContent);
          }
        });
      } else {
        // 合并转发
        let compositeMessageContent = new _wfc_messages_compositeMessageContent__WEBPACK_IMPORTED_MODULE_43__["default"]();
        let title = "";
        let msgConversation = messages[0].conversation;
        if (msgConversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single) {
          let users = store.getUserInfos([_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserId(), msgConversation.target], "");
          title = users[0]._displayName + "和" + users[1]._displayName + "的聊天记录";
        } else {
          title = "群的聊天记录";
        }
        compositeMessageContent.title = title;
        compositeMessageContent.setMessages(messages);
        _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].sendConversationMessage(conversation, compositeMessageContent, [], null, null, successCB, null);
      }
      if (extraMessageText) {
        let textMessage = new _wfc_messages_textMessageContent__WEBPACK_IMPORTED_MODULE_38__["default"](extraMessageText);
        _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].sendConversationMessage(conversation, textMessage);
      }
    });
  },
  forwardByCreateConversation(forwardType, users, messages, extraMessageText, userGroupName, successCB) {
    this.createConversation(users, conversation => {
      this.forwardMessage(forwardType, [conversation], messages, extraMessageText, successCB);
    }, err => {
      console.error("createConversation error", err);
    }, userGroupName);
  },
  setShouldAutoScrollToBottom(scroll) {
    conversationState.shouldAutoScrollToBottom = scroll;
  },
  /**
   *
   * @param src {String} 媒体url
   * @param thumbUrl {String} 缩略图url
   * @param thumb {String} base64格式的缩略图，但不包含'data:image/png;base64,'
   * @param autoplay
   */
  previewMedia(src, thumbUrl, thumb, autoplay = true) {
    conversationState.previewMediaItems.length = 0;
    conversationState.previewMediaItems.push({
      src: src,
      thumb: thumbUrl ? thumbUrl : "data:image/png;base64," + thumb,
      autoplay: autoplay
    });
    conversationState.previewMediaIndex = 0;
    console.log("preview media", conversationState.previewMediaItems, conversationState.previewMediaIndex);
  },
  previewMedias(mediaItems, index) {
    conversationState.previewMediaItems.length = 0;
    conversationState.previewMediaItems.push(...mediaItems);
    conversationState.previewMediaIndex = index;
    console.log("preview medias", conversationState.previewMediaItems, conversationState.previewMediaIndex);
  },
  playVoice(message) {
    if (conversationState.currentVoiceMessage) {
      conversationState.currentVoiceMessage._isPlaying = false;
    }
    conversationState.currentVoiceMessage = message;
  },
  /**
   *
   * @param message
   * @param {Boolean} continuous  true，预览周围的媒体消息；false，只预览第一个参数传入的那条媒体消息
   */
  previewMessage(message, continuous) {
    conversationState.previewMediaItems.length = 0;
    conversationState.previewMediaIndex = 0;
    if (continuous && conversationState.currentConversationMessageList.length > 0) {
      let mediaMsgs = conversationState.currentConversationMessageList.filter(m => [_wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_28__["default"].Image, _wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_28__["default"].Video].indexOf(m.messageContent.type) > -1);
      let msg;
      for (let i = 0; i < mediaMsgs.length; i++) {
        msg = mediaMsgs[i];
        if (msg.messageId === message.messageId) {
          conversationState.previewMediaIndex = i;
        }
        let mediaUrl = msg.messageContent.remotePath;
        if (!mediaUrl) {
          if (msg.messageContent.file) {
            mediaUrl = URL.createObjectURL(msg.messageContent.file);
          }
        }
        conversationState.previewMediaItems.push({
          src: mediaUrl,
          thumb: "data:image/png;base64," + msg.messageContent.thumbnail,
          autoplay: true
        });
      }
    } else {
      conversationState.previewMediaIndex = 0;
      let mediaUrl = message.messageContent.remotePath;
      if (!mediaUrl) {
        if (message.messageContent.file) {
          mediaUrl = URL.createObjectURL(message.messageContent.file);
        }
      }
      conversationState.previewMediaItems.push({
        src: mediaUrl,
        thumb: "data:image/png;base64," + message.messageContent.thumbnail,
        autoplay: true
      });
    }
  },
  previewCompositeMessage(compositeMessage, focusMessageUid) {
    conversationState.previewMediaItems.length = 0;
    conversationState.previewMediaIndex = 0;
    let mediaMsgs = compositeMessage.messageContent.messages.filter(m => [_wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_28__["default"].Image, _wfc_messages_messageContentType__WEBPACK_IMPORTED_MODULE_28__["default"].Video].indexOf(m.messageContent.type) > -1);
    let msg;
    for (let i = 0; i < mediaMsgs.length; i++) {
      msg = mediaMsgs[i];
      if (Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["eq"])(msg.messageUid, focusMessageUid)) {
        conversationState.previewMediaIndex = i;
      }
      conversationState.previewMediaItems.push({
        src: msg.messageContent.remotePath,
        thumb: "data:image/png;base64," + msg.messageContent.thumbnail,
        autoplay: true
      });
    }
  },
  /**
   *
   * @param conversation
   * @param {File | string} file html File 类型或者url，绝对路径只在electron里面生效
   * @return {Promise<boolean>}
   */
  async sendFile(conversation, file) {
    console.log("send file", file);
    if (file.size && file.size > 100 * 1024 * 1024) {
      if (!_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].isSupportBigFilesUpload() || conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].SecretChat) {
        console.log("file too big, and not support upload big file");
        return true;
      }
    }
    let fileOrLocalPath = null;
    let remotePath = null;
    if (typeof file === "string") {
      if (!file.startsWith("http")) {
        fileOrLocalPath = file;
      } else {
        remotePath = file;
      }
      file = {
        path: file,
        name: file.substring(file.lastIndexOf("/") + 1)
      };
    } else {
      fileOrLocalPath = file;
    }
    let msg = new _wfc_messages_message__WEBPACK_IMPORTED_MODULE_30__["default"]();
    msg.conversation = conversation;
    let mediaType = _ui_util_helper__WEBPACK_IMPORTED_MODULE_22__["default"].getMediaType(file.name.split(".").slice(-1).pop());
    // todo other file type
    let messageContentmediaType = {
      pic: _wfc_messages_messageContentMediaType__WEBPACK_IMPORTED_MODULE_26__["default"].Image,
      video: _wfc_messages_messageContentMediaType__WEBPACK_IMPORTED_MODULE_26__["default"].Video,
      doc: _wfc_messages_messageContentMediaType__WEBPACK_IMPORTED_MODULE_26__["default"].File
    }[mediaType];
    let messageContent;
    switch (messageContentmediaType) {
      case _wfc_messages_messageContentMediaType__WEBPACK_IMPORTED_MODULE_26__["default"].Image:
        let {
          thumbnail: it,
          width: iw,
          height: ih
        } = await Object(_ui_util_imageUtil__WEBPACK_IMPORTED_MODULE_25__["imageThumbnail"])(file);
        it = it ? it : _config__WEBPACK_IMPORTED_MODULE_41__["default"].DEFAULT_THUMBNAIL_URL;
        console.log("image file", file);
        if (it.length > 15 * 1024) {
          console.warn("generated thumbnail is too large, use default thumbnail", it.length);
          it = _config__WEBPACK_IMPORTED_MODULE_41__["default"].DEFAULT_THUMBNAIL_URL;
        }
        messageContent = new _wfc_messages_imageMessageContent__WEBPACK_IMPORTED_MODULE_31__["default"](fileOrLocalPath, remotePath, it.split(",")[1]);
        messageContent.imageWidth = iw;
        messageContent.imageHeight = ih;
        break;
      case _wfc_messages_messageContentMediaType__WEBPACK_IMPORTED_MODULE_26__["default"].Video:
        let {
          thumbnail: vt,
          width: vw,
          height: vh
        } = await Object(_ui_util_imageUtil__WEBPACK_IMPORTED_MODULE_25__["videoThumbnail"])(file);
        let duration = await Object(_ui_util_imageUtil__WEBPACK_IMPORTED_MODULE_25__["videoDuration"])(file);
        duration = Math.ceil(duration * 1000);
        if (vt === null) {
          return false;
        }
        if (vt.length > 15 * 1024) {
          console.warn("generated thumbnail is too large, use default thumbnail", vt.length);
          vt = _config__WEBPACK_IMPORTED_MODULE_41__["default"].DEFAULT_THUMBNAIL_URL;
        }
        messageContent = new _wfc_messages_videoMessageContent__WEBPACK_IMPORTED_MODULE_32__["default"](fileOrLocalPath, remotePath, vt.split(",")[1]);
        // TODO width and height
        break;
      case _wfc_messages_messageContentMediaType__WEBPACK_IMPORTED_MODULE_26__["default"].File:
        messageContent = new _wfc_messages_fileMessageContent__WEBPACK_IMPORTED_MODULE_33__["default"](fileOrLocalPath, remotePath);
        break;
      default:
        return false;
    }
    msg.messageContent = messageContent;
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].sendMessage(msg, messageId => {
      msg.messageId = messageId;
      console.log("sf, pr", messageId);
    }, (progress, total) => {
      // console.log('sf p', msg.messageId, Math.ceil(progress / total * 100))
      let sm = conversationState.sendingMessages.find(e => e.messageId === msg.messageId);
      if (sm) {
        sm.progress = progress;
        sm.total = total;
      } else {
        conversationState.sendingMessages.push({
          messageId: msg.messageId,
          progress,
          total
        });
      }
    }, messageUid => {
      console.log("sf s", messageUid);
      conversationState.sendingMessages = conversationState.sendingMessages.filter(e => e.messageId !== msg.messageId);
    }, error => {
      console.log("sf e", error);
      conversationState.sendingMessages = conversationState.sendingMessages.filter(e => e.messageId !== msg.messageId);
    });
  },
  quoteMessage(message) {
    conversationState.quotedMessage = message;
    conversationState.currentConversationInfo._quotedMessage = message;
  },
  getConversationInfo(conversation) {
    let info = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConversationInfo(conversation);
    return this._patchConversationInfo(info, false);
  },
  /**
   * 获取会话消息
   * @param {Conversation} conversation 会话
   * @param {number} fromIndex 其实消息的 messageId
   * @param {boolean} before 获取其实消息之前，还是之后的消息
   * @param {string} withUser 过滤该用户发送或接收的消息
   * @param {function (Message[]) } callback 消息列表会回调
   */
  getMessages(conversation, fromIndex = 0, before = true, withUser = "", callback) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMessagesV2(conversation, fromIndex, before, 20, withUser, msgs => {
      msgs = msgs.map(m => this._patchMessage(m, 0));
      //callback && callback(msgs);
      setTimeout(() => callback && callback(msgs), 200);
    }, err => {
      console.error("getMessageV2 error", err);
      callback && callback([]);
    });
  },
  getMessageInTypes(conversation, contentTypes, timestamp, before = true, withUser = "", callback) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMessagesByTimestampV2(conversation, contentTypes, timestamp, before, 20, withUser, msgs => {
      msgs = msgs.map(m => this._patchMessage(m, 0));
      callback && callback(msgs);
    }, err => {
      console.log(err);
      callback && callback([]);
    });
  },
  _loadCurrentConversationMessages() {
    console.log("_loadCurrentConversationMessages");
    if (!conversationState.currentConversationInfo) {
      return;
    }
    // TODO 可以在这儿加载所有未读消息，以实现滚动到一条未读消息的地方
    let conversation = conversationState.currentConversationInfo.conversation;
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMessagesV2(conversation, 0, true, 20, "", msgs => {
      conversationState.currentConversationMessageList = msgs;
      this._patchCurrentConversationMessages();
      if (msgs.length) {
        conversationState.currentConversationOldestMessageId = msgs[0].messageId;
      }
      for (let i = 0; i < msgs.length; i++) {
        if (Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["gt"])(msgs[i].messageUid, 0)) {
          conversationState.currentConversationOldestMessageUid = msgs[0].messageUid;
          break;
        }
      }
    }, err => {
      console.error("_loadCurrentConversationMessages error", err);
    });
  },
  _patchCurrentConversationMessages() {
    let lastTimestamp = 0;
    let msgs = conversationState.currentConversationMessageList;
    msgs.forEach(m => {
      this._patchMessage(m, lastTimestamp);
      lastTimestamp = m.timestamp;
    });
  },
  _onloadConversationMessages(conversation, messages) {
    if (!messages || messages.length === 0) {
      return false;
    }
    let loadNewMsg = false;
    let lastTimestamp = 0;
    let newMsgs = [];
    messages.forEach(m => {
      let index = conversationState.currentConversationMessageList.findIndex(cm => cm.messageId === m.messageId);
      if (index === -1) {
        this._patchMessage(m, lastTimestamp);
        lastTimestamp = m.timestamp;
        newMsgs.push(m);
        loadNewMsg = true;
      }
    });
    conversationState.currentConversationMessageList = newMsgs.concat(conversationState.currentConversationMessageList);
    return loadNewMsg;
  },
  loadConversationHistoryMessages(loadedCB, completeCB) {
    if (!conversationState.currentConversationInfo) {
      return;
    }
    let conversation = conversationState.currentConversationInfo.conversation;
    console.log("loadConversationHistoryMessage", conversation, conversationState.currentConversationOldestMessageId, Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["stringValue"])(conversationState.currentConversationOldestMessageUid));
    let loadRemoteHistoryMessageFunc = () => {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].loadRemoteConversationMessages(conversation, [], conversationState.currentConversationOldestMessageUid, 20, (msgs, hasMore) => {
        console.log("loadRemoteConversationMessages response", msgs.length);
        if (msgs.length === 0) {
          // 拉回来的消息，本地全都有时，会走到这儿
          if (hasMore) {
            loadedCB();
          } else {
            completeCB();
          }
        } else {
          // 可能拉回来的时候，本地已经切换会话了
          if (conversation.equal(conversationState.currentConversationInfo.conversation)) {
            conversationState.currentConversationOldestMessageUid = msgs[0].messageUid;
            msgs = msgs.filter(m => m.messageId !== 0);
            this._onloadConversationMessages(conversation, msgs);
          }
          this._reloadConversation(conversation);
          loadedCB();
        }
      }, error => {
        completeCB(error);
      });
    };
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMessagesV2(conversation, conversationState.currentConversationOldestMessageId, true, 20, "", lmsgs => {
      if (lmsgs.length > 0) {
        if (!conversation.equal(conversationState.currentConversationInfo.conversation)) {
          return;
        }
        conversationState.currentConversationOldestMessageId = lmsgs[0].messageId;
        if (Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["gt"])(lmsgs[0].messageUid, 0)) {
          conversationState.currentConversationOldestMessageUid = lmsgs[0].messageUid;
        }
        this._onloadConversationMessages(conversation, lmsgs);
        if (lmsgs.length === 0) {
          loadRemoteHistoryMessageFunc();
        } else {
          // loadedCB();
          setTimeout(() => loadedCB(), 200);
        }
      } else {
        loadRemoteHistoryMessageFunc();
      }
    }, err => {
      completeCB(err);
    });
  },
  setConversationTop(conversation, top) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].setConversationTop(conversation, top, () => {
      this._reloadConversation(conversation);
    }, err => {
      console.log("setConversationTop error", err);
    });
  },
  setConversationSilent(conversation, silent) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].setConversationSlient(conversation, silent, () => {
      this._reloadConversation(conversation);
    }, err => {
      console.log("setConversationSilent error", err);
    });
  },
  removeConversation(conversation) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].removeConversation(conversation, false);
    if (conversationState.currentConversationInfo && conversationState.currentConversationInfo.conversation.equal(conversation)) {
      this.setCurrentConversationInfo(null);
    }
    conversationState.conversationInfoList = conversationState.conversationInfoList.filter(info => !info.conversation.equal(conversation));
    this.updateTray();
  },
  getMessageById(messageId) {
    let msg = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMessageById(messageId);
    if (msg) {
      this._patchMessage(msg, 0);
    }
    return msg;
  },
  getMessageByUid(messageUid) {
    let msg = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMessageByUid(messageUid);
    if (msg) {
      this._patchMessage(msg, 0);
    }
    return msg;
  },
  _patchMessage(m, lastTimestamp = 0, userInfoMap) {
    // TODO
    // _from
    // _showTime
    if (m.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single) {
      m._from = userInfoMap ? userInfoMap.get(m.from) : _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfo(m.from, false, "");
    }
    if (!m._from) {
      let u = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfo(m.from, false, m.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Group ? m.conversation.target : "");
      // clone for modify
      // TODO sdk 返回的时候，直接返回 clone copy，而不是直接返回底层的数据，防止上层修改，影响到底层数据模型
      m._from = Object.assign({}, u);
    }
    if (m.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Group) {
      m._from._displayName = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getGroupMemberDisplayNameEx(m._from);
    } else {
      m._from._displayName = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserDisplayNameEx(m._from);
    }
    if (m.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].SecretChat) {
      if (m.messageContent instanceof _wfc_messages_mediaMessageContent__WEBPACK_IMPORTED_MODULE_48__["default"] && m.messageContent.remotePath && m.messageContent.remotePath.startsWith("http")) {
        m.messageContent.remotePath = `http://localhost:${_config__WEBPACK_IMPORTED_MODULE_41__["default"].SECRET_CHAT_MEDIA_DECODE_SERVER_PORT}?target=${m.conversation.target}&url=${m.messageContent.remotePath}`;
      }
    }
    if (Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["numberValue"])(lastTimestamp) > 0 && Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["numberValue"])(m.timestamp) - Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["numberValue"])(lastTimestamp) > 5 * 60 * 1000) {
      m._showTime = true;
    }
    m._timeStr = _ui_util_helper__WEBPACK_IMPORTED_MODULE_22__["default"].timeFormat(m.timestamp);
    if (m.messageContent instanceof _wfc_messages_compositeMessageContent__WEBPACK_IMPORTED_MODULE_43__["default"]) {
      this._patchCompositeMessageContent(m.messageContent);
    }

    // TODO 如果Im server支持备选网络，需要根据当前的网络情况，判断当前是处于主网络，还是备选网络，并动态修改媒体类消息的remotePath，不然可能会出现不能正常加载的情况
    // 如何判断是主网络，还是备选网络，这儿提供一种思路：分别通过主网络和备选网络测试访问im server的/api/version接口
    // 判断是主网络，还是备选网络，一般启动的时候，检测到网络网络变化的时候，在判断一次。
    // if(m.messageContent instanceof MediaMessageContent){
    // TODO 动态修改remotePath
    // }

    return m;
  },
  _patchCompositeMessageContent(compositeMessageContent) {
    let messages = compositeMessageContent.messages;
    messages.forEach(m => {
      this._patchMessage(m, 0);
    });
  },
  _patchConversationInfo(info, patchLastMessage = true, userInfoMap, groupInfoMap) {
    if (info.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single) {
      info.conversation._target = userInfoMap ? userInfoMap.get(info.conversation.target) : _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfo(info.conversation.target, false);
      if (info.conversation._target) {
        info.conversation._target._displayName = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserDisplayNameEx(info.conversation._target);
      }
    } else if (info.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Group) {
      info.conversation._target = groupInfoMap ? groupInfoMap.get(info.conversation.target) : _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getGroupInfo(info.conversation.target, false);
      if (info.conversation._target) {
        info.conversation._target._isFav = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].isFavGroup(info.conversation.target);
        info.conversation._target._displayName = info.conversation._target.remark ? info.conversation._target.remark : info.conversation._target.name;
      }
    } else if (info.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Channel) {
      info.conversation._target = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getChannelInfo(info.conversation.target, false);
      info.conversation._target._displayName = info.conversation._target.name;
    } else if (info.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].SecretChat) {
      let secretChatInfo = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getSecretChatInfo(info.conversation.target);
      if (secretChatInfo) {
        let userId = secretChatInfo.userId;
        let userInfo = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfo(userId, false);
        info.conversation._target = userInfo;
        info.conversation._target._displayName = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserDisplayNameEx(userInfo);
      } else {
        info.conversation._target = {};
      }
    } else if (info.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].ChatRoom) {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getChatroomInfo(info.conversation.target, 0, chatRoomInfo => {
        info.conversation._target = chatRoomInfo;
      }, err => {
        console.log("get chatRoomInfo error", err);
        info.conversation._target = {};
      });
    }
    if (Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["gt"])(info.timestamp, 0)) {
      info._timeStr = _ui_util_helper__WEBPACK_IMPORTED_MODULE_22__["default"].dateFormat(info.timestamp);
    } else {
      info._timeStr = "";
    }

    // 显示的时候，再 patch
    if (info.lastMessage && info.lastMessage.conversation !== undefined && patchLastMessage) {
      //this._patchMessage(info.lastMessage, 0, userInfoMap)
      if (!info.lastMessage._from) {
        info.lastMessage._from = undefined;
      }
    }
    if (info.unreadCount) {
      info._unread = info.unreadCount.unread + info.unreadCount.unreadMention + info.unreadCount.unreadMentionAll;
    }
    if (info.conversation.equal(_wfc_av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_47__["default"].conversation)) {
      info._isVoipOngoing = true;
    } else {
      info._isVoipOngoing = false;
    }
    return info;
  },
  addDownloadingMessage(messageId) {
    conversationState.downloadingMessages.push({
      messageId: messageId,
      progress: 0,
      total: Number.MAX_SAFE_INTEGER
    });
    console.log("add downloading");
  },
  isDownloadingMessage(messageId) {
    // web端尚未测试，先屏蔽
    if (!Object(_platform__WEBPACK_IMPORTED_MODULE_39__["isElectron"])()) {
      return false;
    }
    return conversationState.downloadingMessages.findIndex(dm => dm.messageId === messageId) >= 0;
  },
  isSendingMessage(messageId) {
    return conversationState.sendingMessages.has(messageId);
  },
  getDownloadingMessageStatus(messageId) {
    return conversationState.downloadingMessages.find(dm => dm.messageId === messageId);
  },
  getSendingStatus(messageId) {
    return conversationState.sendingMessages.find(e => e.messageId === messageId);
  },
  addFloatingConversation(conversation) {
    conversationState.floatingConversations.push(conversation);
  },
  removeFloatingConversation(conversation) {
    conversationState.floatingConversations = conversationState.floatingConversations.filter(c => !c.equal(conversation));
  },
  isConversationInCurrentWindow(conversation) {
    if (miscState.isMainWindow) {
      let index = conversationState.floatingConversations.findIndex(fc => fc.equal(conversation));
      return index === -1;
    } else {
      return conversationState.currentConversationInfo && conversationState.currentConversationInfo.conversation.equal(conversation);
    }
  },
  // contact actions

  _loadSelfUserInfo() {
    contactState.selfUserInfo = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfo(_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserId(), false);
  },
  _loadFriendList() {
    let friends = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMyFriendList(false);
    let fileHelperIndex = friends.indexOf(_config__WEBPACK_IMPORTED_MODULE_41__["default"].FILE_HELPER_ID);
    if (fileHelperIndex < 0) {
      friends.push(_config__WEBPACK_IMPORTED_MODULE_41__["default"].FILE_HELPER_ID);
    }
    if (friends && friends.length > 0) {
      let friendList = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfos(friends, "");
      contactState.friendList = this._patchAndSortUserInfos(friendList, "");
    }
  },
  getUserOnlineState(userId) {
    let userOnlineState = miscState.userOnlineStateMap.get(userId);
    if (userOnlineState) {
      return userOnlineState.desc();
    }
    return "";
  },
  _patchCurrentConversationOnlineStatus() {
    let convInfo = conversationState.currentConversationInfo;
    if (convInfo && convInfo.conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single) {
      // 在 将 object 和 ui 绑定之前， 向 object 中新增的属性是 reactive 的，但绑定之后，才新增的属性，不是 reactive 的，
      // 故需要通过下面这种方法，让其成为 reactive 的属性
      // conversationState.currentConversationInfo.conversation._targetOnlineStateDesc = userOnlineStatus.desc();
      vue__WEBPACK_IMPORTED_MODULE_17__["default"].set(conversationState.currentConversationInfo.conversation, "_targetOnlineStateDesc", this.getUserOnlineState(convInfo.conversation.target));
    } else {
      //TODO
    }
  },
  _loadFriendRequest() {
    let requests = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getIncommingFriendRequest();
    requests.sort((a, b) => Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["numberValue"])(b.timestamp) - Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["numberValue"])(a.timestamp));
    requests = requests.length >= 20 ? requests.slice(0, 20) : requests;
    let uids = [];
    requests.forEach(fr => {
      uids.push(fr.target);
    });
    let userInfos = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfos(uids, "");
    requests.forEach(fr => {
      let userInfo = userInfos.find(u => u.uid === fr.target);
      fr._target = userInfo;
    });
    contactState.friendRequestList = requests;
    contactState.unreadFriendRequestCount = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUnreadFriendRequestCount();
  },
  _patchAndSortUserInfos(userInfos, groupId = "", compareFn) {
    userInfos = userInfos.map(u => {
      if (groupId) {
        u._displayName = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getGroupMemberDisplayNameEx(u);
      } else {
        u._displayName = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserDisplayNameEx(u);
      }
      u._pinyin = _vendor_pinyin__WEBPACK_IMPORTED_MODULE_23___default()(u._displayName, {
        style: 0
      }).join("").trim().toLowerCase();
      let firstLetter = u._pinyin[0];
      if (firstLetter >= "a" && firstLetter <= "z") {
        u.__sortPinyin = "a" + u._pinyin;
      } else {
        u.__sortPinyin = "z" + u._pinyin;
      }
      u._firstLetters = _vendor_pinyin__WEBPACK_IMPORTED_MODULE_23___default()(u._displayName, {
        style: 4
      }).join("").trim().toLowerCase();
      return u;
    });
    if (compareFn) {
      userInfos = userInfos.sort(compareFn);
    } else {
      userInfos = userInfos.sort((a, b) => a.__sortPinyin.localeCompare(b.__sortPinyin));
    }
    userInfos.forEach(u => {
      let uFirstLetter = u.__sortPinyin[1];
      if (uFirstLetter >= "a" && uFirstLetter <= "z") {
        u._category = uFirstLetter;
      } else {
        u._category = "#";
      }
      u._userOnlineStatusDesc = this.getUserOnlineState(u.uid);
    });
    return userInfos;
  },
  _loadFavGroupList() {
    contactState.favGroupList = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getFavGroupList();
  },
  _loadChannelList() {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getRemoteListenedChannels(channelIds => {
      if (channelIds) {
        contactState.channelList = channelIds.map(channelId => _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getChannelInfo(channelId, false));
        contactState.channelList = contactState.channelList.filter(ch => {
          return !(ch instanceof _wfc_model_NullChannelInfo__WEBPACK_IMPORTED_MODULE_56__["default"]);
        });
      }
    }, err => {
      console.error("getRemoteListenedChannels error", err);
    });
  },
  _loadFavContactList() {
    let favUserIds = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getFavUsers();
    if (favUserIds.length > 0) {
      contactState.favContactList = this.getUserInfos(favUserIds, "");
      contactState.favContactList.forEach(u => {
        u._category = "☆ 星标朋友";
      });
    } else {
      contactState.favContactList = [];
    }
  },
  reloadFavGroupList() {
    this._loadFavGroupList();
  },
  setCurrentFriendRequest(friendRequest) {
    contactState.currentFriendRequest = friendRequest;
    contactState.currentFriend = null;
    contactState.currentOrganization = null;
    contactState.currentGroup = null;
    contactState.currentChannel = null;
  },
  setCurrentFriend(friend) {
    contactState.currentFriendRequest = null;
    contactState.currentFriend = friend;
    contactState.currentOrganization = null;
    contactState.currentGroup = null;
    contactState.currentChannel = null;
  },
  setCurrentGroup(group) {
    contactState.currentFriendRequest = null;
    contactState.currentFriend = null;
    contactState.currentOrganization = null;
    contactState.currentGroup = group;
    contactState.currentChannel = null;
  },
  setCurrentChannel(channel) {
    contactState.currentFriendRequest = null;
    contactState.currentFriend = null;
    contactState.currentOrganization = null;
    contactState.currentGroup = null;
    contactState.currentChannel = channel;
  },
  setCurrentOrganization(organization) {
    contactState.currentFriendRequest = null;
    contactState.currentFriend = null;
    contactState.currentGroup = null;
    contactState.currentChannel = null;
    contactState.currentOrganization = organization;
  },
  toggleGroupList() {
    contactState.expandGroup = !contactState.expandGroup;
  },
  toggleChannelList() {
    contactState.expandChanel = !contactState.expandChanel;
  },
  toggleFriendRequestList() {
    contactState.expandFriendRequestList = !contactState.expandFriendRequestList;
  },
  toggleFriendList() {
    contactState.expandFriendList = !contactState.expandFriendList;
  },
  toggleOrganizationList() {
    // TEST DATA
    contactState.organizationList = [{
      name: "测试公司",
      portrait: _config__WEBPACK_IMPORTED_MODULE_41__["default"].DEFAULT_ORGANIZATION_PORTRAIT_URL
    }];
    contactState.expandOrganization = !contactState.expandOrganization;
  },
  // search actions
  toggleSearchView(show) {
    console.log("ts", show, searchState.show);
    searchState.show = show;
  },
  setSearchQuery(query) {
    searchState.query = query;
    if (query) {
      console.log("search", query);
      searchState.contactSearchResult = this.filterContact(query);
      searchState.groupSearchResult = this.filterGroupConversation(query);
      searchState.conversationSearchResult = this.filterConversation(query);
      // searchState.messageSearchResult = this.searchMessage(query);
      this.searchUser(query);
      this.searchChannel(query);
    } else {
      searchState._reset();
    }
  },
  searchUser(query) {
    console.log("search user", query);
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].searchUser(query, _wfc_model_searchType__WEBPACK_IMPORTED_MODULE_40__["default"].General, 0, (keyword, userInfos) => {
      console.log("search user result", query, userInfos);
      if (searchState.query === keyword) {
        searchState.userSearchResult = userInfos.filter(u => !_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].isMyFriend(u.uid));
      }
    }, err => {
      console.log("search user error", query, err);
      if (searchState.query === query) {
        searchState.userSearchResult = [];
      }
    });
  },
  searchChannel(query) {
    console.log("search channel");
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].searchChannel(query, true, (keyword, channelInfos) => {
      console.log("search channel result", channelInfos);
      if (searchState.query === keyword) {
        console.log("search channel result", channelInfos);
        searchState.channelSearchResult = channelInfos;
      }
    }, err => {
      console.log("search channel error", query, err);
      if (searchState.query === query) {
        searchState.channelSearchResult = [];
      }
    });
  },
  // TODO 到底是什么匹配了
  filterContact(query) {
    let result = contactState.friendList.filter(u => {
      return u._displayName.indexOf(query) > -1 || u._firstLetters.indexOf(query.toLowerCase()) > -1 || u._pinyin.indexOf(query.toLowerCase()) > -1;
    });
    console.log("friend searchResult", result);
    return result;
  },
  searchFiles(keyword, beforeMessageUid, successCB, failCB) {
    if (!keyword) {
      return;
    }
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].searchFiles(keyword, null, "", beforeMessageUid, 0, 20, files => {
      this._patchFileRecords(files);
      successCB && successCB(files);
    }, errorCode => {
      console.log("search file error", errorCode);
      failCB && failCB(errorCode);
    });
  },
  filterUsers(users, filter) {
    if (!users || !filter || !filter.trim()) {
      return users;
    }
    let queryPinyin = _vendor_pinyin__WEBPACK_IMPORTED_MODULE_23___default()(filter, {
      style: 0
    }).join("").trim().toLowerCase();
    let result = users.filter(u => {
      return u._displayName.indexOf(filter) > -1 || u._displayName.indexOf(queryPinyin) > -1 || u._pinyin.indexOf(filter) > -1 || u._pinyin.indexOf(queryPinyin) > -1 || u._firstLetters.indexOf(filter) > -1 || u._firstLetters.indexOf(queryPinyin) > -1;
    });
    return result;
  },
  // TODO 匹配类型，是群名称匹配上了，还是群成员的名称匹配上了？
  // 目前只搜索群名称
  filterFavGroup(query) {
    console.log("to search group", contactState.favGroupList);
    let queryPinyin = _vendor_pinyin__WEBPACK_IMPORTED_MODULE_23___default()(query, {
      style: 0
    }).join("").trim().toLowerCase();
    let result = contactState.favGroupList.filter(g => {
      let groupNamePinyin = _vendor_pinyin__WEBPACK_IMPORTED_MODULE_23___default()(g.name, {
        style: 0
      }).join("").trim().toLowerCase();
      return g.name.indexOf(query) > -1 || g.name.indexOf(queryPinyin) > -1 || groupNamePinyin.indexOf(query) > -1 || groupNamePinyin.indexOf(queryPinyin) > -1;
    });
    console.log("group searchResult", result);
    return result;
  },
  // TODO
  filterConversation(query) {
    return conversationState.conversationInfoList.filter(info => {
      let displayNamePinyin = _vendor_pinyin__WEBPACK_IMPORTED_MODULE_23___default()(info.conversation._target._displayName, {
        style: 0
      }).join("").trim().toLowerCase();
      let firstLetters = _vendor_pinyin__WEBPACK_IMPORTED_MODULE_23___default()(info.conversation._target._displayName, {
        style: 4
      }).join("").trim().toLowerCase();
      return info.conversation._target._displayName.indexOf(query) > -1 || displayNamePinyin.indexOf(query.toLowerCase()) > -1 || firstLetters.indexOf(query) > -1;
    });
  },
  filterGroupConversation(query) {
    // query = query.toLowerCase();
    // let groups = conversationState.conversationInfoList.filter(info => info.conversation.type === ConversationType.Group).map(info => info.conversation._target);
    // return groups.filter(groupInfo => {
    //     let namePinyin = convert(groupInfo.name, {style: 0}).join('').trim().toLowerCase();
    //     let firstLetters = convert(groupInfo.name, {style: 4}).join('').trim().toLowerCase();
    //     return groupInfo.name.indexOf(query) > -1 || namePinyin.indexOf(query) > -1 || firstLetters.indexOf(query) > -1
    // })
    let gsr = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].searchGroups(query);
    return gsr.map(r => r.groupInfo);
  },
  searchMessage(conversation, query) {
    let msgs = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].searchMessage(conversation, query);
    msgs = msgs.reverse();
    return msgs.map(m => this._patchMessage(m, 0));
  },
  searchMessageInTypes(conversation, contentTypes, query, offset) {
    let msgs = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].searchMessageByTypes(conversation, query, contentTypes, true, 20, offset);
    return msgs.map(m => this._patchMessage(m, 0));
  },
  searchConversation(query, types = [0, 1, 2], lines = [0, 1, 2]) {
    let results = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].searchConversation(query, types, lines);
    return results.map(r => {
      let info = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConversationInfo(r.conversation);
      r._conversationInfo = this._patchConversationInfo(info, false);
      return r;
    });
  },
  // pick actions
  pickOrUnpickUser(user) {
    let index = pickState.users.findIndex(u => u.uid === user.uid);
    if (index >= 0) {
      pickState.users = pickState.users.filter(u => user.uid !== u.uid);
    } else {
      pickState.users.push(user);
    }
  },
  isUserPicked(user) {
    let index = pickState.users.findIndex(u => u.uid === user.uid);
    return index >= 0;
  },
  // pick actions
  pickOrUnpickOrganization(org) {
    let index = pickState.organizations.findIndex(o => o.id === org.id);
    if (index >= 0) {
      pickState.organizations = pickState.organizations.filter(o => o.id !== org.id);
    } else {
      pickState.organizations.push(org);
    }
  },
  isOrganizationPicked(org) {
    let index = pickState.organizations.findIndex(o => o.id === org.id);
    return index >= 0;
  },
  pickOrUnpickConversation(conversation) {
    let index = pickState.conversations.findIndex(c => conversation.target === c.target && conversation.line === c.line && conversation.type === c.type);
    if (index >= 0) {
      pickState.conversations = pickState.conversations.filter(c => !(conversation.target === c.target && conversation.line === c.line && conversation.type === c.type));
    } else {
      pickState.conversations.push(conversation);
    }
  },
  /**
   * misc actions
   * @param users {array} users
   * @callback successCB  - success callback
   * @callback failCB  - fail callback
   * @param successCB {successCB} - success callback
   * @param failCB {failCB} - success callback
   * @param userGroupName {string}
   */
  createConversation(users, successCB, failCB, userGroupName) {
    if (users.length === 1 && !userGroupName) {
      let conversation = new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_27__["default"](_wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single, users[0].uid, 0);
      this.setCurrentConversation(conversation);
      successCB && successCB(conversation);
      return;
    }
    let contactName = contactState.selfUserInfo.displayName;
    let groupMemberIds = [];
    for (let i = 0; i < users.length; i++) {
      groupMemberIds.push(users[i].uid);
      if (i <= 3) {
        contactName += "、" + users[i].displayName;
      }
    }
    const groupName = userGroupName || contactName.substr(0, contactName.length - 1);
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].createGroup(null, _wfc_model_groupType__WEBPACK_IMPORTED_MODULE_24__["default"].Restricted, groupName, null, null, groupMemberIds, null, [0], null, groupId => {
      let conversation = new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_27__["default"](_wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Group, groupId, 0);
      this.setCurrentConversation(conversation);
      successCB && successCB(conversation);
    }, error => {
      console.log("create group error", error);
      failCB && failCB(error);
    });
  },
  _loadUserLocalSettings() {
    let userId = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserId();
    // 默认允许通知
    let setting = Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["getItem"])(userId + "-" + "notification");
    miscState.enableNotification = setting === null || setting === "1";
    setting = Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["getItem"])(userId + "-" + "notificationDetail");
    miscState.enableNotificationMessageDetail = setting === null || setting === "1";
    miscState.enableCloseWindowToExit = Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["getItem"])(userId + "-" + "closeWindowToExit") === "1";
    miscState.enableAutoLogin = Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["getItem"])(userId + "-" + "autoLogin") === "1";
    setting = Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["getItem"])("minimizable");
    miscState.enableMinimize = setting === null || setting === "1";
  },
  setEnableNotification(enable) {
    miscState.enableNotification = enable;
    Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["setItem"])(contactState.selfUserInfo.uid + "-" + "notification", enable ? "1" : "0");
  },
  setEnableMinimize(enable) {
    miscState.enableMinimize = enable;
    Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["setItem"])("minimizable", enable ? "1" : "0");
    _platform__WEBPACK_IMPORTED_MODULE_39__["currentWindow"].minimizable = enable;
  },
  setEnableNotificationDetail(enable) {
    miscState.enableNotificationMessageDetail = enable;
    Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["setItem"])(contactState.selfUserInfo.uid + "-" + "notificationDetail", enable ? "1" : "0");
  },
  setEnableCloseWindowToExit(enable) {
    miscState.enableCloseWindowToExit = enable;
    Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["setItem"])(contactState.selfUserInfo.uid + "-" + "closeWindowToExit", enable ? "1" : "0");
    _platform__WEBPACK_IMPORTED_MODULE_39__["ipcRenderer"].send(_wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_55___default.a.ENABLE_CLOSE_WINDOW_TO_EXIT, enable);
  },
  setEnableAutoLogin(enable) {
    miscState.enableAutoLogin = enable;
    Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_42__["setItem"])(contactState.selfUserInfo.uid + "-" + "autoLogin", enable ? "1" : "0");
  },
  // clone一下，别影响到好友列表
  getUserInfos(userIds, groupId) {
    let userInfos = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfos(userIds, groupId);
    let userInfosCloneCopy = userInfos.map(u => Object.assign({}, u));
    return this._patchAndSortUserInfos(userInfosCloneCopy, groupId);
  },
  // clone一下，别影响到好友列表
  getGroupMemberUserInfos(groupId, includeSelf = true, sortByPinyin = false) {
    let memberIds = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getGroupMemberIds(groupId);
    let userInfos = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfos(memberIds, groupId);
    if (!includeSelf) {
      userInfos = userInfos.filter(u => u.uid !== _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserId());
    }
    let userInfosCloneCopy = userInfos.map(u => Object.assign({}, u));
    if (sortByPinyin) {
      return this._patchAndSortUserInfos(userInfosCloneCopy, groupId);
    } else {
      let compareFn = (u1, u2) => {
        let index1 = memberIds.findIndex(id => id === u1.uid);
        let index2 = memberIds.findIndex(id => id === u2.uid);
        return index1 - index2;
      };
      return this._patchAndSortUserInfos(userInfosCloneCopy, groupId, compareFn);
    }
  },
  // clone一下，别影响到好友列表
  getConversationMemberUsrInfos(conversation) {
    let userInfos = [];
    if (conversation.type === 0) {
      if (conversation.target !== contactState.selfUserInfo.uid) {
        userInfos.push(_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfo(_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserId(), false));
      }
      userInfos.push(_wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserInfo(conversation.target, false));
      let userInfosCloneCopy = userInfos.map(u => Object.assign({}, u));
      userInfos = this._patchAndSortUserInfos(userInfosCloneCopy, "");
    } else if (conversation.type === 1) {
      userInfos = this.getGroupMemberUserInfos(conversation.target, true);
    }
    return userInfos;
  },
  getMyFileRecords(beforeUid, count, successCB, failCB) {
    if (!successCB) {
      return;
    }
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getMyFileRecords(beforeUid, 0, count, fileRecords => {
      this._patchFileRecords(fileRecords);
      successCB(fileRecords);
    }, failCB);
  },
  getConversationFileRecords(conversation, fromUser, beforeMessageUid, count, successCB, failCB) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConversationFileRecords(conversation, fromUser, beforeMessageUid, 0, count, fileRecords => {
      this._patchFileRecords(fileRecords);
      successCB(fileRecords);
    }, failCB);
  },
  deleteFriend(target) {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].deleteFriend(target, () => {
      let conv = new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_27__["default"](_wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_20__["default"].Single, target, 0);
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].removeConversation(conv, true);
      conversationState.conversationInfoList = conversationState.conversationInfoList.filter(info => !info.conversation.equal(conv));
    }, err => {
      console.log("deleteFriend error", err);
    });
  },
  _patchFileRecords(fileRecords) {
    fileRecords.forEach(fileRecord => {
      let groupId = fileRecord.conversation.type === 1 ? fileRecord.conversation.target : "";
      if (groupId) {
        fileRecord._userDisplayName = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getGroupMemberDisplayName(groupId, fileRecord.userId);
      } else {
        fileRecord._userDisplayName = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getUserDisplayName(fileRecord.userId);
      }
      let conversationInfo = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConversationInfo(fileRecord.conversation);
      this._patchConversationInfo(conversationInfo, false);
      if (fileRecord.conversation.type === 0) {
        fileRecord._conversationDisplayName = "与" + conversationInfo.conversation._target._displayName + "的聊天";
      } else {
        fileRecord._conversationDisplayName = conversationInfo.conversation._target._displayName;
      }
      if (fileRecord.name.indexOf(_wfc_messages_fileMessageContent__WEBPACK_IMPORTED_MODULE_33__["default"].FILE_NAME_PREFIX) === 0) {
        fileRecord.name = fileRecord.name.substring(fileRecord.name.indexOf(_wfc_messages_fileMessageContent__WEBPACK_IMPORTED_MODULE_33__["default"].FILE_NAME_PREFIX) + _wfc_messages_fileMessageContent__WEBPACK_IMPORTED_MODULE_33__["default"].FILE_NAME_PREFIX.length);
      }
      fileRecord._timeStr = _ui_util_helper__WEBPACK_IMPORTED_MODULE_22__["default"].dateFormat(fileRecord.timestamp);
      fileRecord._sizeStr = _ui_util_helper__WEBPACK_IMPORTED_MODULE_22__["default"].humanSize(fileRecord.size);
      fileRecord._fileIconName = _ui_util_helper__WEBPACK_IMPORTED_MODULE_22__["default"].getFiletypeIcon(fileRecord.name.substring(fileRecord.name.lastIndexOf(".")));
    });
  },
  setPageVisibility(visible) {
    miscState.isPageHidden = !visible;
    if (!visible) {
      conversationState.shouldAutoScrollToBottom = false;
    } else if (conversationState.currentConversationInfo) {
      conversationState.shouldAutoScrollToBottom = true;
    }
  },
  clearConversationUnreadStatus(conversation) {
    let info = _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].getConversationInfo(conversation);
    if (info && info.unreadCount.unread + info.unreadCount.unreadMention + info.unreadCount.unreadMentionAll > 0) {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].clearConversationUnreadStatus(conversation);
      this.updateTray();
    }
  },
  clearAllUnreadStatus() {
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_18__["default"].clearAllUnreadStatus();
    conversationState.conversationInfoList.forEach(info => {
      info.unreadCount = new _wfc_model_unreadCount__WEBPACK_IMPORTED_MODULE_49__["default"]();
    });
    this.updateTray();
  },
  notify(msg) {
    let content = msg.messageContent;
    let icon = __webpack_require__(/*! @/assets/images/icon.png */ "./src/assets/images/icon.png");
    let tip;
    //Todo
    if (msg.direction === 0 /* && !(type===0 && target===file_transfer_id)*/) {
      return;
    }
    if (_wfc_client_messageConfig__WEBPACK_IMPORTED_MODULE_35__["default"].getMessageContentPersitFlag(content.type) === _wfc_messages_persistFlag__WEBPACK_IMPORTED_MODULE_36__["default"].Persist_And_Count) {
      if (msg.status !== _wfc_messages_messageStatus__WEBPACK_IMPORTED_MODULE_29__["default"].AllMentioned && msg.status !== _wfc_messages_messageStatus__WEBPACK_IMPORTED_MODULE_29__["default"].Mentioned) {
        let silent = false;
        for (const info of conversationState.conversationInfoList) {
          if (info.conversation.equal(msg.conversation)) {
            silent = info.isSilent;
            break;
          }
        }
        if (silent) {
          return;
        }
        tip = "新消息来了";
      } else {
        tip = "有人@你";
      }
      push_js__WEBPACK_IMPORTED_MODULE_34___default.a.create(tip, {
        body: miscState.enableNotificationMessageDetail ? content.digest(msg) : "",
        // TODO 下面好像不生效，更新成图片链接
        icon: icon,
        timeout: 4000,
        onClick: () => {
          if (Object(_platform__WEBPACK_IMPORTED_MODULE_39__["isElectron"])()) {
            _platform__WEBPACK_IMPORTED_MODULE_39__["ipcRenderer"].send(_wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_55___default.a.CLICK_NOTIFICATION, _platform__WEBPACK_IMPORTED_MODULE_39__["currentWindow"].getMediaSourceId());
          } else {
            window.focus();
            this.close();
          }
          this.setCurrentConversation(msg.conversation);
        }
      });
    }
  },
  updateTray() {
    if (!Object(_platform__WEBPACK_IMPORTED_MODULE_39__["isElectron"])() || !miscState.isMainWindow) {
      return;
    }
    let count = 0;
    conversationState.conversationInfoList.forEach(info => {
      if (info.isSilent) {
        return;
      }
      let unreadCount = info.unreadCount;
      count += unreadCount.unread;
    });
    if (process.platform === "linux") {
      this.updateLinuxTitle(count);
    } else {
      _platform__WEBPACK_IMPORTED_MODULE_39__["ipcRenderer"].send(_wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_55___default.a.UPDATE_BADGE, count);
    }
  },
  updateLinuxTitle(unreadCount) {
    this.updateLinuxTitle.title = "野火IM";
    this.updateLinuxTitle.unreadCount = unreadCount;
    this.updateLinuxTitle.showTitle = true;
    if (!miscState.linuxUpdateTitleInterval) {
      miscState.linuxUpdateTitleInterval = setInterval(() => {
        if (this.updateLinuxTitle.showTitle || this.updateLinuxTitle.unreadCount < 1) {
          document.title = this.updateLinuxTitle.title;
        } else {
          document.title = this.updateLinuxTitle.title + " " + this.updateLinuxTitle.unreadCount;
        }
        this.updateLinuxTitle.showTitle = !this.updateLinuxTitle.showTitle;
      }, 1000);
    }
  },
  updateVoipStatus(conversation, isOngoing) {
    conversationState.conversationInfoList.forEach(ci => {
      if (ci.conversation.equal(conversation)) {
        ci._isVoipOngoing = isOngoing;
      } else {
        ci._isVoipOngoing = false;
      }
    });
  }
};
let conversationState = store.state.conversation;
let contactState = store.state.contact;
let searchState = store.state.search;
let pickState = store.state.pick;
let miscState = store.state.misc;
function _reset() {
  conversationState._reset();
  contactState._reset();
  searchState._reset();
  pickState._reset();
  miscState._reset();
}
window.__store = store;
window.stringValue = _wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["stringValue"];
window.longValue = _wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_21__["longValue"];
/* harmony default export */ __webpack_exports__["default"] = (store);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! process/browser */ "./node_modules/process/browser.js")))

/***/ }),

/***/ "./src/store/getters.js":
/*!******************************!*\
  !*** ./src/store/getters.js ***!
  \******************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
  hidden(state) {
    // eslint-disable-next-line no-unused-vars
    const temp = state.current;
    if (typeof document.hasFocus !== "function") {
      return document.hidden;
    }
    return !document.hasFocus();
  },
  cachedViews: state => state.cachedViews
});

/***/ }),

/***/ "./src/store/index.js":
/*!****************************!*\
  !*** ./src/store/index.js ***!
  \****************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_some_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.some.js */ "./node_modules/core-js/modules/es.iterator.some.js");
/* harmony import */ var core_js_modules_es_iterator_some_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_some_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _getters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getters */ "./src/store/getters.js");
/* harmony import */ var _modules_conversation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./modules/conversation */ "./src/store/modules/conversation.js");
/* harmony import */ var _modules_user__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modules/user */ "./src/store/modules/user.js");
/* harmony import */ var _modules_group__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modules/group */ "./src/store/modules/group.js");
/* harmony import */ var _modules_video__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./modules/video */ "./src/store/modules/video.js");
/* harmony import */ var _modules_app__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./modules/app */ "./src/store/modules/app.js");
/* harmony import */ var _store_modules_trtc__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/store/modules/trtc */ "./src/store/modules/trtc.js");
/* harmony import */ var _store_modules_im__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/store/modules/im */ "./src/store/modules/im.js");
/* harmony import */ var _store_modules_gwsd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/store/modules/gwsd */ "./src/store/modules/gwsd.js");
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! element-ui */ "./node_modules/element-ui/lib/element-ui.common.js");
/* harmony import */ var element_ui__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(element_ui__WEBPACK_IMPORTED_MODULE_14__);















vue__WEBPACK_IMPORTED_MODULE_3__["default"].use(vuex__WEBPACK_IMPORTED_MODULE_4__["default"]);
/* harmony default export */ __webpack_exports__["default"] = (new vuex__WEBPACK_IMPORTED_MODULE_4__["default"].Store({
  getters: _getters__WEBPACK_IMPORTED_MODULE_5__["default"],
  state: {
    current: Date.now(),
    // 当前时间
    intervalID: 0,
    message: undefined,
    placeKeywords: "",
    poiList: [],
    visualVisible: false,
    cachedViews: [],
    visitedViews: [],
    appLoadingMask: null,
    currentLocation: []
  },
  mutations: {
    SET_APP_LOADING_MASK(state, payload) {
      state.appLoadingMask = payload;
    },
    SET_CURRENT_LOCATION(state, payload) {
      state.currentLocation = payload;
    },
    SET_POI_LIST(state, list) {
      console.log("poiList", list);
      state.poiList = list;
    },
    SET_PLACE_KEYWORDS(state, keywords) {
      state.placeKeywords = keywords;
    },
    startComputeCurrent(state) {
      state.intervalID = setInterval(() => {
        state.current = Date.now();
      }, 500);
    },
    showMessage(state, options) {
      if (state.message) {
        state.message.close();
      }
      state.message = Object(element_ui__WEBPACK_IMPORTED_MODULE_14__["Message"])({
        message: options.message,
        type: options.type || "success",
        duration: options.duration || 2000,
        offset: 40
      });
    },
    SET_VISUAL_VISIBLE(state, visible) {
      state.visualVisible = visible;
    },
    ADD_VISITED_VIEWS: (state, view) => {
      var _view$meta;
      if (state.visitedViews.some(v => v.path === view.path)) return;
      state.visitedViews.push({
        name: view.name,
        path: view.path,
        title: view.meta.title || "no-name"
      });
      if ((_view$meta = view.meta) !== null && _view$meta !== void 0 && _view$meta.cache) {
        state.cachedViews.push(view.name);
      }
    }
  },
  actions: {
    addVisitedViews({
      commit
    }, view) {
      return new Promise(resolve => {
        commit("ADD_VISITED_VIEWS", view);
        resolve();
      });
    }
  },
  modules: {
    conversation: _modules_conversation__WEBPACK_IMPORTED_MODULE_6__["default"],
    user: _modules_user__WEBPACK_IMPORTED_MODULE_7__["default"],
    group: _modules_group__WEBPACK_IMPORTED_MODULE_8__["default"],
    video: _modules_video__WEBPACK_IMPORTED_MODULE_9__["default"],
    app: _modules_app__WEBPACK_IMPORTED_MODULE_10__["default"],
    trtc: _store_modules_trtc__WEBPACK_IMPORTED_MODULE_11__["default"],
    im: _store_modules_im__WEBPACK_IMPORTED_MODULE_12__["default"],
    gwsd: _store_modules_gwsd__WEBPACK_IMPORTED_MODULE_13__["default"]
  }
}));

/***/ }),

/***/ "./src/store/modules/app.js":
/*!**********************************!*\
  !*** ./src/store/modules/app.js ***!
  \**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _api_tenant_user_controller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/api/tenant-user-controller */ "./src/api/tenant-user-controller.js");

// import store from "@/store";

const app = {
  state: {
    settings: {
      title: "",
      logo: ""
    },
    showHeatmap: false,
    version: "1.2.0.20251204100745" || false
  },
  getters: {
    settings: state => {
      const url = "https://v5qy.te.baibaodun.com.cn";
      return {
        ...state.settings,
        logo: `${url}/obpm${state.settings.logo}`
      };
    },
    showHeatmap: state => state.showHeatmap,
    version: state => state.version
  },
  mutations: {
    SET_APP_SETTING(state, setting) {
      state.settings = {
        ...state.settings,
        ...setting
      };
    },
    TOGGLE_SHOW_HEATMAP(state) {
      state.showHeatmap = !state.showHeatmap;
    }
  },
  actions: {
    getSettings({
      commit
    }) {
      // 获取配置
      return Object(_api_tenant_user_controller__WEBPACK_IMPORTED_MODULE_0__["getCurrentSetting"])().then(setting => {
        console.log(setting);
        commit("SET_APP_SETTING", {
          ...{},
          ...setting
        });
        return Promise.resolve(setting);
      });
    }
  }
};
/* harmony default export */ __webpack_exports__["default"] = (app);

/***/ }),

/***/ "./src/store/modules/conversation.js":
/*!*******************************************!*\
  !*** ./src/store/modules/conversation.js ***!
  \*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.reduce.js */ "./node_modules/core-js/modules/es.array.reduce.js");
/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_iterator_reduce_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.iterator.reduce.js */ "./node_modules/core-js/modules/es.iterator.reduce.js");
/* harmony import */ var core_js_modules_es_iterator_reduce_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_reduce_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _tim__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/tim */ "./src/tim.js");
/* harmony import */ var tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tim-js-sdk/tim-js-friendship */ "./node_modules/tim-js-sdk/tim-js-friendship.js");
/* harmony import */ var tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _store_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../store/index */ "./src/store/index.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils */ "./src/utils/index.js");








// import { titleNotify } from "../../utils";

const conversationModules = {
  state: {
    currentConversation: {},
    currentMessageList: [],
    currentUserList: [],
    nextReqMessageID: "",
    isCompleted: false,
    // 当前会话消息列表是否已经拉完了所有消息
    conversationList: [],
    callingInfo: {
      memberList: [],
      type: "C2C" //C2C，GROUP
    },
    audioCall: false,
    isShowConversationList: false,
    selectedMessageList: [],
    relayType: 1,
    // 1: 转发  2: 逐条转发 3: 合并转发
    mergerMessageList: [],
    mergerMessage: {},
    relayMessage: {},
    selectMessage: false,
    hasUnreadMessage: false
  },
  getters: {
    toAccount: state => {
      if (!state.currentConversation || !state.currentConversation.conversationID) {
        return "";
      }
      switch (state.currentConversation.type) {
        case "C2C":
          return state.currentConversation.conversationID.replace("C2C", "");
        case "GROUP":
          return state.currentConversation.conversationID.replace("GROUP", "");
        default:
          return state.currentConversation.conversationID;
      }
    },
    currentConversationType: state => {
      if (!state.currentConversation || !state.currentConversation.type) {
        return "";
      }
      return state.currentConversation.type;
    },
    totalUnreadCount: state => {
      // titleNotify(result);
      return state.conversationList.reduce((count, conversation) => {
        // 当前会话不计算总未读
        if (!_store_index__WEBPACK_IMPORTED_MODULE_7__["default"].getters.hidden && state.currentConversation.conversationID === conversation.conversationID) {
          return count;
        }
        return count + conversation.unreadCount;
      }, 0);
    },
    // 用于当前会话的图片预览
    imgUrlList: state => {
      return state.currentMessageList.filter(message => message.type === tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_6___default.a.TYPES.MSG_IMAGE && !message.isRevoked) // 筛选出没有撤回并且类型是图片类型的消息
      .map(message => message.payload.imageInfoArray[0].url);
    }
  },
  mutations: {
    /**
     * 显示trtcCalling 群通话成员列表
     * @param {Object} state
     * @param {Conversation} setCallingList
     */
    setCallingList(state, {
      memberList,
      type
    }) {
      state.callingInfo.memberList = memberList;
      state.callingInfo.type = type;
    },
    /**
     * 显示trtcCalling 语音通话
     * @param {Object} state
     * @param value
     */

    showConversationList(state, value) {
      state.isShowConversationList = value;
    },
    setSelectedMessageList(state, value) {
      state.selectedMessageList = value;
    },
    setRelayType(state, value) {
      state.relayType = value;
    },
    setMergerMessage(state, value) {
      state.mergerMessage = value;
      state.mergerMessageList = [...state.mergerMessageList, value];
    },
    setRelayMessage(state, value) {
      state.relayMessage = value;
    },
    updateMergerMessage(state, value) {
      state.mergerMessage = value;
      state.mergerMessageList.pop();
    },
    setSelectedMessage(state, value) {
      state.selectMessage = value;
    },
    resetSelectedMessage(state, value) {
      state.selectMessage = value;
      Object.assign(state, {
        selectedMessageList: []
      });
    },
    resetMergerMessage(state, value) {
      state.mergerMessagePop = value;
      Object.assign(state, {
        mergerMessage: {},
        mergerMessageList: []
      });
    },
    /**
     * 显示trtcCalling 语音通话
     * @param {Object} state
     * @param {Conversation} showAudioCall
     */

    showAudioCall(state, value) {
      state.audioCall = value;
    },
    updateCurrentUserList(state, value) {
      state.currentUserList = value;
    },
    /**
     * 更新当前会话
     * 调用时机: 切换会话时
     * @param {Object} state
     * @param {Conversation} conversation
     */
    updateCurrentConversation(state, conversation) {
      console.log("conversation----", conversation);
      state.currentConversation = conversation;
      state.currentMessageList = [];
      state.nextReqMessageID = "";
      state.isCompleted = false;
    },
    updateTotalUnreadMessageCount(state, totalUnreadMessageCount) {
      state.hasUnreadMessage = totalUnreadMessageCount > 0;
    },
    /**
     * 更新会话列表
     * 调用时机：触发会话列表更新事件时。CONVERSATION_LIST_UPDATED
     * @param {Object} state
     * @param {Conversation[]} conversationList
     */
    updateConversationList(state, conversationList) {
      state.conversationList = conversationList;
    },
    /**
     * 重置当前会话
     * 调用时机：需要重置当前会话时，例如：当前会话是一个群组，正好被踢出群时（被踢群事件触发），重置当前会话
     * @param {Object} state
     */
    resetCurrentConversation(state) {
      state.currentConversation = {};
    },
    /**
     * 将消息插入当前会话列表
     * 调用时机：收/发消息事件触发时
     * @param {Object} state
     * @param {Message[]|Message} data
     * @returns
     */
    pushCurrentMessageList(state, data) {
      // 还没当前会话，则跳过
      if (!state.currentConversation.conversationID) {
        return;
      }
      if (Array.isArray(data)) {
        // 筛选出当前会话的消息
        const result = data.filter(item => item.conversationID === state.currentConversation.conversationID);
        state.currentMessageList = [...state.currentMessageList, ...result];
        Object(_utils__WEBPACK_IMPORTED_MODULE_8__["filterCallingMessage"])(state.currentMessageList);
      } else if (data.conversationID === state.currentConversation.conversationID) {
        state.currentMessageList = [...state.currentMessageList, data];
        Object(_utils__WEBPACK_IMPORTED_MODULE_8__["filterCallingMessage"])(state.currentMessageList);
        const userIDList = state.currentMessageList.map(user => user.from);
        _store_index__WEBPACK_IMPORTED_MODULE_7__["default"].dispatch("getCurrentUserList", userIDList);
      }
    },
    /**
     * 从当前消息列表中删除某条消息
     * @param {Object} state
     * @param {Message} message
     */
    removeMessage(state, message) {
      const index = state.currentMessageList.findIndex(({
        ID
      }) => ID === message.ID);
      if (index >= 0) {
        state.currentMessageList.splice(index, 1);
      }
    },
    reset(state) {
      Object.assign(state, {
        currentConversation: {},
        currentMessageList: [],
        nextReqMessageID: "",
        isCompleted: false,
        // 当前会话消息列表是否已经拉完了所有消息
        conversationList: []
      });
    }
  },
  actions: {
    /**
     * 获取消息列表
     * 调用时机：打开某一会话时或下拉获取历史消息时
     * @param {Object} context
     * @param {String} conversationID
     */
    getMessageList(context, conversationID) {
      if (context.state.isCompleted) {
        context.commit("showMessage", {
          message: "已经没有更多的历史消息了哦",
          type: "info"
        });
        return;
      }
      const {
        nextReqMessageID,
        currentMessageList
      } = context.state;
      _tim__WEBPACK_IMPORTED_MODULE_5__["default"].getMessageList({
        conversationID,
        nextReqMessageID,
        count: 15
      }).then(imReponse => {
        console.log(imReponse);
        // 更新messageID，续拉时要用到
        context.state.nextReqMessageID = imReponse.data.nextReqMessageID;
        context.state.isCompleted = imReponse.data.isCompleted || !imReponse.data.nextReqMessageID;
        // 更新当前消息列表，从头部插入
        context.state.currentMessageList = [...imReponse.data.messageList, ...currentMessageList];
        Object(_utils__WEBPACK_IMPORTED_MODULE_8__["filterCallingMessage"])(context.state.currentMessageList);
        const userIDList = context.state.currentMessageList.map(user => user.from);
        context.dispatch("getCurrentUserList", userIDList);
        console.log(context.state.currentMessageList);
      });
    },
    getCurrentUserList(context, userIDList) {
      context.state.currentUserList = [];
      let promise = _tim__WEBPACK_IMPORTED_MODULE_5__["default"].getUserProfile({
        userIDList // 请注意：即使只拉取一个用户的资料，也需要用数组类型，例如：userIDList: ['user1']
      });
      promise.then(function (imResponse) {
        console.log(imResponse.data); // 存储用户资料的数组 - [Profile]
        context.state.currentUserList = imResponse.data;
      }).catch(function (imError) {
        console.warn("getUserProfile error:", imError); // 获取其他用户资料失败的相关信息
      });
    },
    /**
     * 切换会话
     * 调用时机：切换会话时
     * @param {Object} context
     * @param {String} conversationID
     */
    checkoutConversation(context, conversationID) {
      context.commit("resetCurrentMemberList");
      context.commit("resetSelectedMessage", false);
      // context.commit("resetFriendContent");
      // 1.切换会话前，将切换前的会话进行已读上报
      if (context.state.currentConversation.conversationID) {
        const prevConversationID = context.state.currentConversation.conversationID;
        _tim__WEBPACK_IMPORTED_MODULE_5__["default"].setMessageRead({
          conversationID: prevConversationID
        });
      }
      // 2.待切换的会话也进行已读上报
      _tim__WEBPACK_IMPORTED_MODULE_5__["default"].setMessageRead({
        conversationID
      });
      // 3. 获取会话信息
      return _tim__WEBPACK_IMPORTED_MODULE_5__["default"].getConversationProfile(conversationID).then(({
        data
      }) => {
        console.log(data);
        // 3.1 更新当前会话
        context.commit("updateCurrentConversation", data.conversation);
        // 3.2 获取消息列表
        context.dispatch("getMessageList", conversationID);
        // 3.3 拉取第一页群成员列表
        if (data.conversation.type === tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_6___default.a.TYPES.CONV_GROUP) {
          return context.dispatch("getGroupMemberList", data.conversation.groupProfile.groupID);
        }
        return Promise.resolve();
      });
    }
  }
};
/* harmony default export */ __webpack_exports__["default"] = (conversationModules);

/***/ }),

/***/ "./src/store/modules/group.js":
/*!************************************!*\
  !*** ./src/store/modules/group.js ***!
  \************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tim__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/tim */ "./src/tim.js");



const groupModules = {
  state: {
    groupList: [],
    currentMemberList: [],
    createGroupModelVisible: false
  },
  getters: {
    hasGroupList: state => state.groupList.length > 0
  },
  mutations: {
    updateGroupList(state, groupList) {
      console.log("updateGroupList", groupList);
      state.groupList = groupList;
    },
    updateCreateGroupModelVisible(state, visible) {
      state.createGroupModelVisible = visible;
    },
    updateCurrentMemberList(state, memberList) {
      state.currentMemberList = [...state.currentMemberList, ...memberList];
    },
    deleteGroupMemeber(state, userID) {
      state.currentMemberList = state.currentMemberList.filter(member => member.userID !== userID);
    },
    deleteGroupMemberList(state, userIDList) {
      state.currentMemberList = state.currentMemberList.filter(member => !userIDList.includes(member.userID));
    },
    resetCurrentMemberList(state) {
      state.currentMemberList = [];
    },
    reset(state) {
      Object.assign(state, {
        groupList: [],
        currentMemberList: [],
        createGroupModelVisible: false
      });
    }
  },
  actions: {
    updateGroupList(context, groupList) {
      context.commit("updateGroupList", groupList);
    },
    getGroupMemberList(context, groupID) {
      return _tim__WEBPACK_IMPORTED_MODULE_2__["default"].getGroupMemberList({
        groupID: groupID,
        offset: context.state.currentMemberList.length,
        count: 30
      }).then(imResponse => {
        context.commit("updateCurrentMemberList", imResponse.data.memberList);
        return imResponse;
      });
    }
  }
};
/* harmony default export */ __webpack_exports__["default"] = (groupModules);

/***/ }),

/***/ "./src/store/modules/gwsd.js":
/*!***********************************!*\
  !*** ./src/store/modules/gwsd.js ***!
  \***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _api_gwsd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/api/gwsd */ "./src/api/gwsd/index.js");





const gwsdModules = {
  state: {
    // 调度员PTT账号信息，刷新页面后自动在@/api/auth.js中赋值
    account: {
      adminName: "ttadmin3",
      // 一个公司共用的账号，写死
      account: "",
      coordSaveDays: 0,
      name: "",
      password: "",
      uid: null,
      id: ""
    },
    // 音视频调度员的状态
    yardman: {
      type: "1",
      // 调度类型：1视频调度 2 视频上拉（只看远端视频，本地不显示不播放）：除了视频上拉传2，其他音频调度与视频调度都传1
      callType: "video",
      isMutedAudio: false,
      // 是否静音
      isMutedVideo: false,
      // 是否关闭视频
      video: true,
      // 是否开启视频
      audio: true,
      // 是否开启音频
      isCallVideo: false // 是否发起静默拉取或 监控
    },
    // 调度组群信息
    groupInfo: {
      groupName: "",
      groupId: null
    },
    memberList: [],
    // 被调度组群成员列表(周边调度被勾选中的人)
    dispatchMembers: [],
    // 周边调度成员列表
    participant: [],
    // 参会人列表，包括调度员和被调度人
    unParticipated: [] // 未参与人员列表
  },
  getters: {
    pttGroupId: state => state.groupInfo.groupId,
    pttGroupName: state => state.groupInfo.groupName,
    roomId: state => state.account.uid
  },
  mutations: {
    SET_MEMBER_LIST(state, list = []) {
      state.memberList = list;
    },
    SET_PARTICIPANT(state, list = []) {
      state.participant = list;
    },
    SET_DISPATCH_MEMBERS(state, list = []) {
      state.dispatchMembers = list;
    },
    UPDATE_DISPATCH_MEMBERS(state, {
      index,
      member
    }) {
      state.dispatchMembers[index] = member;
    },
    UPDATE_UN_PARTICIPATED(state, {
      index,
      member
    }) {
      state.unParticipated[index] = member;
    },
    UNCHECK_ALL_UN_PARTICIPANT(state) {
      state.unParticipated.forEach(item => {
        item.checked = false;
      });
    },
    SET_PTT_ACCOUNT(state, info) {
      state.account = {
        ...{},
        ...info,
        adminName: "ttadmin3"
      };
    },
    SET_YARDMAN(state, info) {
      state.yardman = {
        ...state.yardman,
        ...info
      };
    },
    // 调度员禁麦、开麦
    SET_YARDMAN_AUDIO_MUTED(state, isMuted) {
      state.yardman.isMutedAudio = isMuted;
    },
    SET_YARDMAN_VIDEO_MUTED(state, isMuted) {
      state.yardman.isMutedVideo = isMuted;
    }
  },
  actions: {
    // 创建组群，获取groupId
    async createPTTGroup({
      state
    }, payload) {
      return Object(_api_gwsd__WEBPACK_IMPORTED_MODULE_4__["createGroup"])(payload).then(res => {
        console.log("createGroup", res);
        const {
          status,
          data
        } = res;
        if (status === 200) {
          const {
            disId
          } = data;
          state.groupInfo.groupId = disId;
          state.groupInfo.groupName = payload.name;
        }
        return Promise.resolve(res);
      });
    },
    async dismissPTTGroup({
      state
    }, payload) {
      return Object(_api_gwsd__WEBPACK_IMPORTED_MODULE_4__["delGroup"])(payload).then(res => {
        state.groupInfo.groupId = null;
        state.groupInfo.groupName = "";
        return Promise.resolve(res);
      });
    },
    /**
     * 删除成员
     * @param state
     * @param commit
     * @param {string} payload
     * @returns {Promise<*>}
     */
    async removePTTGroupUser({
      state,
      commit
    }, payload) {
      return Object(_api_gwsd__WEBPACK_IMPORTED_MODULE_4__["removeUsers"])({
        adminName: state.account.adminName,
        gid: state.groupInfo.groupId,
        accountLists: [payload]
      }).then(res => {
        console.log(res);
        // dispatch("getParticipant");
        const memberList = state.memberList.filter(item => item.dispatchNo !== payload);
        commit("SET_MEMBER_LIST", memberList);
        const index = state.dispatchMembers.findIndex(item => item.dispatchNo === payload);
        commit("UPDATE_DISPATCH_MEMBERS", {
          index,
          member: {
            ...state.dispatchMembers[index],
            active: false
          }
        });
        return res;
      });
    },
    getUnParticipated({
      state
    }) {
      const dispatchMembers = state.dispatchMembers;
      const memberList = dispatchMembers.filter(item => item.status === "Online" && !item.active);
      state.unParticipated = memberList.map(member => {
        return {
          ...member,
          name: member.dispatchNo,
          nameSlice: member.dispatchNo.slice(-3),
          checked: false
        };
      });
      return state.unParticipated;
    },
    /**
     * 添加成员
     * @param state
     * @param commit
     * @param {string[]} payload 要添加成员的dispatchNo集合
     * @returns {Promise<T>}
     */
    async addPTTGroupUsers({
      state,
      commit
    }, payload) {
      return Object(_api_gwsd__WEBPACK_IMPORTED_MODULE_4__["addUsers"])({
        adminName: state.account.adminName,
        gid: state.groupInfo.groupId,
        accountLists: payload
      }).then(res => {
        console.log(res);
        /**
         * 1、先更新state.dispatchMembers，dispatchMembers中dispatchNo存在于payload中的active为true,这样做是为了调度弹框中同步勾选起添加成员
         */
        state.dispatchMembers.forEach(item => {
          if (payload.includes(item.dispatchNo)) {
            item.active = true;
          }
        });
        /**
         * 2、更新state.memberList，把dispatchMembers中active为true的元素添加进memberList里
         */
        const memberList = state.memberList.concat(state.dispatchMembers.filter(item => item.active));
        commit("SET_MEMBER_LIST", memberList);
        return res;
      });
    },
    addMQTTGroupUsers({
      state,
      commit
    }, payload) {
      state.dispatchMembers.forEach(item => {
        if (payload.includes(item.dispatchNo)) {
          item.active = true;
          item.state = "CONNECTING";
          item.isMutedAudio = true;
        }
      });
      /**
       * 2、更新state.memberList，把dispatchMembers中active为true的元素添加进memberList里
       */
      const memberList = state.dispatchMembers.filter(item => item.active);
      console.log("addMQTTGroupUsers", memberList);
      commit("SET_MEMBER_LIST", memberList);
    },
    async clearGroup({
      state,
      dispatch
    }) {
      const {
        data
      } = await Object(_api_gwsd__WEBPACK_IMPORTED_MODULE_4__["dispatchGroupList"])({
        adminName: state.account.adminName
      });
      console.log(data);
      if (data && data.length > 0) {
        await dispatch("dismissPTTGroup", {
          adminName: state.account.adminName,
          gid: data[0].id
        });
      }
    },
    async getParticipant({
      state,
      commit
    }) {
      const {
        data
      } = await Object(_api_gwsd__WEBPACK_IMPORTED_MODULE_4__["dispatchUsers"])({
        gid: state.groupInfo.groupId
      });
      console.log("getParticipant data", data);
      if (data && data.length > 0) {
        commit("SET_PARTICIPANT", data);
        return Promise.resolve(data);
      }
    },
    async setYardman({
      commit
    }, payload) {
      commit("SET_YARDMAN", payload);
    }
  }
};
/* harmony default export */ __webpack_exports__["default"] = (gwsdModules);

/***/ }),

/***/ "./src/store/modules/im.js":
/*!*********************************!*\
  !*** ./src/store/modules/im.js ***!
  \*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
const imModules = {
  state: {
    pageName: "ConversationPage"
  },
  getters: {
    pageName: state => state.pageName
  },
  mutations: {
    SET_PAGE_NAME(state, name) {
      state.pageName = name;
    }
  },
  actions: {}
};
/* harmony default export */ __webpack_exports__["default"] = (imModules);

/***/ }),

/***/ "./src/store/modules/trtc.js":
/*!***********************************!*\
  !*** ./src/store/modules/trtc.js ***!
  \***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
const trtcModules = {
  state: {
    roomId: null
  },
  getters: {},
  mutations: {
    SET_ROOM_ID(state, id) {
      state.roomId = id;
    }
  },
  actions: {
    setRoomId(context, roomId) {
      context.commit("SET_ROOM_ID", roomId);
    }
  }
};
/* harmony default export */ __webpack_exports__["default"] = (trtcModules);

/***/ }),

/***/ "./src/store/modules/user.js":
/*!***********************************!*\
  !*** ./src/store/modules/user.js ***!
  \***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.find.js */ "./node_modules/core-js/modules/es.iterator.find.js");
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tim__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/tim */ "./src/tim.js");



// import { getCurrentUser } from "@/api/tenant-user-controller";
const user = {
  state: {
    sysUserInfo: {},
    currentUserProfile: {},
    isLogin: false,
    isSDKReady: false,
    // TIM SDK 是否 ready
    userID: 0,
    userSig: "",
    sdkAppID: 0,
    dispatchClient: ""
  },
  getters: {
    myPhone: state => {
      if (!state.currentUserProfile.profileCustomField) {
        return "";
      }
      return state.currentUserProfile.profileCustomField.find(item => item.key === "Tag_Profile_Custom_phone");
    },
    myCompany: state => {
      if (!state.currentUserProfile.profileCustomField) {
        return "";
      }
      return state.currentUserProfile.profileCustomField.find(item => item.key === "Tag_Profile_Custom_InCom");
    },
    sysUserInfo: state => {
      return state.sysUserInfo;
    },
    dispatchClient: state => {
      return state.dispatchClient;
    }
  },
  mutations: {
    updateCurrentUserProfile(state, userProfile) {
      console.log("userProfile", userProfile);
      state.currentUserProfile = userProfile;
    },
    toggleIsLogin(state, isLogin) {
      state.isLogin = typeof isLogin === "undefined" ? !state.isLogin : isLogin;
    },
    toggleIsSDKReady(state, isSDKReady) {
      state.isSDKReady = typeof isSDKReady === "undefined" ? !state.isSDKReady : isSDKReady;
    },
    reset(state) {
      Object.assign(state, {
        currentUserProfile: {},
        isLogin: false,
        isSDKReady: false // TIM SDK 是否 ready
      });
    },
    GET_USER_INFO(state, payload) {
      state.userID = payload.userID;
      state.userSig = payload.userSig;
      state.sdkAppID = payload.sdkAppID;
    },
    SET_SYS_USER_INFO(state, payload) {
      state.sysUserInfo = {
        ...{},
        ...payload
      };
    },
    SET_DISPATCH_CLIENT(state, payload) {
      state.dispatchClient = payload;
    }
  },
  actions: {
    // login(context, userID) {
    //   tim
    //     .login({
    //       userID,
    //       userSig: window.genTestUserSig(userID).userSig
    //     })
    //     .then(() => {
    //       context.commit('toggleIsLogin', true)
    //       context.commit('startComputeCurrent')
    //       window.$message({ type: 'success', message: '登录成功' })
    //     })
    //     .catch(imError => {
    //       if (imError.code === 2000) {
    //         window.$message.error(imError.message + ', 请检查是否正确填写了 SDKAPPID')
    //       } else {
    //         window.$message.error(imError.message)
    //       }
    //     })
    // },
    logout(context) {
      // 若有当前会话，在退出登录时已读上报
      if (context.rootState.conversation.currentConversation.conversationID) {
        _tim__WEBPACK_IMPORTED_MODULE_2__["default"].setMessageRead({
          conversationID: context.rootState.conversation.currentConversation.conversationID
        });
      }
      _tim__WEBPACK_IMPORTED_MODULE_2__["default"].logout().then(() => {
        context.commit("toggleIsLogin");
        context.commit("stopComputeCurrent");
        context.commit("reset");
      });
    }
  }
};
/* harmony default export */ __webpack_exports__["default"] = (user);

/***/ }),

/***/ "./src/store/modules/video.js":
/*!************************************!*\
  !*** ./src/store/modules/video.js ***!
  \************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
const video = {
  state: {
    videoRoom: 0,
    isBusy: false,
    dispatching: false
  },
  mutations: {
    GENERATE_VIDEO_ROOM(state, videoRoom) {
      if (videoRoom) {
        state.videoRoom = videoRoom;
      } else {
        state.videoRoom = Math.ceil(Math.random() * (2 ** 32 - 1));
      }
    },
    UPDATE_ISBUSY(state, isBusy) {
      state.isBusy = isBusy;
    },
    TOGGLE_DISPATCHING(state, dispatching) {
      state.dispatching = dispatching;
    }
  }
};
/* harmony default export */ __webpack_exports__["default"] = (video);

/***/ }),

/***/ "./src/styles/index.scss":
/*!*******************************!*\
  !*** ./src/styles/index.scss ***!
  \*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-3-1!../../node_modules/postcss-loader/src??ref--9-oneOf-3-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-3-3!./index.scss */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./src/styles/index.scss");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("410837c9", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./src/tim.js":
/*!********************!*\
  !*** ./src/tim.js ***!
  \********************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var tim_js_sdk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tim-js-sdk */ "./node_modules/tim-js-sdk/tim-js.js");
/* harmony import */ var tim_js_sdk__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(tim_js_sdk__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var tim_upload_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tim-upload-plugin */ "./node_modules/tim-upload-plugin/index.js");
/* harmony import */ var tim_upload_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(tim_upload_plugin__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var tim_profanity_filter_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tim-profanity-filter-plugin */ "./node_modules/tim-profanity-filter-plugin/index.js");
/* harmony import */ var tim_profanity_filter_plugin__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(tim_profanity_filter_plugin__WEBPACK_IMPORTED_MODULE_2__);
/**
 * @腾讯IM
 */

// 从v2.11.2起，SDK 支持了 WebSocket，推荐接入；v2.10.2及以下版本，使用 HTTP
// v2.24.0起，SDK 支持使用本地审核插件



console.log("SDKAppID================================", "1400522511");
let options = {
  SDKAppID: Number("1400522511") // 接入时需要将0替换为您的即时通信 IM 应用的 SDKAppID
};
// 创建 SDK 实例，`TIM.create()`方法对于同一个 `SDKAppID` 只会返回同一份实例
let tim = tim_js_sdk__WEBPACK_IMPORTED_MODULE_0___default.a.create(options); // SDK 实例通常用 tim 表示

// 设置 SDK 日志输出级别
// 0 普通级别，日志量较多，接入时建议使用
// 1 release级别，SDK 输出关键信息，生产环境时建议使用
// 2 告警级别，SDK 只输出告警和错误级别的日志
// 3 错误级别，SDK 只输出错误级别的日志
// 4 无日志级别，SDK 将不打印任何日志
tim.setLogLevel( false ? undefined : 1);

// 注册腾讯云即时通信 IM 上传插件
tim.registerPlugin({
  "tim-upload-plugin": tim_upload_plugin__WEBPACK_IMPORTED_MODULE_1___default.a
});

// 注册腾讯云即时通信 IM 本地审核插件
tim.registerPlugin({
  "tim-profanity-filter-plugin": tim_profanity_filter_plugin__WEBPACK_IMPORTED_MODULE_2___default.a
});
/* harmony default export */ __webpack_exports__["default"] = (tim);

/***/ }),

/***/ "./src/ui/common/Alert.js":
/*!********************************!*\
  !*** ./src/ui/common/Alert.js ***!
  \********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _AlertView_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AlertView.vue */ "./src/ui/common/AlertView.vue");

/* harmony default export */ __webpack_exports__["default"] = ({
  install(Vue) {
    Vue.prototype.$alert = function (options) {
      let beforeOpen = () => {
        console.log("Opening...");
      };
      let beforeClose = event => {
        // What a gamble... 50% chance to cancel closing
        if (!event.params) {
          return;
        }
        if (event.params.confirm) {
          options.confirmCallback && options.confirmCallback();
        } else {
          options.cancelCallback && options.cancelCallback();
        }
      };
      let closed = event => {
        console.log("Close...", event);
      };
      let showIcon = options.showIcon !== undefined;
      this.$modal.show(_AlertView_vue__WEBPACK_IMPORTED_MODULE_0__["default"], {
        showIcon: showIcon,
        title: options.title,
        content: options.content,
        cancelText: options.cancelText,
        confirmText: options.confirmText
      }, {
        name: "alert-modal",
        clickToClose: true,
        adaptive: true,
        width: 260,
        height: showIcon ? 200 : 150,
        borderRadius: 10
      }, {
        "before-open": beforeOpen,
        "before-close": beforeClose,
        closed: closed
      });
    };
  }
});

/***/ }),

/***/ "./src/ui/common/AlertView.vue":
/*!*************************************!*\
  !*** ./src/ui/common/AlertView.vue ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _AlertView_vue_vue_type_template_id_28d02aa2_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AlertView.vue?vue&type=template&id=28d02aa2&scoped=true */ "./src/ui/common/AlertView.vue?vue&type=template&id=28d02aa2&scoped=true");
/* harmony import */ var _AlertView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AlertView.vue?vue&type=script&lang=js */ "./src/ui/common/AlertView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _AlertView_vue_vue_type_style_index_0_id_28d02aa2_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css */ "./src/ui/common/AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");






/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _AlertView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _AlertView_vue_vue_type_template_id_28d02aa2_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"],
  _AlertView_vue_vue_type_template_id_28d02aa2_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "28d02aa2",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/ui/common/AlertView.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/ui/common/AlertView.vue?vue&type=script&lang=js":
/*!*************************************************************!*\
  !*** ./src/ui/common/AlertView.vue?vue&type=script&lang=js ***!
  \*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib??vue-loader-options!./AlertView.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/common/AlertView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/ui/common/AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css":
/*!*********************************************************************************************!*\
  !*** ./src/ui/common/AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css ***!
  \*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_style_index_0_id_28d02aa2_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-style-loader??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib??vue-loader-options!./AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css */ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/common/AlertView.vue?vue&type=style&index=0&id=28d02aa2&scoped=true&lang=css");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_style_index_0_id_28d02aa2_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_style_index_0_id_28d02aa2_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_style_index_0_id_28d02aa2_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_style_index_0_id_28d02aa2_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ "./src/ui/common/AlertView.vue?vue&type=template&id=28d02aa2&scoped=true":
/*!*******************************************************************************!*\
  !*** ./src/ui/common/AlertView.vue?vue&type=template&id=28d02aa2&scoped=true ***!
  \*******************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_template_id_28d02aa2_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib??vue-loader-options!./AlertView.vue?vue&type=template&id=28d02aa2&scoped=true */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/common/AlertView.vue?vue&type=template&id=28d02aa2&scoped=true");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_template_id_28d02aa2_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AlertView_vue_vue_type_template_id_28d02aa2_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ }),

/***/ "./src/ui/common/Forward.js":
/*!**********************************!*\
  !*** ./src/ui/common/Forward.js ***!
  \**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/store.js */ "./src/store.js");
/* harmony import */ var _main_conversation_message_forward_ForwardMessageByPickConversationView__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../main/conversation/message/forward/ForwardMessageByPickConversationView */ "./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue");
/* harmony import */ var _main_conversation_message_forward_ForwardMessageByCreateConversationView__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../main/conversation/message/forward/ForwardMessageByCreateConversationView */ "./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue");



/* harmony default export */ __webpack_exports__["default"] = ({
  install(Vue) {
    Vue.prototype.$forwardMessage = function (options) {
      const pickConversationAndForwardMessage = (forwardType, messages) => {
        return new Promise((resolve, reject) => {
          let beforeClose = event => {
            console.log("Closing...", event, event.params);
            // What a gamble... 50% chance to cancel closing
            if (event.params.toCreateConversation) {
              // Promise.race([createConversationAndForwardMessage(forwardType, messages)])
              //     .then(resolve)
              //     .catch(reject);
              createConversationAndForwardMessage(forwardType, messages).then(resolve).catch(reject);
            } else if (event.params.confirm) {
              let conversations = event.params.conversations;
              let extraMessageText = event.params.extraMessageText;
              _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].forwardMessage(forwardType, conversations, messages, extraMessageText);
              resolve();
            } else {
              console.log("cancel");
              reject();
            }
          };
          this.$modal.show(_main_conversation_message_forward_ForwardMessageByPickConversationView__WEBPACK_IMPORTED_MODULE_1__["default"], {
            forwardType: forwardType,
            messages: messages
          }, {
            name: "forward-by-pick-conversation-modal",
            width: 600,
            height: 480,
            clickToClose: false
          }, {
            "before-close": beforeClose
          });
        });
      };
      const createConversationAndForwardMessage = (forwardType, messages) => {
        return new Promise((resolve, reject) => {
          let beforeClose = event => {
            console.log("Closing...", event, event.params);
            if (event.params.backPickConversation) {
              // Promise.race([pickConversationAndForwardMessage(forwardType, messages)])
              //     .then(resolve)
              //     .catch(reject);
              pickConversationAndForwardMessage(forwardType, messages).then(resolve).then(reject);
            } else if (event.params.confirm) {
              let users = event.params.users;
              let extraMessageText = event.params.extraMessageText;
              _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].forwardByCreateConversation(forwardType, users, messages, extraMessageText);
              resolve();
            } else {
              console.log("cancel");
              reject();
            }
          };
          this.$modal.show(_main_conversation_message_forward_ForwardMessageByCreateConversationView__WEBPACK_IMPORTED_MODULE_2__["default"], {
            forwardType: forwardType,
            messages: messages,
            users: _store_js__WEBPACK_IMPORTED_MODULE_0__["default"].state.contact.friendList
          }, {
            name: "forward-by-create-conversation-modal",
            width: 600,
            height: 480,
            clickToClose: false
          }, {
            "before-close": beforeClose
          });
        });
      };
      //return pickConversationAndForwardMessage(ForwardType.NORMAL, [message]);
      return pickConversationAndForwardMessage(options.forwardType, options.messages);
    };
  }
});

/***/ }),

/***/ "./src/ui/common/Picker.js":
/*!*********************************!*\
  !*** ./src/ui/common/Picker.js ***!
  \*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _main_pick_PickUserView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../main/pick/PickUserView */ "./src/ui/main/pick/PickUserView.vue");
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/store.js */ "./src/store.js");


/* harmony default export */ __webpack_exports__["default"] = ({
  install(Vue) {
    Vue.prototype.$pickContact = function (options) {
      let beforeClose = event => {
        if (event.params.confirm) {
          let users = event.params.users;
          options.successCB && options.successCB(users);
        } else {
          options.failCB && options.failCB(-1);
        }
      };
      this.$modal.show(_main_pick_PickUserView__WEBPACK_IMPORTED_MODULE_0__["default"], {
        users: options.users ? options.users : _store_js__WEBPACK_IMPORTED_MODULE_1__["default"].state.contact.favContactList.concat(_store_js__WEBPACK_IMPORTED_MODULE_1__["default"].state.contact.friendList),
        initialCheckedUsers: options.initialCheckedUsers,
        uncheckableUsers: options.uncheckableUsers,
        showCategoryLabel: options.showCategoryLabel !== false,
        showOrganization: !!options.showOrganization,
        confirmTitle: options.confirmTitle ? options.confirmTitle : "确定"
      }, {
        name: "pick-user-modal",
        width: 600,
        height: 480,
        clickToClose: false
      }, {
        // 'before-open': this.beforeOpen,
        "before-close": beforeClose
        // 'closed': this.closed,
      });
    };
  }
});

/***/ }),

/***/ "./src/ui/common/Voip.js":
/*!*******************************!*\
  !*** ./src/ui/common/Voip.js ***!
  \*******************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/store.js */ "./src/store.js");
/* harmony import */ var _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../wfc/model/conversationType */ "./src/wfc/model/conversationType.js");
/* harmony import */ var _wfc_av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../wfc/av/engine/avenginekitproxy */ "./src/wfc/av/engine/avenginekitproxy.js");
/* harmony import */ var _ipc_ipcSub__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../ipc/ipcSub */ "./src/ipc/ipcSub.js");


// import PickUserView from "../main/pick/PickUserView";




/* harmony default export */ __webpack_exports__["default"] = ({
  install(Vue) {
    Vue.prototype.$startVoipCall = function (options) {
      let {
        audioOnly,
        conversation
      } = options;
      if (_store_js__WEBPACK_IMPORTED_MODULE_2__["default"].state.misc.isMainWindow) {
        if (conversation.type === _wfc_model_conversationType__WEBPACK_IMPORTED_MODULE_3__["default"].Single) {
          _wfc_av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_4__["default"].startCall(conversation, audioOnly, [conversation.target]);
        } else {
          let successCB = users => {
            let participantIds = users.map(u => u.uid);
            _wfc_av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_4__["default"].startCall(conversation, audioOnly, participantIds);
          };
          this.$pickContact({
            successCB,
            users: _store_js__WEBPACK_IMPORTED_MODULE_2__["default"].getGroupMemberUserInfos(conversation.target, true, true),
            initialCheckedUsers: [_store_js__WEBPACK_IMPORTED_MODULE_2__["default"].state.contact.selfUserInfo],
            uncheckableUsers: [_store_js__WEBPACK_IMPORTED_MODULE_2__["default"].state.contact.selfUserInfo],
            confirmTitle: this.$t("common.confirm")
          });
        }
      } else {
        _ipc_ipcSub__WEBPACK_IMPORTED_MODULE_5__["default"].startVoipCall(conversation, audioOnly);
      }
    };
  }
});

/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue":
/*!*********************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue ***!
  \*********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ForwardMessageByCreateConversationView_vue_vue_type_template_id_9db52e12_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ForwardMessageByCreateConversationView.vue?vue&type=template&id=9db52e12&scoped=true */ "./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=template&id=9db52e12&scoped=true");
/* harmony import */ var _ForwardMessageByCreateConversationView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ForwardMessageByCreateConversationView.vue?vue&type=script&lang=js */ "./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _ForwardMessageByCreateConversationView_vue_vue_type_style_index_0_id_9db52e12_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true */ "./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");






/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _ForwardMessageByCreateConversationView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _ForwardMessageByCreateConversationView_vue_vue_type_template_id_9db52e12_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"],
  _ForwardMessageByCreateConversationView_vue_vue_type_template_id_9db52e12_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "9db52e12",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=script&lang=js":
/*!*********************************************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=script&lang=js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/babel-loader/lib!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageByCreateConversationView.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true":
/*!*****************************************************************************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true ***!
  \*****************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_style_index_0_id_9db52e12_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/vue-style-loader??ref--7-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true */ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=style&index=0&id=9db52e12&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_style_index_0_id_9db52e12_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_style_index_0_id_9db52e12_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_style_index_0_id_9db52e12_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_style_index_0_id_9db52e12_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=template&id=9db52e12&scoped=true":
/*!***************************************************************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=template&id=9db52e12&scoped=true ***!
  \***************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_template_id_9db52e12_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/babel-loader/lib!../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageByCreateConversationView.vue?vue&type=template&id=9db52e12&scoped=true */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByCreateConversationView.vue?vue&type=template&id=9db52e12&scoped=true");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_template_id_9db52e12_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByCreateConversationView_vue_vue_type_template_id_9db52e12_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue":
/*!*******************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ForwardMessageByPickConversationView_vue_vue_type_template_id_3a34665c_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ForwardMessageByPickConversationView.vue?vue&type=template&id=3a34665c&scoped=true */ "./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=template&id=3a34665c&scoped=true");
/* harmony import */ var _ForwardMessageByPickConversationView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ForwardMessageByPickConversationView.vue?vue&type=script&lang=js */ "./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _ForwardMessageByPickConversationView_vue_vue_type_style_index_0_id_3a34665c_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true */ "./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");






/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _ForwardMessageByPickConversationView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _ForwardMessageByPickConversationView_vue_vue_type_template_id_3a34665c_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"],
  _ForwardMessageByPickConversationView_vue_vue_type_template_id_3a34665c_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "3a34665c",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=script&lang=js":
/*!*******************************************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=script&lang=js ***!
  \*******************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/babel-loader/lib!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageByPickConversationView.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true":
/*!***************************************************************************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true ***!
  \***************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_style_index_0_id_3a34665c_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/vue-style-loader??ref--7-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true */ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=style&index=0&id=3a34665c&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_style_index_0_id_3a34665c_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_style_index_0_id_3a34665c_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_style_index_0_id_3a34665c_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_style_index_0_id_3a34665c_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=template&id=3a34665c&scoped=true":
/*!*************************************************************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=template&id=3a34665c&scoped=true ***!
  \*************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_template_id_3a34665c_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/babel-loader/lib!../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageByPickConversationView.vue?vue&type=template&id=3a34665c&scoped=true */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageByPickConversationView.vue?vue&type=template&id=3a34665c&scoped=true");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_template_id_3a34665c_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageByPickConversationView_vue_vue_type_template_id_3a34665c_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageView.vue":
/*!*************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageView.vue ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ForwardMessageView_vue_vue_type_template_id_8df1e6fe_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ForwardMessageView.vue?vue&type=template&id=8df1e6fe&scoped=true */ "./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=template&id=8df1e6fe&scoped=true");
/* harmony import */ var _ForwardMessageView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ForwardMessageView.vue?vue&type=script&lang=js */ "./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _ForwardMessageView_vue_vue_type_style_index_0_id_8df1e6fe_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true */ "./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");






/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _ForwardMessageView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _ForwardMessageView_vue_vue_type_template_id_8df1e6fe_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"],
  _ForwardMessageView_vue_vue_type_template_id_8df1e6fe_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "8df1e6fe",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/ui/main/conversation/message/forward/ForwardMessageView.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=script&lang=js":
/*!*************************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=script&lang=js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/babel-loader/lib!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageView.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true":
/*!*********************************************************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true ***!
  \*********************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_style_index_0_id_8df1e6fe_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/vue-style-loader??ref--7-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true */ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=style&index=0&id=8df1e6fe&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_style_index_0_id_8df1e6fe_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_style_index_0_id_8df1e6fe_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_style_index_0_id_8df1e6fe_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_style_index_0_id_8df1e6fe_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=template&id=8df1e6fe&scoped=true":
/*!*******************************************************************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=template&id=8df1e6fe&scoped=true ***!
  \*******************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_template_id_8df1e6fe_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/babel-loader/lib!../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib??vue-loader-options!./ForwardMessageView.vue?vue&type=template&id=8df1e6fe&scoped=true */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/conversation/message/forward/ForwardMessageView.vue?vue&type=template&id=8df1e6fe&scoped=true");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_template_id_8df1e6fe_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ForwardMessageView_vue_vue_type_template_id_8df1e6fe_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ }),

/***/ "./src/ui/main/conversation/message/forward/ForwardType.js":
/*!*****************************************************************!*\
  !*** ./src/ui/main/conversation/message/forward/ForwardType.js ***!
  \*****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ForwardType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

class ForwardType {}
/**
 * 普通转发
 * @type {number}
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ForwardType, "NORMAL", 0);
/**
 * 逐条转发
 * @type {number}
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ForwardType, "ONE_BY_ONE", 1);
/**
 * 合并转发
 * @type {number}
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ForwardType, "COMPOSITE", 2);

/***/ }),

/***/ "./src/ui/main/pick/CheckableOrganizationTreeView.vue":
/*!************************************************************!*\
  !*** ./src/ui/main/pick/CheckableOrganizationTreeView.vue ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _CheckableOrganizationTreeView_vue_vue_type_template_id_ab1b3144_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CheckableOrganizationTreeView.vue?vue&type=template&id=ab1b3144&scoped=true */ "./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=template&id=ab1b3144&scoped=true");
/* harmony import */ var _CheckableOrganizationTreeView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CheckableOrganizationTreeView.vue?vue&type=script&lang=js */ "./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _CheckableOrganizationTreeView_vue_vue_type_style_index_0_id_ab1b3144_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true */ "./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");






/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _CheckableOrganizationTreeView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _CheckableOrganizationTreeView_vue_vue_type_template_id_ab1b3144_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"],
  _CheckableOrganizationTreeView_vue_vue_type_template_id_ab1b3144_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "ab1b3144",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/ui/main/pick/CheckableOrganizationTreeView.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=script&lang=js":
/*!************************************************************************************!*\
  !*** ./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=script&lang=js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableOrganizationTreeView.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true":
/*!********************************************************************************************************************!*\
  !*** ./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true ***!
  \********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_style_index_0_id_ab1b3144_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true */ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=style&index=0&id=ab1b3144&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_style_index_0_id_ab1b3144_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_style_index_0_id_ab1b3144_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_style_index_0_id_ab1b3144_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_style_index_0_id_ab1b3144_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ "./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=template&id=ab1b3144&scoped=true":
/*!******************************************************************************************************!*\
  !*** ./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=template&id=ab1b3144&scoped=true ***!
  \******************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_template_id_ab1b3144_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableOrganizationTreeView.vue?vue&type=template&id=ab1b3144&scoped=true */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/CheckableOrganizationTreeView.vue?vue&type=template&id=ab1b3144&scoped=true");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_template_id_ab1b3144_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableOrganizationTreeView_vue_vue_type_template_id_ab1b3144_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ }),

/***/ "./src/ui/main/pick/PickUserView.vue":
/*!*******************************************!*\
  !*** ./src/ui/main/pick/PickUserView.vue ***!
  \*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _PickUserView_vue_vue_type_template_id_8f3499ca_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PickUserView.vue?vue&type=template&id=8f3499ca&scoped=true */ "./src/ui/main/pick/PickUserView.vue?vue&type=template&id=8f3499ca&scoped=true");
/* harmony import */ var _PickUserView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PickUserView.vue?vue&type=script&lang=js */ "./src/ui/main/pick/PickUserView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _PickUserView_vue_vue_type_style_index_0_id_8f3499ca_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true */ "./src/ui/main/pick/PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");






/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _PickUserView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _PickUserView_vue_vue_type_template_id_8f3499ca_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"],
  _PickUserView_vue_vue_type_template_id_8f3499ca_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "8f3499ca",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/ui/main/pick/PickUserView.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/ui/main/pick/PickUserView.vue?vue&type=script&lang=js":
/*!*******************************************************************!*\
  !*** ./src/ui/main/pick/PickUserView.vue?vue&type=script&lang=js ***!
  \*******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./PickUserView.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/PickUserView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/ui/main/pick/PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true":
/*!***************************************************************************************************!*\
  !*** ./src/ui/main/pick/PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true ***!
  \***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_style_index_0_id_8f3499ca_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true */ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/PickUserView.vue?vue&type=style&index=0&id=8f3499ca&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_style_index_0_id_8f3499ca_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_style_index_0_id_8f3499ca_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_style_index_0_id_8f3499ca_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_style_index_0_id_8f3499ca_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ "./src/ui/main/pick/PickUserView.vue?vue&type=template&id=8f3499ca&scoped=true":
/*!*************************************************************************************!*\
  !*** ./src/ui/main/pick/PickUserView.vue?vue&type=template&id=8f3499ca&scoped=true ***!
  \*************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_template_id_8f3499ca_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./PickUserView.vue?vue&type=template&id=8f3499ca&scoped=true */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/pick/PickUserView.vue?vue&type=template&id=8f3499ca&scoped=true");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_template_id_8f3499ca_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PickUserView_vue_vue_type_template_id_8f3499ca_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ }),

/***/ "./src/ui/main/user/CheckableUserItemView.vue":
/*!****************************************************!*\
  !*** ./src/ui/main/user/CheckableUserItemView.vue ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _CheckableUserItemView_vue_vue_type_template_id_eb4640d6_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CheckableUserItemView.vue?vue&type=template&id=eb4640d6&scoped=true */ "./src/ui/main/user/CheckableUserItemView.vue?vue&type=template&id=eb4640d6&scoped=true");
/* harmony import */ var _CheckableUserItemView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CheckableUserItemView.vue?vue&type=script&lang=js */ "./src/ui/main/user/CheckableUserItemView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _CheckableUserItemView_vue_vue_type_style_index_0_id_eb4640d6_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true */ "./src/ui/main/user/CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");






/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _CheckableUserItemView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _CheckableUserItemView_vue_vue_type_template_id_eb4640d6_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"],
  _CheckableUserItemView_vue_vue_type_template_id_eb4640d6_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "eb4640d6",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/ui/main/user/CheckableUserItemView.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/ui/main/user/CheckableUserItemView.vue?vue&type=script&lang=js":
/*!****************************************************************************!*\
  !*** ./src/ui/main/user/CheckableUserItemView.vue?vue&type=script&lang=js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableUserItemView.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserItemView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/ui/main/user/CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true":
/*!************************************************************************************************************!*\
  !*** ./src/ui/main/user/CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_style_index_0_id_eb4640d6_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true */ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserItemView.vue?vue&type=style&index=0&id=eb4640d6&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_style_index_0_id_eb4640d6_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_style_index_0_id_eb4640d6_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_style_index_0_id_eb4640d6_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_style_index_0_id_eb4640d6_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ "./src/ui/main/user/CheckableUserItemView.vue?vue&type=template&id=eb4640d6&scoped=true":
/*!**********************************************************************************************!*\
  !*** ./src/ui/main/user/CheckableUserItemView.vue?vue&type=template&id=eb4640d6&scoped=true ***!
  \**********************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_template_id_eb4640d6_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableUserItemView.vue?vue&type=template&id=eb4640d6&scoped=true */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserItemView.vue?vue&type=template&id=eb4640d6&scoped=true");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_template_id_eb4640d6_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserItemView_vue_vue_type_template_id_eb4640d6_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ }),

/***/ "./src/ui/main/user/CheckableUserListView.vue":
/*!****************************************************!*\
  !*** ./src/ui/main/user/CheckableUserListView.vue ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _CheckableUserListView_vue_vue_type_template_id_b4fd4bc0_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CheckableUserListView.vue?vue&type=template&id=b4fd4bc0&scoped=true */ "./src/ui/main/user/CheckableUserListView.vue?vue&type=template&id=b4fd4bc0&scoped=true");
/* harmony import */ var _CheckableUserListView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CheckableUserListView.vue?vue&type=script&lang=js */ "./src/ui/main/user/CheckableUserListView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport *//* harmony import */ var _CheckableUserListView_vue_vue_type_style_index_0_id_b4fd4bc0_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true */ "./src/ui/main/user/CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");






/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _CheckableUserListView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _CheckableUserListView_vue_vue_type_template_id_b4fd4bc0_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"],
  _CheckableUserListView_vue_vue_type_template_id_b4fd4bc0_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "b4fd4bc0",
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "src/ui/main/user/CheckableUserListView.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "./src/ui/main/user/CheckableUserListView.vue?vue&type=script&lang=js":
/*!****************************************************************************!*\
  !*** ./src/ui/main/user/CheckableUserListView.vue?vue&type=script&lang=js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableUserListView.vue?vue&type=script&lang=js */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserListView.vue?vue&type=script&lang=js");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./src/ui/main/user/CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true":
/*!************************************************************************************************************!*\
  !*** ./src/ui/main/user/CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_style_index_0_id_b4fd4bc0_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true */ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserListView.vue?vue&type=style&index=0&id=b4fd4bc0&lang=css&scoped=true");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_style_index_0_id_b4fd4bc0_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_style_index_0_id_b4fd4bc0_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_style_index_0_id_b4fd4bc0_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_style_index_0_id_b4fd4bc0_lang_css_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ "./src/ui/main/user/CheckableUserListView.vue?vue&type=template&id=b4fd4bc0&scoped=true":
/*!**********************************************************************************************!*\
  !*** ./src/ui/main/user/CheckableUserListView.vue?vue&type=template&id=b4fd4bc0&scoped=true ***!
  \**********************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_template_id_b4fd4bc0_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a67af60-vue-loader-template"}!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./CheckableUserListView.vue?vue&type=template&id=b4fd4bc0&scoped=true */ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"0a67af60-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/ui/main/user/CheckableUserListView.vue?vue&type=template&id=b4fd4bc0&scoped=true");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_template_id_b4fd4bc0_scoped_true__WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_0a67af60_vue_loader_template_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_6_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckableUserListView_vue_vue_type_template_id_b4fd4bc0_scoped_true__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });



/***/ }),

/***/ "./src/ui/util/helper.js":
/*!*******************************!*\
  !*** ./src/ui/util/helper.js ***!
  \*******************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/wfc/util/longUtil */ "./src/wfc/util/longUtil.js");
/* harmony import */ var _wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/wfc/ipcEventType */ "./src/wfc/ipcEventType.js");
/* harmony import */ var _wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_3__);


// ie11 not support browser-md5-file
// import MD5 from 'browser-md5-file';


const helper = {
  parseXml: (text, tagName) => {
    var parser = new window.DOMParser();
    var xml = parser.parseFromString(text.replace(/&lt;/g, "<").replace(/&gt;/g, ">"), "text/xml");
    var value = {};
    tagName = Array.isArray(tagName) ? tagName : [tagName];
    tagName.map(e => {
      value[e] = xml.getElementsByTagName(e)[0].childNodes[0].nodeValue;
    });
    return {
      xml,
      value
    };
  },
  humanSize: size => {
    var value = (size / 1024).toFixed(1);
    if (size > 1024 << 10) {
      value = (value / 1024).toFixed(1);
      return `${value} M`;
    } else {
      return `${value} KB`;
    }
  },
  getFiletypeIcon: extension => {
    var filename = "unknow";
    extension = (extension || "").toLowerCase().replace(/^\./, "");
    switch (true) {
      case ["mp3", "flac", "aac", "m4a", "wma"].includes(extension):
        filename = "audio";
        break;
      case ["mp4", "mkv", "avi", "flv"].includes(extension):
        filename = "audio";
        break;
      case ["zip", "rar", "tar", "tar.gz"].includes(extension):
        filename = "archive";
        break;
      case ["doc", "docx"].includes(extension):
        filename = "word";
        break;
      case ["xls", "xlsx"].includes(extension):
        filename = "excel";
        break;
      case ["ai", "apk", "exe", "ipa", "pdf", "ppt", "psd"].includes(extension):
        filename = extension;
        break;
      default:
        break;
    }
    return `${filename}.png`;
  },
  getPallet: image => {
    return new Promise((resolve, reject) => {
      new window.AlbumColors(image).getColors((colors, err) => {
        if (err) {
          resolve([[0, 0, 0], [0, 0, 0], [0, 0, 0]]);
        } else {
          resolve(colors);
        }
      });
    });
  },
  decodeHTML: (text = "") => {
    return text.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
  },
  escapeHtml: text => {
    return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/ /g, "&nbsp;").replace(/<script/gi, "&lt;script").replace(/<iframe/gi, "&lt;iframe");
  },
  isImage: ext => {
    return ["bmp", "gif", "jpeg", "jpg", "png"].includes(ext);
  },
  // 3 types supported: pic, video, doc
  getMediaType: (ext = "") => {
    ext = ext.toLowerCase();
    switch (true) {
      case helper.isImage(ext):
        return "pic";
      case ["mp4"].includes(ext):
        return "video";
      default:
        return "doc";
    }
  },
  getDataURL: src => {
    var image = new window.Image();
    return new Promise((resolve, reject) => {
      image.src = src;
      image.onload = () => {
        var canvas = document.createElement("canvas");
        var context = canvas.getContext("2d");
        canvas.width = image.width;
        canvas.height = image.height;
        context.drawImage(image, 0, 0, image.width, image.height);
        resolve(canvas.toDataURL("image/png"));
      };
      image.onerror = () => {
        resolve("");
      };
    });
  },
  isOsx: window.process && window.process.platform === "darwin",
  isSuspend: () => {
    return ipcRenderer.sendSync(_wfc_ipcEventType__WEBPACK_IMPORTED_MODULE_3___default.a.IS_SUSPEND);
  },
  // md5: (file) => {
  //     return new Promise((resolve, reject) => {
  //         new MD5().md5(file, (err, md5) => {
  //             resolve(err ? false : md5);
  //         });
  //     });
  // },

  weekFormat: num => {
    let str;
    switch (num) {
      case 1:
        str = "星期一";
        break;
      case 2:
        str = "星期二";
        break;
      case 3:
        str = "星期三";
        break;
      case 4:
        str = "星期四";
        break;
      case 5:
        str = "星期五";
        break;
      case 6:
        str = "星期六";
        break;
      default:
        str = "星期天";
    }
    return str;
  },
  /**
   * 会话时间显示
   */

  dateFormat(date) {
    if (!date) return "";
    if (typeof date === "object") {
      date = Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_2__["numberValue"])(date);
    }
    let today = new Date().setHours(0, 0, 0, 0);
    let that = new Date(date).setHours(0, 0, 0, 0);
    if (today === that) {
      return this.timeFormat(date);
    } else {
      let thatDate = new Date(date);
      return thatDate.getFullYear() + "/" + (thatDate.getMonth() + 1) + "/" + thatDate.getDate();
    }
  },
  /**
   * 消息会话时间显示
   */
  timeFormat: date => {
    if (!date) return "";
    if (typeof date === "object") {
      date = Object(_wfc_util_longUtil__WEBPACK_IMPORTED_MODULE_2__["numberValue"])(date);
    }
    let newtime;
    let nowtime = new Date();
    // if (date.constructor !== Date) {
    //     date = new Date(date.replace(/\-/g, '/')) // 解决ios日期显示NAN问题
    //  }
    date = new Date(date);
    // 获取消息发送时间
    let Y = date.getFullYear();
    let M = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
    let D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
    let W = date.getDay();
    let H = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
    let Min = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
    // 获取当前时间
    let nowY = nowtime.getFullYear();
    let nowM = nowtime.getMonth() + 1 < 10 ? "0" + (nowtime.getMonth() + 1) : nowtime.getMonth() + 1;
    let nowD = nowtime.getDate() < 10 ? "0" + nowtime.getDate() : nowtime.getDate();
    let isWeek = Math.abs(date - nowtime) < 7 * 24 * 3600 * 1000;
    if (Y < nowY) {
      // 去年
      newtime = Y + "-" + M + "-" + D + " " + H + ":" + Min;
    } else {
      if (Y === nowY && M === nowM && nowD - D <= 7) {
        // 昨天
        if (nowD - D === 1) {
          newtime = "昨天" + " " + H + ":" + Min;
        } else if (nowD === D) {
          // 当天
          newtime = H + ":" + Min;
        } else {
          // 一周内
          newtime = helper.weekFormat(W) + " " + H + ":" + Min;
        }
      } else {
        // 一年内
        newtime = M + "-" + D + " " + H + ":" + Min;
      }
    }
    return newtime;
  }
};
/* harmony default export */ __webpack_exports__["default"] = (helper);

/***/ }),

/***/ "./src/ui/util/imageUtil.js":
/*!**********************************!*\
  !*** ./src/ui/util/imageUtil.js ***!
  \**********************************/
/*! exports provided: mergeImages, genGroupPortrait, videoThumbnail, videoDuration, imageThumbnail, fileFromDataUri, scaleDown */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeImages", function() { return mergeImages; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genGroupPortrait", function() { return genGroupPortrait; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "videoThumbnail", function() { return videoThumbnail; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "videoDuration", function() { return videoDuration; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "imageThumbnail", function() { return imageThumbnail; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fileFromDataUri", function() { return fileFromDataUri; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scaleDown", function() { return scaleDown; });
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_buffer_detached_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array-buffer.detached.js */ "./node_modules/core-js/modules/es.array-buffer.detached.js");
/* harmony import */ var core_js_modules_es_array_buffer_detached_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_detached_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_buffer_transfer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array-buffer.transfer.js */ "./node_modules/core-js/modules/es.array-buffer.transfer.js");
/* harmony import */ var core_js_modules_es_array_buffer_transfer_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_transfer_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_buffer_transfer_to_fixed_length_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array-buffer.transfer-to-fixed-length.js */ "./node_modules/core-js/modules/es.array-buffer.transfer-to-fixed-length.js");
/* harmony import */ var core_js_modules_es_array_buffer_transfer_to_fixed_length_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_transfer_to_fixed_length_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.typed-array.at.js */ "./node_modules/core-js/modules/es.typed-array.at.js");
/* harmony import */ var core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.typed-array.find-last.js */ "./node_modules/core-js/modules/es.typed-array.find-last.js");
/* harmony import */ var core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.typed-array.find-last-index.js */ "./node_modules/core-js/modules/es.typed-array.find-last-index.js");
/* harmony import */ var core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.typed-array.set.js */ "./node_modules/core-js/modules/es.typed-array.set.js");
/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var core_js_modules_es_typed_array_to_reversed_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.typed-array.to-reversed.js */ "./node_modules/core-js/modules/es.typed-array.to-reversed.js");
/* harmony import */ var core_js_modules_es_typed_array_to_reversed_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_reversed_js__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var core_js_modules_es_typed_array_to_sorted_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.typed-array.to-sorted.js */ "./node_modules/core-js/modules/es.typed-array.to-sorted.js");
/* harmony import */ var core_js_modules_es_typed_array_to_sorted_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_sorted_js__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var core_js_modules_es_typed_array_with_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.typed-array.with.js */ "./node_modules/core-js/modules/es.typed-array.with.js");
/* harmony import */ var core_js_modules_es_typed_array_with_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_with_js__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/web.dom-exception.stack.js */ "./node_modules/core-js/modules/web.dom-exception.stack.js");
/* harmony import */ var core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var resize_image__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! resize-image */ "./node_modules/resize-image/index.js");
/* harmony import */ var resize_image__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(resize_image__WEBPACK_IMPORTED_MODULE_16__);

















function mergeImages(sources = [], options = {}) {
  // Defaults
  let defaultOptions = {
    format: "image/png",
    quality: 0.92,
    width: undefined,
    height: undefined,
    Canvas: undefined
  };
  return new Promise(resolve => {
    options = Object.assign({}, defaultOptions, options);
    sources = sources.filter(source => source !== null && source !== undefined);

    // Setup browser/Node.js specific variables
    const canvas = options.Canvas ? new options.Canvas() : window.document.createElement("canvas");
    const Image = options.Canvas ? options.Canvas.Image : window.Image;
    if (options.Canvas) {
      options.quality *= 100;
    }
    let targetSize = 64;
    let divider = 1;
    var size = 0;
    switch (sources.length) {
      case 2:
        size = (targetSize - 3 * divider) / 2;
        break;
      case 3:
        size = (targetSize - 3 * divider) / 2;
        break;
      case 4:
        size = (targetSize - 3 * divider) / 2;
        break;
      case 5:
        size = (targetSize - 4 * divider) / 3;
        break;
      case 6:
        size = (targetSize - 4 * divider) / 3;
        break;
      case 7:
        size = (targetSize - 4 * divider) / 3;
        break;
      case 8:
        size = (targetSize - 4 * divider) / 3;
        break;
      case 9:
        size = (targetSize - 4 * divider) / 3;
        break;
      default:
        break;
    }
    sources = sources.slice(0, sources.length >= 9 ? 9 : sources.length);

    // Load sources
    const images = sources.map(source => new Promise((resolve, reject) => {
      // Convert sources to objects
      if (source.constructor.name !== "Object") {
        source = {
          src: source
        };
      }

      // Resolve source and img when loaded
      const img = new Image();
      img.setAttribute("crossOrigin", "anonymous");
      //img.onerror = () => reject(new Error('Couldn\'t load image'));
      img.onerror = () => resolve(null);
      img.onload = () => resolve(Object.assign({}, source, {
        data: resize_image__WEBPACK_IMPORTED_MODULE_16___default.a.resize(img, size, size, resize_image__WEBPACK_IMPORTED_MODULE_16___default.a.PNG)
      }));
      img.src = source.src;
    }));
    const loadResizedImages = resizedImagesBase64 => resizedImagesBase64.map(image => new Promise((resolve, reject) => {
      // Resolve source and img when loaded
      const img = new Image();
      img.setAttribute("crossOrigin", "anonymous");
      //img.onerror = () => reject(new Error('Couldn\'t load image2'));
      img.onerror = () => resolve(null);
      img.onload = () => resolve(Object.assign({}, {
        img
      }));
      img.src = image.data;
    }));

    // Get canvas context
    const ctx = canvas.getContext("2d");

    // When sources have loaded
    resolve(Promise.all(images).then(images => {
      images = images.filter(i => i !== null);
      return Promise.all(loadResizedImages(images));
    }).then(images => {
      images = images.filter(i => i !== null);

      // Set canvas dimensions
      // const getSize = dim => options[dim] || Math.max(...images.map(image => image.img[dim]));
      // canvas.width = getSize('width');
      // canvas.height = getSize('height');
      canvas.width = targetSize;
      canvas.height = targetSize;
      switch (images.length) {
        case 2:
          images[0].x = divider;
          images[0].y = targetSize / 4;
          images[1].x = images[0].x + size + divider;
          images[1].y = images[0].y;
          break;
        case 3:
          images[0].x = targetSize / 4;
          images[0].y = divider;
          images[1].x = divider;
          images[1].y = images[0].y + size + divider;
          images[2].x = images[1].x + size + divider;
          images[2].y = images[1].y;
          break;
        case 4:
          images[0].x = divider;
          images[0].y = divider;
          images[1].x = images[0].x + size + divider;
          images[1].y = divider;
          images[2].x = divider;
          images[2].y = images[0].y + size + divider;
          images[3].x = images[2].x + size + divider;
          images[3].y = images[2].y;
          break;
        case 5:
          images[0].x = (targetSize - 2 * size - divider) / 2;
          images[0].y = (targetSize - 2 * size - divider) / 2;
          images[1].x = images[0].x + size + divider;
          images[1].y = images[0].y;
          images[2].x = divider;
          images[2].y = images[1].y + size + divider;
          images[3].x = images[2].x + size + divider;
          images[3].y = images[2].y;
          images[4].x = images[3].x + size + divider;
          images[4].y = images[2].y;
          break;
        case 6:
          images[0].x = divider;
          images[0].y = (targetSize - 2 * size - divider) / 2;
          images[1].x = images[0].x + size + divider;
          images[1].y = images[0].y;
          images[2].x = images[1].x + size + divider;
          images[2].y = images[0].y;
          images[3].x = divider;
          images[3].y = images[0].y + size + divider;
          images[4].x = images[3].x + size + divider;
          images[4].y = images[3].y;
          images[5].x = images[4].x + size + divider;
          images[5].y = images[3].y;
          break;
        case 7:
          images[0].x = divider + size + divider;
          images[0].y = divider;
          images[1].x = divider;
          images[1].y = images[0].y + size + divider;
          images[2].x = images[1].x + size + divider;
          images[2].y = images[1].y;
          images[3].x = images[2].x + size + divider;
          images[3].y = images[1].y;
          images[4].x = divider;
          images[4].y = images[1].y + size + divider;
          images[5].x = images[4].x + size + divider;
          images[5].y = images[4].y;
          images[6].x = images[5].x + size + divider;
          images[6].y = images[4].y;
          break;
        case 8:
          images[0].x = (targetSize - 2 * size - divider) / 2;
          images[0].y = divider;
          images[1].x = images[0].x + size + divider;
          images[1].y = images[0].y;
          images[2].x = divider;
          images[2].y = images[0].y + size + divider;
          images[3].x = images[2].x + size + divider;
          images[3].y = images[2].y;
          images[4].x = images[3].x + size + divider;
          images[4].y = images[2].y;
          images[5].x = divider;
          images[5].y = images[2].y + size + divider;
          images[6].x = images[5].x + size + divider;
          images[6].y = images[5].y;
          images[7].x = images[6].x + size + divider;
          images[7].y = images[5].y;
          break;
        case 9:
          images[0].x = divider;
          images[0].y = divider;
          images[1].x = images[0].x + size + divider;
          images[1].y = images[0].y;
          images[2].x = images[1].x + size + divider;
          images[2].y = images[0].y;
          images[3].x = divider;
          images[3].y = images[0].y + size + divider;
          images[4].x = images[3].x + size + divider;
          images[4].y = images[3].y;
          images[5].x = images[4].x + size + divider;
          images[5].y = images[3].y;
          images[6].x = divider;
          images[6].y = images[3].y + size + divider;
          images[7].x = images[6].x + size + divider;
          images[7].y = images[6].y;
          images[8].x = images[7].x + size + divider;
          images[8].y = images[6].y;
          break;
      }
      ctx.fillStyle = "#CCCCCC";
      ctx.fillRect(0, 0, canvas.width, canvas.height);
      // Draw images to canvas
      images.forEach(image => {
        ctx.globalAlpha = image.opacity ? image.opacity : 1;
        return ctx.drawImage(image.img, image.x || 0, image.y || 0);
      });
      if (options.Canvas && options.format === "image/jpeg") {
        // Resolve data URI for node-canvas jpeg async
        return new Promise(resolve => {
          canvas.toDataURL(options.format, {
            quality: options.quality,
            progressive: false
          }, (err, jpeg) => {
            if (err) {
              throw err;
            }
            resolve(jpeg);
          });
        });
      }

      // Resolve all other data URIs sync
      return canvas.toDataURL(options.format, options.quality);
    }));
  });
}
let groupPortraitMap = new Map();
window.__groupPortraitMap = groupPortraitMap;
async function genGroupPortrait(groupMemberUsers) {
  let groupMemberPortraits = [];
  for (let i = 0; i < Math.min(9, groupMemberUsers.length); i++) {
    groupMemberPortraits.push(groupMemberUsers[i].portrait);
  }
  return await mergeImages(groupMemberPortraits);
}

// return {data uri, width, height}
function imageThumbnail(file) {
  return new Promise((resolve, reject) => {
    var img = new Image();
    img.setAttribute("crossOrigin", "anonymous");
    img.onload = () => {
      let resizedCanvas = resize_image__WEBPACK_IMPORTED_MODULE_16___default.a.resize2Canvas(img, 200, 200);
      resizedCanvas.toBlob(blob => {
        var reader = new FileReader();
        reader.readAsDataURL(blob);
        reader.onloadend = () => {
          let base64data = reader.result;
          resolve({
            thumbnail: base64data,
            width: img.naturalWidth,
            height: img.naturalHeight
          });
        };
        reader.onerror = () => {
          resolve(null);
        };
      }, "image/jpeg", 0.4);
    };
    img.onerror = () => {
      resolve(null);
    };
    if (file.path) {
      if (file.path.startsWith("/")) {
        img.src = "local-resource://" + (file.path.indexOf(file.name) > -1 ? file.path : file.path + file.name); // local image url
      } else {
        img.src = file.path;
      }
    } else {
      let reader = new FileReader();
      reader.onload = function (event) {
        img.src = event.target.result;
      };
      reader.readAsDataURL(file);
    }
  });
}

// return {data uri, width, height}
function videoThumbnail(file) {
  return new Promise((resolve, reject) => {
    let video = document.getElementById("bgvid");
    video.onplay = () => {
      console.log("------------ video onplay");
      var canvas = document.createElement("canvas");
      canvas.width = video.videoWidth;
      canvas.height = video.videoHeight;
      canvas.getContext("2d").drawImage(video, 0, 0, canvas.width, canvas.height);
      var img = document.createElement("img");
      img.src = canvas.toDataURL();
      img.onload = () => {
        let resizedCanvas = resize_image__WEBPACK_IMPORTED_MODULE_16___default.a.resize2Canvas(img, 200, 200);
        resizedCanvas.toBlob(blob => {
          var reader = new FileReader();
          reader.readAsDataURL(blob);
          reader.onloadend = () => {
            let base64data = reader.result;
            resolve({
              thumbnail: base64data,
              width: video.videoWidth,
              height: video.videoHeight
            });
            video.src = null;
          };
          reader.onerror = () => {
            resolve(null);
          };
        }, "image/jpeg", 0.4);
      };
      img.onerror = () => {
        resolve(null);
      };
    };
    video.onerror = () => {
      resolve(null);
    };
    _loadVideo(file);
    console.log("----------", video);
  });
}
function _loadVideo(file) {
  let video = document.getElementById("bgvid");
  if (file.path) {
    if (file.path.startsWith("/")) {
      video.src = "local-resource://" + (file.path.indexOf(file.name) > -1 ? file.path : file.path + file.name); // local video url
    } else {
      video.src = file.path;
    }
  } else {
    let reader = new FileReader();
    reader.onload = function (event) {
      video.src = event.target.result;
    };
    reader.readAsDataURL(file);
  }
}
function videoDuration(file) {
  return new Promise((resolve, reject) => {
    let video = document.getElementById("bgvid");
    video.onplay = () => {
      resolve(video.duration);
    };
    video.onerror = () => {
      resolve(0);
    };
    _loadVideo(file);
    console.log("----------", video);
  });
}
function dataURItoBlob(dataURI) {
  // convert base64 to raw binary data held in a string
  // doesn't handle URLEncoded DataURIs - see SO answer #6850276 for code that does this
  let byteString = atob(dataURI.split(",")[1]);

  // separate out the mime component
  let mimeString = dataURI.split(",")[0].split(":")[1].split(";")[0];

  // write the bytes of the string to an ArrayBuffer
  let ab = new ArrayBuffer(byteString.length);
  let ia = new Uint8Array(ab);
  for (let i = 0; i < byteString.length; i++) {
    ia[i] = byteString.charCodeAt(i);
  }
  return new Blob([ab], {
    type: mimeString
  });
}
function fileFromDataUri(dataUri, fileName) {
  const blob = dataURItoBlob(dataUri);
  const resultFile = new File([blob], fileName);
  return resultFile;
}
function scaleDown(width, height, maxWidth, maxHeight) {
  if (width < maxWidth && height < maxHeight) {
    return {
      width,
      height
    };
  }
  const widthRatio = maxWidth / width;
  const heightRatio = maxHeight / height;

  // 计算比例最小的缩放倍数
  const scale = Math.min(widthRatio, heightRatio);

  // 缩放后的宽度和高度
  const scaledWidth = width * scale;
  const scaledHeight = height * scale;
  return {
    width: Math.ceil(scaledWidth),
    height: Math.ceil(scaledHeight)
  };
}


/***/ }),

/***/ "./src/ui/util/storageHelper.js":
/*!**************************************!*\
  !*** ./src/ui/util/storageHelper.js ***!
  \**************************************/
/*! exports provided: removeItem, getItem, setItem, clear */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeItem", function() { return removeItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItem", function() { return getItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setItem", function() { return setItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform */ "./src/platform.js");
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config */ "./src/config.js");


let storage = !Object(_platform__WEBPACK_IMPORTED_MODULE_0__["isElectron"])() ? _config__WEBPACK_IMPORTED_MODULE_1__["default"].CLIENT_ID_STRATEGY === 1 ? sessionStorage : _config__WEBPACK_IMPORTED_MODULE_1__["default"].CLIENT_ID_STRATEGY === 2 ? localStorage : null : localStorage;
function removeItem(key) {
  if (storage) {
    storage.removeItem(key);
  }
}
function getItem(key) {
  if (storage) {
    return storage.getItem(key);
  }
}
function setItem(key, value) {
  if (storage) {
    storage.setItem(key, value);
  }
}
function clear() {
  if (storage) {
    storage.clear();
  }
}

/***/ }),

/***/ "./src/utils/directive.js":
/*!********************************!*\
  !*** ./src/utils/directive.js ***!
  \********************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");
//directive.js文件



// v-dialogDrag: 弹窗拖拽
vue__WEBPACK_IMPORTED_MODULE_0__["default"].directive("dialogDrag", {
  bind(el, binding, vnode, oldVnode) {
    const dialogHeaderEl = el.querySelector(".el-dialog__header");
    const dragDom = el.querySelector(".el-dialog");
    dialogHeaderEl.style.cursor = "move";

    // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
    const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null);
    dialogHeaderEl.onmousedown = e => {
      // 鼠标按下，计算当前元素距离可视区的距离
      const disX = e.clientX - dialogHeaderEl.offsetLeft;
      const disY = e.clientY - dialogHeaderEl.offsetTop;

      // 获取到的值带px 正则匹配替换
      let styL, styT;

      // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
      if (sty.left.includes("%")) {
        styL = +document.body.clientWidth * (+sty.left.replace(/\%/g, "") / 100);
        styT = +document.body.clientHeight * (+sty.top.replace(/\%/g, "") / 100);
      } else {
        styL = +sty.left.replace(/\px/g, "");
        styT = +sty.top.replace(/\px/g, "");
      }
      document.onmousemove = function (e) {
        // 通过事件委托，计算移动的距离
        const l = e.clientX - disX;
        const t = e.clientY - disY;

        // 移动当前元素
        dragDom.style.left = `${l + styL}px`;
        dragDom.style.top = `${t + styT}px`;

        // 将此时的位置传出去
        // binding.value({x:e.pageX,y:e.pageY})
      };
      document.onmouseup = function (e) {
        document.onmousemove = null;
        document.onmouseup = null;
      };
    };
  }
});

// v-dialogDragWidth: 弹窗宽度拖大 拖小
vue__WEBPACK_IMPORTED_MODULE_0__["default"].directive("dialogDragWidth", {
  bind(el, binding, vnode, oldVnode) {
    const dragDom = binding.value.$el.querySelector(".el-dialog");
    el.onmousedown = e => {
      // 鼠标按下，计算当前元素距离可视区的距离
      const disX = e.clientX - el.offsetLeft;
      document.onmousemove = function (e) {
        e.preventDefault(); // 移动时禁用默认事件

        // 通过事件委托，计算移动的距离
        const l = e.clientX - disX;
        dragDom.style.width = `${l}px`;
      };
      document.onmouseup = function (e) {
        document.onmousemove = null;
        document.onmouseup = null;
      };
    };
  }
});

/***/ }),

/***/ "./src/utils/drag.js":
/*!***************************!*\
  !*** ./src/utils/drag.js ***!
  \***************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/**
 * 1.参数一：指令的名称，定义时指令前面不需要写v-
 * 2.参数二：是一个对象，该对象中有相关的操作函数
 * 3.在调用的时候必须写v-
 */

/* harmony default export */ __webpack_exports__["default"] = ({
  //1.指令绑定到元素上回立刻执行bind函数，只执行一次
  //2.每个函数中第一个参数永远是el，表示绑定指令的元素，el参数是原生js对象
  //3.通过el.focus()是无法获取焦点的，因为只有插入DOM后才生效
  //inserted表示一个元素，插入到DOM中会执行inserted函数，只触发一次
  inserted: function (el, binding) {
    const dragDom = binding.value && binding.value.drag ? document.getElementById(binding.value.drag) : el;
    dragDom.onmousedown = function (e) {
      const disX = e.pageX - el.offsetLeft;
      const disY = e.pageY - el.offsetTop;
      document.onmousemove = function (e) {
        el.style.left = e.pageX - disX + "px";
        el.style.top = e.pageY - disY + "px";
      };
      document.onmouseup = function () {
        document.onmousemove = document.onmouseup = null;
      };
    };
  }
});

/***/ }),

/***/ "./src/utils/index.js":
/*!****************************!*\
  !*** ./src/utils/index.js ***!
  \****************************/
/*! exports provided: parseTime, formatTime, resetForm, getQueryObject, addDateRange, isValidIP, isValidMAC, checkPhone, isExternal, cleanArray, param, param2Obj, objectMerge, scrollTo, toggleClass, pickerOptions, getTime, debounce, deepClone, handleTree, tansParams, blobValidate, formatDate, getConfig, filterCallingMessage, getUrlParam, clearUrlParam, isUndefined, getLanguage, isMobile, getImgInfo, genRandom, handleDebounce */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseTime", function() { return parseTime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatTime", function() { return formatTime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetForm", function() { return resetForm; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getQueryObject", function() { return getQueryObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addDateRange", function() { return addDateRange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidIP", function() { return isValidIP; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidMAC", function() { return isValidMAC; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkPhone", function() { return checkPhone; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isExternal", function() { return isExternal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cleanArray", function() { return cleanArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "param", function() { return param; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "param2Obj", function() { return param2Obj; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "objectMerge", function() { return objectMerge; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scrollTo", function() { return scrollTo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toggleClass", function() { return toggleClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickerOptions", function() { return pickerOptions; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTime", function() { return getTime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepClone", function() { return deepClone; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleTree", function() { return handleTree; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tansParams", function() { return tansParams; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blobValidate", function() { return blobValidate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfig", function() { return getConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterCallingMessage", function() { return filterCallingMessage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUrlParam", function() { return getUrlParam; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clearUrlParam", function() { return clearUrlParam; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isUndefined", function() { return isUndefined; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLanguage", function() { return getLanguage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMobile", function() { return isMobile; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getImgInfo", function() { return getImgInfo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genRandom", function() { return genRandom; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleDebounce", function() { return handleDebounce; });
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.url-search-params.delete.js */ "./node_modules/core-js/modules/web.url-search-params.delete.js");
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.url-search-params.has.js */ "./node_modules/core-js/modules/web.url-search-params.has.js");
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.url-search-params.size.js */ "./node_modules/core-js/modules/web.url-search-params.size.js");
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! tim-js-sdk/tim-js-friendship */ "./node_modules/tim-js-sdk/tim-js-friendship.js");
/* harmony import */ var tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _tim__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/tim */ "./src/tim.js");








// 1496311370052 转成 'yyyy-MM-dd hh:mm:ss' 或 'yyyyMMddhhmmss'


function parseTime(time, cFormat) {
  if (arguments.length === 0) {
    return null;
  }
  const format = cFormat || "{y}-{m}-{d} {h}:{i}:{s}";
  let date;
  if (typeof time === "object") {
    date = time;
  } else {
    if (("" + time).length === 10) time = parseInt(time) * 1000;
    date = new Date(time);
  }
  const formatObj = {
    y: date.getFullYear(),
    m: date.getMonth() + 1,
    d: date.getDate(),
    h: date.getHours(),
    i: date.getMinutes(),
    s: date.getSeconds(),
    a: date.getDay()
  };
  const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
    let value = formatObj[key];
    if (key === "a") return ["日", "一", "二", "三", "四", "五", "六"][value];
    if (result.length > 0 && value < 10) {
      value = "0" + value;
    }
    return value || 0;
  });
  return time_str;
}
function formatTime(time, option) {
  time = +time * 1000;
  const d = new Date(time);
  const now = Date.now();
  const diff = (now - d) / 1000;
  if (diff < 30) {
    return "刚刚";
  } else if (diff < 3600) {
    // less 1 hour
    return Math.ceil(diff / 60) + "分钟前";
  } else if (diff < 3600 * 24) {
    return Math.ceil(diff / 3600) + "小时前";
  } else if (diff < 3600 * 24 * 2) {
    return "1天前";
  }
  if (option) {
    return parseTime(time, option);
  } else {
    return d.getMonth() + 1 + "月" + d.getDate() + "日" + d.getHours() + "时" + d.getMinutes() + "分";
  }
}
// 表单重置
function resetForm(refName) {
  if (this.$refs[refName]) {
    this.$refs[refName].resetFields();
  }
}
// 格式化时间
function getQueryObject(url) {
  url = url == null ? window.location.href : url;
  const search = url.substring(url.lastIndexOf("?") + 1);
  const obj = {};
  const reg = /([^?&=]+)=([^?&=]*)/g;
  search.replace(reg, (rs, $1, $2) => {
    const name = decodeURIComponent($1);
    let val = decodeURIComponent($2);
    val = String(val);
    obj[name] = val;
    return rs;
  });
  return obj;
}
// 添加日期范围
function addDateRange(params, dateRange, propName) {
  var search = params;
  if (null != dateRange && "" != dateRange) {
    if (typeof propName === "undefined") {
      search["beginTime"] = dateRange[0];
      search["endTime"] = dateRange[1];
    } else {
      search["begin" + propName] = dateRange[0];
      search["end" + propName] = dateRange[1];
    }
  }
  // console.log()
  return search;
}
//检验是否是IP
function isValidIP(ip) {
  var reg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;
  return reg.test(ip);
}
//检验是否是Mac
function isValidMAC(mac) {
  var reg = /([A-Fa-f0-9]{2}-){5}[A-Fa-f0-9]{2}/;
  return reg.test(mac);
}
// 验证手机号
function checkPhone(rule, value, callback) {
  let reg = /^1[345789]\d{9}$/;
  if (!reg.test(value)) {
    callback(new Error("请输入11位手机号"));
  } else {
    callback();
  }
}
/**
 * @param {string} path
 * @returns {Boolean}
 */
function isExternal(path) {
  return /^(https?:|mailto:|tel:)/.test(path);
}
function cleanArray(actual) {
  const newArray = [];
  for (let i = 0; i < actual.length; i++) {
    if (actual[i]) {
      newArray.push(actual[i]);
    }
  }
  return newArray;
}
function param(json) {
  if (!json) return "";
  return cleanArray(Object.keys(json).map(key => {
    if (json[key] === undefined) return "";
    return encodeURIComponent(key) + "=" + encodeURIComponent(json[key]);
  })).join("&");
}
function param2Obj(url) {
  const search = url.split("?")[1];
  if (!search) {
    return {};
  }
  return JSON.parse('{"' + decodeURIComponent(search).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}');
}
function objectMerge(target, source) {
  /* Merges two  objects,
   giving the last one precedence */

  if (typeof target !== "object") {
    target = {};
  }
  if (Array.isArray(source)) {
    return source.slice();
  }
  for (const property in source) {
    if (Object.prototype.hasOwnProperty.call(source, property)) {
      const sourceProperty = source[property];
      if (typeof sourceProperty === "object") {
        target[property] = objectMerge(target[property], sourceProperty);
        continue;
      }
      target[property] = sourceProperty;
    }
  }
  return target;
}
function scrollTo(element, to, duration) {
  if (duration <= 0) return;
  const difference = to - element.scrollTop;
  const perTick = difference / duration * 10;
  setTimeout(() => {
    element.scrollTop = element.scrollTop + perTick;
    if (element.scrollTop === to) return;
    scrollTo(element, to, duration - 10);
  }, 10);
}
function toggleClass(element, className) {
  if (!element || !className) {
    return;
  }
  let classString = element.className;
  const nameIndex = classString.indexOf(className);
  if (nameIndex === -1) {
    classString += "" + className;
  } else {
    classString = classString.substr(0, nameIndex) + classString.substr(nameIndex + className.length);
  }
  element.className = classString;
}
const pickerOptions = [{
  text: "今天",
  onClick(picker) {
    const end = new Date();
    const start = new Date(new Date().toDateString());
    end.setTime(start.getTime());
    picker.$emit("pick", [start, end]);
  }
}, {
  text: "最近一周",
  onClick(picker) {
    const end = new Date(new Date().toDateString());
    const start = new Date();
    start.setTime(end.getTime() - 3600 * 1000 * 24 * 7);
    picker.$emit("pick", [start, end]);
  }
}, {
  text: "最近一个月",
  onClick(picker) {
    const end = new Date(new Date().toDateString());
    const start = new Date();
    start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
    picker.$emit("pick", [start, end]);
  }
}, {
  text: "最近三个月",
  onClick(picker) {
    const end = new Date(new Date().toDateString());
    const start = new Date();
    start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
    picker.$emit("pick", [start, end]);
  }
}];
function getTime(type) {
  if (type === "start") {
    return new Date().getTime() - 3600 * 1000 * 24 * 90;
  } else {
    return new Date(new Date().toDateString());
  }
}

// 防抖
function debounce(func, wait, immediate) {
  let timeout, args, context, timestamp, result;
  const later = function () {
    // 据上一次触发时间间隔
    const last = +new Date() - timestamp;

    // 上次被包装函数被调用时间间隔last小于设定时间间隔wait
    if (last < wait && last > 0) {
      timeout = setTimeout(later, wait - last);
    } else {
      timeout = null;
      // 如果设定为immediate===true，因为开始边界已经调用过了此处无需调用
      if (!immediate) {
        result = func.apply(context, args);
        if (!timeout) context = args = null;
      }
    }
  };
  return function (...args) {
    context = this;
    timestamp = +new Date();
    const callNow = immediate && !timeout;
    // 如果延时不存在，重新设定延时
    if (!timeout) timeout = setTimeout(later, wait);
    if (callNow) {
      result = func.apply(context, args);
      context = args = null;
    }
    return result;
  };
}

// 对象深克隆
function deepClone(source) {
  if (!source && typeof source !== "object") {
    throw new Error("error arguments", "shallowClone");
  }
  const targetObj = source.constructor === Array ? [] : {};
  for (const keys in source) {
    if (Object.prototype.hasOwnProperty.call(source, keys)) {
      if (source[keys] && typeof source[keys] === "object") {
        targetObj[keys] = source[keys].constructor === Array ? [] : {};
        targetObj[keys] = deepClone(source[keys]);
      } else {
        targetObj[keys] = source[keys];
      }
    }
  }
  return targetObj;
}
/**
 * 构造树型结构数据
 * @param {*} data 数据源
 * @param {*} id id字段 默认 'id'
 * @param {*} parentId 父节点字段 默认 'parentId'
 * @param {*} children 孩子节点字段 默认 'children'
 */
function handleTree(data, id, parentId, children) {
  let config = {
    id: id || "id",
    parentId: parentId || "parentId",
    childrenList: children || "children"
  };
  var childrenListMap = {};
  var nodeIds = {};
  var tree = [];
  for (let d of data) {
    let parentId = d[config.parentId];
    if (childrenListMap[parentId] == null) {
      childrenListMap[parentId] = [];
    }
    nodeIds[d[config.id]] = d;
    childrenListMap[parentId].push(d);
  }
  for (let d of data) {
    let parentId = d[config.parentId];
    if (nodeIds[parentId] == null) {
      tree.push(d);
    }
  }
  for (let t of tree) {
    adaptToChildrenList(t);
  }
  function adaptToChildrenList(o) {
    if (childrenListMap[o[config.id]] !== null) {
      o[config.childrenList] = childrenListMap[o[config.id]];
    }
    if (o[config.childrenList]) {
      for (let c of o[config.childrenList]) {
        adaptToChildrenList(c);
      }
    }
  }
  return tree;
}

/**
 * 参数处理
 * @param {*} params  参数
 */
function tansParams(params) {
  let result = "";
  for (const propName of Object.keys(params)) {
    const value = params[propName];
    var part = encodeURIComponent(propName) + "=";
    if (value !== null && typeof value !== "undefined") {
      if (typeof value === "object") {
        for (const key of Object.keys(value)) {
          if (value[key] !== null && typeof value[key] !== "undefined") {
            let params = propName + "[" + key + "]";
            var subPart = encodeURIComponent(params) + "=";
            result += subPart + encodeURIComponent(value[key]) + "&";
          }
        }
      } else {
        result += part + encodeURIComponent(value) + "&";
      }
    }
  }
  return result;
}

// 验证是否为blob格式
async function blobValidate(data) {
  try {
    const text = await data.text();
    JSON.parse(text);
    return false;
  } catch (error) {
    return true;
  }
}

// 1496311370052 转成
function formatDate(date, fmt) {
  if (/(y+)/.test(fmt)) {
    fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
  }
  let o = {
    "M+": date.getMonth() + 1,
    "d+": date.getDate(),
    "h+": date.getHours(),
    "m+": date.getMinutes(),
    "s+": date.getSeconds()
  };
  for (let k in o) {
    if (new RegExp(`(${k})`).test(fmt)) {
      let str = o[k] + "";
      fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? str : ("00" + str).substr(str.length));
    }
  }
  return fmt;
}
const getConfig = async key => {
  const res = await fetch("config.json");
  return new Promise((resolve, reject) => {
    res.json().then(async response => {
      if (key) {
        if (Object.prototype.hasOwnProperty.call(response, key)) {
          resolve(response[key]);
          return response[key];
        } else {
          resolve(null);
          return null;
        }
      } else {
        resolve(response);
        return response;
      }
    }).catch(error => {
      reject(new Error(error));
    });
  });
};
function filterCallingMessage(currentMessageList) {
  currentMessageList.forEach(item => {
    if (item.callType) {
      // 对于自己伪造的消息不需要解析
      return;
    }
    if (item.type === tim_js_sdk_tim_js_friendship__WEBPACK_IMPORTED_MODULE_8___default.a.TYPES.MSG_MERGER && item.payload.downloadKey !== "") {
      let promise = _tim__WEBPACK_IMPORTED_MODULE_9__["default"].downloadMergerMessage(item);
      promise.then(function (imResponse) {
        // 下载成功后，SDK会更新 message.payload.messageList 等信息
        item = imResponse;
      }).catch(function (imError) {
        // 下载失败
        console.warn("downloadMergerMessage error:", imError);
      });
    }
    // if (item.type === TIM.TYPES.MSG_CUSTOM) {
    //   let payloadData = {};
    //   try {
    //     payloadData = JSON.parse(item.payload.data);
    //   } catch (e) {
    //     payloadData = {};
    //   }
    //   if (payloadData.businessID === 1) {
    //     if (item.conversationType === TIM.TYPES.CONV_GROUP) {
    //       if (payloadData.actionType === 5) {
    //         item.nick = payloadData.inviteeList
    //           ? payloadData.inviteeList.join(",")
    //           : item.from;
    //       }
    //       let _text = window.trtcCalling.extractCallingInfoFromMessage(item);
    //       let group_text = `${_text}`;
    //       item.type = TIM.TYPES.MSG_GRP_TIP;
    //       item.payload = {
    //         operationType: 256,
    //         text: group_text,
    //         userIDList: [],
    //       }; //JSON.stringify(customData)
    //     }
    //     if (item.conversationType === TIM.TYPES.CONV_C2C) {
    //       let c2c_text = window.trtcCalling.extractCallingInfoFromMessage(item);
    //       item.payload = {
    //         text: c2c_text,
    //       }; //JSON.stringify(customData)
    //     }
    //   }
    // }
  });
}
function getUrlParam(key) {
  const url = decodeURI(window.location.href.replace(/^[^?]*\?/, ""));
  const regexp = new RegExp(`(^|&)${key}=([^&#]*)(&|$|)`, "i");
  const paramMatch = url.match(regexp);
  return paramMatch ? paramMatch[2] : null;
}
function clearUrlParam() {
  location.href = location.href.slice(0, location.href.indexOf("?") > 0 ? location.href.indexOf("?") : location.href.length);
}
function isUndefined(value) {
  return value === "undefined";
}

/**
 * 获取语言
 * @returns language
 */
function getLanguage() {
  let language = localStorage.getItem("trtc-quick-vue2-language") || getUrlParam("lang") || navigator.language || "zh";
  language = language.replace(/_/, "-").toLowerCase();
  if (language === "zh-cn" || language === "zh") {
    language = "zh";
  } else if (language === "en" || language === "en-us" || language === "en-GB") {
    language = "en";
  }
  return language;
}

/**
 * 当前浏览器是否为移动端浏览器
 */
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
const getImgInfo = (file, maxWidth = 100, maxHeight = 100) => {
  return new Promise(function (resolve, reject) {
    //Window.URL 属性返回一个对象，它提供了用于创建和管理对象URLs的静态方法
    let _URL = window.URL || window.webkitURL;
    let img = new Image();
    img.onload = () => {
      let valid = img.width <= maxWidth && img.height <= maxHeight;
      valid ? resolve() : reject();
    };
    //https://developer.mozilla.org/zh-CN/docs/Web/API/URL/createObjectURL  具体查看
    img.src = _URL.createObjectURL(file);
  }).then(() => {
    return file;
  }, () => {
    return Promise.reject();
  });
};
const genRandom = (min, max) => (Math.random() * (max - min + 1) | 0) + min;
function handleDebounce(func, wait) {
  let context = this;
  let args = arguments;
  if (this.timeout) clearTimeout(this.timeout);
  this.timeout = setTimeout(() => {
    func.apply(context, args);
  }, wait);
}

/***/ }),

/***/ "./src/utils/setup.js":
/*!****************************!*\
  !*** ./src/utils/setup.js ***!
  \****************************/
/*! exports provided: getUserInfo, LoginTIM, loginWF, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserInfo", function() { return getUserInfo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginTIM", function() { return LoginTIM; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loginWF", function() { return loginWF; });
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.url-search-params.delete.js */ "./node_modules/core-js/modules/web.url-search-params.delete.js");
/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.url-search-params.has.js */ "./node_modules/core-js/modules/web.url-search-params.has.js");
/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/web.url-search-params.size.js */ "./node_modules/core-js/modules/web.url-search-params.size.js");
/* harmony import */ var core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _api_tenant_user_controller__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/api/tenant-user-controller */ "./src/api/tenant-user-controller.js");
/* harmony import */ var _api_bcxin_identify__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/api/bcxin/identify */ "./src/api/bcxin/identify.js");
/* harmony import */ var _tim__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/tim */ "./src/tim.js");
/* harmony import */ var _store_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/store/index */ "./src/store/index.js");
/* harmony import */ var tim_js_sdk__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tim-js-sdk */ "./node_modules/tim-js-sdk/tim-js.js");
/* harmony import */ var tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(tim_js_sdk__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/config */ "./src/config.js");
/* harmony import */ var _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../wfc/client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/ui/util/storageHelper */ "./src/ui/util/storageHelper.js");
/* harmony import */ var _utils_index__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/utils/index */ "./src/utils/index.js");
/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/platform */ "./src/platform.js");
/* harmony import */ var _store_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/store.js */ "./src/store.js");
















async function onReadyStateUpdate({
  name
}) {
  console.log(name);
  const isSDKReady = name === tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default.a.EVENT.SDK_READY;
  _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("toggleIsSDKReady", isSDKReady);
  if (isSDKReady) {
    _tim__WEBPACK_IMPORTED_MODULE_7__["default"].getMyProfile().then(({
      data
    }) => {
      _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("updateCurrentUserProfile", data);
    }).catch(error => {
      console.log(error);
      _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("showMessage", {
        type: "error",
        message: error.message
      });
    });
    // 登录trtc calling
    // trtcCalling.login({
    //   sdkAppID: Number(process.env.VUE_APP_SDK_IM_ID),
    //   userID,
    //   userSig,
    // });
  }
}
function onKickOut(event) {
  _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("showMessage", {
    message: `${kickedOutReason(event.data.type)}被踢出，请重新登录。`,
    type: "error"
  });
  _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("toggleIsLogin", false);
  _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("reset");
}
function kickedOutReason(type) {
  switch (type) {
    case this.TIM.TYPES.KICKED_OUT_MULT_ACCOUNT:
      return "由于多实例登录";
    case this.TIM.TYPES.KICKED_OUT_MULT_DEVICE:
      return "由于多设备登录";
    case this.TIM.TYPES.KICKED_OUT_USERSIG_EXPIRED:
      return "由于 userSig 过期";
    default:
      return "";
  }
}
function onError({
  data
}) {
  if (data.message !== "Network Error") {
    _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("showMessage", {
      message: data.message,
      type: "error"
    });
  }
}
function onReceiveMessage({
  data: messageList
}) {
  // this.playNotifyAudio();
  // this.handleAutoReply(messageList);
  // this.handleVideoMessage(messageList);
  // this.handleQuitGroupTip(messageList);
  console.log("pushCurrentMessageList", messageList);
  _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("pushCurrentMessageList", messageList);
}
function onUpdateConversationList(event) {
  console.log("onUpdateConversationList", event);
  const {
    data: converstationList
  } = event;
  const sortList = converstationList.filter(converstation => {
    return converstation.lastMessage.lastTime > 0;
  });
  console.log("onUpdateConversationList", sortList);
  _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("updateConversationList", sortList);
}
function onUpdateGroupList(event) {
  _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("updateGroupList", event.data);
}
function onTotalUnreadMessageCountUpdated(event) {
  console.log(event.data); // 当前单聊和群聊会话的未读总数
  _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("updateTotalUnreadMessageCount", event.data);
}

/**
 * * 根据用户信息获取腾讯SigId
 * * 根据SigId和UserId登录TIM
 */
async function getUserInfo() {
  return Object(_api_tenant_user_controller__WEBPACK_IMPORTED_MODULE_5__["getCurrentUser"])().then(async response => {
    return Promise.resolve(response);
  });
}
async function LoginTIM(response) {
  const TRTC_SIG = await Object(_api_bcxin_identify__WEBPACK_IMPORTED_MODULE_6__["getTencentTRTCSig"])({
    name: response.name,
    cid: response.tencentUserId
  });
  console.log("TRTC_SIG===", TRTC_SIG);
  const userID = response.tencentUserId;
  const data = await Object(_api_bcxin_identify__WEBPACK_IMPORTED_MODULE_6__["getTencentSig"])({
    name: response.name,
    mobilePhone: response.tencentUserId
  });
  const userSig = data.data;
  console.log("userSig===", userSig);
  let promise = _tim__WEBPACK_IMPORTED_MODULE_7__["default"].login({
    userID,
    userSig
  });
  promise.then(function (imResponse) {
    console.log(imResponse.data); // 登录成功
    _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("toggleIsLogin", true);
    _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("startComputeCurrent");
    _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit({
      type: "GET_USER_INFO",
      userID,
      userSig,
      sdkAppID: Number("1400522511")
    });
    // 登录成功后会触发 SDK_READY 事件，该事件触发后，可正常使用 SDK 接口
    _tim__WEBPACK_IMPORTED_MODULE_7__["default"].on(tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default.a.EVENT.SDK_READY, ({
      name
    }) => onReadyStateUpdate({
      name
    }));
    // SDK NOT READY
    _tim__WEBPACK_IMPORTED_MODULE_7__["default"].on(tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default.a.EVENT.SDK_NOT_READY, ({
      name
    }) => onReadyStateUpdate({
      name
    }));
    // 被踢出
    _tim__WEBPACK_IMPORTED_MODULE_7__["default"].on(tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default.a.EVENT.KICKED_OUT, onKickOut);
    // SDK内部出错
    _tim__WEBPACK_IMPORTED_MODULE_7__["default"].on(tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default.a.EVENT.ERROR, onError);
    // 收到新消息
    _tim__WEBPACK_IMPORTED_MODULE_7__["default"].on(tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default.a.EVENT.MESSAGE_RECEIVED, onReceiveMessage);
    // 会话列表更新
    _tim__WEBPACK_IMPORTED_MODULE_7__["default"].on(tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default.a.EVENT.CONVERSATION_LIST_UPDATED, onUpdateConversationList);
    // 群组列表更新
    _tim__WEBPACK_IMPORTED_MODULE_7__["default"].on(tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default.a.EVENT.GROUP_LIST_UPDATED, onUpdateGroupList);
    // 会话未读总数更新，event.data 是当前单聊和群聊会话的未读总数
    _tim__WEBPACK_IMPORTED_MODULE_7__["default"].on(tim_js_sdk__WEBPACK_IMPORTED_MODULE_9___default.a.EVENT.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED, onTotalUnreadMessageCountUpdated);
    if (imResponse.data.repeatLogin === true) {
      // 标识帐号已登录，本次登录操作为重复登录。v2.5.1 起支持
      console.log(imResponse.data.errorInfo);
    }
  }).catch(function (imError) {
    console.warn("login error:", imError); // 登录失败的相关信息
    _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("showMessage", {
      type: "error",
      message: imError
    });
  });
}

/**
 * * 野火登录
 */
async function loginWF(response) {
  let href = window.location.href;
  let path = href.substring(href.indexOf("#") + 1);
  console.log("init", href, path);
  // 判断是否是主窗口，请根据实际情况进行调整
  if (path === "/" /*login*/ || path.startsWith("/dispatch") || href.indexOf("#") === -1) {
    console.log("init wfc");
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_14__["isElectron"])()) {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_11__["default"].init();
      // 双网环境配置
      //     // 设置网络策略
      //     wfc.setBackupAddressStrategy(0)
      //     // 设置备选网络
      //     wfc.setBackupAddress('192.168.10.11', 80)
    } else {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_11__["default"].init();
      // 双网环境配置
      // 可以根据访问网页的地址，配置是否切换备选网络策略
      // 比如公网，通过域名访问，采用默认的主网络；内网，通过ip访问，使用备选网络
      // 需要在wfc.connect之前调用
      // if (new URL(window.origin).host.startsWith('192.168.2.169')) {
      //     // 设置备选网络不走WSS
      //     Config.USE_WSS = false;
      //     // 设置网络策略
      //     wfc.setBackupAddressStrategy(2)
      //     // 设置备选网络
      //     wfc.setBackupAddress('192.168.10.11', 80)
      // }
    }
    _store_js__WEBPACK_IMPORTED_MODULE_15__["default"].init(true);
    console.log("init wfc store");
  } else {
    console.error("not home window, not init wfc, 如果此窗口就是主窗口或者应用只有一个窗口，可能会导致功能不正常，请更新上面的主窗口判断逻辑");
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_14__["isElectron"])()) {
      _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_11__["default"].attach();
    }
    let subWindowLoadDataOptions = {
      loadFavGroupList: true,
      loadChannelList: true,
      loadFriendList: true,
      loadFavContactList: true,
      loadFriendRequestList: true,
      loadDefaultConversationList: true
    };
    // TODO 优化，有的窗口并不需要store，或者不需要加载所有默认数据
    _store_js__WEBPACK_IMPORTED_MODULE_15__["default"].init(false, subWindowLoadDataOptions);
  }
  const {
    tencentUserId,
    name,
    telephone /*, idCardNo*/ /*, idNumber*/
  } = response;
  Object(_api_bcxin_identify__WEBPACK_IMPORTED_MODULE_6__["getWFToken"])({
    platform: _config__WEBPACK_IMPORTED_MODULE_10__["default"].getWFCPlatform(),
    clientId: _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_11__["default"].getClientId(),
    userId: tencentUserId,
    idNumber: "66",
    displayName: name,
    mobile: telephone
  }).then(async res => {
    console.log("wft token", res);
    const {
      authToken,
      token
    } = res;
    // !!!以下几步操作一定要有!!!
    _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_11__["default"].connect(tencentUserId, token);
    Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_12__["setItem"])("authToken-" + new URL(_config__WEBPACK_IMPORTED_MODULE_10__["default"].APP_SERVER).host, authToken);
    Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_12__["setItem"])("wfcUserId", tencentUserId);
    Object(_ui_util_storageHelper__WEBPACK_IMPORTED_MODULE_12__["setItem"])("wfcToken", token);
  }).catch(error => {
    console.error("wfc login error:", error);
  });
}
/* harmony default export */ __webpack_exports__["default"] = (async function () {
  console.log("wfc-----------------------: ", _wfc_client_wfc__WEBPACK_IMPORTED_MODULE_11__["default"]);
  const client = await Object(_utils_index__WEBPACK_IMPORTED_MODULE_13__["getConfig"])("dispatchClient");
  console.log("client: ", client);
  _store_index__WEBPACK_IMPORTED_MODULE_8__["default"].commit("SET_DISPATCH_CLIENT", client);
  localStorage.setItem("dispatchClient", client.toString());
  if (client === "tencent") {
    const response = await getUserInfo();
    await LoginTIM(response);
    return response;
  } else if (client === "wildfire") {
    const response = await getUserInfo();
    console.log("login wildfire", response);
    await LoginTIM(response);
    await loginWF(response);
    return response;
  }
});

/***/ }),

/***/ "./src/vendor/pinyin/data/dict-zi-web.js":
/*!***********************************************!*\
  !*** ./src/vendor/pinyin/data/dict-zi-web.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  a: "",
  ā: "吖锕錒",
  á: "嗄",
  ǎ: "",
  à: "",
  āi: "哎哀埃娭溾嗳銰锿噯諰鎄",
  ái: "啀娾捱皑凒隑嵦溰嘊敱敳皚磑癌",
  ǎi: "毐昹娾欸絠嗳矮蔼躷噯濭藹譪霭靄",
  ài: "艾伌欬爱砹硋堨焥隘嗌嗳塧嫒愛碍叆暧瑷僾噯壒嬡懓薆鴱懝曖璦賹餲皧瞹馤礙譺鑀鱫靉",
  ān: "安侒峖桉氨偣庵菴谙啽媕萻葊痷腤裺鹌蓭誝鞍鞌盦諳馣鮟盫鵪韽鶕",
  án: "玵啽雸儑",
  ǎn: "垵俺唵埯铵揞晻罯銨",
  àn: "厈屵屽犴岸咹按洝荌案胺豻堓隌晻暗貋儑錌闇黯",
  āng: "肮骯",
  áng: "卬岇昂昻",
  ǎng: "",
  àng: "枊盎醠",
  āo: "泑柪眑梎軪熝爊",
  áo: "敖厫隞嗷嗸嶅廒慠滶獓蔜遨骜摮獒璈磝墽翱聱螯翶謷謸翺鳌鏕鏖鰲鷔鼇",
  ǎo: "艹抝芺袄眑郩镺媪媼襖",
  ào: "岙扷抝坳垇岰柪傲奡軪奧嫯嶅慠澚隩墺嶴懊擙澳鏊驁",
  ba: "罷",
  bā: "丷八仈巴叭朳玐夿岜扷芭峇柭疤哱哵捌笆粑羓蚆釟豝鲃魞",
  bá: "叐犮抜妭拔茇炦癹胈菝詙跋軷颰魃鼥",
  bǎ: "钯鈀靶",
  bà: "坝弝爸皅垻跁鲃魞鲅鲌罷鮁鮊覇矲霸壩灞欛",
  bāi: "挀掰擘",
  bái: "白",
  bǎi: "百佰栢瓸捭竡粨絔摆擺襬",
  bài: "呗庍拝败拜唄敗猈稗粺薭贁韛",
  bān: "扳攽朌肦班般颁斑搬斒頒搫瘢鳻螌褩癍辬",
  bǎn: "阪坂岅昄板版瓪钣粄舨鈑蝂魬闆",
  bàn: "办半伴扮坢姅怑绊柈秚湴絆跘鉡靽辦瓣",
  bāng: "邦垹帮捠梆浜邫幇幚縍幫鞤",
  bǎng: "绑綁牓膀髈",
  bàng: "玤挷蚄傍棒棓硥谤塝搒稖蒡蛖蜯镑縍艕謗鎊",
  bāo: "勹包佨孢苞枹胞剝笣煲龅裦蕔褒襃闁齙",
  báo: "窇雹",
  bǎo: "宝怉饱保鸨宲珤堢媬葆寚飹飽褓駂鳵緥鴇賲藵寳寶靌",
  bào: "勽犳报怉抱豹趵铇菢蚫袌報鉋鲍骲髱虣鮑儤曓嚗曝爆犦忁鑤",
  bei: "呗唄",
  bēi: "陂卑杯柸盃庳桮悲揹棓椑碑鹎箄諀鞞藣鵯",
  běi: "鉳",
  bèi: "贝孛狈貝邶备昁杮牬苝郥钡俻倍悖狽偝偹梖珼鄁備僃惫棑棓焙琲軰辈愂碚禙蓓蛽犕褙誖鞁骳輩鋇憊糒鞴鐾",
  bēn: "泍贲栟喯犇賁锛漰錛蟦",
  běn: "夲本苯奙畚翉楍",
  bèn: "坋坌泍炃倴捹桳渀笨逩撪",
  bēng: "伻祊奟崩絣閍嗙嵭痭嘣綳繃",
  béng: "甮甭",
  běng: "埄埲菶琣琫綳繃鞛",
  bèng: "泵迸堋逬揼跰塴綳甏镚繃蹦鏰",
  bī: "皀屄偪毴逼楅榌豍螕鵖鲾鎞鰏",
  bí: "荸鼻嬶",
  bǐ: "匕比夶朼佊吡妣沘疕纰彼毞肶柀秕俾娝笔粃紕舭啚崥筆鄙聛貏",
  bì: "币必毕闬闭佖坒庇芘诐邲咇妼怭怶畁畀肶苾哔柲毖珌畐疪祕胇荜贲陛毙狴畢笓粊袐铋婢敝旇梐紴翍萆萞閇閈閉堛弼弻愊愎湢皕禆筚詖貱賁赑嗶彃滗滭煏痺痹睤睥腷蓖蓽蜌裨跸鉍閟飶幣弊熚獙碧稫箅箆綼蔽鄪馝幤潷獘罼襅駜髲壁嬖廦篦篳縪薜觱避鮅斃濞蹕鞞髀奰璧鄨鎞鏎饆繴襣襞鞸韠魓躃躄驆鶝朇贔鐴鷝鷩鼊",
  biān: "辺边炞砭笾猵编萹煸牑甂箯糄編臱蝙鞕獱邉鍽鳊邊鞭鯾鯿籓籩",
  biǎn: "贬疺窆匾貶惼揙碥稨褊糄鴘藊覵鶣",
  biàn: "卞弁忭抃汳汴苄釆变峅玣変昪覍徧缏遍閞辡緶艑諚辧辨辩辫辮辯變",
  biāo: "灬杓标飑骉髟彪淲猋脿颩僄墂幖摽滮蔈颮骠標熛膔膘麃瘭磦镖飚飙儦檦篻颷瀌藨謤爂臕贆鏢穮镳飈飆飊飇鑣驫",
  biáo: "嫑",
  biǎo: "表婊裱諘褾錶檦",
  biào: "俵摽鳔",
  biē: "柭憋蟞癟鳖鱉鼈虌龞",
  bié: "別柲莂蛂徶襒蟞蹩",
  biě: "癟",
  biè: "別彆",
  bīn: "汃邠玢砏宾彬梹傧斌椕滨缤槟瑸豩賓賔镔儐濒頻濱濵虨豳檳璸瀕霦繽鑌顮",
  bǐn: "",
  bìn: "摈殡膑髩儐擯鬂殯臏髌鬓髕鬢",
  bīng: "冫仌仒氷冰兵幷栟掤梹蛃絣槟鋲檳",
  bǐng: "丙邴陃怲抦秉苪昞昺柄炳饼眪偋屛寎棅琕禀稟鈵鉼鞆餅餠鞞鞸",
  bìng: "並併幷枋垪庰倂栤病窉竝偋傡寎摒誁鮩靐",
  bo: "啵蔔噃",
  bō: "癶拨波癷玻剝哱盋砵趵钵饽紴缽菠袰溊碆鉢僠嶓撥播餑磻礡蹳皪驋鱍",
  bó: "仢彴肑驳帛狛瓝苩侼柭胉郣亳挬浡瓟秡袯钹铂桲淿脖舶萡袹博殕渤葧鹁愽搏猼鉑鈸馎鲌僰榑煿牔箔膊艊誖馛駁踣鋍镈壆馞駮鮊穛襏謈嚗懪簙鎛餺鵓糪髆髉欂襮礴鑮",
  bǒ: "癷蚾跛",
  bò: "孹擗擘檗檘譒蘗",
  bū: "峬庯逋钸晡鈽誧餔錻鯆鵏",
  bú: "鳪轐醭",
  bǔ: "卟补哺捕捬補鸔",
  bù: "布佈吥步咘怖抪歩歨柨钚勏埔埗悑捗荹部埠婄瓿鈈廍蔀箁踄郶篰餢",
  cā: "嚓擦攃",
  cǎ: "礤礸",
  cà: "遪囃",
  cāi: "偲猜",
  cái: "才扐材财財裁纔",
  cǎi: "毝倸啋埰婇寀彩採棌睬跴綵踩",
  cài: "埰寀菜蔡縩",
  cān: "參叄飡骖叅喰湌傪嬠餐爘驂囋",
  cán: "残蚕惭殘慚摲蝅慙蠺蠶",
  cǎn: "惨朁慘憯穇篸黪黲",
  càn: "灿孱傪粲嘇摻儏澯薒燦璨謲鏒",
  cāng: "仓仺伧沧苍玱鸧倉舱傖凔嵢滄獊蒼瑲濸篬艙螥鶬",
  cáng: "匨臧欌鑶",
  càng: "賶",
  cāo: "撡操糙",
  cáo: "曺曹傮嘈嶆慒漕蓸槽褿艚螬鏪",
  cǎo: "屮艸草愺慅懆騲",
  cào: "肏鄵襙鼜",
  cè: "夨冊册厕恻拺测荝敇畟側厠笧粣萗廁惻測策萴筞筴蓛箣憡簎",
  cēn: "參叄叅嵾穇篸",
  cén: "岑汵埁涔笒",
  cēng: "噌",
  céng: "层曽層嶒橧竲驓",
  cèng: "蹭",
  cī: "呰呲玼疵趀偨跐縒骴髊蠀齹",
  cí: "词珁兹垐柌祠茨瓷粢詞辝慈甆辞磁雌鹚糍辤飺餈嬨濨薋鴜礠辭鷀鶿",
  cǐ: "此佌泚玼皉啙跐鮆",
  cì: "朿次佽刾庛茦栨莿絘蛓赐螆賜",
  cōng: "匆囪囱苁忩枞茐怱悤棇焧葱楤漗聡蓯蔥骢暰樅樬潨熜瑽璁聦聪瞛篵聰蟌鍯繱鏓鏦騘驄",
  cóng: "丛徔従婃孮徖從悰淙琮碂慒漎潀潈誴賨賩樷錝藂叢灇欉爜",
  cǒng: "",
  còng: "愡憁謥",
  cōu: "",
  cóu: "",
  cǒu: "",
  còu: "凑湊傶楱腠辏輳",
  cū: "怚粗觕麁麄橻麆麤",
  cú: "徂殂",
  cǔ: "皻",
  cù: "促猝脨媨瘄蔟誎趗噈憱踧醋瘯踿簇縬趨鼀蹙蹵蹴顣",
  cuān: "汆撺鋑镩蹿攛躥鑹",
  cuán: "濽櫕巑攢灒欑穳",
  cuàn: "窜殩熶窽篡窾簒竄爨",
  cuī: "隹崔脺催凗嵟缞墔慛摧榱漼槯磪縗鏙",
  cuǐ: "漼熣璀趡皠",
  cuì: "伜忰疩倅粋紣翆脃脆啐啛崒悴淬萃椊毳焠琗瘁粹綷翠膵膬濢竁襊顇臎",
  cūn: "邨村皴踆澊竴膥",
  cún: "存侟拵壿澊",
  cǔn: "刌忖",
  cùn: "寸吋籿",
  cuō: "搓瑳遳磋蹉醝鎈",
  cuó: "虘嵯嵳痤睉矬蒫瘥蔖鹾酂鹺酇",
  cuǒ: "脞",
  cuò: "剉剒厝夎挫莡莝庴措逪锉蓌错縒諎銼錯",
  chā: "扠扱芆臿挿偛嗏插揷馇銟锸艖疀嚓鍤鎈餷",
  chá: "秅苴垞査茬茶捈梌嵖搽猹靫楂槎詧察摖檫",
  chǎ: "紁蹅镲鑔",
  chà: "仛奼汊岔侘衩诧剎姹紁詫",
  chāi: "芆肞钗釵",
  chái: "犲侪柴豺祡喍儕",
  chǎi: "茝",
  chài: "虿袃訍瘥蠆囆",
  chān: "辿觇梴搀覘裧摻緂鋓幨襜攙",
  chán: "苂婵谗單孱棎湹禅馋煘缠僝嶃嶄獑蝉誗鋋儃嬋廛潹潺緾澶磛禪毚螹蟐鄽瀍繟蟬儳劖繵蟾酁嚵壥巉瀺欃纏纒躔镵艬讒鑱饞",
  chǎn: "产刬旵丳斺浐剗谄啴產産铲阐蒇剷嵼摌滻嘽幝蕆諂閳骣燀簅冁繟醦譂鏟闡囅灛讇",
  chàn: "忏刬剗硟摲幝幨燀懴儳懺羼韂顫",
  chāng: "伥昌倀娼淐猖菖阊椙琩裮锠錩閶鲳闛鯧鼚",
  cháng: "仩仧兏肠苌镸長尝偿常徜瓺萇場甞腸嘗塲嫦瑺膓償嚐鲿鱨",
  chǎng: "昶惝場敞僘厰塲廠氅鋹",
  chàng: "怅玚畅鬯唱悵焻瑒暢畼誯韔",
  chāo: "抄弨怊欩钞訬焯超鈔勦摷綽劋樔窼",
  cháo: "牊晁巣巢鄛鼌漅樔潮窲罺鼂轈謿",
  chǎo: "炒眧粆焣煼槱麨巐",
  chào: "仦仯耖觘",
  chē: "伡車俥砗唓莗硨蛼",
  ché: "",
  chě: "扯偖撦奲",
  chè: "屮彻呫坼迠烢烲焎聅掣揊硩頙徹摰撤澈勶瞮爡",
  chen: "伧傖",
  chēn: "肜抻郴捵棽琛嗔綝瘨瞋諃賝謓",
  chén: "尘臣忱沉辰陈迧茞宸栕莀莐陳敐晨桭梣訦谌軙愖跈鈂煁蔯塵敶樄瘎霃螴諶薼麎曟鷐",
  chěn: "趻硶碜墋夦磣踸鍖贂醦",
  chèn: "衬爯疢龀偁趂趁榇稱齓齔儭嚫穪谶櫬襯讖",
  chēng: "朾阷泟柽爯凈棦浾琤偁淨碀蛏晿牚搶赪僜憆摚稱靗撐撑緽橖橕瞠赬頳檉竀罉鎗矃穪蟶鏿鐣饓鐺",
  chéng: "氶丞成朾呈承枨诚郕乗城埩娍宬峸洆荿埕挰晟浧珹掁珵窚脭铖堘惩揨棖椉程筬絾裎塍塖溗誠畻酲鋮憕撜澂橙檙鯎瀓懲騬",
  chěng: "侱徎悜逞骋庱睈裎騁",
  chèng: "秤牚稱竀穪",
  chi: "麶",
  chī: "吃妛哧彨胵蚩鸱瓻眵笞粚喫訵嗤媸摛痴絺樆噄殦瞝誺噭螭鴟鵄癡魑齝攡彲黐",
  chí: "弛池驰迟坻沶狋茌迡持柢竾荎俿歭耛菭蚳赿筂貾遅跢遟馳箈箎墀徲漦踟遲篪謘鍉邌鶗鶙",
  chǐ: "叺伬扡呎肔侈卶齿垑奓拸胣恥耻蚇袳豉欼歯袲裭誃鉹褫齒",
  chì: "彳叱斥佁杘灻赤饬侙抶勅恜柅炽勑捇眙翄翅敕烾啻湁飭傺痸腟誃鉓雴憏瘈翤遫銐慗慸瘛翨熾懘趩鶒鷘",
  chōng: "充忡沖茺浺珫翀舂嘃摏徸憃憧衝罿艟蹖",
  chóng: "虫崈崇痋隀漴褈緟蝩蟲爞",
  chǒng: "宠埫寵",
  chòng: "铳揰銃",
  chou: "鮘",
  chōu: "抽牰婤掫紬搊跾瘳篘醔犨犫",
  chóu: "怞俦诪帱栦惆梼畤紬绸菗椆畴絒愁皗稠筹裯詶酧酬綢踌儔雔嚋嬦幬懤盩薵檮燽雠疇籌躊醻讐讎雦",
  chǒu: "丒丑吜杽杻偢瞅醜矁魗",
  chòu: "臰遚殠",
  chu: "橻",
  chū: "出岀初榋摢摴樗貙櫖齣",
  chú: "刍除芻耝厨滁蒢豠锄媰耡蒭蜍趎鉏雏犓廚篨鋤橱幮櫉藸蟵躇雛櫥蹰鶵躕",
  chǔ: "処杵础椘處储楮禇楚褚濋儲檚璴礎齭齼",
  chù: "亍処竌怵泏绌豖欪炪竐俶敊埱珿絀菆傗鄐慉搐滀触閦儊嘼諔憷斶歜臅黜觸矗",
  chuā: "欻",
  chuǎ: "",
  chuà: "",
  chuāi: "搋",
  chuái: "膗",
  chuǎi: "",
  chuài: "啜欼膪踹",
  chuān: "巛川氚穿猭瑏",
  chuán: "舡舩剶船圌遄傳椯椽歂暷篅膞輲",
  chuǎn: "舛荈喘堾歂僢踳",
  chuàn: "汌串玔钏釧猭賗鶨",
  chuāng: "刅疮窓創窗牎摐牕瘡窻",
  chuáng: "床牀喠噇朣橦",
  chuǎng: "闯傸磢闖",
  chuàng: "怆刱剏剙創愴",
  chuī: "吹炊龡",
  chuí: "垂倕埀桘陲捶菙圌搥棰腄槌硾锤箠錘鎚顀",
  chuǐ: "",
  chuì: "惙",
  chūn: "芚旾杶春萅媋暙椿槆瑃箺蝽橁輴櫄鰆鶞",
  chún: "纯肫陙唇浱純莼脣湻犉滣蒓鹑漘蓴膞醇醕錞鯙鶉",
  chǔn: "朐偆萶惷睶賰蠢",
  chuō: "逴趠踔戳繛",
  chuò: "辶吷辵拺哾娖娕啜婥婼惙涰淖辍酫綽踀箹輟鋜龊擉磭餟繛歠鏃嚽齪鑡孎",
  da: "繨",
  dā: "咑哒耷笚嗒搭褡噠墶撘鎝鎉",
  dá: "达迏迖迚呾妲怛沓垯炟羍荅荙畗剳匒惮畣笪逹溚詚達跶靼憚薘鞑燵蟽鐽韃龖龘",
  dǎ: "",
  dà: "亣汏眔",
  dāi: "呆呔獃懛",
  dǎi: "歹逮傣",
  dài: "代诒轪侢垈岱帒甙绐迨带怠柋殆玳贷帯貣軑埭帶紿蚮袋軚逮釱棣詒貸軩瑇跢廗箉叇曃緿蝳駘鮘鴏戴艜黛簤蹛瀻霴襶黱靆",
  dān: "丹妉単眈砃耼耽郸聃躭酖單媅愖殚瘅匰箪褝鄲頕儋勯擔殫甔癉襌簞聸",
  dǎn: "伔刐抌玬瓭胆衴疸紞赕亶馾撢撣賧燀黕膽皽黵",
  dàn: "旦但帎呾沊泹狚诞唌柦疍訑啗啖惔惮淡萏蛋啿弾氮腅蜑觛亶瘅窞蓞誕僤噉馾髧儋嘾彈憚醈憺擔澹禫餤駳鴠癉膻癚嚪繵贉霮饏黮",
  dāng: "珰裆筜當儅噹澢璫襠簹艡蟷鐺闣",
  dǎng: "党谠當擋譡黨攩灙欓讜",
  dàng: "氹凼圵宕砀垱荡档偒菪婸崵愓瓽逿嵣當雼潒碭儅瞊蕩趤壋擋檔璗盪礑簜蘯闣",
  dāo: "刀刂忉朷氘舠釖鱽裯魛螩",
  dáo: "捯",
  dǎo: "导岛陦島捣祷禂搗隝嘄嶋嶌槝導隯壔嶹擣蹈檮禱",
  dào: "辺到帱悼梼焘盗菿椡盜絩道稲箌翢噵稻艔衜檤衟幬燾翿軇瓙纛",
  de: "旳",
  dē: "嘚",
  dé: "恴淂蚮悳惪棏锝徳德鍀",
  dēi: "嘚",
  děi: "",
  dèn: "扥扽",
  dēng: "灯登豋僜噔嬁燈璒竳簦艠蹬",
  děng: "等戥",
  dèng: "邓凳鄧隥墱嶝憕瞪磴镫櫈瀓覴鐙",
  dī: "氐仾低奃岻彽秪袛啲埞羝隄堤渧趆滴碮樀磾鞮鏑",
  dí: "扚廸旳狄肑籴苖迪唙敌浟涤荻啇梑笛觌靮滌蓧馰髢嘀嫡翟蔋蔐頔敵篴镝嚁藡豴蹢鏑糴覿鸐",
  dǐ: "氐厎坘诋邸阺呧坻弤抵拞枑柢牴砥掋菧觝詆軧楴聜骶鯳",
  dì: "坔旳杕玓怟枤苐俤哋埅帝埊娣逓递偙梊焍珶眱祶第菂谛釱媂揥棣渧睇缔蒂遆僀楴禘腣遞鉪墆墑墬嵽摕疐碲蔕蝃遰慸甋締蝭嶳諦諟踶螮",
  diǎ: "嗲",
  diān: "佔敁掂傎厧嵮滇槇槙瘨窴颠蹎巅顚顛癫巓攧巔癲齻",
  dián: "",
  diǎn: "典奌点婰敟椣跕碘蒧蕇踮點嚸",
  diàn: "电阽坫店垫扂玷痁钿婝惦淀奠琔殿痶蜔鈿電墊壂橂橝澱靛磹癜簟驔",
  diāo: "刁叼汈刟虭凋奝弴彫蛁椆琱貂碉鳭瞗錭雕鮉鲷簓鼦鯛鵰",
  diǎo: "扚屌鳥",
  diào: "弔伄吊钓盄窎訋掉釣铞铫絩鈟竨蓧誂銚銱雿魡調瘹窵鋽藋鑃",
  diē: "爹跌褺",
  dié: "佚怢泆苵迭咥垤峌恎挕昳柣绖胅瓞眣耊啑戜眰谍喋堞崼幉惵揲畳絰耋臷詄趃跕軼镻叠楪殜牃牒跮嵽碟蜨褋槢艓蝶疂諜蹀鴩螲鲽鞢曡疉鰈疊氎",
  diě: "",
  diè: "哋",
  dīng: "仃叮奵帄玎甼町疔盯耵虰酊釘靪",
  dǐng: "奵艼顶酊頂鼎嵿鼑濎薡鐤",
  dìng: "订忊饤矴定訂釘飣啶掟萣铤椗腚碇锭碠聢蝊鋌錠磸顁",
  diū: "丟丢铥颩銩",
  dōng: "东冬咚岽東苳昸氡倲鸫埬娻崬崠涷笗菄徚氭蝀鮗鼕鯟鶇鶫",
  dǒng: "揰董墥嬞懂箽蕫諌",
  dòng: "动冻侗垌姛峒恫挏栋洞狪胨迵凍戙烔胴動娻崠硐棟湩絧腖働勭燑駧霘",
  dōu: "吺枓侸唗兜兠蔸橷瞗篼",
  dóu: "唞",
  dǒu: "乧阧抖钭陡蚪鈄",
  dòu: "吋豆郖浢狵荳逗饾鬥梪毭渎脰酘痘閗窦鬦鋀餖斣瀆闘竇鬪鬬鬭",
  dū: "厾剢阇嘟督醏闍",
  dú: "独涜渎椟牍犊裻読獨錖凟匵嬻瀆櫝殰牘犢瓄皾騳黩讀豄贕韣髑鑟韇韥黷讟",
  dǔ: "竺笃堵暏琽赌睹覩賭篤",
  dù: "芏妒杜妬姤荰秺晵渡靯镀螙斁殬鍍蠧蠹",
  duān: "耑偳剬媏端褍鍴",
  duǎn: "短",
  duàn: "段断塅缎葮椴煅瑖腶碫锻緞毈簖鍛斷躖籪",
  duī: "垖堆塠痽磓镦鴭鐓鐜",
  duǐ: "啍頧",
  duì: "队对兊兌対杸祋怼陮敓敚隊碓綐對憞憝濧濻薱懟瀢瀩譈譵轛",
  dūn: "吨惇蜳墪墫墩撴獤噸撉橔犜礅蹾蹲驐",
  dǔn: "盹趸躉",
  dùn: "伅坉庉忳沌炖盾砘逇钝顿遁鈍楯頓碷遯憞潡燉踲",
  duo: "",
  duō: "夛多咄哆畓剟掇敠敪毲裰跢嚉",
  duó: "仛夺沰铎剫敓敚喥痥鈬奪凙踱鐸",
  duǒ: "朵朶哚垜挆埵崜缍袳椯硾趓躱躲綞亸軃鬌嚲奲",
  duò: "杕杝刴剁枤沲陊陏饳垜尮挆挅柁柂柮桗舵隋媠惰隓跢跥跺飿馱墮憜駄墯隳鵽",
  ē: "妸妿娿婀屙痾",
  é: "讹吪囮迗俄峉哦娥峩峨涐莪珴訛皒睋鈋锇鹅磀誐鋨頟额魤額鵞鵝譌",
  ě: "枙娿砨惡頋噁騀鵈",
  è: "厄戹歺岋阨呃扼苊阸呝枙砐轭咢咹垩姶洝砈匎敋蚅饿偔卾堊娾悪硆谔軛鄂阏堮堨崿惡愕湂萼豟軶遌遏鈪廅搕搤搹琧痷腭僫蝁锷鹗蕚遻頞颚餓噩擜覨諤閼餩鍔鳄歞顎礘櫮鰐鶚鰪讍齃鑩齶鱷",
  ēi: "诶欸誒",
  éi: "诶欸誒",
  ěi: "诶欸誒",
  èi: "诶欸誒",
  ēn: "奀恩蒽煾",
  ěn: "峎",
  èn: "摁",
  ēng: "鞥",
  ér: "儿而児杒侕兒陑峏洏耏荋栭胹唲梕袻鸸粫聏輀鲕隭髵鮞鴯轜",
  ěr: "尒尓尔耳迩洱饵栮毦珥铒衈爾鉺餌駬薾邇趰",
  èr: "二弍弐佴刵咡贰貮貳誀樲髶",
  fā: "冹沷発發彂醗醱",
  fá: "乏伐姂坺垡浌疺罚茷阀栰笩傠筏瞂罰閥墢罸橃藅",
  fǎ: "佱法峜砝鍅灋",
  fà: "珐琺髪蕟髮",
  fān: "帆忛犿拚畨勫噃嬏幡憣旙旛繙翻藩轓颿籓飜鱕",
  fán: "凢凣凡匥杋柉矾籵钒舤烦舧笲釩棥煩緐墦樊蕃燔璠膰薠襎羳蹯瀿礬蘩鐇鐢蠜鷭",
  fǎn: "反払仮返橎",
  fàn: "氾犯奿汎泛饭范贩畈訉軓婏桳梵盕笵販軬飰飯滼嬎範輽瀪",
  fāng: "匚方邡汸芳枋牥祊钫淓蚄堏趽鈁錺鴋",
  fáng: "防妨房肪埅鲂魴",
  fǎng: "仿访彷纺昉昘瓬眆倣旊眪紡舫訪髣鶭",
  fàng: "放趽",
  fēi: "飞妃非飛啡婓婔渄绯扉斐暃猆靟裶緋蜚霏鲱餥馡騑騛鯡飝",
  féi: "肥疿淝腓痱蜰",
  fěi: "朏胐匪诽奜悱斐棐榧翡蕜誹篚",
  fèi: "吠犻芾废杮柹沸狒肺胏昲胇费俷剕厞疿砩陫屝笰萉廃費痱镄廢曊橃橨癈鼣濷蟦櫠鐨靅",
  fēn: "吩帉纷芬昐氛玢砏竕衯紛翂梤棻訜躮酚鈖雰馚朆餴饙",
  fén: "坆坟妢岎汾朌枌炃羒蚠蚡棼焚蒶隫墳幩濆獖蕡魵鳻橨燌燓豮鼢羵鼖豶轒鐼馩黂",
  fěn: "粉黺",
  fèn: "坋弅奋忿秎偾愤粪僨憤獖瞓奮橨膹糞鲼瀵鱝",
  fēng: "丰仹凨凬夆妦沣沨凮枫炐封疯盽砜風埄峰峯莑偑桻烽琒堼崶渢猦葑锋楓犎蜂熢瘋碸僼篈鄷鋒檒豐鎽鏠酆寷灃蘴霻蠭靊飌麷",
  féng: "夆浲逢堸溄馮摓漨綘艂縫",
  fěng: "讽風覂唪諷",
  fèng: "凤奉俸桻湗焨煈赗鳯鳳鴌縫賵",
  fó: "仏仸坲梻",
  fōu: "",
  fóu: "紑",
  fǒu: "缶妚炰缹缻殕雬鴀",
  fū: "伕邞呋妋抙姇枎玞肤怤柎砆胕荂衭娐尃捊荴旉琈紨趺酜麸稃跗鈇筟綒鄜孵粰蓲敷膚鳺麩糐麬麱懯璷",
  fú: "乀巿弗払伏凫甶刜孚扶芣芙芾咈姇宓岪帗怫枎泭绂绋苻茀俘垘枹柫柭氟洑炥玸畉畐祓罘胕茯郛韨鳬哹垺栿浮畗砩莩蚨袚匐桴涪烰琈符笰紱紼翇艴菔虙袱幅棴絥罦葍福綍艀蜉辐鉘鉜颫鳧榑稪箁箙粰褔豧韍颰幞澓蝠髴鴔諨踾輻鮄癁襆鮲黻襥鵩纀鶝",
  fǔ: "阝呒抚甫乶府弣拊斧俌俛柎郙俯蚥釡釜捬脯辅椨焤盙腑滏蜅腐輔嘸撫頫鬴簠黼",
  fù: "讣付妇负附咐坿彿竎阜驸复峊柎洑祔訃負赴蚥袝偩冨婏婦捬紨蚹傅媍富復秿萯蛗覄詂赋椱缚腹鲋榑禣複褔赙緮蕧蝜蝮賦駙嬔縛輹鮒賻鍑鍢鳆覆馥鰒",
  gā: "旮伽夾嘎嘠",
  gá: "钆軋尜釓嘎嘠噶錷",
  gǎ: "尕玍朒嘎嘠",
  gà: "尬魀",
  gāi: "侅该郂陔垓姟峐荄晐赅畡祴絯隑該豥賅賌",
  gǎi: "忋改絠",
  gài: "丐乢匄匃杚钙摡溉葢鈣戤概槩蓋漑槪瓂",
  gān: "甘忓迀攼玕肝咁坩泔矸苷柑玵竿疳酐粓凲尲尴筸漧鳱尶尷魐",
  gǎn: "仠芉皯秆衦赶敢桿稈感澉趕橄擀澸篢簳鳡鱤",
  gàn: "佄旰汵盰绀倝凎淦紺詌骭幹榦檊簳贑赣贛灨",
  gāng: "冈冮刚纲肛岡牨疘矼缸剛罡堈崗掆釭棡犅堽摃碙綱罁鋼鎠",
  gǎng: "岗犺崗",
  gàng: "焵焹筻槓鋼戅戆戇",
  gāo: "皋羔羙高皐髙臯睪槔睾槹獋橰篙糕餻櫜韟鷎鼛鷱",
  gǎo: "夰杲菒稁搞缟槀槁稾稿镐縞藁檺藳鎬",
  gào: "吿告勂诰郜峼祮祰锆筶禞誥鋯",
  gē: "戈仡圪扢犵纥戓肐牫咯紇饹哥袼鸽割彁滒戨歌鴚擱謌鴿鎶",
  gé: "呄佮佫匌挌阁革敋格鬲愅猲臵蛒裓隔颌嗝塥滆觡搿槅膈閣閤獦镉鞈韐骼臈諽輵擱鮥鮯櫊鎑鎘韚轕鞷騔",
  gě: "個哿笴舸嘅嗰蓋鲄",
  gè: "亇吤茖虼個硌铬箇鉻",
  gěi: "給",
  gēn: "根跟",
  gén: "哏",
  gěn: "",
  gèn: "亙亘艮茛揯搄",
  gēng: "刯庚畊浭耕菮椩焿絙絚赓鹒緪縆羮賡羹鶊",
  gěng: "郠哽埂峺挭绠耿莄梗綆鲠骾鯁",
  gèng: "堩緪縆",
  gōng: "工弓公厷功攻杛侊糿糼肱宫紅宮恭躬龚匑塨幊愩觥躳慐匔碽篢髸觵龏龔",
  gǒng: "廾巩汞拱唝拲栱珙嗊輁澒銾鞏",
  gòng: "贡羾唝貢嗊愩慐熕",
  gōu: "佝沟芶钩痀袧缑鈎溝鉤緱褠篝簼鞲韝",
  gǒu: "芶岣狗苟枸玽耉耇笱耈蚼豿",
  gòu: "呴坸构诟购垢姤冓啂夠够傋訽媾彀搆詬遘雊構煹觏撀糓覯購",
  gū: "杚呱咕姑孤沽泒苽巭巬柧轱唃唂罛鸪笟菇菰蛄蓇觚軱軲辜酤稒鈲磆箍箛嫴篐橭鮕鴣",
  gú: "",
  gǔ: "夃古扢抇汩诂谷股牯罟羖逧钴傦啒淈脵蛊嗗尳愲詁馉毂賈鈷鼔鼓嘏榖皷鹘穀縎糓薣濲皼臌轂餶櫎瀔盬瞽鶻蠱",
  gù: "固怘故凅顾堌崓崮梏牿棝祻雇榾痼锢僱錮鲴鯝顧",
  guā: "瓜刮呱胍栝桰铦鸹歄煱颪趏劀緺銛諣踻銽颳鴰騧",
  guá: "",
  guǎ: "冎叧呙呱咼剐剮寡",
  guà: "卦坬诖挂啩掛罣袿絓罫褂詿",
  guāi: "乖",
  guái: "叏",
  guǎi: "拐枴柺罫箉",
  guài: "夬怪恠",
  guān: "关纶官矜覌倌矝莞涫棺蒄窤閞綸関瘝癏観闗鳏關鰥觀鱞",
  guǎn: "莞馆琯痯筦斡管輨璭舘錧館鳤",
  guàn: "卝毌丱贯泴覌悺惯掼淉貫悹祼慣摜潅遦樌盥罆雚観躀鏆灌爟瓘矔礶鹳罐觀鑵欟鱹鸛",
  guāng: "光灮炚炛炗咣垙姯挄洸茪桄烡珖胱硄僙輄潢銧黆",
  guǎng: "広犷廣獷臩",
  guàng: "俇桄逛臦撗",
  guī: "归圭妫规邽皈茥闺帰珪胿亀硅窐袿規媯廆椝瑰郌嫢摫閨鲑嬀嶲槣槻槼鳺璝瞡龜鮭巂歸雟鬶騩櫰櫷瓌蘬鬹",
  guǐ: "宄氿朹轨庋佹匦诡陒垝姽恑攱癸軌鬼庪祪軓匭晷湀蛫觤詭厬簋蟡",
  guì: "攰刿刽昋炅攱贵桂桧匮眭硊趹椢猤筀貴溎蓕跪匱瞆劊劌嶡撌槶螝樻檜瞶禬簂櫃癐襘鐀鳜鞼鑎鱖鱥",
  gǔn: "丨衮惃硍绲袞辊滚蓘裷滾緄蔉磙緷輥鲧鮌鯀",
  gùn: "睔謴",
  guo: "",
  guō: "呙咼咶埚郭啯堝崞渦猓楇聒鈛锅墎瘑嘓彉濄蝈鍋彍蟈懖矌",
  guó: "囗囯囶囻国圀敋喐國帼掴腘摑幗慖漍聝蔮膕虢簂馘",
  guǒ: "果惈淉菓馃椁褁槨粿綶蜾裹輠餜櫎",
  guò: "過腂鐹",
  hā: "虾紦铪鉿蝦",
  há: "",
  hǎ: "奤",
  hà: "",
  hāi: "咍嗨",
  hái: "郂孩骸還嚡",
  hǎi: "海胲烸塰酼醢",
  hài: "亥妎拸骇害氦猲絯嗐餀駭駴饚",
  han: "兯爳",
  hān: "犴佄顸哻蚶酣頇嫨谽憨馠魽歛鼾",
  hán: "邗含汵邯函肣凾虷唅圅娢浛笒崡晗梒涵焓琀寒嵅韩椷甝筨馯蜬澏鋡韓",
  hǎn: "丆罕浫喊豃闞",
  hàn: "仠厈汉屽忓扞闬攼旰旱肣唅垾悍捍涆猂莟晘焊菡釬閈皔睅傼蛿颔馯撖漢蔊蜭鳱暵熯輚銲鋎憾撼翰螒頷顄駻譀雗瀚鶾",
  hāng: "",
  háng: "邟妔苀迒斻杭垳绗桁笐航蚢颃裄貥筕絎頏魧",
  hàng: "忼沆笐",
  hāo: "茠蒿嚆薅薧",
  háo: "乚毜呺竓皋蚝毫椃嗥獆號貉噑獔豪嘷獋諕儫嚎壕濠籇蠔譹",
  hǎo: "郝",
  hào: "昊侴昦秏哠恏悎浩耗晧淏傐皓鄗滈滜聕號暠暤暭澔皜皞镐曍皡薃皥藃鎬颢灏顥鰝灝",
  hē: "诃抲欱訶嗬蠚",
  hé: "禾纥呙劾咊咼姀河郃峆曷柇狢盇籺紇阂饸敆盉盍荷釛啝涸渮盒菏萂龁喛惒粭訸颌楁毼澕蓋詥貈貉鉌阖鲄朅熆閡閤餄鹖麧噈頜篕翮螛魺礉闔鞨齕覈鶡皬鑉龢",
  hě: "",
  hè: "咊抲垎贺哬袔隺寉焃惒猲賀嗃煂碋熇褐赫鹤翯嚇壑癋謞燺爀鶮鶴靍靎鸖靏",
  hēi: "黒黑嗨潶",
  hén: "拫痕鞎",
  hěn: "佷哏很狠詪噷",
  hèn: "恨噷",
  hēng: "亨哼悙涥脝",
  héng: "姮恆恒桁烆珩胻鸻撗橫衡鴴鵆蘅鑅",
  hèng: "悙啈橫",
  hng: "哼",
  hōng: "叿吽呍灴轰訇烘軣揈渹焢硡谾薨輷嚝鍧巆轟",
  hóng: "厷仜弘叿妅屸吰宏汯玒瓨纮闳宖泓玜苰垬娂沗洪竑紅羾荭虹浤浲紘翃耾硔紭谹鸿渱溄竤粠葓葒鈜閎綋翝谼潂鉷鞃魟篊鋐彋霐黉霟鴻黌",
  hǒng: "唝晎嗊愩慐",
  hòng: "讧訌閧撔澒銾蕻闂鬨闀",
  hōu: "齁",
  hóu: "矦鄇喉帿猴葔瘊睺銗篌糇翭骺翵鍭餱鯸",
  hǒu: "吼吽犼呴",
  hòu: "后郈厚垕後洉矦茩逅候堠豞鲎鲘鮜鱟",
  hū: "乎乯匢虍芴呼垀忽昒曶泘苸恗烀芔轷匫唿惚淴虖軤雽嘑寣滹雐幠戯歑戱膴戲謼",
  hú: "囫抇弧狐瓳胡壶隺壷斛焀喖壺媩搰湖猢絗葫鹄楜煳瑚瓡嘝蔛鹕鹘槲箶縎蝴衚魱縠螜醐頶觳鍸餬礐鵠瀫鬍鰗鶘鶦鶻鶮",
  hǔ: "乕汻虎浒俿淲萀琥虝滸錿鯱",
  hù: "互弖戶戸户冱芐帍护沍沪岵怙戽昈曶枑姱怘祜笏粐婟扈瓠楛嗃嗀綔鄠雽嫭嫮摢滬蔰槴熩鳸濩簄豰鍙嚛鹱觷護鳠頀鱯鸌",
  huā: "吪芲花砉埖婲華椛硴蒊嘩糀誮錵蘤",
  huá: "呚姡骅華釪釫铧滑猾嘩搳撶劃磆蕐螖鋘譁鏵驊鷨",
  huà: "夻杹枠画话崋桦華婳畫嬅畵觟話劃摦樺嫿槬澅諙諣黊繣舙譮",
  huái: "怀佪徊淮槐褢踝懐褱懷瀤櫰耲蘹",
  huài: "咶壊壞蘾",
  huān: "欢犿狟貆歓鴅懁鵍酄嚾孉懽獾歡讙貛驩",
  huán: "环郇峘洹狟荁垸桓萈萑堚寏絙雈獂綄羦蒝貆锾瞏圜嬛寰澴缳還阛環豲鍰雚镮鹮糫繯鐶闤鬟瓛",
  huǎn: "睆缓緩",
  huàn: "幻奂肒奐宦唤换浣涣烉患梙焕逭喚喛嵈愌換渙痪煥瑍綄豢漶瘓槵鲩擐澣藧鯇攌嚾轘鯶鰀",
  huāng: "巟肓荒衁宺朚塃慌",
  huáng: "皇偟凰隍黄喤堭媓崲徨惶揘湟葟遑黃楻煌瑝墴潢獚锽熿璜篁艎蝗癀磺穔諻簧蟥鍠餭鳇趪韹鐄騜鰉鱑鷬",
  huǎng: "汻怳恍炾宺晄奛谎幌詤熀熿縨謊兤櫎爌",
  huàng: "愰滉榥曂皝鎤皩",
  hui: "",
  huī: "灰灳诙咴恢拻挥洃虺袆晖烣珲豗婎媈揮翚辉隓暉椲楎煇琿睢禈詼墮幑睳褘噅噕撝翬輝麾徽隳瀈蘳孈鰴",
  huí: "囘回囬佪廻廽恛洄茴迴烠蚘逥痐缋蛕蛔蜖藱鮰繢",
  huǐ: "虺悔烠毀毁螝毇檓燬譭",
  huì: "卉屷屶汇讳泋哕浍绘芔荟诲恚恵桧烩贿彗晦秽喙廆惠湏絵缋翙阓匯彚彙會滙詯賄颒僡嘒瘣蔧誨銊圚寭慧憓暳槥潓潰蕙噦嬒徻橞殨澮濊獩璤薈薉諱頮檅檜燴璯篲藱餯嚖懳瞺穢繢蟪櫘繪翽譓儶鏸闠鐬靧譿顪",
  hūn: "昏昬荤婚惛涽焄阍棔殙湣葷睧睯蔒閽轋",
  hún: "忶浑珲馄渾湷琿魂餛鼲",
  hǔn: "",
  hùn: "诨俒眃倱圂婫掍焝溷尡慁睴觨諢",
  huō: "吙秴耠劐攉騞",
  huó: "佸姡活秮秳趏",
  huǒ: "灬火伙邩钬鈥漷煷夥",
  huò: "沎或货咟俰捇眓获閄剨喐掝祸貨惑旤湱禍漷窢蒦锪嚄奯擭濊濩獲篧鍃霍檴謋雘矆礊穫镬嚯彟瀖耯艧藿蠖嚿曤臛癨矐鑊韄靃彠",
  jī: "丌讥击刉叽饥乩刏圾机玑肌芨矶鸡枅苙咭剞唧姬屐积笄飢基庴喞嵆嵇幾攲敧朞犄筓缉赍嗘畸稘跻鳮僟毄箕綨緁銈嘰撃槣樭畿緝觭諅賫踑躸齑墼撽機激璣禨積錤隮懠擊磯簊羁賷櫅耭雞譏韲鶏譤鐖饑癪躋鞿魕鶺鷄羇虀鑇覉鑙齏羈鸄覊",
  jí: "乁亽亼及尐伋吉岌彶忣汲级即极皀亟佶诘郆卽叝姞急皍笈級堲揤疾觙偮卙唶楖淁焏谻戢棘極殛湒集塉嫉愱楫蒺蝍趌辑槉耤膌銡嶯潗濈瘠箿蕀蕺諔趞踖鞊鹡檝螏輯磼簎藉襋蹐鍓艥籍轚鏶霵齎躤雧",
  jǐ: "己丮妀屰犱泲虮挤脊掎済鱾幾戟給嵴麂魢撠憿橶擠濟穖蟣",
  jì: "彐彑旡计记伎坖妓忌技汥芰际剂季哜垍既洎紀茍茤荠計迹剤畟紒继觊記偈寄寂帺徛悸旣梞済绩塈惎臮葪蔇兾勣痵継蓟裚跡際鬾魝摖暨漃漈禝稩穊誋跽霁魥鲚暩瞉稷諅鲫冀劑曁禨穄薊襀髻嚌懠檕濟穖績繋罽薺覬鮆檵櫅櫭璾蹟鯽鵋齌廭懻癠穧繫蘎骥鯚瀱繼蘮鱀蘻霽鰶鰿鷑鱭驥",
  jia: "",
  jiā: "加乫伽夾宊抸佳拁泇徍枷毠浃珈哿埉挾浹痂梜笳耞袈傢猳葭跏椵犌腵鉫嘉擖镓糘豭貑鴐鎵麚",
  jiá: "圿夾忦扴郏拮荚郟唊恝莢戛脥袷铗戞猰蛱裌颉颊蛺鋏頬頰鴶鵊",
  jiǎ: "甲岬叚玾胛斚钾婽徦斝椵賈鉀榎槚瘕檟",
  jià: "驾架嫁幏賈榢價稼駕",
  jiān: "戋奸尖幵坚歼冿戔玪肩艰姧姦兼堅帴惤猏笺菅菺豜傔揃湔牋犍缄葌閒間雃靬搛椷椾煎瑊睷碊缣蒹豣漸監箋蔪樫熞稴緘蕑蕳鋑鲣鳽鹣熸篯縑鋻艱鞬餰馢麉瀐濺鞯鳒鵑殱礛籈鵳攕瀸鰔櫼殲譼鰜鶼礷籛韀鰹囏虃鑯韉",
  jiǎn: "囝拣枧俭柬茧倹挸捡笕减剪帴揵梘检湕趼堿揀揃検減睑硷裥詃锏弿暕瑐筧简絸谫彅戩戬碱儉翦鋄撿橏篯檢藆襇襉謇蹇瞼礆簡繭謭鎫鬋鰎鹸瀽蠒鐗鐧鹻籛譾襺鹼",
  jiàn: "件見侟建饯剑洊牮荐贱俴健剣栫涧珔舰剱徤揵袸谏釰釼寋旔朁楗毽腱臶跈践閒間賎鉴键僣僭榗槛漸監劎劍墹澗箭糋諓賤趝踐踺劒劔薦諫鋻鍵餞瞷瞯磵礀螹鍳鞬擶檻濺繝瀳覵覸譛鏩聻艦轞鐱鑒鑑鑬鑳",
  jiāng: "江姜茳畕豇將葁畺摪翞僵漿螀壃缰薑橿殭螿鳉疅礓繮韁鱂",
  jiǎng: "讲奖桨傋塂蒋奨奬蔣槳獎耩膙講顜",
  jiàng: "匞匠夅弜洚绛將弶強絳畺酱勥滰嵹摾漿彊犟糡醤糨醬櫤謽",
  jiāo: "艽交郊姣娇峧浇茮茭骄胶敎喬椒焦蛟跤僬嘐虠鲛嬌嶕嶣憍憢澆膠蕉燋膲礁穚鮫鵁鹪簥蟭轇鐎驕鷦鷮",
  jiáo: "矯",
  jiǎo: "臫佼恔挢狡绞饺捁晈烄笅皎脚釥铰搅湫筊絞勦敫湬煍腳賋僥摎摷暞踋鉸餃儌劋徺撟撹樔徼憿敽敿燞曒璬矯皦蟜繳譑孂纐攪灚鱎龣",
  jiào: "叫呌峤挍訆悎珓窌笅轿较敎斍覐窖筊覚滘較嘂嘄嘦斠漖酵噍嶠潐噭嬓徼獥癄藠趭轎醮灂覺譥皭釂",
  jie: "價",
  jiē: "阶疖哜皆袓接掲痎秸菨階喈喼嗟堦媘嫅椄湝結脻街裓楬煯瑎稭鞂擑蝔嚌癤謯鶛",
  jié: "卩卪孑尐讦扢刧刦劫岊昅杢刼劼杰疌衱诘拮洁狤迼倢桀桔桝洯紒莭訐偈偼啑婕崨捷掶袷袺傑媫嵑結絜蛣颉嵥搩楶滐睫節蜐詰趌跲鉣截榤碣竭蓵鲒嶱潔羯誱踕镼鞊頡幯擳嶻擮礍鍻鮚巀蠞蠘蠽",
  jiě: "姐毑媎觧飷檞",
  jiè: "丯介吤妎岕庎戒屆届斺玠畍界疥砎衸诫借悈紒蚧唶徣堺楐琾蛶觧骱犗耤誡褯魪嶰藉鎅鶡",
  jīn: "巾今仐斤钅竻釒金津矜砛荕衿觔埐珒矝紟惍琎菳堻琻筋釿璡鹶黅襟",
  jǐn: "侭卺巹紧堇婜菫僅厪谨锦嫤廑慬漌緊蓳馑槿瑾儘錦謹饉",
  jìn: "伒劤妗近进枃勁浕荩晉晋浸烬笒紟赆唫祲進煡臸僅寖搢溍缙靳墐嫤慬榗瑨盡馸僸凚歏殣觐噤嬐濅縉賮嚍壗嬧濜藎燼璶覲贐齽",
  jīng: "坕坙巠京泾经茎亰秔荊荆涇粇婛惊旍旌猄経菁晶稉腈葏睛粳經兢箐精綡聙鋞橸鲸鯨鶁鶄麖鼱驚麠",
  jǐng: "井丼阱刭坓宑汫汬肼剄穽殌儆頚幜憬擏澋璄憼暻璟璥頸蟼警",
  jìng: "劤妌弪径迳俓勁婙浄胫倞凈弳徑痉竞莖逕婧桱梷殑淨竟竫脛敬痙竧靓傹靖境獍誩踁静靚憼曔镜靜瀞鵛鏡競竸",
  jiōng: "冂冋坰扃埛扄浻絅銄駉駫蘏蘔",
  jiǒng: "冏囧泂炅迥侰炯逈浻烱絅煚窘颎綗臦僒煛熲澃褧燛顈臩",
  jiòng: "",
  jiū: "丩勼纠朻牞究糺鸠糾赳阄萛啾揂揪剹揫鳩摎稵樛鬏鬮",
  jiú: "",
  jiǔ: "九乆久乣氿奺汣杦灸玖糺舏韭紤酒镹韮",
  jiù: "匛旧臼咎疚柩柾倃捄桕匓厩救就廄廐舅僦廏慦殧舊鹫匶鯦麔欍齨鷲",
  jū: "凥伡抅車匊居岨泃狙苴驹俥毩疽眗砠罝陱娵婮崌掬梮涺揟椐毱琚腒趄跔跙锔裾雎艍蜛諊踘躹鋦駒據鋸鮈鴡檋鞠鞫鶋",
  jú: "局泦侷狊挶桔啹婅淗焗菊郹椈湨犑輂僪粷蓻跼閰趜鋦橘駶繘鵙蹫鵴巈蘜鶪鼰鼳驧",
  jǔ: "咀岨弆举枸矩莒挙椇筥榉榘蒟龃聥舉踽擧櫸齟欅襷",
  jù: "巨乬巪讵姖岠怇拒洰苣邭具怐怚拠昛歫炬珇秬钜俱倨倶剧烥粔耟蚷袓埧埾惧詎距焣犋跙鉅飓蒩虡豦锯寠愳窭聚駏劇勮屦踞鮔壉懅據澽窶螶遽鋸屨颶瞿貗簴躆醵忂懼鐻",
  juān: "姢勌娟捐涓朘梋焆瓹脧圏裐鹃勬鋑鋗镌鞙鎸鐫蠲",
  juǎn: "呟巻帣埍捲菤锩臇錈闂",
  juàn: "奆劵奍巻帣弮倦勌悁桊狷绢隽婘惓淃瓹眷鄄圏棬椦睊絭罥腃雋睠絹飬慻蔨嶲鋗餋獧縳巂羂讂",
  juē: "噘撅撧屩屫",
  jué: "亅孒孓决刔氒诀吷妜弡抉決芵叕泬玨玦挗珏疦砄绝虳埆捔欮蚗袦崫崛掘斍桷覐觖訣赽趹傕厥焳矞絕絶覚趉鈌劂瑴谲駃噊嶡嶥憰撅熦爴獗瘚蕝蕨觮鴂鴃噱壆憠橜橛燋璚爵臄镢櫭繘蟨蟩爑譎蹷蹶髉匷矍覺鐍鐝鳜灍爝觼穱彏戄攫玃鷢矡貜躩钁",
  juě: "蹶",
  juè: "誳",
  jūn: "军君均汮姰袀軍钧莙蚐桾皲鈞碅筠皸皹覠銁銞鲪頵麇龜鍕鮶麏麕",
  jǔn: "",
  jùn: "呁俊郡陖埈峻捃浚隽馂骏晙焌珺棞畯竣葰雋儁箘箟蜠賐寯懏餕燇濬駿鵘鵔鵕攈攟",
  kā: "喀",
  kǎ: "佧咔咯垰胩裃鉲",
  kāi: "开奒揩锎開鐦",
  kǎi: "凯剀垲恺闿豈铠凱剴嘅慨蒈塏嵦愷輆暟锴鍇鎧闓颽",
  kài: "忾炌欯欬烗勓愒愾濭鎎",
  kān: "刊栞勘龛堪嵁戡龕",
  kǎn: "凵冚坎扻侃砍莰偘埳惂欿歁槛輡檻顑竷轗",
  kàn: "衎崁墈阚瞰磡闞竷鬫矙",
  kāng: "忼闶砊粇康閌嫝嵻慷漮槺穅糠躿鏮鱇",
  káng: "",
  kǎng: "",
  kàng: "亢伉匟邟囥抗犺闶炕钪鈧閌",
  kāo: "尻嵪髛",
  kǎo: "丂攷考拷洘栲烤薧",
  kào: "洘铐犒銬鲓靠鮳鯌",
  kē: "匼柯牁牱珂科轲疴砢趷钶蚵铪嵙棵痾萪軻颏嗑搕犐稞窠鈳榼薖鉿颗樖瞌磕蝌頦窼醘顆髁礚",
  ké: "殻揢殼翗",
  kě: "岢炣渇嵑敤渴軻閜磆嶱",
  kè: "克刻剋勀勊客峇恪娔尅悈袔课堁氪骒愘硞缂衉嗑愙歁溘锞碦緙艐課濭錁礊騍",
  kēi: "剋尅",
  kēn: "",
  kěn: "肎肯肻垦恳啃龂豤貇龈墾錹懇",
  kèn: "珢掯硍裉褃",
  kēng: "劥阬坈坑妔挳硁殸牼揁硜铿硻摼誙銵鍞鏗",
  kěng: "硻",
  kōng: "倥埪崆悾涳椌硿箜躻錓鵼",
  kǒng: "孔倥恐悾",
  kòng: "矼控羫鞚",
  kōu: "抠芤眍眗剾彄摳瞘",
  kǒu: "口劶竘",
  kòu: "叩扣佝怐敂冦宼寇釦窛筘滱蔲蔻瞉簆鷇",
  kū: "扝刳矻郀朏枯胐哭桍秙窋堀圐跍窟骷鮬",
  kú: "",
  kǔ: "狜苦楛",
  kù: "库俈绔庫捁秙焅袴喾硞絝裤瘔酷廤褲嚳",
  kuā: "咵姱恗晇絓舿誇",
  kuǎ: "侉垮楇銙",
  kuà: "胯趶誇跨骻",
  kuǎi: "蒯擓",
  kuài: "巜凷圦块快侩郐哙浍狯脍欳塊蒉會筷駃鲙儈墤鄶噲廥澮獪璯膾旝糩鱠",
  kuān: "宽寛寬臗髋鑧髖",
  kuǎn: "梡欵款歀窽窾",
  kuàn: "",
  kuāng: "匡迋劻诓邼匩哐恇洭硄筐筺誆軭",
  kuáng: "忹抂狅狂诳軖軠誑鵟",
  kuǎng: "夼儣懭",
  kuàng: "卝丱邝圹纩况旷岲況矿昿贶框眖砿眶絋絖貺軦鉱鋛鄺壙黋懬曠爌矌礦穬纊鑛",
  kuī: "亏刲岿悝盔窥聧窺虧顝闚巋",
  kuí: "奎晆逵鄈隗馗喹揆葵骙戣暌楏楑魁睽蝰頯櫆藈鍨鍷騤夔蘷巙虁犪躨",
  kuǐ: "尯煃跬頍磈蹞",
  kuì: "尯胿匮喟媿愧愦蒉馈匱瞆嘳嬇憒潰篑聭聩蕢殨膭謉瞶餽簣聵籄饋",
  kūn: "坤昆堃堒婫崑崐晜猑菎裈焜琨髠裩貇锟髡鹍潉蜫褌髨熴瑻醌錕鲲騉鯤鵾鶤",
  kǔn: "悃捆阃壸梱祵硱稇裍壼稛綑閫閸",
  kùn: "困涃睏",
  kuò: "扩拡挄适秮秳铦筈萿葀蛞阔廓漷銛噋銽頢髺擴濶闊鞟韕霩鞹鬠",
  la: "鞡",
  lā: "垃柆砬菈搚磖邋",
  lá: "旯剌砬揦磖嚹",
  lǎ: "喇藞",
  là: "剌翋揦溂揧楋瘌蜡蝋辢辣蝲臈擸攋爉臘鬎櫴瓎镴鯻蠟鑞",
  lái: "来來俫倈崃徕涞莱郲婡崍庲徠梾淶猍萊逨棶琜筙铼箂錸騋鯠鶆麳",
  lǎi: "襰",
  lài: "疠娕徕唻婡徠赉睐睞赖誺賚濑賴頼癘顂癞鵣攋瀨瀬籁藾櫴癩籟",
  lán: "兰岚拦栏啉婪惏嵐葻阑暕蓝谰厱澜褴儖斓篮懢燣燷藍襕镧闌璼幱襤譋攔瀾灆籃繿蘫蘭斕欄襴囒灡籣欗讕躝襽鑭韊",
  lǎn: "览浨揽缆榄漤罱醂壈懒覧擥嬾懶孄覽孏攬灠欖爦顲纜",
  làn: "坔烂滥燗嚂壏濫爁爛瓓爤爦糷钄",
  lāng: "啷",
  láng: "勆郞哴欴狼嫏廊斏桹琅蓈榔瑯硠稂锒筤艆蜋郒樃螂躴鋃鎯駺",
  lǎng: "崀朗朖烺塱蓢誏朤",
  làng: "埌浪莨阆筤蒗誏閬",
  lāo: "捞粩撈",
  láo: "労劳牢窂哰崂浶勞痨铹僗嘮嶗憦憥朥癆磱簩蟧醪鐒顟髝",
  lǎo: "耂老佬咾恅狫荖栳珯硓铑蛯銠鮱轑",
  lào: "涝絡嗠耢酪嫪嘮憦樂澇躼橯耮軂",
  le: "饹",
  lē: "嘞",
  lè: "仂阞叻忇扐氻艻牞玏泐竻砳楽韷餎樂簕鳓鰳鱳",
  lei: "嘞",
  lēi: "",
  léi: "絫雷嫘缧蔂樏畾磥檑縲攂礌镭櫑瓃羸礧纍罍蘲鐳轠儽鑘靁虆鱩欙纝鼺",
  lěi: "厽耒诔垒洡塁絫傫誄瘣樏磊蕌磥蕾儡壘癗礌藟櫑櫐矋礨礧灅蠝蘽讄壨鑸鸓",
  lèi: "泪洡类涙淚祱絫酹銇頛頪錑攂颣類礧纇蘱禷",
  lēng: "稜",
  léng: "唥崚塄楞碐稜薐",
  lěng: "冷",
  lèng: "倰堎愣睖踜",
  li: "",
  lī: "",
  lí: "刕杝厘柂剓狸离荲骊悡梨梸犁琍菞喱棃犂鹂剺漓睝筣缡艃蓠嫠孷樆璃盠竰貍犛糎蔾褵鋫鲡黎篱縭罹錅蟍謧醨嚟藜邌釐離鯏斄瓈蟸鏫鯬鵹麗黧囄灕蘺蠫孋廲劙鑗穲籬纚驪鱺鸝",
  lǐ: "礼李里俚峛峢娌峲悝浬逦理裡锂粴裏豊鋰鲤澧禮鯉醴蠡鳢邐鱧欚纚鱱",
  lì: "力历厉屴扐立吏扚朸利励叓呖坜杝沥苈例叕岦戾枥沴沵疠苙迣俐俪栃栎疬砅茘荔赲轹郦唎娳悧栛栗浰涖猁珕砬砺砾秝莉莅鬲唳婯悷笠粒粝脷蚸蛎傈凓厤棙痢蛠詈跞雳厯塛慄搮溧睙蒞蒚蜊鉝鳨厲暦歴瑮綟蜧銐蝷镉勵曆歷篥隷鴗巁檪濿癘磿隸鬁儮擽曞櫔爄犡禲蠇鎘嚦壢攊櫟瀝瓅礪藶麗櫪爏瓑皪盭礫糲蠣儷癧礰纅酈鷅麜囇孋攦觻躒轢欐讈轣攭瓥靂靋",
  liǎ: "俩倆",
  lián: "奁连帘怜涟莲連梿联裢亷嗹廉慩溓漣蓮匲奩槏槤熑覝劆匳噒嫾憐磏聨聫褳鲢濂濓縺翴聮薕螊櫣燫聯臁謰蹥檶鎌镰瀮簾蠊鬑鐮鰱籢籨",
  liǎn: "莶敛梿琏脸裣慩摙溓槤璉蔹嬚薟斂櫣歛臉鄻襝羷蘞蘝醶",
  liàn: "练炼恋殓僆堜媡湅萰链摙楝煉瑓潋稴練澰錬殮鍊鏈瀲鰊戀纞",
  liāng: "",
  liáng: "良俍莨梁涼椋辌粱粮墚踉樑輬駺糧",
  liǎng: "両两兩俩倆唡啢掚脼裲緉蜽魉魎",
  liàng: "亮倞哴悢谅涼辆喨晾湸靓輌踉諒輛鍄",
  liāo: "蹽",
  liáo: "辽疗窌聊尞僚寥嵺憀摎漻膋嘹嫽寮嶚嶛憭敹樛獠缭遼暸橑璙膫療竂鹩屪廫簝繚藔蟟蟧豂賿蹘爎爒飂髎飉鷯",
  liǎo: "钌釕鄝缪蓼憭繆曢爎镽爒",
  liào: "尥尦钌炓料釕廖撂窷镣鐐",
  lie: "",
  liē: "",
  lié: "",
  liě: "忚毟挘",
  liè: "列劣劦冽劽姴挒洌茢迾哷埓埒栵浖烈烮捩猎猟脟棙蛚煭聗趔綟巤獦颲燤儠巁鮤鴷擸爄獵爉犣躐鬛鬣鱲",
  līn: "拎",
  lín: "厸邻阾林临冧啉崊惏晽琳粦碄箖粼綝鄰隣嶙潾獜遴斴暽燐璘辚霖疄瞵磷臨繗翷麐轔壣瀶鏻鳞驎鱗麟",
  lǐn: "菻亃僯箖凜凛撛廩廪懍懔澟檁檩癝癛",
  lìn: "吝恡悋赁焛亃痳賃蔺獜橉甐膦閵疄藺蹸躏躙躪轥",
  líng: "伶刢灵呤囹坽夌姈岺彾泠狑苓昤朎柃玲瓴〇凌皊砱秢竛羐袊铃陵鸰婈崚掕棂淩琌笭紷绫羚翎聆舲菱蛉衑祾詅跉軨稜蓤裬鈴閝零龄綾蔆輘霊駖澪蕶錂霗魿鲮鴒鹷燯霝霛齢酃鯪孁齡櫺醽靈欞爧麢龗",
  lǐng: "岺袊领領嶺",
  lìng: "另炩蘦",
  liū: "熘澑蹓",
  liú: "刘畄斿浏流留旈琉畱硫裗媹嵧旒蒥蓅骝摎榴漻瑠飗劉瑬瘤磂镏駠鹠橊璢疁镠癅蟉駵嚠懰瀏藰鎏鎦麍鏐飀鐂騮飅鰡鶹驑",
  liǔ: "柳栁桞珋桺绺锍綹熮罶鋶橮嬼懰羀藰",
  liù: "窌翏塯廇遛澑磂磟鹨鎦霤餾雡飂鬸鷚",
  lo: "咯",
  lóng: "龙屸尨咙泷茏昽栊珑胧眬砻竜聋隆湰滝嶐槞漋癃窿篭龍儱蘢鏧霳嚨巃巄瀧曨朧櫳爖瓏襱矓礲礱蠬蠪龓龒籠聾豅躘靇鑨驡鸗",
  lǒng: "陇垅垄拢篢篭龍隴儱徿壟壠攏竉龓籠躘",
  lòng: "哢梇硦儱徿贚",
  lou: "喽嘍瞜",
  lōu: "摟",
  lóu: "剅娄偻婁喽溇蒌僂楼嘍寠廔慺漊蔞遱樓熡耧蝼瞜耬艛螻謱貗軁髅鞻髏鷜",
  lǒu: "嵝塿嶁摟甊篓簍",
  lòu: "陋屚漏瘘镂瘻瘺鏤",
  lū: "噜撸謢嚕擼",
  lú: "卢庐芦垆枦泸炉栌胪轳舮鸬玈舻颅鈩鲈馿魲盧嚧壚廬攎瀘獹璷蘆曥櫨爐瓐臚矑籚纑罏艫蠦轤鑪顱髗鱸鸕黸",
  lǔ: "卤虏掳鹵硵鲁虜塷滷蓾樐澛魯擄橹氇磠穞镥瀂櫓氌艣鏀艪鐪鑥",
  lù: "圥甪陆侓坴彔录峍勎赂辂陸娽淕淥渌硉菉逯鹿椂琭祿禄僇剹勠盝睩稑賂路輅塶廘摝漉箓粶緑蓼蔍戮樚熝膔趢踛辘醁潞穋蕗錄錴録璐簏螰鴼簶蹗轆騄鹭簬簵鏕鯥鵦鵱麓鏴騼籙觻虂鷺",
  luán: "娈孪峦挛栾鸾脔滦銮鵉圝奱孌孿巒攣曫欒灓羉臡臠圞灤虊鑾癴癵鸞",
  luǎn: "卵覶",
  luàn: "乱釠乿亂薍灓",
  lūn: "掄",
  lún: "仑伦囵沦纶芲侖轮倫陯圇婨崘崙掄淪菕棆腀碖綸耣蜦論踚輪磮錀鯩",
  lǔn: "埨惀碖稐耣",
  lùn: "惀溣碖論",
  luo: "囉囖",
  luō: "捋頱囉囖",
  luó: "寽罗猡脶萝逻椤腡锣箩骡镙螺攎羅覶鏍儸覼騾囉攞玀蘿邏欏驘鸁籮鑼饠囖",
  luǒ: "剆倮砢捰蓏裸躶瘰蠃臝曪攭癳",
  luò: "泺咯峈洛荦骆洜珞捰渃硌硦笿絡蛒跞詻摞漯犖雒駱磱鮥鵅擽濼攊皪躒纙",
  lǘ: "驴闾榈閭氀膢瞜櫚藘驢",
  lǚ: "吕呂侣郘侶挔捛捋旅梠焒祣偻稆铝屡絽缕僂屢慺膂褛鋁履膐褸儢縷穭鷜",
  lǜ: "垏律哷虑嵂氯葎滤綠緑慮箻膟勴繂濾櫖爈卛鑢",
  lüè: "寽掠畧略锊稤圙鋢鋝",
  ma: "嗎嘛麽",
  mā: "亇妈孖庅媽嫲榪螞",
  má: "菻麻嗎痲痳嘛嫲蔴犘蟇",
  mǎ: "马犸杩玛码馬嗎溤獁遤瑪碼螞鎷鰢鷌",
  mà: "杩祃閁骂傌睰嘜榪禡罵螞駡鬕",
  mái: "薶霾",
  mǎi: "买荬買嘪蕒鷶",
  mài: "劢迈佅売麦卖唛脈麥衇勱賣邁霡霢",
  mān: "颟顢",
  mán: "姏悗蛮絻谩慲摱馒樠瞞鞔謾饅鳗鬘鬗鰻矕蠻",
  mǎn: "娨屘満满滿螨襔蟎鏋矕",
  màn: "曼僈鄤墁嫚幔慢摱漫獌缦蔄槾澫熳澷镘縵鏝蘰",
  māng: "牤",
  máng: "邙吂忙汒芒尨杗杧盲盳厖恾笀茫哤娏庬浝狵朚牻硭釯铓痝蛖鋩駹蘉",
  mǎng: "莽莾硥茻壾漭蟒蠎",
  màng: "",
  māo: "貓",
  máo: "毛矛芼枆牦茅茆旄罞渵軞酕堥嵍楙锚緢鉾髦氂犛蝥貓髳錨蟊鶜",
  mǎo: "冇卯夘乮峁戼泖昴铆笷蓩鉚",
  mào: "冃皃芼冐茂柕眊秏贸旄耄袤覒媢帽萺貿鄚愗暓毷瑁瞀貌鄮蝐懋",
  me: "庅麽麼嚜",
  mē: "嚒",
  mè: "濹嚰",
  méi: "坆沒枚玫苺栂眉脄莓梅珻脢郿堳媒嵋湄湈猸睂葿楣楳煤瑂禖腜塺槑酶镅鹛鋂霉穈徾鎇攗鶥黴",
  měi: "毎每凂美挴浼羙媄嵄渼媺镁嬍燘躾鎂黣",
  mèi: "妹抺沬旀昧祙袂眛媚寐殙痗跊鬽煝睸韎魅篃蝞嚜櫗",
  mēn: "悶椚",
  mén: "门们扪汶怋玧钔門們閅捫菛璊瞞穈鍆亹斖虋",
  mèn: "悗惛焖悶暪燜鞔懑懣",
  mēng: "掹擝矇",
  méng: "尨甿虻庬莔萌溕盟雺甍鄳儚橗瞢蕄蝱鄸鋂髳幪懜懞濛獴曚朦檬氋礞鯍鹲艨矒靀霿饛顭鸏",
  měng: "黾冡勐猛黽锰艋蜢瞢懜懞蟒錳懵蠓鯭矒鼆",
  mèng: "孟梦夢夣懜霥癦",
  mī: "咪瞇",
  mí: "冞祢迷袮猕谜蒾詸摵瞇謎醚彌擟瞴縻藌麊麋麿檷禰靡瀰獼蘪麛镾戂攠瓕蘼爢醾醿鸍釄",
  mǐ: "米芈侎沵羋弭洣敉粎脒渳葞蔝銤彌濔孊攠灖",
  mì: "冖糸汨沕宓怽枈觅峚祕宻密淧覔覓幂谧塓幎覛嘧榓滵漞熐蔤蜜鼏冪樒幦濗謐櫁簚羃",
  mián: "宀芇杣眠婂绵媔棉綿緜臱蝒嬵檰櫋矈矊矏",
  miǎn: "丏汅免沔黾勉眄娩莬偭冕勔渑喕媔愐湎睌缅葂黽絻腼澠緬靦鮸",
  miàn: "靣面牑糆麫麪麺麵",
  miāo: "喵",
  miáo: "苗媌描瞄鹋嫹緢鶓",
  miǎo: "厸仯劰杪眇秒淼渺缈篎緲藐邈",
  miào: "妙庙玅竗庿缪廟繆",
  miē: "乜吀咩哶孭",
  mié: "",
  miè: "灭烕眜覕搣滅蔑薎鴓幭懱瀎篾櫗簚礣蠛衊鑖鱴",
  mín: "民忟垊姄岷忞怋旻旼玟苠珉盿砇罠崏捪渂琘琝缗暋瑉痻碈鈱緍緡賯錉鴖鍲",
  mǐn: "皿冺刡忟闵呡忞抿泯黾勄敃闽悯敏笢笽惽湏湣閔黽愍敯暋僶閩慜憫潣簢鳘蠠鰵",
  míng: "名明鸣洺眀茗冥朙眳铭鄍嫇溟猽蓂詺暝榠銘鳴瞑螟覭",
  mǐng: "佲姳凕嫇慏酩",
  mìng: "命掵",
  miǔ: "",
  miù: "谬缪繆謬",
  mō: "摸嚤",
  mó: "庅尛谟嫫馍摹膜骳麽麼魹橅糢嬤嬷謨謩擵饃蘑髍魔劘戂攠饝",
  mǒ: "懡",
  mò: "末圽沒妺帓殁歿歾沫茉陌帞昩枺狢皌眜眿砞秣莈眽絈袹絔蛨貃嗼塻寞漠獏蓦貈貊貉銆靺墨嫼瘼瞐瞙镆魩黙縸默瀎貘嚜藦蟔鏌爅驀礳纆耱",
  mōu: "哞",
  móu: "牟侔劺呣恈敄桙眸谋堥蛑缪踎謀繆鍪鴾麰鞪",
  mǒu: "厶某",
  mòu: "",
  mú: "毪氁",
  mǔ: "母亩牡坶姆拇畂峔牳畆畒胟娒畝畞砪畮鉧踇",
  mù: "木仫目凩朷牟沐狇坶炑牧苜毣莯蚞钼募雮墓幙幕慔楘睦鉬慕暯暮缪樢艒霂穆縸繆鞪",
  n: "",
  ń: "唔嗯",
  ň: "嗯",
  na: "",
  nā: "",
  ná: "秅拏拿挐嗱蒘搻誽镎鎿",
  nǎ: "乸雫",
  nà: "吶妠抐纳肭郍衲钠納袦捺笚笝豽軜貀鈉蒳靹魶",
  nái: "腉搱摨孻",
  nǎi: "乃奶艿氖疓妳廼迺倷釢嬭",
  nài: "佴奈柰耏耐萘渿鼐褦螚錼",
  nān: "囝囡",
  nán: "男抩枏侽柟娚畘莮喃遖暔楠諵難",
  nǎn: "赧揇湳萳煵腩嫨蝻戁",
  nàn: "妠婻諵難",
  nāng: "儾囔",
  náng: "乪涳搑憹嚢蠰饟馕欜饢",
  nǎng: "搑擃瀼曩攮灢馕",
  nàng: "儾齉",
  nāo: "孬",
  náo: "呶怓挠峱桡硇铙猱蛲詉碙摎撓嶩憹橈獶蟯夒譊鐃巎獿",
  nǎo: "垴恼悩脑匘脳堖惱嫐瑙腦碯憹獶",
  nào: "闹婥淖閙鬧臑",
  ne: "",
  né: "",
  nè: "疒讷吶抐眲訥",
  néi: "",
  něi: "娞浽馁脮腇餒鮾鯘",
  nèi: "內氝氞錗",
  nèn: "恁媆嫩嫰",
  néng: "",
  něng: "螚",
  nèng: "",
  ńg: "唔嗯",
  ňg: "嗯",
  nī: "妮",
  ní: "尼坭怩抳籾倪屔秜郳铌埿婗淣猊蚭棿蛪跜鈮聣蜺馜觬貎輗霓鲵鯢麑齯臡",
  nǐ: "伱伲你拟妳抳狔苨柅婗掜旎晲棿孴儞儗隬懝擬濔薿檷聻",
  nì: "屰氼伲抐昵胒逆匿眤秜堄惄嫟愵睨腻暱縌誽膩嬺",
  niān: "拈蔫",
  nián: "年秊哖姩秥粘溓鲇鮎鲶鵇黏鯰",
  niǎn: "涊淰焾辇榐辗撚撵碾輦簐蹍攆蹨躎",
  niàn: "卄廿念姩唸埝悥惗艌",
  niáng: "娘嬢孃釀",
  niǎng: "",
  niàng: "酿醸釀",
  niǎo: "鸟茑袅鳥嫋裊蔦樢嬝褭嬲",
  niào: "脲",
  niē: "捏揑",
  nié: "苶",
  niě: "",
  niè: "乜帇圼峊枿陧涅痆聂臬啮掜菍隉敜湼嗫嵲踂噛摰槷踗踙銸镊镍嶭篞臲鋷錜颞蹑嚙聶鎳闑孼孽櫱籋蘖囁攝齧巕糱糵蠥鑈囐囓讘躡鑷顳钀",
  nín: "囜恁脌您",
  nǐn: "拰",
  níng: "咛狞苧柠聍寍寕甯寗寜寧儜凝橣嚀嬣擰獰薴檸聹鑏鬡鸋",
  nǐng: "擰矃",
  nìng: "佞侫泞倿寍寕甯寗寜寧澝擰濘",
  niū: "妞孧",
  niú: "牜牛汼怓",
  niǔ: "忸扭沑狃纽杻炄钮紐莥鈕靵",
  niù: "抝",
  nóng: "农侬哝浓脓秾農儂辳噥濃蕽檂燶禯膿癑穠襛譨醲欁鬞",
  nǒng: "繷",
  nòng: "挊挵癑齈",
  nóu: "羺",
  nǒu: "",
  nòu: "搙槈耨獳檽鎒鐞",
  nú: "奴伮孥帑驽笯駑",
  nǔ: "伮努弩砮胬",
  nù: "怒傉搙",
  nuán: "奻渜",
  nuǎn: "渜湪暖煖煗餪",
  nuàn: "",
  nuó: "挪梛傩橠難儺",
  nuǒ: "袳袲",
  nuò: "耎诺喏掿毭逽愞搙搦锘搻榒稬諾蹃糑鍩懧懦糥穤糯",
  nǘ: "",
  nǚ: "钕籹釹",
  nǜ: "沑衂恧朒衄聏",
  nüè: "虐婩硸瘧",
  o: "筽",
  ō: "喔噢",
  ó: "哦",
  ǒ: "嚄",
  ò: "哦",
  ou: "",
  ōu: "讴吽沤欧殴瓯鸥區嘔塸漚歐毆熰甌膒鴎櫙藲謳鏂鷗",
  óu: "",
  ǒu: "吘禺偶腢嘔熰耦蕅藕",
  òu: "怄沤嘔慪漚",
  pā: "汃妑苩皅趴舥啪葩",
  pá: "杷爬钯掱琶筢潖",
  pǎ: "",
  pà: "汃帊帕怕袙",
  pāi: "拍",
  pái: "俳徘猅棑牌箄輫簲簰犤",
  pǎi: "廹",
  pài: "沠哌派渒湃蒎鎃",
  pān: "眅畨萠潘攀籓",
  pán: "丬爿肨柈洀胖眫湴盘跘媻幋蒰搫槃盤磐縏膰磻蹒瀊蟠蹣鎜鞶",
  pǎn: "坢盻",
  pàn: "冸判沜拚泮炍肨叛牉盼胖畔聁袢詊溿頖鋬闆鵥襻鑻",
  pāng: "乓汸沗胮雱滂膖霶",
  páng: "厐夆尨彷庞逄庬趽舽嫎徬膀篣螃鳑龎龐鰟",
  pǎng: "嗙耪覫",
  pàng: "炐肨胖眫",
  pāo: "抛拋脬萢藨穮",
  páo: "咆垉庖狍炰爮瓟袍铇匏烰袌跁軳鉋鞄褜麃麅",
  pǎo: "",
  pào: "奅疱皰砲袌靤麭嚗礟礮",
  pēi: "妚呸怌抷肧柸胚衃醅",
  péi: "阫陪培婄毰赔锫裵裴賠錇",
  pěi: "俖琣",
  pèi: "伂妃沛犻佩帔姵斾柭旆浿珮配淠棑媐蓜辔馷嶏霈攈轡",
  pēn: "噴濆歕",
  pén: "瓫盆湓葐",
  pěn: "呠翸",
  pèn: "喯噴",
  pēng: "亨匉怦抨泙恲胓砰梈烹硑絣軯剻閛漰嘭駍磞",
  péng: "芃朋挷竼倗捀莑堋弸淜袶棚椖傰塜塳搒漨痭硼稝蓬鹏樥熢憉澎輣篣篷膨錋韸髼蟚蟛鬅纄蘕韼鵬騯鬔鑝",
  pěng: "捧淎皏摓",
  pèng: "掽椪碰閛槰踫磞",
  pi: "榌",
  pī: "丕伓伾妚批纰邳坯岯怶披抷枈炋狉狓砒悂秛秠紕铍陴旇翍耚豾釽鈚鉟銔磇駓髬噼錃錍魾憵礕礔鎞霹",
  pí: "皮仳阰纰芘陂枇肶毘毗疲笓紕蚍郫铍啤埤崥猈蚾蚽豼焷琵禆脾腗裨鈹鲏罴膍蜱罷隦魮壀螕鮍篺螷貔鞞鵧羆朇鼙蠯",
  pǐ: "匹庀疋仳圮吡苉悂脴痞銢嶏諀鴄擗噽癖嚭",
  pì: "屁埤淠揊嫓媲睥潎稫僻澼嚊濞甓疈譬闢鷿鸊",
  piān: "囨偏媥楄犏篇翩鍂鶣",
  pián: "骈胼缏腁楩賆跰瑸緶骿蹁駢璸騈",
  piǎn: "覑谝貵諞",
  piàn: "猵骗魸獱騗騙",
  piāo: "剽勡嘌嫖彯慓缥飘旚縹翲螵犥飃飄魒",
  piáo: "嫖瓢薸闝",
  piǎo: "莩殍缥瞟篻縹醥皫顠",
  piào: "僄彯徱骠驃鰾",
  piē: "氕覕潎撆暼瞥",
  piě: "丿苤鐅",
  piè: "嫳",
  pīn: "拚姘拼砏礗穦馪驞",
  pín: "玭贫娦貧琕嫔嬪薲嚬矉蘋蠙颦顰",
  pǐn: "品榀",
  pìn: "牝汖聘",
  pīng: "乒甹俜娉涄砯聠艵頩",
  píng: "平评凭呯坪岼泙郱帡庰枰洴玶胓荓瓶帲淜硑萍蚲塀幈焩甁缾蓱蛢評馮軿鲆凴竮鉼慿箳輧憑鮃檘簈蘋",
  pǐng: "屛",
  pìng: "",
  pō: "钋陂坡岥泺泼釙翍颇溌酦頗潑醗濼醱鏺",
  pó: "婆嘙搫蔢鄱皤櫇嚩",
  pǒ: "叵尀钷笸鉕箥駊髲",
  pò: "廹岶敀昢洦珀哱烞砶破粕奤湐猼蒪魄",
  pōu: "抙剖娝捊",
  póu: "抔抙垺捊掊裒箁",
  pǒu: "咅哣婄掊棓犃",
  pū: "攵攴扑抪炇柨陠痡秿噗撲潽鋪鯆",
  pú: "圤匍捗莆菩菐葡蒲蒱僕箁酺墣獛璞濮瞨穙镤贌纀鏷",
  pǔ: "圃埔浦烳普圑溥暜谱諩擈樸氆檏镨譜蹼鐠",
  pù: "痡舗舖鋪曝",
  qi: "啐",
  qī: "七迉沏恓柒倛凄桤郪娸悽戚捿桼淒萋喰攲敧棲欹欺紪缉傶褄僛嘁墄慽榿漆緀慼緝諆踦螇霋蹊魌鏚鶈",
  qí: "丌亓伎祁圻岓岐忯芪亝斉歧畁祇祈肵俟疧荠剘斊旂竒耆脐蚔蚑蚚陭颀埼崎帺掑淇猉畦萁萕跂軝釮骐骑嵜棊棋琦琪祺蛴隑愭碁碕稘褀锜頎鬿旗粸綥綨綦蜝蜞齊璂禥蕲觭螧錡鲯懠濝薺藄鄿檱櫀簯簱臍騎騏鳍蘄鯕鵸鶀麒籏艩蠐鬐騹鰭玂麡",
  qǐ: "乞邔企屺芑启呇杞玘盀唘豈起啔啓啟婍梩绮袳跂晵棨綮綺諬闙",
  qì: "气讫忔扱気汔迄呚弃汽矵芞亟呮泣炁盵咠洓竐栔欫氣訖唭焏夡愒棄湆湇葺滊碛摖暣甈碶噐憇槭趞器憩磜磧磩藒礘罊蟿鐑",
  qiā: "抲掐袷揢葜擖",
  qiá: "",
  qiǎ: "拤峠跒酠鞐",
  qià: "圶冾匼咭帢恰洽胢殎硈愘磍髂",
  qiān: "千仟阡圱圲奷扦汘芊迁佥岍杄汧茾欦竏臤钎拪牵粁悭挳蚈谸婜孯牽釺掔谦鈆僉愆签鉛骞鹐慳搴摼撁厱磏諐遷鳽褰謙顅檶攐攑櫏簽鏲鵮孅攓騫籖鬜鬝籤韆",
  qián: "仱岒忴扲拑玪乹前炶荨钤歬虔蚙钱钳偂掮揵軡亁媊朁犍葥鈐煔鉗墘榩箝銭撍潛潜羬蕁橬錢黔鎆黚騝濳騚灊鰬",
  qiǎn: "凵肷唊淺嵰遣槏膁蜸谴缱繾譴鑓",
  qiàn: "欠刋伣芡俔茜倩悓堑掅傔棈椠欿嗛慊皘蒨塹歉綪蔳儙槧篏輤篟壍嬱縴",
  qiāng: "羌戕戗斨枪玱矼羗猐啌跄嗴椌溬獇腔嗆搶蜣锖嶈戧摤槍牄瑲羫锵篬謒蹌蹡鎗鏘鏹鶬",
  qiáng: "強墙嫱蔷樯漒蔃墻嬙廧彊薔檣牆艢蘠",
  qiǎng: "強羟搶羥墏彊繈襁镪繦鏹",
  qiàng: "戗炝唴跄嗆戧摪熗羻",
  qiāo: "帩硗郻喿嵪煍跷鄥鄡劁勪幓敲毃踍锹墝碻磝頝骹墽幧橇燆缲橾磽鍬鍫礉繑繰趬蹺蹻鏒鐰",
  qiáo: "乔侨峤荍荞桥硚菬喬睄僑摮槗谯嘺墧嫶嶠憔潐蕎鞒樵橋燋犞癄瞧礄翹櫵藮譙趫鐈鞽顦",
  qiǎo: "丂巧釥愀髜",
  qiào: "诮陗峭窍偢殻殼誚髚僺嘺撬箾噭撽鞘韒礉竅翹鞩躈",
  qiē: "苆",
  qié: "癿伽茄聺",
  qiě: "",
  qiè: "厒妾怯疌郄匧窃悏挈栔洯帹惬淁笡愜椄猰蛪趄跙嗛慊朅稧箧锲篋踥穕鍥鯜竊籡",
  qīn: "兓侵钦衾骎菳媇嵚欽嵰綅誛嶔親顉駸鮼寴",
  qín: "庈忴扲芩芹肣矜埐珡矝秦耹菦蚙捦菳琴琹禽覃鈙鈫雂勤嗪嫀溱靲廑慬噙嶜擒斳鳹懄檎澿瘽螓懃蠄鵭",
  qǐn: "坅昑笉梫赾寑锓寝寖寢鋟螼",
  qìn: "吢吣抋沁唚菣揿搇撳寴瀙藽",
  qīng: "靑青氢轻倾卿郬圊埥寈氫淸清軽傾綪蜻輕錆鲭鯖鑋",
  qíng: "夝甠剠勍啨情殑硘晴棾氰葝暒擏樈擎檠黥",
  qǐng: "苘顷请庼頃廎漀請檾謦",
  qìng: "庆凊掅殸渹碃箐綮靘慶磬親儬濪罄櫦",
  qiōng: "",
  qióng: "卭邛宆穷穹茕桏惸琁筇笻赹焪焭琼舼蛬蛩煢熍睘跫銎瞏窮儝嬛憌橩璚藑瓊竆藭瓗",
  qiòng: "",
  qiū: "丘丠邱坵恘秌秋恷蚯媝湫萩楸湬塸蓲鹙篍緧蝵穐趥龜橚鳅蟗鞦鞧蘒鰌鰍鶖蠤龝",
  qiú: "厹叴囚扏犰玌艽芁朹汓肍求虬泅牫虯俅觓訅訄酋唒浗紌莍逎逑釚梂殏毬球赇釻頄崷巯渞湭皳盚遒煪絿蛷裘巰觩賕璆蝤銶醔鮂鼽鯄鰽",
  qiǔ: "搝糗",
  qiù: "",
  qū: "伹佉匤岖诎阹驱呿坥屈岴抾浀祛胠袪區焌紶蛆躯煀筁粬蛐詘趍嶇憈駆敺觑誳駈麹髷魼趨麯覰覷軀鶌麴黢覻驅鰸鱋",
  qú: "佢劬斪朐胊菃衐鸲淭絇翑蚼葋軥蕖璖磲螶鴝璩翵蟝瞿鼩蘧忂灈戵欋氍爠籧臞癯欔蠷衢躣蠼鑺鸜",
  qǔ: "苣取竘娶紶詓竬蝺龋齲",
  qù: "去厺刞欪耝阒觑閴麮闃鼁覰覷覻",
  quān: "奍弮悛圏棬椦箞鐉",
  quán: "全权佺狋诠姾峑恮泉洤荃拳牷辁啳埢婘惓捲痊硂铨椦湶犈筌絟葲搼楾瑔觠詮跧輇蜷銓槫権踡縓醛駩闎鳈鬈騡孉巏鰁權齤矔蠸颧顴灥",
  quǎn: "犭犬犮畎烇绻綣虇",
  quàn: "劝牶勧韏勸灥",
  quē: "炔缺缼蚗蒛阙闕",
  qué: "瘸",
  què: "汋却卻埆崅悫琷傕敠敪棤硞确阕塙搉皵碏阙鹊愨榷墧慤碻確趞燩闋礐闕鵲礭",
  qūn: "夋囷逡箘歏",
  qún: "宭峮帬裙羣群裠麇",
  qǔn: "",
  rán: "呥肰衻袇蚦袡蚺然髥嘫髯燃繎",
  rǎn: "冄冉姌苒染珃媣蒅熯橪",
  ràn: "",
  rāng: "",
  ráng: "穣儴勷瀼獽蘘禳瓤穰躟鬤",
  rǎng: "壌壤攘爙纕",
  ràng: "让懹譲讓",
  ráo: "娆荛饶桡嬈蕘橈襓饒",
  rǎo: "扰娆隢嬈擾",
  rào: "绕遶穘繞",
  ré: "捼",
  rě: "喏惹",
  rè: "热渃熱",
  rén: "亻人仁壬忈朲忎秂芢魜銋鵀",
  rěn: "忍荏栠栣荵秹菍棯稔綛躵銋",
  rèn: "刃刄认仞仭讱屻岃扨纫妊杒牣纴肕轫韧饪祍姙紉衽紝訒軔梕袵釰釼絍腍鈓靱靭韌飪認餁",
  rēng: "扔",
  réng: "仍辸礽芿陾",
  rì: "日驲囸氜衵釰釼鈤馹",
  róng: "戎肜栄狨绒茙茸荣容峵毧烿傛媶嵘搑絨羢嫆嵤搈榵溶蓉榕榮熔瑢穁槦縙蝾褣镕螎融駥嬫嶸爃鎔瀜曧蠑",
  rǒng: "冗宂坈傇軵縙氄",
  ròng: "穃縙",
  róu: "厹禸柔粈脜媃揉渘葇楺煣瑈腬糅蝚蹂輮鍒鞣瓇騥鰇鶔",
  rǒu: "韖",
  ròu: "肉宍楺譳",
  rū: "嶿",
  rú: "邚如吺侞帤茹挐桇袽铷渪筎蒘銣蕠蝡儒鴑嚅嬬孺濡獳薷鴽曘檽襦繻蠕颥醹顬鱬",
  rǔ: "汝肗乳辱鄏擩",
  rù: "入扖杁洳嗕媷溽缛蓐鳰褥縟",
  ruán: "堧撋壖",
  ruǎn: "阮朊软耎偄軟媆瑌腝碝緛輭檽瓀礝",
  ruàn: "緛",
  ruí: "苼桵甤緌蕤",
  ruǐ: "惢蕋蕊橤繠壡蘃蘂",
  ruì: "兊兌抐汭芮枘笍蚋锐瑞蜹睿銳鋭叡鏸",
  rún: "瞤",
  rǔn: "",
  rùn: "闰润閏閠潤橍膶",
  ruó: "挼捼",
  ruò: "叒偌弱鄀婼渃焫楉嵶蒻箬篛爇鰙鰯鶸",
  sa: "",
  sā: "仨",
  sǎ: "訯靸潵鞈攃灑躠纚",
  sà: "卅泧钑飒脎萨鈒摋隡馺蕯颯薩櫒鏾",
  sāi: "毢愢揌毸腮嘥噻鳃顋鰓",
  sǎi: "嗮",
  sài: "赛僿賽簺",
  san: "壭",
  sān: "三弎叁參叄叅毶毵厁毿犙鬖",
  sǎn: "仐伞傘糁馓糝糤糣繖鏒鏾饊",
  sàn: "俕帴閐潵",
  sāng: "桒桑喪槡",
  sǎng: "嗓搡磉褬颡鎟顙",
  sàng: "喪",
  sāo: "掻慅搔溞缫懆缲螦繅鳋颾騒繰騷鰠鱢",
  sǎo: "埽掃嫂",
  sào: "埽掃瘙懆氉矂髞",
  sē: "閪",
  sè: "色拺洓栜涩啬渋粣铯雭歮琗嗇瑟摵歰銫槭澁廧懎擌濇濏瘷穑薔澀璱瀒穡鎍繬穯轖鏼闟譅飋",
  sēn: "森椮槮襂",
  sěn: "",
  sēng: "僧鬙",
  sèng: "",
  sī: "厶纟丝司糹糸私咝泀俬恖虒鸶偲傂媤愢斯絲缌蛳楒禗鉰飔凘厮禠罳蜤銯锶嘶噝廝撕澌磃緦蕬鋖燍螄鍶蟖蟴颸騦鯣鐁鷥鼶",
  sí: "",
  sǐ: "死愢",
  sì: "巳亖四寺汜佀兕姒泤祀価孠杫泗饲驷俟娰枱柶洠牭洍涘肂飤梩笥耛耜釲竢覗嗣肆貄鈶鈻飴飼榹銉禩駟蕼儩騃瀃",
  sōng: "忪枀松枩娀柗倯凇崧庺梥淞菘愡揔棇嵩硹憽濍檧鬆",
  sóng: "",
  sǒng: "怂悚捒耸竦傱愯楤嵷摗漎慫聳駷",
  sòng: "吅讼宋诵送颂訟頌誦鎹餸",
  sōu: "凁捒捜鄋嗖廀廋搜溲獀蒐蓃馊摉飕摗锼撨艘螋醙鎪餿颼颾鏉騪",
  sǒu: "叜叟傁棷蓃嗾瞍擞薮擻藪櫢籔",
  sòu: "欶嗽擞瘶擻",
  sū: "甦酥稡稣窣穌鯂蘇蘓櫯囌",
  sú: "圱俗",
  sǔ: "",
  sù: "玊夙诉泝肃洬涑珟素莤速埣梀殐粛骕傃棴粟訴谡嗉塑塐嫊愫溯溸肅遡鹔僳愬摵榡膆蔌觫趚遬憟樕樎潥碿鋉餗潚縤橚璛簌縮藗謖蹜驌鱐鷫",
  suān: "狻痠酸",
  suǎn: "匴篹",
  suàn: "祘笇筭蒜算",
  suī: "夊芕虽倠哸娞浽荾荽眭毸滖睢缞嗺熣濉縗鞖雖",
  suí: "绥隋随遀綏隨瓍髄",
  suǐ: "膸瀡髓",
  suì: "亗岁砕祟谇埣嵗遂歲歳煫睟碎隧嬘澻穂誶賥檖燧璲禭穗穟繀襚邃旞繐繸譢鐆鏸鐩韢",
  sūn: "狲荪孫喰飧飱搎猻蓀槂蕵薞",
  sǔn: "扻损笋隼筍損榫箰簨鎨鶽",
  sùn: "摌",
  suō: "唆娑挱莏莎傞挲桫梭睃嗍嗦羧蓑摍趖簑簔縮鮻",
  suó: "",
  suǒ: "所乺唢索琑琐嫅惢锁嗩暛溑獕瑣褨璅縒鎍鎖鎻鏁",
  suò: "逤溹蜶",
  shā: "杀杉纱乷剎砂唦挱殺猀粆紗莎挲桬毮铩痧硰摋蔱裟榝樧魦鲨閷髿鎩鯊鯋繺",
  shá: "啥",
  shǎ: "傻儍",
  shà: "倽唼啑帹菨萐喢嗄廈歃翜歰箑翣濈閯霎",
  shāi: "筛篩諰簁簛籭",
  shǎi: "摋",
  shài: "晒攦曬",
  shān: "山彡邖圸删刪杉芟姍姗衫钐埏挻柵炶狦珊舢痁脠軕笘釤閊傓跚剼搧煔嘇幓煽潸澘穇檆縿膻鯅羴羶",
  shán: "",
  shǎn: "闪陕炶陝閃閄晱煔睒摻熌覢",
  shàn: "讪汕姍姗疝钐剡訕赸掞釤善單椫禅銏骟僐鄯儃墡墠撣潬缮嬗嶦擅敾樿歚禪膳磰謆赡繕蟮蟺譱贍鐥饍騸鳝鳣灗鱓鱔",
  shang: "",
  shāng: "伤殇商愓湯觞傷禓墒慯滳漡蔏殤熵螪觴謪鬺",
  shǎng: "垧扄晌埫赏樉賞鋿鏛贘鑜",
  shàng: "丄尙尚恦绱緔鞝",
  shāo: "娋弰烧莦焼萷旓筲艄輎蕱燒鞘髾鮹",
  sháo: "勺芍杓苕柖玿韶",
  shǎo: "",
  shào: "佋劭卲邵绍柖哨娋袑紹睄綤潲",
  shē: "奓奢猞赊畭畬畲輋賒賖檨",
  shé: "舌佘虵阇揲蛥闍磼",
  shě: "舍捨",
  shè: "厍设社泏舎舍厙挕涉涻渉設赦弽慑摂滠慴蔎歙蠂韘騇懾攝灄麝欇",
  shéi: "誰",
  shēn: "申屾扟伸身侁冞呻妽籶绅罙诜姺柛氠珅穼籸娠峷甡眒砷莘參叄堔敒深紳兟叅棽葠裑訷嫀搷罧蓡詵幓甧糁蔘糂燊薓駪鲹曑糝糣鯓鵢鯵鰺",
  shén: "神榊鉮鰰",
  shěn: "邥吲弞抌审矤哂矧宷谂谉婶淰渖訠棯審諗頣魫曋瞫嬸瀋覾讅",
  shèn: "肾侺昚胂涁眘渗祳脤谌腎葚愼慎椹瘆蜄蜃滲鋠瘮黮",
  shēng: "升生阩呏声斘昇枡泩狌苼殅牲珄竔陞曻陹殸笙湦焺甥鉎聲鍟鼪鵿",
  shéng: "渑绳憴澠縄繉繩譝",
  shěng: "眚偗渻",
  shèng: "圣乗娍胜晠晟剰剩勝椉貹嵊琞聖墭榺蕂橳賸",
  shi: "辻籂",
  shī: "尸失师厔呞虱诗邿鸤屍施浉狮師絁釶湤湿葹溮溼獅蒒蓍詩鉇嘘瑡酾鳲噓箷蝨鳾褷鲺濕鍦鯴鰤鶳襹釃",
  shí: "十饣乭时竍実实旹飠姼峕炻祏蚀埘宲時莳寔湜遈塒嵵溡蒔鉐實榯碩蝕鲥鮖鼫識鼭鰣",
  shǐ: "史矢乨豕使始驶兘宩屎狶痑笶榁鉂駛",
  shì: "士礻丗世仕市示卋式忕亊忯戺事侍势呩柹视试饰冟咶室峙恀恃拭昰是枾柿狧眂贳适栻烒眎眡耆舐莳轼逝铈啫埶畤秲視釈崼崻弑徥惿揓谥貰释勢嗜弒楴煶睗筮蒔觢試軾鈰鉃飾舓誓適鉽馶奭銴餝餙噬嬕澨澤諡諟遾檡螫謚簭襫醳釋鰘",
  shōu: "収收敊",
  shóu: "熟",
  shǒu: "扌手守垨首艏",
  shòu: "寿受狩兽售授涭绶痩膄壽夀瘦綬嘼獣獸鏉",
  shū: "书殳疋忬抒纾叔杸枢陎姝倐倏捈書殊紓婌悆掓梳淑焂菽軗鄃琡疎疏舒摅毹毺綀输瑹跾踈樞緰蔬輸橾鮛儵攄瀭鵨",
  shú: "朮尗秫孰赎蒣塾熟璹贖",
  shǔ: "鼡暏暑稌黍署蜀鼠數潻薥薯曙癙藷襡糬襩屬籔蠴鱪鱰",
  shù: "朮戍束沭述侸俞兪咰怸怷树竖荗恕捒庻庶絉蒁術隃尌裋竪腧鉥墅漱潄數澍豎樹濖錰霔鏣鶐虪",
  shuā: "唰",
  shuǎ: "耍",
  shuà: "誜",
  shuāi: "缞摔縗",
  shuǎi: "甩",
  shuài: "帅帥蟀卛",
  shuān: "闩拴閂栓絟",
  shuàn: "涮腨槫",
  shuāng: "双泷霜雙孀瀧骦孇騻欆礵鷞鹴艭驦鸘",
  shuǎng: "爽塽慡漺縔鏯",
  shuàng: "灀",
  shuí: "谁脽誰",
  shuǐ: "氵水氺閖",
  shuì: "帨挩捝涗涚娷祱稅税裞睡說説",
  shǔn: "吮楯",
  shùn: "顺眴舜順蕣橓瞚瞤瞬鬊",
  shuō: "說説",
  shuò: "妁洬烁朔铄欶矟搠蒴銏愬槊獡碩數箾鎙爍鑠",
  ta: "侤",
  tā: "他它牠祂趿铊塌榙溻鉈褟闧",
  tá: "",
  tǎ: "塔溚墖獭鮙鳎獺鰨",
  tà: "沓挞狧闼粏崉涾傝嗒搨遝遢阘榻毾漯禢撻澾誻踏鞈嚃橽錔濌蹋鞜鎉鎑闒鞳蹹躂嚺闟闥譶躢",
  tāi: "囼孡珆胎",
  tái: "旲邰坮抬骀枱炱炲菭跆鲐箈臺颱駘儓鮐嬯擡薹檯斄籉",
  tǎi: "奤",
  tài: "太冭夳忕汏忲汰汱态肽钛泰舦酞鈦溙態燤",
  tān: "坍贪怹啴痑舑貪摊滩嘽潬瘫擹攤灘癱",
  tán: "坛昙倓谈郯埮婒惔弾覃榃痰锬谭嘾墰墵彈憛潭談醈壇曇橝澹燂錟檀顃罈藫壜繵譚貚醰譠罎",
  tǎn: "忐坦袒钽菼毯僋鉭嗿緂儃憳憻暺醓璮襢",
  tàn: "叹炭倓埮探傝湠僋嘆碳舕歎",
  tāng: "铴湯嘡劏羰蝪薚镗蹚鏜闛鞺鼞",
  táng: "坣唐堂傏啺愓棠鄌塘嵣搪溏蓎隚榶漟煻瑭禟膅樘磄糃膛橖篖糖螗踼糛螳赯醣鎕餹鏜闛饄鶶",
  tǎng: "伖帑偒傥耥躺镋鎲儻戃灙曭爣矘钂",
  tàng: "烫铴摥燙鐋",
  tāo: "夲夵弢抭涛绦掏涭絛詜嫍幍慆搯滔槄瑫韬飸縚縧濤謟轁鞱韜饕",
  táo: "匋迯咷洮逃桃陶啕梼淘绹萄祹裪綯蜪鞀醄鞉鋾駣檮饀騊鼗",
  tǎo: "讨討",
  tào: "套",
  tè: "忑忒特脦犆铽慝鋱蟘",
  tēng: "熥膯鼟",
  téng: "疼痋幐腾誊漛滕邆縢螣駦謄儯藤騰籐鰧籘虅驣",
  tèng: "霯",
  tī: "剔梯锑踢銻擿鷉鷈體",
  tí: "苐厗荑桋绨偍珶啼媂媞崹惿渧稊缇罤遆鹈嗁瑅禔綈睼碮褆徲漽磃緹蕛题趧蹄醍謕蹏鍗鳀題鮷鵜騠鯷鶗鶙禵鷤",
  tǐ: "挮徥躰骵醍軆體",
  tì: "戻奃屉剃朑俶倜悌挮涕眣绨逖啑屜悐惕掦笹逷屟惖揥替棣綈裼褅歒殢髰薙嚏鬀嚔瓋鬄籊趯",
  tiān: "天兲呑婖添酟靔黇靝",
  tián: "田屇沺恬畑畋盷胋钿甛甜菾湉塡搷阗瑱碵緂磌窴鴫璳闐鷆鷏",
  tiǎn: "奵忝殄倎栝唺悿淟紾铦晪琠腆觍痶睓舔銛餂覥賟銽錪",
  tiàn: "掭菾琠瑱舚",
  tiāo: "旫佻庣恌條祧聎",
  tiáo: "芀朷岧岹苕迢祒條笤萔铫蓚蓨蓧龆樤蜩銚調鋚鞗髫鲦鯈鎥齠鰷",
  tiǎo: "宨晀朓脁窕誂斢窱嬥",
  tiào: "啁眺粜絩覜趒糶",
  tiē: "怗贴萜聑貼跕",
  tié: "",
  tiě: "铁蛈鉄僣銕鐡鐵驖",
  tiè: "呫飻餮",
  tīng: "厅庁汀听庍耓厛烃桯烴渟綎鞓聴聼廰聽廳",
  tíng: "邒廷亭庭莛停婷嵉渟筳葶蜓楟榳閮霆聤蝏諪鼮",
  tǐng: "圢甼町侹侱娗挺涏梃烶珽脡铤艇颋誔鋌閮頲",
  tìng: "忊梃濎",
  tōng: "囲炵通痌絧嗵蓪樋",
  tóng: "仝佟彤侗峂庝哃垌峒峝狪茼晍桐浵烔砼蚒偅痌眮秱铜硧童粡絧詷赨酮鉖僮勭鉵銅餇鲖潼獞曈朣橦氃燑犝膧瞳穜鮦",
  tǒng: "侗统捅桶筒統筩綂",
  tòng: "恸痛衕慟憅",
  tou: "",
  tōu: "偸偷婾媮緰鋀鍮",
  tóu: "亠投骰頭",
  tǒu: "妵紏敨飳斢黈蘣",
  tòu: "透埱",
  tu: "汢",
  tū: "凸宊禿秃怢突涋捸堗湥痜葖嶀鋵鵚鼵",
  tú: "図图凃峹庩徒悇捈涂荼莵途啚屠梌菟揬稌趃塗嵞瘏筡腯蒤鈯圗圖廜摕潳瑹跿酴墿馟檡鍎駼鵌鶟鷋鷵",
  tǔ: "土圡钍唋釷",
  tù: "兎迌兔唋莵堍菟鋀鵵",
  tuān: "湍猯圕煓貒",
  tuán: "団团抟剸團塼慱摶漙槫篿檲鏄糰鷒鷻",
  tuǎn: "畽墥疃",
  tuàn: "彖湪猯褖貒",
  tuī: "忒推蓷藬讉",
  tuí: "弚颓僓隤墤尵橔頺頹頽魋穨蘈蹪",
  tuǐ: "俀聉腿僓蹆骽",
  tuì: "侻退娧煺蛻蜕螁駾",
  tūn: "吞呑旽涒啍朜焞噋憞暾",
  tún: "坉庉忳芚饨蛌豘豚軘飩鲀魨霕黗臀臋",
  tǔn: "氽",
  tùn: "",
  tuō: "乇仛讬托扡汑饦杔侂咃咜拕拖沰挩捝莌袉袥託啴涶脫脱飥馲魠鮵",
  tuó: "阤驮佗陀陁坨岮沱沲狏驼侻柁砤砣袉铊鸵紽堶媠詑跎酡碢鉈馱槖駄鋖駞駝橐鮀鴕鼧騨鼍驒驝鼉",
  tuǒ: "彵妥庹椭楕嫷撱橢鵎鰖",
  tuò: "杝柝毤唾涶萚跅毻嶞箨蘀籜",
  wa: "哇",
  wā: "屲穵呙劸咼哇徍挖洼娲畖窊唲啘媧窐嗗瓾蛙搲溛漥窪鼃攨韈",
  wá: "娃",
  wǎ: "佤邷咓砙瓸搲",
  wà: "帓袜婠聉嗢搲腽膃韎襪韤",
  wai: "",
  wāi: "呙咼歪喎竵瀤",
  wǎi: "崴",
  wài: "外顡",
  wān: "毌夗弯剜埦婠帵捥塆湾睕蜿潫豌鋺彎壪灣",
  wán: "丸刓汍纨芄完岏忨抏杬玩笂紈捖蚖顽烷琓貦頑翫",
  wǎn: "夘夗倇唍挽盌莞莬埦婉惋捥晚晥梚涴绾脘菀萖惌晩晼椀琬皖畹碗箢綩綰輓踠鋔鋺",
  wàn: "卍卐妧杤捥脕掔腕萬絻綄輐槾澫鋄瞣薍錽蟃贃鎫贎",
  wāng: "尣尫尪汪尩瀇",
  wáng: "亾兦仼莣蚟朚",
  wǎng: "罓罒网彺忹抂徃往枉罖罔迬惘菵暀棢蛧辋網蝄誷輞瀇魍",
  wàng: "妄忘迋旺盳徍望暀朢",
  wēi: "厃危威倭烓偎逶隇隈喴媙崴嵔愄揋揻葨葳微椳楲溦煨詴蜲縅蝛覣嶶薇燰鳂癐癓巍鰃鰄霺",
  wéi: "囗韦圩囲围帏沩违闱隹峗峞洈為韋桅涠唯帷惟硙维喡圍媁嵬幃湋溈爲琟違潍維蓶鄬撝潙潿醀濰鍏闈鮠壝矀覹犩欈",
  wěi: "伟伪纬芛苇炜玮洧娓屗捤浘荱诿偉偽唩崣捼梶痏硊萎隗骩媁嵔廆徫愇渨猥葦蒍骫骪暐椲煒瑋痿腲艉韪僞嶉撱碨磈鲔寪緯蔿諉踓韑頠薳儰濻鍡鮪瀢韙颹韡亹瓗斖",
  wèi: "卫未位味苿為畏胃叞軎猚硙菋谓喂喡媦渭爲猬煟墛瞆碨蔚蜼慰熭犚磑緭蝟衛懀罻衞謂餧鮇螱褽餵魏藯轊鏏霨鳚蘶饖瓗讆躗讏躛",
  wēn: "昷塭温缊榅殟溫瑥辒韫榲瘟緼縕豱輼轀鎾饂鳁鞰鰛鰮",
  wén: "文彣芠炆玟闻紋蚉蚊珳阌雯瘒聞馼駇魰鳼鴍螡閺閿蟁闅鼤繧闦",
  wěn: "伆刎吻呅忟抆呡忞歾肳紊桽脗稳穏穩",
  wèn: "问妏汶紋莬問渂揾搵絻顐璺",
  wēng: "翁嗡滃鹟聬螉鎓鶲",
  wěng: "勜奣塕嵡滃蓊暡瞈攚",
  wèng: "瓮蕹甕罋齆",
  wō: "挝倭莴唩涹渦猧萵喔窝窩蜗撾濄緺蝸踒薶",
  wǒ: "呙我咼婑婐捰",
  wò: "仴沃肟卧枂臥偓捾涴媉幄握渥焥硪楃腛斡瞃濣瓁臒龌馧龏齷",
  wū: "乌圬弙扜扝汚汙污邬呜巫杅杇於屋洿诬钨烏剭窏釫惡鄔嗚誈僫歍誣箼鋘螐鴮鎢鰞",
  wú: "无毋吳吴吾呉芜郚唔娪峿洖浯茣莁梧珸祦無铻鹀蜈墲蕪鋙鋘橆璑蟱鯃鵐譕鼯鷡",
  wǔ: "乄五午仵伍妩庑忤怃迕旿武玝侮倵娒捂逜陚啎娬牾堥珷摀碔鹉熓瑦舞嫵廡憮潕儛甒膴瞴鵡躌",
  wù: "兀勿务戊阢屼扤坞岉杌沕芴忢旿物矹俉卼敄柮误務唔娪悟悞悮粅趶晤焐婺嵍惡渞痦隖靰骛塢奦嵨溩雺雾僫寤熃誤鹜鋈窹霚鼿霧齀蘁騖鶩",
  xī: "夕兮邜吸忚扱汐西希扸卥昔析矽穸肸肹俙咥咭徆怸恓诶郗饻唏奚娭屖息悕氥浠牺狶莃唽悉惜晞桸欷淅渓烯焁焈琋硒羛菥赥釸傒惁晰晳焟焬犀睎稀粞翖翕舾鄎厀嵠徯溪煕皙碏蒠裼锡僖榽熄熈熙獡緆蜥覡誒豨閪餏嘻噏嬆嬉嶲憘潝瘜磎膝凞暿樨橀歙熻熺熹窸羲螅螇錫燨犠瞦礂蟋豀谿豯貕蹊巂糦繥釐雟鯑鵗觹譆醯鏭鐊隵嚱巇曦爔犧酅饎觽鼷蠵鸂觿鑴",
  xí: "习郋席習袭觋雭喺媳椺蒵蓆嶍漝趘槢薂隰檄謵鎴霫鳛飁騱騽鰼襲驨",
  xǐ: "杫枲玺徙喜葈葸鈢鉩鉨屣漇蓰銑憘憙暿橲歖禧諰壐縰謑鳃蟢蹝釐璽鰓瓕鱚囍矖纚躧",
  xì: "匸卌扢屃忾饩呬忥怬细郄钑係恄欪盻郤屓欯绤細釳阋傒摡椞舃舄趇隙愾慀滊禊綌蒵赩隟墍熂犔稧戯潟澙蕮覤戱縘黖戲磶虩餼鬩繫闟霼屭衋",
  xiā: "呷虲疨虾谺傄閕煆颬瘕瞎蝦鰕",
  xiá: "匣侠狎俠峡柙炠狭陜埉峽烚狹珨祫捾硖笚翈舺陿徦硤遐敮暇瑕筪舝瘕碬辖磍蕸縖螛赮魻轄鍜霞鎋黠騢鶷",
  xiǎ: "閕閜",
  xià: "丅下乤圷芐疜夏梺廈睱諕嚇懗罅夓鎼鏬",
  xiān: "仚仙屳先奾佡忺氙杴欦祆秈苮姺枮籼珗莶掀铦搟綅跹酰锨僊僲嘕摻銛暹銽韯嬐憸薟鍁繊褼韱鮮蹮馦孅廯攕醶纎鶱襳躚纖鱻",
  xián: "伭咞闲咁妶弦臤贤咸唌挦涎玹盷胘娴娹婱絃舷蚿衔啣湺痫蛝閑閒鹇嗛嫌溓衘甉銜嫻嫺憪撏澖稴羬誸賢諴輱醎癇癎瞯藖礥鹹麙贒鑦鷴鷼鷳",
  xiǎn: "彡冼狝显险崄毨烍猃蚬険赻筅尟尠搟禒蜆跣銑箲險嶮獫獮藓鍌鮮燹顕幰攇櫶蘚譣玁韅顯灦",
  xiàn: "咞岘苋見现线臽限姭宪県陥哯垷娊峴涀莧軐陷埳晛現硍馅睍絤綖缐羡塪搚溓献粯羨腺僩僴槏綫誢憪撊線鋧憲橌橺縣錎餡壏懢豏麲瀗臔獻糮鏾霰鼸",
  xiāng: "乡芗香郷厢啍鄉鄊廂湘缃萫葙鄕楿稥薌箱緗膷襄儴勷忀骧麘欀瓖镶鱜纕鑲驤",
  xiáng: "夅瓨佭庠羏栙祥絴翔詳跭",
  xiǎng: "享亯响蚃饷晑飨想銄餉鲞蠁鮝鯗響饗饟鱶",
  xiàng: "向姠项珦象缿衖項像勨嶑潒銗閧曏橡襐闂嚮蟓鐌鱌",
  xiāo: "灲灱呺枭侾哓枵骁宯宵庨消烋绡莦虓逍鸮婋梟焇猇萧痚痟睄硣硝窙翛销嗃揱綃蛸嘐歊潇熇箫踃嘵憢撨獟獢箾銷霄骹彇膮蕭颵魈鴞穘簘藃蟂蟏鴵嚣瀟簫蟰髇櫹嚻囂髐鷍蠨驍毊虈",
  xiáo: "姣洨郩崤淆訤殽誵",
  xiǎo: "小晓暁筱筿皛曉篠謏皢",
  xiào: "孝効咲恔俲哮效涍笑啸傚敩殽嗃詨嘋嘨誟嘯薂歗熽斅斆",
  xiē: "娎揳猲楔歇滊獦蝎蠍",
  xié: "劦协旪協胁垥奊峫恊拹挾脇脅脋衺偕斜梋谐絜翓颉嗋愶慀搚携瑎綊熁膎鲑勰撷擕緳縀缬蝢鞋諧燲鮭嚡擷鞵儶襭孈攜讗龤",
  xiě: "写冩寫藛",
  xiè: "伳灺泻祄绁缷卸枻洩炨炧卨屑栧偞偰徢械烲焎禼紲亵媟屟渫絏絬谢僁塮觟觧榍榝榭褉靾噧寫屧暬樧碿緤嶰廨懈澥獬糏薤薢邂韰燮褻謝夑瀉鞢韘瀣爕繲蟹蠏齘齛纈齥齂躠躞",
  xīn: "忄心邤妡忻辛昕杺欣盺俽莘惞訢鈊锌新歆廞鋅噺噷嬜薪馨鑫馫",
  xín: "枔襑镡礥鐔",
  xǐn: "伈",
  xìn: "阠伩囟孞炘軐脪衅訫愖焮馸顖舋釁",
  xīng: "狌星垶骍惺猩煋瑆腥觪箵篂興謃鮏曐觲騂皨鯹",
  xíng: "刑邢饧巠形陉侀郉哘型洐荥钘陘娙硎铏鈃蛵滎鉶銒鋞餳",
  xǐng: "睲醒擤",
  xìng: "杏姓幸性荇倖莕婞悻涬葕睲緈鋞嬹臖",
  xiōng: "凶匂兄兇匈芎讻忷汹哅恟洶胷胸訩詾賯",
  xióng: "雄熊熋",
  xiǒng: "焽焸",
  xiòng: "诇詗夐敻",
  xiū: "俢修咻庥烌烋羞脩脙鸺臹貅馐樇銝髤髹鎀鮴鵂鏅饈鱃飍",
  xiú: "苬",
  xiǔ: "朽滫潃糔",
  xiù: "秀岫峀珛绣袖琇锈嗅溴綉璓褏褎銹螑嚊繍鏅繡鏥鏽齅",
  xū: "圩戌旴姁疞盱欨砉胥须眗訏顼偦虗虚裇許谞媭揟欻湏湑虛須楈綇頊嘘墟稰蓲需魆噓嬃歔緰縃蕦蝑歘藇諝燸譃魖驉鑐鬚",
  xú: "俆冔徐禑蒣",
  xǔ: "呴姁诩浒栩珝喣湑蛡暊詡滸稰鄦糈諿醑盨",
  xù: "旭伵序旴汿芧侐卹妶怴沀叙恓恤昫朐洫垿晇欰殈烅珬勗勖喐惐掝敍敘淢烼绪续蚼酗壻婿朂溆矞絮聓訹慉滀煦続蓄賉槒漵潊盢瞁緒聟蓿銊嘼獝稸緖藇藚續鱮",
  xuān: "吅轩昍咺宣弲晅軒梋谖喧塇媗愃愋揎萲萱暄煊瑄蓒睻儇禤箮翧蝖鋗嬛懁蕿諠諼鞙駨鍹駽矎翾藼蘐蠉譞鰚讂",
  xuán: "玄伭妶玹痃悬琁蜁嫙漩暶璇縣檈璿懸",
  xuǎn: "咺选烜喛暅選癣癬",
  xuàn: "怰泫昡炫绚眩袨铉琄眴衒渲絢楥楦鉉夐敻碹蔙镟颴縼繏鏇贙",
  xuē: "疶蒆靴薛辥辪鞾",
  xué: "穴斈乴学峃茓泶袕鸴敩踅噱壆學嶨澩燢觷鷽",
  xuě: "彐雪樰膤艝轌鳕鱈",
  xuè: "吷坹岤怴泬狘疦桖谑滈趐謔瞲瀥",
  xūn: "坃勋埙焄勛塤煇窨勲勳薫嚑壎獯薰曛燻臐矄蘍壦爋纁醺",
  xún: "廵寻巡旬杊畃询郇咰姰峋恂洵浔紃荀荨栒桪毥珣偱眴尋循揗詢鄩鲟噚潯蕁攳樳燅燖璕駨蟫蟳爓鱘鱏灥",
  xùn: "卂训讯伨汛迅驯侚巺徇狥迿逊孫殉毥浚訊訓訙奞巽殾稄遜馴愻噀潠蕈濬爋顨鶽鑂",
  ya: "",
  yā: "丫圧吖亞庘押枒垭鸦桠鸭啞孲铔椏鴉錏鴨壓鵶鐚",
  yá: "牙伢厑岈芽厓拁琊笌蚜堐崕崖涯猚釾睚衙漄齖",
  yǎ: "疋厊庌挜疨唖啞掗痖雅瘂蕥",
  yà: "劜圠轧亚冴襾覀讶亜犽迓亞玡軋姶娅挜砑俹氩埡婭掗訝铔揠氬猰聐圔椻稏碣窫潝磍壓瓛齾",
  yān: "恹剦烟珚胭崦淊淹焑焉菸阉殗渰湮傿歅煙硽鄢嫣漹嶖樮醃橪閹閼嬮懨篶懕臙黫黰",
  yán: "讠厃延闫严妍芫訁言岩昖沿炏炎郔唌埏姸娫狿莚娮梴盐啱琂硏訮閆阎喦嵓嵒筵綖蜒塩揅楌詽碞蔅羬颜厳虤閻檐顏顔嚴壛巌簷櫩壧巖巗欕礹鹽麣",
  yǎn: "夵抁沇乵兖俨兗匽弇衍剡偃厣掞掩眼萒郾酓隁嵃愝扊揜晻棪渰渷琰遃隒椼硽罨裺演褗戭窴蝘魇噞嬐躽縯檿黡厴甗鰋鶠黤儼黬黭龑孍顩鼴巘巚曮魘鼹礹齴黶",
  yàn: "厌妟觃牪匽姲彥彦洝砚唁宴晏烻艳覎验偐掞焔猏硏谚隁喭堰敥棪殗焱焰猒硯雁傿椻溎滟豣鳫厭墕暥熖酽鳱嬊谳餍鴈燄諺赝鬳嚈嬮曕鴳酀騐験嚥嬿艶贋軅曣爓醶騴齞鷃灔贗囐觾讌醼饜驗鷰艷灎釅驠灧讞豓豔灩",
  yāng: "央姎抰泱柍殃胦眏秧鸯鉠雵鞅鍈鴦",
  yáng: "扬阦阳旸杨炀玚飏佯劷氜疡钖垟徉昜洋羏烊珜眻陽婸崵崸愓揚蛘敭暘楊煬瑒禓瘍諹輰鍚鴹颺鰑霷鸉",
  yǎng: "卬佒咉坱岟养柍炴氧眏痒紻傟勜楧軮慃氱蝆飬養駚懩攁瀁癢礢",
  yàng: "怏柍恙样烊羕楧詇煬様漾鞅樣瀁",
  yāo: "幺夭吆妖枖殀祅約訞喓葽楆腰鴁撽邀鴢",
  yáo: "爻尧匋尭肴垚姚峣恌轺倄烑珧皐窕窑铫隃傜堯揺殽谣軺嗂媱徭愮搖摇滧猺遙遥僥摿暚榣瑤瑶銚飖餆嶢嶤徺磘窯窰餚繇謡謠鎐鳐颻蘨邎顤鰩鱙",
  yǎo: "仸宎岆抭杳枖狕苭咬柼眑窅窈舀偠婹崾溔蓔榚闄騕齩鷕",
  yào: "怮穾药烄袎窔筄葯詏愮熎瘧覞靿樂獟箹鹞薬鼼曜燿艞藥矅耀纅鷂讑",
  ye: "亪",
  yē: "吔耶倻椰暍歋窫噎潱擨蠮",
  yé: "爷耶峫捓揶铘爺瑘釾鋣鎁",
  yě: "也冶埜野嘢漜壄",
  yè: "业曳页曵邺夜抴亱拽枼洂頁捙晔枽烨液焆谒堨揲殗腋葉墷楪業煠痷馌僷曅燁璍擖擛曄皣瞱緤鄴靥嶪嶫澲謁餣擫曗瞸鍱擪爗礏鎑饁鵺鐷靨驜瓛鸈",
  yi: "弬",
  yī: "一乊弌辷衤伊衣医吚壱依祎咿洢悘渏猗畩郼铱壹揖蛜禕嫛漪稦銥嬄撎噫夁瑿鹥繄檹毉醫黟譩鷖黳",
  yí: "乁仪匜圯夷彵迆冝宐杝沂诒侇宜怡沶狏狋迤迱饴咦姨峓恞拸柂洟珆瓵荑贻迻宧巸扅栘桋眙胰袘貤痍移萓釶椬羠蛦詒貽遗媐暆椸煕誃跠頉颐飴儀熪箷遺嶬彛彜螔頥頤寲嶷簃顊鮧鴺彞彝謻鏔籎觺讉",
  yǐ: "乚乛乙已以扡迆钇佁攺矣苡叕苢迤迱庡舣蚁釔倚扆笖逘酏偯猗崺攲敧旑鈘鉯鳦裿旖輢嬟敼螘檥礒艤蟻顗轙齮",
  yì: "乂义亿弋刈忆艺仡匇肊艾议阣亦伇屹异忔芅伿佚劮呓坄役抑杙耴苅译邑佾呭呹妷峄怈怿易枍欥泆炈秇绎衪诣驿俋奕帟帠弈昳枻浂玴疫羿轶唈垼悒挹栺栧欭浥浳益袘袣谊貤勚埶埸悘悥掜殹異羛翊翌萟訳訲豙豛逸釴隿幆敡晹棭殔湙焲焬蛡詍跇軼鄓鈠骮亄兿嗌意溢獈痬睪竩缢義肄裔裛詣勩嫕廙榏潩瘗膉蓺蜴駅億槸毅熠熤熼瘞篒誼镒鹝鹢黓儗劓圛墿嬑嶧憶懌曀殪澺燚瘱瞖穓縊艗薏螠褹寱懝斁曎檍歝燡燱翳翼臆貖鮨癔藝藙贀鎰镱繶繹豷霬鯣鶃鶂鶍瀷蘙議譯醳醷饐囈鐿鷁鷊懿襼驛鷧虉鸃鷾讛齸",
  yīn: "囙因阥阴侌垔姻洇茵荫音骃栶欭氤陰凐秵裀铟陻隂喑堙婣愔湮筃絪歅溵禋蒑蔭慇瘖銦磤緸鞇諲霒駰噾濦闉霠齗韾",
  yín: "冘乑伒吟圻犾苂斦烎垠泿圁峾狺珢荶訔訚唫婬寅崟崯淫訡银鈝龂滛碒鄞夤蔩銀龈噖殥璌誾嚚檭蟫霪齦鷣",
  yǐn: "廴尹引吲饮粌蚓硍赺淾鈏飲隠靷飮朄輑磤趛檃瘾隱嶾濥縯螾檼蘟櫽癮讔",
  yìn: "廴印茚洕胤荫垽梀堷湚猌飲廕隠飮窨酳慭癊憗憖隱鮣懚",
  yīng: "応旲英柍荥偀桜珱莺啨婴媖愥渶绬朠楧焽焸煐瑛嫈碤锳嘤撄甇緓缨罂蝧賏樱璎噟罃褮霙鴬鹦嬰應膺韺甖鹰鶑鶧嚶孆孾攖瀴罌蘡譍櫻瓔礯譻鶯鑍纓蠳鷪軈鷹鸎鸚",
  yíng: "夃盁迎茔盈荧浧耺莹営桯萤萦营蛍溁溋萾僌塋嵤楹滢蓥滎潆熒蝇瑩禜蝿嬴營縈螢濙濚濴藀覮謍赢瀅爃蠅鎣巆攍瀛瀠瀯櫿贏灐籝灜籯",
  yǐng: "矨郢浧梬颍颕颖摬影潁瘿穎頴覮巊廮瀴鐛癭",
  yìng: "応映眏暎硬媵膡鞕應瀴鱦",
  yo: "喲",
  yō: "唷喲",
  yōng: "拥痈邕庸傭嗈鄘雍墉嫞慵滽槦牅牗銿噰壅擁澭郺镛臃癕雝鏞鳙廱灉饔鱅鷛癰",
  yóng: "喁揘颙顒鰫",
  yǒng: "永甬咏怺泳俑勈勇栐埇悀柡恿惥愑湧硧詠塎嵱彮愹蛹慂踊鲬噰澭踴鯒",
  yòng: "用苚砽蒏醟",
  yōu: "优妋忧攸呦怮泑幽峳浟逌悠羪麀滺憂優鄾嚘懮瀀獶櫌纋耰獿",
  yóu: "尢冘尤由甴汼沋犹邮怞油肬怣斿柚疣庮秞莜莤莸郵铀偤蚰訧逰揂游猶遊鱿楢猷鈾鲉輏駀蕕蝣魷輶鮋繇櫾",
  yǒu: "友丣卣苃酉羑栯莠梄聈铕湵楢禉蜏銪槱牖牗黝懮",
  yòu: "又右幼佑佦侑孧泑狖哊囿姷宥峟柚牰祐诱迶唀梎痏蚴亴貁釉酭誘鼬櫾",
  yū: "込扜扝纡迃迂穻陓紆唹淤盓瘀箊",
  yú: "丂亐于邘伃余妤扵杅欤玗玙於盂臾衧鱼乻俞兪捓禺竽舁茰虶娛娯娪娱桙狳谀酑馀渔萸釪隃隅雩魚堣堬婾媀媮崳嵎嵛揄楰渝湡畬腴萮逾骬愚楡榆歈牏瑜艅虞觎漁睮窬舆褕歶羭蕍蝓諛雓餘魣嬩懙澞覦踰歟璵螸輿鍝謣髃鮽旟籅騟鯲蘛轝鰅鷠鸆齵",
  yǔ: "伛宇屿羽穻俁俣挧禹圄祤偊匬圉庾敔鄅斞萭傴寙楀瑀瘐與語窳頨龉噳嶼懙貐斔穥麌齬",
  yù: "肀玉驭圫聿芌芋吾妪忬汩灹饫欥育郁俞昱狱禺秗茟俼叞峪彧栯浴砡钰预域堉悆惐捥欲淢淯痏粖翑袬谕逳阈喅喩喻媀寓庽御棛棜棫焴琙琟矞硢硲裕遇飫馭鹆奧愈滪煜稢罭艈蒮蓣誉鈺預僪嫗嶎戫毓澚獄瘉緎蜟蜮語輍銉隩慾潏熨稶蓹薁豫遹鋊鳿澦燏燠蕷藇諭錥閾鴧鴪鴥儥礇禦魊鹬癒礖礜篽醧鵒櫲饇蘌譽鐭霱雤欎驈鬻籞鱊鷸鸒欝軉鬰鬱灪籲爩",
  yuān: "夗囦肙鸢剈冤弲悁眢鸳寃涴渆渁渊渕惌淵葾棩蒬蜎裷鹓箢鳶蜵駌鋺鴛嬽鵷灁鼘鼝",
  yuán: "元円贠邧园妧沅芫杬茒垣爰貟原員圆笎蚖袁厡酛傆喛圎媛援湲猨缘鈨鼋園圓塬媴嫄楥溒源猿蒝榞榬辕緣縁蝝蝯褤魭圜橼羱薗螈黿謜轅鎱櫞邍騵鶢鶰厵",
  yuǎn: "盶逺遠薳鋺",
  yuàn: "夗妴苑怨院垸衏傆媛掾瑗禐愿裫褑噮願",
  yuē: "曰曱扚約啘箹矱",
  yuě: "哕噦",
  yuè: "月戉兊刖兌妜岄抈礿岳枂泧玥恱栎哾悅悦蚏蚎軏钺阅捳跀跃粤越鈅楽粵鉞說説樂閲閱嬳樾篗髺嶽臒龠擽矆櫟籆瀹蘥黦爚禴趯躍籥鑰鸑籰鸙",
  yūn: "涒缊蒀暈氲煴蒕氳熅煾奫緼蝹縕赟馧贇",
  yún: "云勻匀伝囩妘抣沄纭芸昀畇眃秐貟郧員涢紜耘耺鄖雲愪溳筠筼蒷熉澐蕓鋆橒篔縜",
  yǔn: "允阭夽抎狁玧陨荺殒喗鈗隕煴殞熅馻磒賱霣齫齳",
  yùn: "孕贠运枟郓恽貟員菀鄆酝傊惲愠缊運慍暈榅煇腪韫韵褞熨緷緼蕰蕴縕薀醖醞餫藴鞰韗韞蘊韻",
  zā: "帀匝沞迊咂拶桚紥紮鉔噈魳臜臢",
  zá: "杂沯砸偺喒韴雑襍雜囃囋囐雥",
  zǎ: "咋偺喒",
  zāi: "災灾甾哉栽烖畠菑渽溨睵賳",
  zǎi: "宰崽",
  zài: "再在扗抂洅傤載酨儎縡",
  zān: "兂撍糌橵篸簪簮鵤鐕鐟",
  zán: "偺喒",
  zǎn: "拶昝桚寁揝噆撍儧攅儹攢趱趲",
  zàn: "暂暫賛赞錾鄼濽蹔酂瓉贊鏩鏨瓒酇囋灒讃瓚禶穳襸讚饡",
  zāng: "匨牂羘赃賍臧賘贓髒贜",
  zǎng: "驵駔",
  zàng: "奘弉脏塟葬臧蔵銺臓臟",
  zāo: "傮遭糟蹧醩",
  záo: "凿鑿",
  zǎo: "早枣栆蚤棗璅澡璪薻藻",
  zào: "灶皁皂唣唕造梍喿慥煰艁噪簉燥竃竈譟趮躁",
  zé: "则択沢咋泎责迮則唶啧帻笮舴責溭滜睪矠飵嘖嫧幘箦蔶樍歵諎赜擇澤皟瞔簀耫礋襗謮賾蠌灂齚齰鸅",
  zè: "仄庂汄昃昗捑側崱稄",
  zéi: "贼戝賊鲗蠈鰂鱡",
  zēn: "撍",
  zěn: "怎",
  zèn: "谮譖",
  zēng: "曽増鄫增憎缯橧璔縡矰磳竲罾繒譄鱛",
  zěng: "",
  zèng: "锃綜缯鋥熷甑赠繒鬵贈囎",
  zi: "嗭",
  zī: "孖孜甾茊兹呲咨姕姿茲栥玆畠紎赀资崰淄秶缁菑谘赼嗞孳嵫椔湽滋粢葘辎鄑孶禌觜訾貲資趑锱稵緕緇鈭镃龇輜鼒澬薋諮趦輺錙髭鲻鍿鎡璾頾頿鯔鶅齍纃鰦齜",
  zí: "蓻",
  zǐ: "子吇芓姉姊杍沝矷秄胏呰秭籽耔茈虸笫梓釨啙紫滓訿榟橴",
  zì: "字自芓秄洓茡荢倳剚恣牸渍眦眥菑胔胾漬",
  zōng: "宗枞倧骔堫嵏嵕惾棕猣腙葼朡椶潈稯綜緃樅熧緵翪蝬踨踪磫繌鍐豵蹤騌鬃騣鬉鬷鯮鯼鑁",
  zǒng: "总倊偬捴惣揔搃焧傯蓗嵸摠潀稯総熜緫縂燪縱總",
  zòng: "昮疭從猔碂粽潨糉緵瘲縦縱繌糭",
  zōu: "邹驺诹郰陬掫菆棸棷鄒箃緅諏鄹鲰鯫黀騶齱齺",
  zǒu: "赱走搊鯐",
  zòu: "奏揍媰楱",
  zū: "怚柤租菹葅蒩",
  zú: "卆足倅哫崒崪族椊稡箤踤镞鎐鏃",
  zǔ: "诅阻组俎柤爼珇祖唨組詛靻鎺",
  zù: "",
  zuān: "鉆劗躜鑚躦鑽",
  zuǎn: "繤缵纂纉籫纘",
  zuàn: "揝篹賺攥",
  zuī: "厜朘嗺樶蟕纗",
  zuí: "",
  zuǐ: "咀觜嶊嘴噿濢璻",
  zuì: "冣栬絊酔晬最祽睟稡罪辠槜酻蕞醉嶵檇鋷錊檌欈",
  zūn: "尊噂墫嶟遵樽繜罇鶎鐏鳟鱒鷷",
  zǔn: "僔撙繜譐",
  zùn: "拵捘栫袸銌瀳",
  zuo: "咗",
  zuō: "嘬穝",
  zuó: "苲昨柮秨莋捽笮稓筰鈼",
  zuǒ: "左佐繓",
  zuò: "作坐阼岝岞怍侳柞祚胙唑座袏做葄葃酢蓙飵諎糳",
  zhā: "吒咋抯挓柤査哳紥偧紮揸渣楂飵劄摣潳皶樝觰皻譇齄齇",
  zhá: "札甴軋闸剳蚻铡喋煠牐閘劄箚霅耫鍘譗",
  zhǎ: "厏拃苲眨砟鲊鲝諎鮓鮺",
  zhà: "乍吒灹诈怍咤奓柞宱痄蚱喥溠詐搾鲊榨鮓醡",
  zhāi: "亝哜夈粂捚斋側斎摘榸齊嚌擿齋",
  zhái: "厇宅翟擇檡",
  zhǎi: "厏抧窄鉙",
  zhài: "责债砦責債寨瘵",
  zhān: "岾怗枬沾毡旃栴粘蛅飦惉詀趈詹閚谵鳽噡嶦薝邅霑氈氊瞻覱鹯旜譫饘鳣驙魙鱣鸇",
  zhán: "讝",
  zhǎn: "斩飐展盏斬琖搌盞嶃嶄榐辗颭嫸醆橏輾皽黵",
  zhàn: "佔战栈桟站偡绽菚嵁棧湛戦碊僝綻嶘戰虥虦覱轏譧欃蘸驏",
  zhāng: "弡张張章傽鄣嫜彰慞漳獐粻蔁遧暲樟璋餦蟑鏱騿鱆麞",
  zhǎng: "仉仧兏長掌漲幥礃鞝",
  zhàng: "丈仗扙帐杖胀账粀帳涱脹痮障墇嶂幛漲賬瘬瘴瞕",
  zhāo: "佋钊妱巶招昭炤釗啁釽鉊鳭駋鍣皽",
  zháo: "",
  zhǎo: "爫找沼菬瑵",
  zhào: "兆诏枛垗炤狣赵笊肁啅旐棹罀詔照罩箌肈肇趙曌濯燳鮡櫂瞾羄",
  zhe: "嗻",
  zhē: "嗻嫬遮螫",
  zhé: "乇厇扸杔歽矺砓籷虴哲埑粍袩啠悊晢晣辄喆棏聑蛰詟搩蜇谪馲摺輒慹磔輙銸辙蟄嚞謫謺鮿轍讁讋",
  zhě: "者乽啫锗赭踷褶鍺襵",
  zhè: "柘浙這淛嗻蔗樜鹧蟅鷓",
  zhèi: "",
  zhēn: "贞针侦侲帧枮浈珎珍胗貞帪桢眞真砧祯針偵酙寊幀揕湞葴遉嫃搸斟椹楨溱獉甄禎蒖蓁鉁榛槙殝瑧碪禛潧箴樼澵臻薽錱轃鍼籈鱵",
  zhén: "",
  zhěn: "诊抮枕姫弫昣轸屒畛疹眕袗紾聄萙竧裖覙診軫嫃缜槙稹駗縝縥辴鬒黰",
  zhèn: "圳阵纼甽侲挋陣鸩振朕栚紖桭眹赈塦揕絼榐瑱誫賑鋴镇震鴆鎮鎭",
  zhēng: "凧争佂姃征怔爭糽埩峥炡狰烝眐脀钲埥崝崢掙猙睁聇铮媜揁筝徰睜蒸踭鉦徴箏綪錚徵篜鬇癥鏳",
  zhěng: "氶抍糽拯掟晸愸撜整",
  zhèng: "氶证诤郑政徎钲掙幁証塣諍靕鄭憕鴊證",
  zhī: "之支卮汁芝巵汥呮泜肢栀祗秓胑胝衼倁栺疷祬脂隻梔菭椥臸搘稙綕榰蜘馶憄鳷鴲織鼅蘵",
  zhí: "执侄妷直秇姪郦値值聀釞埴執淔职戠植犆禃絷臷跖瓡摕摭馽嬂慹漐潪踯樴膱縶職蟙蹠軄躑",
  zhǐ: "夂止凪劧旨阯坁址帋扺汦沚纸芷坧抧杫祇祉茋咫恉指枳洔砋秖衹轵淽疻紙蚔訨趾軹黹禔筫絺酯墌徴徵槯藢襧",
  zhì: "至芖坁志忮扻豸制厔垁帙帜斦治炙质迣郅俧峙庢庤挃柣栉洷祑陟娡徏挚捗晊桎歭狾秩致袟贽轾乿偫剬徝掷梽楖猘畤痓痔眰秲秷窒紩翐袠觗貭铚鸷傂崻彘智滞痣蛭骘寘廌搱滍稚筫置跱輊锧雉墆滯潌疐瘈聜製覟誌銍幟憄摨摯潪熫稺膣觯質踬銴鋕擳旘瀄璏緻隲駤鴙儨劕懥擲擿櫛穉螲懫織贄櫍瓆觶騭鯯礩豑鶨騺驇躓鷙鑕豒",
  zhōng: "夂伀汷刣妐彸忪忠泈炂终柊盅衳钟舯衷終鈡幒蔠蜙锺銿螤鴤螽鍾斔鼨蹱鐘籦",
  zhǒng: "肿冢喠尰塚歱煄腫瘇種徸踵穜",
  zhòng: "仲众妕狆祌茽衶蚛偅眾堹媑筗衆種緟諥",
  zhōu: "州舟诌侜周洲炿诪烐珘辀郮啁婤徟掫淍矪週鸼喌赒輈翢銂賙輖霌駲嚋盩謅鵃騆譸",
  zhóu: "妯軸碡",
  zhǒu: "肘帚疛胕菷晭睭箒鯞",
  zhòu: "纣伷呪咒宙绉冑咮昼紂胄荮皱酎晝粙椆葤詋軸甃僽皺駎噣縐繇薵骤籀籕籒驟",
  zhū: "侏诛邾洙茱株珠诸猪硃秼袾铢絑蛛誅跦槠潴蕏蝫銖橥諸豬駯鮢鴸瀦藸鼄櫧櫫鯺蠩",
  zhú: "朮竹竺炢笁茿烛窋逐笜舳逫瘃蓫敱磩築篴斀燭蠋躅鱁劚孎灟斸曯欘爥蠾钃",
  zhǔ: "丶主劯宔拄砫罜陼帾渚煑煮詝褚嘱濐燝麈瞩屬囑鸀矚",
  zhù: "伫佇住纻芧苎坾拀杼注苧贮迬驻乼壴柱柷殶炷祝疰眝砫祩竚莇紵紸羜蛀尌嵀註貯跓軴铸筯鉒飳馵嗻墸箸翥樦澍鋳駐築篫麆簗櫡鑄",
  zhuā: "抓挝撾檛膼簻髽",
  zhuǎ: "爫",
  zhuāi: "拽",
  zhuǎi: "跩",
  zhuài: "拽睉",
  zhuān: "专叀専恮砖耑專剸鄟塼嫥漙瑼甎磗膞颛磚諯篿蟤顓鱄",
  zhuǎn: "孨転膞竱轉",
  zhuàn: "灷啭転堟蒃傳瑑腞僎僝赚撰篆馔篹縳襈賺簨贃譔饌囀籑",
  zhuāng: "妆庄妝庒荘娤桩莊梉湷粧装裝樁糚",
  zhuǎng: "奘",
  zhuàng: "壮壯状狀壵焋僮漴撞戅戆戇",
  zhuī: "隹骓锥錐騅鵻",
  zhuǐ: "沝",
  zhuì: "坠笍奞娷缀隊惴甀缒腏畷硾膇墜綴赘縋諈醊錣礈贅鑆",
  zhūn: "圫宒忳迍肫窀谆啍諄衠",
  zhǔn: "准埻凖準稕綧",
  zhùn: "旽訰稕綧",
  zhuō: "拙炪倬捉桌梲棁涿淖棳棹焯窧槕穛鐯穱",
  zhuó: "圴彴汋犳灼卓叕妰茁斫浊丵剢捔浞烵诼酌啄啅娺聉斱斮晫椓琸硺窡罬蓔墌撯擆斲禚劅諁諑趠鋜噣濁燋篧擢斀斵濯藋櫡謶镯繳鵫灂蠗鐲籗鷟蠿籱",
  zhuò: "",
  "chǎng,ān,hàn": "厂",
  "dīng,zhēng": "丁",
  "bǔ,bo": "卜",
  "jǐ,jī": "几",
  "le,liǎo": "了",
  "gān,gàn": "干",
  "dà,dài,tài": "大",
  "yǔ,yù,yú": "与",
  "shàng,shǎng": "上",
  "wàn,mò": "万",
  "gè,gě": "个各",
  "me,mó,ma,yāo": "么",
  "guǎng,ān": "广",
  "wáng,wú": "亡",
  "nǚ,rǔ": "女",
  "chā,chá,chǎ": "叉",
  "wáng,wàng": "王",
  "fū,fú": "夫",
  "zhā,zā,zhá": "扎",
  "bù,fǒu": "不",
  "qū,ōu": "区",
  "chē,jū": "车",
  "qiè,qiē": "切",
  "wǎ,wà": "瓦",
  "tún,zhūn": "屯",
  "shǎo,shào": "少",
  "zhōng,zhòng": "中",
  "nèi,nà": "内",
  "jiàn,xiàn": "见",
  "cháng,zhǎng": "长",
  "shén,shí": "什",
  "piàn,piān": "片",
  "pú,pū": "仆",
  "huà,huā": "化",
  "chóu,qiú": "仇",
  "zhuǎ,zhǎo": "爪",
  "jǐn,jìn": "仅",
  "fù,fǔ": "父",
  "cóng,zòng": "从",
  "fēn,fèn": "分",
  "shì,zhī": "氏",
  "fēng,fěng": "风",
  "gōu,gòu": "勾",
  "liù,lù": "六",
  "dǒu,dòu": "斗",
  "wèi,wéi": "为",
  "chǐ,chě": "尺",
  "yǔ,yú": "予",
  "dǎ,dá": "打",
  "zhèng,zhēng": "正症挣",
  "bā,pá": "扒",
  "jié,jiē": "节结",
  "shù,shú,zhú": "术",
  "kě,kè": "可",
  "shí,dàn": "石",
  "kǎ,qiǎ": "卡",
  "běi,bèi": "北",
  "zhàn,zhān": "占",
  "qiě,jū": "且",
  "yè,xié": "叶",
  "hào,háo": "号",
  "zhī,zhǐ": "只",
  "dāo,tāo": "叨",
  "zǎi,zǐ,zī": "仔",
  "lìng,líng,lǐng": "令",
  "lè,yuè": "乐",
  "jù,gōu": "句",
  "chù,chǔ": "处",
  "tóu,tou": "头",
  "níng,nìng,zhù": "宁",
  "zhào,shào": "召",
  "fā,fà": "发",
  "tái,tāi": "台苔",
  "káng,gāng": "扛",
  "dì,de": "地",
  "sǎo,sào": "扫",
  "chǎng,cháng": "场",
  "pǔ,pò,pō,piáo": "朴",
  "guò,guo,guō": "过",
  "yā,yà": "压",
  "yǒu,yòu": "有",
  "kuā,kuà": "夸",
  "xié,yá,yé,yú,xú": "邪",
  "jiá,jiā,gā,xiá": "夹",
  "huà,huá": "划",
  "dāng,dàng": "当",
  "tù,tǔ": "吐",
  "xià,hè": "吓",
  "tóng,tòng": "同",
  "qū,qǔ": "曲",
  "ma,má,mǎ": "吗",
  "qǐ,kǎi": "岂",
  "zhū,shú": "朱",
  "chuán,zhuàn": "传",
  "xiū,xǔ": "休",
  "rèn,rén": "任",
  "huá,huà,huā": "华",
  "jià,jiè,jie": "价",
  "fèn,bīn": "份",
  "yǎng,áng": "仰",
  "xiě,xuè": "血",
  "sì,shì": "似",
  "háng,xíng": "行",
  "huì,kuài": "会",
  "hé,gě": "合",
  "chuàng,chuāng": "创",
  "chōng,chòng": "冲",
  "qí,jì,zī,zhāi": "齐",
  "yáng,xiáng": "羊",
  "bìng,bīng": "并",
  "hàn,hán": "汗",
  "tāng,shāng": "汤",
  "xīng,xìng": "兴",
  "xǔ,hǔ": "许",
  "lùn,lún": "论",
  "nà,nǎ,nèi,nā": "那",
  "jìn,jǐn": "尽",
  "sūn,xùn": "孙",
  "xì,hū": "戏",
  "hǎo,hào": "好",
  "tā,jiě": "她",
  "guān,guàn": "观冠",
  "hóng,gōng": "红",
  "xiān,qiàn": "纤",
  "jì,jǐ": "纪济",
  "yuē,yāo": "约",
  "nòng,lòng": "弄",
  "yuǎn,yuàn": "远",
  "huài,pēi,pī,péi": "坏",
  "zhé,shé,zhē": "折",
  "qiǎng,qiāng,chēng": "抢",
  "ké,qiào": "壳",
  "fāng,fáng": "坊",
  "bǎ,bà": "把",
  "gān,gǎn": "杆",
  "sū,sù": "苏",
  "gàng,gāng": "杠",
  "gèng,gēng": "更",
  "lì,lí": "丽",
  "hái,huán": "还",
  "fǒu,pǐ": "否",
  "xiàn,xuán": "县",
  "zhù,chú": "助",
  "ya,yā": "呀",
  "chǎo,chāo": "吵",
  "yuán,yún,yùn": "员",
  "ba,bā": "吧",
  "bié,biè": "别",
  "dīng,dìng": "钉",
  "gū,gù": "估",
  "hé,hē,hè": "何",
  "tǐ,tī,bèn": "体",
  "bó,bǎi,bà": "伯",
  "yòng,yōng": "佣",
  "fó,fú,bì,bó": "佛",
  "dù,dǔ": "肚",
  "guī,jūn,qiū": "龟",
  "jiǎo,jué": "角",
  "tiáo,tiāo": "条",
  "xì,jì": "系",
  "yìng,yīng": "应",
  "zhè,zhèi": "这",
  "jiān,jiàn": "间监",
  "mēn,mèn": "闷",
  "dì,tì,tuí": "弟",
  "shā,shà": "沙",
  "shà,shā": "煞",
  "méi,mò": "没",
  "shěn,chén": "沈",
  "shí,zhì": "识",
  "niào,suī": "尿",
  "wěi,yǐ": "尾",
  "ē,ā": "阿",
  "jìn,jìng": "劲",
  "zòng,zǒng": "纵",
  "wén,wèn": "纹",
  "mǒ,mò,mā": "抹",
  "dān,dàn,dǎn": "担",
  "chāi,cā": "拆",
  "jū,gōu": "拘",
  "lā,lá": "拉",
  "bàn,pàn": "拌",
  "zé,zhái": "择",
  "qí,jī": "其奇",
  "ruò,rě": "若",
  "píng,pēng": "苹",
  "zhī,qí": "枝",
  "guì,jǔ": "柜",
  "sàng,sāng": "丧",
  "cì,cī": "刺",
  "yǔ,yù": "雨语",
  "bēn,bèn": "奔",
  "qī,qì": "妻",
  "zhuǎn,zhuàn,zhuǎi": "转",
  "xiē,suò": "些",
  "ne,ní": "呢",
  "tiě,tiē,tiè,": "帖",
  "lǐng,líng": "岭",
  "zhī,zhì": "知织",
  "hé,hè,huó,huò,hú": "和",
  "gòng,gōng": "供共",
  "wěi,wēi": "委",
  "cè,zè,zhāi": "侧",
  "pò,pǎi": "迫",
  "de,dì,dí": "的",
  "cǎi,cài": "采",
  "fú,fù": "服",
  "dǐ,de": "底",
  "jìng,chēng": "净",
  "juàn,juǎn": "卷",
  "quàn,xuàn": "券",
  "dān,shàn,chán": "单",
  "qiǎn,jiān": "浅",
  "xiè,yì": "泄",
  "pō,bó": "泊",
  "pào,pāo": "泡",
  "ní,nì": "泥",
  "zé,shì": "泽",
  "kōng,kòng,kǒng": "空",
  "láng,làng": "郎",
  "xiáng,yáng": "详",
  "lì,dài": "隶",
  "shuā,shuà": "刷",
  "jiàng,xiáng": "降",
  "cān,shēn,cēn,sān": "参",
  "dú,dài": "毒",
  "kuà,kū": "挎",
  "dǎng,dàng": "挡",
  "kuò,guā": "括",
  "shí,shè": "拾",
  "tiāo,tiǎo": "挑",
  "shèn,shén": "甚",
  "xiàng,hàng": "巷",
  "nán,nā": "南",
  "xiāng,xiàng": "相",
  "chá,zhā": "查",
  "bǎi,bó,bò": "柏",
  "yào,yāo": "要",
  "yán,yàn": "研",
  "qì,qiè": "砌",
  "bèi,bēi": "背",
  "shěng,xǐng": "省",
  "xiāo,xuē": "削",
  "hǒng,hōng,hòng": "哄",
  "mào,mò": "冒",
  "yǎ,yā": "哑",
  "sī,sāi": "思",
  "mǎ,mā,mà": "蚂",
  "huá,huā": "哗",
  "yè,yàn,yān": "咽",
  "zán,zǎ": "咱",
  "hā,hǎ,hà": "哈",
  "nǎ,něi,na,né": "哪",
  "hāi,ké": "咳",
  "gǔ,gū": "骨",
  "gāng,gàng": "钢",
  "yào,yuè": "钥",
  "kàn,kān": "看",
  "zhòng,zhǒng,chóng": "种",
  "biàn,pián": "便",
  "zhòng,chóng": "重",
  "xìn,shēn": "信",
  "zhuī,duī": "追",
  "dài,dāi": "待",
  "shí,sì,yì": "食",
  "mài,mò": "脉",
  "jiāng,jiàng": "将浆",
  "dù,duó": "度",
  "qīn,qìng": "亲",
  "chà,chā,chāi,cī": "差",
  "zhà,zhá": "炸",
  "pào,páo,bāo": "炮",
  "sǎ,xǐ": "洒",
  "xǐ,xiǎn": "洗",
  "jué,jiào": "觉",
  "biǎn,piān": "扁",
  "shuō,shuì,yuè": "说",
  "lǎo,mǔ": "姥",
  "gěi,jǐ": "给",
  "luò,lào": "络",
  "zǎi,zài": "载",
  "mái,mán": "埋",
  "shāo,shào": "捎稍",
  "dū,dōu": "都",
  "ái,āi": "挨",
  "mò,mù": "莫",
  "è,wù,ě,wū": "恶",
  "xiào,jiào": "校",
  "hé,hú": "核",
  "yūn,yùn": "晕",
  "huàng,huǎng": "晃",
  "ài,āi": "唉",
  "ā,á,ǎ,à,a": "啊",
  "bà,ba,pí": "罢",
  "zuàn,zuān": "钻",
  "qiān,yán": "铅",
  "chéng,shèng": "乘",
  "mì,bì": "秘泌",
  "chēng,chèn,chèng": "称",
  "dào,dǎo": "倒",
  "tǎng,cháng": "倘",
  "chàng,chāng": "倡",
  "chòu,xiù": "臭",
  "shè,yè,yì": "射",
  "gē,gé": "胳搁",
  "shuāi,cuī": "衰",
  "liáng,liàng": "凉量",
  "chù,xù": "畜",
  "páng,bàng": "旁磅",
  "zhǎng,zhàng": "涨",
  "yǒng,chōng": "涌",
  "qiāo,qiǎo": "悄",
  "jiā,jia,jie": "迦家",
  "dú,dòu": "读",
  "shàn,shān": "扇",
  "shān,shàn": "苫",
  "bèi,pī": "被",
  "tiáo,diào,zhōu": "调",
  "bō,bāo": "剥",
  "néng,nài": "能",
  "nán,nàn,nuó": "难",
  "pái,pǎi": "排",
  "jiào,jiāo": "教",
  "jù,jū": "据",
  "zhù,zhuó,zhe": "著",
  "jūn,jùn": "菌",
  "lè,lēi": "勒",
  "shāo,sào": "梢",
  "fù,pì": "副",
  "piào,piāo": "票",
  "shèng,chéng": "盛",
  "què,qiāo,qiǎo": "雀",
  "chí,shi": "匙",
  "mī,mí": "眯",
  "la,lā": "啦",
  "shé,yí": "蛇",
  "lèi,léi,lěi": "累",
  "zhǎn,chán": "崭",
  "quān,juàn,juān": "圈",
  "lóng,lǒng": "笼",
  "dé,děi,de": "得",
  "jiǎ,jià": "假",
  "māo,máo": "猫",
  "xuán,xuàn": "旋",
  "zhe,zhuó,zháo,zhāo": "着",
  "lǜ,shuài": "率",
  "gài,gě,hé": "盖",
  "lín,lìn": "淋",
  "qú,jù": "渠",
  "jiàn,jiān": "渐溅",
  "hùn,hún": "混",
  "sù,xiǔ,xiù": "宿",
  "tán,dàn": "弹",
  "yǐn,yìn": "隐",
  "jǐng,gěng": "颈",
  "lǜ,lù": "绿",
  "qū,cù": "趋",
  "tí,dī,dǐ": "提",
  "jiē,qì": "揭",
  "lǒu,lōu": "搂",
  "qī,jī": "期",
  "sàn,sǎn": "散",
  "gě,gé": "葛",
  "zhāo,cháo": "朝",
  "luò,là,lào": "落",
  "yǐ,yī": "椅",
  "gùn,hùn": "棍",
  "zhí,shi": "殖",
  "xià,shà": "厦",
  "liè,liě": "裂",
  "jǐng,yǐng": "景",
  "pēn,pèn": "喷",
  "pǎo,páo": "跑",
  "hē,hè,yè": "喝",
  "pù,pū": "铺",
  "zhù,zhú": "筑",
  "dá,dā": "答",
  "bǎo,bǔ,pù": "堡",
  "ào,yù": "奥",
  "fān,pān": "番",
  "là,xī": "腊",
  "gǎng,jiǎng": "港",
  "céng,zēng": "曾",
  "yú,tōu": "愉",
  "qiáng,qiǎng,jiàng": "强",
  "shǔ,zhǔ": "属",
  "zhōu,yù": "粥",
  "shè,niè": "摄",
  "tián,zhèn": "填",
  "méng,mēng,měng": "蒙",
  "jìn,jīn": "禁",
  "lù,liù": "碌",
  "tiào,táo": "跳",
  "é,yǐ": "蛾",
  "jiě,jiè,xiè": "解",
  "shù,shǔ,shuò": "数",
  "liū,liù": "溜",
  "sāi,sài,sè": "塞",
  "pì,bì": "辟",
  "fèng,féng": "缝",
  "piě,piē": "撇",
  "mó,mú": "模",
  "bǎng,bàng": "榜",
  "shang,cháng": "裳",
  "xiān,xiǎn": "鲜",
  "yí,nǐ": "疑",
  "gāo,gào": "膏",
  "piāo,piào,piǎo": "漂",
  "suō,sù": "缩",
  "qù,cù": "趣",
  "sā,sǎ": "撒",
  "tàng,tāng": "趟",
  "héng,hèng": "横",
  "mán,mén": "瞒",
  "bào,pù": "暴",
  "mó,mā": "摩",
  "hú,hū,hù": "糊",
  "pī,pǐ": "劈",
  "yàn,yān": "燕",
  "báo,bó,bò": "薄",
  "mó,mò": "磨",
  "jiǎo,zhuó": "缴",
  "cáng,zàng": "藏",
  "fán,pó": "繁",
  "bì,bei": "臂",
  "chàn,zhàn": "颤",
  "jiāng,qiáng": "疆",
  "jiáo,jué,jiào": "嚼",
  "rǎng,rāng": "嚷",
  "lù,lòu": "露",
  "náng,nāng": "囊",
  "hāng,bèn": "夯",
  "āo,wā": "凹",
  "féng,píng": "冯",
  "xū,yù": "吁",
  "lèi,lē": "肋",
  "lūn,lún": "抡",
  "jiè,gài": "芥",
  "xīn,xìn": "芯",
  "chā,chà": "杈",
  "xiāo,xiào": "肖",
  "zhī,zī": "吱",
  "ǒu,ōu,òu": "呕",
  "nà,nè": "呐",
  "qiàng,qiāng": "呛",
  "tún,dùn": "囤",
  "kēng,háng": "吭",
  "diàn,tián": "佃",
  "sì,cì": "伺",
  "diàn,tián,shèng": "甸",
  "páo,bào": "刨",
  "duì,ruì,yuè": "兑",
  "kē,kě": "坷",
  "tuò,tà,zhí": "拓",
  "fú,bì": "拂",
  "nǐng,níng,nìng": "拧",
  "ào,ǎo,niù": "拗",
  "kē,hē": "苛",
  "yān,yǎn": "奄",
  "hē,a,kē": "呵",
  "gā,kā": "咖",
  "jiǎo,yáo": "侥",
  "chà,shā": "刹",
  "nüè,yào": "疟",
  "máng,méng": "氓",
  "gē,yì": "疙",
  "jǔ,jù": "沮",
  "zú,cù": "卒",
  "wǎn,yuān": "宛",
  "mí,mǐ": "弥",
  "qì,qiè,xiè": "契",
  "xié,jiā": "挟",
  "duò,duǒ": "垛",
  "zhà,shān,shi,cè": "栅",
  "bó,bèi": "勃",
  "zhóu,zhòu": "轴",
  "liē,liě,lié,lie": "咧",
  "yo,yō": "哟",
  "qiào,xiào": "俏",
  "hóu,hòu": "侯",
  "píng,bǐng": "屏",
  "nà,nuó": "娜",
  "pá,bà": "耙",
  "qī,xī": "栖",
  "jiǎ,gǔ": "贾",
  "láo,lào": "唠",
  "bàng,bèng": "蚌",
  "gōng,zhōng": "蚣",
  "li,lǐ,lī": "哩",
  "juè,jué": "倔",
  "yīn,yān,yǐn": "殷",
  "wō,guō": "涡",
  "lào,luò": "烙",
  "niǎn,niē": "捻",
  "yè,yē": "掖",
  "chān,xiān,càn,shǎn": "掺",
  "dǎn,shàn": "掸",
  "fēi,fěi": "菲",
  "qián,gān": "乾",
  "shuò,shí": "硕",
  "luō,luó,luo": "啰",
  "hǔ,xià": "唬",
  "dāng,chēng": "铛",
  "xiǎn,xǐ": "铣",
  "jiǎo,jiáo": "矫",
  "kuǐ,guī": "傀",
  "jì,zhài": "祭",
  "tǎng,chǎng": "淌",
  "chún,zhūn": "淳",
  "wèi,yù": "尉",
  "duò,huī": "堕",
  "chuò,chāo": "绰",
  "bēng,běng,bèng": "绷",
  "zōng,zèng": "综",
  "zhuó,zuó": "琢",
  "chuǎi,chuài,chuāi,tuán,zhuī": "揣",
  "péng,bāng": "彭",
  "zhuī,chuí": "椎",
  "léng,lēng,líng": "棱",
  "qiào,qiáo": "翘",
  "zhā,chā": "喳",
  "há,gé": "蛤",
  "qiàn,kàn": "嵌",
  "yān,ā": "腌",
  "dūn,duì": "敦",
  "kuì,huì": "溃",
  "sāo,sǎo": "骚",
  "kǎi,jiē": "楷",
  "pín,bīn": "频",
  "liú,liù": "馏",
  "nì,niào": "溺",
  "jiǎo,chāo": "剿",
  "áo,āo": "熬",
  "màn,wàn": "蔓",
  "chá,chā": "碴",
  "xūn,xùn": "熏",
  "da,dá": "瘩",
  "tuì,tùn": "褪",
  "liáo,liāo": "撩",
  "cuō,zuǒ": "撮",
  "cháo,zhāo": "嘲",
  "hēi,mò": "嘿",
  "zhuàng,chuáng": "幢",
  "jī,qǐ": "稽",
  "biě,biē": "瘪",
  "liáo,lào,lǎo": "潦",
  "chéng,dèng": "澄",
  "lèi,léi": "擂",
  "mò,má": "蟆",
  "liáo,liǎo": "燎",
  "liào,liǎo": "瞭",
  "sào,sāo": "臊",
  "mí,méi": "糜",
  "huò,huō,huá": "豁",
  "pù,bào": "瀑",
  "zǎn,cuán": "攒",
  "bò,bǒ": "簸",
  "bó,bù": "簿"
};

/***/ }),

/***/ "./src/vendor/pinyin/lib/phonetic-symbol.js":
/*!**************************************************!*\
  !*** ./src/vendor/pinyin/lib/phonetic-symbol.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// 带声调字符。
module.exports = {
  ā: "a1",
  á: "a2",
  ǎ: "a3",
  à: "a4",
  ē: "e1",
  é: "e2",
  ě: "e3",
  è: "e4",
  ō: "o1",
  ó: "o2",
  ǒ: "o3",
  ò: "o4",
  ī: "i1",
  í: "i2",
  ǐ: "i3",
  ì: "i4",
  ū: "u1",
  ú: "u2",
  ǔ: "u3",
  ù: "u4",
  ü: "v0",
  ǘ: "v2",
  ǚ: "v3",
  ǜ: "v4",
  ń: "n2",
  ň: "n3",
  "": "m2"
};

/***/ }),

/***/ "./src/vendor/pinyin/lib/pinyin.js":
/*!*****************************************!*\
  !*** ./src/vendor/pinyin/lib/pinyin.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


__webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
const assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
// XXX: Symbol when web support.
const PINYIN_STYLE = {
  NORMAL: 0,
  // 普通风格，不带声调。
  TONE: 1,
  // 标准风格，声调在韵母的第一个字母上。
  TONE2: 2,
  // 声调以数字形式在拼音之后，使用数字 0~4 标识。
  TO3NE: 5,
  // 声调以数字形式在声母之后，使用数字 0~4 标识。
  INITIALS: 3,
  // 仅需要声母部分。
  FIRST_LETTER: 4 // 仅保留首字母。
};
const DEFAULT_OPTIONS = {
  style: PINYIN_STYLE.TONE,
  // 风格
  segment: false,
  // 分词。
  heteronym: false // 多音字
};

// 声母表。
const INITIALS = "b,p,m,f,d,t,n,l,g,k,h,j,q,x,r,zh,ch,sh,z,c,s".split(",");
// 韵母表。
//const FINALS = "ang,eng,ing,ong,an,en,in,un,er,ai,ei,ui,ao,ou,iu,ie,ve,a,o,e,i,u,v".split(",");
// 带声调字符。
const PHONETIC_SYMBOL = __webpack_require__(/*! ./phonetic-symbol */ "./src/vendor/pinyin/lib/phonetic-symbol.js");
const RE_PHONETIC_SYMBOL = new RegExp("([" + Object.keys(PHONETIC_SYMBOL).join("") + "])", "g");
const RE_TONE2 = /([aeoiuvnm])([0-4])$/;

/*
 * 格式化拼音为声母（Initials）形式。
 * @param {String}
 * @return {String}
 */
function initials(pinyin) {
  for (let i = 0, l = INITIALS.length; i < l; i++) {
    if (pinyin.indexOf(INITIALS[i]) === 0) {
      return INITIALS[i];
    }
  }
  return "";
}
class Pinyin {
  constructor(dict) {
    this._dict = dict;
  }

  // @param {String} hans 要转为拼音的目标字符串（汉字）。
  // @param {Object} options, 可选，用于指定拼音风格，是否启用多音字。
  // @return {Array} 返回的拼音列表。
  convert(hans, options) {
    if (typeof hans !== "string") {
      return [];
    }
    options = assign({}, DEFAULT_OPTIONS, options);
    let pys = [];
    let nohans = "";
    for (let i = 0, firstCharCode, words, l = hans.length; i < l; i++) {
      words = hans[i];
      firstCharCode = words.charCodeAt(0);
      if (this._dict[firstCharCode]) {
        // ends of non-chinese words.
        if (nohans.length > 0) {
          pys.push([nohans]);
          nohans = ""; // reset non-chinese words.
        }
        pys.push(this.single_pinyin(words, options));
      } else {
        nohans += words;
      }
    }

    // 清理最后的非中文字符串。
    if (nohans.length > 0) {
      pys.push([nohans]);
      nohans = ""; // reset non-chinese words.
    }
    return pys;
  }

  // 单字拼音转换。
  // @param {String} han, 单个汉字
  // @return {Array} 返回拼音列表，多音字会有多个拼音项。
  single_pinyin(han, options) {
    if (typeof han !== "string") {
      return [];
    }
    if (han.length !== 1) {
      return this.single_pinyin(han.charAt(0), options);
    }
    let hanCode = han.charCodeAt(0);
    if (!this._dict[hanCode]) {
      return [han];
    }
    let pys = this._dict[hanCode].split(",");
    if (!options.heteronym) {
      return [Pinyin.toFixed(pys[0], options.style)];
    }

    // 临时存储已存在的拼音，避免多音字拼音转换为非注音风格出现重复。
    let py_cached = {};
    let pinyins = [];
    for (let i = 0, py, l = pys.length; i < l; i++) {
      py = Pinyin.toFixed(pys[i], options.style);
      if (py_cached.hasOwnProperty(py)) {
        continue;
      }
      py_cached[py] = py;
      pinyins.push(py);
    }
    return pinyins;
  }

  /**
   * 格式化拼音风格。
   *
   * @param {String} pinyin TONE 风格的拼音。
   * @param {ENUM} style 目标转换的拼音风格。
   * @return {String} 转换后的拼音。
   */
  static toFixed(pinyin, style) {
    let tone = ""; // 声调。
    let first_letter;
    let py;
    switch (style) {
      case PINYIN_STYLE.INITIALS:
        return initials(pinyin);
      case PINYIN_STYLE.FIRST_LETTER:
        first_letter = pinyin.charAt(0);
        if (PHONETIC_SYMBOL.hasOwnProperty(first_letter)) {
          first_letter = PHONETIC_SYMBOL[first_letter].charAt(0);
        }
        return first_letter;
      case PINYIN_STYLE.NORMAL:
        return pinyin.replace(RE_PHONETIC_SYMBOL, function ($0, $1_phonetic) {
          return PHONETIC_SYMBOL[$1_phonetic].replace(RE_TONE2, "$1");
        });
      case PINYIN_STYLE.TO3NE:
        return pinyin.replace(RE_PHONETIC_SYMBOL, function ($0, $1_phonetic) {
          return PHONETIC_SYMBOL[$1_phonetic];
        });
      case PINYIN_STYLE.TONE2:
        py = pinyin.replace(RE_PHONETIC_SYMBOL, function ($0, $1) {
          // 声调数值。
          tone = PHONETIC_SYMBOL[$1].replace(RE_TONE2, "$2");
          return PHONETIC_SYMBOL[$1].replace(RE_TONE2, "$1");
        });
        return py + tone;
      case PINYIN_STYLE.TONE:
      default:
        return pinyin;
    }
  }

  /**
   * 比较两个汉字转成拼音后的排序顺序，可以用作默认的拼音排序算法。
   *
   * @param {String} hanA 汉字字符串 A。
   * @return {String} hanB 汉字字符串 B。
   * @return {Number} 返回 -1，0，或 1。
   */
  compare(hanA, hanB) {
    const pinyinA = this.convert(hanA, DEFAULT_OPTIONS);
    const pinyinB = this.convert(hanB, DEFAULT_OPTIONS);
    return String(pinyinA).localeCompare(String(pinyinB));
  }
  static get STYLE_NORMAL() {
    return PINYIN_STYLE.NORMAL;
  }
  static get STYLE_TONE() {
    return PINYIN_STYLE.TONE;
  }
  static get STYLE_TONE2() {
    return PINYIN_STYLE.TONE2;
  }
  static get STYLE_TO3NE() {
    return PINYIN_STYLE.TO3NE;
  }
  static get STYLE_INITIALS() {
    return PINYIN_STYLE.INITIALS;
  }
  static get STYLE_FIRST_LETTER() {
    return PINYIN_STYLE.FIRST_LETTER;
  }
  static get DEFAULT_OPTIONS() {
    return DEFAULT_OPTIONS;
  }
}
module.exports = Pinyin;

/***/ }),

/***/ "./src/vendor/pinyin/lib/web-pinyin.js":
/*!*********************************************!*\
  !*** ./src/vendor/pinyin/lib/web-pinyin.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// 解压拼音库。
// @param {Object} dict_combo, 压缩的拼音库。
// @param {Object} 解压的拼音库。
function buildPinyinCache(dict_combo) {
  let hans;
  let uncomboed = {};
  for (let py in dict_combo) {
    hans = dict_combo[py];
    for (let i = 0, han, l = hans.length; i < l; i++) {
      han = hans.charCodeAt(i);
      if (!uncomboed.hasOwnProperty(han)) {
        uncomboed[han] = py;
      } else {
        uncomboed[han] += "," + py;
      }
    }
  }
  return uncomboed;
}
const PINYIN_DICT = buildPinyinCache(__webpack_require__(/*! ../data/dict-zi-web */ "./src/vendor/pinyin/data/dict-zi-web.js"));
const Pinyin = __webpack_require__(/*! ./pinyin */ "./src/vendor/pinyin/lib/pinyin.js");
const pinyin = new Pinyin(PINYIN_DICT);
module.exports = pinyin.convert.bind(pinyin);
module.exports.compare = pinyin.compare.bind(pinyin);
module.exports.STYLE_NORMAL = Pinyin.STYLE_NORMAL;
module.exports.STYLE_TONE = Pinyin.STYLE_TONE;
module.exports.STYLE_TONE2 = Pinyin.STYLE_TONE2;
module.exports.STYLE_TO3NE = Pinyin.STYLE_TO3NE;
module.exports.STYLE_INITIALS = Pinyin.STYLE_INITIALS;
module.exports.STYLE_FIRST_LETTER = Pinyin.STYLE_FIRST_LETTER;

/***/ }),

/***/ "./src/wfc.css":
/*!*********************!*\
  !*** ./src/wfc.css ***!
  \*********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!../node_modules/postcss-loader/src??ref--7-oneOf-3-2!./wfc.css */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./src/wfc.css");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("476725af", content, false, {"sourceMap":false,"shadowMode":false});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ "./src/wfc/av/engine/avenginekitproxy.js":
/*!***********************************************!*\
  !*** ./src/wfc/av/engine/avenginekitproxy.js ***!
  \***********************************************/
/*! exports provided: AvEngineKitProxy, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AvEngineKitProxy", function() { return AvEngineKitProxy; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _client_wfcEvent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../client/wfcEvent */ "./src/wfc/client/wfcEvent.js");
/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../platform */ "./src/platform.js");
/* harmony import */ var _model_conversationType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../model/conversationType */ "./src/wfc/model/conversationType.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _client_messageConfig__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../client/messageConfig */ "./src/wfc/client/messageConfig.js");
/* harmony import */ var detectrtc__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! detectrtc */ "./node_modules/detectrtc/DetectRTC.js");
/* harmony import */ var detectrtc__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(detectrtc__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../config */ "./src/config.js");
/* harmony import */ var _util_longUtil__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../util/longUtil */ "./src/wfc/util/longUtil.js");
/* harmony import */ var _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../wfc/model/conversation */ "./src/wfc/model/conversation.js");
/* harmony import */ var _callEndReason__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./callEndReason */ "./src/wfc/av/engine/callEndReason.js");
/* harmony import */ var _messages_callByeMessageContent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../messages/callByeMessageContent */ "./src/wfc/av/messages/callByeMessageContent.js");





/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */














// main window renderer process -> voip window renderer process
// voip window renderer process -> main process -> main window renderer process
class AvEngineKitProxy {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "wfc", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "queueEvents", []);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callWin", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "conference", false);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "conversation", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "inviteMessageUid", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "participants", []);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "isSupportVoip", false);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "hasMicrophone", false);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "hasSpeaker", false);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "hasWebcam", false);
    /**
     * 无法正常弹出音视频通话窗口是的回调
     * 回到参数说明：-1，有音视频通话正在进行中；-2，设备不支持音视频通话，可能原因是不支持webrtc，没有摄像头或麦克风等
     * @type {(Number) => {}}
     */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "onVoipCallErrorCallback", void 0);
    /**
     * 音视频通话通话状态回调
     */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "onVoipCallStatusCallback", (covnersation, ongonging) => {});
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "updateCallStartMessageContentListener", (event, message) => {
      let messageUid = message.messageUid;
      let content = message.content;
      let msg = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getMessageByUid(messageUid);
      let orgContent = msg.messageContent;
      orgContent.connectTime = content.connectTime ? content.connectTime : orgContent.connectTime;
      orgContent.endTime = content.endTime ? content.endTime : orgContent.endTime;
      orgContent.status = content.status;
      orgContent.audioOnly = content.audioOnly;
      _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].updateMessageContent(msg.messageId, orgContent);
    });
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "sendConferenceRequestListener", (event, request) => {
      console.log("to send conference request", request);
      _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].sendConferenceRequestEx(request.sessionId ? request.sessionId : 0, request.roomId ? request.roomId : "", request.request, request.data, request.advance, (errorCode, res) => {
        this.emitToVoip("sendConferenceRequestResult", {
          error: errorCode,
          sendConferenceRequestId: request.sendConferenceRequestId,
          response: res
        });
      });
    });
    // 发送消息时，返回的timestamp，已经过修正，后面使用时,不用考虑和服务器的时间差
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "sendVoipListener", (event, msg) => {
      let contentClazz = _client_messageConfig__WEBPACK_IMPORTED_MODULE_10__["default"].getMessageContentClazz(msg.content.type);
      let content = new contentClazz();
      content.decode(msg.content);
      console.log("to send voip message", content.type, content.callId, content);
      let delta = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getServerDeltaTime();
      if (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ADD_PARTICIPANT) {
        this.participants.push(content.participants);
      } else if (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_END) {
        console.log("to send end message", content.reason, content);
        this.conversation = null;
        this.queueEvents = [];
        this.callId = null;
        this.inviteMessageUid = null;
        this.participants = [];
        // 仅仅为了通知proxy，其他端已经接听电话了，关闭窗口时，不应当发送挂断信令
        if (!content.callId) {
          return;
        }
      }
      let conversation = new _wfc_model_conversation__WEBPACK_IMPORTED_MODULE_14__["default"](msg.conversation.type, msg.conversation.target, msg.conversation.line);
      _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].sendConversationMessage(conversation, content, msg.toUsers, (messageId, timestamp) => {
        // do nothing
      }, (uploaded, total) => {
        // do nothing
      }, (messageUid, timestamp) => {
        this.emitToVoip("sendMessageResult", {
          error: 0,
          sendMessageId: msg.sendMessageId,
          messageUid: messageUid,
          timestamp: Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_13__["longValue"])(Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_13__["numberValue"])(timestamp) - delta)
        });
        if (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_START) {
          this.inviteMessageUid = messageUid;
        }
      }, errorCode => {
        this.emitToVoip("sendMessageResult", {
          error: errorCode,
          sendMessageId: msg.sendMessageId
        });
      });
    });
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "onReceiveConferenceEvent", event => {
      this.emitToVoip("conferenceEvent", event);
    });
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "onConnectionStatusChange", status => {
      this.emitToVoip("connectionStatus", status);
    });
    // 收到消息时，timestamp已经过修正，后面使用时，不用考虑和服务器的时间差
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "onReceiveMessage", msg => {
      if (!_config__WEBPACK_IMPORTED_MODULE_12__["default"].ENABLE_MULTI_VOIP_CALL && msg.conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_7__["default"].Group) {
        console.log("not enable multi call ");
        return;
      }
      if (!_config__WEBPACK_IMPORTED_MODULE_12__["default"].ENABLE_SINGLE_VOIP_CALL && msg.conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_7__["default"].Single) {
        console.log("not enable multi call ");
        return;
      }
      let now = new Date().valueOf();
      let delta = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getServerDeltaTime();
      if (now - (Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_13__["numberValue"])(msg.timestamp) - delta) >= 90 * 1000) {
        // 消息已失效，不做处理
        return;
      }
      let content = msg.messageContent;
      if (this.callWin && this.conference && content.type !== _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].CONFERENCE_CONTENT_TYPE_COMMAND) {
        console.log("in conference, ignore all other msg");
        return;
      }
      if (msg.direction === 1 && (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_START || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ADD_PARTICIPANT)) {
        if (this.callWin) {
          if (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_START || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ADD_PARTICIPANT && content.participants.indexOf(_client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserId()) >= 0) {
            // 已在音视频通话中，其他的音视频通话，又邀请自己，这儿是只是让主界面提示一下，拒绝逻辑在 engine 里面
            this.onVoipCallErrorCallback && this.onVoipCallErrorCallback(-1);
          }
        }
        if (!this.isSupportVoip || !this.hasMicrophone || !this.hasSpeaker) {
          this.onVoipCallErrorCallback && this.onVoipCallErrorCallback(-2);
          return;
        }
      }
      if (msg.conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_7__["default"].Single || msg.conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_7__["default"].Group || this.conference && msg.conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_7__["default"].ChatRoom) {
        if (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_START || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_END || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ACCEPT || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_SIGNAL || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_MODIFY || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ACCEPT_T || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ADD_PARTICIPANT || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_MUTE_VIDEO || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_Join_Call_Request || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].CONFERENCE_CONTENT_TYPE_KICKOFF_MEMBER || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].CONFERENCE_CONTENT_TYPE_CHANGE_MODE || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].CONFERENCE_CONTENT_TYPE_COMMAND) {
          console.log("receive voip message", msg.messageContent.type, msg.messageContent.callId, msg.messageUid.toString(), msg);
          if (msg.direction === 0 && content.type !== _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_END && content.type !== _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ACCEPT && content.type !== _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ACCEPT) {
            return;
          }
          let participantUserInfos = [];
          let selfUserInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfo(_client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserId());
          if (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_START) {
            this.conversation = msg.conversation;
            this.callId = content.callId;
            this.inviteMessageUid = msg.messageUid;
            this.participants.push(...content.targetIds);
            this.participants.push(msg.from);
            // 参与者不包含自己
            this.participants = this.participants.filter(uid => uid !== selfUserInfo.uid);
            if (msg.conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_7__["default"].Single) {
              participantUserInfos = [_client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfo(msg.from)];
            } else {
              let targetIds = content.targetIds.filter(id => id !== selfUserInfo.uid);
              targetIds.push(msg.from);
              participantUserInfos = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfos(targetIds, msg.conversation.target);
            }
            if (!this.callWin) {
              setTimeout(() => {
                if (this.conversation) {
                  this.showCallUI(msg.conversation, false, {
                    event: "message",
                    args: msg
                  });
                } else {
                  console.log("call ended");
                }
              }, 200);
            }
          } else if (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ADD_PARTICIPANT) {
            let participantIds = [...content.participants];
            if (content.existParticipants) {
              content.existParticipants.forEach(p => {
                participantIds.push(p.userId);
              });
            }
            this.conversation = msg.conversation;
            this.callId = content.callId;
            this.inviteMessageUid = msg.messageUid;
            this.participants.push(...participantIds);
            participantIds = participantIds.filter(u => u.uid !== selfUserInfo.uid);
            participantUserInfos = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfos(participantIds, msg.conversation.target);
            if (!this.callWin && content.participants.indexOf(selfUserInfo.uid) > -1) {
              setTimeout(() => {
                if (this.conversation) {
                  this.showCallUI(msg.conversation, false, {
                    event: "message",
                    args: msg
                  });
                } else {
                  console.log("call ended");
                }
              }, 200);
            }
          } else if (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_END) {
            if (content.callId !== this.callId) {
              return;
            }
          }
          if (msg.conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_7__["default"].Group && (content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_START || content.type === _messages_messageContentType__WEBPACK_IMPORTED_MODULE_8__["default"].VOIP_CONTENT_TYPE_ADD_PARTICIPANT)) {
            let memberIds = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getGroupMemberIds(msg.conversation.target);
            msg.groupMemberUserInfos = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfos(memberIds, msg.conversation.target);
          }
          msg.participantUserInfos = participantUserInfos;
          msg.selfUserInfo = selfUserInfo;
          msg.timestamp = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_13__["longValue"])(Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_13__["numberValue"])(msg.timestamp) - delta);
          if (this.callWin) {
            this.emitToVoip("message", msg);
          }
        }
      }
    });
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "listenVoipEvent", (event, listener) => {
      console.log("listenVoipEvent ", event, listener);
      if (Object(_platform__WEBPACK_IMPORTED_MODULE_6__["isElectron"])()) {
        // listen for event from renderer
        _platform__WEBPACK_IMPORTED_MODULE_6__["ipcRenderer"].on(event, listener);
      } else {
        this.events.on(event, listener);
      }
    });
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "onVoipWindowClose", event => {
      if (event && event.srcElement && event.srcElement.URL === "about:blank") {
        // fix safari bug: safari 浏览器，页面刚打开的时候，也会走到这个地方
        return;
      }
      // 让voip内部先处理关闭事件，内部处理时，可能还需要发消息
      console.log("onVoipWindowClose");
      if (!this.callWin) {
        return;
      }
      if (!Object(_platform__WEBPACK_IMPORTED_MODULE_6__["isElectron"])()) {
        this.callWin.removeEventListener("beforeunload", this.onVoipWindowClose);
        this.callWin.removeEventListener("unload", this.onVoipWindowClose);
      }
      setTimeout(() => {
        this.onVoipCallStatusCallback && this.onVoipCallStatusCallback(this.conversation, false);
        this.conversation = null;
        this.queueEvents = [];
        if (this.conference) {
          _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].quitChatroom(this.callId);
          this.conference = false;
        }
        this.callId = null;
        this.participants = [];
        this.queueEvents = [];
        this.callWin = null;
        this.voipEventRemoveAllListeners("voip-message", "conference-request", "update-call-start-message", "start-screen-share");
      }, 2000);
    });
  }
  /**
   * 应用初始化的时候调用
   * @param wfc
   */
  setup(wfc) {
    if (this.wfc === wfc) {
      console.log("re-setup, just ignore");
      return;
    }
    this.wfc = wfc;
    detectrtc__WEBPACK_IMPORTED_MODULE_11___default.a.load(() => {
      this.isSupportVoip = detectrtc__WEBPACK_IMPORTED_MODULE_11___default.a.isWebRTCSupported;
      this.hasMicrophone = detectrtc__WEBPACK_IMPORTED_MODULE_11___default.a.hasMicrophone;
      // Safari 14.0 版本，hasSpeakers一直为false，先全部置为true
      //this.hasSpeaker = DetectRTC.hasSpeakers;
      this.hasSpeaker = true;
      this.hasWebcam = detectrtc__WEBPACK_IMPORTED_MODULE_11___default.a.hasWebcam;
      console.log(`detectRTC, isWebRTCSupported: ${detectrtc__WEBPACK_IMPORTED_MODULE_11___default.a.isWebRTCSupported}, hasWebcam: ${detectrtc__WEBPACK_IMPORTED_MODULE_11___default.a.hasWebcam}, hasSpeakers: ${detectrtc__WEBPACK_IMPORTED_MODULE_11___default.a.hasSpeakers}, hasMicrophone: ${detectrtc__WEBPACK_IMPORTED_MODULE_11___default.a.hasMicrophone}`, this.isSupportVoip);
    });
    this.event = wfc.eventEmitter;
    this.event.on(_client_wfcEvent__WEBPACK_IMPORTED_MODULE_5__["default"].ReceiveMessage, this.onReceiveMessage);
    this.event.on(_client_wfcEvent__WEBPACK_IMPORTED_MODULE_5__["default"].ConferenceEvent, this.onReceiveConferenceEvent);
    this.event.on(_client_wfcEvent__WEBPACK_IMPORTED_MODULE_5__["default"].ConnectionStatusChanged, this.onConnectionStatusChange);
    if (!Object(_platform__WEBPACK_IMPORTED_MODULE_6__["isElectron"])()) {
      const EventEmitter = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter;
      this.events = new EventEmitter();
      this.events.on("voip-message", this.sendVoipListener);
      this.events.on("conference-request", this.sendConferenceRequestListener);
      this.events.on("update-call-start-message", this.updateCallStartMessageContentListener);
    }
  }
  emitToVoip(event, args) {
    console.log("emitToVoip", event, args);
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_6__["isElectron"])()) {
      // renderer/main to renderer
      if (this.callWin) {
        // fix object of long.js can be send inter-process
        args = JSON.stringify(args);
        this.callWin.webContents.send(event, args);
      } else if (this.queueEvents) {
        this.queueEvents.push({
          event,
          args
        });
      }
    } else {
      if (this.events) {
        this.events.emit(event, event, args);
      } else if (this.queueEvents) {
        this.queueEvents.push({
          event,
          args
        });
      }
    }
  }
  emitToMain(event, args) {
    console.log("emit to main", event, args);
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_6__["isElectron"])()) {
      // renderer to main
      _platform__WEBPACK_IMPORTED_MODULE_6__["ipcRenderer"].send(event, args);
    } else {
      this.events.emit(event, event, args);
    }
  }
  /**
   * 发起音视频通话
   * @param {Conversation} conversation 会话
   * @param {Boolean} audioOnly 是否是音频通话
   * @param {[String]} participants 参与者用户id列表
   * @param {string} callExtra 通话附加信息，会议版有效
   */
  startCall(conversation, audioOnly, participants, callExtra = "") {
    if (this.callWin) {
      console.log("voip call is ongoing");
      this.onVoipCallErrorCallback && this.onVoipCallErrorCallback(-1);
      return;
    }
    console.log(`startCall speaker、microphone、webcam检测结果分别为：${this.hasSpeaker} , ${this.hasMicrophone}, ${this.hasWebcam}，如果不全为true，请检查硬件设备是否正常，否则通话可能存在异常`);
    if (!this.isSupportVoip || !this.hasSpeaker || !this.hasMicrophone) {
      console.log("not support voip", this.isSupportVoip, this.hasSpeaker, this.hasMicrophone, this.hasWebcam);
      this.onVoipCallErrorCallback && this.onVoipCallErrorCallback(-2);
      return;
    }
    let selfUserInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfo(_client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserId());
    participants = participants.filter(uid => uid !== selfUserInfo.uid);
    let callId = conversation.target + Math.floor(Math.random() * 10000);
    this.conversation = conversation;
    this.participants.push(...participants);
    this.callId = callId;
    let participantUserInfos = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfos(participants);
    let groupMemberUserInfos;
    if (conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_7__["default"].Group) {
      let memberIds = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getGroupMemberIds(conversation.target);
      groupMemberUserInfos = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfos(memberIds, conversation.target);
    }
    delete conversation._target;
    this.showCallUI(conversation, false, {
      event: "startCall",
      args: {
        conversation: conversation,
        audioOnly: audioOnly,
        callId: callId,
        selfUserInfo: selfUserInfo,
        groupMemberUserInfos: groupMemberUserInfos,
        participantUserInfos: participantUserInfos,
        callExtra: callExtra
      }
    });
  }

  /**
   * 开始会议
   * @param {string} callId 会议id
   * @param {boolean} audioOnly 是否仅仅开启音频; true，音频会议；false，视频会议
   * @param {string} pin 入会pin码
   * @param {string} host 主持人用户id
   * @param {string} title 会议标题
   * @param {string} desc 会议描述
   * @param {boolean} audience 其他人加入会议时，是否默认为观众；true，默认为观众；false，默认为互动者
   * @param {boolean} advance 是否为高级会议，当预计参与人员很多的时候，开需要开启超级会议
   * @param {boolean} record 是否开启服务端录制
   * @param {Object} extra 一些额外信息，主要用于将信息传到音视频通话窗口，会议的其他参与者，无法看到该附加信息
   * @param {Object} callExtra  通话附件信息，会议的所有参与者都能看到该附加信息
   * @param {boolean} muteAudio 是否是静音加入会议
   * @param {boolean} muteVideo 是否是关闭摄像头加入会议
   */
  startConference(callId, audioOnly, pin, host, title, desc, audience, advance, record = false, extra, callExtra, muteAudio = false, muteVideo = false) {
    if (this.callWin) {
      console.log("voip call is ongoing");
      this.onVoipCallErrorCallback && this.onVoipCallErrorCallback(-1);
      return;
    }
    if (!this.isSupportVoip || !this.hasSpeaker || !this.hasMicrophone) {
      console.log("not support voip", this.isSupportVoip, this.hasSpeaker);
      this.onVoipCallErrorCallback && this.onVoipCallErrorCallback(-2);
      return;
    }
    callId = callId ? callId : _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserId() + Math.floor(Math.random() * 10000);
    this.callId = callId; // !!！显示弹框
    this.conversation = null;
    this.conference = true;
    _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].joinChatroom(callId, () => {
      console.log("join conference chatRoom success", callId);
    }, err => {
      console.error("join conference chatRoom fail", callId, err);
    });
    let selfUserInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfo(_client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserId());
    this.showCallUI(null, true, {
      event: "startConference",
      args: {
        audioOnly: audioOnly,
        callId: callId,
        pin: pin ? pin : Math.ceil(Math.random() * 1000000) + "",
        host: host,
        title: title,
        desc: desc,
        audience: audience,
        advance: advance,
        record: record,
        selfUserInfo: selfUserInfo,
        extra: extra,
        callExtra: callExtra,
        muteAudio: muteAudio,
        muteVideo: muteVideo
      }
    });
  }

  /**
   * 加入会议
   * @param {string} callId 会议id
   * @param {string} audioOnly 是否只开启音频
   * @param {string} pin 会议pin码
   * @param {string} host 会议主持人
   * @param {string} title 会议标题
   * @param {string} desc 会议描述
   * @param {boolean} audience 是否是以观众角色入会
   * @param {string} advance 是否是高级会议
   * @param {boolean} muteAudio 是否是静音加入会议
   * @param {boolean} muteVideo 是否是关闭摄像头加入会议
   * @param {Object} extra 一些额外信息，主要用于将信息传到音视频通话窗口
   * @param {Object} callExtra 通话附加信息，会议的所有参与者都能看到该附加信息
   */
  joinConference(callId, audioOnly, pin, host, title, desc, audience, advance, muteAudio, muteVideo, extra = null, callExtra = null) {
    if (this.callWin) {
      console.log("voip call is ongoing");
      this.onVoipCallErrorCallback && this.onVoipCallErrorCallback(-1);
      return;
    }
    if (!this.isSupportVoip || !this.hasSpeaker || !this.hasMicrophone) {
      console.log("not support voip", this.isSupportVoip, this.hasSpeaker, this.hasMicrophone);
      this.onVoipCallErrorCallback && this.onVoipCallErrorCallback(-2);
      return;
    }
    this.conversation = null;
    this.conference = true;
    this.callId = callId;
    _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].joinChatroom(callId, () => {
      console.log("join conference chatRoom success", callId);
    }, err => {
      console.error("join conference chatRoom fail", callId, err);
    });
    let selfUserInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserInfo(_client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].getUserId());
    this.showCallUI(null, true, {
      event: "joinConference",
      args: {
        audioOnly: audioOnly,
        callId: callId,
        pin: pin,
        host: host,
        title: title,
        desc: desc,
        audience: audience,
        advance: advance,
        muteAudio: muteAudio,
        muteVideo: muteVideo,
        selfUserInfo: selfUserInfo,
        extra: extra,
        callExtra: callExtra
      }
    });
  }
  showCallUI(conversation, isConference, options) {
    let type = isConference ? "conference" : conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_7__["default"].Single ? "single" : "multi";
    this.type = type;
    let width = 360;
    let height = 640;
    let minWidth = 360;
    let minHeight = 640;
    switch (type) {
      case "single":
        width = 360;
        height = 640;
        break;
      case "multi":
      case "conference":
        width = 960;
        height = 600;
        minWidth = 800;
        minHeight = 480;
        break;
      default:
        break;
    }
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_6__["isElectron"])()) {
      let win = new _platform__WEBPACK_IMPORTED_MODULE_6__["BrowserWindow"]({
        width: width,
        height: height,
        minWidth: minWidth,
        minHeight: minHeight,
        resizable: true,
        maximizable: true,
        transparent: !!isConference,
        frame: !isConference,
        webPreferences: {
          scrollBounce: false,
          nativeWindowOpen: true,
          nodeIntegration: true,
          contextIsolation: false
        }
      });
      // const remoteMain = require("@electron/remote").require("@electron/remote/main");
      const remoteMain = _platform__WEBPACK_IMPORTED_MODULE_6__["remote"].require("@electron/remote/main");
      remoteMain.enable(win.webContents);
      win.webContents.on("did-finish-load", () => {
        this.onVoipWindowReady(win);
      });
      if (localStorage.getItem("enable_voip_debug")) {
        win.webContents.openDevTools();
      }
      win.on("close", () => {
        this.onVoipWindowClose();
      });

      // win.loadURL(path.join('file://', AppPath, 'src/index.html?' + type));
      let hash = window.location.hash;
      let url = window.location.origin;
      if (hash) {
        url = window.location.href.replace(hash, "#/voip");
      } else {
        url += "/voip";
      }
      url += "/" + type + "?t=" + new Date().getTime();
      win.loadURL(url);
      console.log("voip windows url", url);
      win.show();
      win.removeMenu();
      this.emitToVoip(options.event, options.args);
    } else {
      this.callWin = window;
      console.log("windowEmitter subscribe events");
      this.events.once("close-voip-div", () => {
        this.onVoipCallStatusCallback && this.conversation && this.onVoipCallStatusCallback(this.conversation, false);
        this.callWin = null;
        this.conference = null;
        this.callId = null; // !!!关闭弹框
        this.conversation = null;
      });
      // 等 voip view mounted
      setTimeout(() => {
        this.emitToVoip(options.event, options.args);
      }, 200);
      this.onVoipCallStatusCallback && this.conversation && this.onVoipCallStatusCallback(this.conversation, true);
    }
  }
  onVoipWindowReady(win) {
    if (!this.callId) {
      return;
    }
    this.callWin = win;
    console.log("onVoipWindowReady", this.onVoipCallStatusCallback);
    this.onVoipCallStatusCallback && this.onVoipCallStatusCallback(this.conversation, true);
    if (!Object(_platform__WEBPACK_IMPORTED_MODULE_6__["isElectron"])()) {
      // 启动页面的时候就监听，不然太慢了，会丢事件
    } else {
      console.log("ipcRenderer subscribe events");
      _platform__WEBPACK_IMPORTED_MODULE_6__["ipcRenderer"].on("voip-message", this.sendVoipListener);
      _platform__WEBPACK_IMPORTED_MODULE_6__["ipcRenderer"].on("conference-request", this.sendConferenceRequestListener);
      _platform__WEBPACK_IMPORTED_MODULE_6__["ipcRenderer"].on("update-call-start-message", this.updateCallStartMessageContentListener);
      _platform__WEBPACK_IMPORTED_MODULE_6__["ipcRenderer"].on(/*IPCEventType.START_SCREEN_SHARE*/"start-screen-share", (event, args) => {
        if (this.callWin) {
          let screenWidth = args.width;
          this.callWin.resizable = true;
          this.callWin.closable = true;
          this.callWin.maximizable = false;
          this.callWin.transparent = true;
          this.callWin.setMinimumSize(800, 800);
          this.callWin.setSize(800, 800);
          // console.log('screen width', screen, screen.width);
          this.callWin.setPosition((screenWidth - 800) / 2, 0, true);
        }
      });
      _platform__WEBPACK_IMPORTED_MODULE_6__["ipcRenderer"].on(/*IPCEventType.STOP_SCREEN_SHARE*/"stop-screen-share", (event, args) => {
        if (this.callWin) {
          let type = args.type;
          let width = 360;
          let height = 640;
          switch (type) {
            case "single":
              width = 360;
              height = 640;
              break;
            case "multi":
            case "conference":
              width = 1024;
              height = 800;
              break;
            default:
              break;
          }
          this.callWin.resizable = true;
          this.callWin.closable = true;
          this.callWin.maximizable = true;
          this.callWin.setMinimumSize(width, height);
          this.callWin.setSize(width, height);
          this.callWin.center();
        }
      });
    }
    if (this.queueEvents.length > 0) {
      this.queueEvents.forEach(eventArgs => {
        console.log("process queued event", eventArgs);
        this.emitToVoip(eventArgs.event, eventArgs.args);
      });
    }
  }
  voipEventRemoveAllListeners(...events) {
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_6__["isElectron"])()) {
      // renderer
      events.forEach(e => _platform__WEBPACK_IMPORTED_MODULE_6__["ipcRenderer"].removeAllListeners(e));
    }
  }
  forceCloseVoipWindow() {
    if (Object(_platform__WEBPACK_IMPORTED_MODULE_6__["isElectron"])() && this.callWin) {
      this.callWin.close();
    }
    this.callId = null;
    this.callWin = null;
  }

  // 仅 web 端，单人、多人通话有效
  forceCloseVoipWindowAndHangup() {
    if (this.callWin && !this.conference) {
      let byeMessage = new _messages_callByeMessageContent__WEBPACK_IMPORTED_MODULE_16__["default"]();
      // 处理用户没有主动挂断，而是直接返回页面时，补偿一个挂断消息
      // 现在还无法处理会议的情况，会议只能等待超时
      byeMessage.callId = this.callId;
      byeMessage.inviteMsgUid = this.inviteMessageUid;
      byeMessage.reason = _callEndReason__WEBPACK_IMPORTED_MODULE_15__["default"].REASON_Hangup;
      _client_wfc__WEBPACK_IMPORTED_MODULE_9__["default"].sendConversationMessage(this.conversation, byeMessage);
      this.onVoipWindowClose();
    }
  }
}
const self = new AvEngineKitProxy();
/* harmony default export */ __webpack_exports__["default"] = (self);

/***/ }),

/***/ "./src/wfc/av/engine/callEndReason.js":
/*!********************************************!*\
  !*** ./src/wfc/av/engine/callEndReason.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CallEndReason; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class CallEndReason {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_Unknown", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_Busy", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_SignalError", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_Hangup", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_MediaError", 4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_RemoteHangup", 5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_OpenCameraFailure", 6);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_Timeout", 7);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_AcceptByOtherClient", 8);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "REASON_AllLeft", 9);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "RemoteBusy", 10);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "RemoteTimeout", 11);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "RemoteNetworkError", 12);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "RoomDestroyed", 13);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "RoomNotExist", 14);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "RoomParticipantsFull", 15);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "Interrupted", 16);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(CallEndReason, "RemoteInterrupted", 17);

/***/ }),

/***/ "./src/wfc/av/messages/addParticipantsMessageContent.js":
/*!**************************************************************!*\
  !*** ./src/wfc/av/messages/addParticipantsMessageContent.js ***!
  \**************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AddParticipantsMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _messages_notification_notificationMessageContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../messages/notification/notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");




/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class ParticipantStatus {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "userId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "acceptTime", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "joinTime", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "videoMuted", void 0);
  }
}
class AddParticipantsMessageContent extends _messages_notification_notificationMessageContent__WEBPACK_IMPORTED_MODULE_4__["default"] {
  constructor() {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_CONTENT_TYPE_ADD_PARTICIPANT);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "initiator", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "pin", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "participants", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "existParticipants", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "audioOnly", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "autoAnswer", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "clientId", void 0);
  }
  formatNotification(message) {
    let desc = "";
    if (this.fromSelf) {
      desc = "您邀请";
    } else {
      desc = _client_wfc__WEBPACK_IMPORTED_MODULE_6__["default"].getGroupMemberDisplayName(message.conversation.target, this.initiator);
      desc += "邀请";
    }
    if (this.participants) {
      this.participants.forEach(p => {
        desc += " ";
        if (p === _client_wfc__WEBPACK_IMPORTED_MODULE_6__["default"].getUserId()) {
          desc += "您";
        } else {
          desc += _client_wfc__WEBPACK_IMPORTED_MODULE_6__["default"].getGroupMemberDisplayName(message.conversation.target, p);
        }
      });
    }
    desc += " 加入了通话";
    return desc;
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    let obj = {
      initiator: this.initiator,
      audioOnly: this.audioOnly ? 1 : 0,
      pin: this.pin,
      participants: this.participants,
      existParticipants: this.existParticipants,
      autoAnswer: this.autoAnswer,
      clientId: this.clientId
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_6__["default"].utf8_to_b64(JSON.stringify(obj));
    let epids = this.existParticipants.map(p => p.userId);
    let pushData = {
      callId: this.callId,
      audioOnly: this.audioOnly,
      participants: this.participants,
      existParticipants: epids
    };
    payload.pushData = JSON.stringify(pushData);
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_6__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.initiator = obj.initiator;
    this.audioOnly = obj.audioOnly === 1;
    this.pin = obj.pin;
    this.participants = obj.participants;
    this.existParticipants = obj.existParticipants;
    this.autoAnswer = obj.autoAnswer;
    this.clientId = obj.clientId;
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/callAnswerMessageContent.js":
/*!*********************************************************!*\
  !*** ./src/wfc/av/messages/callAnswerMessageContent.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CallAnswerMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _util_longUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/longUtil */ "./src/wfc/util/longUtil.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */





class CallAnswerMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(mentionedType = 0, mentionedTargets = []) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_4__["default"].VOIP_CONTENT_TYPE_ACCEPT, mentionedType, mentionedTargets);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "audioOnly", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "inviteMessageUid", void 0);
  }
  digest() {
    return "";
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    var obj;
    if (this.audioOnly) {
      obj = "1";
    } else {
      obj = "0";
    }
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].utf8_to_b64(obj);
    let obj2 = {
      u: Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["stringValue"])(this.inviteMessageUid)
    };
    let str = JSON.stringify(obj2);
    str = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["_patchToJavaLong"])(str, "u");
    payload.extra = str;
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    let str = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].b64_to_utf8(payload.binaryContent);
    this.audioOnly = str === "1";
    str = payload.extra;
    if (str) {
      str = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["_reverseToJsLongString"])(str, "u");
      this.inviteMessageUid = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["longValue"])(JSON.parse(str).u);
    }
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/callAnswerTMessageContent.js":
/*!**********************************************************!*\
  !*** ./src/wfc/av/messages/callAnswerTMessageContent.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CallAnswerTMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class CallAnswerTMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(mentionedType = 0, mentionedTargets = []) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].VOIP_CONTENT_TYPE_ACCEPT_T, mentionedType, mentionedTargets);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "audioOnly", void 0);
  }
  digest() {
    return "";
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    var obj;
    if (this.audioOnly) {
      obj = "1";
    } else {
      obj = "0";
    }
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(obj);
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    let str = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
    this.audioOnly = str === "1";
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/callByeMessageContent.js":
/*!******************************************************!*\
  !*** ./src/wfc/av/messages/callByeMessageContent.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CallByeMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _util_longUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/longUtil */ "./src/wfc/util/longUtil.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */





class CallByeMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(mentionedType = 0, mentionedTargets = []) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].VOIP_CONTENT_TYPE_END, mentionedType, mentionedTargets);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "reason", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "inviteMsgUid", void 0);
  }
  digest() {
    return "";
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    let obj = {
      r: this.reason,
      u: this.inviteMsgUid ? Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_4__["stringValue"])(this.inviteMsgUid) : undefined
    };
    let str = JSON.stringify(obj);
    str = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_4__["_patchToJavaLong"])(str, "u");
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(str);
    payload.pushData = str;
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    let str = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
    str = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_4__["_reverseToJsLongString"])(str, "u");
    let obj = JSON.parse(str);
    this.reason = obj.r;
    this.inviteMsgUid = obj.u ? Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_4__["longValue"])(obj.u) : undefined;
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/callModifyMessageContent.js":
/*!*********************************************************!*\
  !*** ./src/wfc/av/messages/callModifyMessageContent.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CallModifyMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class CallModifyMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(mentionedType = 0, mentionedTargets = []) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].VOIP_CONTENT_TYPE_MODIFY, mentionedType, mentionedTargets);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "audioOnly", void 0);
  }
  digest() {
    return "";
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    var obj;
    if (this.audioOnly) {
      obj = "1";
    } else {
      obj = "0";
    }
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].utf8_to_b64(obj);
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    let str = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].b64_to_utf8(payload.binaryContent);
    this.audioOnly = str === "1";
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/callSignalMessageContent.js":
/*!*********************************************************!*\
  !*** ./src/wfc/av/messages/callSignalMessageContent.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CallSignalMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class CallSignalMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(mentionedType = 0, mentionedTargets = []) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].VOIP_CONTENT_TYPE_SIGNAL, mentionedType, mentionedTargets);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "payload", void 0);
  }
  digest() {
    return "";
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(this.payload);
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    this.payload = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/callStartMessageContent.js":
/*!********************************************************!*\
  !*** ./src/wfc/av/messages/callStartMessageContent.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CallStartMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class CallStartMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(mentionedType = 0, mentionedTargets = []) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].VOIP_CONTENT_TYPE_START, mentionedType, mentionedTargets);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "targetIds", []);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "connectTime", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "endTime", void 0);
    /**
     * 0, UnKnown,
     * 1, Busy,
     * 2, SignalError,
     * 3, Hangup,
     * 4, MediaError,
     * 5, RemoteHangup,
     * 6, OpenCameraFailure,
     * 7, Timeout,
     * 8, AcceptByOtherClient
     */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "status", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "audioOnly", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "pin", void 0);
  }
  digest() {
    if (this.audioOnly) {
      return "[语音通话]";
    } else {
      return "[视频通话]";
    }
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    let obj = {
      c: this.connectTime,
      e: this.endTime,
      s: this.status,
      a: this.audioOnly ? 1 : 0,
      ts: this.targetIds,
      t: this.targetIds[0],
      p: this.pin
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    let pushData = {
      callId: this.callId,
      audioOnly: this.audioOnly,
      participants: this.targetIds
    };
    payload.pushData = JSON.stringify(pushData);
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.connectTime = obj.c;
    this.endTime = obj.e;
    this.status = obj.s;
    this.audioOnly = obj.a === 1;
    this.targetIds = obj.ts;
    if (!this.targetIds) {
      this.targetIds = [obj.t];
    }
    this.pin = obj.p;
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/conferenceChangeModeContent.js":
/*!************************************************************!*\
  !*** ./src/wfc/av/messages/conferenceChangeModeContent.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ConferenceChangeModeContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");




class ConferenceChangeModeContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(callId, audience) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].CONFERENCE_CONTENT_TYPE_CHANGE_MODE);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "audience", void 0);
    this.callId = callId;
    this.audience = audience;
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    let obj = {
      a: this.audience
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    if (payload.binaryContent) {
      let json = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
      let obj = JSON.parse(json);
      this.audience = !!obj.a;
    }
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/conferenceCommandMessageContent.js":
/*!****************************************************************!*\
  !*** ./src/wfc/av/messages/conferenceCommandMessageContent.js ***!
  \****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ConferenceCommandMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");




class ConferenceCommandMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(conferenceId, commandType, targetUserId, boolValue) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].CONFERENCE_CONTENT_TYPE_COMMAND);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "conferenceId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "commandType", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "targetUserId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "boolValue", void 0);
    this.conferenceId = conferenceId;
    this.commandType = commandType;
    this.targetUserId = targetUserId;
    this.boolValue = boolValue;
  }
  encode() {
    let payload = super.encode();
    payload.content = this.conferenceId;
    let obj = {
      t: this.commandType,
      u: this.targetUserId
    };
    if (this.boolValue) {
      obj["b"] = this.boolValue;
    }
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    if (payload.binaryContent) {
      let json = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
      let obj = JSON.parse(json);
      this.commandType = obj.t;
      this.boolValue = !!obj.b;
      this.targetUserId = obj.u;
    }
    this.callId = payload.content;
  }
}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConferenceCommandMessageContent, "ConferenceCommandType", Object.freeze({
  //全体静音，只有主持人可以操作，结果写入conference profile中。带有参数是否允许成员自主解除静音。
  MUTE_ALL: 0,
  //取消全体静音，只有主持人可以操作，结果写入conference profile中。带有参数是否邀请成员解除静音。
  CANCEL_MUTE_ALL: 1,
  //要求某个用户更改静音状态，只有主持人可以操作。带有参数是否静音/解除静音。
  REQUEST_MUTE: 2,
  //拒绝UNMUTE要求。（如果同意不需要通知对方同意)
  REJECT_UNMUTE_REQUEST: 3,
  //普通用户申请解除静音，带有参数是请求，还是取消请求。
  APPLY_UNMUTE: 4,
  //管理员批准解除静音申请，带有参数是同意，还是拒绝申请。
  APPROVE_UNMUTE: 5,
  //管理员批准全部解除静音申请，带有参数是同意，还是拒绝申请。
  APPROVE_ALL_UNMUTE: 6,
  //举手，带有参数是举手还是放下举手
  HANDUP: 7,
  //主持人放下成员的举手
  PUT_HAND_DOWN: 8,
  //主持人放下全体成员的举手
  PUT_ALL_HAND_DOWN: 9,
  //录制，有参数是录制还是取消录制
  RECORDING: 10,
  // 设置焦点用户
  FOCUS: 11,
  // 取消设置焦点用户
  CANCEL_FOCUS: 12
}));

/***/ }),

/***/ "./src/wfc/av/messages/conferenceInviteMessageContent.js":
/*!***************************************************************!*\
  !*** ./src/wfc/av/messages/conferenceInviteMessageContent.js ***!
  \***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ConferenceInviteMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");




class ConferenceInviteMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(callId, host, title, desc, startTime, audioOnly, audience, advance, pin) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].CONFERENCE_CONTENT_TYPE_INVITE);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "host", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "title", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "desc", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "startTime", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "audioOnly", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "audience", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "pin", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "advanced", void 0);
    this.callId = callId;
    this.host = host;
    this.title = title;
    this.desc = desc;
    this.startTime = startTime;
    this.audioOnly = audioOnly;
    this.audience = audience;
    this.advanced = advance;
    this.pin = pin;
  }
  digest(message) {
    let str = "[会议邀请]";
    return str;
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    payload.pushContent = "会议邀请";
    let obj = {
      h: this.host,
      s: this.startTime,
      t: this.title,
      d: this.desc,
      audience: this.audience ? 1 : 0,
      advanced: this.advanced ? 1 : 0,
      a: this.audioOnly ? 1 : 0,
      p: this.pin
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    if (payload.binaryContent) {
      let json = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
      let obj = JSON.parse(json);
      this.host = obj.h;
      this.startTime = obj.s;
      this.title = obj.t;
      this.desc = obj.d;
      this.audience = obj.audience > 0;
      this.advanced = obj.advanced > 0;
      this.audioOnly = obj.a > 0;
      this.pin = obj.p;
    }
    this.callId = payload.content;
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/conferenceKickoffMemberMessageContent.js":
/*!**********************************************************************!*\
  !*** ./src/wfc/av/messages/conferenceKickoffMemberMessageContent.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ConferenceKickoffMemberMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");



class ConferenceKickoffMemberMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(callId) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].CONFERENCE_CONTENT_TYPE_KICKOFF_MEMBER);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    this.callId = callId;
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/joinCallRequestMessageContent.js":
/*!**************************************************************!*\
  !*** ./src/wfc/av/messages/joinCallRequestMessageContent.js ***!
  \**************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return JoinCallRequestMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class JoinCallRequestMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(callId, clientId) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].VOIP_Join_Call_Request);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "clientId", void 0);
    this.callId = callId;
    this.clientId = clientId;
  }
  digest() {
    return "";
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    let obj = {
      clientId: this.clientId
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.clientId = obj.clientId;
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/multiCallOngoingMessageContent.js":
/*!***************************************************************!*\
  !*** ./src/wfc/av/messages/multiCallOngoingMessageContent.js ***!
  \***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MultiCallOngoingMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class MultiCallOngoingMessageContent extends _messages_messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(callId, initiator, audioOnly, targets) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].VOIP_Multi_Call_Ongoing);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "initiator", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "audioOnly", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "targets", void 0);
    this.callId = callId;
    this.initiator = initiator;
    this.audioOnly = audioOnly;
    this.targets = targets;
  }
  digest(message) {
    let displayName = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getGroupMemberDisplayName(message.conversation.target, this.initiator);
    return displayName + " 发起的通话";
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    let obj = {
      initiator: this.initiator,
      audioOnly: this.audioOnly,
      targets: this.targets
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.initiator = obj.initiator;
    this.audioOnly = obj.audioOnly;
    this.targets = obj.targets;
  }
}

/***/ }),

/***/ "./src/wfc/av/messages/muteVideoMessageContent.js":
/*!********************************************************!*\
  !*** ./src/wfc/av/messages/muteVideoMessageContent.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MuteVideoMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messages_notification_notificationMessageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../messages/notification/notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class ParticipantStatus {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "userId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "acceptTime", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "joinTime", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "videoMuted", void 0);
  }
}
class MuteVideoMessageContent extends _messages_notification_notificationMessageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(mentionedType = 0, mentionedTargets = []) {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].VOIP_CONTENT_TYPE_MUTE_VIDEO, mentionedType, mentionedTargets);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "callId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "videoMuted", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "existParticipants", void 0);
  }
  formatNotification(message) {
    // TODO
    return "mute video";
  }
  encode() {
    let payload = super.encode();
    payload.content = this.callId;
    let obj = {
      existParticipants: this.existParticipants,
      videoMuted: this.videoMuted
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.callId = payload.content;
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.existParticipants = obj.existParticipants;
    this.videoMuted = obj.videoMuted;
  }
}

/***/ }),

/***/ "./src/wfc/client/connectionStatus.js":
/*!********************************************!*\
  !*** ./src/wfc/client/connectionStatus.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ConnectionStatus; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class ConnectionStatus {
  static desc(status) {
    const desc = {
      "-9": "客户端和IM 服务端时间不同步，请进行时钟同步",
      "-8": "IM 服务未授权或已过期，专业版IM-Server 是绑定域名或者 ip 的，只能通过所绑定的域名去连接",
      "-7": "被踢下线",
      "-6": "会话密钥错误，请参考 https://docs.wildfirechat.cn/faq/general.html 第12个问题排查",
      "-5": "token错误",
      "-4": "IM Server服务无法连通，请检查服务器是否宕机或者网络出现问题",
      "-3": "连接被服务器拒绝，一般是用户被封禁",
      "-2": "退出登录",
      "-1": "连接失败",
      0: "连接中",
      1: "连接成功，正常状态，所有业务可用",
      2: "正在同步信息，登录以后要先同步消息，可能同步数据量比较大，这时可以选择等待连接状态变为1时来统一更新UI"
    };
    return desc[status];
  }
}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusTimeInconsistent", -9);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusNotLicensed", -8);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusKickedOff", -7);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusSecretKeyMismatch", -6);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusTokenIncorrect", -5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusServerDown", -4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusRejected", -3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusLogout", -2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusUnconnected", -1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusConnecting", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusConnected", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectionStatus, "ConnectionStatusReceiveing", 2);

/***/ }),

/***/ "./src/wfc/client/errorCode.js":
/*!*************************************!*\
  !*** ./src/wfc/client/errorCode.js ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ErrorCode; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class ErrorCode {}
//server error code
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerSecrectKeyMismatch", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerInvalidData", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerServerError", 4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerNotModified", 5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerTokenIncorrect", 6);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kConnectionStatusKickedOff", 7);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerUserForbidden", 8);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerNotInGroup", 9);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerInvalidMessage", 10);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerGroupAlreadyExist", 11);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerPasswordIncorrect", 15);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerFriendAlreadyRequested", 16);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerFriendRequestOverFrequency", 17);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerFriendRquestBlocked", 18);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerFriendRequestOvertime", 19);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerNotInChatroom", 20);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerNotLicensed", 22);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerTimeInconsistent", 30);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerUserIsBlocked", 245);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerInBlacklist", 246);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerForbidden_send_msg", 247);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerNotRight", 248);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerTimeout", 249);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerOverFrequence", 250);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerInvalidParameter", 251);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerNotExist", 253);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ErrorCode, "kEcServerNotImplement", 254);

/***/ }),

/***/ "./src/wfc/client/messageConfig.js":
/*!*****************************************!*\
  !*** ./src/wfc/client/messageConfig.js ***!
  \*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MessageConfig; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _messages_textMessageContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messages/textMessageContent */ "./src/wfc/messages/textMessageContent.js");
/* harmony import */ var _messages_ptextMessageContent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../messages/ptextMessageContent */ "./src/wfc/messages/ptextMessageContent.js");
/* harmony import */ var _messages_imageMessageContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../messages/imageMessageContent */ "./src/wfc/messages/imageMessageContent.js");
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../messages/persistFlag */ "./src/wfc/messages/persistFlag.js");
/* harmony import */ var _messages_notification_tipNotification__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../messages/notification/tipNotification */ "./src/wfc/messages/notification/tipNotification.js");
/* harmony import */ var _messages_unknownMessageContent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../messages/unknownMessageContent */ "./src/wfc/messages/unknownMessageContent.js");
/* harmony import */ var _messages_unsupportMessageConten__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../messages/unsupportMessageConten */ "./src/wfc/messages/unsupportMessageConten.js");
/* harmony import */ var _messages_notification_changeGroupNameNotification__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../messages/notification/changeGroupNameNotification */ "./src/wfc/messages/notification/changeGroupNameNotification.js");
/* harmony import */ var _messages_notification_kickoffGroupMemberNotification__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../messages/notification/kickoffGroupMemberNotification */ "./src/wfc/messages/notification/kickoffGroupMemberNotification.js");
/* harmony import */ var _messages_notification_kickoffGroupMemberVisiableNotification__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../messages/notification/kickoffGroupMemberVisiableNotification */ "./src/wfc/messages/notification/kickoffGroupMemberVisiableNotification.js");
/* harmony import */ var _messages_notification_addGroupMemberNotification__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../messages/notification/addGroupMemberNotification */ "./src/wfc/messages/notification/addGroupMemberNotification.js");
/* harmony import */ var _messages_notification_changeGroupPortraitNotification__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../messages/notification/changeGroupPortraitNotification */ "./src/wfc/messages/notification/changeGroupPortraitNotification.js");
/* harmony import */ var _messages_notification_createGroupNotification__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../messages/notification/createGroupNotification */ "./src/wfc/messages/notification/createGroupNotification.js");
/* harmony import */ var _messages_notification_dismissGroupNotification__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../messages/notification/dismissGroupNotification */ "./src/wfc/messages/notification/dismissGroupNotification.js");
/* harmony import */ var _messages_notification_modifyGroupAliasNotification__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../messages/notification/modifyGroupAliasNotification */ "./src/wfc/messages/notification/modifyGroupAliasNotification.js");
/* harmony import */ var _messages_notification_modifyGroupExtraNotification__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../messages/notification/modifyGroupExtraNotification */ "./src/wfc/messages/notification/modifyGroupExtraNotification.js");
/* harmony import */ var _messages_notification_modifyGroupMemberExtraNotification__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../messages/notification/modifyGroupMemberExtraNotification */ "./src/wfc/messages/notification/modifyGroupMemberExtraNotification.js");
/* harmony import */ var _messages_notification_quitGroupNotification__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../messages/notification/quitGroupNotification */ "./src/wfc/messages/notification/quitGroupNotification.js");
/* harmony import */ var _messages_notification_quitGroupVisiableNotification__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../messages/notification/quitGroupVisiableNotification */ "./src/wfc/messages/notification/quitGroupVisiableNotification.js");
/* harmony import */ var _messages_notification_transferGroupOwnerNotification__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../messages/notification/transferGroupOwnerNotification */ "./src/wfc/messages/notification/transferGroupOwnerNotification.js");
/* harmony import */ var _messages_fileMessageContent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../messages/fileMessageContent */ "./src/wfc/messages/fileMessageContent.js");
/* harmony import */ var _messages_videoMessageContent__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../messages/videoMessageContent */ "./src/wfc/messages/videoMessageContent.js");
/* harmony import */ var _messages_stickerMessageContent__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../messages/stickerMessageContent */ "./src/wfc/messages/stickerMessageContent.js");
/* harmony import */ var _messages_soundMessageContent__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../messages/soundMessageContent */ "./src/wfc/messages/soundMessageContent.js");
/* harmony import */ var _messages_typingMessageContent__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../messages/typingMessageContent */ "./src/wfc/messages/typingMessageContent.js");
/* harmony import */ var _messages_notification_recallMessageNotification__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../messages/notification/recallMessageNotification */ "./src/wfc/messages/notification/recallMessageNotification.js");
/* harmony import */ var _messages_deleteMessageContent__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../messages/deleteMessageContent */ "./src/wfc/messages/deleteMessageContent.js");
/* harmony import */ var _av_messages_callStartMessageContent__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../av/messages/callStartMessageContent */ "./src/wfc/av/messages/callStartMessageContent.js");
/* harmony import */ var _av_messages_callAnswerMessageContent__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../av/messages/callAnswerMessageContent */ "./src/wfc/av/messages/callAnswerMessageContent.js");
/* harmony import */ var _av_messages_callAnswerTMessageContent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../av/messages/callAnswerTMessageContent */ "./src/wfc/av/messages/callAnswerTMessageContent.js");
/* harmony import */ var _av_messages_callByeMessageContent__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../av/messages/callByeMessageContent */ "./src/wfc/av/messages/callByeMessageContent.js");
/* harmony import */ var _av_messages_callSignalMessageContent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../av/messages/callSignalMessageContent */ "./src/wfc/av/messages/callSignalMessageContent.js");
/* harmony import */ var _av_messages_callModifyMessageContent__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../av/messages/callModifyMessageContent */ "./src/wfc/av/messages/callModifyMessageContent.js");
/* harmony import */ var _av_messages_addParticipantsMessageContent__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../av/messages/addParticipantsMessageContent */ "./src/wfc/av/messages/addParticipantsMessageContent.js");
/* harmony import */ var _av_messages_muteVideoMessageContent__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../av/messages/muteVideoMessageContent */ "./src/wfc/av/messages/muteVideoMessageContent.js");
/* harmony import */ var _messages_notification_groupJoinTypeNotificationContent__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../messages/notification/groupJoinTypeNotificationContent */ "./src/wfc/messages/notification/groupJoinTypeNotificationContent.js");
/* harmony import */ var _messages_notification_groupMuteNotificationContent__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../messages/notification/groupMuteNotificationContent */ "./src/wfc/messages/notification/groupMuteNotificationContent.js");
/* harmony import */ var _messages_notification_groupSetManagerNotificationContent__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../messages/notification/groupSetManagerNotificationContent */ "./src/wfc/messages/notification/groupSetManagerNotificationContent.js");
/* harmony import */ var _messages_notification_groupPrivateChatNotificationContent__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../messages/notification/groupPrivateChatNotificationContent */ "./src/wfc/messages/notification/groupPrivateChatNotificationContent.js");
/* harmony import */ var _messages_locationMessageContent__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../messages/locationMessageContent */ "./src/wfc/messages/locationMessageContent.js");
/* harmony import */ var _messages_notification_muteGroupMemberNotification__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../messages/notification/muteGroupMemberNotification */ "./src/wfc/messages/notification/muteGroupMemberNotification.js");
/* harmony import */ var _messages_notification_allowGroupMemberNotification__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../messages/notification/allowGroupMemberNotification */ "./src/wfc/messages/notification/allowGroupMemberNotification.js");
/* harmony import */ var _messages_cardMessageContent__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../messages/cardMessageContent */ "./src/wfc/messages/cardMessageContent.js");
/* harmony import */ var _messages_compositeMessageContent__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../messages/compositeMessageContent */ "./src/wfc/messages/compositeMessageContent.js");
/* harmony import */ var _av_messages_conferenceInviteMessageContent__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../av/messages/conferenceInviteMessageContent */ "./src/wfc/av/messages/conferenceInviteMessageContent.js");
/* harmony import */ var _av_messages_conferenceChangeModeContent__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../av/messages/conferenceChangeModeContent */ "./src/wfc/av/messages/conferenceChangeModeContent.js");
/* harmony import */ var _av_messages_conferenceKickoffMemberMessageContent__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../av/messages/conferenceKickoffMemberMessageContent */ "./src/wfc/av/messages/conferenceKickoffMemberMessageContent.js");
/* harmony import */ var _messages_markUnreadMessageContent__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../messages/markUnreadMessageContent */ "./src/wfc/messages/markUnreadMessageContent.js");
/* harmony import */ var _messages_linkMessageContent__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../messages/linkMessageContent */ "./src/wfc/messages/linkMessageContent.js");
/* harmony import */ var _messages_notification_friendAddedNotification__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../messages/notification/friendAddedNotification */ "./src/wfc/messages/notification/friendAddedNotification.js");
/* harmony import */ var _messages_notification_friendGreetingNotification__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../messages/notification/friendGreetingNotification */ "./src/wfc/messages/notification/friendGreetingNotification.js");
/* harmony import */ var _messages_notification_startSecretChatNotification__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../messages/notification/startSecretChatNotification */ "./src/wfc/messages/notification/startSecretChatNotification.js");
/* harmony import */ var _av_messages_multiCallOngoingMessageContent__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../av/messages/multiCallOngoingMessageContent */ "./src/wfc/av/messages/multiCallOngoingMessageContent.js");
/* harmony import */ var _av_messages_joinCallRequestMessageContent__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../av/messages/joinCallRequestMessageContent */ "./src/wfc/av/messages/joinCallRequestMessageContent.js");
/* harmony import */ var _messages_notification_richNotificationMessageContent__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../messages/notification/richNotificationMessageContent */ "./src/wfc/messages/notification/richNotificationMessageContent.js");
/* harmony import */ var _messages_articlesMessageContent__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../messages/articlesMessageContent */ "./src/wfc/messages/articlesMessageContent.js");
/* harmony import */ var _av_messages_conferenceCommandMessageContent__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../av/messages/conferenceCommandMessageContent */ "./src/wfc/av/messages/conferenceCommandMessageContent.js");
/* harmony import */ var _messages_channelMenuEventMessageContent__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../messages/channelMenuEventMessageContent */ "./src/wfc/messages/channelMenuEventMessageContent.js");
/* harmony import */ var _messages_enterChannelChatMessageContent__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../messages/enterChannelChatMessageContent */ "./src/wfc/messages/enterChannelChatMessageContent.js");
/* harmony import */ var _messages_leaveChannelChatMessageContent__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../messages/leaveChannelChatMessageContent */ "./src/wfc/messages/leaveChannelChatMessageContent.js");
/* harmony import */ var _messages_notification_modifyGroupSettingNotification__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../messages/notification/modifyGroupSettingNotification */ "./src/wfc/messages/notification/modifyGroupSettingNotification.js");


/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */































































class MessageConfig {
  static getMessageContentClazz(type) {
    for (const content of MessageConfig.MessageContents) {
      if (content.type === type) {
        if (content.contentClazz) {
          return content.contentClazz;
        } else {
          return _messages_unsupportMessageConten__WEBPACK_IMPORTED_MODULE_9__["default"];
        }
      }
    }
    console.error(`message type ${type} is unknown`);
    return _messages_unknownMessageContent__WEBPACK_IMPORTED_MODULE_8__["default"];
  }
  static getMessageContentFlag(type) {
    let flag = _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].No_Persist;
    for (const content of MessageConfig.MessageContents) {
      if (content.type === type) {
        flag = content.flag;
      }
    }
    return flag;
  }
  static getMessageContentPersitFlag(type) {
    for (const content of MessageConfig.MessageContents) {
      if (content.type === type) {
        return content.flag;
      }
    }
    return -1;
  }
  static getMessageContentType(messageContent) {
    for (const content of MessageConfig.MessageContents) {
      if (content.contentClazz && messageContent instanceof content.contentClazz) {
        return content.type;
      }
    }
    return _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Unknown;
  }
  static registerMessageContent(name, flag, type, clazz) {
    // TODO validate args

    MessageConfig.MessageContents.push({
      name: name,
      flag: flag,
      type: type,
      contentClazz: clazz
    });
  }
}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageConfig, "MessageContents", [{
  name: "unknown",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Unknown,
  contentClazz: _messages_unknownMessageContent__WEBPACK_IMPORTED_MODULE_8__["default"]
}, {
  name: "text",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Text,
  contentClazz: _messages_textMessageContent__WEBPACK_IMPORTED_MODULE_2__["default"]
}, {
  name: "ptext",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].P_Text,
  contentClazz: _messages_ptextMessageContent__WEBPACK_IMPORTED_MODULE_3__["default"]
}, {
  name: "voice",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Voice,
  contentClazz: _messages_soundMessageContent__WEBPACK_IMPORTED_MODULE_26__["default"]
}, {
  name: "image",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Image,
  contentClazz: _messages_imageMessageContent__WEBPACK_IMPORTED_MODULE_4__["default"]
}, {
  name: "location",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Location,
  contentClazz: _messages_locationMessageContent__WEBPACK_IMPORTED_MODULE_42__["default"]
}, {
  name: "file",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].File,
  contentClazz: _messages_fileMessageContent__WEBPACK_IMPORTED_MODULE_23__["default"]
}, {
  name: "video",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Video,
  contentClazz: _messages_videoMessageContent__WEBPACK_IMPORTED_MODULE_24__["default"]
}, {
  name: "sticker",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Sticker,
  contentClazz: _messages_stickerMessageContent__WEBPACK_IMPORTED_MODULE_25__["default"]
}, {
  name: "link",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Link,
  contentClazz: _messages_linkMessageContent__WEBPACK_IMPORTED_MODULE_51__["default"]
}, {
  name: "userCard",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].UserCard,
  contentClazz: _messages_cardMessageContent__WEBPACK_IMPORTED_MODULE_45__["default"]
}, {
  name: "compositeMessage",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Composite_Message,
  contentClazz: _messages_compositeMessageContent__WEBPACK_IMPORTED_MODULE_46__["default"]
}, {
  name: "tip",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Tip_Notification,
  contentClazz: _messages_notification_tipNotification__WEBPACK_IMPORTED_MODULE_7__["default"]
}, {
  name: "typing",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Typing,
  contentClazz: _messages_typingMessageContent__WEBPACK_IMPORTED_MODULE_27__["default"]
}, {
  name: "friendGreeting",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Friend_Added,
  contentClazz: _messages_notification_friendGreetingNotification__WEBPACK_IMPORTED_MODULE_53__["default"]
}, {
  name: "friendAdded",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Friend_Greeting,
  contentClazz: _messages_notification_friendAddedNotification__WEBPACK_IMPORTED_MODULE_52__["default"]
}, {
  name: "addGroupMemberNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].AddGroupMember_Notification,
  contentClazz: _messages_notification_addGroupMemberNotification__WEBPACK_IMPORTED_MODULE_13__["default"]
}, {
  name: "changeGroupNameNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].ChangeGroupName_Notification,
  contentClazz: _messages_notification_changeGroupNameNotification__WEBPACK_IMPORTED_MODULE_10__["default"]
}, {
  name: "changeGroupPortraitNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].ChangeGroupPortrait_Notification,
  contentClazz: _messages_notification_changeGroupPortraitNotification__WEBPACK_IMPORTED_MODULE_14__["default"]
}, {
  name: "createGroupNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].CreateGroup_Notification,
  contentClazz: _messages_notification_createGroupNotification__WEBPACK_IMPORTED_MODULE_15__["default"]
}, {
  name: "dismissGroupNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].DismissGroup_Notification,
  contentClazz: _messages_notification_dismissGroupNotification__WEBPACK_IMPORTED_MODULE_16__["default"]
}, {
  name: "kickoffGroupMemberNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].KickOffGroupMember_Notification,
  contentClazz: _messages_notification_kickoffGroupMemberNotification__WEBPACK_IMPORTED_MODULE_11__["default"]
}, {
  name: "kickoffGroupMemberVisiableNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].KickOffGroupMember_Visible_Notification,
  contentClazz: _messages_notification_kickoffGroupMemberVisiableNotification__WEBPACK_IMPORTED_MODULE_12__["default"]
}, {
  name: "modifyGroupAliasNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].ModifyGroupAlias_Notification,
  contentClazz: _messages_notification_modifyGroupAliasNotification__WEBPACK_IMPORTED_MODULE_17__["default"]
}, {
  name: "modifyGroupExtraNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].ModifyGroupExtra_Notification,
  contentClazz: _messages_notification_modifyGroupExtraNotification__WEBPACK_IMPORTED_MODULE_18__["default"]
}, {
  name: "modifyGroupMemberExtraNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].ModifyGroupMemberExtra_Notification,
  contentClazz: _messages_notification_modifyGroupMemberExtraNotification__WEBPACK_IMPORTED_MODULE_19__["default"]
}, {
  name: "quitGroupNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].QuitGroup_Notification,
  contentClazz: _messages_notification_quitGroupNotification__WEBPACK_IMPORTED_MODULE_20__["default"]
}, {
  name: "quitGroupVisiableNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].QuitGroup_Visible_Notification,
  contentClazz: _messages_notification_quitGroupVisiableNotification__WEBPACK_IMPORTED_MODULE_21__["default"]
}, {
  name: "transferGroupOwnerNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].TransferGroupOwner_Notification,
  contentClazz: _messages_notification_transferGroupOwnerNotification__WEBPACK_IMPORTED_MODULE_22__["default"]
}, {
  name: "groupJoinTypeNotificationContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].ChangeJoinType_Notification,
  contentClazz: _messages_notification_groupJoinTypeNotificationContent__WEBPACK_IMPORTED_MODULE_38__["default"]
}, {
  name: "groupMuteNotificationContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].MuteGroup_Notification,
  contentClazz: _messages_notification_groupMuteNotificationContent__WEBPACK_IMPORTED_MODULE_39__["default"]
}, {
  name: "groupPrivateChatNotificationContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].ChangePrivateChat_Notification,
  contentClazz: _messages_notification_groupPrivateChatNotificationContent__WEBPACK_IMPORTED_MODULE_41__["default"]
}, {
  name: "groupSetManagerNotificationContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].SetGroupManager_Notification,
  contentClazz: _messages_notification_groupSetManagerNotificationContent__WEBPACK_IMPORTED_MODULE_40__["default"]
}, {
  name: "muteGroupMemberNotificationContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].MuteGroupMember_Notification,
  contentClazz: _messages_notification_muteGroupMemberNotification__WEBPACK_IMPORTED_MODULE_43__["default"]
}, {
  name: "allowGroupMemberNotificationContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].AllowGroupMember_Notification,
  contentClazz: _messages_notification_allowGroupMemberNotification__WEBPACK_IMPORTED_MODULE_44__["default"]
}, {
  name: "modifyGroupSettingNotificationContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].No_Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].ModifyGroupSetting_Notification,
  contentClazz: _messages_notification_modifyGroupSettingNotification__WEBPACK_IMPORTED_MODULE_63__["default"]
}, {
  name: "recall",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].RecallMessage_Notification,
  contentClazz: _messages_notification_recallMessageNotification__WEBPACK_IMPORTED_MODULE_28__["default"]
}, {
  name: "delete",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].No_Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].DeleteMessage_Notification,
  contentClazz: _messages_deleteMessageContent__WEBPACK_IMPORTED_MODULE_29__["default"]
}, {
  name: "callStartMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_CONTENT_TYPE_START,
  contentClazz: _av_messages_callStartMessageContent__WEBPACK_IMPORTED_MODULE_30__["default"]
}, {
  name: "callAnswerMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].No_Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_CONTENT_TYPE_ACCEPT,
  contentClazz: _av_messages_callAnswerMessageContent__WEBPACK_IMPORTED_MODULE_31__["default"]
}, {
  name: "callAnswerTMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_CONTENT_TYPE_ACCEPT_T,
  contentClazz: _av_messages_callAnswerTMessageContent__WEBPACK_IMPORTED_MODULE_32__["default"]
}, {
  name: "callByeMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].No_Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_CONTENT_TYPE_END,
  contentClazz: _av_messages_callByeMessageContent__WEBPACK_IMPORTED_MODULE_33__["default"]
}, {
  name: "callSignalMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_CONTENT_TYPE_SIGNAL,
  contentClazz: _av_messages_callSignalMessageContent__WEBPACK_IMPORTED_MODULE_34__["default"]
}, {
  name: "callModifyMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].No_Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_CONTENT_TYPE_MODIFY,
  contentClazz: _av_messages_callModifyMessageContent__WEBPACK_IMPORTED_MODULE_35__["default"]
}, {
  name: "callAddParticipant",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_CONTENT_TYPE_ADD_PARTICIPANT,
  contentClazz: _av_messages_addParticipantsMessageContent__WEBPACK_IMPORTED_MODULE_36__["default"]
}, {
  name: "callMuteVideo",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].No_Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_CONTENT_TYPE_MUTE_VIDEO,
  contentClazz: _av_messages_muteVideoMessageContent__WEBPACK_IMPORTED_MODULE_37__["default"]
}, {
  name: "conferenceInvite",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].CONFERENCE_CONTENT_TYPE_INVITE,
  contentClazz: _av_messages_conferenceInviteMessageContent__WEBPACK_IMPORTED_MODULE_47__["default"]
}, {
  name: "conferenceChangeMode",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].CONFERENCE_CONTENT_TYPE_CHANGE_MODE,
  contentClazz: _av_messages_conferenceChangeModeContent__WEBPACK_IMPORTED_MODULE_48__["default"]
}, {
  name: "conferenceKickoffMember",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].CONFERENCE_CONTENT_TYPE_KICKOFF_MEMBER,
  contentClazz: _av_messages_conferenceKickoffMemberMessageContent__WEBPACK_IMPORTED_MODULE_49__["default"]
}, {
  name: "multiCallOngoing",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_Multi_Call_Ongoing,
  contentClazz: _av_messages_multiCallOngoingMessageContent__WEBPACK_IMPORTED_MODULE_55__["default"]
}, {
  name: "joinCallRequest",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].VOIP_Join_Call_Request,
  contentClazz: _av_messages_joinCallRequestMessageContent__WEBPACK_IMPORTED_MODULE_56__["default"]
}, {
  name: "markUnreadMessage",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].No_Persist,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Mark_Unread_Sync,
  contentClazz: _messages_markUnreadMessageContent__WEBPACK_IMPORTED_MODULE_50__["default"]
}, {
  name: "startSecretChat",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].StartSecretChat_Notification,
  contentClazz: _messages_notification_startSecretChatNotification__WEBPACK_IMPORTED_MODULE_54__["default"]
}, {
  name: "richNotification",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Rich_Notification,
  contentClazz: _messages_notification_richNotificationMessageContent__WEBPACK_IMPORTED_MODULE_57__["default"]
}, {
  name: "articlesMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Articles,
  contentClazz: _messages_articlesMessageContent__WEBPACK_IMPORTED_MODULE_58__["default"]
}, {
  name: "channelMenuEventMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Channel_Menu_Event,
  contentClazz: _messages_channelMenuEventMessageContent__WEBPACK_IMPORTED_MODULE_60__["default"]
}, {
  name: "enterChannelChatMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Enter_Channel_Chat,
  contentClazz: _messages_enterChannelChatMessageContent__WEBPACK_IMPORTED_MODULE_61__["default"]
}, {
  name: "leaveChannelChatMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].Leave_Channel_Chat,
  contentClazz: _messages_leaveChannelChatMessageContent__WEBPACK_IMPORTED_MODULE_62__["default"]
}, {
  name: "conferenceCommandMessageContent",
  flag: _messages_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Transparent,
  type: _messages_messageContentType__WEBPACK_IMPORTED_MODULE_5__["default"].CONFERENCE_CONTENT_TYPE_COMMAND,
  contentClazz: _av_messages_conferenceCommandMessageContent__WEBPACK_IMPORTED_MODULE_59__["default"]
}]);

/***/ }),

/***/ "./src/wfc/client/userSettingScope.js":
/*!********************************************!*\
  !*** ./src/wfc/client/userSettingScope.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return UserSettingScope; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class UserSettingScope {}
//不能直接使用，调用setConversation:silent:方法会使用到此值。
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "ConversationSilent", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "GlobalSilent", 2);
//不能直接使用，调用setConversation:top:方法会使用到此值。
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "ConversationTop", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "HiddenNotificationDetail", 4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "GroupHideNickname", 5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "FavoriteGroup", 6);
//不能直接使用，协议栈内会使用此值
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "Conversation_Sync", 7);
//不能直接使用，协议栈内会使用此值
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "My_Channel", 8);
//不能直接使用，协议栈内会使用此值
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "Listened_Channel", 9);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "UserSettingPCOnline", 10);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "UserSettingConversationReaded", 11);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "WebOnline", 12);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "DisableReceipt", 13);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "FavoriteUser", 14);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "MuteWhenPCOnline", 15);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "LinesReaded", 16);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "NoDisturbing", 17);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "ConversationClearMessage", 18);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "ConversationDraft", 19);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "DisableSyncDraft", 20);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "VoipSilent", 21);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "PttReserved", 22);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "CustomState", 23);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "DisableSecretChat", 24);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "PttSilent", 25);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "GroupRemark", 26);
// 用户自定义的scope需从1000开始，以防冲突
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(UserSettingScope, "kUserSettingCustomBegin", 1000);

/***/ }),

/***/ "./src/wfc/client/wfc.js":
/*!*******************************!*\
  !*** ./src/wfc/client/wfc.js ***!
  \*******************************/
/*! exports provided: WfcManager, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WfcManager", function() { return WfcManager; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_buffer_detached_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array-buffer.detached.js */ "./node_modules/core-js/modules/es.array-buffer.detached.js");
/* harmony import */ var core_js_modules_es_array_buffer_detached_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_detached_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_buffer_transfer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array-buffer.transfer.js */ "./node_modules/core-js/modules/es.array-buffer.transfer.js");
/* harmony import */ var core_js_modules_es_array_buffer_transfer_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_transfer_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_array_buffer_transfer_to_fixed_length_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array-buffer.transfer-to-fixed-length.js */ "./node_modules/core-js/modules/es.array-buffer.transfer-to-fixed-length.js");
/* harmony import */ var core_js_modules_es_array_buffer_transfer_to_fixed_length_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_transfer_to_fixed_length_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.typed-array.at.js */ "./node_modules/core-js/modules/es.typed-array.at.js");
/* harmony import */ var core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.typed-array.find-last.js */ "./node_modules/core-js/modules/es.typed-array.find-last.js");
/* harmony import */ var core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.typed-array.find-last-index.js */ "./node_modules/core-js/modules/es.typed-array.find-last-index.js");
/* harmony import */ var core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.typed-array.set.js */ "./node_modules/core-js/modules/es.typed-array.set.js");
/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var core_js_modules_es_typed_array_to_reversed_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.typed-array.to-reversed.js */ "./node_modules/core-js/modules/es.typed-array.to-reversed.js");
/* harmony import */ var core_js_modules_es_typed_array_to_reversed_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_reversed_js__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var core_js_modules_es_typed_array_to_sorted_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.typed-array.to-sorted.js */ "./node_modules/core-js/modules/es.typed-array.to-sorted.js");
/* harmony import */ var core_js_modules_es_typed_array_to_sorted_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_sorted_js__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var core_js_modules_es_typed_array_with_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.typed-array.with.js */ "./node_modules/core-js/modules/es.typed-array.with.js");
/* harmony import */ var core_js_modules_es_typed_array_with_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_with_js__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! events */ "./node_modules/events/events.js");
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _util_base64_min_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../util/base64.min.js */ "./src/wfc/util/base64.min.js");
/* harmony import */ var _util_base64_min_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_util_base64_min_js__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! long */ "./node_modules/long/src/long.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(long__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _proto_proto_min__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../proto/proto.min */ "./src/wfc/proto/proto.min.js");
/* harmony import */ var _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_proto_proto_min__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../config */ "./src/config.js");
/* harmony import */ var _av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../av/engine/avenginekitproxy */ "./src/wfc/av/engine/avenginekitproxy.js");
/* harmony import */ var _ptt_client_pttClient__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../ptt/client/pttClient */ "./src/wfc/ptt/client/pttClient.js");
/* harmony import */ var _wfcEvent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./wfcEvent */ "./src/wfc/client/wfcEvent.js");
/* harmony import */ var _connectionStatus__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./connectionStatus */ "./src/wfc/client/connectionStatus.js");
/* harmony import */ var _model_nullUserInfo__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../model/nullUserInfo */ "./src/wfc/model/nullUserInfo.js");














/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */











class WfcManager {
  constructor() {
    /**
     * 事件通知，{@link EventType}中定义的事件，都会采用本{@link eventEmitter} 通知
     * @type {module:events.internal.EventEmitter}
     */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "eventEmitter", new events__WEBPACK_IMPORTED_MODULE_14__["EventEmitter"]());
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.eventEmitter = {
      emit: (ev, ...args) => {
        if (ev === _wfcEvent__WEBPACK_IMPORTED_MODULE_21__["default"].ConnectionStatusChanged || ev === _wfcEvent__WEBPACK_IMPORTED_MODULE_21__["default"].UserOnlineEvent || ev === _wfcEvent__WEBPACK_IMPORTED_MODULE_21__["default"].SendMessage || ev === _wfcEvent__WEBPACK_IMPORTED_MODULE_21__["default"].ConnectToServer || ev === _wfcEvent__WEBPACK_IMPORTED_MODULE_21__["default"].MessageStatusUpdate) {
          self.eventEmitter.emit(ev, ...args);
        } else {
          if (_proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.connectionStatus === _connectionStatus__WEBPACK_IMPORTED_MODULE_22__["default"].ConnectionStatusConnected) {
            self.eventEmitter.emit(ev, ...args);
          } else {
            // ignore
          }
        }
      }
    };
  }

  /**
   * 初始化，请参考本demo的用法
   * 只可以在主窗口调用，其他窗口调用应当调用{@link attach}
   * @param {[]} args，pc 时，传入[node实例]; web 时，可以传入Config配置对象，配置项，请参考{@link Config}
   */
  init(args = []) {
    console.log("wfc init");
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.init(args);
    _av_engine_avenginekitproxy__WEBPACK_IMPORTED_MODULE_19__["default"].setup(self);
    if (_config__WEBPACK_IMPORTED_MODULE_18__["default"].ENABLE_PTT) {
      _ptt_client_pttClient__WEBPACK_IMPORTED_MODULE_20__["default"].init();
    }
  }

  /**
   * 注册新的自定义消息
   *
   * @param {string} name
   * @param {number} flag 用来标识本消息是否需要存储、计数等，{@link PersistFlag}
   * @param {number} type 消息类型，{@link MessageContentType}
   * @param {class} clazz 消息对应的class
   */
  registerMessageContent(name, flag, type, clazz) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.registerMessageContent(name, flag, type, clazz);
  }

  /**
   * 获取clientId，获取用户token时，一定要通过调用此方法获取clientId，否则会连接失败。
   * @returns {string} clientId
   */
  getClientId() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getClientId();
  }

  /**
   * 获取协议栈版本号
   */
  getProtoRevision() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getProtoRevision();
  }

  /*
   * 启用国密加密。注意需要服务器端同步开启国密配置
   */
  useSM4() {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.useSM4();
  }

  /**
   * 连接服务器
   * @param {string} userId 用户id
   * @param {string} token 用户token，生成token时，所使用的clientId，一定要通过{@link getClientId}获取
   */
  connect(userId, token) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.connect(userId, token);
  }

  /**
   * 设置第三方推送设备token
   * @param {number} pushType 推送类型，0-5 移动端已经使用了。
   * @param {String} token 设备token
   */
  setDeviceToken(pushType, token) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setDeviceToken(pushType, token);
  }
  disconnect() {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.disconnect();
  }
  setPackageName(packageName) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setPackageName(packageName);
  }

  /**
   * 获取当前用户的id
   * @returns {string} 当前用户的id
   */
  getUserId() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserId();
  }

  /**
   * 服务器时间和本地时间的差值
   * @returns {number} 服务器时间和本地时间的差值
   */
  getServerDeltaTime() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getServerDeltaTime();
  }

  /**
   * 截图，
   * @returns {string} 成功返回'done'，同时，图片保存到了系统剪贴板
   */
  screenShot() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.screenShot();
  }

  /**
   * 是否成功登录
   * @returns {boolean}
   */
  isLogin() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isLogin();
  }

  /**
   * 获取连接状态
   * @returns {number} 连接状态，参考{@link ConnectionStatus}
   */
  getConnectionStatus() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getConnectionStatus();
  }

  /**
   * 设置网络策略，仅专业版支持
   * @param {int} strategy 网络策略。0 是自动选择；1 选择主网络；2选择备用网络
   *
   */
  setBackupAddressStrategy(strategy) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setBackupAddressStrategy(strategy);
  }

  /**
   * 设置备选网络信息，仅专业版支持
   * @param {String} backupHost 备选网络主机地址
   * @param {int} backupPort 备选网络主机端口
   */
  setBackupAddress(backupHost, backupPort) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setBackupAddress(backupHost, backupPort);
  }

  /**
   * 已废弃，请使用{@link getFavGroupList}
   * 获取我保存到通讯录的群组信息列表
   * @returns {[GroupInfo]} 参考{@link GroupInfo}
   */
  getMyGroupList() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMyGroupList();
  }

  /**
   * 获取我保存到通讯录的群组信息列表
   * @returns {[GroupInfo]} 参考{@link GroupInfo}
   */
  getFavGroupList() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMyGroupList();
  }

  /**
   * 获取用户的displayName
   * @param {string} userId 用户id
   * @returns {string} 用户displayName
   */
  getUserDisplayName(userId) {
    let userInfo = this.getUserInfo(userId, false);
    if (!userInfo) {
      return "<" + userId + ">";
    }
    return userInfo.friendAlias ? userInfo.friendAlias : userInfo.displayName ? userInfo.displayName : "<" + userId + ">";
  }

  /**
   * 获取用户在群里面的displayName
   * @param {string} groupId 群id
   * @param {string} userId 用户id
   * @returns {string} 用户在群里面的displayName
   */
  getGroupMemberDisplayName(groupId, userId) {
    let userInfo = this.getUserInfo(userId, false, groupId);
    if (!userInfo) {
      return "<" + userId + ">";
    }
    return userInfo.groupAlias ? userInfo.groupAlias : userInfo.friendAlias ? userInfo.friendAlias : userInfo.displayName ? userInfo.displayName : "<" + userId + ">";
  }
  getUserDisplayNameEx(userInfo) {
    return userInfo.friendAlias ? userInfo.friendAlias : userInfo.displayName ? userInfo.displayName : "<" + userInfo.uid + ">";
  }
  getGroupMemberDisplayNameEx(userInfo) {
    return userInfo.groupAlias ? userInfo.groupAlias : userInfo.friendAlias ? userInfo.friendAlias : userInfo.displayName ? userInfo.displayName : "<" + userInfo.uid + ">";
  }

  /**
   * 获取用户信息
   * @param {string} userId 用户id
   * @param {boolean} refresh 是否刷新用户信息，如果刷新的话，且用户信息有更新，会通过{@link eventEmitter}进行通知，事件的名字是{@link EventType.UserInfosUpdate }
   * @param {string} groupId
   * @returns {UserInfo}
   */
  getUserInfo(userId, refresh = false, groupId = "") {
    let userInfo = _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserInfo(userId, refresh, groupId);
    if (!userInfo.portrait || userInfo.portrait.startsWith(_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER)) {
      userInfo.portrait = this.defaultUserPortrait(userInfo);
    }
    return userInfo;
  }

  /**
   * 获取用户信息
   * @param {string} userId 用户ID
   * @param {boolean} refresh 是否强制从服务器更新，如果本地没有或者强制，会从服务器刷新
   * @param {function (UserInfo)} success 成功回调，如果本地有该用户信息，则通过回调返回本地的用户信息；如果本地没有，则从服务端拉取该用户信息，并通过回调返回
   * @param {function (number)} fail 失败回调
   */
  getUserInfoEx(userId, refresh, success, fail) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserInfoEx(userId, refresh, success, fail);
  }

  /**
   * 批量从服务端拉取用户信息
   * @param {[string]} userIds 用户ids
   * @param {function ([UserInfo])} successCB 成功回调
   * @param {function (Number)} failCB 失败回调
   */
  getUserInfosEx(userIds, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserInfosEx(userIds, userInfos => {
      userInfos.forEach(u => {
        if (!u.portrait || u.portrait.startsWith(_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER)) {
          u.portrait = this.defaultUserPortrait(u);
        }
      });
      successCB && successCB(userInfos);
    }, err => {
      failCB && failCB(err);
    });
  }

  /**
   * 批量获取用户信息
   * @param {[string]} userIds 用户ids
   * @param {string} groupId 群组id
   * @returns {[UserInfo]}
   */
  getUserInfos(userIds, groupId) {
    let userInfos = _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserInfos(userIds, groupId);
    userInfos.forEach(u => {
      if (!u.portrait || u.portrait.startsWith(_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER)) {
        u.portrait = this.defaultUserPortrait(u);
      }
    });
    return userInfos;
  }

  /**
   * 服务端搜索用户
   * @param {string} keyword 搜索关键字
   * @param {number} searchType 搜索类型，可选值参考{@link SearchType}
   * @param {number} page 页数，如果searchType是0，每次搜索20个，可以指定page。如果searchType非0，只能搜索一个，page无意义
   * @param {function (keyword, [UserInfo])} successCB
   * @param {function (number)}failCB
   * @returns {Promise<void>}
   */
  async searchUser(keyword, searchType, page, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchUser(keyword, searchType, page, (keyword, userInfos) => {
      userInfos.forEach(u => {
        if (!u.portrait || u.portrait.startsWith(_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER)) {
          u.portrait = this.defaultUserPortrait(u);
        }
      });
      successCB && successCB(keyword, userInfos);
    }, failCB);
  }

  /**
   * 本地搜索好友
   * @param keyword 搜索关键字
   * @returns {[UserInfo]}
   */
  searchFriends(keyword) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchFriends(keyword);
  }

  /**
   * web 端，只匹配群名称和群备注名
   * 本地搜索群组
   * @param keyword 搜索关键字
   * @returns {[GroupSearchResult]}
   */
  searchGroups(keyword) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchGroups(keyword);
  }

  /**
   * 获取收到的好友请求
   * @returns {[FriendRequest]}
   */
  getIncommingFriendRequest() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getIncommingFriendRequest();
  }

  /**
   * 获取发送出去的好友请求
   * @returns {[FriendRequest]}
   */
  getOutgoingFriendRequest() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getOutgoingFriendRequest();
  }

  /**
   * 获取单条好友请求
   * @param {string} userId 对方的用户id
   * @param {boolean} incoming 是否是收到的好友请求
   * @return {FriendRequest|null}
   */
  getOneFriendRequest(userId, incoming = true) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getOneFriendRequest(userId, incoming);
  }

  /**
   * 从服务端加载好友请求，如果有更新，会通过{@link eventEmitter}通知
   */
  loadFriendRequestFromRemote() {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.loadFriendRequestFromRemote(long__WEBPACK_IMPORTED_MODULE_16___default.a.ZERO);
  }

  /**
   * 获取未读的好友请求数
   * @returns {number}
   */
  getUnreadFriendRequestCount() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUnreadFriendRequestCount();
  }

  /**
   * 清除好友请求未读状态
   */
  clearUnreadFriendRequestStatus() {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.clearUnreadFriendRequestStatus();
  }

  /**
   * 删除好友
   * @param {string} userId 好友id
   * @param {function ()} successCB
   * @param {function (number) }failCB
   * @returns {Promise<void>}
   */
  async deleteFriend(userId, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.deleteFriend(userId, successCB, failCB);
  }

  /**
   * 处理好友请求
   * @param {string} userId 发送好友请求的用户的id
   * @param {boolean} accept true，接受好友请求；false，拒绝好友请求
   * @param {string} extra 一些额外信息，可用来实现好友来源等，推荐使用json格式
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async handleFriendRequest(userId, accept, extra, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.handleFriendRequest(userId, accept, extra, successCB, failCB);
  }

  /**
   * 判断用户是否被加入了黑名单
   * @param userId
   * @returns {boolean}
   */
  isBlackListed(userId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isBlackListed(userId);
  }

  /**
   * 获取黑名单
   * @returns {[string]}
   */
  getBlackList() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getBlackList();
  }

  /**
   * 设置黑名单
   * @param {string} userId 用户id
   * @param {boolean} block true，加入黑名单；false，移除黑名单
   * @param {function ()} successCB
   * @param {function (number)} failCB
   */
  setBlackList(userId, block, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setBlackList(userId, block, successCB, failCB);
  }

  /**
   * 获取好友列表，返回的时好友id数组
   * @param {boolean} fresh 是否刷新好友信息，如果刷新，且有更新的话，会通过{@link eventEmitter}通知
   * @returns {[string]}
   */
  getMyFriendList(fresh = false) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMyFriendList(fresh);
  }

  /**
   * 好友列表
   * @returns {[Friend]}
   */
  getFriendList(fresh = false) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getFriendList(fresh);
  }

  /**
   * 获取好友别名
   * @param {string} userId
   * @returns {string}
   */
  getFriendAlias(userId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getFriendAlias(userId);
  }
  getFriendExtra(userId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getFriendExtra(userId);
  }

  /**
   * 设置好友别名
   * @param {string} userId 用户id
   * @param {string} alias 别名
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */

  async setFriendAlias(userId, alias, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setFriendAlias(userId, alias, successCB, failCB);
  }

  /**
   * 创建群组
   * @param {string | null} groupId 群组id，一般情况下，传null；如果有自己的用户系统，自己维护群信息，那么可以传群id
   * @param {number} groupType 群类型，可参考 {@link GroupType }
   * @param {string} name 群名称
   * @param {string} portrait 群头像的链接
   * @param {string} groupExtra 群组扩展信息
   * @param {[string]} memberIds 群成员id列表
   * @param {string} memberExtra 群组成员扩展信息
   * @param {[number]} lines 会话线路，默认传[0]即可
   * @param {CreateGroupNotification} notifyContent 通知信息，默认传null，服务端会生成默认通知
   * @param {function (string)} successCB 回调通知群id
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async createGroup(groupId, groupType, name, portrait, groupExtra, memberIds = [], memberExtra = "", lines = [0], notifyContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.createGroup(groupId, groupType, name, portrait == null ? "" : portrait, groupExtra, memberIds, memberExtra, lines, notifyContent, successCB, failCB);
  }

  /**
   * 设置群管理员
   * @param {string} groupId 群id
   * @param {boolean} isSet true，设置；false，取消设置
   * @param {[string]} memberIds 将被设置为管理或取消管理远的群成员的用户id
   * @param {[number]} lines 默认传[0]即可
   * @param {Object} notifyContent 默认传null即可
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async setGroupManager(groupId, isSet, memberIds, lines, notifyContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setGroupManager(groupId, isSet, memberIds, lines, notifyContent, successCB, failCB);
  }

  /**
   * 获取群信息
   * @param {string} groupId 群id
   * @param {boolean} refresh 是否刷新，如果刷新，且有更新的话，会通过{@link eventEmitter}通知
   * @returns {GroupInfo}
   */
  getGroupInfo(groupId, refresh = false) {
    let info = _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getGroupInfo(groupId, refresh);
    console.log(info);
    if (!info.portrait || info.portrait.startsWith(_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER)) {
      info.portrait = this.defaultGroupPortrait(info);
    }
    return info;
  }

  /**
   * 批量获取群信息
   * @param {[string]} groupIds 群id
   * @param {boolean} refresh 是否刷新，如果刷新，且有更新的话，会通过{@link eventEmitter}通知
   * @returns {[GroupInfo]}
   */
  getGroupInfos(groupIds, refresh = false) {
    let infos = _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getGroupInfos(groupIds, refresh);
    infos.forEach(info => {
      if (!info.portrait || info.portrait.startsWith(_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER)) {
        info.portrait = this.defaultGroupPortrait(info);
      }
    });
    return infos;
  }

  /**
   * 获取群信息
   * @param {string} groupId 群id
   * @param {boolean} refresh 是否刷新，如果刷新，且有更新的话，会通过{@link eventEmitter}通知
   * @param {function (GroupInfo)} successCB 成功回调
   * @param {function (number)} failCB 失败回调
   */
  getGroupInfoEx(groupId, refresh = false, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getGroupInfoEx(groupId, refresh, info => {
      if (!info.portrait || info.portrait.startsWith(_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER)) {
        info.portrait = this.defaultGroupPortrait(info);
      }
      successCB && successCB(info);
    }, failCB);
  }

  /**
   * 添加群成员
   * @param  {string} groupId 群组id
   * @param {[string]} memberIds 新添加的群成员id
   * @param  {string} extra 群成员扩展信息
   * @param {[number]} notifyLines
   * @param {AddGroupMemberNotification} notifyMessageContent
   * @param successCB
   * @param failCB
   */
  addGroupMembers(groupId, memberIds, extra, notifyLines, notifyMessageContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.addGroupMembers(groupId, memberIds, extra, notifyLines, notifyMessageContent, successCB, failCB);
  }

  /**
   * 获取群成员id列表
   * @param {string} groupId 群id
   * @param {boolean} fresh 是否刷新，刷新时，如果有更新，会通过{@link eventEmitter}通知
   * @returns {[string]} 群成员用户id列表
   */
  getGroupMemberIds(groupId, fresh = false) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getGroupMemberIds(groupId, fresh);
  }

  /**
   * 获取群成员信息
   * @param {string} groupId 群id
   * @param {boolean} fresh 是否刷新
   * @returns {[GroupMember]} 群成员信息
   */
  getGroupMembers(groupId, fresh = false) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getGroupMembers(groupId, fresh);
  }

  /**
   * 根据群成员类型获取群成员列表
   * @param {string} groupId
   * @param {number} memberType，可选值参考{@link GroupMemberType}
   * @return {[GroupMember]} 群成员列表
   */
  getGroupMembersByType(groupId, memberType) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getGroupMembersByType(groupId, memberType);
  }

  /**
   * 获取群成员信息
   * @param {string} groupId 群id
   * @param {boolean} fresh 是否强制从服务器更新，如果不刷新则从本地缓存中读取
   * @param {function ([GroupMember])} successCB
   * @param {function (number)} failCB
   */
  getGroupMembersEx(groupId, fresh = false, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getGroupMembersEx(groupId, fresh, successCB, failCB);
  }

  /**
   * 获取单个群成员信息
   * @param {string} groupId 群id
   * @param {string} memberId 群成员id
   * @returns {GroupMember} 群成员信息
   */
  getGroupMember(groupId, memberId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getGroupMember(groupId, memberId);
  }

  /**
   * 将用户从群里移除
   * @param {string} groupId 群id
   * @param {[string]} memberIds 将要被移除的群成员id列表
   * @param {[]} notifyLines 默认传[0]即可
   * @param {KickoffGroupMemberNotification} notifyMsg 默认传null即可
   * @param {function ()} successCB
   * @param {function (number)} failCB
   */
  kickoffGroupMembers(groupId, memberIds, notifyLines, notifyMsg, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.kickoffGroupMembers(groupId, memberIds, notifyLines, notifyMsg, successCB, failCB);
  }

  /**
   * 对群成员禁言
   * @param {string} groupId 群id
   * @param {boolean} isSet true，禁言；false，取消禁言
   * @param {[string]} memberIds 群成员id列表
   * @param {[number]} notifyLines 默认传[0]即可
   * @param {MessageContent} notifyMsg 默认传null即可
   * @param {function ()} successCB 成功回调
   * @param {function (number)} failCB 失败回调
   */
  muteGroupMembers(groupId, isSet, memberIds = [], notifyLines = [], notifyMsg, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.muteOrAllowGroupMembers(groupId, isSet, false, memberIds, notifyLines, notifyMsg, successCB, failCB);
  }

  /**
   * 群全局禁言之后，允许白名单成员发言
   * @param {string} groupId 群id
   * @param {boolean} isSet true，加入白名单，允许发言；false，移除白名单，禁止发言
   * @param {[string]} memberIds 群成员id列表
   * @param {[number]} notifyLines 默认传[0]即可
   * @param {MessageContent} notifyMsg 默认传null即可
   * @param {function ()} successCB 成功回调
   * @param {function (number)} failCB 失败回调
   */
  allowGroupMembers(groupId, isSet, memberIds = [], notifyLines = [], notifyMsg, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.muteOrAllowGroupMembers(groupId, isSet, true, memberIds, notifyLines, notifyMsg, successCB, failCB);
  }

  /**
   * 退出群组
   * @param groupId 群id
   * @param {[]} lines 默认传[0]即可
   * @param {KickoffGroupMemberNotification} notifyMessageContent 默认传null即可
   * @param successCB
   * @param failCB
   * @returns {Promise<void>}
   */
  async quitGroup(groupId, lines, notifyMessageContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.quitGroup(groupId, lines, notifyMessageContent, successCB, failCB);
  }

  /**
   * 解散群组
   * @param {string} groupId 群组id
   * @param {[]} lines 默认传[0]即可
   * @param {KickoffGroupMemberNotification} notifyMessageContent 默认传null即可
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async dismissGroup(groupId, lines, notifyMessageContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.dismissGroup(groupId, lines, notifyMessageContent, successCB, failCB);
  }

  /**
   * 修改群信息
   * @param {string} groupId 群id
   * @param {number} type 修改信息所属类型，可选值参考{@link ModifyGroupInfoType}
   * @param {string} newValue 准备修改成什么
   * @param {[number]} lines
   * @param {GroupNotificationContent} notifyMessageContent
   * @param successCB
   * @param failCB
   * @returns {Promise<void>}
   */
  async modifyGroupInfo(groupId, type, newValue, lines, notifyMessageContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.modifyGroupInfo(groupId, type, newValue, lines, notifyMessageContent, successCB, failCB);
  }

  /**
   * 修改我在群组的别名
   * @param {string} groupId 群id
   * @param {string} alias 别名
   * @param lines
   * @param notifyMessageContent
   * @param successCB
   * @param failCB
   * @returns {Promise<void>}
   */
  async modifyGroupAlias(groupId, alias, lines, notifyMessageContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.modifyGroupAlias(groupId, alias, lines, notifyMessageContent, successCB, failCB);
  }

  /**
   * 修改群成员在群组的别名
   * @param {string} groupId 群id
   * @param {string} memberId 群成员id
   * @param {string} alias 别名
   * @param lines
   * @param notifyMessageContent
   * @param successCB
   * @param failCB
   * @returns {Promise<void>}
   */
  async modifyGroupMemberAlias(groupId, memberId, alias, lines, notifyMessageContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.modifyGroupMemberAlias(groupId, memberId, alias, lines, notifyMessageContent, successCB, failCB);
  }

  /**
   * 修改群成员在群组的附加信息
   * @param {string} groupId 群id
   * @param {string} memberId 群成员id
   * @param {string} extra 群成员附加信息
   * @param lines
   * @param notifyMessageContent
   * @param successCB
   * @param failCB
   * @returns {Promise<void>}
   */
  async modifyGroupMemberExtra(groupId, memberId, extra, lines, notifyMessageContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.modifyGroupMemberExtra(groupId, memberId, extra, lines, notifyMessageContent, successCB, failCB);
  }

  /**
   * 转移群主
   * @param {string} groupId 群id
   * @param {string} newOwner 新群主的id
   * @param lines
   * @param notifyMessageContent
   * @param successCB
   * @param failCB
   */
  transferGroup(groupId, newOwner, lines, notifyMessageContent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.transferGroup(groupId, newOwner, lines, notifyMessageContent, successCB, failCB);
  }

  /**
   * 设置群备注
   * @param {string} groupId 群id
   * @param {string} remark 群备注
   * @param successCB
   * @param failCB
   */
  async setGroupRemark(groupId, remark, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setGroupRemark(groupId, remark, successCB, failCB);
  }

  /**
   *  获取群备注
   * @param {string} groupId 群id
   * @return 群备注
   */
  getGroupRemark(groupId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setGroupRemark(groupId);
  }

  /**
   * 获取保存到通讯录的群id列表
   * @returns {[string]}
   */
  getFavGroups() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getFavGroups();
  }

  /**
   *  判断群是否保存到了通讯录
   * @param {string} groupId
   * @returns {boolean}
   */
  isFavGroup(groupId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isFavGroup(groupId);
  }

  /**
   * 将群保存到通讯录或移除通讯录
   * @param {string} groupId 群id
   * @param {boolean} fav true，保存到通讯录；false，从通讯录移除
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async setFavGroup(groupId, fav, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setFavGroup(groupId, fav, successCB, failCB);
  }

  /**
   * 获取当前用户所有群组ID，此方法消耗资源较大，不建议高频使用。
   *
   * @param {function ([string])} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async getMyGroups(successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMyGroups(successCB, failCB);
  }

  /**
   * 获取用户共同群组ID
   *
   * @param {string} userId
   * @param {function ([string])} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async getCommonGroups(userId, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getCommonGroups(userId, successCB, failCB);
  }

  /**
   * 获取用户设置，保存格式可以理解为：scope + key => value
   * @param {number} scope 命名空间，可选值参考{@link UserSettingScope}
   * @param {string} key key
   * @returns {string} 设置的key对应的value
   */
  getUserSetting(scope, key) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserSetting(scope, key);
  }

  /**
   * 获取某个命名空间下的所有设置
   * @param scope 命名空间，可选值参考{@link UserSettingScope}
   * @returns {Map} key-value
   */
  getUserSettings(scope) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserSettings(scope);
  }

  /**
   * 设置或更新用户设置
   * @param {number} scope 命名空间
   * @param {string} key 设置的key
   * @param {string} value 设置的value
   * @param {function ()} successCB 成功回调
   * @param {function (number)} failCB 失败回调
   * @returns {Promise<void>}
   */
  async setUserSetting(scope, key, value, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setUserSetting(scope, key, value, successCB, failCB);
  }

  /**
   * 修改个人信息
   * @param {[ModifyMyInfoEntry]} modifyMyInfoEntries 需要修改的信息列表，pc端，一次只允许修改一个项。
   * @param successCB
   * @param failCB
   */
  modifyMyInfo(modifyMyInfoEntries, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.modifyMyInfo(modifyMyInfoEntries, successCB, failCB);
  }

  /**
   * 是否全局免打扰
   * @returns {boolean}
   */
  isGlobalSlient() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isGlobalSlient();
  }

  /**
   * 设置全局免打扰
   * @param {boolean} silent
   * @param {function ()} successCB
   * @param failCB
   */
  setGlobalSlient(silent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setGlobalSlient(silent, successCB, failCB);
  }

  /**
   * 是否隐藏通知详情
   * @returns {boolean}
   */
  isHiddenNotificationDetail() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isHiddenNotificationDetail();
  }

  /**
   * 设置或取消设置隐藏通知详情
   * @param {boolean} hide 是否隐藏通知详情
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async setHiddenNotificationDetail(hide, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setHiddenNotificationDetail(hide, successCB, failCB);
  }

  /**
   * 是否隐藏群成员昵称
   * @param {string} groupId 群id
   * @returns {boolean}
   */
  isHiddenGroupMemberName(groupId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isHiddenGroupMemberName(groupId);
  }

  /**
   * 设置或取消设置隐藏群成员昵称
   * @param {string} groupId 群id
   * @param {boolean} hide 是否隐藏
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async setHiddenGroupMemberName(groupId, hide, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setHiddenGroupMemberName(groupId, hide, successCB, failCB);
  }

  /**
   * 加入聊天室
   * @param {string} chatroomId 聊天室id
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async joinChatroom(chatroomId, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.joinChatroom(chatroomId, successCB, failCB);
  }

  /**
   * 退出聊天室
   * @param {string} chatroomId 聊天室id
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async quitChatroom(chatroomId, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.quitChatroom(chatroomId, successCB, failCB);
  }

  /**
   * 获取聊天室信息
   * @param {string} chatroomId 聊天是id
   * @param {number} updateDt 传当前时间对应的毫秒数
   * @param {function (ChatRoomInfo)} successCB
   * @param failCB
   * @returns {Promise<void>}
   */
  async getChatroomInfo(chatroomId, updateDt, successCB, failCB) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getChatroomInfo(chatroomId, updateDt, successCB, failCB);
  }

  /**
   * 获取聊天室成员信息
   * @param {string} chatroomId 聊天室id
   * @param {number} maxCount 最多获取多少个聊天室成员信息
   * @param {function (ChatRoomMemberInfo)} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async getChatroomMemberInfo(chatroomId, maxCount, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getChatroomMemberInfo(chatroomId, maxCount, successCB, failCB);
  }

  /**
   * 创建频道
   * @param {string} name 频道名称
   * @param {string} portrait 频道头像的链接地址
   * @param {string} desc 描述
   * @param {string} extra 额外信息
   * @param {function (string)} successCB 创建成功，会回调通知channelId
   * @param {function (number)} failCB
   */
  createChannel(name, portrait, desc, extra, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.createChannel(name, portrait, desc, extra, successCB, failCB);
  }

  /**
   * 获取频道信息
   * @param {string} channelId 频道id
   * @param {boolean} refresh 是否强制刷新
   * @returns {ChannelInfo|NullChannelInfo}
   */
  getChannelInfo(channelId, refresh) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getChannelInfo(channelId, refresh);
  }
  isEnableSecretChat() {
    return false;
  }
  isUserEnableSecretChat() {
    return false;
  }
  setUserEnableSecretChat(enable, successCB, failCB) {
    // do nothing
  }

  /**
   * 修改频道信息
   * @param {string} channelId 频道id
   * @param {number} type 修改什么，可选值参考{@link ModifyChannelInfoType}
   * @param {string} newValue 修改后的值
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async modifyChannelInfo(channelId, type, newValue, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.modifyChannelInfo(channelId, type, newValue, successCB, failCB);
  }

  /**
   * 搜索频道
   * @param {string} keyword 关键字
   * @param {boolean} fuzzy 是否模糊搜索
   * @param {function (keyword, [ChannelInfo])} successCB
   * @param {function (number)} failCB
   */
  searchChannel(keyword, fuzzy, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchChannel(keyword, successCB, failCB);
  }

  /**
   * 是否已收听/关注某个频道
   * @param {string} channelId 频道id
   * @returns {boolean}
   */
  isListenedChannel(channelId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isListenedChannel(channelId);
  }

  /**
   * 收听或取消收听频道
   * @param {string} channelId 频道id
   * @param {boolean} listen true，收听；false，取消收听
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async listenChannel(channelId, listen, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.listenChannel(channelId, listen, successCB, failCB);
  }

  /**
   * 获取自己创建的频道id列表
   * @returns {[string]}
   */
  getMyChannels() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMyChannels();
  }

  /**
   * @deprecated 已废弃，请使用{@link getRemoteListenedChannels}
   * 获取所收听的频道id列表
   * @returns {[string]}
   */
  getListenedChannels() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getListenedChannels();
  }

  /**
   * 从服务端获取所收听的频道id列表
   * @param {function([String])} successCB
   * @param {function(number)} failCB
   *
   */
  getRemoteListenedChannels(successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getRemoteListenedChannels(successCB, failCB);
  }

  /**
   * 销毁频道
   * @param {string} channelId 频道id
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async destoryChannel(channelId, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.destoryChannel(channelId, successCB, failCB);
  }

  /**
   * 获取会话列表
   * @param {[number]} types 想获取的会话类型，可选值参考{@link ConversationType}
   * @param {[0]} lines 想获取哪些会话线路的会话，默认传[0]即可
   * @returns {[ConversationInfo]}
   */
  getConversationList(types, lines) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getConversationList(types, lines);
  }

  /**
   * 获取会话详情
   * @param {Conversation} conversation
   * @returns {ConversationInfo}
   */
  getConversationInfo(conversation) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getConversationInfo(conversation);
  }

  /**
   * 搜索会话
   * @param {string} keyword 关键字
   * @param {[number]} types 从哪些类型的会话中进行搜索，可选值可参考{@link ConversationType}
   * @param {[number]} lines 从哪些会话线路进行搜索，默认传[0]即可
   * @returns {[ConversationSearchResult]}
   */
  searchConversation(keyword, types = [0, 1, 2], lines = [0, 1, 2]) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchConversation(keyword, types, lines);
  }

  /**
   * 删除会话
   * @param {Conversation} conversation 想删除的目标会话
   * @param {boolean} clearMsg 是否已删除的会话的消息
   * @returns {Promise<void>}
   */
  async removeConversation(conversation, clearMsg) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.removeConversation(conversation, clearMsg);
  }

  /**
   * 会话置顶或取消置顶
   * @param {Conversation} conversation 需要置顶或取消置顶的会话
   * @param {number} top > 0, 置顶，可以根据这个值进行置顶排序；0，取消置顶
   * @param {function ()} successCB
   * @param {function (number)} failCB
   */
  setConversationTop(conversation, top, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setConversationTop(conversation, top, successCB, failCB);
  }

  /**
   * 会话免打扰或取消免打扰
   * @param {Conversation} conversation 目标会话
   * @param {boolean} silent true，设置为免打扰；false，取消免打扰
   * @param {function ()} successCB
   * @param {function (number)} failCB
   */
  setConversationSlient(conversation, silent, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setConversationSlient(conversation, silent, successCB, failCB);
  }

  /**
   * 保存会话草稿
   * @param {Conversation} conversation 目标会话
   * @param {string} draft 草稿，传''时，相当于清楚会话草稿
   */
  setConversationDraft(conversation, draft = "") {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setConversationDraft(conversation, draft);
  }

  /**
   * 设置会话时间错，当会话不存在时，会创建一个新的会话。
   * @param {Conversation} conversation
   * @param {number} timestamp
   */
  setConversationTimestamp(conversation, timestamp) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setConversationTimestamp(conversation, timestamp);
  }

  /**
   * 获取未读消息数
   * @param {[number]} types 获取未读数时，包含哪些类型的会话，可选值参考{@link ConversationType}
   * @param {[number]} lines 获取未读数时，包含哪些会话线路，默认传[0]即可
   * @returns {UnreadCount}
   */
  getUnreadCount(types = [0, 1, 2], lines = [0]) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUnreadCount(types, lines);
  }

  /**
   * 获取某个会话的未读消息数
   * @param {Conversation} conversation 目标会话
   * @returns {UnreadCount}
   */
  getConversationUnreadCount(conversation) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getConversationUnreadCount(conversation);
  }

  /**
   * 清楚会话消息未读状态
   * @param {Conversation} conversation 目标会话
   */
  clearConversationUnreadStatus(conversation) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.clearConversationUnreadStatus(conversation);
  }

  /**
   * 清楚会话消息中指定消息id之前的消息（包含）未读状态
   * @param {Conversation} conversation 目标会话
   * @param {int} messageId 消息id
   */
  clearUnreadStatusBeforeMessage(conversation, messageId) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.clearUnreadStatusBeforeMessage(conversation, messageId);
  }

  /**
   * 将会话最后一条消息置为未读
   * @param {Conversation} conversation 会话
   * @param {boolean} syncToOtherClient 是否同步给其他端
   * @return {boolean} 是否操作成功
   */
  markConversationAsUnread(conversation, syncToOtherClient) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.markConversationAsUnread(conversation, syncToOtherClient);
  }

  /**
   * 清除单条消息的未读状态
   * @param messageId
   */
  clearMessageUnreadStatus(messageId) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.clearMessageUnreadStatus(messageId);
  }

  /**
   * 清除所有消息的未读状态
   *
   * 特别注意1：本方法只清除了底层数据库中的未读状态，并未清理 UI 层会话列表中的未读状态，UI 层会话列表中的未读状态，需要手动重置。
   * 特别注意2：本方法不会触发{@link ConversationInfoUpdate} 事件
   */
  clearAllUnreadStatus() {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.clearAllUnreadStatus();
  }

  /**
   * 设置媒体消息的状态为已播放
   * @param {number} messageId 消息id，不是消息uid!
   */
  setMediaMessagePlayed(messageId) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setMediaMessagePlayed(messageId);
  }

  /**
   * 设置消息本地扩展信息
   * @param {number} messageId 消息id，不是消息uid!
   * @param {string} extra 扩展信息
   */
  setMessageLocalExtra(messageId, extra) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setMessageLocalExtra(messageId, extra);
  }

  /**
   * 判断是否是好友
   * @param {string} userId 用户id
   * @returns {boolean}
   */
  isMyFriend(userId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isMyFriend(userId);
  }

  /**
   * 获取星标用户id列表
   * @returns {[string]}
   */
  getFavUsers() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getFavUsers();
  }

  /**
   *  判断用户是否是星标用户
   * @param {string} userId
   * @returns {boolean}
   */
  isFavUser(userId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isFavUser(userId);
  }

  /**
   * 设置或取消星标用户
   * @param {string} userId 用户id
   * @param {boolean} fav true，保存到通讯录；false，从通讯录移除
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async setFavUser(userId, fav, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setFavUser(userId, fav, successCB, failCB);
  }

  /**
   * 发送好友请求
   * @param {string} userId 目标用户id
   * @param {string} reason 发送好友请求的原因
   * @param {string} extra 请求的扩展信息
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async sendFriendRequest(userId, reason, extra, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.sendFriendRequest(userId, reason, extra, successCB, failCB);
  }

  /**
   * 获取会话消息
   * @deprecated 请使用{@link getMessagesV2}
   * @param {Conversation} conversation 目标会话
   * @param {number} fromIndex messageId，表示从那一条消息开始获取
   * @param {boolean} before true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 获取多少条消息
   * @param {string} withUser 只有会话类型为{@link ConversationType#Channel}时生效, channel主用来查询和某个用户的所有消息
   * @return {[Message]} 会话消息列表，参考{@link Message}
   */
  getMessages(conversation, fromIndex = 0, before = true, count = 20, withUser = "") {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessages(conversation, fromIndex, before, count, withUser);
  }

  /**
   * 获取消息
   * @deprecated 请使用{@link getMessagesExV2}
   * @param {[number]} conversationTypes 会话类型列表，可选值参考{@link  ConversationType}
   * @param {[number]} lines 会话线路列表
   * @param {number} fromIndex 本参数暂时无效! messageId，表示从那一条消息开始获取
   * @param {boolean} before 本参数暂时无效! true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 本参数暂时无效! 获取多少条消息
   * @param {string} withUser 只有会话类型为{@link ConversationType#Channel}时生效, channel主用来查询和某个用户的所有消息
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @return {[Message]} 会话消息列表，参考{@link Message}
   */
  getMessagesEx(conversationTypes, lines, fromIndex = 0, before = true, count = 20, withUser = "", contentTypes = []) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessagesEx(conversationTypes, lines, contentTypes, fromIndex, before, count, withUser);
  }

  /**
   * 获取消息
   * @deprecated 请使用{@link getMessagesEx2V2}
   * @param {[number]} conversationTypes 会话类型列表，可选值参考{@link  ConversationType}
   * @param {[number]} lines 会话线路列表
   * @param {[number]} messageStatus 消息状态，可选值参考{@link MessageStatus}
   * @param {number} fromIndex 本参数暂时无效! messageId，表示从那一条消息开始获取
   * @param {boolean} before 本参数暂时无效! true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 本参数暂时无效! 获取多少条消息
   * @param {string} withUser 只有会话类型为{@link ConversationType#Channel}时生效, channel主用来查询和某个用户的所有消息
   * @return {[Message]} 会话消息列表，参考{@link Message}
   */
  getMessagesEx2(conversationTypes, lines, messageStatus, fromIndex = 0, before = true, count = 20, withUser = "") {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessagesEx2(conversationTypes, lines, messageStatus, fromIndex, before, count, withUser);
  }

  /**
   * 获取会话消息
   * @deprecated 请使用{@link getMessagesByTimestampV2}
   * @param {Conversation} conversation 目标会话
   * @param {[number]} contentTypes 消息类型，可选值参考{@link MessageContentType}
   * @param {number} timestamp 时间戳
   * @param {boolean} before true, 获取timestamp之前的消息，即更旧的消息；false，获取timestamp之后的消息，即更新的消息。都不包含timestamp对应的消息
   * @param {number} count 获取多少条消息
   * @param {string} withUser 只有会话类型为{@link ConversationType#Channel}时生效, channel主用来查询和某个用户的所有消息
   * @return {[Message]} 会话消息列表，参考{@link Message}
   */
  getMessagesByTimestamp(conversation, contentTypes, timestamp, before = true, count = 20, withUser = "") {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessagesByTimestamp(conversation, contentTypes, timestamp, before, count, withUser);
  }

  /**
   * 获取用户会话消息
   * @deprecated 请使用{@link getUserMessagesV2}
   * @param {string} userId 用户id
   * @param {Conversation} conversation 目标会话
   * @param {number} fromIndex 本参数暂时无效！ messageId，表示从那一条消息开始获取
   * @param {boolean} before 本参数暂时无效！ true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 本参数暂时无效! 获取多少条消息
   * @return
   */
  getUserMessages(userId, conversation, fromIndex, before = true, count = 20) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserMessages(userId, conversation, fromIndex, before, count);
  }

  /**
   * 获取用户消息
   * @deprecated 请使用{@link getUserMessagesExV2}
   * @param {string} userId 用户id
   * @param {[number]} conversationTypes 想获取的会话类型，可选值参考{@link ConversationType}
   * @param {[0]} lines 想获取哪些会话线路的会话，默认传[0]即可
   * @param {number} fromIndex 本参数暂时无效！ messageId，表示从那一条消息开始获取
   * @param {boolean} before 本参数暂时无效！ true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 本参数暂时无效！ 获取多少条消息
   * @param {[number]} contentTypes 消息类型，可选值参考{@link MessageContentType}
   * @return
   */
  getUserMessagesEx(userId, conversationTypes, lines, fromIndex, before = true, count = 20, contentTypes = []) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserMessagesEx(userId, conversationTypes, lines, fromIndex, before, count, contentTypes);
  }

  /**
   * 获取会话消息
   * @param {Conversation} conversation 目标会话
   * @param {number} fromIndex messageId，表示从那一条消息开始获取
   * @param {boolean} before true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 获取多少条消息
   * @param {string} withUser 只有会话类型为{@link ConversationType#Channel}时生效, channel主用来查询和某个用户的所有消息
   * @param {function (Message)} successCB
   * @param failCB
   */
  getMessagesV2(conversation, fromIndex, before, count, withUser, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessagesV2(conversation, fromIndex, before, count, withUser, successCB, failCB);
  }

  /**
   * 获取消息
   * @param {[number]} conversationTypes 会话类型列表，可选值参考{@link  ConversationType}
   * @param {[number]} lines 会话线路列表
   * @param {number} fromIndex 本参数暂时无效! messageId，表示从那一条消息开始获取
   * @param {boolean} before 本参数暂时无效! true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 本参数暂时无效! 获取多少条消息
   * @param {string} withUser 只有会话类型为{@link ConversationType#Channel}时生效, channel主用来查询和某个用户的所有消息
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @param {function (Message)} successCB
   * @param failCB
   */
  getMessagesExV2(conversationTypes, lines, fromIndex, before, count, withUser, contentTypes, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessagesExV2(conversationTypes, lines, contentTypes, fromIndex, before, count, withUser, successCB, failCB);
  }

  /**
   *
   * @param {[number]} conversationTypes 会话类型列表，可选值参考{@link  ConversationType}
   * @param {[number]} lines 会话线路列表
   * @param {[number]} messageStatus 消息状态，可选值参考{@link MessageStatus}
   * @param {number} fromIndex 本参数暂时无效! messageId，表示从那一条消息开始获取
   * @param {boolean} before 本参数暂时无效! true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 本参数暂时无效! 获取多少条消息
   * @param {string} withUser 只有会话类型为{@link ConversationType#Channel}时生效, channel主用来查询和某个用户的所有消息
   * @param {function (Message)} successCB
   * @param failCB
   */
  getMessagesEx2V2(conversationTypes, lines, messageStatus, fromIndex, before, count, withUser, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessagesEx2V2(conversationTypes, lines, messageStatus, fromIndex, before, count, withUser, successCB, failCB);
  }

  /**
   * 获取会话消息
   * @param {Conversation} conversation 目标会话
   * @param {[number]} contentTypes 消息类型，可选值参考{@link MessageContentType}
   * @param {number} timestamp 时间戳
   * @param {boolean} before true, 获取timestamp之前的消息，即更旧的消息；false，获取timestamp之后的消息，即更新的消息。都不包含timestamp对应的消息
   * @param {number} count 获取多少条消息
   * @param {string} withUser 只有会话类型为{@link ConversationType#Channel}时生效, channel主用来查询和某个用户的所有消息
   * @param {function (Message)} successCB
   * @param failCB
   */
  getMessagesByTimestampV2(conversation, contentTypes, timestamp, before, count, withUser, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessagesByTimestampV2(conversation, contentTypes, timestamp, before, count, withUser, successCB, failCB);
  }

  /**
   * 获取用户会话消息
   * @param {string} userId 用户id
   * @param {Conversation} conversation 目标会话
   * @param {number} fromIndex 本参数暂时无效！ messageId，表示从那一条消息开始获取
   * @param {boolean} before 本参数暂时无效！ true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 本参数暂时无效! 获取多少条消息
   * @param {function (Message)} successCB
   * @param failCB
   */
  getUserMessagesV2(userId, conversation, fromIndex, before, count, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserMessagesV2(userId, conversation, fromIndex, before, count, successCB, failCB);
  }

  /**
   * 获取用户消息
   * @param {string} userId 用户id
   * @param {[number]} conversationTypes 想获取的会话类型，可选值参考{@link ConversationType}
   * @param {[0]} lines 想获取哪些会话线路的会话，默认传[0]即可
   * @param {number} fromIndex 本参数暂时无效！ messageId，表示从那一条消息开始获取
   * @param {boolean} before 本参数暂时无效！ true, 获取fromIndex之前的消息，即更旧的消息；false，获取fromIndex之后的消息，即更新的消息。都不包含fromIndex对应的消息
   * @param {number} count 本参数暂时无效！ 获取多少条消息
   * @param {[number]} contentTypes 消息类型，可选值参考{@link MessageContentType}
   * @param {function (Message)} successCB
   * @param failCB
   */
  getUserMessagesExV2(userId, conversationTypes, lines, fromIndex, before, count, contentTypes, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserMessagesExV2(userId, conversationTypes, lines, fromIndex, before, count, contentTypes, successCB, failCB);
  }

  /**
   * 获取会话第一条未读消息的消息id
   * @param {Conversation} conversation
   * @return {number}
   */
  getFirstUnreadMessageId(conversation) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getFirstUnreadMessageId(conversation);
  }

  /**
   * 已废弃，请使用{@link loadRemoteConversationMessages}
   * 获取会还的远程历史消息
   * @param {Conversation} conversation 目标会话
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @param {number | Long} beforeUid 消息uid，表示拉取本条消息之前的消息
   * @param {number} count
   * @param {function (Message)} successCB
   * @param failCB
   */
  loadRemoteMessages(conversation, contentTypes, beforeUid, count, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.loadRemoteMessages(conversation, contentTypes, beforeUid, count, successCB, failCB);
  }

  /**
   * 获取会话的远程历史消息
   * @param {Conversation} conversation 目标会话
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @param {number | Long} beforeUid 消息uid，表示拉取本条消息之前的消息
   * @param {number} count
   * @param {function ([Message], boolean)} successCB
   * @param failCB
   */
  loadRemoteConversationMessages(conversation, contentTypes, beforeUid, count, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.loadRemoteMessages(conversation, contentTypes, beforeUid, count, successCB, failCB);
  }

  /**
   * 获取会话的远程历史消息，仅 web 有效
   * @param {Conversation} conversation 目标会话
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @param {number | Long} beforeUid 消息uid，表示拉取本条消息之前的消息
   * @param {number} count
   * @param {boolean} filterLocalMessage 是否过滤本地已经存在的消息
   * @param {function ([Message])} successCB
   * @param failCB
   */
  loadRemoteConversationMessagesEx(conversation, contentTypes, beforeUid, count, filterLocalMessage, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.loadRemoteMessages(conversation, contentTypes, beforeUid, count, successCB, failCB, filterLocalMessage);
  }

  /**
   * 根据会话线路，获取远程历史消息
   * @param {number} line 会话线路
   * @param {number | Long} beforeUid 消息uid，表示拉取本条消息之前的消息
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @param {number} count
   * @param {function ([Message])} successCB
   * @param failCB
   */
  loadRemoteLineMessages(line, contentTypes, beforeUid, count, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.loadRemoteLineMessages(line, contentTypes, beforeUid, count, successCB, failCB);
  }

  /**
   * 根据会话线路，获取远程历史消息，仅 web 端有效
   * @param {number} line 会话线路
   * @param {number | Long} beforeUid 消息uid，表示拉取本条消息之前的消息
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @param {number} count
   * @param {boolean} filterLocalMessage 是否过滤本地已经存在的消息
   * @param {function ([Message])} successCB
   * @param failCB
   */
  loadRemoteLineMessages(line, contentTypes, beforeUid, count, filterLocalMessage, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.loadRemoteLineMessages(line, contentTypes, beforeUid, count, successCB, failCB, filterLocalMessage);
  }

  /**
   * 根据消息 uid，获取远程消息
   * @param {Long} messageUid 消息uid
   * @param {function ([Message])} successCB
   * @param failCB
   */
  loadRemoteMessage(messageUid, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.loadRemoteMessage(messageUid, successCB, failCB);
  }

  /**
   * 获取消息
   * @param {number} messageId 消息id
   * @returns {null|Message}
   */
  getMessageById(messageId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessageById(messageId);
  }

  /**
   * 获取消息
   * @param {Long|string|number} messageUid
   * @returns {null|Message}
   */
  getMessageByUid(messageUid) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMessageByUid(messageUid);
  }

  /**
   * 搜索消息
   * @param {Conversation} conversation 目标会话
   * @param {string} keyword 关键字
   * @param {string} withUser 目标用户
   * @returns {[Message]}
   */
  searchMessage(conversation, keyword, withUser = "") {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchMessage(conversation, keyword, withUser);
  }

  /**
   * 搜索消息
   * @param {Conversation} conversation 目标会话，如果为空搜索所有会话
   * @param {string} keyword 关键字
   * @param {boolean} desc 逆序排列
   * @param {int} limit 返回数量
   * @param {int} offset 偏移
   * @param {string} withUser 目标用户
   * @returns {Message[]}
   */
  searchMessageEx(conversation, keyword, desc, limit, offset, withUser = "") {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchMessageEx(conversation, keyword, desc, limit, offset, withUser);
  }

  /**
   * 搜索消息
   * @param {Conversation} conversation 目标会话，如果为空搜索所有会话
   * @param {string} keyword 关键字
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @param {boolean} desc 逆序排列
   * @param {int} limit 返回数量
   * @param {int} offset 偏移
   * @param {string} withUser 目标用户
   * @returns {Message[]}
   */
  searchMessageByTypes(conversation, keyword, contentTypes, desc, limit, offset, withUser = "") {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchMessageByTypes(conversation, keyword, contentTypes, desc, limit, offset, withUser);
  }

  /**
   * 搜索消息
   * @param {Conversation} conversation 目标会话，如果为空搜索所有会话
   * @param {string} keyword 关键字
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @param {Long} 消息起始时间，如果为0，则忽略起始时间。
   * @param {Long} 消息结束时间，如果为0，测忽略结束时间。
   * @param {boolean} desc 逆序排列
   * @param {int} limit 返回数量
   * @param {int} offset 偏移
   * @param {string} withUser 目标用户
   * @returns {Message[]}
   */
  searchMessageByTypesAndTimes(conversation, keyword, contentTypes, startTime, endTime, desc, limit, offset, withUser = "") {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchMessageByTypesAndTimes(conversation, keyword, contentTypes, startTime, endTime, desc, limit, offset, withUser);
  }

  /**
   * 搜索消息
   * @param {[number]} conversationTypes 会话类型列表，可选值参考{@link  ConversationType}
   * @param {[number]} lines 会话线路列表
   * @param {[number]} contentTypes 消息类型列表，可选值参考{@link MessageContentType}
   * @param {string} keyword 关键字
   * @param {number} fromIndex messageId，表示从那一条消息开始获取
   * @param {boolean} desc 逆序排列
   * @param {number} count 最大数量
   * @param {string} withUser 目标用户
   * @returns {[Message]}
   */
  searchMessageEx2(conversationTypes, lines, contentTypes, keyword, fromIndex, desc, count, withUser = "") {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchMessageEx2(conversationTypes, lines, contentTypes, keyword, fromIndex, desc, count, withUser);
  }

  /**
   * 发送消息
   * @param {Conversation} conversation 目标会话
   * @param {MessageContent} messageContent 具体的消息内容，一定要求是{@link MessageContent} 的子类，不能是普通的object
   * @param {[string]} toUsers 定向发送给会话中的某些用户；为空，则发给所有人；另外对单聊会话，本参数无效
   * @param {function (number, number)} preparedCB 消息已插入本地数据的回调，回调的两个参数表示：messageId, timestamp
   * @param {function (number, number)} progressCB 媒体上传进度回调，针对媒体消息，且媒体大于100K时有效，回调参数表示：uploaded, total
   * @param {function (number, number)} successCB 发送成功回调，回调参数表示：messageUid, timestamp
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async sendConversationMessage(conversation, messageContent, toUsers = [], preparedCB = null, progressCB = null, successCB = null, failCB = null) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.sendConversationMessage(conversation, messageContent, toUsers, preparedCB, progressCB, successCB, failCB);
  }

  /**
   * 发送消息，参考{@link sendConversationMessage}
   * @param {Message} message 一定要求是{@link Message}类型
   * @param preparedCB
   * @param progressCB
   * @param successCB
   * @param failCB
   * @returns {Promise<void>}
   */
  async sendMessage(message, preparedCB, progressCB, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.sendMessage(message, preparedCB, progressCB, successCB, failCB);
  }

  /**
   * 发送消息，参考{@link sendMessage}
   * @param message
   * @param toUsers
   * @param preparedCB
   * @param progressCB
   * @param successCB
   * @param failCB
   * @returns {Promise<void>}
   */
  async sendMessageEx(message, toUsers = [], preparedCB, progressCB, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.sendMessageEx(message, toUsers, preparedCB, progressCB, successCB, failCB);
  }

  /**
   * 发送已经保存的消息，参考{@link sendMessage}
   * @param message
   * @param expireDuration
   * @param successCB
   * @param failCB
   * @returns {Promise<void>}
   */
  async sendSavedMessage(message, expireDuration, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.sendSavedMessage(message, expireDuration, successCB, failCB);
  }

  /**
   * 取消发送消息，仅媒体类消息可以取消
   * @param messageId 消息ID
   * @returns 是否取消成功
   */
  cancelSendingMessage(messageId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.cancelSendingMessage(messageId);
  }

  /**
   * 撤回消息
   * @param {Long} messageUid
   * @param {function ()} successCB
   * @param {function (number)} failCB
   * @returns {Promise<void>}
   */
  async recallMessage(messageUid, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.recallMessage(messageUid, successCB, failCB);
  }

  /**
   * 删除消息
   * @param {number} messageId 消息id
   * @returns {*}
   */
  deleteMessage(messageId) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.deleteMessageById(messageId);
  }

  /**
   * 删除远程消息
   * @param {Long | string} msgUid 消息uid
   * @param {function ()} successCB
   * @param {function (number)} failCB
   */
  deleteRemoteMessageByUid(msgUid, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.deleteRemoteMessage(msgUid, successCB, failCB);
  }

  /**
   * 更新远程消息消息内容，只有专业版支持。客户端仅能更新自己发送的消息，更新的消息类型不能变，更新的消息类型是服务配置允许更新的内容。Server API更新则没有限制。
   * @param {Long | string} msgUid 消息uid
   * @param {MessageContent} messageContent 具体的消息内容，一定要求是{@link MessageContent} 的子类，不能是普通的object
   * @param {boolean} distribute 是否重新分发给其他客户端
   * @param {boolean} updateLocal 是否更新本地消息内容
   * @param {function ()} successCB
   * @param {function (number)} failCB
   */
  updateRemoteMessageContent(msgUid, messageContent, distribute, updateLocal, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.updateRemoteMessageContent(msgUid, messageContent, distribute, updateLocal, successCB, failCB);
  }

  /**
   * 清除会话消息
   * @param {Conversation} conversation 目标会话
   * @returns {Promise<void>}
   */
  async clearMessages(conversation) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.clearMessages(conversation);
  }

  /**
   * 清除远程会话消息
   * @param {Conversation} conversation
   * @param {function ()} successCB
   * @param {function (error)} failCB
   * @return {Promise<void>}
   */
  async clearRemoteConversationMessages(conversation, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.clearRemoteConversationMessages(conversation, successCB, failCB);
  }

  /**
   * 插入消息
   * @param {Conversation} conversation 目标会话
   * @param {MessageContent} messageContent 具体的消息内容，一定要求是{@link MessageContent} 的子类，不能是普通的object
   * @param {number} status 消息状态，可选值参考{@link MessageStatus}
   * @param {boolean} notify 是否触发onReceiveMessage
   * @param {Number} serverTime 服务器时间，精度到毫秒
   *
   * @return {Message} 插入的消息
   */
  insertMessage(conversation, messageContent, status, notify = false, serverTime = 0) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.insertMessage(conversation, messageContent, status, notify, serverTime);
  }

  /**
   * 更新消息
   * @param {number} messageId 消息id
   * @param {MessageContent} messageContent 具体的消息内容，一定要求是{@link MessageContent} 的子类，不能是普通的object
   * @returns {Promise<void>}
   */
  async updateMessageContent(messageId, messageContent) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.updateMessageContent(messageId, messageContent);
  }

  /**
   * 更新消息状态
   * @param {number} messageId 消息id
   * @param {MessageStatus} status 消息状态，可选值参考{@link MessageStatus}
   */
  async updateMessageStatus(messageId, status) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.updateMessageStatus(messageId, status);
  }

  /**
   * 上传媒体文件
   * @param {string} fileName
   * @param {string | File} fileOrData base64格式的dataUri 或者 File
   * @param {number} mediaType 媒体类型，可选值参考{@link MessageContentMediaType}
   * @param {function (string)} successCB 回调通知上传成功之后的url
   * @param {function (number)} failCB
   * @param {function (number, number)} progressCB
   * @returns {Promise<void>}
   */
  async uploadMedia(fileName, fileOrData, mediaType, successCB, failCB, progressCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.uploadMedia(fileName, fileOrData, mediaType, successCB, failCB, progressCB);
  }
  getVersion() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getVersion();
  }

  /**
   * 获取经过认证的下载地址。
   */
  getAuthorizedMediaUrl(messageUid, mediaType, mediaPath, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getAuthorizedMediaUrl(messageUid, mediaType, mediaPath, successCB, failCB);
  }

  /**
   * 是否支持上传大文件上传。只有专业版才支持此功能。当支持大文件上传时，调用getUploadMediaUrl获取上传url，然后在应用层上传
   */
  isSupportBigFilesUpload() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isSupportBigFilesUpload();
  }

  /**
   * 获取上传链接。一般用户大文件上传。
   * @param {string} fileName
   * @param {number} mediaType 媒体类型，可选值参考{@link MessageContentMediaType}
   * @param {string} contentType HTTP请求的ContentType header，为空时默认为"application/octet-stream"
   * @param {function (string, string)} successCB 回调通知上传成功之后的url
   * @param {function (number)} failCB
   */
  getUploadMediaUrl(fileName, mediaType, contentType, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUploadMediaUrl(fileName, mediaType, contentType, successCB, failCB);
  }

  /**
   * 微信小程序切到前台时调用应用切到了前台
   *
   */
  onForeground() {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.onForeground();
  }

  /**
   *
   * 是否开启了已送达报告和已读报告功能
   * @return {boolean}
   */
  isReceiptEnabled() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isReceiptEnabled();
  }

  /**
   * 当前用户是否开启消息回执
   * @return {boolean}
   */
  isUserReceiptEnabled() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isUserReceiptEnabled();
  }

  /**
   * 判断是否是专业版IM服务
   * @return {boolean}
   */
  isCommercialServer() {
    return true;
  }

  /**
   * 判断是否应用禁止草稿同步
   * @return {boolean}
   */
  isGlobalDisableSyncDraft() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isGlobalDisableSyncDraft();
  }

  /**
   *
   * @param disable
   * @param successCB
   * @param failCB
   */
  setDisableSyncDraft(disable, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setDisableSyncDraft(disable, successCB, failCB);
  }
  isDisableSyncDraft() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isDisableSyncDraft();
  }

  /**
   * 设置当前用户是否开启消息回执
   * @param enable
   * @param successCB
   * @param failCB
   */
  setUserEnableReceipt(enable, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setUserEnableReceipt(enable, successCB, failCB);
  }

  /**
   *
   * @param conversation
   * @return {Map<string, Long>}
   */
  getConversationRead(conversation) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getConversationRead(conversation);
  }

  /**
   * 获取会话中的文件记录
   * @param {Conversation} conversation 会话
   * @param {String} fromUser 来源用户
   * @param {Long} beforeMessageUid 消息uid，表示获取此消息uid之前的文件记录
   * @param {int} order 排序。0 按照时间逆序；1 按照时间顺序；2 按照大小逆序；3 按照大小顺序。
   * @param {number} count 数量
   * @param {function (FileRecord[])} successCB 成功回调
   * @param {function (number)} failCB 失败回调
   */
  getConversationFileRecords(conversation, fromUser, beforeMessageUid, order, count, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getConversationFileRecords(conversation, fromUser, beforeMessageUid, order, count, successCB, failCB);
  }

  /**
   * 获取我发送的文件记录
   * @param {Long} beforeMessageUid 消息uid，表示获取此消息uid之前的文件记录
   * @param {int} order 排序。0 按照时间逆序；1 按照时间顺序；2 按照大小逆序；3 按照大小顺序。
   * @param {number} count 数量
   * @param {function (FileRecord[])} successCB 成功回调
   * @param {function (number)} failCB 失败回调
   */
  getMyFileRecords(beforeMessageUid, order, count, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getMyFileRecords(beforeMessageUid, order, count, successCB, failCB);
  }

  /**
   * 删除文件记录
   * @param {Long} messageUid 文件对应的消息的uid
   * @param {function ()} successCB 成功回调
   * @param {function (number)} failCB 失败回调
   */
  deleteFileRecord(messageUid, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.deleteFileRecord(messageUid, successCB, failCB);
  }

  /**
   * 搜索远程文件记录
   * @param {string} keyword
   * @param {Conversation} conversation 会话，如果为空则获取当前用户所有收到和发出的文件记录
   * @param {string} fromUser 文件发送用户，如果为空则获取该用户发出的文件记录
   * @param {Long | string} beforeMessageId 起始消息的消息id
   * @param {int} order 排序。0 按照时间逆序；1 按照时间顺序；2 按照大小逆序；3 按照大小顺序。
   * @param {number} count
   * @param {function (FileRecord[])} successCB
   * @param {function (number)} failCB
   */
  searchFiles(keyword, conversation, fromUser, beforeMessageId, order, count, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchFiles(keyword, conversation, fromUser, beforeMessageId, order, count, successCB, failCB);
  }

  /**
   * 搜索我自己的远程文件记录
   * @param keyword
   * @param beforeMessageUid
   * @param {int} order 排序。0 按照时间逆序；1 按照时间顺序；2 按照大小逆序；3 按照大小顺序。
   * @param count
   * @param successCB
   * @param failCB
   */
  searchMyFiles(keyword, beforeMessageUid, order, count, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.searchMyFiles(keyword, beforeMessageUid, order, count, successCB, failCB);
  }

  /**
   * 获取host
   */
  getHost() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getHost();
  }
  getEncodedClientId() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getEncodedClientId();
  }

  /**
   *
   * @param {string} data 将要编码的数据
   * @returns {string} 编码结果，base64格式
   */
  encodeData(data) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.encodeData(data);
  }

  /**
   *
   * @param {string} encodedData 将要解码的数据，base64格式
   * @returns {null | string} 解码之后的数据
   */
  decodeData(encodedData) {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.decodeData(encodedData);
  }

  /**
   * 发送会议相关请求
   * @param sessionId
   * @param roomId
   * @param request
   * @param data
   * @param callback
   */
  sendConferenceRequest(sessionId, roomId, request, data, callback) {
    this.sendConferenceRequestEx(sessionId, roomId, request, data, false, callback);
  }
  sendConferenceRequestEx(sessionId, roomId, request, data, advance, callback) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.sendConferenceRequest(sessionId, roomId, request, data, advance, callback);
  }
  isUserOnlineStateEnabled() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.isUserOnlineStateEnabled();
  }

  /**
   *
   * @param {number} type 会话类型， 支持{@link ConversationType.Single}和{@link ConversationType.Group}
   * @param {string[]} targets 会话类型为单聊时，是用户 id列表；会话类型为群组时，是群组 id 列表
   * @param {number} duration 关注时间长度，单位是秒
   * @param {function(UserOnlineState[])} successCB
   * @param {function(number)} failCB
   */
  watchOnlineState(type, targets, duration, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.watchOnlineState(type, targets, duration, successCB, failCB);
  }
  unwatchOnlineState(type, targets, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.unwatchOnlineState(type, targets, successCB, failCB);
  }
  setMyCustomState(customState, customText, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.setMyCustomState(customState, customText, successCB, failCB);
  }
  getAuthCode(appId, appType, host, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getAuthCode(appId, appType, host, successCB, failCB);
  }
  requireLock(lockId, duration, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.requireLock(lockId, duration, successCB, failCB);
  }
  releaseLock(lockId, successCB, failCB) {
    _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.releaseLock(lockId, successCB, failCB);
  }
  _getStore() {
    return _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a._getStore();
  }

  /**
   * utf8转base64
   * @param {string} str
   * @returns {string}
   */
  utf8_to_b64(str) {
    return Object(_util_base64_min_js__WEBPACK_IMPORTED_MODULE_15__["btoa"])(unescape(encodeURIComponent(str)));
  }

  /**
   * base64转utf8
   * @param {string} str
   * @returns {string}
   */
  b64_to_utf8(str) {
    return decodeURIComponent(escape(Object(_util_base64_min_js__WEBPACK_IMPORTED_MODULE_15__["atob"])(str)));
  }
  b64_to_arrayBuffer(str) {
    let binary_string = Object(_util_base64_min_js__WEBPACK_IMPORTED_MODULE_15__["atob"])(str);
    let len = binary_string.length;
    let bytes = new Uint8Array(len);
    for (let i = 0; i < len; i++) {
      bytes[i] = binary_string.charCodeAt(i);
    }
    return bytes.buffer;
  }
  arrayBuffer_to_b64(data) {
    return Buffer.from(data).toString("base64");
  }
  unescape(str) {
    return (str + "===".slice((str.length + 3) % 4)).replace(/-/g, "+").replace(/_/g, "/");
  }
  escape(str) {
    return str.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
  }
  defaultUserPortrait(userInfo) {
    return `${_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER}/avatar?name=${encodeURIComponent(userInfo.displayName)}`;
    // return `http://localhost:8888/avatar?name=${encodeURIComponent(userInfo.displayName)}`
  }
  defaultGroupPortrait(groupInfo) {
    let memberIds = this.getGroupMemberIds(groupInfo.target);
    memberIds = memberIds.slice(0, 9);
    // let members = this.getUserInfos(memberIds, groupInfo.target);
    let members = _proto_proto_min__WEBPACK_IMPORTED_MODULE_17___default.a.getUserInfos(memberIds, groupInfo.target);
    let req = {
      members: []
    };
    let pending = false;
    members.forEach(m => {
      if (m.portrait && !m.portrait.startsWith(`${_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER}`)) {
        req.members.push({
          avatarUrl: m.portrait
        });
      } else {
        req.members.push({
          name: m.displayName
        });
      }
      if (m instanceof _model_nullUserInfo__WEBPACK_IMPORTED_MODULE_23__["default"]) {
        pending = true;
      }
    });
    if (members.length === 0 || pending) {
      return null;
    }
    req = JSON.stringify(req, null, "");
    return `${_config__WEBPACK_IMPORTED_MODULE_18__["default"].APP_SERVER}/avatar/group?request=${encodeURIComponent(req)}`;
    //return `http://localhost:8888/avatar/group?request=${encodeURIComponent(req)}`
  }
}
const self = new WfcManager();
if (window.opener) {
  window.__wfc = window.opener.__wfc;
} else if (window.parent && window.parent.__wfc) {
  window.__wfc = window.parent.__wfc;
} else {
  window.__wfc = self;
}
/* harmony default export */ __webpack_exports__["default"] = (self);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js")["Buffer"]))

/***/ }),

/***/ "./src/wfc/client/wfcEvent.js":
/*!************************************!*\
  !*** ./src/wfc/client/wfcEvent.js ***!
  \************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return EventType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class EventType {}
// function (message) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "SendMessage", "sendMsg");
// function (message, hasMore) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "ReceiveMessage", "receiveMsg");
// function (Map(userId, receiveTime)) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "MessageReceived", "msgReceived");
// function ([readEntry]) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "MessageRead", "msgRead");
// 主动调用recallMessage时，也会触发
// function (operator, messageUid) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "RecallMessage", "recallMsg");
// 远程删除消息时触发
// function (messageUid) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "MessageDeleted", "msgDeleted");
// function (messageId) {}
// 本地主动删除消息时触发
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "DeleteMessage", "deleteMsg");
// function (message) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "MessageStatusUpdate", "msgStatusUpdate");
// function (connectionStatus) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "ConnectionStatusChanged", "connectionStatusChanged");
// function (host/ip/port) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "ConnectToServer", "connectToServer");
// function (userInfos) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "UserInfosUpdate", "userInfosUpdate");
// function (channelInfos) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "ChannelInfosUpdate", "channelInfosUpdate");
// function (groupInfos) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "GroupInfosUpdate", "groupInfosUpdate");
// function (updatedFriendIds) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "FriendListUpdate", "friendListUpdate");
// function ([newFriendRequests]) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "FriendRequestUpdate", "friendRequestUpdate");
// function (conversationInfo) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "ConversationInfoUpdate", "conversationInfoUpdate");
// function () {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "SettingUpdate", "settingUpdate");
// function (groupId, GroupMember[]) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "GroupMembersUpdate", "groupMembersUpdate");
// function (event) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "ConferenceEvent", "conferenceEvent");
// function (UserOnlineState[]) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "UserOnlineEvent", "onlineEvent");
// function (targetId, playedMessageId) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "SecretChatStartBurn", "secretChatStartBurn");
// function ([messageId]) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "SecretChatMessageBurned", "secretChatMessageBurned");
// function (targetId) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(EventType, "SecretChatStateChange", "secretChatStateChange");

/***/ }),

/***/ "./src/wfc/ipcEventType.js":
/*!*********************************!*\
  !*** ./src/wfc/ipcEventType.js ***!
  \*********************************/
/*! no static exports found */
/***/ (function(module, exports) {

// electron renderer进程 和 main进程之间通信的事件定义
const IpcEventType = {
  showConversationMessageHistoryPage: "show-conversation-message-history-page",
  showMessageHistoryPage: "show-message-history-page",
  showConversationFloatPage: "show-conversation-float-page",
  DOWNLOAD_FILE: "file-download",
  ENABLE_CLOSE_WINDOW_TO_EXIT: "enable-close-window-to-exit",
  CLICK_NOTIFICATION: "click-notification",
  UPDATE_BADGE: "update-badge",
  SHOW_FILE_WINDOW: "show-file-window",
  SHOW_MULTIMEDIA_PREVIEW_WINDOW: "show-multimedia-preview-window",
  LOGIN: "login",
  LOGOUT: "logout",
  RESIZE_LOGIN_WINDOW: "resizeLoginWindow",
  FILE_PASTE: "file-paste",
  FILE_COPY: "file-copy",
  START_SCREEN_SHOT: "screenshots-start",
  OPEN_H5_APP_WINDOW: "open-h5-app-window",
  SHOW_COMPOSITE_MESSAGE_WINDOW: "show-composite-message-window",
  IS_SUSPEND: "is-suspend",
  START_SCREEN_SHARE: "start-screen-share",
  STOP_SCREEN_SHARE: "stop-screen-share"
};
module.exports = IpcEventType;

/***/ }),

/***/ "./src/wfc/messages/articlesMessageContent.js":
/*!****************************************************!*\
  !*** ./src/wfc/messages/articlesMessageContent.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ArticlesMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _linkMessageContent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./linkMessageContent */ "./src/wfc/messages/linkMessageContent.js");









class ArticlesMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_5__["default"] {
  constructor() {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_6__["default"].Articles);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "topArticle", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "subArticles", void 0);
  }
  digest(message) {
    return this.topArticle.title;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      top: this.topArticle.toJson()
    };
    if (this.subArticles) {
      obj["subArticles"] = this.subArticles.map(article => article.toJson());
    }
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_7__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let obj = JSON.parse(_client_wfc__WEBPACK_IMPORTED_MODULE_7__["default"].b64_to_utf8(payload.binaryContent));
    this.topArticle = new Article();
    this.topArticle.fromJson(obj.top);
    if (obj.subArticles) {
      this.subArticles = [];
      obj.subArticles.forEach(article => {
        let tmp = new Article();
        tmp.fromJson(article);
        this.subArticles.push(tmp);
      });
    }
  }
  toLinkMessageContent() {
    let contents = [];
    contents.push(this.topArticle.toLinkMessageContent());
    if (this.subArticles) {
      this.subArticles.forEach(article => {
        contents.push(article.toLinkMessageContent());
      });
    }
    return contents;
  }
}
class Article {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "articleId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "cover", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "title", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "digest", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "url", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "readReport", void 0);
  }
  toJson() {
    let obj = {
      id: this.articleId,
      cover: this.cover,
      title: this.title,
      url: this.url,
      digest: this.digest,
      rr: this.readReport
    };
    return obj;
  }
  fromJson(obj) {
    this.articleId = obj.id;
    this.cover = obj.cover;
    this.title = obj.title;
    this.digest = obj.digest;
    this.url = obj.url;
    this.readReport = obj.rr;
  }
  toLinkMessageContent() {
    let content = new _linkMessageContent__WEBPACK_IMPORTED_MODULE_8__["default"]();
    content.url = this.url;
    content.title = this.title;
    content.contentDigest = this.digest;
    content.thumbnail = this.cover;
    return content;
  }
}

/***/ }),

/***/ "./src/wfc/messages/cardMessageContent.js":
/*!************************************************!*\
  !*** ./src/wfc/messages/cardMessageContent.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CardMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../config */ "./src/config.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

/*
 * Copyright © 2020 WildFireChat. All rights reserved.
 */





class CardMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(cardType, target, displayName, portrait, from) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].UserCard);
    /**
     * 0，用户；1，群组；2，聊天室；3，频道
     */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "cardType", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "target", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "name", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "displayName", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "portrait", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "from", void 0);
    this.cardType = cardType;
    this.target = target;
    this.displayName = displayName;
    this.portrait = portrait;
    this.from = from;
  }
  encode() {
    let payload = super.encode();
    payload.content = this.target;
    let obj = {
      t: this.cardType,
      n: this.name,
      d: this.displayName,
      p: this.portrait,
      f: this.from
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.target = payload.content;
    let obj = JSON.parse(_client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent));
    this.cardType = obj.t;
    this.name = obj.n;
    this.displayName = obj.d;
    this.portrait = obj.p;
    if (_config__WEBPACK_IMPORTED_MODULE_4__["default"].urlRedirect) {
      this.portrait = _config__WEBPACK_IMPORTED_MODULE_4__["default"].urlRedirect(obj.p);
    }
    this.from = obj.f;
  }
  digest() {
    let msg = "[名片]";
    switch (this.cardType) {
      case 0:
        msg = "[个人名片]";
        break;
      case 1:
        msg = "[群组名片]";
        break;
      case 2:
        msg = "[聊天室名]";
        break;
      case 3:
        msg = "[频道名片]";
        break;
      default:
        break;
    }
    return msg + this.displayName;
  }
}

/***/ }),

/***/ "./src/wfc/messages/channelMenuEventMessageContent.js":
/*!************************************************************!*\
  !*** ./src/wfc/messages/channelMenuEventMessageContent.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ChannelMenuEventMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");



class ChannelMenuEventMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(menu) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].Channel_Menu_Event);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "menu", void 0);
    this.menu = menu;
  }
  encode() {
    let payload = super.encode();
    payload.content = JSON.stringify(this.menu);
    return payload;
  }
}

/***/ }),

/***/ "./src/wfc/messages/compositeMessageContent.js":
/*!*****************************************************!*\
  !*** ./src/wfc/messages/compositeMessageContent.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CompositeMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _messages_messageContentType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../messages/messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messages_mediaMessageContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../messages/mediaMessageContent */ "./src/wfc/messages/mediaMessageContent.js");
/* harmony import */ var _util_longUtil__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/longUtil */ "./src/wfc/util/longUtil.js");
/* harmony import */ var _messages_message__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../messages/message */ "./src/wfc/messages/message.js");
/* harmony import */ var _model_conversation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../model/conversation */ "./src/wfc/model/conversation.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! long */ "./node_modules/long/src/long.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(long__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _messages_messagePayload__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../messages/messagePayload */ "./src/wfc/messages/messagePayload.js");
/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../platform */ "./src/platform.js");
/* harmony import */ var _articlesMessageContent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./articlesMessageContent */ "./src/wfc/messages/articlesMessageContent.js");
/* harmony import */ var _messageContentMediaType__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./messageContentMediaType */ "./src/wfc/messages/messageContentMediaType.js");
















class CompositeMessageContent extends _messages_mediaMessageContent__WEBPACK_IMPORTED_MODULE_6__["default"] {
  constructor() {
    super(_messages_messageContentType__WEBPACK_IMPORTED_MODULE_4__["default"].Composite_Message, _messageContentMediaType__WEBPACK_IMPORTED_MODULE_14__["default"].General, "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "title", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messages", []);
    // web 端有效，仅仅是用来标识 mediaCompositeMessage 是否已加载
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "loaded", false);
  }
  setMessages(msgs) {
    this.messages = [];
    msgs.forEach(m => {
      if (m.messageContent instanceof _articlesMessageContent__WEBPACK_IMPORTED_MODULE_13__["default"]) {
        let linkMessageContents = m.messageContent.toLinkMessageContent();
        linkMessageContents.forEach(lm => {
          let msg = Object.assign(new _messages_message__WEBPACK_IMPORTED_MODULE_8__["default"](), m);
          msg.messageContent = lm;
          this.messages.push(msg);
        });
      } else {
        this.messages.push(m);
      }
    });
    this.messages = this.messages.sort((m1, m2) => {
      return Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_7__["compare"])(m1.messageUid, m2.messageUid);
    });
  }
  digest(message) {
    return "[聊天记录]" + this.title;
  }
  encode() {
    let payload = super.encode();
    payload.content = this.title;
    let arr = [];
    let binArr;
    let size = 0;
    this.messages.forEach(msg => {
      let msgPayload = msg.messageContent.encode();
      let o = {
        uid: Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_7__["stringValue"])(msg.messageUid),
        type: msg.conversation.type,
        target: msg.conversation.target,
        line: msg.conversation.line,
        from: msg.from,
        tos: msg.to,
        direction: msg.direction,
        status: msg.status,
        serverTime: Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_7__["stringValue"])(msg.timestamp),
        ctype: msgPayload.type,
        csc: msgPayload.searchableContent,
        cpc: msgPayload.pushContent,
        cpd: msgPayload.pushData,
        cc: msgPayload.content,
        cmt: msgPayload.mentionedType,
        cmts: msgPayload.mentionedTargets,
        ce: msgPayload.extra
      };
      if (msgPayload.searchableContent) {
        payload.searchableContent = payload.searchableContent + msgPayload.searchableContent + " ";
      }
      if (msgPayload.binaryContent) {
        o.cbc = msgPayload.binaryContent;
      }
      if (msg.messageContent instanceof _messages_mediaMessageContent__WEBPACK_IMPORTED_MODULE_6__["default"]) {
        o.mt = msg.messageContent.mediaType;
        o.mru = msg.messageContent.remotePath;
      }
      if (!binArr) {
        size += JSON.stringify(o).length;
        if (size > 20480 && arr.length > 0) {
          binArr = arr.map(value => value);
        }
      }
      arr.push(o);
    });
    let obj;
    if (binArr && !this.file) {
      obj = {
        ms: arr
      };
      let str = JSON.stringify(obj);
      str = str.replace(/"uid":"([0-9]+)"/, '"uid":$1');
      str = str.replace(/"serverTime":"([0-9]+)"/, '"serverTime":$1');
      let blob = new Blob([str]);
      let fileName = "wcf-" + new Date().getTime() + ".data";
      this.file = new File([blob], fileName);
      if (Object(_platform__WEBPACK_IMPORTED_MODULE_12__["isElectron"])()) {
        this.localPath = __webpack_require__(/*! tmp */ "./node_modules/tmp/lib/tmp.js").tmpNameSync() + fileName;
        __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js").writeFileSync(this.localPath, str);
        payload.localMediaPath = this.localPath;
        payload.mediaType = _messages_messageContentType__WEBPACK_IMPORTED_MODULE_4__["default"].File;
      }
      obj = {
        ms: binArr
      };
    } else {
      if (binArr) {
        obj = {
          ms: binArr
        };
      } else {
        obj = {
          ms: arr
        };
      }
    }
    let str = JSON.stringify(obj);
    str = str.replace(/"uid":"([0-9]+)"/, '"uid":$1');
    str = str.replace(/"serverTime":"([0-9]+)"/, '"serverTime":$1');
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].utf8_to_b64(str);
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.title = payload.content;
    let str;
    if (this.file) {
      // web
      let fileReader = new FileReader();
      fileReader.onload(ev => {
        this._decodeMessages(ev.target.result);
      });
      fileReader.readAsBinaryString(this.file);
    } else if (this.localPath) {
      // electron
      if (Object(_platform__WEBPACK_IMPORTED_MODULE_12__["isElectron"])()) {
        const fs = __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js");
        if (fs.existsSync(this.localPath)) {
          const buffer = fs.readFileSync(this.localPath);
          str = buffer.toString();
          this._decodeMessages(str);
        } else {
          console.log("media composite message not downloaded", this.remotePath);
        }
      }
    }
    if (!str) {
      str = _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].b64_to_utf8(payload.binaryContent);
      this._decodeMessages(str);
    }
  }
  _decodeMessages(str) {
    if (this.loaded) {
      return;
    }
    this.messages = [];
    // FIXME node 环境，decodeURIComponent 方法，有时候会在最后添加上@字符，目前尚未找到原因，先规避
    str = str.substring(0, str.lastIndexOf("}") + 1);
    str = str.replace(/"uid":([0-9]+)/g, '"uid":"$1"');
    str = str.replace(/"serverTime":([0-9]+)/g, '"serverTime":"$1"');
    let obj = JSON.parse(str);
    obj.ms.forEach(o => {
      let conv = new _model_conversation__WEBPACK_IMPORTED_MODULE_9__["default"](o.type, o.target, o.line);
      let msg = new _messages_message__WEBPACK_IMPORTED_MODULE_8__["default"]();
      msg.messageUid = long__WEBPACK_IMPORTED_MODULE_10___default.a.fromValue(o.uid);
      msg.conversation = conv;
      msg.from = o.from;
      msg.to = o.tos;
      msg.direction = o.direction;
      msg.status = o.status;
      msg.timestamp = long__WEBPACK_IMPORTED_MODULE_10___default.a.fromValue(o.serverTime);
      let payload = new _messages_messagePayload__WEBPACK_IMPORTED_MODULE_11__["default"]();
      payload.type = o.ctype;
      payload.searchableContent = o.csc;
      payload.pushContent = o.cpc;
      payload.pushData = o.cpd;
      payload.content = o.cc;
      payload.mentionedType = o.cmt;
      payload.mentionedTargets = o.cmts;
      payload.extra = o.ce;
      payload.binaryContent = o.cbc;
      payload.mediaType = o.mt;
      payload.remoteMediaUrl = o.mru;
      msg.messageContent = _messages_message__WEBPACK_IMPORTED_MODULE_8__["default"].messageContentFromMessagePayload(payload, msg.from);
      this.messages.push(msg);
    });
    console.log("cp ms", this.messages);
  }
}

/***/ }),

/***/ "./src/wfc/messages/deleteMessageContent.js":
/*!**************************************************!*\
  !*** ./src/wfc/messages/deleteMessageContent.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DeleteMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! long */ "./node_modules/long/src/long.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(long__WEBPACK_IMPORTED_MODULE_4__);

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */






// 本消息由调用server api删除消息触发，请勿直接发送本消息
class DeleteMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(operatorId, messageUid) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].DeleteMessage_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operatorId", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messageUid", new long__WEBPACK_IMPORTED_MODULE_4___default.a(0));
    this.operatorId = operatorId;
    this.messageUid = messageUid;
  }
  formatNotification(message) {
    return "消息已删除";
  }
  encode() {
    let payload = super.encode();
    payload.content = this.operatorId;
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(this.messageUid.toString());
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.operatorId = payload.content;
    this.messageUid = long__WEBPACK_IMPORTED_MODULE_4___default.a.fromString(_client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent));
  }
}

/***/ }),

/***/ "./src/wfc/messages/enterChannelChatMessageContent.js":
/*!************************************************************!*\
  !*** ./src/wfc/messages/enterChannelChatMessageContent.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return EnterChannelChatMessageContent; });
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");


class EnterChannelChatMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_0__["default"] {
  constructor() {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_1__["default"].Enter_Channel_Chat);
  }
}

/***/ }),

/***/ "./src/wfc/messages/fileMessageContent.js":
/*!************************************************!*\
  !*** ./src/wfc/messages/fileMessageContent.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FileMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContentMediaType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContentMediaType */ "./src/wfc/messages/messageContentMediaType.js");
/* harmony import */ var _mediaMessageContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mediaMessageContent */ "./src/wfc/messages/mediaMessageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class FileMessageContent extends _mediaMessageContent__WEBPACK_IMPORTED_MODULE_2__["default"] {
  constructor(fileOrLocalPath, remotePath, name, size) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].File, _messageContentMediaType__WEBPACK_IMPORTED_MODULE_1__["default"].File, fileOrLocalPath, remotePath);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "name", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "size", 0);
    if (fileOrLocalPath && fileOrLocalPath.name) {
      this.name = fileOrLocalPath.name;
      this.size = fileOrLocalPath.size;
    } else if (remotePath) {
      this.name = name ? name : remotePath.substring(remotePath.lastIndexOf("/") + 1);
      this.size = size ? size : 0;
    }
  }
  digest() {
    return "[文件]" + this.name;
  }
  encode() {
    let payload = super.encode();
    payload.searchableContent = this.name;
    payload.content = this.size + "";
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    if (payload.searchableContent) {
      this.name = payload.searchableContent;
      this.size = Number(payload.content);
    }
  }
}

/***/ }),

/***/ "./src/wfc/messages/imageMessageContent.js":
/*!*************************************************!*\
  !*** ./src/wfc/messages/imageMessageContent.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ImageMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _mediaMessageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mediaMessageContent */ "./src/wfc/messages/mediaMessageContent.js");
/* harmony import */ var _messageContentMediaType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentMediaType */ "./src/wfc/messages/messageContentMediaType.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class ImageMessageContent extends _mediaMessageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(fileOrLocalPath, remotePath, thumbnail) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].Image, _messageContentMediaType__WEBPACK_IMPORTED_MODULE_2__["default"].Image, fileOrLocalPath, remotePath);
    // base64 encoded, 不包含头部:data:image/png;base64,
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "thumbnail", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "imageWidth", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "imageHeight", void 0);
    this.thumbnail = thumbnail;
  }
  digest() {
    return "[图片]";
  }
  encode() {
    let payload = super.encode();
    payload.mediaType = _messageContentMediaType__WEBPACK_IMPORTED_MODULE_2__["default"].Image;
    payload.binaryContent = this.thumbnail;
    if (this.imageWidth) {
      let obj = {
        w: this.imageWidth,
        h: this.imageHeight
      };
      payload.content = JSON.stringify(obj);
    }
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.thumbnail = payload.binaryContent;
    if (payload.content) {
      let obj = JSON.parse(payload.content);
      this.imageWidth = obj["w"];
      this.imageHeight = obj["h"];
    }
  }
}

/***/ }),

/***/ "./src/wfc/messages/leaveChannelChatMessageContent.js":
/*!************************************************************!*\
  !*** ./src/wfc/messages/leaveChannelChatMessageContent.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return LeaveChannelChatMessageContent; });
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");


class LeaveChannelChatMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_0__["default"] {
  constructor() {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_1__["default"].Leave_Channel_Chat);
  }
}

/***/ }),

/***/ "./src/wfc/messages/linkMessageContent.js":
/*!************************************************!*\
  !*** ./src/wfc/messages/linkMessageContent.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return LinkMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");




class LinkMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor() {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].Link);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "title", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "contentDigest", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "url", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "thumbnail", void 0);
  }
  encode() {
    let payload = super.encode();
    let obj = {
      d: this.contentDigest,
      u: this.url,
      t: this.thumbnail
    };
    payload.searchableContent = this.title;
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.title = payload.searchableContent;
    let obj = JSON.parse(_client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent));
    this.contentDigest = obj.d;
    this.url = obj.u;
    this.thumbnail = obj.t;
  }
  digest(message) {
    let tmp = this.title ? this.title.trim() : this.contentDigest ? this.contentDigest.trim() : null;
    return tmp ? tmp : this.url;
  }
}

/***/ }),

/***/ "./src/wfc/messages/locationMessageContent.js":
/*!****************************************************!*\
  !*** ./src/wfc/messages/locationMessageContent.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return LocationMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class LocationMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor() {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].Location);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "title", void 0);
    // base64 encoded, 不包含头部:data:image/png;base64,
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "thumbnail", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "lat", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "long", void 0);
  }
  digest() {
    return "位置";
  }
  encode() {
    let payload = super.encode();
    payload.searchableContent = this.title;
    payload.binaryContent = this.thumbnail;
    let location = {
      lat: this.lat,
      long: this.long
    };
    payload.content = JSON.stringify(location);
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.title = payload.searchableContent;
    this.thumbnail = payload.binaryContent;
    let location = JSON.parse(payload.content);
    this.lat = location.lat;
    this.long = location.long;
  }
}

/***/ }),

/***/ "./src/wfc/messages/markUnreadMessageContent.js":
/*!******************************************************!*\
  !*** ./src/wfc/messages/markUnreadMessageContent.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MarkUnreadMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _util_longUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/longUtil */ "./src/wfc/util/longUtil.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");





class MarkUnreadMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(messageUid) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].Mark_Unread_Sync);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messageUid", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "timestamp", void 0);
    this.messageUid = messageUid;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      u: Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["stringValue"])(this.messageUid),
      t: Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["stringValue"])(this.timestamp)
    };
    let str = JSON.stringify(obj);
    str = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["_patchToJavaLong"])(str, "u");
    str = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["_patchToJavaLong"])(str, "t");
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_4__["default"].utf8_to_b64(str);
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let str = _client_wfc__WEBPACK_IMPORTED_MODULE_4__["default"].b64_to_utf8(payload.binaryContent);
    str = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["_reverseToJsLongString"])(str, "u");
    str = Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["_reverseToJsLongString"])(str, "t");
    let obj = JSON.parse(str);
    this.messageUid = obj.u ? Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["longValue"])(obj.u) : undefined;
    this.timestamp = obj.t ? Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_3__["longValue"])(obj.t) : undefined;
  }
}

/***/ }),

/***/ "./src/wfc/messages/mediaMessageContent.js":
/*!*************************************************!*\
  !*** ./src/wfc/messages/mediaMessageContent.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MediaMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../config */ "./src/config.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class MediaMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  /**
   *
   * @param {number} messageType 消息类型
   * @param {number} mediaType 媒体类型
   * @param {File | string} fileOrLocalPath File类型，或者dataUri或者本地路径，本地路径是必须是绝对路径
   * @param {string} remotePath 远端地址
   */
  constructor(messageType, mediaType = 0, fileOrLocalPath, remotePath) {
    super(messageType);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "file", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "remotePath", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "localPath", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "mediaType", 0);
    this.mediaType = mediaType;
    if (!fileOrLocalPath) {
      this.localPath = "";
      this.remotePath = remotePath;
    } else if (typeof fileOrLocalPath === "string" && !fileOrLocalPath.startsWith("http")) {
      this.localPath = fileOrLocalPath;
      this.remotePath = remotePath;
    } else {
      this.file = fileOrLocalPath;
      if (fileOrLocalPath && fileOrLocalPath.path) {
        this.localPath = fileOrLocalPath.path;
        // attention: 粘贴的时候，path是空字符串，故采用了这个trick
        if (this.localPath.indexOf(fileOrLocalPath.name) < 0) {
          this.localPath += fileOrLocalPath.name;
        }
      }
    }
  }
  encode() {
    let payload = super.encode();
    payload.localMediaPath = this.localPath;
    payload.remoteMediaUrl = this.remotePath ? this.remotePath : "";
    payload.mediaType = this.mediaType;
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.localPath = payload.localMediaPath;
    this.remotePath = payload.remoteMediaUrl;
    if (_config__WEBPACK_IMPORTED_MODULE_2__["default"].urlRedirect) {
      this.remotePath = _config__WEBPACK_IMPORTED_MODULE_2__["default"].urlRedirect(payload.remoteMediaUrl);
    }
    this.mediaType = payload.mediaType;
  }
}

/***/ }),

/***/ "./src/wfc/messages/message.js":
/*!*************************************!*\
  !*** ./src/wfc/messages/message.js ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Message; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _model_conversation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../model/conversation */ "./src/wfc/model/conversation.js");
/* harmony import */ var _notification_notificationMessageContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./notification/notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _client_messageConfig__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../client/messageConfig */ "./src/wfc/client/messageConfig.js");
/* harmony import */ var _unknownMessageContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./unknownMessageContent */ "./src/wfc/messages/unknownMessageContent.js");
/* harmony import */ var _persistFlag__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./persistFlag */ "./src/wfc/messages/persistFlag.js");
/* harmony import */ var _messageStatus__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./messageStatus */ "./src/wfc/messages/messageStatus.js");
/* harmony import */ var _model_conversationType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../model/conversationType */ "./src/wfc/model/conversationType.js");
/* harmony import */ var base64_arraybuffer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! base64-arraybuffer */ "./node_modules/base64-arraybuffer/lib/base64-arraybuffer.js");
/* harmony import */ var base64_arraybuffer__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(base64_arraybuffer__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../config.js */ "./src/config.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! long */ "./node_modules/long/src/long.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(long__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _messages_unsupportMessageConten__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../messages/unsupportMessageConten */ "./src/wfc/messages/unsupportMessageConten.js");
/* harmony import */ var _messages_notification_recallMessageNotification__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../messages/notification/recallMessageNotification */ "./src/wfc/messages/notification/recallMessageNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

/**
 *
 message in json format
 {
        "conversation":{
            "conversationType": 0,
            "target": "UZUWUWuu",
            "line": 0,
        }
        "from": "UZUWUWuu",
        "content": {
            "type": 1,
            "searchableContent": "1234",
            "pushContent": "",
            "content": "",
            "binaryContent": "",
            "localContent": "",
            "mediaType": 0,
            "remoteMediaUrl": "",
            "localMediaPath": "",
            "mentionedType": 0,
            "mentionedTargets": [ ]
        },
        "messageId": 52,
        "direction": 1,
        "status": 5,
        "messageUid": 75735276990792720,
        "timestamp": 1550849394256,
        "to": ""
    }
 */













class Message {
  constructor(conversation, messageContent) {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "conversation", {});
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "from", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "content", {});
    // 实际是payload
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messageContent", {});
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messageId", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "direction", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "status", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messageUid", -1);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "timestamp", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "to", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "localExtra", "");
    this.conversation = conversation;
    this.messageContent = messageContent;
  }
  static fromProtoMessage(obj) {
    if (!obj) {
      return null;
    }
    if (!obj.conversation.target) {
      return null;
    }
    // iOS，Android，Windows，OSX
    if ([1, 2, 3, 4, 7, 8, 9].indexOf(_config_js__WEBPACK_IMPORTED_MODULE_10__["default"].getWFCPlatform()) >= 0) {
      let msg = Object.assign(new Message(), obj);
      // big integer to number
      msg.messageId = Number(msg.messageId);
      if (msg.messageId === -1) {
        return null;
      }
      msg.messageUid = long__WEBPACK_IMPORTED_MODULE_11___default.a.fromValue(msg.messageUid);
      msg.timestamp = long__WEBPACK_IMPORTED_MODULE_11___default.a.fromValue(msg.timestamp).toNumber();
      msg.localExtra = obj.localExtra;
      if (!msg.from) {
        // 移动端
        msg.from = obj.sender;
      }
      msg.conversation = new _model_conversation__WEBPACK_IMPORTED_MODULE_1__["default"](obj.conversation.conversationType !== undefined ? obj.conversation.conversationType : obj.conversation.type, obj.conversation.target, obj.conversation.line);
      let contentClazz = _client_messageConfig__WEBPACK_IMPORTED_MODULE_4__["default"].getMessageContentClazz(msg.content.type !== undefined ? msg.content.type : msg.content.messageContentType);
      if (contentClazz) {
        let content = new contentClazz();
        try {
          content.decode(msg.content);
          if (content instanceof _notification_notificationMessageContent__WEBPACK_IMPORTED_MODULE_2__["default"]) {
            content.fromSelf = msg.from === _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserId();
          }
        } catch (error) {
          console.error("decode message payload failed, fallback to unkownMessage", msg.content, error);
          let flag = _client_messageConfig__WEBPACK_IMPORTED_MODULE_4__["default"].getMessageContentPersitFlag(msg.content.type);
          if (_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist === flag || _persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count === flag) {
            content = new _unknownMessageContent__WEBPACK_IMPORTED_MODULE_5__["default"](msg.content);
          } else {
            return null;
          }
        }
        msg.messageContent = content;
        if (content instanceof _unknownMessageContent__WEBPACK_IMPORTED_MODULE_5__["default"]) {
          console.log("unknownMessage Content", obj);
        }
      } else {
        console.error("message content not register", obj);
      }
      return msg;
    } else {
      let msg = new Message();
      msg.from = obj.fromUser;
      msg.content = obj.content;
      msg.messageUid = obj.messageId;
      msg.localExtra = obj.localExtra;
      msg.timestamp = obj.serverTimestamp;
      let contentClazz = _client_messageConfig__WEBPACK_IMPORTED_MODULE_4__["default"].getMessageContentClazz(obj.content.type);
      if (contentClazz) {
        let content = new contentClazz();
        if (obj.content.__notLoaded) {
          content.__notLoaded = true;
          content.type = obj.content.type;
        } else {
          try {
            if (obj.content.data && obj.content.data.length > 0) {
              obj.content.binaryContent = Object(base64_arraybuffer__WEBPACK_IMPORTED_MODULE_9__["encode"])(obj.content.data);
            }
            content.decode(obj.content);
            content.extra = obj.content.extra;
            if (content instanceof _notification_notificationMessageContent__WEBPACK_IMPORTED_MODULE_2__["default"]) {
              content.fromSelf = msg.from === _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserId();
            }
          } catch (error) {
            console.error("decode message payload failed, fallback to unkownMessage", obj.content, error);
            let flag = _client_messageConfig__WEBPACK_IMPORTED_MODULE_4__["default"].getMessageContentPersitFlag(obj.content.type);
            if (_persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist === flag || _persistFlag__WEBPACK_IMPORTED_MODULE_6__["default"].Persist_And_Count === flag) {
              content = new _unknownMessageContent__WEBPACK_IMPORTED_MODULE_5__["default"](obj.content);
            } else {
              return null;
            }
          }
        }
        msg.messageContent = content;
        if (content instanceof _unknownMessageContent__WEBPACK_IMPORTED_MODULE_5__["default"]) {
          console.log("unknownMessage Content", obj);
        }
      } else {
        console.error("message content not register", obj);
      }
      if (msg.from === _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserId()) {
        msg.conversation = new _model_conversation__WEBPACK_IMPORTED_MODULE_1__["default"](obj.conversation.type, obj.conversation.target, obj.conversation.line);
        // out
        msg.direction = 0;
        msg.status = _messageStatus__WEBPACK_IMPORTED_MODULE_7__["default"].Sent;
      } else {
        if (obj.conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_8__["default"].Single) {
          msg.conversation = new _model_conversation__WEBPACK_IMPORTED_MODULE_1__["default"](obj.conversation.type, obj.fromUser, obj.conversation.line);
        } else {
          msg.conversation = new _model_conversation__WEBPACK_IMPORTED_MODULE_1__["default"](obj.conversation.type, obj.conversation.target, obj.conversation.line);
        }

        // in
        msg.direction = 1;
        msg.status = _messageStatus__WEBPACK_IMPORTED_MODULE_7__["default"].Unread;
        if (msg.content.mentionedType === 2) {
          msg.status = _messageStatus__WEBPACK_IMPORTED_MODULE_7__["default"].AllMentioned;
        } else if (msg.content.mentionedType === 1) {
          for (const target of msg.content.mentionedTarget) {
            if (target === _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserId()) {
              msg.status = _messageStatus__WEBPACK_IMPORTED_MODULE_7__["default"].Mentioned;
              break;
            }
          }
        }
      }
      return msg;
    }
  }
  static messageContentFromMessagePayload(payload, from) {
    let contentClazz = _client_messageConfig__WEBPACK_IMPORTED_MODULE_4__["default"].getMessageContentClazz(payload.type);
    contentClazz = contentClazz ? contentClazz : _messages_unsupportMessageConten__WEBPACK_IMPORTED_MODULE_12__["default"];
    let content = new contentClazz();
    content.decode(payload);
    let selfUid = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserId();
    if (content instanceof _notification_notificationMessageContent__WEBPACK_IMPORTED_MODULE_2__["default"]) {
      if (content instanceof _messages_notification_recallMessageNotification__WEBPACK_IMPORTED_MODULE_13__["default"]) {
        if (content.operatorId === selfUid) {
          content.fromSelf = true;
        }
      } else if (from === selfUid) {
        content.fromSelf = true;
      }
    }
    return content;
  }
  static toMessagePayload(message) {
    return message.messageContent.encode();
  }
}

/***/ }),

/***/ "./src/wfc/messages/messageContent.js":
/*!********************************************!*\
  !*** ./src/wfc/messages/messageContent.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messagePayload__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messagePayload */ "./src/wfc/messages/messagePayload.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class MessageContent {
  constructor(type, mentionedType = 0, mentionedTargets = []) {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", void 0);
    //0 普通消息, 1 部分提醒, 2 提醒全部
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "mentionedType", 0);
    //提醒对象，mentionedType 1时有效
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "mentionedTargets", []);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "pushContent", void 0);
    this.type = type;
    this.mentionedType = mentionedType;
    this.mentionedTargets = mentionedTargets;
  }
  digest(message) {
    return "...digest...";
  }

  /**
   * return MessagePayload in json format
   */
  encode() {
    let payload = new _messagePayload__WEBPACK_IMPORTED_MODULE_1__["default"]();
    payload.type = this.type;
    payload.mentionedType = this.mentionedType;
    payload.mentionedTargets = this.mentionedTargets;
    payload.extra = this.extra;
    return payload;
  }

  /**
   *
   * @param {object} payload object json.parse from message#content
   */
  decode(payload) {
    this.type = payload.type;
    this.mentionedType = payload.mentionedType;
    if (payload.hasOwnProperty("mentionedTarget")) {
      // web
      this.mentionedTargets = payload.mentionedTarget;
    } else {
      // pc
      this.mentionedTargets = payload.mentionedTargets;
    }
    this.extra = payload.extra;
    this.pushContent = payload.pushContent;
  }
}

/***/ }),

/***/ "./src/wfc/messages/messageContentMediaType.js":
/*!*****************************************************!*\
  !*** ./src/wfc/messages/messageContentMediaType.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MessageContentMediaType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class MessageContentMediaType {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentMediaType, "General", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentMediaType, "Image", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentMediaType, "Voice", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentMediaType, "Video", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentMediaType, "File", 4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentMediaType, "Portrait", 5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentMediaType, "Favorite", 6);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentMediaType, "Sticker", 7);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentMediaType, "Moments", 8);

/***/ }),

/***/ "./src/wfc/messages/messageContentType.js":
/*!************************************************!*\
  !*** ./src/wfc/messages/messageContentType.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MessageContentType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */
class MessageContentType {}
// 基本消息类型
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Unknown", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Text", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Voice", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Image", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Location", 4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "File", 5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Video", 6);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Sticker", 7);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Link", 8);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "P_Text", 9);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "UserCard", 10);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Composite_Message", 11);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Rich_Notification", 12);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Articles", 13);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Mark_Unread_Sync", 31);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "StartSecretChat_Notification", 40);
//频道进出消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Enter_Channel_Chat", 71);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Leave_Channel_Chat", 72);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Channel_Menu_Event", 73);
// 提醒消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "RecallMessage_Notification", 80);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "DeleteMessage_Notification", 81);
//不存储的
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Tip_Notification", 90);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Typing", 91);
// //以上是打招呼的内容
// int ContentType_Friend_Greeting = 92;
// //您已经添加XXX为好友了，可以愉快地聊天了
// int ContentType_Friend_Added = 93;
//
// int ContentType_PC_LOGIN_REQUSET = 94;
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Friend_Greeting", 92);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "Friend_Added", 93);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "PC_Login_Request", 94);
// 群相关消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "CreateGroup_Notification", 104);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "AddGroupMember_Notification", 105);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "KickOffGroupMember_Notification", 106);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "QuitGroup_Notification", 107);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "DismissGroup_Notification", 108);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "TransferGroupOwner_Notification", 109);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "ChangeGroupName_Notification", 110);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "ModifyGroupAlias_Notification", 111);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "ChangeGroupPortrait_Notification", 112);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "MuteGroup_Notification", 113);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "ChangeJoinType_Notification", 114);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "ChangePrivateChat_Notification", 115);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "ChangeSearchable_Notification", 116);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "SetGroupManager_Notification", 117);
//禁言/取消禁言群成员的通知消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "MuteGroupMember_Notification", 118);
// 全局禁言之后，允许群成员发言的通知消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "AllowGroupMember_Notification", 119);
//踢出群成员的可见通知消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "KickOffGroupMember_Visible_Notification", 120);
//退群的可见通知消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "QuitGroup_Visible_Notification", 121);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "ModifyGroupExtra_Notification", 122);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "ModifyGroupMemberExtra_Notification", 123);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "ModifyGroupSetting_Notification", 124);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_CONTENT_TYPE_START", 400);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_CONTENT_TYPE_END", 402);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_CONTENT_TYPE_ACCEPT", 401);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_CONTENT_TYPE_SIGNAL", 403);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_CONTENT_TYPE_MODIFY", 404);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_CONTENT_TYPE_ACCEPT_T", 405);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_CONTENT_TYPE_ADD_PARTICIPANT", 406);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_CONTENT_TYPE_MUTE_VIDEO", 407);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "CONFERENCE_CONTENT_TYPE_INVITE", 408);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "CONFERENCE_CONTENT_TYPE_CHANGE_MODE", 410);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "CONFERENCE_CONTENT_TYPE_KICKOFF_MEMBER", 411);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "CONFERENCE_CONTENT_TYPE_COMMAND", 412);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_Multi_Call_Ongoing", 416);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "VOIP_Join_Call_Request", 417);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "MESSAGE_CONTENT_TYPE_FEED", 501);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageContentType, "MESSAGE_CONTENT_TYPE_COMMENT", 502);

/***/ }),

/***/ "./src/wfc/messages/messagePayload.js":
/*!********************************************!*\
  !*** ./src/wfc/messages/messagePayload.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MessagePayload; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

/**
 *
 "content": {
            "type": 1,
            "searchableContent": "1234",
            "pushContent": "",
            "content": "",
            "binaryContent": "",
            "localContent": "",
            "mediaType": 0,
            "remoteMediaUrl": "",
            "localMediaPath": "",
            "mentionedType": 0,
            "mentionedTargets": [ ]
        },
 */
class MessagePayload {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "searchableContent", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "pushContent", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "pushData", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "content", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "binaryContent", void 0);
    // base64 string, 图片时，不包含头部信息:data:image/png;base64,
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "localContent", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "mediaType", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "remoteMediaUrl", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "localMediaPath", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "mentionedType", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "mentionedTargets", []);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/messages/messageStatus.js":
/*!*******************************************!*\
  !*** ./src/wfc/messages/messageStatus.js ***!
  \*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MessageStatus; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class MessageStatus {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageStatus, "All", -1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageStatus, "Sending", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageStatus, "Sent", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageStatus, "SendFailure", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageStatus, "Mentioned", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageStatus, "AllMentioned", 4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageStatus, "Unread", 5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageStatus, "Readed", 6);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MessageStatus, "Played", 7);

/***/ }),

/***/ "./src/wfc/messages/notification/addGroupMemberNotification.js":
/*!*********************************************************************!*\
  !*** ./src/wfc/messages/notification/addGroupMemberNotification.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AddGroupMemberNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");



/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class AddGroupMemberNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_5__["default"] {
  constructor(invitor, invitees) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_4__["default"].AddGroupMember_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "invitor", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "invitees", []);
    this.invitor = invitor;
    this.invitees = invitees;
  }
  formatNotification() {
    let notifyStr;
    if (this.invitees.length === 1 && this.invitees[0] === this.invitor) {
      if (this.fromSelf) {
        return "您加入了群组";
      } else {
        return _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getGroupMemberDisplayName(this.groupId, this.invitor) + " 加入了群组";
      }
    }
    if (this.fromSelf) {
      notifyStr = "您邀请:";
    } else {
      notifyStr = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getGroupMemberDisplayName(this.groupId, this.invitor) + "邀请:";
    }
    let membersStr = "";
    let userInfos = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserInfos(this.invitees, this.groupId);
    userInfos.forEach(m => {
      membersStr += " " + m.displayName;
    });
    return notifyStr + membersStr + "加入了群组";
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.invitor,
      ms: this.invitees
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.invitor = obj.o;
    this.invitees = obj.ms;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/allowGroupMemberNotification.js":
/*!***********************************************************************!*\
  !*** ./src/wfc/messages/notification/allowGroupMemberNotification.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AllowGroupMemberNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");



/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class AllowGroupMemberNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(operator, type, memberIds) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_4__["default"].MuteGroupMember_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "groupId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", void 0);
    // 操作类型，1允许发言，0禁止发言
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberIds", void 0);
    this.operator = operator;
    this.type = type;
    this.memberIds = memberIds;
  }
  formatNotification(message) {
    let notifyStr = "";
    if (this.fromSelf) {
      notifyStr += "您";
    } else {
      notifyStr += _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].getGroupMemberDisplayName(this.groupId, this.operator);
    }
    notifyStr += "把";
    if (this.memberIds) {
      this.memberIds.forEach(memberId => {
        notifyStr += " ";
        notifyStr += _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].getGroupMemberDisplayName(this.groupId, memberId);
      });
    }
    if (this.type === 0) {
      notifyStr += "取消群禁言时发言权限";
    } else {
      notifyStr += "允许群禁言时发言";
    }
    return notifyStr;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator,
      n: this.type + "",
      ms: this.memberIds
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.type = parseInt(obj.n);
    this.memberIds = obj.ms;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/changeGroupNameNotification.js":
/*!**********************************************************************!*\
  !*** ./src/wfc/messages/notification/changeGroupNameNotification.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ChangeGroupNameNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class ChangeGroupNameNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(operator, name) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].ChangeGroupName_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "name", "");
    this.operator = operator;
    this.name = name;
  }
  formatNotification() {
    if (this.fromSelf) {
      return "您修改群名称为：" + this.name;
    } else {
      return _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getGroupMemberDisplayName(this.groupId, this.operator) + "修改群名称为：" + this.name;
    }
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      n: this.name,
      o: this.operator
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.name = obj.n;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/changeGroupPortraitNotification.js":
/*!**************************************************************************!*\
  !*** ./src/wfc/messages/notification/changeGroupPortraitNotification.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ChangeGroupPortraitNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class ChangeGroupPortraitNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(operator) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].ChangeGroupPortrait_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    this.operator = operator;
  }
  formatNotification() {
    if (this.fromSelf) {
      return "您修改群头像";
    } else {
      return _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getGroupMemberDisplayName(this.groupId, this.operator) + "修改了群头像";
    }
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      n: this.name
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/createGroupNotification.js":
/*!******************************************************************!*\
  !*** ./src/wfc/messages/notification/createGroupNotification.js ***!
  \******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CreateGroupNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class CreateGroupNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(creator, groupName) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].CreateGroup_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "creator", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "groupName", "");
    this.creator = creator;
    this.groupName = groupName;
  }
  formatNotification() {
    if (this.fromSelf) {
      return "您创建了群组 " + this.groupName;
    } else {
      return _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getUserDisplayName(this.creator) + "创建了群组 " + this.groupName;
    }
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      n: this.groupName,
      o: this.creator
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.creator = obj.o;
    this.groupName = obj.n;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/dismissGroupNotification.js":
/*!*******************************************************************!*\
  !*** ./src/wfc/messages/notification/dismissGroupNotification.js ***!
  \*******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DismissGroupNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class DismissGroupNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(operator) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].DismissGroup_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    this.operator = operator;
  }
  formatNotification() {
    if (this.fromSelf) {
      return "您解散了群组";
    } else {
      return _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getGroupMemberDisplayName(this.groupId, this.operator) + "解散了群组";
    }
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/friendAddedNotification.js":
/*!******************************************************************!*\
  !*** ./src/wfc/messages/notification/friendAddedNotification.js ***!
  \******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FriendAddedNotification; });
/* harmony import */ var _notificationMessageContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class FriendAddedNotification extends _notificationMessageContent__WEBPACK_IMPORTED_MODULE_0__["default"] {
  constructor() {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_1__["default"].Friend_Added);
  }
  formatNotification() {
    return "你们已经是好友了，可以开始聊天了。";
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/friendGreetingNotification.js":
/*!*********************************************************************!*\
  !*** ./src/wfc/messages/notification/friendGreetingNotification.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FriendGreetingNotification; });
/* harmony import */ var _notificationMessageContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/*
 * Copyright (c) 2022 WildFireChat. All rights reserved.
 */



class FriendGreetingNotification extends _notificationMessageContent__WEBPACK_IMPORTED_MODULE_0__["default"] {
  constructor() {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_1__["default"].Friend_Greeting);
  }
  formatNotification(message) {
    return "以上是打招呼的内容";
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/groupJoinTypeNotificationContent.js":
/*!***************************************************************************!*\
  !*** ./src/wfc/messages/notification/groupJoinTypeNotificationContent.js ***!
  \***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupJoinTypeNotificationContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class GroupJoinTypeNotificationContent extends _groupNotification__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(operator, joinType) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].ChangeJoinType_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", void 0);
    //在group type为Restricted时，0 开放加入权限（群成员可以拉人，用户也可以主动加入）；1 只能群成员拉人入群；2 只能群管理拉人入群
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "joinType", void 0);
    this.operator = operator;
    this.type = joinType;
  }
  formatNotification(message) {
    let notifyStr;
    if (this.fromSelf) {
      notifyStr = "您";
    } else {
      notifyStr = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getGroupMemberDisplayName(this.groupId, this.operator);
    }
    switch (this.joinType) {
      case 0:
        notifyStr += " 开放了加入群组功能";
        break;
      case 1:
        notifyStr += " 仅允许群成员邀请加入群组";
        break;
      case 2:
        notifyStr += " 关闭了加入群组功能";
        break;
      default:
        break;
    }
    return notifyStr;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator,
      n: this.joinType + ""
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].utf8_to_b64(JSON.stringify(obj));
    return super.encode();
  }
  decode(payload) {
    super.decode(payload);
    let obj = JSON.parse(_client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].b64_to_utf8(payload.binaryContent));
    this.groupId = obj.g;
    this.operator = obj.o;
    this.joinType = parseInt(obj.n);
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/groupMuteNotificationContent.js":
/*!***********************************************************************!*\
  !*** ./src/wfc/messages/notification/groupMuteNotificationContent.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupMuteNotificationContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class GroupMuteNotificationContent extends _groupNotification__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(operator, muteType) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].MuteGroup_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", void 0);
    //0 正常；1 全局禁言
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "muteType", void 0);
    this.operator = operator;
    this.muteType = muteType;
  }
  formatNotification(message) {
    // return sb.toString();
    let notifyStr = this.fromSelf ? "您" : _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getGroupMemberDisplayName(this.groupId, this.operator);
    notifyStr += this.muteType === 0 ? " 关闭了全员禁言" : " 开启了全员禁言";
    return notifyStr;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator,
      n: this.muteType + ""
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let obj = JSON.parse(_client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent));
    this.groupId = obj.g;
    this.operator = obj.o;
    this.muteType = parseInt(obj.n);
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/groupNotification.js":
/*!************************************************************!*\
  !*** ./src/wfc/messages/notification/groupNotification.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupNotificationContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _notificationMessageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class GroupNotificationContent extends _notificationMessageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(type) {
    super(type);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "groupId", "");
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/groupPrivateChatNotificationContent.js":
/*!******************************************************************************!*\
  !*** ./src/wfc/messages/notification/groupPrivateChatNotificationContent.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupPrivateChatNotificationContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class GroupPrivateChatNotificationContent extends _groupNotification__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(operator, privateChatType) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].ChangePrivateChat_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", void 0);
    //是否运行群中普通成员私聊。0 允许，1不允许
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "privateChatType", void 0);
    this.operator = operator;
    this.privateChatType = privateChatType;
  }
  formatNotification(message) {
    // return sb.toString();
    let notifyStr = this.fromSelf ? "您" : _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getGroupMemberDisplayName(this.groupId, this.operator);
    notifyStr += this.privateChatType === 0 ? " 开启了成员私聊" : " 关闭了成员私聊";
    return notifyStr;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator,
      n: this.privateChatType + ""
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let obj = JSON.parse(_client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent));
    this.groupId = obj.g;
    this.operator = obj.o;
    this.privateChatType = parseInt(obj.n);
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/groupSetManagerNotificationContent.js":
/*!*****************************************************************************!*\
  !*** ./src/wfc/messages/notification/groupSetManagerNotificationContent.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupSetManagerNotificationContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");



/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class GroupSetManagerNotificationContent extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(operator, setManagerType, memberIds) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_4__["default"].SetGroupManager_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", void 0);
    // 1, 设置为管理员；0，取消管理员
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "setManagerType", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberIds", []);
    this.operator = operator;
    this.setManagerType = setManagerType;
    this.memberIds = memberIds;
  }
  formatNotification(message) {
    let notifyStr = this.fromSelf ? "您" : _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].getGroupMemberDisplayName(this.groupId, this.operator);
    notifyStr += "把 ";
    this.memberIds.forEach(memberId => {
      notifyStr += " ";
      notifyStr += _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].getGroupMemberDisplayName(this.groupId, memberId);
    });
    notifyStr += " ";
    notifyStr += this.setManagerType === 0 ? "取消了管理员" : "设置为了管理员";
    return notifyStr;
  }
  encode() {
    // MessagePayload payload = new MessagePayload();
    // try {
    //     JSONObject objWrite = new JSONObject();
    //     objWrite.put("g", groupId);
    //     objWrite.put("o", operator);
    //     objWrite.put("n", type + "");
    //     JSONArray objArray = new JSONArray();
    //     for (String id : memberIds) {
    //         objArray.put(id);
    //     }
    //     objWrite.put("ms", objArray);
    //     payload.binaryContent = objWrite.toString().getBytes();
    // } catch (JSONException e) {
    //     e.printStackTrace();
    // }
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator,
      n: this.setManagerType + "",
      ms: this.memberIds
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let obj = JSON.parse(_client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].b64_to_utf8(payload.binaryContent));
    this.groupId = obj.g;
    this.operator = obj.o;
    this.setManagerType = parseInt(obj.n);
    this.memberIds = obj.ms;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/kickoffGroupMemberNotification.js":
/*!*************************************************************************!*\
  !*** ./src/wfc/messages/notification/kickoffGroupMemberNotification.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return KickoffGroupMemberNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");



/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class KickoffGroupMemberNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_5__["default"] {
  constructor(operator, kickedMembers) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_4__["default"].KickOffGroupMember_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "kickedMembers", []);
    this.operator = operator;
    this.kickedMembers = kickedMembers;
  }
  formatNotification() {
    let notifyStr;
    if (this.fromSelf) {
      notifyStr = "您把 ";
    } else {
      notifyStr = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getGroupMemberDisplayName(this.groupId, this.operator) + "把 ";
    }
    let kickedMembersStr = "";
    let userInfos = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserInfos(this.kickedMembers, this.groupId);
    userInfos.forEach(userInfo => {
      if (userInfo.uid === _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserId()) {
        kickedMembersStr += " 您";
      } else {
        kickedMembersStr += " " + userInfo.displayName;
      }
    });
    return notifyStr + kickedMembersStr + " 移除了群组";
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      ms: this.kickedMembers,
      o: this.operateUser
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.kickedMembers = obj.ms;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/kickoffGroupMemberVisiableNotification.js":
/*!*********************************************************************************!*\
  !*** ./src/wfc/messages/notification/kickoffGroupMemberVisiableNotification.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return KickoffGroupMemberVisiableNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");



/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class KickoffGroupMemberVisiableNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_5__["default"] {
  constructor(operator, kickedMembers) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_4__["default"].KickOffGroupMember_Visible_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "kickedMembers", []);
    this.operator = operator;
    this.kickedMembers = kickedMembers;
  }
  formatNotification() {
    let notifyStr;
    if (this.fromSelf) {
      notifyStr = "您把 ";
    } else {
      notifyStr = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getGroupMemberDisplayName(this.groupId, this.operator) + "把 ";
    }
    let kickedMembersStr = "";
    let userInfos = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserInfos(this.kickedMembers, this.groupId);
    userInfos.forEach(userInfo => {
      if (userInfo.uid === _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserId()) {
        kickedMembersStr += " 您";
      } else {
        kickedMembersStr += " " + userInfo.displayName;
      }
    });
    return notifyStr + kickedMembersStr + " 移除了群组";
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      ms: this.kickedMembers,
      o: this.operateUser
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.kickedMembers = obj.ms;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/modifyGroupAliasNotification.js":
/*!***********************************************************************!*\
  !*** ./src/wfc/messages/notification/modifyGroupAliasNotification.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ModifyGroupAliasNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class ModifyGroupAliasNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(creator, alias) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].ModifyGroupAlias_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "alias", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberId", "");
    this.operator = creator;
    this.alias = alias;
  }
  formatNotification() {
    let notificationStr = "";
    if (this.fromSelf) {
      notificationStr += "你";
    } else {
      let userInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getUserInfo(this.operator, false, this.groupId);
      if (userInfo.friendAlias) {
        notificationStr += userInfo.friendAlias;
      } else if (userInfo.displayName) {
        notificationStr += userInfo.displayName;
      } else {
        notificationStr += this.operator;
      }
    }
    notificationStr += "修改";
    if (this.memberId) {
      let userInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getUserInfo(this.memberId, false);
      if (userInfo.friendAlias) {
        notificationStr += userInfo.friendAlias;
      } else if (userInfo.displayName) {
        notificationStr += userInfo.displayName;
      } else {
        notificationStr += this.memberId;
      }
      notificationStr += "的";
    }
    notificationStr += "群昵称为";
    notificationStr += this.alias;
    return notificationStr;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      n: this.alias,
      o: this.operator,
      m: this.memberId
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.alias = obj.n;
    this.memberId = obj.m;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/modifyGroupExtraNotification.js":
/*!***********************************************************************!*\
  !*** ./src/wfc/messages/notification/modifyGroupExtraNotification.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ModifyGroupExtraNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class ModifyGroupExtraNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(creator, groupExtra) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].ModifyGroupExtra_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "groupExtra", "");
    this.operator = creator;
    this.groupExtra = groupExtra;
  }
  formatNotification() {
    let notificationStr = "";
    if (this.fromSelf) {
      notificationStr += "你";
    } else {
      let userInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getUserInfo(this.operator, false, this.groupId);
      if (userInfo.friendAlias) {
        notificationStr += userInfo.friendAlias;
      } else if (userInfo.displayName) {
        notificationStr += userInfo.displayName;
      } else {
        notificationStr += this.operator;
      }
    }
    notificationStr += "修改";
    notificationStr += "群附加信息为";
    notificationStr += this.groupExtra;
    return notificationStr;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      n: this.groupExtra,
      o: this.operator
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.groupExtra = obj.n;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/modifyGroupMemberExtraNotification.js":
/*!*****************************************************************************!*\
  !*** ./src/wfc/messages/notification/modifyGroupMemberExtraNotification.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ModifyGroupMemberExtraNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class ModifyGroupMemberExtraNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(creator, groupMemberExtra) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].ModifyGroupMemberExtra_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "groupMemberExtra", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberId", "");
    this.operator = creator;
    this.groupMemberExtra = groupMemberExtra;
  }
  formatNotification() {
    let notificationStr = "";
    if (this.fromSelf) {
      notificationStr += "你";
    } else {
      let userInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getUserInfo(this.operator, false, this.groupId);
      if (userInfo.friendAlias) {
        notificationStr += userInfo.friendAlias;
      } else if (userInfo.displayName) {
        notificationStr += userInfo.displayName;
      } else {
        notificationStr += this.operator;
      }
    }
    notificationStr += "修改";
    if (this.memberId) {
      let userInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getUserInfo(this.memberId, false);
      if (userInfo.friendAlias) {
        notificationStr += userInfo.friendAlias;
      } else if (userInfo.displayName) {
        notificationStr += userInfo.displayName;
      } else {
        notificationStr += this.memberId;
      }
      notificationStr += "的";
    }
    notificationStr += "群成员信息为";
    notificationStr += this.groupMemberExtra;
    return notificationStr;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      n: this.groupMemberExtra,
      o: this.operator,
      m: this.memberId
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.groupMemberExtra = obj.n;
    this.memberId = obj.m;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/modifyGroupSettingNotification.js":
/*!*************************************************************************!*\
  !*** ./src/wfc/messages/notification/modifyGroupSettingNotification.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ModifyGroupSettingNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2023 WildFireChat. All rights reserved.
 */




class ModifyGroupSettingNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(settingType, settingValue) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].ModifyGroupSetting_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    //修改设置类型。7为修改是否查看历史消息；8为修改群最大成员数，9为修改是否为超级群
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "settingType", 0);
    //修改后的值
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "settingValue", "");
    this.settingType = settingType;
    this.settingValue = settingValue;
  }
  formatNotification() {
    return "";
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      n: this.settingType,
      o: this.operator,
      m: this.settingValue
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.alias = obj.n;
    this.memberId = obj.m;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/muteGroupMemberNotification.js":
/*!**********************************************************************!*\
  !*** ./src/wfc/messages/notification/muteGroupMemberNotification.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MuteGroupMemberNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");



/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class MuteGroupMemberNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(operator, muteType, memberIds) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_4__["default"].MuteGroupMember_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "groupId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", void 0);
    // 操作类型，1禁言，0取消禁言
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "muteType", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberIds", void 0);
    this.operator = operator;
    this.muteType = muteType;
    this.memberIds = memberIds;
  }
  formatNotification(message) {
    let notifyStr = "";
    if (this.fromSelf) {
      notifyStr += "您";
    } else {
      notifyStr += _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].getGroupMemberDisplayName(this.groupId, this.operator);
    }
    notifyStr += "把";
    if (this.memberIds) {
      this.memberIds.forEach(memberId => {
        notifyStr += " ";
        notifyStr += _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].getGroupMemberDisplayName(this.groupId, memberId);
      });
    }
    if (this.muteType === 1) {
      notifyStr += "设置了禁言";
    } else {
      notifyStr += "取消了禁言";
    }
    return notifyStr;
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator,
      n: this.muteType + "",
      ms: this.memberIds
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_5__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.muteType = parseInt(obj.n);
    this.memberIds = obj.ms;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/notificationMessageContent.js":
/*!*********************************************************************!*\
  !*** ./src/wfc/messages/notification/notificationMessageContent.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return NotificationMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../messageContent */ "./src/wfc/messages/messageContent.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class NotificationMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(type) {
    super(type);
    // message#protoMessageToMessage时设置
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "fromSelf", false);
  }
  digest(message) {
    var desc = "";
    try {
      desc = this.formatNotification(message);
    } catch (error) {
      console.log("disgest", error);
    }
    return desc;
  }
  formatNotification(message) {
    return "..nofication..";
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/quitGroupNotification.js":
/*!****************************************************************!*\
  !*** ./src/wfc/messages/notification/quitGroupNotification.js ***!
  \****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return QuitGroupNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class QuitGroupNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(operator) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].QuitGroup_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    this.operator = operator;
  }
  formatNotification() {
    if (this.fromSelf) {
      return "您退出了群组";
    } else {
      return _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getGroupMemberDisplayName(this.groupId, this.operator) + "退出了群组";
    }
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/quitGroupVisiableNotification.js":
/*!************************************************************************!*\
  !*** ./src/wfc/messages/notification/quitGroupVisiableNotification.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return QuitVisiableGroupNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class QuitVisiableGroupNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(operator) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].QuitGroup_Visible_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    this.operator = operator;
  }
  formatNotification() {
    if (this.fromSelf) {
      return "您退出了群组";
    } else {
      return _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getGroupMemberDisplayName(this.groupId, this.operator) + "退出了群组";
    }
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/recallMessageNotification.js":
/*!********************************************************************!*\
  !*** ./src/wfc/messages/notification/recallMessageNotification.js ***!
  \********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return RecallMessageNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _notificationMessageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! long */ "./node_modules/long/src/long.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(long__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _model_conversationType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../model/conversationType */ "./src/wfc/model/conversationType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */






class RecallMessageNotification extends _notificationMessageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(operatorId, messageUid) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].RecallMessage_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operatorId", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messageUid", new long__WEBPACK_IMPORTED_MODULE_4___default.a(0));
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "originalSender", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "originalContentType", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "originalSearchableContent", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "originalContent", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "originalExtra", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "originalMessageTimestamp", void 0);
    this.operatorId = operatorId;
    this.messageUid = messageUid;
  }
  formatNotification(message) {
    if (this.operatorId === _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getUserId()) {
      return "你撤回了一条消息";
    }
    if (message.conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group) {
      return _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getGroupMemberDisplayName(message.conversation.target, this.operatorId) + "撤回了一条消息";
    } else {
      return _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getUserDisplayName(this.operatorId) + "撤回了一条消息";
    }
  }
  encode() {
    let payload = super.encode();
    payload.content = this.operatorId;
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].utf8_to_b64(this.messageUid.toString());
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.operatorId = payload.content;
    this.messageUid = long__WEBPACK_IMPORTED_MODULE_4___default.a.fromString(_client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].b64_to_utf8(payload.binaryContent));
    try {
      this.setExtra(payload.extra);
    } catch (e) {
      console.error("decode recallMessage extra error", e);
    }
  }
  setExtra(extra) {
    if (extra) {
      extra = extra.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t");
      let obj = JSON.parse(extra);
      this.originalSender = obj["s"];
      this.originalContentType = obj["t"];
      this.originalSearchableContent = obj["sc"];
      this.originalContent = obj["c"];
      this.originalExtra = obj["e"];
      this.originalMessageTimestamp = long__WEBPACK_IMPORTED_MODULE_4___default.a.fromValue(obj["ts"]);
    }
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/richNotificationMessageContent.js":
/*!*************************************************************************!*\
  !*** ./src/wfc/messages/notification/richNotificationMessageContent.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return RichNotificationMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _notificationMessageContent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class RichNotificationMessageContent extends _notificationMessageContent__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor() {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].Rich_Notification);
    // 富通知消息
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "title", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "desc", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "remark", void 0);
    // @[@{@"key":@"登陆账户", @"value":@"野火IM", @"color":@"#173155"}, @{@"key":@"登陆地点", @"value":@"北京", @"color":@"#173155"}]
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "datas", void 0);
    // 附加信息
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "exName", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "exPortrait", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "exUrl", void 0);
    // 应用信息
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "appId", void 0);
  }
  formatNotification() {
    return this.title;
  }
  encode() {
    let payload = super.encode();
    payload.pushContent = this.title;
    payload.content = this.desc;
    let obj = {
      remark: this.remark,
      exName: this.exName,
      exPortrait: this.exPortrait,
      exUrl: this.exUrl,
      appId: this.appId,
      datas: this.datas
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.title = payload.pushContent;
    this.desc = payload.content;
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.remark = obj.remark;
    this.exName = obj.exName;
    this.exPortrait = obj.exPortrait;
    this.exUrl = obj.exUrl;
    this.appId = obj.appId;
    this.datas = obj.datas;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/startSecretChatNotification.js":
/*!**********************************************************************!*\
  !*** ./src/wfc/messages/notification/startSecretChatNotification.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return StartSecretChatNotification; });
/* harmony import */ var _notificationMessageContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _model_secretChatState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/secretChatState */ "./src/wfc/model/secretChatState.js");
/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */





class StartSecretChatNotification extends _notificationMessageContent__WEBPACK_IMPORTED_MODULE_0__["default"] {
  constructor() {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_1__["default"].StartSecretChat_Notification);
  }
  formatNotification(message) {
    let state = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getSecretChatInfo(message.conversation.target).state;
    if (state === _model_secretChatState__WEBPACK_IMPORTED_MODULE_3__["default"].Starting) {
      return "等待对方响应";
    } else if (state === _model_secretChatState__WEBPACK_IMPORTED_MODULE_3__["default"].Accepting) {
      return "密聊会话建立中";
    } else if (state === _model_secretChatState__WEBPACK_IMPORTED_MODULE_3__["default"].Established) {
      return "密聊会话已建立";
    } else if (state === _model_secretChatState__WEBPACK_IMPORTED_MODULE_3__["default"].Canceled) {
      return "密聊会话已取消";
    } else {
      return "密聊会话不可用";
    }
  }
  encode() {
    return super.encode();
  }
  decode(payload) {
    super.decode(payload);
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/tipNotification.js":
/*!**********************************************************!*\
  !*** ./src/wfc/messages/notification/tipNotification.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return TipNotificationMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _notificationMessageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notificationMessageContent */ "./src/wfc/messages/notification/notificationMessageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class TipNotificationMessageContent extends _notificationMessageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(tip) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].Tip_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "tip", "");
    this.tip = tip;
  }
  formatNotification() {
    return this.tip;
  }
  digest() {
    return this.tip;
  }
  encode() {
    let payload = super.encode();
    payload.content = this.tip;
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.tip = payload.content;
  }
}

/***/ }),

/***/ "./src/wfc/messages/notification/transferGroupOwnerNotification.js":
/*!*************************************************************************!*\
  !*** ./src/wfc/messages/notification/transferGroupOwnerNotification.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return TransferGroupOwnerNotification; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _groupNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./groupNotification */ "./src/wfc/messages/notification/groupNotification.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class TransferGroupOwnerNotification extends _groupNotification__WEBPACK_IMPORTED_MODULE_3__["default"] {
  constructor(operator, newOwner) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].TransferGroupOwner_Notification);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "operator", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "newOwner", "");
    this.operator = operator;
    this.newOwner = newOwner;
  }
  formatNotification() {
    if (this.fromSelf) {
      return "您把群转让给了 " + _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getGroupMemberDisplayName(this.groupId, this.newOwner);
    } else {
      return _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getGroupMemberDisplayName(this.groupId, this.operator) + "把群转让给了 " + _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getGroupMemberDisplayName(this.groupId, this.newOwner);
    }
  }
  encode() {
    let payload = super.encode();
    let obj = {
      g: this.groupId,
      o: this.operator,
      m: this.newOwner
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let json = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].b64_to_utf8(payload.binaryContent);
    let obj = JSON.parse(json);
    this.groupId = obj.g;
    this.operator = obj.o;
    this.newOwner = obj.m;
  }
}

/***/ }),

/***/ "./src/wfc/messages/persistFlag.js":
/*!*****************************************!*\
  !*** ./src/wfc/messages/persistFlag.js ***!
  \*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PersistFlag; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class PersistFlag {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PersistFlag, "No_Persist", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PersistFlag, "Persist", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PersistFlag, "Persist_And_Count", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PersistFlag, "Transparent", 4);

/***/ }),

/***/ "./src/wfc/messages/ptextMessageContent.js":
/*!*************************************************!*\
  !*** ./src/wfc/messages/ptextMessageContent.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PTextMessageContent; });
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _textMessageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./textMessageContent */ "./src/wfc/messages/textMessageContent.js");
/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class PTextMessageContent extends _textMessageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(content, mentionedType = 0, mentionedTargets = []) {
    super(content, mentionedType, mentionedTargets);
    this.type = _messageContentType__WEBPACK_IMPORTED_MODULE_0__["default"].P_Text;
  }
}

/***/ }),

/***/ "./src/wfc/messages/soundMessageContent.js":
/*!*************************************************!*\
  !*** ./src/wfc/messages/soundMessageContent.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return SoundMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _mediaMessageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mediaMessageContent */ "./src/wfc/messages/mediaMessageContent.js");
/* harmony import */ var _messageContentMediaType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentMediaType */ "./src/wfc/messages/messageContentMediaType.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class SoundMessageContent extends _mediaMessageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(fileOrLocalPath, remotePath, duration) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].Voice, _messageContentMediaType__WEBPACK_IMPORTED_MODULE_2__["default"].Voice, fileOrLocalPath, remotePath);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "duration", void 0);
    this.duration = duration;
  }
  digest() {
    return "[语音]";
  }
  encode() {
    let payload = super.encode();
    payload.mediaType = _messageContentMediaType__WEBPACK_IMPORTED_MODULE_2__["default"].Voice;
    let obj = {
      duration: this.duration
    };
    payload.content = JSON.stringify(obj);
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let obj = JSON.parse(payload.content);
    this.duration = obj.duration;
  }
}

/***/ }),

/***/ "./src/wfc/messages/stickerMessageContent.js":
/*!***************************************************!*\
  !*** ./src/wfc/messages/stickerMessageContent.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return StickerMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContentMediaType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContentMediaType */ "./src/wfc/messages/messageContentMediaType.js");
/* harmony import */ var _mediaMessageContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mediaMessageContent */ "./src/wfc/messages/mediaMessageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */





class StickerMessageContent extends _mediaMessageContent__WEBPACK_IMPORTED_MODULE_2__["default"] {
  constructor(filerOrLocalPath, remotePath, width, height) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].Sticker, _messageContentMediaType__WEBPACK_IMPORTED_MODULE_1__["default"].Sticker, filerOrLocalPath, remotePath);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "width", 200);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "height", 200);
    this.width = width;
    this.height = height;
  }
  digest() {
    return "[表情]";
  }
  encode() {
    let payload = super.encode();
    payload.mediaType = _messageContentMediaType__WEBPACK_IMPORTED_MODULE_1__["default"].File;
    let obj = {
      x: this.width,
      y: this.height
    };
    payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_4__["default"].utf8_to_b64(JSON.stringify(obj));
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    let obj = JSON.parse(_client_wfc__WEBPACK_IMPORTED_MODULE_4__["default"].b64_to_utf8(payload.binaryContent));
    this.width = obj.x;
    this.height = obj.y;
  }
}

/***/ }),

/***/ "./src/wfc/messages/textMessageContent.js":
/*!************************************************!*\
  !*** ./src/wfc/messages/textMessageContent.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return TextMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _model_quoteInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../model/quoteInfo */ "./src/wfc/model/quoteInfo.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */





class TextMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(content, mentionedType = 0, mentionedTargets = []) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].Text, mentionedType, mentionedTargets);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "content", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "quoteInfo", void 0);
    this.content = content;
  }
  digest() {
    return this.content;
  }
  encode() {
    let payload = super.encode();
    payload.searchableContent = this.content;
    if (this.quoteInfo) {
      let obj = {
        quote: this.quoteInfo.encode()
      };
      // JSON.parse 和 JSON.stringify 不能处理java long
      let orgStr = JSON.stringify(obj);
      let str = orgStr.replace(/"u":"([0-9]+)"/, '"u":$1');
      payload.binaryContent = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].utf8_to_b64(str);
    }
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.content = payload.searchableContent;
    if (payload.binaryContent && payload.binaryContent.length > 0) {
      // JSON.parse 和 JSON.stringify 不能处理java long
      let quoteInfoStr = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].b64_to_utf8(payload.binaryContent);
      // FIXME node 环境，decodeURIComponent 方法，有时候会在最后添加上@字符，目前尚未找到原因，先规避
      quoteInfoStr = quoteInfoStr.substring(0, quoteInfoStr.lastIndexOf("}") + 1);
      quoteInfoStr = quoteInfoStr.replace(/"u":([0-9]+),/, '"u":"$1",');
      let obj = JSON.parse(quoteInfoStr).quote;
      this.quoteInfo = new _model_quoteInfo__WEBPACK_IMPORTED_MODULE_4__["default"]();
      this.quoteInfo.decode(obj);
    }
  }
  setQuoteInfo(quoteInfo) {
    this.quoteInfo = quoteInfo;
  }
}

/***/ }),

/***/ "./src/wfc/messages/typingMessageContent.js":
/*!**************************************************!*\
  !*** ./src/wfc/messages/typingMessageContent.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return TypingMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class TypingMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(type) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].Typing);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "typingType", TypingMessageContent.TYPING_TEXT);
    this.typingType = type;
  }
  digest() {
    return this.content;
  }
  encode() {
    let payload = super.encode();
    payload.content = this.typingType + "";
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.typingType = parseInt(payload.content);
  }
}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(TypingMessageContent, "TYPING_TEXT", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(TypingMessageContent, "TYPING_VOICE", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(TypingMessageContent, "TYPING_CAMERA", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(TypingMessageContent, "TYPING_LOCATION", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(TypingMessageContent, "TYPING_FILE", 4);

/***/ }),

/***/ "./src/wfc/messages/unknownMessageContent.js":
/*!***************************************************!*\
  !*** ./src/wfc/messages/unknownMessageContent.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return UnknownMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



class UnknownMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(originalPayload) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_2__["default"].Unknown);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "originalPayload", void 0);
    this.originalPayload = originalPayload;
  }
  encode() {
    return this.originalPayload;
  }
  decode(paylaod) {
    this.originalPayload = paylaod;
  }
  digest() {
    return "未知类型消息";
  }
}

/***/ }),

/***/ "./src/wfc/messages/unsupportMessageConten.js":
/*!****************************************************!*\
  !*** ./src/wfc/messages/unsupportMessageConten.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return UnsupportMessageContent; });
/* harmony import */ var _messageContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./messageContent */ "./src/wfc/messages/messageContent.js");
/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class UnsupportMessageContent extends _messageContent__WEBPACK_IMPORTED_MODULE_0__["default"] {
  digest() {
    return "尚不支持该类型消息, 请手机查看 : " + this.type;
  }
}

/***/ }),

/***/ "./src/wfc/messages/videoMessageContent.js":
/*!*************************************************!*\
  !*** ./src/wfc/messages/videoMessageContent.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VideoMessageContent; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _mediaMessageContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mediaMessageContent */ "./src/wfc/messages/mediaMessageContent.js");
/* harmony import */ var _messageContentMediaType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./messageContentMediaType */ "./src/wfc/messages/messageContentMediaType.js");
/* harmony import */ var _messageContentType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./messageContentType */ "./src/wfc/messages/messageContentType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */




class VideoMessageContent extends _mediaMessageContent__WEBPACK_IMPORTED_MODULE_1__["default"] {
  constructor(fileOrLocalPath, remotePath, thumbnail, duration = 0) {
    super(_messageContentType__WEBPACK_IMPORTED_MODULE_3__["default"].Video, _messageContentMediaType__WEBPACK_IMPORTED_MODULE_2__["default"].Video, fileOrLocalPath, remotePath);
    // base64 encoded
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "thumbnail", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "duration", void 0);
    this.thumbnail = thumbnail;
    this.duration = duration;
  }
  digest() {
    return "[视频]";
  }
  encode() {
    let payload = super.encode();
    payload.binaryContent = this.thumbnail;
    let obj = {
      d: this.duration,
      duration: this.duration
    };
    payload.content = JSON.stringify(obj);
    payload.mediaType = _messageContentMediaType__WEBPACK_IMPORTED_MODULE_2__["default"].Video;
    return payload;
  }
  decode(payload) {
    super.decode(payload);
    this.thumbnail = payload.binaryContent;
    if (payload.content) {
      let obj = JSON.parse(payload.content);
      this.duration = obj.d;
      if (this.duration === undefined) {
        this.duration = obj.duration;
      }
    }
  }
}

/***/ }),

/***/ "./src/wfc/model/NullChannelInfo.js":
/*!******************************************!*\
  !*** ./src/wfc/model/NullChannelInfo.js ***!
  \******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return NullChannelInfo; });
/* harmony import */ var _channelInfo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./channelInfo */ "./src/wfc/model/channelInfo.js");
/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class NullChannelInfo extends _channelInfo__WEBPACK_IMPORTED_MODULE_0__["default"] {
  constructor(channelId) {
    super();
    this.channelId = channelId;
    this.name = `<${channelId}>`;
  }
}

/***/ }),

/***/ "./src/wfc/model/channelInfo.js":
/*!**************************************!*\
  !*** ./src/wfc/model/channelInfo.js ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ChannelInfo; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class ChannelInfo {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "channelId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "name", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "portrait", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "desc", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "owner", void 0);
    // 0, public; 1, private; 2, destoryed
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "status", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "updateDt", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "menus", void 0);
  }
}
//第0位表示是否允许查看用户所有信息，还是只允许看用户id，用户名称，用户昵称和用户头像
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ChannelInfo, "StatusMaskFullInfo", 0x01);
//第1位表示是否允许查看非订阅用户信息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ChannelInfo, "StatusMaskUnsubscribedUserAccess", 0x02);
//第2位表示是否允许主动添加用户订阅关系
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ChannelInfo, "StatusMaskActiveSubscribe", 0x04);
//第3位表示是否允许给非订阅用户发送消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ChannelInfo, "StatusMaskMessageUnsubscribed", 0x08);
//第4位表示是否私有
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ChannelInfo, "StatusMaskPrivate", 0x10);
//第6位表示是否删除
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ChannelInfo, "StatusMaskDeleted", 0x40);
//第8位表示是否全局频道，全局平道发送消息时，会广播给系统所有人
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ChannelInfo, "StatusMaskGlobal", 0x80);

/***/ }),

/***/ "./src/wfc/model/channelMenu.js":
/*!**************************************!*\
  !*** ./src/wfc/model/channelMenu.js ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ChannelMenu; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

class ChannelMenu {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "menuId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "name", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "key", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "url", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "mediaId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "articleId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "appId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "appPage", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "subMenus", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/chatRoomInfo.js":
/*!***************************************!*\
  !*** ./src/wfc/model/chatRoomInfo.js ***!
  \***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ChatRoomInfo; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class ChatRoomInfo {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "chatRoomId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "title", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "desc", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "portrait", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", void 0);
    // 0, normal; 1, not start; 2, end
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "state", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberCount", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "createDt", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "updateDt", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/chatRoomMemberInfo.js":
/*!*********************************************!*\
  !*** ./src/wfc/model/chatRoomMemberInfo.js ***!
  \*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ChatRoomMemberInfo; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class ChatRoomMemberInfo {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberCount", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "members", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/conversation.js":
/*!***************************************!*\
  !*** ./src/wfc/model/conversation.js ***!
  \***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Conversation; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _conversationType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./conversationType */ "./src/wfc/model/conversationType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



/**
 *
 "conversation":{
            "conversationType": 0,
            "target": "UZUWUWuu",
            "line": 0,
        }
 */
class Conversation {
  constructor(type, target, line = 0) {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", _conversationType__WEBPACK_IMPORTED_MODULE_1__["default"].Single);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "conversationType", this.type);
    // 这行是为了做一个兼容处理
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "target", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "line", 0);
    this.type = type;
    this.conversationType = type;
    this.target = target;
    this.line = line;
  }
  equal(conversation) {
    if (!conversation) {
      return false;
    }
    return this.type === conversation.type && this.target === conversation.target && this.line === conversation.line;
  }
}

/***/ }),

/***/ "./src/wfc/model/conversationInfo.js":
/*!*******************************************!*\
  !*** ./src/wfc/model/conversationInfo.js ***!
  \*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ConversationInfo; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _conversation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./conversation */ "./src/wfc/model/conversation.js");
/* harmony import */ var _messages_message__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../messages/message */ "./src/wfc/messages/message.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _util_longUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/longUtil */ "./src/wfc/util/longUtil.js");
/* harmony import */ var _conversationType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./conversationType */ "./src/wfc/model/conversationType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */






class ConversationInfo {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "conversation", {});
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "lastMessage", {});
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "timestamp", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "draft", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "unreadCount", {});
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "top", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "isSilent", false);
    // TODO cache, maybe userInfo, groupInfo
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "target", void 0);
  }
  static protoConversationToConversationInfo(obj) {
    let conversationInfo = Object.assign(new ConversationInfo(), obj);
    conversationInfo.top = obj.isTop;
    delete conversationInfo.isTop;
    if (obj.conversation) {
      conversationInfo.conversation = new _conversation__WEBPACK_IMPORTED_MODULE_1__["default"](obj.conversation.type, obj.conversation.target, obj.conversation.line);
    } else {
      conversationInfo.conversation = new _conversation__WEBPACK_IMPORTED_MODULE_1__["default"](obj.conversationType, obj.target, obj.line);
    }
    conversationInfo.lastMessage = _messages_message__WEBPACK_IMPORTED_MODULE_2__["default"].fromProtoMessage(obj.lastMessage);
    if (!conversationInfo.timestamp) {
      conversationInfo.timestamp = 0;
    }
    return conversationInfo;
  }
  portrait() {
    let portrait = "";
    switch (this.conversation.type) {
      case _conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Single:
        let u = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserInfo(this.conversation.target, false);
        portrait = u.portrait;
        break;
      case _conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group:
        let g = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getGroupInfo(this.conversation.target, false);
        portrait = g.portrait;
        break;
      case _conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Channel:
        break;
      case _conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].ChatRoom:
        break;
      default:
        break;
    }
    return portrait;
  }
  title() {
    let targetName = this.conversation.target;
    switch (this.conversation.type) {
      case _conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Single:
        targetName = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getUserDisplayName(this.conversation.target);
        break;
      case _conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group:
        let g = _client_wfc__WEBPACK_IMPORTED_MODULE_3__["default"].getGroupInfo(this.conversation.target, false);
        targetName = g.name;
        break;
      case _conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].ChatRoom:
        break;
      case _conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Channel:
        break;
      default:
        break;
    }
    return targetName;
  }
  static equals(info1, info2) {
    if (!info1 || !info2) {
      return false;
    }
    if (!info1.conversation.equal(info2.conversation)) {
      return false;
    }
    let unreadCount1 = info1.unreadCount;
    let unreadCount2 = info2.unreadCount;
    if (unreadCount1.unread !== unreadCount2.unread || unreadCount1.unreadMention !== unreadCount2.unreadMention || unreadCount1.unreadMentionAll !== unreadCount2.unreadMentionAll) {
      return false;
    }
    if (info1.lastMessage && !info2.lastMessage || !info1.lastMessage && info2.lastMessage) {
      return false;
    }
    if (info1.lastMessage && info2.lastMessage && info1.lastMessage.messageId !== info2.lastMessage.messageId) {
      return false;
    }
    // 其他的应当都会反应在timestamp上
    return Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_4__["eq"])(info1.timestamp, info2.timestamp) && info1.draft === info2.draft;
  }
}

/***/ }),

/***/ "./src/wfc/model/conversationType.js":
/*!*******************************************!*\
  !*** ./src/wfc/model/conversationType.js ***!
  \*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ConversationType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class ConversationType {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConversationType, "Single", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConversationType, "Group", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConversationType, "ChatRoom", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConversationType, "Channel", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ConversationType, "SecretChat", 5);

/***/ }),

/***/ "./src/wfc/model/fileRecord.js":
/*!*************************************!*\
  !*** ./src/wfc/model/fileRecord.js ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FileRecord; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class FileRecord {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "userId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "conversation", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messageUid", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "name", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "url", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "size", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "downloadCount", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "timestamp", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/friend.js":
/*!*********************************!*\
  !*** ./src/wfc/model/friend.js ***!
  \*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Friend; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class Friend {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "userId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "alias", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "timestamp", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/friendRequest.js":
/*!****************************************!*\
  !*** ./src/wfc/model/friendRequest.js ***!
  \****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FriendRequest; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class FriendRequest {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "direction", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "target", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "reason", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", void 0);
    //    RequestStatus_Sent = 0,
    //    RequestStatus_Accepted = 1,
    //    RequestStatus_Rejected = 3
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "status", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "readStatus", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "timestamp", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/groupInfo.js":
/*!************************************!*\
  !*** ./src/wfc/model/groupInfo.js ***!
  \************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupInfo; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _groupType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./groupType */ "./src/wfc/model/groupType.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



/*
public String target;
    public String name;
    public String portrait;
    public String owner;
    public GroupType type;
    public int memberCount;
    public String extra;
    public long updateDt
    */

class GroupInfo {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "target", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "name", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "portrait", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "owner", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", _groupType__WEBPACK_IMPORTED_MODULE_1__["default"].Normal);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberCount", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "remark", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "updateDt", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberUpdateDt", 0);
    //0 正常；1 全局禁言
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "mute", 0);
    //在group type为Restricted时，0 开放加入权限（群成员可以拉人，用户也可以主动加入）；1 只能群成员拉人入群；2 只能群管理拉人入群
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "joinType", 0);
    //是否运行群中普通成员私聊。0 允许，1不允许
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "privateChat", 0);
    //是否是超级群组
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "superGroup", 0);
    //是否可以搜索到该群，功能暂未实现
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "searchable", void 0);
    //是否可以查看群历史消息, 0 不允许，1允许。仅专业版有效
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "historyMessage", void 0);
    //群最大成员数。仅专业版有效
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "maxMemberCount", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/groupMember.js":
/*!**************************************!*\
  !*** ./src/wfc/model/groupMember.js ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupMember; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class GroupMember {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "groupId", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "memberId", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "alias", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "updateDt", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "createDt", 0);
  }
  getName() {
    let u = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getUserInfo(this.memberId);
    return u.displayName;
  }
  getPortrait() {
    let u = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getUserInfo(this.memberId);
    return u.portrait;
  }
}

/***/ }),

/***/ "./src/wfc/model/groupMemberType.js":
/*!******************************************!*\
  !*** ./src/wfc/model/groupMemberType.js ***!
  \******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupMemberType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class GroupMemberType {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupMemberType, "Normal", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupMemberType, "Manager", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupMemberType, "Owner", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupMemberType, "Muted", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupMemberType, "Removed", 4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupMemberType, "Allowed", 5);

/***/ }),

/***/ "./src/wfc/model/groupSearchResult.js":
/*!********************************************!*\
  !*** ./src/wfc/model/groupSearchResult.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupSearchResult; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _groupInfo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./groupInfo */ "./src/wfc/model/groupInfo.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class GroupSearchResult {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "groupInfo", void 0);
    //0 march group name, 1 march group member name, 2 both
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "matchType", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "matchMembers", []);
  }
  static fromProtoGroupSearchResult(obj) {
    let groupSearchResult = new GroupSearchResult();
    groupSearchResult.groupInfo = Object.assign(new _groupInfo__WEBPACK_IMPORTED_MODULE_1__["default"](), obj.groupInfo);
    groupSearchResult.matchType = obj.marchedType;
    groupSearchResult.matchMembers = obj.marchedMemberNames;
    return groupSearchResult;
  }
}

/***/ }),

/***/ "./src/wfc/model/groupType.js":
/*!************************************!*\
  !*** ./src/wfc/model/groupType.js ***!
  \************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GroupType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class GroupType {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupType, "Normal", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupType, "Free", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupType, "Restricted", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(GroupType, "Organization", 3);

/***/ }),

/***/ "./src/wfc/model/internal/friendInfo.js":
/*!**********************************************!*\
  !*** ./src/wfc/model/internal/friendInfo.js ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FriendInfo; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class FriendInfo {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "uid", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "updateDt", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "state", 0);
    // 0, 正常；1，无关系；2 黑名单
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "alias", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "blacked", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", "");
  }
}

/***/ }),

/***/ "./src/wfc/model/modifyGroupInfoType.js":
/*!**********************************************!*\
  !*** ./src/wfc/model/modifyGroupInfoType.js ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ModifyGroupInfoType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class ModifyGroupInfoType {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ModifyGroupInfoType, "Modify_Group_Name", 0);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ModifyGroupInfoType, "Modify_Group_Portrait", 1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ModifyGroupInfoType, "Modify_Group_Extra", 2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ModifyGroupInfoType, "Modify_Group_Mute", 3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ModifyGroupInfoType, "Modify_Group_JoinType", 4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ModifyGroupInfoType, "Modify_Group_PrivateChat", 5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ModifyGroupInfoType, "Modify_Group_Searchable", 6);

/***/ }),

/***/ "./src/wfc/model/nullGroupInfo.js":
/*!****************************************!*\
  !*** ./src/wfc/model/nullGroupInfo.js ***!
  \****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return NullGroupInfo; });
/* harmony import */ var _groupInfo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./groupInfo */ "./src/wfc/model/groupInfo.js");
/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class NullGroupInfo extends _groupInfo__WEBPACK_IMPORTED_MODULE_0__["default"] {
  constructor(groupId) {
    super();
    this.target = groupId;
    // this.name = '<' + groupId+ '>';
    this.name = "群聊";
  }
}

/***/ }),

/***/ "./src/wfc/model/nullUserInfo.js":
/*!***************************************!*\
  !*** ./src/wfc/model/nullUserInfo.js ***!
  \***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return NullUserInfo; });
/* harmony import */ var _userInfo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./userInfo */ "./src/wfc/model/userInfo.js");
/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class NullUserInfo extends _userInfo__WEBPACK_IMPORTED_MODULE_0__["default"] {
  constructor(userId) {
    super();
    this.uid = userId;
    //this.name = '<' + userId + '>';
    this.name = "用户";
    this.displayName = this.name;
    this.portrait = "";
  }
}

/***/ }),

/***/ "./src/wfc/model/quoteInfo.js":
/*!************************************!*\
  !*** ./src/wfc/model/quoteInfo.js ***!
  \************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return QuoteInfo; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _util_longUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/longUtil */ "./src/wfc/util/longUtil.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! long */ "./node_modules/long/src/long.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(long__WEBPACK_IMPORTED_MODULE_3__);




class QuoteInfo {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messageUid", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "userId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "userDisplayName", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "messageDigest", void 0);
  }
  static initWithMessage(message) {
    let info = new QuoteInfo();
    if (message) {
      info.messageUid = message.messageUid;
      info.userId = message.from;
      let userInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_1__["default"].getUserInfo(message.from, false);
      info.userDisplayName = userInfo.displayName;
      info.messageDigest = message.messageContent.digest();
      if (info.messageDigest.length > 48) {
        info.messageDigest = info.messageDigest.substr(0, 48);
      }
    }
    return info;
  }
  encode() {
    let obj = {
      u: Object(_util_longUtil__WEBPACK_IMPORTED_MODULE_2__["stringValue"])(this.messageUid),
      i: this.userId,
      n: this.userDisplayName,
      d: this.messageDigest
    };
    return obj;
  }
  decode(obj) {
    if (obj.messageUid) {
      this.messageUid = long__WEBPACK_IMPORTED_MODULE_3___default.a.fromValue(obj.messageUid);
      this.userId = obj.userId;
      this.userDisplayName = obj.userDisplayName;
      this.messageDigest = obj.messageDigest;
    } else {
      this.messageUid = long__WEBPACK_IMPORTED_MODULE_3___default.a.fromValue(obj.u || obj.messageUid);
      this.userId = obj.i;
      this.userDisplayName = obj.n;
      this.messageDigest = obj.d;
    }
  }
}

/***/ }),

/***/ "./src/wfc/model/readEntry.js":
/*!************************************!*\
  !*** ./src/wfc/model/readEntry.js ***!
  \************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ReadEntry; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class ReadEntry {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "userId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "conversation", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "readTime", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/searchType.js":
/*!*************************************!*\
  !*** ./src/wfc/model/searchType.js ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return SearchType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class SearchType {}
//模糊搜索displayName，精确搜索name或电话号码
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(SearchType, "General", 0);
//精确搜索name或电话号码
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(SearchType, "NameOrMobile", 1);
//精确搜索name
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(SearchType, "Name", 2);
//精确搜索电话号码
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(SearchType, "Mobile", 3);

/***/ }),

/***/ "./src/wfc/model/secretChatState.js":
/*!******************************************!*\
  !*** ./src/wfc/model/secretChatState.js ***!
  \******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return SecretChatState; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

class SecretChatState {}
//密聊会话建立中
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(SecretChatState, "Starting", 0);
//密聊会话接受中
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(SecretChatState, "Accepting", 1);
//密聊会话已建立
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(SecretChatState, "Established", 2);
//密聊会话已取消
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(SecretChatState, "Canceled", 3);

/***/ }),

/***/ "./src/wfc/model/unreadCount.js":
/*!**************************************!*\
  !*** ./src/wfc/model/unreadCount.js ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return UnreadCount; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class UnreadCount {
  constructor() {
    // 单聊未读数
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "unread", 0);
    // 群聊@数
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "unreadMention", 0);
    // 群聊@All数
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "unreadMentionAll", 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/userClientState.js":
/*!******************************************!*\
  !*** ./src/wfc/model/userClientState.js ***!
  \******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return UserClientState; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class UserClientState {
  constructor() {
    /**
       Platform_UNSET = 0;
       Platform_iOS = 1;
       Platform_Android = 2;
       Platform_Windows = 3;
       Platform_OSX = 4;
       Platform_WEB = 5;
       Platform_WX = 6;
       Platform_LINUX = 7;
       Platform_iPad = 8;
       Platform_APad = 9;
       */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "platform", void 0);
    //设备的在线状态，0是在线，1是有session但不在线，其它不在线。
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "state", void 0);
    //最后可见
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "lastSeen", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/userCustomState.js":
/*!******************************************!*\
  !*** ./src/wfc/model/userCustomState.js ***!
  \******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return UserCustomState; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class UserCustomState {
  constructor() {
    //0，未设置，1 忙碌，2 离开（主动设置），3 离开（长时间不操作），4 隐身，其它可以自主扩展。
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "state", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "text", void 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/userInfo.js":
/*!***********************************!*\
  !*** ./src/wfc/model/userInfo.js ***!
  \***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return UserInfo; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

/*
{
    "uid": "uiuJuJcc", 
    "name": "13888888888", 
    "displayName": "imndx", 
    "gender": 0, 
    "portrait": "https://avatars.io/gravatar/uiuJuJcc", 
    "mobile": "13888888888", 
    "email": "", 
    "address": "", 
    "company": "", 
    "social": "", 
    "extra": "", 
    "type": -472579968, 
    "updateDt": 1550652404513
}

*/
class UserInfo {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "uid", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "name", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "displayName", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "groupAlias", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "friendAlias", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "gender", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "portrait", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "mobile", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "email", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "address", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "social", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extra", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", 0);
    //0 normal; 1 robot; 2 thing;
    //0 normal; 1 deleted;
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "deleted", 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "updateDt", 0);
  }
}

/***/ }),

/***/ "./src/wfc/model/userOnlineState.js":
/*!******************************************!*\
  !*** ./src/wfc/model/userOnlineState.js ***!
  \******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return UserOnlineState; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);



/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */

class UserOnlineState {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "userId", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "customState", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "clientStates", void 0);
  }
  // 手机在线、web在线、pc在线
  desc() {
    if (this.customState.state > 0) {
      //0，未设置，1 忙碌，2 离开（主动设置），3 离开（长时间不操作），4 隐身，其它可以自主扩展。
      let cs = ["未设置", "忙碌", "离开(主动离开)", "离开(长时间未操作)", "隐身"];
      return this.customState.text + cs[this.customState.state];
    }
    let onlineClientDesc = "";
    let lastSeenDesc = "";
    this.clientStates.forEach(s => {
      //
      // /**
      //  Platform_UNSET = 0;
      //  Platform_iOS = 1;
      //  Platform_Android = 2;
      //  Platform_Windows = 3;
      //  Platform_OSX = 4;
      //  Platform_WEB = 5;
      //  Platform_WX = 6;
      //  Platform_LINUX = 7;
      //  Platform_iPad = 8;
      //  Platform_APad = 9;
      //  */
      // platform;
      //
      // //设备的在线状态，0是在线，1是有session但不在线，其它不在线。
      // state;
      //
      // //最后可见
      // lastSeen;

      let ps = ["", "iOS", "Android", "Windows", "mac", "Web", "小程序", "Linux", "iPad", "Android-Pad"];
      if (s.state === 0) {
        onlineClientDesc += ps[s.platform] + " ";
      } else if ([1, 2, 8, 9].indexOf(s.platform) >= 0) {
        // TODO
        lastSeenDesc += ps[s.platform] + " ";
      }
    });
    if (onlineClientDesc.trim()) {
      return onlineClientDesc + "在线";
    } else if (lastSeenDesc.trim()) {
      return lastSeenDesc + "不久前在线";
    }
    //return '不在线';
    return "";
  }
}

/***/ }),

/***/ "./src/wfc/model/userSettingEntry.js":
/*!*******************************************!*\
  !*** ./src/wfc/model/userSettingEntry.js ***!
  \*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return UserSettingEntry; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var _client_userSettingScope__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../client/userSettingScope */ "./src/wfc/client/userSettingScope.js");

/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */


class UserSettingEntry {
  constructor() {
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "scope", _client_userSettingScope__WEBPACK_IMPORTED_MODULE_1__["default"].kUserSettingCustomBegin);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "key", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "value", "");
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "updateDt", 0);
  }
}

/***/ }),

/***/ "./src/wfc/proto/proto.min.js":
/*!************************************!*\
  !*** ./src/wfc/proto/proto.min.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");__webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");__webpack_require__(/*! core-js/modules/es.array.reduce.js */ "./node_modules/core-js/modules/es.array.reduce.js");__webpack_require__(/*! core-js/modules/es.array-buffer.detached.js */ "./node_modules/core-js/modules/es.array-buffer.detached.js");__webpack_require__(/*! core-js/modules/es.array-buffer.transfer.js */ "./node_modules/core-js/modules/es.array-buffer.transfer.js");__webpack_require__(/*! core-js/modules/es.array-buffer.transfer-to-fixed-length.js */ "./node_modules/core-js/modules/es.array-buffer.transfer-to-fixed-length.js");__webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ "./node_modules/core-js/modules/es.iterator.constructor.js");__webpack_require__(/*! core-js/modules/es.iterator.drop.js */ "./node_modules/core-js/modules/es.iterator.drop.js");__webpack_require__(/*! core-js/modules/es.iterator.filter.js */ "./node_modules/core-js/modules/es.iterator.filter.js");__webpack_require__(/*! core-js/modules/es.iterator.find.js */ "./node_modules/core-js/modules/es.iterator.find.js");__webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ "./node_modules/core-js/modules/es.iterator.for-each.js");__webpack_require__(/*! core-js/modules/es.iterator.map.js */ "./node_modules/core-js/modules/es.iterator.map.js");__webpack_require__(/*! core-js/modules/es.iterator.reduce.js */ "./node_modules/core-js/modules/es.iterator.reduce.js");__webpack_require__(/*! core-js/modules/es.iterator.to-array.js */ "./node_modules/core-js/modules/es.iterator.to-array.js");__webpack_require__(/*! core-js/modules/es.reflect.to-string-tag.js */ "./node_modules/core-js/modules/es.reflect.to-string-tag.js");__webpack_require__(/*! core-js/modules/es.regexp.flags.js */ "./node_modules/core-js/modules/es.regexp.flags.js");__webpack_require__(/*! core-js/modules/es.typed-array.at.js */ "./node_modules/core-js/modules/es.typed-array.at.js");__webpack_require__(/*! core-js/modules/es.typed-array.find-last.js */ "./node_modules/core-js/modules/es.typed-array.find-last.js");__webpack_require__(/*! core-js/modules/es.typed-array.find-last-index.js */ "./node_modules/core-js/modules/es.typed-array.find-last-index.js");__webpack_require__(/*! core-js/modules/es.typed-array.set.js */ "./node_modules/core-js/modules/es.typed-array.set.js");__webpack_require__(/*! core-js/modules/es.typed-array.to-reversed.js */ "./node_modules/core-js/modules/es.typed-array.to-reversed.js");__webpack_require__(/*! core-js/modules/es.typed-array.to-sorted.js */ "./node_modules/core-js/modules/es.typed-array.to-sorted.js");__webpack_require__(/*! core-js/modules/es.typed-array.with.js */ "./node_modules/core-js/modules/es.typed-array.with.js");__webpack_require__(/*! core-js/modules/web.dom-exception.stack.js */ "./node_modules/core-js/modules/web.dom-exception.stack.js");__webpack_require__(/*! core-js/modules/web.immediate.js */ "./node_modules/core-js/modules/web.immediate.js");__webpack_require__(/*! core-js/modules/web.self.js */ "./node_modules/core-js/modules/web.self.js");!function(j0,j1){if(true)module.exports=j1(__webpack_require__(/*! ../../config.js */ "./src/config.js"),__webpack_require__(/*! ../util/longUtil */ "./src/wfc/util/longUtil.js"),__webpack_require__(/*! ../client/messageConfig */ "./src/wfc/client/messageConfig.js"),__webpack_require__(/*! ../messages/mediaMessageContent */ "./src/wfc/messages/mediaMessageContent.js"),__webpack_require__(/*! ../messages/messageContentType */ "./src/wfc/messages/messageContentType.js"),__webpack_require__(/*! ../messages/messageStatus */ "./src/wfc/messages/messageStatus.js"),__webpack_require__(/*! ../messages/persistFlag */ "./src/wfc/messages/persistFlag.js"),__webpack_require__(/*! ../model/channelInfo */ "./src/wfc/model/channelInfo.js"),__webpack_require__(/*! ../model/conversation */ "./src/wfc/model/conversation.js"),__webpack_require__(/*! ../model/conversationType */ "./src/wfc/model/conversationType.js"),__webpack_require__(/*! ../model/groupInfo */ "./src/wfc/model/groupInfo.js"),__webpack_require__(/*! ../model/groupMemberType */ "./src/wfc/model/groupMemberType.js"),__webpack_require__(/*! ../model/nullGroupInfo */ "./src/wfc/model/nullGroupInfo.js"),__webpack_require__(/*! ../model/nullUserInfo */ "./src/wfc/model/nullUserInfo.js"),__webpack_require__(/*! ../model/userInfo */ "./src/wfc/model/userInfo.js"),__webpack_require__(/*! ../client/userSettingScope */ "./src/wfc/client/userSettingScope.js"),__webpack_require__(/*! ../model/conversationInfo */ "./src/wfc/model/conversationInfo.js"),__webpack_require__(/*! ../model/internal/friendInfo */ "./src/wfc/model/internal/friendInfo.js"),__webpack_require__(/*! ../model/NullChannelInfo */ "./src/wfc/model/NullChannelInfo.js"),__webpack_require__(/*! ../../wfc/util/base64.min */ "./src/wfc/util/base64.min.js"),__webpack_require__(/*! ../messages/message */ "./src/wfc/messages/message.js"),__webpack_require__(/*! ../messages/notification/recallMessageNotification */ "./src/wfc/messages/notification/recallMessageNotification.js"),__webpack_require__(/*! ../model/chatRoomMemberInfo */ "./src/wfc/model/chatRoomMemberInfo.js"),__webpack_require__(/*! ../model/friendRequest */ "./src/wfc/model/friendRequest.js"),__webpack_require__(/*! ../model/groupMember */ "./src/wfc/model/groupMember.js"),__webpack_require__(/*! ../client/wfcEvent */ "./src/wfc/client/wfcEvent.js"),__webpack_require__(/*! ../model/unreadCount */ "./src/wfc/model/unreadCount.js"),__webpack_require__(/*! ../model/friend */ "./src/wfc/model/friend.js"),__webpack_require__(/*! ../model/groupSearchResult */ "./src/wfc/model/groupSearchResult.js"),__webpack_require__(/*! ../client/connectionStatus */ "./src/wfc/client/connectionStatus.js"),__webpack_require__(/*! ../model/userSettingEntry */ "./src/wfc/model/userSettingEntry.js"),__webpack_require__(/*! ../client/errorCode */ "./src/wfc/client/errorCode.js"),__webpack_require__(/*! ../model/chatRoomInfo */ "./src/wfc/model/chatRoomInfo.js"),__webpack_require__(/*! ../model/readEntry */ "./src/wfc/model/readEntry.js"),__webpack_require__(/*! ../model/fileRecord */ "./src/wfc/model/fileRecord.js"),__webpack_require__(/*! ../util/base64.min */ "./src/wfc/util/base64.min.js"),__webpack_require__(/*! ../messages/markUnreadMessageContent */ "./src/wfc/messages/markUnreadMessageContent.js"),__webpack_require__(/*! ../model/userOnlineState */ "./src/wfc/model/userOnlineState.js"),__webpack_require__(/*! ../model/userClientState */ "./src/wfc/model/userClientState.js"),__webpack_require__(/*! ../model/userCustomState */ "./src/wfc/model/userCustomState.js"),__webpack_require__(/*! ../model/channelMenu */ "./src/wfc/model/channelMenu.js"),__webpack_require__(/*! ../messages/compositeMessageContent */ "./src/wfc/messages/compositeMessageContent.js"));else { var j3, j2; }}(window,function(__WEBPACK_EXTERNAL_MODULE__92__,__WEBPACK_EXTERNAL_MODULE__125__,__WEBPACK_EXTERNAL_MODULE__160__,__WEBPACK_EXTERNAL_MODULE__161__,__WEBPACK_EXTERNAL_MODULE__162__,__WEBPACK_EXTERNAL_MODULE__163__,__WEBPACK_EXTERNAL_MODULE__164__,__WEBPACK_EXTERNAL_MODULE__165__,__WEBPACK_EXTERNAL_MODULE__166__,__WEBPACK_EXTERNAL_MODULE__167__,__WEBPACK_EXTERNAL_MODULE__168__,__WEBPACK_EXTERNAL_MODULE__169__,__WEBPACK_EXTERNAL_MODULE__170__,__WEBPACK_EXTERNAL_MODULE__171__,__WEBPACK_EXTERNAL_MODULE__172__,__WEBPACK_EXTERNAL_MODULE__173__,__WEBPACK_EXTERNAL_MODULE__174__,__WEBPACK_EXTERNAL_MODULE__175__,__WEBPACK_EXTERNAL_MODULE__176__,__WEBPACK_EXTERNAL_MODULE__268__,__WEBPACK_EXTERNAL_MODULE__371__,__WEBPACK_EXTERNAL_MODULE__372__,__WEBPACK_EXTERNAL_MODULE__373__,__WEBPACK_EXTERNAL_MODULE__374__,__WEBPACK_EXTERNAL_MODULE__375__,__WEBPACK_EXTERNAL_MODULE__376__,__WEBPACK_EXTERNAL_MODULE__379__,__WEBPACK_EXTERNAL_MODULE__381__,__WEBPACK_EXTERNAL_MODULE__382__,__WEBPACK_EXTERNAL_MODULE__384__,__WEBPACK_EXTERNAL_MODULE__385__,__WEBPACK_EXTERNAL_MODULE__395__,__WEBPACK_EXTERNAL_MODULE__396__,__WEBPACK_EXTERNAL_MODULE__397__,__WEBPACK_EXTERNAL_MODULE__398__,__WEBPACK_EXTERNAL_MODULE__399__,__WEBPACK_EXTERNAL_MODULE__400__,__WEBPACK_EXTERNAL_MODULE__401__,__WEBPACK_EXTERNAL_MODULE__402__,__WEBPACK_EXTERNAL_MODULE__403__,__WEBPACK_EXTERNAL_MODULE__404__,__WEBPACK_EXTERNAL_MODULE__405__){return function(j0){var j1={};function j2(j3){if(j1[j3])return j1[j3].exports;var j4=j1[j3]={i:j3,l:!1,exports:{}};return j0[j3].call(j4.exports,j4,j4.exports,j2),j4.l=!0,j4.exports;}return j2.m=j0,j2.c=j1,j2.d=function(j0,j1,j3){j2.o(j0,j1)||Object.defineProperty(j0,j1,{enumerable:!0,get:j3});},j2.r=function(j0){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(j0,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j0,"__esModule",{value:!0});},j2.t=function(j0,j1){if(1&j1&&(j0=j2(j0)),8&j1)return j0;if(4&j1&&"object"==typeof j0&&j0&&j0.__esModule)return j0;var j3=Object.create(null);if(j2.r(j3),Object.defineProperty(j3,"default",{enumerable:!0,value:j0}),2&j1&&"string"!=typeof j0)for(var j4 in j0)j2.d(j3,j4,function(j1){return j0[j1];}.bind(null,j4));return j3;},j2.n=function(j0){var j1=j0&&j0.__esModule?function(){return j0.default;}:function(){return j0;};return j2.d(j1,"a",j1),j1;},j2.o=function(j0,j1){return Object.prototype.hasOwnProperty.call(j0,j1);},j2.p="",j2(j2.s=182);}([function(j0,j1,j2){var j3;j0.exports=(j3=j3||function(j0,j1){var j2=Object.create||function(){function j0(){}return function(j1){var j2;return j0.prototype=j1,j2=new j0(),j0.prototype=null,j2;};}(),j3={},j4=j3.lib={},j5=j4.Base={extend:function(j0){var j1=j2(this);return j0&&j1.mixIn(j0),j1.hasOwnProperty("init")&&this.init!==j1.init||(j1.init=function(){j1.$super.init.apply(this,arguments);}),j1.init.prototype=j1,j1.$super=this,j1;},create:function(){var j0=this.extend();return j0.init.apply(j0,arguments),j0;},init:function(){},mixIn:function(j0){for(var j1 in j0)j0.hasOwnProperty(j1)&&(this[j1]=j0[j1]);j0.hasOwnProperty("toString")&&(this.toString=j0.toString);},clone:function(){return this.init.prototype.extend(this);}},j6=j4.WordArray=j5.extend({init:function(j0,j2){j0=this.words=j0||[],this.sigBytes=j2!=j1?j2:4*j0.length;},toString:function(j0){return(j0||j8).stringify(this);},concat:function(j0){var j1=this.words,j2=j0.words,j3=this.sigBytes,j4=j0.sigBytes;if(this.clamp(),j3%4)for(var j5=0;j5<j4;j5++){var j6=j2[j5>>>2]>>>24-j5%4*8&255;j1[j3+j5>>>2]|=j6<<24-(j3+j5)%4*8;}else for(j5=0;j5<j4;j5+=4)j1[j3+j5>>>2]=j2[j5>>>2];return this.sigBytes+=j4,this;},clamp:function(){var j1=this.words,j2=this.sigBytes;j1[j2>>>2]&=4294967295<<32-j2%4*8,j1.length=j0.ceil(j2/4);},clone:function(){var j0=j5.clone.call(this);return j0.words=this.words.slice(0),j0;},random:function(j1){for(var j2,j3=[],j4=function(j1){j1=j1;var j2=987654321,j3=4294967295;return function(){var j4=((j2=36969*(65535&j2)+(j2>>16)&j3)<<16)+(j1=18e3*(65535&j1)+(j1>>16)&j3)&j3;return j4/=4294967296,(j4+=.5)*(j0.random()>.5?1:-1);};},j5=0;j5<j1;j5+=4){var j7=j4(4294967296*(j2||j0.random()));j2=987654071*j7(),j3.push(4294967296*j7()|0);}return new j6.init(j3,j1);}}),j7=j3.enc={},j8=j7.Hex={stringify:function(j0){for(var j1=j0.words,j2=j0.sigBytes,j3=[],j4=0;j4<j2;j4++){var j5=j1[j4>>>2]>>>24-j4%4*8&255;j3.push((j5>>>4).toString(16)),j3.push((15&j5).toString(16));}return j3.join("");},parse:function(j0){for(var j1=j0.length,j2=[],j3=0;j3<j1;j3+=2)j2[j3>>>3]|=parseInt(j0.substr(j3,2),16)<<24-j3%8*4;return new j6.init(j2,j1/2);}},j9=j7.Latin1={stringify:function(j0){for(var j1=j0.words,j2=j0.sigBytes,j3=[],j4=0;j4<j2;j4++){var j5=j1[j4>>>2]>>>24-j4%4*8&255;j3.push(String.fromCharCode(j5));}return j3.join("");},parse:function(j0){for(var j1=j0.length,j2=[],j3=0;j3<j1;j3++)j2[j3>>>2]|=(255&j0.charCodeAt(j3))<<24-j3%4*8;return new j6.init(j2,j1);}},j10=j7.Utf8={stringify:function(j0){try{return decodeURIComponent(escape(j9.stringify(j0)));}catch(j0){throw new Error("Malformed UTF-8 data");}},parse:function(j0){return j9.parse(unescape(encodeURIComponent(j0)));}},j11=j4.BufferedBlockAlgorithm=j5.extend({reset:function(){this._data=new j6.init(),this._nDataBytes=0;},_append:function(j0){"string"==typeof j0&&(j0=j10.parse(j0)),this._data.concat(j0),this._nDataBytes+=j0.sigBytes;},_process:function(j1){var j2=this._data,j3=j2.words,j4=j2.sigBytes,j5=this.blockSize,j7=j4/(4*j5),j8=(j7=j1?j0.ceil(j7):j0.max((0|j7)-this._minBufferSize,0))*j5,j9=j0.min(4*j8,j4);if(j8){for(var j10=0;j10<j8;j10+=j5)this._doProcessBlock(j3,j10);var j11=j3.splice(0,j8);j2.sigBytes-=j9;}return new j6.init(j11,j9);},clone:function(){var j0=j5.clone.call(this);return j0._data=this._data.clone(),j0;},_minBufferSize:0}),j12=(j4.Hasher=j11.extend({cfg:j5.extend(),init:function(j0){this.cfg=this.cfg.extend(j0),this.reset();},reset:function(){j11.reset.call(this),this._doReset();},update:function(j0){return this._append(j0),this._process(),this;},finalize:function(j0){return j0&&this._append(j0),this._doFinalize();},blockSize:16,_createHelper:function(j0){return function(j1,j2){return new j0.init(j2).finalize(j1);};},_createHmacHelper:function(j0){return function(j1,j2){return new j12.HMAC.init(j0,j2).finalize(j1);};}}),j3.algo={});return j3;}(Math),j3);},function(j0,j1){var j2=j0.exports={version:"2.6.10"};"number"==typeof __e&&(__e=j2);},function(j0,j1,j2){var j3=j2(4),j4=j2(1),j5=j2(17),j6=j2(18),j7=j2(22),j8=function(j0,j1,j2){var j9,j10,j11,j12=j0&j8.F,j13=j0&j8.G,j14=j0&j8.S,j15=j0&j8.P,j16=j0&j8.B,j17=j0&j8.W,j18=j13?j4:j4[j1]||(j4[j1]={}),j19=j18.prototype,j20=j13?j3:j14?j3[j1]:(j3[j1]||{}).prototype;for(j9 in j13&&(j2=j1),j2)(j10=!j12&&j20&&void 0!==j20[j9])&&j7(j18,j9)||(j11=j10?j20[j9]:j2[j9],j18[j9]=j13&&"function"!=typeof j20[j9]?j2[j9]:j16&&j10?j5(j11,j3):j17&&j20[j9]==j11?function(j0){var j1=function(j1,j2,j3){if(this instanceof j0){switch(arguments.length){case 0:return new j0();case 1:return new j0(j1);case 2:return new j0(j1,j2);}return new j0(j1,j2,j3);}return j0.apply(this,arguments);};return j1.prototype=j0.prototype,j1;}(j11):j15&&"function"==typeof j11?j5(Function.call,j11):j11,j15&&((j18.virtual||(j18.virtual={}))[j9]=j11,j0&j8.R&&j19&&!j19[j9]&&j6(j19,j9,j11)));};j8.F=1,j8.G=2,j8.S=4,j8.P=8,j8.B=16,j8.W=32,j8.U=64,j8.R=128,j0.exports=j8;},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(23),void(j3.lib.Cipher||function(j0){var j1=j3,j2=j1.lib,j4=j2.Base,j5=j2.WordArray,j6=j2.BufferedBlockAlgorithm,j7=j1.enc,j8=(j7.Utf8,j7.Base64),j9=j1.algo.EvpKDF,j10=j2.Cipher=j6.extend({cfg:j4.extend(),createEncryptor:function(j0,j1){return this.create(this._ENC_XFORM_MODE,j0,j1);},createDecryptor:function(j0,j1){return this.create(this._DEC_XFORM_MODE,j0,j1);},init:function(j0,j1,j2){this.cfg=this.cfg.extend(j2),this._xformMode=j0,this._key=j1,this.reset();},reset:function(){j6.reset.call(this),this._doReset();},process:function(j0){return this._append(j0),this._process();},finalize:function(j0){return j0&&this._append(j0),this._doFinalize();},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function j0(j0){return"string"==typeof j0?j19:j17;}return function(j1){return{encrypt:function(j2,j3,j4){return j0(j3).encrypt(j1,j2,j3,j4);},decrypt:function(j2,j3,j4){return j0(j3).decrypt(j1,j2,j3,j4);}};};}()}),j11=(j2.StreamCipher=j10.extend({_doFinalize:function(){return this._process(!0);},blockSize:1}),j1.mode={}),j12=j2.BlockCipherMode=j4.extend({createEncryptor:function(j0,j1){return this.Encryptor.create(j0,j1);},createDecryptor:function(j0,j1){return this.Decryptor.create(j0,j1);},init:function(j0,j1){this._cipher=j0,this._iv=j1;}}),j13=j11.CBC=function(){var j1=j12.extend();function j2(j1,j2,j3){var j4=this._iv;if(j4){var j5=j4;this._iv=j0;}else j5=this._prevBlock;for(var j6=0;j6<j3;j6++)j1[j2+j6]^=j5[j6];}return j1.Encryptor=j1.extend({processBlock:function(j0,j1){var j3=this._cipher,j4=j3.blockSize;j2.call(this,j0,j1,j4),j3.encryptBlock(j0,j1),this._prevBlock=j0.slice(j1,j1+j4);}}),j1.Decryptor=j1.extend({processBlock:function(j0,j1){var j3=this._cipher,j4=j3.blockSize,j5=j0.slice(j1,j1+j4);j3.decryptBlock(j0,j1),j2.call(this,j0,j1,j4),this._prevBlock=j5;}}),j1;}(),j14=(j1.pad={}).Pkcs7={pad:function(j0,j1){for(var j2=4*j1,j3=j2-j0.sigBytes%j2,j4=j3<<24|j3<<16|j3<<8|j3,j6=[],j7=0;j7<j3;j7+=4)j6.push(j4);var j8=j5.create(j6,j3);j0.concat(j8);},unpad:function(j0){var j1=255&j0.words[j0.sigBytes-1>>>2];j0.sigBytes-=j1;}},j15=(j2.BlockCipher=j10.extend({cfg:j10.cfg.extend({mode:j13,padding:j14}),reset:function(){j10.reset.call(this);var j0=this.cfg,j1=j0.iv,j2=j0.mode;if(this._xformMode==this._ENC_XFORM_MODE)var j3=j2.createEncryptor;else j3=j2.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==j3?this._mode.init(this,j1&&j1.words):(this._mode=j3.call(j2,this,j1&&j1.words),this._mode.__creator=j3);},_doProcessBlock:function(j0,j1){this._mode.processBlock(j0,j1);},_doFinalize:function(){var j0=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){j0.pad(this._data,this.blockSize);var j1=this._process(!0);}else j1=this._process(!0),j0.unpad(j1);return j1;},blockSize:4}),j2.CipherParams=j4.extend({init:function(j0){this.mixIn(j0);},toString:function(j0){return(j0||this.formatter).stringify(this);}})),j16=(j1.format={}).OpenSSL={stringify:function(j0){var j1=j0.ciphertext,j2=j0.salt;if(j2)var j3=j5.create([1398893684,1701076831]).concat(j2).concat(j1);else j3=j1;return j3.toString(j8);},parse:function(j0){var j1=j8.parse(j0),j2=j1.words;if(1398893684==j2[0]&&1701076831==j2[1]){var j3=j5.create(j2.slice(2,4));j2.splice(0,4),j1.sigBytes-=16;}return j15.create({ciphertext:j1,salt:j3});}},j17=j2.SerializableCipher=j4.extend({cfg:j4.extend({format:j16}),encrypt:function(j0,j1,j2,j3){j3=this.cfg.extend(j3);var j4=j0.createEncryptor(j2,j3),j5=j4.finalize(j1),j6=j4.cfg;return j15.create({ciphertext:j5,key:j2,iv:j6.iv,algorithm:j0,mode:j6.mode,padding:j6.padding,blockSize:j0.blockSize,formatter:j3.format});},decrypt:function(j0,j1,j2,j3){return j3=this.cfg.extend(j3),j1=this._parse(j1,j3.format),j0.createDecryptor(j2,j3).finalize(j1.ciphertext);},_parse:function(j0,j1){return"string"==typeof j0?j1.parse(j0,this):j0;}}),j18=(j1.kdf={}).OpenSSL={execute:function(j0,j1,j2,j3){j3||(j3=j5.random(8));var j4=j9.create({keySize:j1+j2}).compute(j0,j3),j6=j5.create(j4.words.slice(j1),4*j2);return j4.sigBytes=4*j1,j15.create({key:j4,iv:j6,salt:j3});}},j19=j2.PasswordBasedCipher=j17.extend({cfg:j17.cfg.extend({kdf:j18}),encrypt:function(j0,j1,j2,j3){var j4=(j3=this.cfg.extend(j3)).kdf.execute(j2,j0.keySize,j0.ivSize);j3.iv=j4.iv;var j5=j17.encrypt.call(this,j0,j1,j4.key,j3);return j5.mixIn(j4),j5;},decrypt:function(j0,j1,j2,j3){j3=this.cfg.extend(j3),j1=this._parse(j1,j3.format);var j4=j3.kdf.execute(j2,j0.keySize,j0.ivSize,j1.salt);return j3.iv=j4.iv,j17.decrypt.call(this,j0,j1,j4.key,j3);}});}()));},function(j0,j1){var j2=j0.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=j2);},function(j0,j1,j2){var j3=j2(70)("wks"),j4=j2(51),j5=j2(4).Symbol,j6="function"==typeof j5;(j0.exports=function(j0){return j3[j0]||(j3[j0]=j6&&j5[j0]||(j6?j5:j4)("Symbol."+j0));}).store=j3;},function(j0,j1){var j2,j3,j4=j0.exports={};function j5(){throw new Error("setTimeout has not been defined");}function j6(){throw new Error("clearTimeout has not been defined");}function j7(j0){if(j2===setTimeout)return setTimeout(j0,0);if((j2===j5||!j2)&&setTimeout)return j2=setTimeout,setTimeout(j0,0);try{return j2(j0,0);}catch(j1){try{return j2.call(null,j0,0);}catch(j1){return j2.call(this,j0,0);}}}!function(){try{j2="function"==typeof setTimeout?setTimeout:j5;}catch(j0){j2=j5;}try{j3="function"==typeof clearTimeout?clearTimeout:j6;}catch(j0){j3=j6;}}();var j8,j9=[],j10=!1,j11=-1;function j12(){j10&&j8&&(j10=!1,j8.length?j9=j8.concat(j9):j11=-1,j9.length&&j13());}function j13(){if(!j10){var j0=j7(j12);j10=!0;for(var j1=j9.length;j1;){for(j8=j9,j9=[];++j11<j1;)j8&&j8[j11].run();j11=-1,j1=j9.length;}j8=null,j10=!1,function(j0){if(j3===clearTimeout)return clearTimeout(j0);if((j3===j6||!j3)&&clearTimeout)return j3=clearTimeout,clearTimeout(j0);try{j3(j0);}catch(j1){try{return j3.call(null,j0);}catch(j1){return j3.call(this,j0);}}}(j0);}}function j14(j0,j1){this.fun=j0,this.array=j1;}function j15(){}j4.nextTick=function(j0){var j1=new Array(arguments.length-1);if(arguments.length>1)for(var j2=1;j2<arguments.length;j2++)j1[j2-1]=arguments[j2];j9.push(new j14(j0,j1)),1!==j9.length||j10||j7(j13);},j14.prototype.run=function(){this.fun.apply(null,this.array);},j4.title="browser",j4.browser=!0,j4.env={},j4.argv=[],j4.version="",j4.versions={},j4.on=j15,j4.addListener=j15,j4.once=j15,j4.off=j15,j4.removeListener=j15,j4.removeAllListeners=j15,j4.emit=j15,j4.prependListener=j15,j4.prependOnceListener=j15,j4.listeners=function(j0){return[];},j4.binding=function(j0){throw new Error("process.binding is not supported");},j4.cwd=function(){return"/";},j4.chdir=function(j0){throw new Error("process.chdir is not supported");},j4.umask=function(){return 0;};},function(j0,j1){j0.exports=function(j0){return"object"==typeof j0?null!==j0:"function"==typeof j0;};},function(j0,j1,j2){j0.exports=!j2(21)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7;}}).a;});},function(j0,j1,j2){var j3=j2(13),j4=j2(99),j5=j2(67),j6=Object.defineProperty;j1.f=j2(8)?Object.defineProperty:function(j0,j1,j2){if(j3(j0),j1=j5(j1,!0),j3(j2),j4)try{return j6(j0,j1,j2);}catch(j0){}if("get"in j2||"set"in j2)throw TypeError("Accessors not supported!");return"value"in j2&&(j0[j1]=j2.value),j0;};},function(j0,j1,j2){var j3=j2(16),j4=j3.Buffer;function j5(j0,j1){for(var j2 in j0)j1[j2]=j0[j2];}function j6(j0,j1,j2){return j4(j0,j1,j2);}j4.from&&j4.alloc&&j4.allocUnsafe&&j4.allocUnsafeSlow?j0.exports=j3:(j5(j3,j1),j1.Buffer=j6),j5(j4,j6),j6.from=function(j0,j1,j2){if("number"==typeof j0)throw new TypeError("Argument must not be a number");return j4(j0,j1,j2);},j6.alloc=function(j0,j1,j2){if("number"!=typeof j0)throw new TypeError("Argument must be a number");var j3=j4(j0);return void 0!==j1?"string"==typeof j2?j3.fill(j1,j2):j3.fill(j1):j3.fill(0),j3;},j6.allocUnsafe=function(j0){if("number"!=typeof j0)throw new TypeError("Argument must be a number");return j4(j0);},j6.allocUnsafeSlow=function(j0){if("number"!=typeof j0)throw new TypeError("Argument must be a number");return j3.SlowBuffer(j0);};},function(j0,j1,j2){"use strict";var j3=j2(35),j4=j2(143),j5=j2(90),j6=j2(144),j7=j2(145),j8=j0.exports=function(j0,j1){var j2,j4,j8,j9,j10;return arguments.length<2||"string"!=typeof j0?(j9=j1,j1=j0,j0=null):j9=arguments[2],j3(j0)?(j2=j7.call(j0,"c"),j4=j7.call(j0,"e"),j8=j7.call(j0,"w")):(j2=j8=!0,j4=!1),j10={value:j1,configurable:j2,enumerable:j4,writable:j8},j9?j5(j6(j9),j10):j10;};j8.gs=function(j0,j1,j2){var j8,j9,j10,j11;return"string"!=typeof j0?(j10=j2,j2=j1,j1=j0,j0=null):j10=arguments[3],j3(j1)?j4(j1)?j3(j2)?j4(j2)||(j10=j2,j2=void 0):j2=void 0:(j10=j1,j1=j2=void 0):j1=void 0,j3(j0)?(j8=j7.call(j0,"c"),j9=j7.call(j0,"e")):(j8=!0,j9=!1),j11={get:j1,set:j2,configurable:j8,enumerable:j9},j10?j5(j6(j10),j11):j11;};},function(j0,j1){var j2;j2=function(){return this;}();try{j2=j2||new Function("return this")();}catch(j0){"object"==typeof window&&(j2=window);}j0.exports=j2;},function(j0,j1,j2){var j3=j2(7);j0.exports=function(j0){if(!j3(j0))throw TypeError(j0+" is not an object!");return j0;};},function(j0,j1){"function"==typeof Object.create?j0.exports=function(j0,j1){j1&&(j0.super_=j1,j0.prototype=Object.create(j1.prototype,{constructor:{value:j0,enumerable:!1,writable:!0,configurable:!0}}));}:j0.exports=function(j0,j1){if(j1){j0.super_=j1;var j2=function(){};j2.prototype=j1.prototype,j0.prototype=new j2(),j0.prototype.constructor=j0;}};},function(j0,j1,j2){"use strict";var j3=j2(34);j0.exports=function(j0){if(!j3(j0))throw new TypeError("Cannot use null or undefined");return j0;};},function(j0,j1,j2){"use strict";(function(j0){var j3=j2(97),j4=j2(183),j5=j2(98);function j6(){return j8.TYPED_ARRAY_SUPPORT?2147483647:1073741823;}function j7(j0,j1){if(j6()<j1)throw new RangeError("Invalid typed array length");return j8.TYPED_ARRAY_SUPPORT?(j0=new Uint8Array(j1)).__proto__=j8.prototype:(null===j0&&(j0=new j8(j1)),j0.length=j1),j0;}function j8(j0,j1,j2){if(!(j8.TYPED_ARRAY_SUPPORT||this instanceof j8))return new j8(j0,j1,j2);if("number"==typeof j0){if("string"==typeof j1)throw new Error("If encoding is specified then the first argument must be a string");return j11(this,j0);}return j9(this,j0,j1,j2);}function j9(j0,j1,j2,j3){if("number"==typeof j1)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&j1 instanceof ArrayBuffer?function(j0,j1,j2,j3){if(j1.byteLength,j2<0||j1.byteLength<j2)throw new RangeError("'offset' is out of bounds");if(j1.byteLength<j2+(j3||0))throw new RangeError("'length' is out of bounds");j1=void 0===j2&&void 0===j3?new Uint8Array(j1):void 0===j3?new Uint8Array(j1,j2):new Uint8Array(j1,j2,j3);j8.TYPED_ARRAY_SUPPORT?(j0=j1).__proto__=j8.prototype:j0=j12(j0,j1);return j0;}(j0,j1,j2,j3):"string"==typeof j1?function(j0,j1,j2){"string"==typeof j2&&""!==j2||(j2="utf8");if(!j8.isEncoding(j2))throw new TypeError('"encoding" must be a valid string encoding');var j3=0|j14(j1,j2),j4=(j0=j7(j0,j3)).write(j1,j2);j4!==j3&&(j0=j0.slice(0,j4));return j0;}(j0,j1,j2):function(j0,j1){if(j8.isBuffer(j1)){var j2=0|j13(j1.length);return 0===(j0=j7(j0,j2)).length||j1.copy(j0,0,0,j2),j0;}if(j1){if("undefined"!=typeof ArrayBuffer&&j1.buffer instanceof ArrayBuffer||"length"in j1)return"number"!=typeof j1.length||(j3=j1.length)!=j3?j7(j0,0):j12(j0,j1);if("Buffer"===j1.type&&j5(j1.data))return j12(j0,j1.data);}var j3;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");}(j0,j1);}function j10(j0){if("number"!=typeof j0)throw new TypeError('"size" argument must be a number');if(j0<0)throw new RangeError('"size" argument must not be negative');}function j11(j0,j1){if(j10(j1),j0=j7(j0,j1<0?0:0|j13(j1)),!j8.TYPED_ARRAY_SUPPORT)for(var j2=0;j2<j1;++j2)j0[j2]=0;return j0;}function j12(j0,j1){var j2=j1.length<0?0:0|j13(j1.length);j0=j7(j0,j2);for(var j3=0;j3<j2;j3+=1)j0[j3]=255&j1[j3];return j0;}function j13(j0){if(j0>=j6())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j6().toString(16)+" bytes");return 0|j0;}function j14(j0,j1){if(j8.isBuffer(j0))return j0.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(j0)||j0 instanceof ArrayBuffer))return j0.byteLength;"string"!=typeof j0&&(j0=""+j0);var j2=j0.length;if(0===j2)return 0;for(var j3=!1;;)switch(j1){case"ascii":case"latin1":case"binary":return j2;case"utf8":case"utf-8":case void 0:return j41(j0).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*j2;case"hex":return j2>>>1;case"base64":return j42(j0).length;default:if(j3)return j41(j0).length;j1=(""+j1).toLowerCase(),j3=!0;}}function j15(j0,j1,j2){var j3=!1;if((void 0===j1||j1<0)&&(j1=0),j1>this.length)return"";if((void 0===j2||j2>this.length)&&(j2=this.length),j2<=0)return"";if((j2>>>=0)<=(j1>>>=0))return"";for(j0||(j0="utf8");;)switch(j0){case"hex":return j30(this,j1,j2);case"utf8":case"utf-8":return j26(this,j1,j2);case"ascii":return j28(this,j1,j2);case"latin1":case"binary":return j29(this,j1,j2);case"base64":return j25(this,j1,j2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j31(this,j1,j2);default:if(j3)throw new TypeError("Unknown encoding: "+j0);j0=(j0+"").toLowerCase(),j3=!0;}}function j16(j0,j1,j2){var j3=j0[j1];j0[j1]=j0[j2],j0[j2]=j3;}function j17(j0,j1,j2,j3,j4){if(0===j0.length)return-1;if("string"==typeof j2?(j3=j2,j2=0):j2>2147483647?j2=2147483647:j2<-2147483648&&(j2=-2147483648),j2=+j2,isNaN(j2)&&(j2=j4?0:j0.length-1),j2<0&&(j2=j0.length+j2),j2>=j0.length){if(j4)return-1;j2=j0.length-1;}else if(j2<0){if(!j4)return-1;j2=0;}if("string"==typeof j1&&(j1=j8.from(j1,j3)),j8.isBuffer(j1))return 0===j1.length?-1:j18(j0,j1,j2,j3,j4);if("number"==typeof j1)return j1&=255,j8.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?j4?Uint8Array.prototype.indexOf.call(j0,j1,j2):Uint8Array.prototype.lastIndexOf.call(j0,j1,j2):j18(j0,[j1],j2,j3,j4);throw new TypeError("val must be string, number or Buffer");}function j18(j0,j1,j2,j3,j4){var j5,j6=1,j7=j0.length,j8=j1.length;if(void 0!==j3&&("ucs2"===(j3=String(j3).toLowerCase())||"ucs-2"===j3||"utf16le"===j3||"utf-16le"===j3)){if(j0.length<2||j1.length<2)return-1;j6=2,j7/=2,j8/=2,j2/=2;}function j9(j0,j1){return 1===j6?j0[j1]:j0.readUInt16BE(j1*j6);}if(j4){var j10=-1;for(j5=j2;j5<j7;j5++)if(j9(j0,j5)===j9(j1,-1===j10?0:j5-j10)){if(-1===j10&&(j10=j5),j5-j10+1===j8)return j10*j6;}else-1!==j10&&(j5-=j5-j10),j10=-1;}else for(j2+j8>j7&&(j2=j7-j8),j5=j2;j5>=0;j5--){for(var j11=!0,j12=0;j12<j8;j12++)if(j9(j0,j5+j12)!==j9(j1,j12)){j11=!1;break;}if(j11)return j5;}return-1;}function j19(j0,j1,j2,j3){j2=Number(j2)||0;var j4=j0.length-j2;j3?(j3=Number(j3))>j4&&(j3=j4):j3=j4;var j5=j1.length;if(j5%2!=0)throw new TypeError("Invalid hex string");j3>j5/2&&(j3=j5/2);for(var j6=0;j6<j3;++j6){var j7=parseInt(j1.substr(2*j6,2),16);if(isNaN(j7))return j6;j0[j2+j6]=j7;}return j6;}function j20(j0,j1,j2,j3){return j43(j41(j1,j0.length-j2),j0,j2,j3);}function j21(j0,j1,j2,j3){return j43(function(j0){for(var j1=[],j2=0;j2<j0.length;++j2)j1.push(255&j0.charCodeAt(j2));return j1;}(j1),j0,j2,j3);}function j22(j0,j1,j2,j3){return j21(j0,j1,j2,j3);}function j23(j0,j1,j2,j3){return j43(j42(j1),j0,j2,j3);}function j24(j0,j1,j2,j3){return j43(function(j0,j1){for(var j2,j3,j4,j5=[],j6=0;j6<j0.length&&!((j1-=2)<0);++j6)j3=(j2=j0.charCodeAt(j6))>>8,j4=j2%256,j5.push(j4),j5.push(j3);return j5;}(j1,j0.length-j2),j0,j2,j3);}function j25(j0,j1,j2){return 0===j1&&j2===j0.length?j3.fromByteArray(j0):j3.fromByteArray(j0.slice(j1,j2));}function j26(j0,j1,j2){j2=Math.min(j0.length,j2);for(var j3=[],j4=j1;j4<j2;){var j5,j6,j7,j8,j9=j0[j4],j10=null,j11=j9>239?4:j9>223?3:j9>191?2:1;if(j4+j11<=j2)switch(j11){case 1:j9<128&&(j10=j9);break;case 2:128==(192&(j5=j0[j4+1]))&&(j8=(31&j9)<<6|63&j5)>127&&(j10=j8);break;case 3:j5=j0[j4+1],j6=j0[j4+2],128==(192&j5)&&128==(192&j6)&&(j8=(15&j9)<<12|(63&j5)<<6|63&j6)>2047&&(j8<55296||j8>57343)&&(j10=j8);break;case 4:j5=j0[j4+1],j6=j0[j4+2],j7=j0[j4+3],128==(192&j5)&&128==(192&j6)&&128==(192&j7)&&(j8=(15&j9)<<18|(63&j5)<<12|(63&j6)<<6|63&j7)>65535&&j8<1114112&&(j10=j8);}null===j10?(j10=65533,j11=1):j10>65535&&(j10-=65536,j3.push(j10>>>10&1023|55296),j10=56320|1023&j10),j3.push(j10),j4+=j11;}return function(j0){var j1=j0.length;if(j1<=j27)return String.fromCharCode.apply(String,j0);var j2="",j3=0;for(;j3<j1;)j2+=String.fromCharCode.apply(String,j0.slice(j3,j3+=j27));return j2;}(j3);}j1.Buffer=j8,j1.SlowBuffer=function(j0){+j0!=j0&&(j0=0);return j8.alloc(+j0);},j1.INSPECT_MAX_BYTES=50,j8.TYPED_ARRAY_SUPPORT=void 0!==j0.TYPED_ARRAY_SUPPORT?j0.TYPED_ARRAY_SUPPORT:function(){try{var j0=new Uint8Array(1);return j0.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42;}},42===j0.foo()&&"function"==typeof j0.subarray&&0===j0.subarray(1,1).byteLength;}catch(j0){return!1;}}(),j1.kMaxLength=j6(),j8.poolSize=8192,j8._augment=function(j0){return j0.__proto__=j8.prototype,j0;},j8.from=function(j0,j1,j2){return j9(null,j0,j1,j2);},j8.TYPED_ARRAY_SUPPORT&&(j8.prototype.__proto__=Uint8Array.prototype,j8.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&j8[Symbol.species]===j8&&Object.defineProperty(j8,Symbol.species,{value:null,configurable:!0})),j8.alloc=function(j0,j1,j2){return function(j0,j1,j2,j3){return j10(j1),j1<=0?j7(j0,j1):void 0!==j2?"string"==typeof j3?j7(j0,j1).fill(j2,j3):j7(j0,j1).fill(j2):j7(j0,j1);}(null,j0,j1,j2);},j8.allocUnsafe=function(j0){return j11(null,j0);},j8.allocUnsafeSlow=function(j0){return j11(null,j0);},j8.isBuffer=function(j0){return!(null==j0||!j0._isBuffer);},j8.compare=function(j0,j1){if(!j8.isBuffer(j0)||!j8.isBuffer(j1))throw new TypeError("Arguments must be Buffers");if(j0===j1)return 0;for(var j2=j0.length,j3=j1.length,j4=0,j5=Math.min(j2,j3);j4<j5;++j4)if(j0[j4]!==j1[j4]){j2=j0[j4],j3=j1[j4];break;}return j2<j3?-1:j3<j2?1:0;},j8.isEncoding=function(j0){switch(String(j0).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1;}},j8.concat=function(j0,j1){if(!j5(j0))throw new TypeError('"list" argument must be an Array of Buffers');if(0===j0.length)return j8.alloc(0);var j2;if(void 0===j1)for(j1=0,j2=0;j2<j0.length;++j2)j1+=j0[j2].length;var j3=j8.allocUnsafe(j1),j4=0;for(j2=0;j2<j0.length;++j2){var j6=j0[j2];if(!j8.isBuffer(j6))throw new TypeError('"list" argument must be an Array of Buffers');j6.copy(j3,j4),j4+=j6.length;}return j3;},j8.byteLength=j14,j8.prototype._isBuffer=!0,j8.prototype.swap16=function(){var j0=this.length;if(j0%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var j1=0;j1<j0;j1+=2)j16(this,j1,j1+1);return this;},j8.prototype.swap32=function(){var j0=this.length;if(j0%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var j1=0;j1<j0;j1+=4)j16(this,j1,j1+3),j16(this,j1+1,j1+2);return this;},j8.prototype.swap64=function(){var j0=this.length;if(j0%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var j1=0;j1<j0;j1+=8)j16(this,j1,j1+7),j16(this,j1+1,j1+6),j16(this,j1+2,j1+5),j16(this,j1+3,j1+4);return this;},j8.prototype.toString=function(){var j0=0|this.length;return 0===j0?"":0===arguments.length?j26(this,0,j0):j15.apply(this,arguments);},j8.prototype.equals=function(j0){if(!j8.isBuffer(j0))throw new TypeError("Argument must be a Buffer");return this===j0||0===j8.compare(this,j0);},j8.prototype.inspect=function(){var j0="",j2=j1.INSPECT_MAX_BYTES;return this.length>0&&(j0=this.toString("hex",0,j2).match(/.{2}/g).join(" "),this.length>j2&&(j0+=" ... ")),"<Buffer "+j0+">";},j8.prototype.compare=function(j0,j1,j2,j3,j4){if(!j8.isBuffer(j0))throw new TypeError("Argument must be a Buffer");if(void 0===j1&&(j1=0),void 0===j2&&(j2=j0?j0.length:0),void 0===j3&&(j3=0),void 0===j4&&(j4=this.length),j1<0||j2>j0.length||j3<0||j4>this.length)throw new RangeError("out of range index");if(j3>=j4&&j1>=j2)return 0;if(j3>=j4)return-1;if(j1>=j2)return 1;if(this===j0)return 0;for(var j5=(j4>>>=0)-(j3>>>=0),j6=(j2>>>=0)-(j1>>>=0),j7=Math.min(j5,j6),j9=this.slice(j3,j4),j10=j0.slice(j1,j2),j11=0;j11<j7;++j11)if(j9[j11]!==j10[j11]){j5=j9[j11],j6=j10[j11];break;}return j5<j6?-1:j6<j5?1:0;},j8.prototype.includes=function(j0,j1,j2){return-1!==this.indexOf(j0,j1,j2);},j8.prototype.indexOf=function(j0,j1,j2){return j17(this,j0,j1,j2,!0);},j8.prototype.lastIndexOf=function(j0,j1,j2){return j17(this,j0,j1,j2,!1);},j8.prototype.write=function(j0,j1,j2,j3){if(void 0===j1)j3="utf8",j2=this.length,j1=0;else if(void 0===j2&&"string"==typeof j1)j3=j1,j2=this.length,j1=0;else{if(!isFinite(j1))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");j1|=0,isFinite(j2)?(j2|=0,void 0===j3&&(j3="utf8")):(j3=j2,j2=void 0);}var j4=this.length-j1;if((void 0===j2||j2>j4)&&(j2=j4),j0.length>0&&(j2<0||j1<0)||j1>this.length)throw new RangeError("Attempt to write outside buffer bounds");j3||(j3="utf8");for(var j5=!1;;)switch(j3){case"hex":return j19(this,j0,j1,j2);case"utf8":case"utf-8":return j20(this,j0,j1,j2);case"ascii":return j21(this,j0,j1,j2);case"latin1":case"binary":return j22(this,j0,j1,j2);case"base64":return j23(this,j0,j1,j2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j24(this,j0,j1,j2);default:if(j5)throw new TypeError("Unknown encoding: "+j3);j3=(""+j3).toLowerCase(),j5=!0;}},j8.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)};};var j27=4096;function j28(j0,j1,j2){var j3="";j2=Math.min(j0.length,j2);for(var j4=j1;j4<j2;++j4)j3+=String.fromCharCode(127&j0[j4]);return j3;}function j29(j0,j1,j2){var j3="";j2=Math.min(j0.length,j2);for(var j4=j1;j4<j2;++j4)j3+=String.fromCharCode(j0[j4]);return j3;}function j30(j0,j1,j2){var j3=j0.length;(!j1||j1<0)&&(j1=0),(!j2||j2<0||j2>j3)&&(j2=j3);for(var j4="",j5=j1;j5<j2;++j5)j4+=j40(j0[j5]);return j4;}function j31(j0,j1,j2){for(var j3=j0.slice(j1,j2),j4="",j5=0;j5<j3.length;j5+=2)j4+=String.fromCharCode(j3[j5]+256*j3[j5+1]);return j4;}function j32(j0,j1,j2){if(j0%1!=0||j0<0)throw new RangeError("offset is not uint");if(j0+j1>j2)throw new RangeError("Trying to access beyond buffer length");}function j33(j0,j1,j2,j3,j4,j5){if(!j8.isBuffer(j0))throw new TypeError('"buffer" argument must be a Buffer instance');if(j1>j4||j1<j5)throw new RangeError('"value" argument is out of bounds');if(j2+j3>j0.length)throw new RangeError("Index out of range");}function j34(j0,j1,j2,j3){j1<0&&(j1=65535+j1+1);for(var j4=0,j5=Math.min(j0.length-j2,2);j4<j5;++j4)j0[j2+j4]=(j1&255<<8*(j3?j4:1-j4))>>>8*(j3?j4:1-j4);}function j35(j0,j1,j2,j3){j1<0&&(j1=4294967295+j1+1);for(var j4=0,j5=Math.min(j0.length-j2,4);j4<j5;++j4)j0[j2+j4]=j1>>>8*(j3?j4:3-j4)&255;}function j36(j0,j1,j2,j3,j4,j5){if(j2+j3>j0.length)throw new RangeError("Index out of range");if(j2<0)throw new RangeError("Index out of range");}function j37(j0,j1,j2,j3,j5){return j5||j36(j0,0,j2,4),j4.write(j0,j1,j2,j3,23,4),j2+4;}function j38(j0,j1,j2,j3,j5){return j5||j36(j0,0,j2,8),j4.write(j0,j1,j2,j3,52,8),j2+8;}j8.prototype.slice=function(j0,j1){var j2,j3=this.length;if((j0=~~j0)<0?(j0+=j3)<0&&(j0=0):j0>j3&&(j0=j3),(j1=void 0===j1?j3:~~j1)<0?(j1+=j3)<0&&(j1=0):j1>j3&&(j1=j3),j1<j0&&(j1=j0),j8.TYPED_ARRAY_SUPPORT)(j2=this.subarray(j0,j1)).__proto__=j8.prototype;else{var j4=j1-j0;j2=new j8(j4,void 0);for(var j5=0;j5<j4;++j5)j2[j5]=this[j5+j0];}return j2;},j8.prototype.readUIntLE=function(j0,j1,j2){j0|=0,j1|=0,j2||j32(j0,j1,this.length);for(var j3=this[j0],j4=1,j5=0;++j5<j1&&(j4*=256);)j3+=this[j0+j5]*j4;return j3;},j8.prototype.readUIntBE=function(j0,j1,j2){j0|=0,j1|=0,j2||j32(j0,j1,this.length);for(var j3=this[j0+--j1],j4=1;j1>0&&(j4*=256);)j3+=this[j0+--j1]*j4;return j3;},j8.prototype.readUInt8=function(j0,j1){return j1||j32(j0,1,this.length),this[j0];},j8.prototype.readUInt16LE=function(j0,j1){return j1||j32(j0,2,this.length),this[j0]|this[j0+1]<<8;},j8.prototype.readUInt16BE=function(j0,j1){return j1||j32(j0,2,this.length),this[j0]<<8|this[j0+1];},j8.prototype.readUInt32LE=function(j0,j1){return j1||j32(j0,4,this.length),(this[j0]|this[j0+1]<<8|this[j0+2]<<16)+16777216*this[j0+3];},j8.prototype.readUInt32BE=function(j0,j1){return j1||j32(j0,4,this.length),16777216*this[j0]+(this[j0+1]<<16|this[j0+2]<<8|this[j0+3]);},j8.prototype.readIntLE=function(j0,j1,j2){j0|=0,j1|=0,j2||j32(j0,j1,this.length);for(var j3=this[j0],j4=1,j5=0;++j5<j1&&(j4*=256);)j3+=this[j0+j5]*j4;return j3>=(j4*=128)&&(j3-=Math.pow(2,8*j1)),j3;},j8.prototype.readIntBE=function(j0,j1,j2){j0|=0,j1|=0,j2||j32(j0,j1,this.length);for(var j3=j1,j4=1,j5=this[j0+--j3];j3>0&&(j4*=256);)j5+=this[j0+--j3]*j4;return j5>=(j4*=128)&&(j5-=Math.pow(2,8*j1)),j5;},j8.prototype.readInt8=function(j0,j1){return j1||j32(j0,1,this.length),128&this[j0]?-1*(255-this[j0]+1):this[j0];},j8.prototype.readInt16LE=function(j0,j1){j1||j32(j0,2,this.length);var j2=this[j0]|this[j0+1]<<8;return 32768&j2?4294901760|j2:j2;},j8.prototype.readInt16BE=function(j0,j1){j1||j32(j0,2,this.length);var j2=this[j0+1]|this[j0]<<8;return 32768&j2?4294901760|j2:j2;},j8.prototype.readInt32LE=function(j0,j1){return j1||j32(j0,4,this.length),this[j0]|this[j0+1]<<8|this[j0+2]<<16|this[j0+3]<<24;},j8.prototype.readInt32BE=function(j0,j1){return j1||j32(j0,4,this.length),this[j0]<<24|this[j0+1]<<16|this[j0+2]<<8|this[j0+3];},j8.prototype.readFloatLE=function(j0,j1){return j1||j32(j0,4,this.length),j4.read(this,j0,!0,23,4);},j8.prototype.readFloatBE=function(j0,j1){return j1||j32(j0,4,this.length),j4.read(this,j0,!1,23,4);},j8.prototype.readDoubleLE=function(j0,j1){return j1||j32(j0,8,this.length),j4.read(this,j0,!0,52,8);},j8.prototype.readDoubleBE=function(j0,j1){return j1||j32(j0,8,this.length),j4.read(this,j0,!1,52,8);},j8.prototype.writeUIntLE=function(j0,j1,j2,j3){(j0=+j0,j1|=0,j2|=0,j3)||j33(this,j0,j1,j2,Math.pow(2,8*j2)-1,0);var j4=1,j5=0;for(this[j1]=255&j0;++j5<j2&&(j4*=256);)this[j1+j5]=j0/j4&255;return j1+j2;},j8.prototype.writeUIntBE=function(j0,j1,j2,j3){(j0=+j0,j1|=0,j2|=0,j3)||j33(this,j0,j1,j2,Math.pow(2,8*j2)-1,0);var j4=j2-1,j5=1;for(this[j1+j4]=255&j0;--j4>=0&&(j5*=256);)this[j1+j4]=j0/j5&255;return j1+j2;},j8.prototype.writeUInt8=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,1,255,0),j8.TYPED_ARRAY_SUPPORT||(j0=Math.floor(j0)),this[j1]=255&j0,j1+1;},j8.prototype.writeUInt16LE=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,2,65535,0),j8.TYPED_ARRAY_SUPPORT?(this[j1]=255&j0,this[j1+1]=j0>>>8):j34(this,j0,j1,!0),j1+2;},j8.prototype.writeUInt16BE=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,2,65535,0),j8.TYPED_ARRAY_SUPPORT?(this[j1]=j0>>>8,this[j1+1]=255&j0):j34(this,j0,j1,!1),j1+2;},j8.prototype.writeUInt32LE=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,4,4294967295,0),j8.TYPED_ARRAY_SUPPORT?(this[j1+3]=j0>>>24,this[j1+2]=j0>>>16,this[j1+1]=j0>>>8,this[j1]=255&j0):j35(this,j0,j1,!0),j1+4;},j8.prototype.writeUInt32BE=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,4,4294967295,0),j8.TYPED_ARRAY_SUPPORT?(this[j1]=j0>>>24,this[j1+1]=j0>>>16,this[j1+2]=j0>>>8,this[j1+3]=255&j0):j35(this,j0,j1,!1),j1+4;},j8.prototype.writeIntLE=function(j0,j1,j2,j3){if(j0=+j0,j1|=0,!j3){var j4=Math.pow(2,8*j2-1);j33(this,j0,j1,j2,j4-1,-j4);}var j5=0,j6=1,j7=0;for(this[j1]=255&j0;++j5<j2&&(j6*=256);)j0<0&&0===j7&&0!==this[j1+j5-1]&&(j7=1),this[j1+j5]=(j0/j6>>0)-j7&255;return j1+j2;},j8.prototype.writeIntBE=function(j0,j1,j2,j3){if(j0=+j0,j1|=0,!j3){var j4=Math.pow(2,8*j2-1);j33(this,j0,j1,j2,j4-1,-j4);}var j5=j2-1,j6=1,j7=0;for(this[j1+j5]=255&j0;--j5>=0&&(j6*=256);)j0<0&&0===j7&&0!==this[j1+j5+1]&&(j7=1),this[j1+j5]=(j0/j6>>0)-j7&255;return j1+j2;},j8.prototype.writeInt8=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,1,127,-128),j8.TYPED_ARRAY_SUPPORT||(j0=Math.floor(j0)),j0<0&&(j0=255+j0+1),this[j1]=255&j0,j1+1;},j8.prototype.writeInt16LE=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,2,32767,-32768),j8.TYPED_ARRAY_SUPPORT?(this[j1]=255&j0,this[j1+1]=j0>>>8):j34(this,j0,j1,!0),j1+2;},j8.prototype.writeInt16BE=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,2,32767,-32768),j8.TYPED_ARRAY_SUPPORT?(this[j1]=j0>>>8,this[j1+1]=255&j0):j34(this,j0,j1,!1),j1+2;},j8.prototype.writeInt32LE=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,4,2147483647,-2147483648),j8.TYPED_ARRAY_SUPPORT?(this[j1]=255&j0,this[j1+1]=j0>>>8,this[j1+2]=j0>>>16,this[j1+3]=j0>>>24):j35(this,j0,j1,!0),j1+4;},j8.prototype.writeInt32BE=function(j0,j1,j2){return j0=+j0,j1|=0,j2||j33(this,j0,j1,4,2147483647,-2147483648),j0<0&&(j0=4294967295+j0+1),j8.TYPED_ARRAY_SUPPORT?(this[j1]=j0>>>24,this[j1+1]=j0>>>16,this[j1+2]=j0>>>8,this[j1+3]=255&j0):j35(this,j0,j1,!1),j1+4;},j8.prototype.writeFloatLE=function(j0,j1,j2){return j37(this,j0,j1,!0,j2);},j8.prototype.writeFloatBE=function(j0,j1,j2){return j37(this,j0,j1,!1,j2);},j8.prototype.writeDoubleLE=function(j0,j1,j2){return j38(this,j0,j1,!0,j2);},j8.prototype.writeDoubleBE=function(j0,j1,j2){return j38(this,j0,j1,!1,j2);},j8.prototype.copy=function(j0,j1,j2,j3){if(j2||(j2=0),j3||0===j3||(j3=this.length),j1>=j0.length&&(j1=j0.length),j1||(j1=0),j3>0&&j3<j2&&(j3=j2),j3===j2)return 0;if(0===j0.length||0===this.length)return 0;if(j1<0)throw new RangeError("targetStart out of bounds");if(j2<0||j2>=this.length)throw new RangeError("sourceStart out of bounds");if(j3<0)throw new RangeError("sourceEnd out of bounds");j3>this.length&&(j3=this.length),j0.length-j1<j3-j2&&(j3=j0.length-j1+j2);var j4,j5=j3-j2;if(this===j0&&j2<j1&&j1<j3)for(j4=j5-1;j4>=0;--j4)j0[j4+j1]=this[j4+j2];else if(j5<1e3||!j8.TYPED_ARRAY_SUPPORT)for(j4=0;j4<j5;++j4)j0[j4+j1]=this[j4+j2];else Uint8Array.prototype.set.call(j0,this.subarray(j2,j2+j5),j1);return j5;},j8.prototype.fill=function(j0,j1,j2,j3){if("string"==typeof j0){if("string"==typeof j1?(j3=j1,j1=0,j2=this.length):"string"==typeof j2&&(j3=j2,j2=this.length),1===j0.length){var j4=j0.charCodeAt(0);j4<256&&(j0=j4);}if(void 0!==j3&&"string"!=typeof j3)throw new TypeError("encoding must be a string");if("string"==typeof j3&&!j8.isEncoding(j3))throw new TypeError("Unknown encoding: "+j3);}else"number"==typeof j0&&(j0&=255);if(j1<0||this.length<j1||this.length<j2)throw new RangeError("Out of range index");if(j2<=j1)return this;var j5;if(j1>>>=0,j2=void 0===j2?this.length:j2>>>0,j0||(j0=0),"number"==typeof j0)for(j5=j1;j5<j2;++j5)this[j5]=j0;else{var j6=j8.isBuffer(j0)?j0:j41(new j8(j0,j3).toString()),j7=j6.length;for(j5=0;j5<j2-j1;++j5)this[j5+j1]=j6[j5%j7];}return this;};var j39=/[^+\/0-9A-Za-z-_]/g;function j40(j0){return j0<16?"0"+j0.toString(16):j0.toString(16);}function j41(j0,j1){var j2;j1=j1||1/0;for(var j3=j0.length,j4=null,j5=[],j6=0;j6<j3;++j6){if((j2=j0.charCodeAt(j6))>55295&&j2<57344){if(!j4){if(j2>56319){(j1-=3)>-1&&j5.push(239,191,189);continue;}if(j6+1===j3){(j1-=3)>-1&&j5.push(239,191,189);continue;}j4=j2;continue;}if(j2<56320){(j1-=3)>-1&&j5.push(239,191,189),j4=j2;continue;}j2=65536+(j4-55296<<10|j2-56320);}else j4&&(j1-=3)>-1&&j5.push(239,191,189);if(j4=null,j2<128){if((j1-=1)<0)break;j5.push(j2);}else if(j2<2048){if((j1-=2)<0)break;j5.push(j2>>6|192,63&j2|128);}else if(j2<65536){if((j1-=3)<0)break;j5.push(j2>>12|224,j2>>6&63|128,63&j2|128);}else{if(!(j2<1114112))throw new Error("Invalid code point");if((j1-=4)<0)break;j5.push(j2>>18|240,j2>>12&63|128,j2>>6&63|128,63&j2|128);}}return j5;}function j42(j0){return j3.toByteArray(function(j0){if((j0=function(j0){return j0.trim?j0.trim():j0.replace(/^\s+|\s+$/g,"");}(j0).replace(j39,"")).length<2)return"";for(;j0.length%4!=0;)j0+="=";return j0;}(j0));}function j43(j0,j1,j2,j3){for(var j4=0;j4<j3&&!(j4+j2>=j1.length||j4>=j0.length);++j4)j1[j4+j2]=j0[j4];return j4;}}).call(this,j2(12));},function(j0,j1,j2){var j3=j2(37);j0.exports=function(j0,j1,j2){if(j3(j0),void 0===j1)return j0;switch(j2){case 1:return function(j2){return j0.call(j1,j2);};case 2:return function(j2,j3){return j0.call(j1,j2,j3);};case 3:return function(j2,j3,j4){return j0.call(j1,j2,j3,j4);};}return function(){return j0.apply(j1,arguments);};};},function(j0,j1,j2){var j3=j2(9),j4=j2(38);j0.exports=j2(8)?function(j0,j1,j2){return j3.f(j0,j1,j4(1,j2));}:function(j0,j1,j2){return j0[j1]=j2,j0;};},function(j0,j1,j2){"use strict";j0.exports=j2(305)()?j2(59).Symbol:j2(306);},function(j0,j1,j2){"use strict";var j3="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function j4(j0,j1){return Object.prototype.hasOwnProperty.call(j0,j1);}j1.assign=function(j0){for(var j1=Array.prototype.slice.call(arguments,1);j1.length;){var j2=j1.shift();if(j2){if("object"!=typeof j2)throw new TypeError(j2+"must be non-object");for(var j3 in j2)j4(j2,j3)&&(j0[j3]=j2[j3]);}}return j0;},j1.shrinkBuf=function(j0,j1){return j0.length===j1?j0:j0.subarray?j0.subarray(0,j1):(j0.length=j1,j0);};var j5={arraySet:function(j0,j1,j2,j3,j4){if(j1.subarray&&j0.subarray)j0.set(j1.subarray(j2,j2+j3),j4);else for(var j5=0;j5<j3;j5++)j0[j4+j5]=j1[j2+j5];},flattenChunks:function(j0){var j1,j2,j3,j4,j5,j6;for(j3=0,j1=0,j2=j0.length;j1<j2;j1++)j3+=j0[j1].length;for(j6=new Uint8Array(j3),j4=0,j1=0,j2=j0.length;j1<j2;j1++)j5=j0[j1],j6.set(j5,j4),j4+=j5.length;return j6;}},j6={arraySet:function(j0,j1,j2,j3,j4){for(var j5=0;j5<j3;j5++)j0[j4+j5]=j1[j2+j5];},flattenChunks:function(j0){return[].concat.apply([],j0);}};j1.setTyped=function(j0){j0?(j1.Buf8=Uint8Array,j1.Buf16=Uint16Array,j1.Buf32=Int32Array,j1.assign(j1,j5)):(j1.Buf8=Array,j1.Buf16=Array,j1.Buf32=Array,j1.assign(j1,j6));},j1.setTyped(j3);},function(j0,j1){j0.exports=function(j0){try{return!!j0();}catch(j0){return!0;}};},function(j0,j1){var j2={}.hasOwnProperty;j0.exports=function(j0,j1){return j2.call(j0,j1);};},function(j0,j1,j2){var j3,j4,j5,j6,j7,j8,j9,j10;j0.exports=(j10=j2(0),j2(83),j2(84),j4=(j3=j10).lib,j5=j4.Base,j6=j4.WordArray,j7=j3.algo,j8=j7.MD5,j9=j7.EvpKDF=j5.extend({cfg:j5.extend({keySize:4,hasher:j8,iterations:1}),init:function(j0){this.cfg=this.cfg.extend(j0);},compute:function(j0,j1){for(var j2=this.cfg,j3=j2.hasher.create(),j4=j6.create(),j5=j4.words,j7=j2.keySize,j8=j2.iterations;j5.length<j7;){j9&&j3.update(j9);var j9=j3.update(j0).finalize(j1);j3.reset();for(var j10=1;j10<j8;j10++)j9=j3.finalize(j9),j3.reset();j4.concat(j9);}return j4.sigBytes=4*j7,j4;}}),j3.EvpKDF=function(j0,j1,j2){return j9.create(j2).compute(j0,j1);},j10.EvpKDF);},function(j0,j1,j2){"use strict";var j3=j2(47),j4=Object.keys||function(j0){var j1=[];for(var j2 in j0)j1.push(j2);return j1;};j0.exports=j11;var j5=j2(48);j5.inherits=j2(14);var j6=j2(133),j7=j2(136);j5.inherits(j11,j6);for(var j8=j4(j7.prototype),j9=0;j9<j8.length;j9++){var j10=j8[j9];j11.prototype[j10]||(j11.prototype[j10]=j7.prototype[j10]);}function j11(j0){if(!(this instanceof j11))return new j11(j0);j6.call(this,j0),j7.call(this,j0),j0&&!1===j0.readable&&(this.readable=!1),j0&&!1===j0.writable&&(this.writable=!1),this.allowHalfOpen=!0,j0&&!1===j0.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",j12);}function j12(){this.allowHalfOpen||this._writableState.ended||j3.nextTick(j13,this);}function j13(j0){j0.end();}Object.defineProperty(j11.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark;}}),Object.defineProperty(j11.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed;},set:function(j0){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=j0,this._writableState.destroyed=j0);}}),j11.prototype._destroy=function(j0,j1){this.push(null),this.end(),j3.nextTick(j1,j0);};},function(j0,j1,j2){"use strict";j0.exports=function(j0){if("function"!=typeof j0)throw new TypeError(j0+" is not a function");return j0;};},function(j0,j1,j2){"use strict";var j3=j2(185)(!0);j2(65)(String,"String",function(j0){this._t=String(j0),this._i=0;},function(){var j0,j1=this._t,j2=this._i;return j2>=j1.length?{value:void 0,done:!0}:(j0=j3(j1,j2),this._i+=j0.length,{value:j0,done:!1});});},function(j0,j1,j2){var j3=j2(68),j4=j2(64);j0.exports=function(j0){return j3(j4(j0));};},function(j0,j1,j2){var j3=j2(64);j0.exports=function(j0){return Object(j3(j0));};},function(j0,j1,j2){"use strict";(function(j1){var j3=j5(j2(62)),j4=j5(j2(81));function j5(j0){return j0&&j0.__esModule?j0:{default:j0};}var j6=j2(227),j7=j2(251).sm4,j8=[0,17,34,51,68,85,102,119,120,121,122,123,124,125,126,127],j9=!1;function j10(j0){var j2=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",j5=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],j10=j8;j2.length>0&&(j10=j13(j2));var j11=new Array();if(j5){var j14=parseInt((new Date().getTime()/1e3-1514736e3)/3600);j11.push(255&j14),j11.push((65280&j14)>>8),j11.push((16711680&j14)>>16),j11.push(j14>>24);}if("string"==typeof j0){var j17;(j17=j11).push.apply(j17,(0,j4.default)(j15(j0)));}else{var j18=(0,j3.default)(j0);j18.unshift.apply(j18,(0,j4.default)(j11)),j11=j18;}var j19=j16(j11);if(j9){var j20=j7.encrypt(j11,j10,{iv:j10,mode:"cbc",padding:"pkcs#5",output:"array"});return j1.from(j20).toString("base64");}j10=j6.enc.Utf8.parse(j12(j10));var j21=j6.AES.encrypt(j6.enc.Hex.parse(j19),j10,{iv:j10,mode:j6.mode.CBC,padding:j6.pad.Pkcs7}),j22=j21.toString();return j22;}function j11(j0,j2,j3){var j4=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];j3=!1;var j5,j10=j8;if(j2.length>0&&(j10=j13(j2)),j9){var j11=j1.from(j0,"base64");j5=j7.decrypt(j11,j10,{iv:j10,mode:"cbc",padding:"pkcs#5",output:"array"});}else{var j15=j6.enc.Utf8.parse(j12(j10)),j16=j6.AES.decrypt(j0,j15,{iv:j15,mode:j6.mode.CBC,padding:j6.pad.Pkcs7}),j17=j16.toString();j5=j14(j17);}if(j4&&j5.length>4){if(j3){var j18=0;j18+=j5[3]&&255,j18<<=8,j18+=j5[2]&&255,j18<<=8,j18+=j5[1]&&255,j18<<=8,j18+=j5[0]&&255,j18<<=8;var j19=(new Date().getUTCMilliseconds()/1e3-1514736e3)/3600;return j19-j18>24&&j3?null:j5.slice(4,j5.length);}return j5.slice(4,j5.length);}return j5.length>4?j5:null;}function j12(j0){for(var j1=0,j2="";j1<j0.length;j1++)j2+=String.fromCharCode(j0[j1]);return j2;}function j13(j0){for(var j1=[],j2=0;j2<j0.length&&j2<16;j2++)j1.push(j0.charCodeAt(j2));return new Uint8Array(j1);}function j14(j0){var j1=0,j2=j0.length;if(j2%2!=0)return null;j2/=2;for(var j3=new Array(),j4=0;j4<j2;j4++){var j5=j0.substr(j1,2),j6=parseInt(j5,16);j3.push(j6),j1+=2;}return j3;}function j15(j0){var j1,j2,j3=new Array();j1=j0.length;for(var j4=0;j4<j1;j4++)(j2=j0.charCodeAt(j4))>=65536&&j2<=1114111?(j3.push(j2>>18&7|240),j3.push(j2>>12&63|128),j3.push(j2>>6&63|128),j3.push(63&j2|128)):j2>=2048&&j2<=65535?(j3.push(j2>>12&15|224),j3.push(j2>>6&63|128),j3.push(63&j2|128)):j2>=128&&j2<=2047?(j3.push(j2>>6&31|192),j3.push(63&j2|128)):j3.push(255&j2);return j3;}function j16(j0){for(var j1="",j2=0;j2<j0.length;j2++){var j3=void 0,j4=j0[j2];1==(j3=j4<0?(255+j4+1).toString(16):j4.toString(16)).length&&(j3="0"+j3),j1+=j3;}return j1;}j0.exports.useEncryptSM4=function(){j9=!0;},j0.exports.AESEncrypt=j10,j0.exports.AESDecrypt=j11,j0.exports.Uint8ToStr=j12;}).call(this,j2(16).Buffer);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),function(){var j0=j3,j1=j0.lib.WordArray;function j2(j0,j2,j3){for(var j4=[],j5=0,j6=0;j6<j2;j6++)if(j6%4){var j7=j3[j0.charCodeAt(j6-1)]<<j6%4*2,j8=j3[j0.charCodeAt(j6)]>>>6-j6%4*2;j4[j5>>>2]|=(j7|j8)<<24-j5%4*8,j5++;}return j1.create(j4,j5);}j0.enc.Base64={stringify:function(j0){var j1=j0.words,j2=j0.sigBytes,j3=this._map;j0.clamp();for(var j4=[],j5=0;j5<j2;j5+=3)for(var j6=(j1[j5>>>2]>>>24-j5%4*8&255)<<16|(j1[j5+1>>>2]>>>24-(j5+1)%4*8&255)<<8|j1[j5+2>>>2]>>>24-(j5+2)%4*8&255,j7=0;j7<4&&j5+.75*j7<j2;j7++)j4.push(j3.charAt(j6>>>6*(3-j7)&63));var j8=j3.charAt(64);if(j8)for(;j4.length%4;)j4.push(j8);return j4.join("");},parse:function(j0){var j1=j0.length,j3=this._map,j4=this._reverseMap;if(!j4){j4=this._reverseMap=[];for(var j5=0;j5<j3.length;j5++)j4[j3.charCodeAt(j5)]=j5;}var j6=j3.charAt(64);if(j6){var j7=j0.indexOf(j6);-1!==j7&&(j1=j7);}return j2(j0,j1,j4);},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};}(),j3.enc.Base64);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),function(j0){var j1=j3,j2=j1.lib,j4=j2.WordArray,j5=j2.Hasher,j6=j1.algo,j7=[];!function(){for(var j1=0;j1<64;j1++)j7[j1]=4294967296*j0.abs(j0.sin(j1+1))|0;}();var j8=j6.MD5=j5.extend({_doReset:function(){this._hash=new j4.init([1732584193,4023233417,2562383102,271733878]);},_doProcessBlock:function(j0,j1){for(var j2=0;j2<16;j2++){var j3=j1+j2,j4=j0[j3];j0[j3]=16711935&(j4<<8|j4>>>24)|4278255360&(j4<<24|j4>>>8);}var j5=this._hash.words,j6=j0[j1+0],j8=j0[j1+1],j13=j0[j1+2],j14=j0[j1+3],j15=j0[j1+4],j16=j0[j1+5],j17=j0[j1+6],j18=j0[j1+7],j19=j0[j1+8],j20=j0[j1+9],j21=j0[j1+10],j22=j0[j1+11],j23=j0[j1+12],j24=j0[j1+13],j25=j0[j1+14],j26=j0[j1+15],j27=j5[0],j28=j5[1],j29=j5[2],j30=j5[3];j27=j9(j27,j28,j29,j30,j6,7,j7[0]),j30=j9(j30,j27,j28,j29,j8,12,j7[1]),j29=j9(j29,j30,j27,j28,j13,17,j7[2]),j28=j9(j28,j29,j30,j27,j14,22,j7[3]),j27=j9(j27,j28,j29,j30,j15,7,j7[4]),j30=j9(j30,j27,j28,j29,j16,12,j7[5]),j29=j9(j29,j30,j27,j28,j17,17,j7[6]),j28=j9(j28,j29,j30,j27,j18,22,j7[7]),j27=j9(j27,j28,j29,j30,j19,7,j7[8]),j30=j9(j30,j27,j28,j29,j20,12,j7[9]),j29=j9(j29,j30,j27,j28,j21,17,j7[10]),j28=j9(j28,j29,j30,j27,j22,22,j7[11]),j27=j9(j27,j28,j29,j30,j23,7,j7[12]),j30=j9(j30,j27,j28,j29,j24,12,j7[13]),j29=j9(j29,j30,j27,j28,j25,17,j7[14]),j27=j10(j27,j28=j9(j28,j29,j30,j27,j26,22,j7[15]),j29,j30,j8,5,j7[16]),j30=j10(j30,j27,j28,j29,j17,9,j7[17]),j29=j10(j29,j30,j27,j28,j22,14,j7[18]),j28=j10(j28,j29,j30,j27,j6,20,j7[19]),j27=j10(j27,j28,j29,j30,j16,5,j7[20]),j30=j10(j30,j27,j28,j29,j21,9,j7[21]),j29=j10(j29,j30,j27,j28,j26,14,j7[22]),j28=j10(j28,j29,j30,j27,j15,20,j7[23]),j27=j10(j27,j28,j29,j30,j20,5,j7[24]),j30=j10(j30,j27,j28,j29,j25,9,j7[25]),j29=j10(j29,j30,j27,j28,j14,14,j7[26]),j28=j10(j28,j29,j30,j27,j19,20,j7[27]),j27=j10(j27,j28,j29,j30,j24,5,j7[28]),j30=j10(j30,j27,j28,j29,j13,9,j7[29]),j29=j10(j29,j30,j27,j28,j18,14,j7[30]),j27=j11(j27,j28=j10(j28,j29,j30,j27,j23,20,j7[31]),j29,j30,j16,4,j7[32]),j30=j11(j30,j27,j28,j29,j19,11,j7[33]),j29=j11(j29,j30,j27,j28,j22,16,j7[34]),j28=j11(j28,j29,j30,j27,j25,23,j7[35]),j27=j11(j27,j28,j29,j30,j8,4,j7[36]),j30=j11(j30,j27,j28,j29,j15,11,j7[37]),j29=j11(j29,j30,j27,j28,j18,16,j7[38]),j28=j11(j28,j29,j30,j27,j21,23,j7[39]),j27=j11(j27,j28,j29,j30,j24,4,j7[40]),j30=j11(j30,j27,j28,j29,j6,11,j7[41]),j29=j11(j29,j30,j27,j28,j14,16,j7[42]),j28=j11(j28,j29,j30,j27,j17,23,j7[43]),j27=j11(j27,j28,j29,j30,j20,4,j7[44]),j30=j11(j30,j27,j28,j29,j23,11,j7[45]),j29=j11(j29,j30,j27,j28,j26,16,j7[46]),j27=j12(j27,j28=j11(j28,j29,j30,j27,j13,23,j7[47]),j29,j30,j6,6,j7[48]),j30=j12(j30,j27,j28,j29,j18,10,j7[49]),j29=j12(j29,j30,j27,j28,j25,15,j7[50]),j28=j12(j28,j29,j30,j27,j16,21,j7[51]),j27=j12(j27,j28,j29,j30,j23,6,j7[52]),j30=j12(j30,j27,j28,j29,j14,10,j7[53]),j29=j12(j29,j30,j27,j28,j21,15,j7[54]),j28=j12(j28,j29,j30,j27,j8,21,j7[55]),j27=j12(j27,j28,j29,j30,j19,6,j7[56]),j30=j12(j30,j27,j28,j29,j26,10,j7[57]),j29=j12(j29,j30,j27,j28,j17,15,j7[58]),j28=j12(j28,j29,j30,j27,j24,21,j7[59]),j27=j12(j27,j28,j29,j30,j15,6,j7[60]),j30=j12(j30,j27,j28,j29,j22,10,j7[61]),j29=j12(j29,j30,j27,j28,j13,15,j7[62]),j28=j12(j28,j29,j30,j27,j20,21,j7[63]),j5[0]=j5[0]+j27|0,j5[1]=j5[1]+j28|0,j5[2]=j5[2]+j29|0,j5[3]=j5[3]+j30|0;},_doFinalize:function(){var j1=this._data,j2=j1.words,j3=8*this._nDataBytes,j4=8*j1.sigBytes;j2[j4>>>5]|=128<<24-j4%32;var j5=j0.floor(j3/4294967296),j6=j3;j2[15+(j4+64>>>9<<4)]=16711935&(j5<<8|j5>>>24)|4278255360&(j5<<24|j5>>>8),j2[14+(j4+64>>>9<<4)]=16711935&(j6<<8|j6>>>24)|4278255360&(j6<<24|j6>>>8),j1.sigBytes=4*(j2.length+1),this._process();for(var j7=this._hash,j8=j7.words,j9=0;j9<4;j9++){var j10=j8[j9];j8[j9]=16711935&(j10<<8|j10>>>24)|4278255360&(j10<<24|j10>>>8);}return j7;},clone:function(){var j0=j5.clone.call(this);return j0._hash=this._hash.clone(),j0;}});function j9(j0,j1,j2,j3,j4,j5,j6){var j7=j0+(j1&j2|~j1&j3)+j4+j6;return(j7<<j5|j7>>>32-j5)+j1;}function j10(j0,j1,j2,j3,j4,j5,j6){var j7=j0+(j1&j3|j2&~j3)+j4+j6;return(j7<<j5|j7>>>32-j5)+j1;}function j11(j0,j1,j2,j3,j4,j5,j6){var j7=j0+(j1^j2^j3)+j4+j6;return(j7<<j5|j7>>>32-j5)+j1;}function j12(j0,j1,j2,j3,j4,j5,j6){var j7=j0+(j2^(j1|~j3))+j4+j6;return(j7<<j5|j7>>>32-j5)+j1;}j1.MD5=j5._createHelper(j8),j1.HmacMD5=j5._createHmacHelper(j8);}(Math),j3.MD5);},function(j0,j1,j2){"use strict";j1.__esModule=!0;var j3=j6(j2(259)),j4=j6(j2(261)),j5="function"==typeof j4.default&&"symbol"==typeof j3.default?function(j0){return typeof j0;}:function(j0){return j0&&"function"==typeof j4.default&&j0.constructor===j4.default&&j0!==j4.default.prototype?"symbol":typeof j0;};function j6(j0){return j0&&j0.__esModule?j0:{default:j0};}j1.default="function"==typeof j4.default&&"symbol"===j5(j3.default)?function(j0){return void 0===j0?"undefined":j5(j0);}:function(j0){return j0&&"function"==typeof j4.default&&j0.constructor===j4.default&&j0!==j4.default.prototype?"symbol":void 0===j0?"undefined":j5(j0);};},function(j0,j1,j2){(j1=j0.exports=j2(133)).Stream=j1,j1.Readable=j1,j1.Writable=j2(136),j1.Duplex=j2(24),j1.Transform=j2(138),j1.PassThrough=j2(280);},function(j0,j1,j2){"use strict";var j3=j2(284)();j0.exports=function(j0){return j0!==j3&&null!==j0;};},function(j0,j1,j2){"use strict";j0.exports=function(j0){return null!=j0;};},function(j0,j1){j0.exports=!0;},function(j0,j1){j0.exports=function(j0){if("function"!=typeof j0)throw TypeError(j0+" is not a function!");return j0;};},function(j0,j1){j0.exports=function(j0,j1){return{enumerable:!(1&j0),configurable:!(2&j0),writable:!(4&j0),value:j1};};},function(j0,j1){j0.exports={};},function(j0,j1,j2){var j3=j2(102),j4=j2(71);j0.exports=Object.keys||function(j0){return j3(j0,j4);};},function(j0,j1){var j2={}.toString;j0.exports=function(j0){return j2.call(j0).slice(8,-1);};},function(j0,j1,j2){var j3=j2(9).f,j4=j2(22),j5=j2(5)("toStringTag");j0.exports=function(j0,j1,j2){j0&&!j4(j0=j2?j0:j0.prototype,j5)&&j3(j0,j5,{configurable:!0,value:j1});};},function(j0,j1,j2){j2(193);for(var j3=j2(4),j4=j2(18),j5=j2(39),j6=j2(5)("toStringTag"),j7="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),j8=0;j8<j7.length;j8++){var j9=j7[j8],j10=j3[j9],j11=j10&&j10.prototype;j11&&!j11[j6]&&j4(j11,j6,j9),j5[j9]=j5.Array;}},function(j0,j1,j2){var j3=j2(17),j4=j2(104),j5=j2(105),j6=j2(13),j7=j2(50),j8=j2(72),j9={},j10={};(j1=j0.exports=function(j0,j1,j2,j11,j12){var j13,j14,j15,j16,j17=j12?function(){return j0;}:j8(j0),j18=j3(j2,j11,j1?2:1),j19=0;if("function"!=typeof j17)throw TypeError(j0+" is not iterable!");if(j5(j17)){for(j13=j7(j0.length);j13>j19;j19++)if((j16=j1?j18(j6(j14=j0[j19])[0],j14[1]):j18(j0[j19]))===j9||j16===j10)return j16;}else for(j15=j17.call(j0);!(j14=j15.next()).done;)if((j16=j4(j15,j18,j14.value,j1))===j9||j16===j10)return j16;}).BREAK=j9,j1.RETURN=j10;},function(j0,j1,j2){j0.exports={default:j2(272),__esModule:!0};},function(j0,j1,j2){"use strict";var j3,j4="object"==typeof Reflect?Reflect:null,j5=j4&&"function"==typeof j4.apply?j4.apply:function(j0,j1,j2){return Function.prototype.apply.call(j0,j1,j2);};j3=j4&&"function"==typeof j4.ownKeys?j4.ownKeys:Object.getOwnPropertySymbols?function(j0){return Object.getOwnPropertyNames(j0).concat(Object.getOwnPropertySymbols(j0));}:function(j0){return Object.getOwnPropertyNames(j0);};var j6=Number.isNaN||function(j0){return j0!=j0;};function j7(){j7.init.call(this);}j0.exports=j7,j7.EventEmitter=j7,j7.prototype._events=void 0,j7.prototype._eventsCount=0,j7.prototype._maxListeners=void 0;var j8=10;function j9(j0){return void 0===j0._maxListeners?j7.defaultMaxListeners:j0._maxListeners;}function j10(j0,j1,j2,j3){var j4,j5,j6,j7;if("function"!=typeof j2)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j2);if(void 0===(j5=j0._events)?(j5=j0._events=Object.create(null),j0._eventsCount=0):(void 0!==j5.newListener&&(j0.emit("newListener",j1,j2.listener?j2.listener:j2),j5=j0._events),j6=j5[j1]),void 0===j6)j6=j5[j1]=j2,++j0._eventsCount;else if("function"==typeof j6?j6=j5[j1]=j3?[j2,j6]:[j6,j2]:j3?j6.unshift(j2):j6.push(j2),(j4=j9(j0))>0&&j6.length>j4&&!j6.warned){j6.warned=!0;var j8=new Error("Possible EventEmitter memory leak detected. "+j6.length+" "+String(j1)+" listeners added. Use emitter.setMaxListeners() to increase limit");j8.name="MaxListenersExceededWarning",j8.emitter=j0,j8.type=j1,j8.count=j6.length,j7=j8,console&&console.warn&&console.warn(j7);}return j0;}function j11(){for(var j0=[],j1=0;j1<arguments.length;j1++)j0.push(arguments[j1]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,j5(this.listener,this.target,j0));}function j12(j0,j1,j2){var j3={fired:!1,wrapFn:void 0,target:j0,type:j1,listener:j2},j4=j11.bind(j3);return j4.listener=j2,j3.wrapFn=j4,j4;}function j13(j0,j1,j2){var j3=j0._events;if(void 0===j3)return[];var j4=j3[j1];return void 0===j4?[]:"function"==typeof j4?j2?[j4.listener||j4]:[j4]:j2?function(j0){for(var j1=new Array(j0.length),j2=0;j2<j1.length;++j2)j1[j2]=j0[j2].listener||j0[j2];return j1;}(j4):j15(j4,j4.length);}function j14(j0){var j1=this._events;if(void 0!==j1){var j2=j1[j0];if("function"==typeof j2)return 1;if(void 0!==j2)return j2.length;}return 0;}function j15(j0,j1){for(var j2=new Array(j1),j3=0;j3<j1;++j3)j2[j3]=j0[j3];return j2;}Object.defineProperty(j7,"defaultMaxListeners",{enumerable:!0,get:function(){return j8;},set:function(j0){if("number"!=typeof j0||j0<0||j6(j0))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+j0+".");j8=j0;}}),j7.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0;},j7.prototype.setMaxListeners=function(j0){if("number"!=typeof j0||j0<0||j6(j0))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+j0+".");return this._maxListeners=j0,this;},j7.prototype.getMaxListeners=function(){return j9(this);},j7.prototype.emit=function(j0){for(var j1=[],j2=1;j2<arguments.length;j2++)j1.push(arguments[j2]);var j3="error"===j0,j4=this._events;if(void 0!==j4)j3=j3&&void 0===j4.error;else if(!j3)return!1;if(j3){var j6;if(j1.length>0&&(j6=j1[0]),j6 instanceof Error)throw j6;var j7=new Error("Unhandled error."+(j6?" ("+j6.message+")":""));throw j7.context=j6,j7;}var j8=j4[j0];if(void 0===j8)return!1;if("function"==typeof j8)j5(j8,this,j1);else{var j9=j8.length,j10=j15(j8,j9);for(j2=0;j2<j9;++j2)j5(j10[j2],this,j1);}return!0;},j7.prototype.addListener=function(j0,j1){return j10(this,j0,j1,!1);},j7.prototype.on=j7.prototype.addListener,j7.prototype.prependListener=function(j0,j1){return j10(this,j0,j1,!0);},j7.prototype.once=function(j0,j1){if("function"!=typeof j1)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j1);return this.on(j0,j12(this,j0,j1)),this;},j7.prototype.prependOnceListener=function(j0,j1){if("function"!=typeof j1)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j1);return this.prependListener(j0,j12(this,j0,j1)),this;},j7.prototype.removeListener=function(j0,j1){var j2,j3,j4,j5,j6;if("function"!=typeof j1)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j1);if(void 0===(j3=this._events))return this;if(void 0===(j2=j3[j0]))return this;if(j2===j1||j2.listener===j1)0==--this._eventsCount?this._events=Object.create(null):(delete j3[j0],j3.removeListener&&this.emit("removeListener",j0,j2.listener||j1));else if("function"!=typeof j2){for(j4=-1,j5=j2.length-1;j5>=0;j5--)if(j2[j5]===j1||j2[j5].listener===j1){j6=j2[j5].listener,j4=j5;break;}if(j4<0)return this;0===j4?j2.shift():function(j0,j1){for(;j1+1<j0.length;j1++)j0[j1]=j0[j1+1];j0.pop();}(j2,j4),1===j2.length&&(j3[j0]=j2[0]),void 0!==j3.removeListener&&this.emit("removeListener",j0,j6||j1);}return this;},j7.prototype.off=j7.prototype.removeListener,j7.prototype.removeAllListeners=function(j0){var j1,j2,j3;if(void 0===(j2=this._events))return this;if(void 0===j2.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==j2[j0]&&(0==--this._eventsCount?this._events=Object.create(null):delete j2[j0]),this;if(0===arguments.length){var j4,j5=Object.keys(j2);for(j3=0;j3<j5.length;++j3)"removeListener"!==(j4=j5[j3])&&this.removeAllListeners(j4);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this;}if("function"==typeof(j1=j2[j0]))this.removeListener(j0,j1);else if(void 0!==j1)for(j3=j1.length-1;j3>=0;j3--)this.removeListener(j0,j1[j3]);return this;},j7.prototype.listeners=function(j0){return j13(this,j0,!0);},j7.prototype.rawListeners=function(j0){return j13(this,j0,!1);},j7.listenerCount=function(j0,j1){return"function"==typeof j0.listenerCount?j0.listenerCount(j1):j14.call(j0,j1);},j7.prototype.listenerCount=j14,j7.prototype.eventNames=function(){return this._eventsCount>0?j3(this._events):[];};},function(j0,j1,j2){"use strict";(function(j1){void 0===j1||!j1.version||0===j1.version.indexOf("v0.")||0===j1.version.indexOf("v1.")&&0!==j1.version.indexOf("v1.8.")?j0.exports={nextTick:function(j0,j2,j3,j4){if("function"!=typeof j0)throw new TypeError('"callback" argument must be a function');var j5,j6,j7=arguments.length;switch(j7){case 0:case 1:return j1.nextTick(j0);case 2:return j1.nextTick(function(){j0.call(null,j2);});case 3:return j1.nextTick(function(){j0.call(null,j2,j3);});case 4:return j1.nextTick(function(){j0.call(null,j2,j3,j4);});default:for(j5=new Array(j7-1),j6=0;j6<j5.length;)j5[j6++]=arguments[j6];return j1.nextTick(function(){j0.apply(null,j5);});}}}:j0.exports=j1;}).call(this,j2(6));},function(j0,j1,j2){(function(j0){function j2(j0){return Object.prototype.toString.call(j0);}j1.isArray=function(j0){return Array.isArray?Array.isArray(j0):"[object Array]"===j2(j0);},j1.isBoolean=function(j0){return"boolean"==typeof j0;},j1.isNull=function(j0){return null===j0;},j1.isNullOrUndefined=function(j0){return null==j0;},j1.isNumber=function(j0){return"number"==typeof j0;},j1.isString=function(j0){return"string"==typeof j0;},j1.isSymbol=function(j0){return"symbol"==typeof j0;},j1.isUndefined=function(j0){return void 0===j0;},j1.isRegExp=function(j0){return"[object RegExp]"===j2(j0);},j1.isObject=function(j0){return"object"==typeof j0&&null!==j0;},j1.isDate=function(j0){return"[object Date]"===j2(j0);},j1.isError=function(j0){return"[object Error]"===j2(j0)||j0 instanceof Error;},j1.isFunction=function(j0){return"function"==typeof j0;},j1.isPrimitive=function(j0){return null===j0||"boolean"==typeof j0||"number"==typeof j0||"string"==typeof j0||"symbol"==typeof j0||void 0===j0;},j1.isBuffer=j0.isBuffer;}).call(this,j2(16).Buffer);},function(j0,j1,j2){var j3=j2(13),j4=j2(101),j5=j2(71),j6=j2(69)("IE_PROTO"),j7=function(){},j8=function(){var j0,j1=j2(66)("iframe"),j3=j5.length;for(j1.style.display="none",j2(103).appendChild(j1),j1.src="javascript:",(j0=j1.contentWindow.document).open(),j0.write("<script>document.F=Object<\/script>"),j0.close(),j8=j0.F;j3--;)delete j8.prototype[j5[j3]];return j8();};j0.exports=Object.create||function(j0,j1){var j2;return null!==j0?(j7.prototype=j3(j0),j2=new j7(),j7.prototype=null,j2[j6]=j0):j2=j8(),void 0===j1?j2:j4(j2,j1);};},function(j0,j1,j2){var j3=j2(63),j4=Math.min;j0.exports=function(j0){return j0>0?j4(j3(j0),9007199254740991):0;};},function(j0,j1){var j2=0,j3=Math.random();j0.exports=function(j0){return"Symbol(".concat(void 0===j0?"":j0,")_",(++j2+j3).toString(36));};},function(j0,j1){},function(j0,j1,j2){var j3=j2(51)("meta"),j4=j2(7),j5=j2(22),j6=j2(9).f,j7=0,j8=Object.isExtensible||function(){return!0;},j9=!j2(21)(function(){return j8(Object.preventExtensions({}));}),j10=function(j0){j6(j0,j3,{value:{i:"O"+ ++j7,w:{}}});},j11=j0.exports={KEY:j3,NEED:!1,fastKey:function(j0,j1){if(!j4(j0))return"symbol"==typeof j0?j0:("string"==typeof j0?"S":"P")+j0;if(!j5(j0,j3)){if(!j8(j0))return"F";if(!j1)return"E";j10(j0);}return j0[j3].i;},getWeak:function(j0,j1){if(!j5(j0,j3)){if(!j8(j0))return!0;if(!j1)return!1;j10(j0);}return j0[j3].w;},onFreeze:function(j0){return j9&&j11.NEED&&j8(j0)&&!j5(j0,j3)&&j10(j0),j0;}};},function(j0,j1){j1.f={}.propertyIsEnumerable;},function(j0,j1,j2){"use strict";j1.__esModule=!0,j1.default=function(j0,j1){if(!(j0 instanceof j1))throw new TypeError("Cannot call a class as a function");};},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),function(j0){var j1=j3,j2=j1.lib,j4=j2.Base,j5=j2.WordArray,j6=j1.x64={};j6.Word=j4.extend({init:function(j0,j1){this.high=j0,this.low=j1;}}),j6.WordArray=j4.extend({init:function(j1,j2){j1=this.words=j1||[],this.sigBytes=j2!=j0?j2:8*j1.length;},toX32:function(){for(var j0=this.words,j1=j0.length,j2=[],j3=0;j3<j1;j3++){var j4=j0[j3];j2.push(j4.high),j2.push(j4.low);}return j5.create(j2,this.sigBytes);},clone:function(){for(var j0=j4.clone.call(this),j1=j0.words=this.words.slice(0),j2=j1.length,j3=0;j3<j2;j3++)j1[j3]=j1[j3].clone();return j0;}});}(),j3);},function(j0,j1,j2){(function(){var j1;function j2(j0,j1,j2){null!=j0&&("number"==typeof j0?this.fromNumber(j0,j1,j2):null==j1&&"string"!=typeof j0?this.fromString(j0,256):this.fromString(j0,j1));}function j3(){return new j2(null);}var j4="undefined"!=typeof navigator;j4&&"Microsoft Internet Explorer"==navigator.appName?(j2.prototype.am=function(j0,j1,j2,j3,j4,j5){for(var j6=32767&j1,j7=j1>>15;--j5>=0;){var j8=32767&this[j0],j9=this[j0++]>>15,j10=j7*j8+j9*j6;j4=((j8=j6*j8+((32767&j10)<<15)+j2[j3]+(1073741823&j4))>>>30)+(j10>>>15)+j7*j9+(j4>>>30),j2[j3++]=1073741823&j8;}return j4;},j1=30):j4&&"Netscape"!=navigator.appName?(j2.prototype.am=function(j0,j1,j2,j3,j4,j5){for(;--j5>=0;){var j6=j1*this[j0++]+j2[j3]+j4;j4=Math.floor(j6/67108864),j2[j3++]=67108863&j6;}return j4;},j1=26):(j2.prototype.am=function(j0,j1,j2,j3,j4,j5){for(var j6=16383&j1,j7=j1>>14;--j5>=0;){var j8=16383&this[j0],j9=this[j0++]>>14,j10=j7*j8+j9*j6;j4=((j8=j6*j8+((16383&j10)<<14)+j2[j3]+j4)>>28)+(j10>>14)+j7*j9,j2[j3++]=268435455&j8;}return j4;},j1=28),j2.prototype.DB=j1,j2.prototype.DM=(1<<j1)-1,j2.prototype.DV=1<<j1;j2.prototype.FV=Math.pow(2,52),j2.prototype.F1=52-j1,j2.prototype.F2=2*j1-52;var j5,j6,j7=new Array();for(j5="0".charCodeAt(0),j6=0;j6<=9;++j6)j7[j5++]=j6;for(j5="a".charCodeAt(0),j6=10;j6<36;++j6)j7[j5++]=j6;for(j5="A".charCodeAt(0),j6=10;j6<36;++j6)j7[j5++]=j6;function j8(j0){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(j0);}function j9(j0,j1){var j2=j7[j0.charCodeAt(j1)];return null==j2?-1:j2;}function j10(j0){var j1=j3();return j1.fromInt(j0),j1;}function j11(j0){var j1,j2=1;return 0!=(j1=j0>>>16)&&(j0=j1,j2+=16),0!=(j1=j0>>8)&&(j0=j1,j2+=8),0!=(j1=j0>>4)&&(j0=j1,j2+=4),0!=(j1=j0>>2)&&(j0=j1,j2+=2),0!=(j1=j0>>1)&&(j0=j1,j2+=1),j2;}function j12(j0){this.m=j0;}function j13(j0){this.m=j0,this.mp=j0.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<j0.DB-15)-1,this.mt2=2*j0.t;}function j14(j0,j1){return j0&j1;}function j15(j0,j1){return j0|j1;}function j16(j0,j1){return j0^j1;}function j17(j0,j1){return j0&~j1;}function j18(j0){if(0==j0)return-1;var j1=0;return 0==(65535&j0)&&(j0>>=16,j1+=16),0==(255&j0)&&(j0>>=8,j1+=8),0==(15&j0)&&(j0>>=4,j1+=4),0==(3&j0)&&(j0>>=2,j1+=2),0==(1&j0)&&++j1,j1;}function j19(j0){for(var j1=0;0!=j0;)j0&=j0-1,++j1;return j1;}function j20(){}function j21(j0){return j0;}function j22(j0){this.r2=j3(),this.q3=j3(),j2.ONE.dlShiftTo(2*j0.t,this.r2),this.mu=this.r2.divide(j0),this.m=j0;}j12.prototype.convert=function(j0){return j0.s<0||j0.compareTo(this.m)>=0?j0.mod(this.m):j0;},j12.prototype.revert=function(j0){return j0;},j12.prototype.reduce=function(j0){j0.divRemTo(this.m,null,j0);},j12.prototype.mulTo=function(j0,j1,j2){j0.multiplyTo(j1,j2),this.reduce(j2);},j12.prototype.sqrTo=function(j0,j1){j0.squareTo(j1),this.reduce(j1);},j13.prototype.convert=function(j0){var j1=j3();return j0.abs().dlShiftTo(this.m.t,j1),j1.divRemTo(this.m,null,j1),j0.s<0&&j1.compareTo(j2.ZERO)>0&&this.m.subTo(j1,j1),j1;},j13.prototype.revert=function(j0){var j1=j3();return j0.copyTo(j1),this.reduce(j1),j1;},j13.prototype.reduce=function(j0){for(;j0.t<=this.mt2;)j0[j0.t++]=0;for(var j1=0;j1<this.m.t;++j1){var j2=32767&j0[j1],j3=j2*this.mpl+((j2*this.mph+(j0[j1]>>15)*this.mpl&this.um)<<15)&j0.DM;for(j0[j2=j1+this.m.t]+=this.m.am(0,j3,j0,j1,0,this.m.t);j0[j2]>=j0.DV;)j0[j2]-=j0.DV,j0[++j2]++;}j0.clamp(),j0.drShiftTo(this.m.t,j0),j0.compareTo(this.m)>=0&&j0.subTo(this.m,j0);},j13.prototype.mulTo=function(j0,j1,j2){j0.multiplyTo(j1,j2),this.reduce(j2);},j13.prototype.sqrTo=function(j0,j1){j0.squareTo(j1),this.reduce(j1);},j2.prototype.copyTo=function(j0){for(var j1=this.t-1;j1>=0;--j1)j0[j1]=this[j1];j0.t=this.t,j0.s=this.s;},j2.prototype.fromInt=function(j0){this.t=1,this.s=j0<0?-1:0,j0>0?this[0]=j0:j0<-1?this[0]=j0+this.DV:this.t=0;},j2.prototype.fromString=function(j0,j1){var j3;if(16==j1)j3=4;else if(8==j1)j3=3;else if(256==j1)j3=8;else if(2==j1)j3=1;else if(32==j1)j3=5;else{if(4!=j1)return void this.fromRadix(j0,j1);j3=2;}this.t=0,this.s=0;for(var j4=j0.length,j5=!1,j6=0;--j4>=0;){var j7=8==j3?255&j0[j4]:j9(j0,j4);j7<0?"-"==j0.charAt(j4)&&(j5=!0):(j5=!1,0==j6?this[this.t++]=j7:j6+j3>this.DB?(this[this.t-1]|=(j7&(1<<this.DB-j6)-1)<<j6,this[this.t++]=j7>>this.DB-j6):this[this.t-1]|=j7<<j6,(j6+=j3)>=this.DB&&(j6-=this.DB));}8==j3&&0!=(128&j0[0])&&(this.s=-1,j6>0&&(this[this.t-1]|=(1<<this.DB-j6)-1<<j6)),this.clamp(),j5&&j2.ZERO.subTo(this,this);},j2.prototype.clamp=function(){for(var j0=this.s&this.DM;this.t>0&&this[this.t-1]==j0;)--this.t;},j2.prototype.dlShiftTo=function(j0,j1){var j2;for(j2=this.t-1;j2>=0;--j2)j1[j2+j0]=this[j2];for(j2=j0-1;j2>=0;--j2)j1[j2]=0;j1.t=this.t+j0,j1.s=this.s;},j2.prototype.drShiftTo=function(j0,j1){for(var j2=j0;j2<this.t;++j2)j1[j2-j0]=this[j2];j1.t=Math.max(this.t-j0,0),j1.s=this.s;},j2.prototype.lShiftTo=function(j0,j1){var j2,j3=j0%this.DB,j4=this.DB-j3,j5=(1<<j4)-1,j6=Math.floor(j0/this.DB),j7=this.s<<j3&this.DM;for(j2=this.t-1;j2>=0;--j2)j1[j2+j6+1]=this[j2]>>j4|j7,j7=(this[j2]&j5)<<j3;for(j2=j6-1;j2>=0;--j2)j1[j2]=0;j1[j6]=j7,j1.t=this.t+j6+1,j1.s=this.s,j1.clamp();},j2.prototype.rShiftTo=function(j0,j1){j1.s=this.s;var j2=Math.floor(j0/this.DB);if(j2>=this.t)j1.t=0;else{var j3=j0%this.DB,j4=this.DB-j3,j5=(1<<j3)-1;j1[0]=this[j2]>>j3;for(var j6=j2+1;j6<this.t;++j6)j1[j6-j2-1]|=(this[j6]&j5)<<j4,j1[j6-j2]=this[j6]>>j3;j3>0&&(j1[this.t-j2-1]|=(this.s&j5)<<j4),j1.t=this.t-j2,j1.clamp();}},j2.prototype.subTo=function(j0,j1){for(var j2=0,j3=0,j4=Math.min(j0.t,this.t);j2<j4;)j3+=this[j2]-j0[j2],j1[j2++]=j3&this.DM,j3>>=this.DB;if(j0.t<this.t){for(j3-=j0.s;j2<this.t;)j3+=this[j2],j1[j2++]=j3&this.DM,j3>>=this.DB;j3+=this.s;}else{for(j3+=this.s;j2<j0.t;)j3-=j0[j2],j1[j2++]=j3&this.DM,j3>>=this.DB;j3-=j0.s;}j1.s=j3<0?-1:0,j3<-1?j1[j2++]=this.DV+j3:j3>0&&(j1[j2++]=j3),j1.t=j2,j1.clamp();},j2.prototype.multiplyTo=function(j0,j1){var j3=this.abs(),j4=j0.abs(),j5=j3.t;for(j1.t=j5+j4.t;--j5>=0;)j1[j5]=0;for(j5=0;j5<j4.t;++j5)j1[j5+j3.t]=j3.am(0,j4[j5],j1,j5,0,j3.t);j1.s=0,j1.clamp(),this.s!=j0.s&&j2.ZERO.subTo(j1,j1);},j2.prototype.squareTo=function(j0){for(var j1=this.abs(),j2=j0.t=2*j1.t;--j2>=0;)j0[j2]=0;for(j2=0;j2<j1.t-1;++j2){var j3=j1.am(j2,j1[j2],j0,2*j2,0,1);(j0[j2+j1.t]+=j1.am(j2+1,2*j1[j2],j0,2*j2+1,j3,j1.t-j2-1))>=j1.DV&&(j0[j2+j1.t]-=j1.DV,j0[j2+j1.t+1]=1);}j0.t>0&&(j0[j0.t-1]+=j1.am(j2,j1[j2],j0,2*j2,0,1)),j0.s=0,j0.clamp();},j2.prototype.divRemTo=function(j0,j1,j4){var j5=j0.abs();if(!(j5.t<=0)){var j6=this.abs();if(j6.t<j5.t)return null!=j1&&j1.fromInt(0),void(null!=j4&&this.copyTo(j4));null==j4&&(j4=j3());var j7=j3(),j8=this.s,j9=j0.s,j10=this.DB-j11(j5[j5.t-1]);j10>0?(j5.lShiftTo(j10,j7),j6.lShiftTo(j10,j4)):(j5.copyTo(j7),j6.copyTo(j4));var j12=j7.t,j13=j7[j12-1];if(0!=j13){var j14=j13*(1<<this.F1)+(j12>1?j7[j12-2]>>this.F2:0),j15=this.FV/j14,j16=(1<<this.F1)/j14,j17=1<<this.F2,j18=j4.t,j19=j18-j12,j20=null==j1?j3():j1;for(j7.dlShiftTo(j19,j20),j4.compareTo(j20)>=0&&(j4[j4.t++]=1,j4.subTo(j20,j4)),j2.ONE.dlShiftTo(j12,j20),j20.subTo(j7,j7);j7.t<j12;)j7[j7.t++]=0;for(;--j19>=0;){var j21=j4[--j18]==j13?this.DM:Math.floor(j4[j18]*j15+(j4[j18-1]+j17)*j16);if((j4[j18]+=j7.am(0,j21,j4,j19,0,j12))<j21)for(j7.dlShiftTo(j19,j20),j4.subTo(j20,j4);j4[j18]<--j21;)j4.subTo(j20,j4);}null!=j1&&(j4.drShiftTo(j12,j1),j8!=j9&&j2.ZERO.subTo(j1,j1)),j4.t=j12,j4.clamp(),j10>0&&j4.rShiftTo(j10,j4),j8<0&&j2.ZERO.subTo(j4,j4);}}},j2.prototype.invDigit=function(){if(this.t<1)return 0;var j0=this[0];if(0==(1&j0))return 0;var j1=3&j0;return(j1=(j1=(j1=(j1=j1*(2-(15&j0)*j1)&15)*(2-(255&j0)*j1)&255)*(2-((65535&j0)*j1&65535))&65535)*(2-j0*j1%this.DV)%this.DV)>0?this.DV-j1:-j1;},j2.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s);},j2.prototype.exp=function(j0,j1){if(j0>4294967295||j0<1)return j2.ONE;var j4=j3(),j5=j3(),j6=j1.convert(this),j7=j11(j0)-1;for(j6.copyTo(j4);--j7>=0;)if(j1.sqrTo(j4,j5),(j0&1<<j7)>0)j1.mulTo(j5,j6,j4);else{var j8=j4;j4=j5,j5=j8;}return j1.revert(j4);},j2.prototype.toString=function(j0){if(this.s<0)return"-"+this.negate().toString(j0);var j1;if(16==j0)j1=4;else if(8==j0)j1=3;else if(2==j0)j1=1;else if(32==j0)j1=5;else{if(4!=j0)return this.toRadix(j0);j1=2;}var j2,j3=(1<<j1)-1,j4=!1,j5="",j6=this.t,j7=this.DB-j6*this.DB%j1;if(j6-->0)for(j7<this.DB&&(j2=this[j6]>>j7)>0&&(j4=!0,j5=j8(j2));j6>=0;)j7<j1?(j2=(this[j6]&(1<<j7)-1)<<j1-j7,j2|=this[--j6]>>(j7+=this.DB-j1)):(j2=this[j6]>>(j7-=j1)&j3,j7<=0&&(j7+=this.DB,--j6)),j2>0&&(j4=!0),j4&&(j5+=j8(j2));return j4?j5:"0";},j2.prototype.negate=function(){var j0=j3();return j2.ZERO.subTo(this,j0),j0;},j2.prototype.abs=function(){return this.s<0?this.negate():this;},j2.prototype.compareTo=function(j0){var j1=this.s-j0.s;if(0!=j1)return j1;var j2=this.t;if(0!=(j1=j2-j0.t))return this.s<0?-j1:j1;for(;--j2>=0;)if(0!=(j1=this[j2]-j0[j2]))return j1;return 0;},j2.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+j11(this[this.t-1]^this.s&this.DM);},j2.prototype.mod=function(j0){var j1=j3();return this.abs().divRemTo(j0,null,j1),this.s<0&&j1.compareTo(j2.ZERO)>0&&j0.subTo(j1,j1),j1;},j2.prototype.modPowInt=function(j0,j1){var j2;return j2=j0<256||j1.isEven()?new j12(j1):new j13(j1),this.exp(j0,j2);},j2.ZERO=j10(0),j2.ONE=j10(1),j20.prototype.convert=j21,j20.prototype.revert=j21,j20.prototype.mulTo=function(j0,j1,j2){j0.multiplyTo(j1,j2);},j20.prototype.sqrTo=function(j0,j1){j0.squareTo(j1);},j22.prototype.convert=function(j0){if(j0.s<0||j0.t>2*this.m.t)return j0.mod(this.m);if(j0.compareTo(this.m)<0)return j0;var j1=j3();return j0.copyTo(j1),this.reduce(j1),j1;},j22.prototype.revert=function(j0){return j0;},j22.prototype.reduce=function(j0){for(j0.drShiftTo(this.m.t-1,this.r2),j0.t>this.m.t+1&&(j0.t=this.m.t+1,j0.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);j0.compareTo(this.r2)<0;)j0.dAddOffset(1,this.m.t+1);for(j0.subTo(this.r2,j0);j0.compareTo(this.m)>=0;)j0.subTo(this.m,j0);},j22.prototype.mulTo=function(j0,j1,j2){j0.multiplyTo(j1,j2),this.reduce(j2);},j22.prototype.sqrTo=function(j0,j1){j0.squareTo(j1),this.reduce(j1);};var j23,j24,j25,j26=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],j27=(1<<26)/j26[j26.length-1];function j28(){var j0;j0=new Date().getTime(),j24[j25++]^=255&j0,j24[j25++]^=j0>>8&255,j24[j25++]^=j0>>16&255,j24[j25++]^=j0>>24&255,j25>=j35&&(j25-=j35);}if(j2.prototype.chunkSize=function(j0){return Math.floor(Math.LN2*this.DB/Math.log(j0));},j2.prototype.toRadix=function(j0){if(null==j0&&(j0=10),0==this.signum()||j0<2||j0>36)return"0";var j1=this.chunkSize(j0),j2=Math.pow(j0,j1),j4=j10(j2),j5=j3(),j6=j3(),j7="";for(this.divRemTo(j4,j5,j6);j5.signum()>0;)j7=(j2+j6.intValue()).toString(j0).substr(1)+j7,j5.divRemTo(j4,j5,j6);return j6.intValue().toString(j0)+j7;},j2.prototype.fromRadix=function(j0,j1){this.fromInt(0),null==j1&&(j1=10);for(var j3=this.chunkSize(j1),j4=Math.pow(j1,j3),j5=!1,j6=0,j7=0,j8=0;j8<j0.length;++j8){var j10=j9(j0,j8);j10<0?"-"==j0.charAt(j8)&&0==this.signum()&&(j5=!0):(j7=j1*j7+j10,++j6>=j3&&(this.dMultiply(j4),this.dAddOffset(j7,0),j6=0,j7=0));}j6>0&&(this.dMultiply(Math.pow(j1,j6)),this.dAddOffset(j7,0)),j5&&j2.ZERO.subTo(this,this);},j2.prototype.fromNumber=function(j0,j1,j3){if("number"==typeof j1){if(j0<2)this.fromInt(1);else for(this.fromNumber(j0,j3),this.testBit(j0-1)||this.bitwiseTo(j2.ONE.shiftLeft(j0-1),j15,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(j1);)this.dAddOffset(2,0),this.bitLength()>j0&&this.subTo(j2.ONE.shiftLeft(j0-1),this);}else{var j4=new Array(),j5=7&j0;j4.length=1+(j0>>3),j1.nextBytes(j4),j5>0?j4[0]&=(1<<j5)-1:j4[0]=0,this.fromString(j4,256);}},j2.prototype.bitwiseTo=function(j0,j1,j2){var j3,j4,j5=Math.min(j0.t,this.t);for(j3=0;j3<j5;++j3)j2[j3]=j1(this[j3],j0[j3]);if(j0.t<this.t){for(j4=j0.s&this.DM,j3=j5;j3<this.t;++j3)j2[j3]=j1(this[j3],j4);j2.t=this.t;}else{for(j4=this.s&this.DM,j3=j5;j3<j0.t;++j3)j2[j3]=j1(j4,j0[j3]);j2.t=j0.t;}j2.s=j1(this.s,j0.s),j2.clamp();},j2.prototype.changeBit=function(j0,j1){var j3=j2.ONE.shiftLeft(j0);return this.bitwiseTo(j3,j1,j3),j3;},j2.prototype.addTo=function(j0,j1){for(var j2=0,j3=0,j4=Math.min(j0.t,this.t);j2<j4;)j3+=this[j2]+j0[j2],j1[j2++]=j3&this.DM,j3>>=this.DB;if(j0.t<this.t){for(j3+=j0.s;j2<this.t;)j3+=this[j2],j1[j2++]=j3&this.DM,j3>>=this.DB;j3+=this.s;}else{for(j3+=this.s;j2<j0.t;)j3+=j0[j2],j1[j2++]=j3&this.DM,j3>>=this.DB;j3+=j0.s;}j1.s=j3<0?-1:0,j3>0?j1[j2++]=j3:j3<-1&&(j1[j2++]=this.DV+j3),j1.t=j2,j1.clamp();},j2.prototype.dMultiply=function(j0){this[this.t]=this.am(0,j0-1,this,0,0,this.t),++this.t,this.clamp();},j2.prototype.dAddOffset=function(j0,j1){if(0!=j0){for(;this.t<=j1;)this[this.t++]=0;for(this[j1]+=j0;this[j1]>=this.DV;)this[j1]-=this.DV,++j1>=this.t&&(this[this.t++]=0),++this[j1];}},j2.prototype.multiplyLowerTo=function(j0,j1,j2){var j3,j4=Math.min(this.t+j0.t,j1);for(j2.s=0,j2.t=j4;j4>0;)j2[--j4]=0;for(j3=j2.t-this.t;j4<j3;++j4)j2[j4+this.t]=this.am(0,j0[j4],j2,j4,0,this.t);for(j3=Math.min(j0.t,j1);j4<j3;++j4)this.am(0,j0[j4],j2,j4,0,j1-j4);j2.clamp();},j2.prototype.multiplyUpperTo=function(j0,j1,j2){--j1;var j3=j2.t=this.t+j0.t-j1;for(j2.s=0;--j3>=0;)j2[j3]=0;for(j3=Math.max(j1-this.t,0);j3<j0.t;++j3)j2[this.t+j3-j1]=this.am(j1-j3,j0[j3],j2,0,0,this.t+j3-j1);j2.clamp(),j2.drShiftTo(1,j2);},j2.prototype.modInt=function(j0){if(j0<=0)return 0;var j1=this.DV%j0,j2=this.s<0?j0-1:0;if(this.t>0)if(0==j1)j2=this[0]%j0;else for(var j3=this.t-1;j3>=0;--j3)j2=(j1*j2+this[j3])%j0;return j2;},j2.prototype.millerRabin=function(j0){var j1=this.subtract(j2.ONE),j4=j1.getLowestSetBit();if(j4<=0)return!1;var j5=j1.shiftRight(j4);(j0=j0+1>>1)>j26.length&&(j0=j26.length);for(var j6=j3(),j7=0;j7<j0;++j7){j6.fromInt(j26[Math.floor(Math.random()*j26.length)]);var j8=j6.modPow(j5,this);if(0!=j8.compareTo(j2.ONE)&&0!=j8.compareTo(j1)){for(var j9=1;j9++<j4&&0!=j8.compareTo(j1);)if(0==(j8=j8.modPowInt(2,this)).compareTo(j2.ONE))return!1;if(0!=j8.compareTo(j1))return!1;}}return!0;},j2.prototype.clone=function(){var j0=j3();return this.copyTo(j0),j0;},j2.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1;}else{if(1==this.t)return this[0];if(0==this.t)return 0;}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0];},j2.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24;},j2.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16;},j2.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1;},j2.prototype.toByteArray=function(){var j0=this.t,j1=new Array();j1[0]=this.s;var j2,j3=this.DB-j0*this.DB%8,j4=0;if(j0-->0)for(j3<this.DB&&(j2=this[j0]>>j3)!=(this.s&this.DM)>>j3&&(j1[j4++]=j2|this.s<<this.DB-j3);j0>=0;)j3<8?(j2=(this[j0]&(1<<j3)-1)<<8-j3,j2|=this[--j0]>>(j3+=this.DB-8)):(j2=this[j0]>>(j3-=8)&255,j3<=0&&(j3+=this.DB,--j0)),0!=(128&j2)&&(j2|=-256),0==j4&&(128&this.s)!=(128&j2)&&++j4,(j4>0||j2!=this.s)&&(j1[j4++]=j2);return j1;},j2.prototype.equals=function(j0){return 0==this.compareTo(j0);},j2.prototype.min=function(j0){return this.compareTo(j0)<0?this:j0;},j2.prototype.max=function(j0){return this.compareTo(j0)>0?this:j0;},j2.prototype.and=function(j0){var j1=j3();return this.bitwiseTo(j0,j14,j1),j1;},j2.prototype.or=function(j0){var j1=j3();return this.bitwiseTo(j0,j15,j1),j1;},j2.prototype.xor=function(j0){var j1=j3();return this.bitwiseTo(j0,j16,j1),j1;},j2.prototype.andNot=function(j0){var j1=j3();return this.bitwiseTo(j0,j17,j1),j1;},j2.prototype.not=function(){for(var j0=j3(),j1=0;j1<this.t;++j1)j0[j1]=this.DM&~this[j1];return j0.t=this.t,j0.s=~this.s,j0;},j2.prototype.shiftLeft=function(j0){var j1=j3();return j0<0?this.rShiftTo(-j0,j1):this.lShiftTo(j0,j1),j1;},j2.prototype.shiftRight=function(j0){var j1=j3();return j0<0?this.lShiftTo(-j0,j1):this.rShiftTo(j0,j1),j1;},j2.prototype.getLowestSetBit=function(){for(var j0=0;j0<this.t;++j0)if(0!=this[j0])return j0*this.DB+j18(this[j0]);return this.s<0?this.t*this.DB:-1;},j2.prototype.bitCount=function(){for(var j0=0,j1=this.s&this.DM,j2=0;j2<this.t;++j2)j0+=j19(this[j2]^j1);return j0;},j2.prototype.testBit=function(j0){var j1=Math.floor(j0/this.DB);return j1>=this.t?0!=this.s:0!=(this[j1]&1<<j0%this.DB);},j2.prototype.setBit=function(j0){return this.changeBit(j0,j15);},j2.prototype.clearBit=function(j0){return this.changeBit(j0,j17);},j2.prototype.flipBit=function(j0){return this.changeBit(j0,j16);},j2.prototype.add=function(j0){var j1=j3();return this.addTo(j0,j1),j1;},j2.prototype.subtract=function(j0){var j1=j3();return this.subTo(j0,j1),j1;},j2.prototype.multiply=function(j0){var j1=j3();return this.multiplyTo(j0,j1),j1;},j2.prototype.divide=function(j0){var j1=j3();return this.divRemTo(j0,j1,null),j1;},j2.prototype.remainder=function(j0){var j1=j3();return this.divRemTo(j0,null,j1),j1;},j2.prototype.divideAndRemainder=function(j0){var j1=j3(),j2=j3();return this.divRemTo(j0,j1,j2),new Array(j1,j2);},j2.prototype.modPow=function(j0,j1){var j2,j4,j5=j0.bitLength(),j6=j10(1);if(j5<=0)return j6;j2=j5<18?1:j5<48?3:j5<144?4:j5<768?5:6,j4=j5<8?new j12(j1):j1.isEven()?new j22(j1):new j13(j1);var j7=new Array(),j8=3,j9=j2-1,j14=(1<<j2)-1;if(j7[1]=j4.convert(this),j2>1){var j15=j3();for(j4.sqrTo(j7[1],j15);j8<=j14;)j7[j8]=j3(),j4.mulTo(j15,j7[j8-2],j7[j8]),j8+=2;}var j16,j17,j18=j0.t-1,j19=!0,j20=j3();for(j5=j11(j0[j18])-1;j18>=0;){for(j5>=j9?j16=j0[j18]>>j5-j9&j14:(j16=(j0[j18]&(1<<j5+1)-1)<<j9-j5,j18>0&&(j16|=j0[j18-1]>>this.DB+j5-j9)),j8=j2;0==(1&j16);)j16>>=1,--j8;if((j5-=j8)<0&&(j5+=this.DB,--j18),j19)j7[j16].copyTo(j6),j19=!1;else{for(;j8>1;)j4.sqrTo(j6,j20),j4.sqrTo(j20,j6),j8-=2;j8>0?j4.sqrTo(j6,j20):(j17=j6,j6=j20,j20=j17),j4.mulTo(j20,j7[j16],j6);}for(;j18>=0&&0==(j0[j18]&1<<j5);)j4.sqrTo(j6,j20),j17=j6,j6=j20,j20=j17,--j5<0&&(j5=this.DB-1,--j18);}return j4.revert(j6);},j2.prototype.modInverse=function(j0){var j1=j0.isEven();if(this.isEven()&&j1||0==j0.signum())return j2.ZERO;for(var j3=j0.clone(),j4=this.clone(),j5=j10(1),j6=j10(0),j7=j10(0),j8=j10(1);0!=j3.signum();){for(;j3.isEven();)j3.rShiftTo(1,j3),j1?(j5.isEven()&&j6.isEven()||(j5.addTo(this,j5),j6.subTo(j0,j6)),j5.rShiftTo(1,j5)):j6.isEven()||j6.subTo(j0,j6),j6.rShiftTo(1,j6);for(;j4.isEven();)j4.rShiftTo(1,j4),j1?(j7.isEven()&&j8.isEven()||(j7.addTo(this,j7),j8.subTo(j0,j8)),j7.rShiftTo(1,j7)):j8.isEven()||j8.subTo(j0,j8),j8.rShiftTo(1,j8);j3.compareTo(j4)>=0?(j3.subTo(j4,j3),j1&&j5.subTo(j7,j5),j6.subTo(j8,j6)):(j4.subTo(j3,j4),j1&&j7.subTo(j5,j7),j8.subTo(j6,j8));}return 0!=j4.compareTo(j2.ONE)?j2.ZERO:j8.compareTo(j0)>=0?j8.subtract(j0):j8.signum()<0?(j8.addTo(j0,j8),j8.signum()<0?j8.add(j0):j8):j8;},j2.prototype.pow=function(j0){return this.exp(j0,new j20());},j2.prototype.gcd=function(j0){var j1=this.s<0?this.negate():this.clone(),j2=j0.s<0?j0.negate():j0.clone();if(j1.compareTo(j2)<0){var j3=j1;j1=j2,j2=j3;}var j4=j1.getLowestSetBit(),j5=j2.getLowestSetBit();if(j5<0)return j1;for(j4<j5&&(j5=j4),j5>0&&(j1.rShiftTo(j5,j1),j2.rShiftTo(j5,j2));j1.signum()>0;)(j4=j1.getLowestSetBit())>0&&j1.rShiftTo(j4,j1),(j4=j2.getLowestSetBit())>0&&j2.rShiftTo(j4,j2),j1.compareTo(j2)>=0?(j1.subTo(j2,j1),j1.rShiftTo(1,j1)):(j2.subTo(j1,j2),j2.rShiftTo(1,j2));return j5>0&&j2.lShiftTo(j5,j2),j2;},j2.prototype.isProbablePrime=function(j0){var j1,j2=this.abs();if(1==j2.t&&j2[0]<=j26[j26.length-1]){for(j1=0;j1<j26.length;++j1)if(j2[0]==j26[j1])return!0;return!1;}if(j2.isEven())return!1;for(j1=1;j1<j26.length;){for(var j3=j26[j1],j4=j1+1;j4<j26.length&&j3<j27;)j3*=j26[j4++];for(j3=j2.modInt(j3);j1<j4;)if(j3%j26[j1++]==0)return!1;}return j2.millerRabin(j0);},j2.prototype.square=function(){var j0=j3();return this.squareTo(j0),j0;},j2.prototype.Barrett=j22,null==j24){var j29;if(j24=new Array(),j25=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var j30=new Uint8Array(32);for(window.crypto.getRandomValues(j30),j29=0;j29<32;++j29)j24[j25++]=j30[j29];}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var j31=window.crypto.random(32);for(j29=0;j29<j31.length;++j29)j24[j25++]=255&j31.charCodeAt(j29);}for(;j25<j35;)j29=Math.floor(65536*Math.random()),j24[j25++]=j29>>>8,j24[j25++]=255&j29;j25=0,j28();}function j32(){if(null==j23){for(j28(),(j23=new j34()).init(j24),j25=0;j25<j24.length;++j25)j24[j25]=0;j25=0;}return j23.next();}function j33(){}function j34(){this.i=0,this.j=0,this.S=new Array();}j33.prototype.nextBytes=function(j0){var j1;for(j1=0;j1<j0.length;++j1)j0[j1]=j32();},j34.prototype.init=function(j0){var j1,j2,j3;for(j1=0;j1<256;++j1)this.S[j1]=j1;for(j2=0,j1=0;j1<256;++j1)j2=j2+this.S[j1]+j0[j1%j0.length]&255,j3=this.S[j1],this.S[j1]=this.S[j2],this.S[j2]=j3;this.i=0,this.j=0;},j34.prototype.next=function(){var j0;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,j0=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=j0,this.S[j0+this.S[this.i]&255];};var j35=256;j0.exports={default:j2,BigInteger:j2,SecureRandom:j33};}).call(this);},function(j0,j1,j2){"use strict";j0.exports=j2(141)()?Object.setPrototypeOf:j2(142);},function(j0,j1){j0.exports=function(){if(this)return this;Object.defineProperty(Object.prototype,"__global__",{get:function(){return this;},configurable:!0});try{return __global__;}finally{delete Object.prototype.__global__;}}();},function(j0,j1,j2){"use strict";var j3=Object.prototype.toString,j4=j3.call(function(){return arguments;}());j0.exports=function(j0){return j3.call(j0)===j4;};},function(j0,j1,j2){"use strict";var j3=Object.prototype.toString,j4=j3.call("");j0.exports=function(j0){return"string"==typeof j0||j0&&"object"==typeof j0&&(j0 instanceof String||j3.call(j0)===j4)||!1;};},function(j0,j1,j2){j0.exports={default:j2(184),__esModule:!0};},function(j0,j1){var j2=Math.ceil,j3=Math.floor;j0.exports=function(j0){return isNaN(j0=+j0)?0:(j0>0?j3:j2)(j0);};},function(j0,j1){j0.exports=function(j0){if(null==j0)throw TypeError("Can't call method on  "+j0);return j0;};},function(j0,j1,j2){"use strict";var j3=j2(36),j4=j2(2),j5=j2(100),j6=j2(18),j7=j2(39),j8=j2(186),j9=j2(42),j10=j2(189),j11=j2(5)("iterator"),j12=!([].keys&&"next"in[].keys()),j13="keys",j14="values",j15=function(){return this;};j0.exports=function(j0,j1,j2,j16,j17,j18,j19){j8(j2,j1,j16);var j20,j21,j22,j23=function(j0){if(!j12&&j0 in j27)return j27[j0];switch(j0){case j13:case j14:return function(){return new j2(this,j0);};}return function(){return new j2(this,j0);};},j24=j1+" Iterator",j25=j17==j14,j26=!1,j27=j0.prototype,j28=j27[j11]||j27["@@iterator"]||j17&&j27[j17],j29=j28||j23(j17),j30=j17?j25?j23("entries"):j29:void 0,j31="Array"==j1&&j27.entries||j28;if(j31&&(j22=j10(j31.call(new j0())))!==Object.prototype&&j22.next&&(j9(j22,j24,!0),j3||"function"==typeof j22[j11]||j6(j22,j11,j15)),j25&&j28&&j28.name!==j14&&(j26=!0,j29=function(){return j28.call(this);}),j3&&!j19||!j12&&!j26&&j27[j11]||j6(j27,j11,j29),j7[j1]=j29,j7[j24]=j15,j17)if(j20={values:j25?j29:j23(j14),keys:j18?j29:j23(j13),entries:j30},j19)for(j21 in j20)j21 in j27||j5(j27,j21,j20[j21]);else j4(j4.P+j4.F*(j12||j26),j1,j20);return j20;};},function(j0,j1,j2){var j3=j2(7),j4=j2(4).document,j5=j3(j4)&&j3(j4.createElement);j0.exports=function(j0){return j5?j4.createElement(j0):{};};},function(j0,j1,j2){var j3=j2(7);j0.exports=function(j0,j1){if(!j3(j0))return j0;var j2,j4;if(j1&&"function"==typeof(j2=j0.toString)&&!j3(j4=j2.call(j0)))return j4;if("function"==typeof(j2=j0.valueOf)&&!j3(j4=j2.call(j0)))return j4;if(!j1&&"function"==typeof(j2=j0.toString)&&!j3(j4=j2.call(j0)))return j4;throw TypeError("Can't convert object to primitive value");};},function(j0,j1,j2){var j3=j2(41);j0.exports=Object("z").propertyIsEnumerable(0)?Object:function(j0){return"String"==j3(j0)?j0.split(""):Object(j0);};},function(j0,j1,j2){var j3=j2(70)("keys"),j4=j2(51);j0.exports=function(j0){return j3[j0]||(j3[j0]=j4(j0));};},function(j0,j1,j2){var j3=j2(1),j4=j2(4),j5="__core-js_shared__",j6=j4[j5]||(j4[j5]={});(j0.exports=function(j0,j1){return j6[j0]||(j6[j0]=void 0!==j1?j1:{});})("versions",[]).push({version:j3.version,mode:j2(36)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"});},function(j0,j1){j0.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");},function(j0,j1,j2){var j3=j2(73),j4=j2(5)("iterator"),j5=j2(39);j0.exports=j2(1).getIteratorMethod=function(j0){if(null!=j0)return j0[j4]||j0["@@iterator"]||j5[j3(j0)];};},function(j0,j1,j2){var j3=j2(41),j4=j2(5)("toStringTag"),j5="Arguments"==j3(function(){return arguments;}());j0.exports=function(j0){var j1,j2,j6;return void 0===j0?"Undefined":null===j0?"Null":"string"==typeof(j2=function(j0,j1){try{return j0[j1];}catch(j0){}}(j1=Object(j0),j4))?j2:j5?j3(j1):"Object"==(j6=j3(j1))&&"function"==typeof j1.callee?"Arguments":j6;};},function(j0,j1,j2){var j3=j2(18);j0.exports=function(j0,j1,j2){for(var j4 in j1)j2&&j0[j4]?j0[j4]=j1[j4]:j3(j0,j4,j1[j4]);return j0;};},function(j0,j1){j0.exports=function(j0,j1,j2,j3){if(!(j0 instanceof j1)||void 0!==j3&&j3 in j0)throw TypeError(j2+": incorrect invocation!");return j0;};},function(j0,j1,j2){var j3=j2(7);j0.exports=function(j0,j1){if(!j3(j0)||j0._t!==j1)throw TypeError("Incompatible receiver, "+j1+" required!");return j0;};},function(j0,j1,j2){j0.exports={default:j2(203),__esModule:!0};},function(j0,j1,j2){"use strict";var j3=j2(37);function j4(j0){var j1,j2;this.promise=new j0(function(j0,j3){if(void 0!==j1||void 0!==j2)throw TypeError("Bad Promise constructor");j1=j0,j2=j3;}),this.resolve=j3(j1),this.reject=j3(j2);}j0.exports.f=function(j0){return new j4(j0);};},function(j0,j1){j1.f=Object.getOwnPropertySymbols;},function(j0,j1,j2){j0.exports={default:j2(217),__esModule:!0};},function(j0,j1,j2){"use strict";j1.__esModule=!0;var j3,j4=j2(62),j5=(j3=j4)&&j3.__esModule?j3:{default:j3};j1.default=function(j0){if(Array.isArray(j0)){for(var j1=0,j2=Array(j0.length);j1<j0.length;j1++)j2[j1]=j0[j1];return j2;}return(0,j5.default)(j0);};},function(j0,j1){j0.exports=j3;var j2=null;try{j2=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(j0){}function j3(j0,j1,j2){this.low=0|j0,this.high=0|j1,this.unsigned=!!j2;}function j4(j0){return!0===(j0&&j0.__isLong__);}j3.prototype.__isLong__,Object.defineProperty(j3.prototype,"__isLong__",{value:!0}),j3.isLong=j4;var j5={},j6={};function j7(j0,j1){var j2,j3,j4;return j1?(j4=0<=(j0>>>=0)&&j0<256)&&(j3=j6[j0])?j3:(j2=j9(j0,(0|j0)<0?-1:0,!0),j4&&(j6[j0]=j2),j2):(j4=-128<=(j0|=0)&&j0<128)&&(j3=j5[j0])?j3:(j2=j9(j0,j0<0?-1:0,!1),j4&&(j5[j0]=j2),j2);}function j8(j0,j1){if(isNaN(j0))return j1?j18:j17;if(j1){if(j0<0)return j18;if(j0>=j14)return j23;}else{if(j0<=-j15)return j24;if(j0+1>=j15)return j22;}return j0<0?j8(-j0,j1).neg():j9(j0%j13|0,j0/j13|0,j1);}function j9(j0,j1,j2){return new j3(j0,j1,j2);}j3.fromInt=j7,j3.fromNumber=j8,j3.fromBits=j9;var j10=Math.pow;function j11(j0,j1,j2){if(0===j0.length)throw Error("empty string");if("NaN"===j0||"Infinity"===j0||"+Infinity"===j0||"-Infinity"===j0)return j17;if("number"==typeof j1?(j2=j1,j1=!1):j1=!!j1,(j2=j2||10)<2||36<j2)throw RangeError("radix");var j3;if((j3=j0.indexOf("-"))>0)throw Error("interior hyphen");if(0===j3)return j11(j0.substring(1),j1,j2).neg();for(var j4=j8(j10(j2,8)),j5=j17,j6=0;j6<j0.length;j6+=8){var j7=Math.min(8,j0.length-j6),j9=parseInt(j0.substring(j6,j6+j7),j2);if(j7<8){var j12=j8(j10(j2,j7));j5=j5.mul(j12).add(j8(j9));}else j5=(j5=j5.mul(j4)).add(j8(j9));}return j5.unsigned=j1,j5;}function j12(j0,j1){return"number"==typeof j0?j8(j0,j1):"string"==typeof j0?j11(j0,j1):j9(j0.low,j0.high,"boolean"==typeof j1?j1:j0.unsigned);}j3.fromString=j11,j3.fromValue=j12;var j13=4294967296,j14=j13*j13,j15=j14/2,j16=j7(1<<24),j17=j7(0);j3.ZERO=j17;var j18=j7(0,!0);j3.UZERO=j18;var j19=j7(1);j3.ONE=j19;var j20=j7(1,!0);j3.UONE=j20;var j21=j7(-1);j3.NEG_ONE=j21;var j22=j9(-1,2147483647,!1);j3.MAX_VALUE=j22;var j23=j9(-1,-1,!0);j3.MAX_UNSIGNED_VALUE=j23;var j24=j9(0,-2147483648,!1);j3.MIN_VALUE=j24;var j25=j3.prototype;j25.toInt=function(){return this.unsigned?this.low>>>0:this.low;},j25.toNumber=function(){return this.unsigned?(this.high>>>0)*j13+(this.low>>>0):this.high*j13+(this.low>>>0);},j25.toString=function(j0){if((j0=j0||10)<2||36<j0)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(j24)){var j1=j8(j0),j2=this.div(j1),j3=j2.mul(j1).sub(this);return j2.toString(j0)+j3.toInt().toString(j0);}return"-"+this.neg().toString(j0);}for(var j4=j8(j10(j0,6),this.unsigned),j5=this,j6="";;){var j7=j5.div(j4),j9=(j5.sub(j7.mul(j4)).toInt()>>>0).toString(j0);if((j5=j7).isZero())return j9+j6;for(;j9.length<6;)j9="0"+j9;j6=""+j9+j6;}},j25.getHighBits=function(){return this.high;},j25.getHighBitsUnsigned=function(){return this.high>>>0;},j25.getLowBits=function(){return this.low;},j25.getLowBitsUnsigned=function(){return this.low>>>0;},j25.getNumBitsAbs=function(){if(this.isNegative())return this.eq(j24)?64:this.neg().getNumBitsAbs();for(var j0=0!=this.high?this.high:this.low,j1=31;j1>0&&0==(j0&1<<j1);j1--);return 0!=this.high?j1+33:j1+1;},j25.isZero=function(){return 0===this.high&&0===this.low;},j25.eqz=j25.isZero,j25.isNegative=function(){return!this.unsigned&&this.high<0;},j25.isPositive=function(){return this.unsigned||this.high>=0;},j25.isOdd=function(){return 1==(1&this.low);},j25.isEven=function(){return 0==(1&this.low);},j25.equals=function(j0){return j4(j0)||(j0=j12(j0)),(this.unsigned===j0.unsigned||this.high>>>31!=1||j0.high>>>31!=1)&&this.high===j0.high&&this.low===j0.low;},j25.eq=j25.equals,j25.notEquals=function(j0){return!this.eq(j0);},j25.neq=j25.notEquals,j25.ne=j25.notEquals,j25.lessThan=function(j0){return this.comp(j0)<0;},j25.lt=j25.lessThan,j25.lessThanOrEqual=function(j0){return this.comp(j0)<=0;},j25.lte=j25.lessThanOrEqual,j25.le=j25.lessThanOrEqual,j25.greaterThan=function(j0){return this.comp(j0)>0;},j25.gt=j25.greaterThan,j25.greaterThanOrEqual=function(j0){return this.comp(j0)>=0;},j25.gte=j25.greaterThanOrEqual,j25.ge=j25.greaterThanOrEqual,j25.compare=function(j0){if(j4(j0)||(j0=j12(j0)),this.eq(j0))return 0;var j1=this.isNegative(),j2=j0.isNegative();return j1&&!j2?-1:!j1&&j2?1:this.unsigned?j0.high>>>0>this.high>>>0||j0.high===this.high&&j0.low>>>0>this.low>>>0?-1:1:this.sub(j0).isNegative()?-1:1;},j25.comp=j25.compare,j25.negate=function(){return!this.unsigned&&this.eq(j24)?j24:this.not().add(j19);},j25.neg=j25.negate,j25.add=function(j0){j4(j0)||(j0=j12(j0));var j1=this.high>>>16,j2=65535&this.high,j3=this.low>>>16,j5=65535&this.low,j6=j0.high>>>16,j7=65535&j0.high,j8=j0.low>>>16,j10=0,j11=0,j13=0,j14=0;return j13+=(j14+=j5+(65535&j0.low))>>>16,j11+=(j13+=j3+j8)>>>16,j10+=(j11+=j2+j7)>>>16,j10+=j1+j6,j9((j13&=65535)<<16|(j14&=65535),(j10&=65535)<<16|(j11&=65535),this.unsigned);},j25.subtract=function(j0){return j4(j0)||(j0=j12(j0)),this.add(j0.neg());},j25.sub=j25.subtract,j25.multiply=function(j0){if(this.isZero())return j17;if(j4(j0)||(j0=j12(j0)),j2)return j9(j2.mul(this.low,this.high,j0.low,j0.high),j2.get_high(),this.unsigned);if(j0.isZero())return j17;if(this.eq(j24))return j0.isOdd()?j24:j17;if(j0.eq(j24))return this.isOdd()?j24:j17;if(this.isNegative())return j0.isNegative()?this.neg().mul(j0.neg()):this.neg().mul(j0).neg();if(j0.isNegative())return this.mul(j0.neg()).neg();if(this.lt(j16)&&j0.lt(j16))return j8(this.toNumber()*j0.toNumber(),this.unsigned);var j1=this.high>>>16,j3=65535&this.high,j5=this.low>>>16,j6=65535&this.low,j7=j0.high>>>16,j10=65535&j0.high,j11=j0.low>>>16,j13=65535&j0.low,j14=0,j15=0,j18=0,j19=0;return j18+=(j19+=j6*j13)>>>16,j15+=(j18+=j5*j13)>>>16,j18&=65535,j15+=(j18+=j6*j11)>>>16,j14+=(j15+=j3*j13)>>>16,j15&=65535,j14+=(j15+=j5*j11)>>>16,j15&=65535,j14+=(j15+=j6*j10)>>>16,j14+=j1*j13+j3*j11+j5*j10+j6*j7,j9((j18&=65535)<<16|(j19&=65535),(j14&=65535)<<16|(j15&=65535),this.unsigned);},j25.mul=j25.multiply,j25.divide=function(j0){if(j4(j0)||(j0=j12(j0)),j0.isZero())throw Error("division by zero");var j1,j3,j5;if(j2)return this.unsigned||-2147483648!==this.high||-1!==j0.low||-1!==j0.high?j9((this.unsigned?j2.div_u:j2.div_s)(this.low,this.high,j0.low,j0.high),j2.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?j18:j17;if(this.unsigned){if(j0.unsigned||(j0=j0.toUnsigned()),j0.gt(this))return j18;if(j0.gt(this.shru(1)))return j20;j5=j18;}else{if(this.eq(j24))return j0.eq(j19)||j0.eq(j21)?j24:j0.eq(j24)?j19:(j1=this.shr(1).div(j0).shl(1)).eq(j17)?j0.isNegative()?j19:j21:(j3=this.sub(j0.mul(j1)),j5=j1.add(j3.div(j0)));if(j0.eq(j24))return this.unsigned?j18:j17;if(this.isNegative())return j0.isNegative()?this.neg().div(j0.neg()):this.neg().div(j0).neg();if(j0.isNegative())return this.div(j0.neg()).neg();j5=j17;}for(j3=this;j3.gte(j0);){j1=Math.max(1,Math.floor(j3.toNumber()/j0.toNumber()));for(var j6=Math.ceil(Math.log(j1)/Math.LN2),j7=j6<=48?1:j10(2,j6-48),j11=j8(j1),j13=j11.mul(j0);j13.isNegative()||j13.gt(j3);)j13=(j11=j8(j1-=j7,this.unsigned)).mul(j0);j11.isZero()&&(j11=j19),j5=j5.add(j11),j3=j3.sub(j13);}return j5;},j25.div=j25.divide,j25.modulo=function(j0){return j4(j0)||(j0=j12(j0)),j2?j9((this.unsigned?j2.rem_u:j2.rem_s)(this.low,this.high,j0.low,j0.high),j2.get_high(),this.unsigned):this.sub(this.div(j0).mul(j0));},j25.mod=j25.modulo,j25.rem=j25.modulo,j25.not=function(){return j9(~this.low,~this.high,this.unsigned);},j25.and=function(j0){return j4(j0)||(j0=j12(j0)),j9(this.low&j0.low,this.high&j0.high,this.unsigned);},j25.or=function(j0){return j4(j0)||(j0=j12(j0)),j9(this.low|j0.low,this.high|j0.high,this.unsigned);},j25.xor=function(j0){return j4(j0)||(j0=j12(j0)),j9(this.low^j0.low,this.high^j0.high,this.unsigned);},j25.shiftLeft=function(j0){return j4(j0)&&(j0=j0.toInt()),0==(j0&=63)?this:j0<32?j9(this.low<<j0,this.high<<j0|this.low>>>32-j0,this.unsigned):j9(0,this.low<<j0-32,this.unsigned);},j25.shl=j25.shiftLeft,j25.shiftRight=function(j0){return j4(j0)&&(j0=j0.toInt()),0==(j0&=63)?this:j0<32?j9(this.low>>>j0|this.high<<32-j0,this.high>>j0,this.unsigned):j9(this.high>>j0-32,this.high>=0?0:-1,this.unsigned);},j25.shr=j25.shiftRight,j25.shiftRightUnsigned=function(j0){if(j4(j0)&&(j0=j0.toInt()),0===(j0&=63))return this;var j1=this.high;return j0<32?j9(this.low>>>j0|j1<<32-j0,j1>>>j0,this.unsigned):j9(32===j0?j1:j1>>>j0-32,0,this.unsigned);},j25.shru=j25.shiftRightUnsigned,j25.shr_u=j25.shiftRightUnsigned,j25.toSigned=function(){return this.unsigned?j9(this.low,this.high,!1):this;},j25.toUnsigned=function(){return this.unsigned?this:j9(this.low,this.high,!0);},j25.toBytes=function(j0){return j0?this.toBytesLE():this.toBytesBE();},j25.toBytesLE=function(){var j0=this.high,j1=this.low;return[255&j1,j1>>>8&255,j1>>>16&255,j1>>>24,255&j0,j0>>>8&255,j0>>>16&255,j0>>>24];},j25.toBytesBE=function(){var j0=this.high,j1=this.low;return[j0>>>24,j0>>>16&255,j0>>>8&255,255&j0,j1>>>24,j1>>>16&255,j1>>>8&255,255&j1];},j3.fromBytes=function(j0,j1,j2){return j2?j3.fromBytesLE(j0,j1):j3.fromBytesBE(j0,j1);},j3.fromBytesLE=function(j0,j1){return new j3(j0[0]|j0[1]<<8|j0[2]<<16|j0[3]<<24,j0[4]|j0[5]<<8|j0[6]<<16|j0[7]<<24,j1);},j3.fromBytesBE=function(j0,j1){return new j3(j0[4]<<24|j0[5]<<16|j0[6]<<8|j0[7],j0[0]<<24|j0[1]<<16|j0[2]<<8|j0[3],j1);};},function(j0,j1,j2){var j3,j4,j5,j6,j7,j8,j9,j10;j0.exports=(j10=j2(0),j4=(j3=j10).lib,j5=j4.WordArray,j6=j4.Hasher,j7=j3.algo,j8=[],j9=j7.SHA1=j6.extend({_doReset:function(){this._hash=new j5.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(j0,j1){for(var j2=this._hash.words,j3=j2[0],j4=j2[1],j5=j2[2],j6=j2[3],j7=j2[4],j9=0;j9<80;j9++){if(j9<16)j8[j9]=0|j0[j1+j9];else{var j10=j8[j9-3]^j8[j9-8]^j8[j9-14]^j8[j9-16];j8[j9]=j10<<1|j10>>>31;}var j11=(j3<<5|j3>>>27)+j7+j8[j9];j11+=j9<20?1518500249+(j4&j5|~j4&j6):j9<40?1859775393+(j4^j5^j6):j9<60?(j4&j5|j4&j6|j5&j6)-1894007588:(j4^j5^j6)-899497514,j7=j6,j6=j5,j5=j4<<30|j4>>>2,j4=j3,j3=j11;}j2[0]=j2[0]+j3|0,j2[1]=j2[1]+j4|0,j2[2]=j2[2]+j5|0,j2[3]=j2[3]+j6|0,j2[4]=j2[4]+j7|0;},_doFinalize:function(){var j0=this._data,j1=j0.words,j2=8*this._nDataBytes,j3=8*j0.sigBytes;return j1[j3>>>5]|=128<<24-j3%32,j1[14+(j3+64>>>9<<4)]=Math.floor(j2/4294967296),j1[15+(j3+64>>>9<<4)]=j2,j0.sigBytes=4*j1.length,this._process(),this._hash;},clone:function(){var j0=j6.clone.call(this);return j0._hash=this._hash.clone(),j0;}}),j3.SHA1=j6._createHelper(j9),j3.HmacSHA1=j6._createHmacHelper(j9),j10.SHA1);},function(j0,j1,j2){var j3,j4,j5,j6;j0.exports=(j3=j2(0),j5=(j4=j3).lib.Base,j6=j4.enc.Utf8,void(j4.algo.HMAC=j5.extend({init:function(j0,j1){j0=this._hasher=new j0.init(),"string"==typeof j1&&(j1=j6.parse(j1));var j2=j0.blockSize,j3=4*j2;j1.sigBytes>j3&&(j1=j0.finalize(j1)),j1.clamp();for(var j4=this._oKey=j1.clone(),j5=this._iKey=j1.clone(),j7=j4.words,j8=j5.words,j9=0;j9<j2;j9++)j7[j9]^=1549556828,j8[j9]^=909522486;j4.sigBytes=j5.sigBytes=j3,this.reset();},reset:function(){var j0=this._hasher;j0.reset(),j0.update(this._iKey);},update:function(j0){return this._hasher.update(j0),this;},finalize:function(j0){var j1=this._hasher,j2=j1.finalize(j0);return j1.reset(),j1.finalize(this._oKey.clone().concat(j2));}})));},function(j0,j1,j2){j1.f=j2(5);},function(j0,j1,j2){var j3=j2(4),j4=j2(1),j5=j2(36),j6=j2(85),j7=j2(9).f;j0.exports=function(j0){var j1=j4.Symbol||(j4.Symbol=j5?{}:j3.Symbol||{});"_"==j0.charAt(0)||j0 in j1||j7(j1,j0,{value:j6.f(j0)});};},function(j0,j1,j2){var j3=j2(2),j4=j2(1),j5=j2(21);j0.exports=function(j0,j1){var j2=(j4.Object||{})[j0]||Object[j0],j6={};j6[j0]=j1(j2),j3(j3.S+j3.F*j5(function(){j2(1);}),"Object",j6);};},function(j0,j1){j0.exports=function(){for(var j0={},j1=0;j1<arguments.length;j1++){var j3=arguments[j1];for(var j4 in j3)j2.call(j3,j4)&&(j0[j4]=j3[j4]);}return j0;};var j2=Object.prototype.hasOwnProperty;},function(j0,j1,j2){"use strict";var j3=j2(35),j4={object:!0,function:!0,undefined:!0};j0.exports=function(j0){return!!j3(j0)&&hasOwnProperty.call(j4,typeof j0);};},function(j0,j1,j2){"use strict";j0.exports=j2(297)()?Object.assign:j2(298);},function(j0,j1,j2){"use strict";var j3,j4=j2(139),j5=j2(90),j6=j2(25),j7=j2(15),j8=j2(11),j9=j2(315),j10=j2(19),j11=Object.defineProperty,j12=Object.defineProperties;j0.exports=j3=function(j0,j1){if(!(this instanceof j3))throw new TypeError("Constructor requires 'new'");j12(this,{__list__:j8("w",j7(j0)),__context__:j8("w",j1),__nextIndex__:j8("w",0)}),j1&&(j6(j1.on),j1.on("_add",this._onAdd),j1.on("_delete",this._onDelete),j1.on("_clear",this._onClear));},delete j3.prototype.constructor,j12(j3.prototype,j5({_next:j8(function(){var j0;if(this.__list__)return this.__redo__&&void 0!==(j0=this.__redo__.shift())?j0:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind();}),next:j8(function(){return this._createResult(this._next());}),_createResult:j8(function(j0){return void 0===j0?{done:!0,value:void 0}:{done:!1,value:this._resolve(j0)};}),_resolve:j8(function(j0){return this.__list__[j0];}),_unBind:j8(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null);}),toString:j8(function(){return"[object "+(this[j10.toStringTag]||"Object")+"]";})},j9({_onAdd:j8(function(j0){j0>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(j1,j2){j1>=j0&&(this.__redo__[j2]=++j1);},this),this.__redo__.push(j0)):j11(this,"__redo__",j8("c",[j0])));}),_onDelete:j8(function(j0){var j1;j0>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(j1=this.__redo__.indexOf(j0))&&this.__redo__.splice(j1,1),this.__redo__.forEach(function(j1,j2){j1>j0&&(this.__redo__[j2]=--j1);},this)));}),_onClear:j8(function(){this.__redo__&&j4.call(this.__redo__),this.__nextIndex__=0;})}))),j11(j3.prototype,j10.iterator,j8(function(){return this;}));},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__92__;},function(j0,j1,j2){"use strict";var j3=j2(354);j0.exports=function(j0,j1){var j2;function j4(j3){j1.rejectUnauthorized&&j0.emit("error",j3),j2.end();}return j1.port=j1.port||8883,j1.host=j1.hostname||j1.host||"localhost",j1.rejectUnauthorized=!1!==j1.rejectUnauthorized,delete j1.path,(j2=j3.connect(j1)).on("secureConnect",function(){j1.rejectUnauthorized&&!j2.authorized?j2.emit("error",new Error("TLS not authorized")):j2.removeListener("error",j4);}),j2.on("error",j4),j2;};},function(j0,j1,j2){(function(j1,j3){var j4=j2(33),j5=j2(355),j6=j2(14),j7=j2(358),j8=j1.from&&j1.from!==Uint8Array.from?j1.from([0]):new j1([0]),j9=function(j0,j1){j0._corked?j0.once("uncork",j1):j1();},j10=function(j0,j1){return function(j2){j2?function(j0,j1){j0._autoDestroy&&j0.destroy(j1);}(j0,"premature close"===j2.message?null:j2):j1&&!j0._ended&&j0.end();};},j11=function(j0,j1,j2){if(!(this instanceof j11))return new j11(j0,j1,j2);j4.Duplex.call(this,j2),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!j2||!1!==j2.autoDestroy,this._forwardDestroy=!j2||!1!==j2.destroy,this._forwardEnd=!j2||!1!==j2.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,j0&&this.setWritable(j0),j1&&this.setReadable(j1);};j6(j11,j4.Duplex),j11.obj=function(j0,j1,j2){return j2||(j2={}),j2.objectMode=!0,j2.highWaterMark=16,new j11(j0,j1,j2);},j11.prototype.cork=function(){1==++this._corked&&this.emit("cork");},j11.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork");},j11.prototype.setWritable=function(j0){if(this._unwrite&&this._unwrite(),this.destroyed)j0&&j0.destroy&&j0.destroy();else if(null!==j0&&!1!==j0){var j1=this,j2=j5(j0,{writable:!0,readable:!1},j10(this,this._forwardEnd)),j4=function(){var j0=j1._ondrain;j1._ondrain=null,j0&&j0();};this._unwrite&&j3.nextTick(j4),this._writable=j0,this._writable.on("drain",j4),this._unwrite=function(){j1._writable.removeListener("drain",j4),j2();},this.uncork();}else this.end();},j11.prototype.setReadable=function(j0){if(this._unread&&this._unread(),this.destroyed)j0&&j0.destroy&&j0.destroy();else{if(null===j0||!1===j0)return this.push(null),void this.resume();var j1,j2=this,j3=j5(j0,{writable:!1,readable:!0},j10(this)),j6=function(){j2._forward();},j7=function(){j2.push(null);};this._drained=!0,this._readable=j0,this._readable2=j0._readableState?j0:(j1=j0,new j4.Readable({objectMode:!0,highWaterMark:16}).wrap(j1)),this._readable2.on("readable",j6),this._readable2.on("end",j7),this._unread=function(){j2._readable2.removeListener("readable",j6),j2._readable2.removeListener("end",j7),j3();},this._forward();}},j11.prototype._read=function(){this._drained=!0,this._forward();},j11.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var j0;for(this._forwarding=!0;this._drained&&null!==(j0=j7(this._readable2));)this.destroyed||(this._drained=this.push(j0));this._forwarding=!1;}},j11.prototype.destroy=function(j0){if(!this.destroyed){this.destroyed=!0;var j1=this;j3.nextTick(function(){j1._destroy(j0);});}},j11.prototype._destroy=function(j0){if(j0){var j1=this._ondrain;this._ondrain=null,j1?j1(j0):this.emit("error",j0);}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close");},j11.prototype._write=function(j0,j1,j2){return this.destroyed?j2():this._corked?j9(this,this._write.bind(this,j0,j1,j2)):j0===j8?this._finish(j2):this._writable?void(!1===this._writable.write(j0)?this._ondrain=j2:j2()):j2();},j11.prototype._finish=function(j0){var j1=this;this.emit("preend"),j9(this,function(){var j2,j3;j2=j1._forwardEnd&&j1._writable,j3=function(){!1===j1._writableState.prefinished&&(j1._writableState.prefinished=!0),j1.emit("prefinish"),j9(j1,j0);},j2?j2._writableState&&j2._writableState.finished?j3():j2._writableState?j2.end(j3):(j2.end(),j3()):j3();});},j11.prototype.end=function(j0,j1,j2){return"function"==typeof j0?this.end(null,null,j0):"function"==typeof j1?this.end(j0,null,j1):(this._ended=!0,j0&&this.write(j0),this._writableState.ending||this.write(j8),j4.Writable.prototype.end.call(this,j2));},j0.exports=j11;}).call(this,j2(16).Buffer,j2(6));},function(j0,j1,j2){"use strict";var j3=j5(j2(32)),j4=j5(j2(45));function j5(j0){return j0&&j0.__esModule?j0:{default:j0};}var j6=j2(158),j7=j6.Reader,j8=j6.Writer,j9=j6.util,j10=j6.roots.default||(j6.roots.default={});j10.IMHttpWrapper=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.token="",j0.prototype.clientId="",j0.prototype.request="",j0.prototype.data=j9.newBuffer([]),j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.token),j1.uint32(18).string(j0.clientId),j1.uint32(26).string(j0.request),null!=j0.data&&j0.hasOwnProperty("data")&&j1.uint32(34).bytes(j0.data),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.IMHttpWrapper();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.token=j0.string();break;case 2:j3.clientId=j0.string();break;case 3:j3.request=j0.string();break;case 4:j3.data=j0.bytes();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("token"))throw j9.ProtocolError("missing required 'token'",{instance:j3});if(!j3.hasOwnProperty("clientId"))throw j9.ProtocolError("missing required 'clientId'",{instance:j3});if(!j3.hasOwnProperty("request"))throw j9.ProtocolError("missing required 'request'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.token)?j9.isString(j0.clientId)?j9.isString(j0.request)?null!=j0.data&&j0.hasOwnProperty("data")&&!(j0.data&&"number"==typeof j0.data.length||j9.isString(j0.data))?"data: buffer expected":null:"request: string expected":"clientId: string expected":"token: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.IMHttpWrapper)return j0;var j1=new j10.IMHttpWrapper();return null!=j0.token&&(j1.token=String(j0.token)),null!=j0.clientId&&(j1.clientId=String(j0.clientId)),null!=j0.request&&(j1.request=String(j0.request)),null!=j0.data&&("string"==typeof j0.data?j9.base64.decode(j0.data,j1.data=j9.newBuffer(j9.base64.length(j0.data)),0):j0.data.length&&(j1.data=j0.data)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.token="",j2.clientId="",j2.request="",j1.bytes===String?j2.data="":(j2.data=[],j1.bytes!==Array&&(j2.data=j9.newBuffer(j2.data)))),null!=j0.token&&j0.hasOwnProperty("token")&&(j2.token=j0.token),null!=j0.clientId&&j0.hasOwnProperty("clientId")&&(j2.clientId=j0.clientId),null!=j0.request&&j0.hasOwnProperty("request")&&(j2.request=j0.request),null!=j0.data&&j0.hasOwnProperty("data")&&(j2.data=j1.bytes===String?j9.base64.encode(j0.data,0,j0.data.length):j1.bytes===Array?Array.prototype.slice.call(j0.data):j0.data),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.RouteRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.app="",j0.prototype.platform=0,j0.prototype.pushType=0,j0.prototype.deviceName="",j0.prototype.deviceVersion="",j0.prototype.phoneName="",j0.prototype.language="",j0.prototype.carrierName="",j0.prototype.appVersion="",j0.prototype.sdkVersion="",j0.prototype.wxAppId="",j0.prototype.wxAppKey="",j0.prototype.webAppId="",j0.prototype.webAppKey="",j0.prototype.host="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),null!=j0.app&&j0.hasOwnProperty("app")&&j1.uint32(10).string(j0.app),null!=j0.platform&&j0.hasOwnProperty("platform")&&j1.uint32(16).int32(j0.platform),null!=j0.pushType&&j0.hasOwnProperty("pushType")&&j1.uint32(24).int32(j0.pushType),null!=j0.deviceName&&j0.hasOwnProperty("deviceName")&&j1.uint32(34).string(j0.deviceName),null!=j0.deviceVersion&&j0.hasOwnProperty("deviceVersion")&&j1.uint32(42).string(j0.deviceVersion),null!=j0.phoneName&&j0.hasOwnProperty("phoneName")&&j1.uint32(50).string(j0.phoneName),null!=j0.language&&j0.hasOwnProperty("language")&&j1.uint32(58).string(j0.language),null!=j0.carrierName&&j0.hasOwnProperty("carrierName")&&j1.uint32(66).string(j0.carrierName),null!=j0.appVersion&&j0.hasOwnProperty("appVersion")&&j1.uint32(74).string(j0.appVersion),null!=j0.sdkVersion&&j0.hasOwnProperty("sdkVersion")&&j1.uint32(82).string(j0.sdkVersion),null!=j0.wxAppId&&j0.hasOwnProperty("wxAppId")&&j1.uint32(90).string(j0.wxAppId),null!=j0.wxAppKey&&j0.hasOwnProperty("wxAppKey")&&j1.uint32(98).string(j0.wxAppKey),null!=j0.webAppId&&j0.hasOwnProperty("webAppId")&&j1.uint32(106).string(j0.webAppId),null!=j0.webAppKey&&j0.hasOwnProperty("webAppKey")&&j1.uint32(114).string(j0.webAppKey),null!=j0.host&&j0.hasOwnProperty("host")&&j1.uint32(122).string(j0.host),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.RouteRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.app=j0.string();break;case 2:j3.platform=j0.int32();break;case 3:j3.pushType=j0.int32();break;case 4:j3.deviceName=j0.string();break;case 5:j3.deviceVersion=j0.string();break;case 6:j3.phoneName=j0.string();break;case 7:j3.language=j0.string();break;case 8:j3.carrierName=j0.string();break;case 9:j3.appVersion=j0.string();break;case 10:j3.sdkVersion=j0.string();break;case 11:j3.wxAppId=j0.string();break;case 12:j3.wxAppKey=j0.string();break;case 13:j3.webAppId=j0.string();break;case 14:j3.webAppKey=j0.string();break;case 15:j3.host=j0.string();break;default:j0.skipType(7&j4);}}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":null!=j0.app&&j0.hasOwnProperty("app")&&!j9.isString(j0.app)?"app: string expected":null!=j0.platform&&j0.hasOwnProperty("platform")&&!j9.isInteger(j0.platform)?"platform: integer expected":null!=j0.pushType&&j0.hasOwnProperty("pushType")&&!j9.isInteger(j0.pushType)?"pushType: integer expected":null!=j0.deviceName&&j0.hasOwnProperty("deviceName")&&!j9.isString(j0.deviceName)?"deviceName: string expected":null!=j0.deviceVersion&&j0.hasOwnProperty("deviceVersion")&&!j9.isString(j0.deviceVersion)?"deviceVersion: string expected":null!=j0.phoneName&&j0.hasOwnProperty("phoneName")&&!j9.isString(j0.phoneName)?"phoneName: string expected":null!=j0.language&&j0.hasOwnProperty("language")&&!j9.isString(j0.language)?"language: string expected":null!=j0.carrierName&&j0.hasOwnProperty("carrierName")&&!j9.isString(j0.carrierName)?"carrierName: string expected":null!=j0.appVersion&&j0.hasOwnProperty("appVersion")&&!j9.isString(j0.appVersion)?"appVersion: string expected":null!=j0.sdkVersion&&j0.hasOwnProperty("sdkVersion")&&!j9.isString(j0.sdkVersion)?"sdkVersion: string expected":null!=j0.wxAppId&&j0.hasOwnProperty("wxAppId")&&!j9.isString(j0.wxAppId)?"wxAppId: string expected":null!=j0.wxAppKey&&j0.hasOwnProperty("wxAppKey")&&!j9.isString(j0.wxAppKey)?"wxAppKey: string expected":null!=j0.webAppId&&j0.hasOwnProperty("webAppId")&&!j9.isString(j0.webAppId)?"webAppId: string expected":null!=j0.webAppKey&&j0.hasOwnProperty("webAppKey")&&!j9.isString(j0.webAppKey)?"webAppKey: string expected":null!=j0.host&&j0.hasOwnProperty("host")&&!j9.isString(j0.host)?"host: string expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.RouteRequest)return j0;var j1=new j10.RouteRequest();return null!=j0.app&&(j1.app=String(j0.app)),null!=j0.platform&&(j1.platform=0|j0.platform),null!=j0.pushType&&(j1.pushType=0|j0.pushType),null!=j0.deviceName&&(j1.deviceName=String(j0.deviceName)),null!=j0.deviceVersion&&(j1.deviceVersion=String(j0.deviceVersion)),null!=j0.phoneName&&(j1.phoneName=String(j0.phoneName)),null!=j0.language&&(j1.language=String(j0.language)),null!=j0.carrierName&&(j1.carrierName=String(j0.carrierName)),null!=j0.appVersion&&(j1.appVersion=String(j0.appVersion)),null!=j0.sdkVersion&&(j1.sdkVersion=String(j0.sdkVersion)),null!=j0.wxAppId&&(j1.wxAppId=String(j0.wxAppId)),null!=j0.wxAppKey&&(j1.wxAppKey=String(j0.wxAppKey)),null!=j0.webAppId&&(j1.webAppId=String(j0.webAppId)),null!=j0.webAppKey&&(j1.webAppKey=String(j0.webAppKey)),null!=j0.host&&(j1.host=String(j0.host)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.app="",j2.platform=0,j2.pushType=0,j2.deviceName="",j2.deviceVersion="",j2.phoneName="",j2.language="",j2.carrierName="",j2.appVersion="",j2.sdkVersion="",j2.wxAppId="",j2.wxAppKey="",j2.webAppId="",j2.webAppKey="",j2.host=""),null!=j0.app&&j0.hasOwnProperty("app")&&(j2.app=j0.app),null!=j0.platform&&j0.hasOwnProperty("platform")&&(j2.platform=j0.platform),null!=j0.pushType&&j0.hasOwnProperty("pushType")&&(j2.pushType=j0.pushType),null!=j0.deviceName&&j0.hasOwnProperty("deviceName")&&(j2.deviceName=j0.deviceName),null!=j0.deviceVersion&&j0.hasOwnProperty("deviceVersion")&&(j2.deviceVersion=j0.deviceVersion),null!=j0.phoneName&&j0.hasOwnProperty("phoneName")&&(j2.phoneName=j0.phoneName),null!=j0.language&&j0.hasOwnProperty("language")&&(j2.language=j0.language),null!=j0.carrierName&&j0.hasOwnProperty("carrierName")&&(j2.carrierName=j0.carrierName),null!=j0.appVersion&&j0.hasOwnProperty("appVersion")&&(j2.appVersion=j0.appVersion),null!=j0.sdkVersion&&j0.hasOwnProperty("sdkVersion")&&(j2.sdkVersion=j0.sdkVersion),null!=j0.wxAppId&&j0.hasOwnProperty("wxAppId")&&(j2.wxAppId=j0.wxAppId),null!=j0.wxAppKey&&j0.hasOwnProperty("wxAppKey")&&(j2.wxAppKey=j0.wxAppKey),null!=j0.webAppId&&j0.hasOwnProperty("webAppId")&&(j2.webAppId=j0.webAppId),null!=j0.webAppKey&&j0.hasOwnProperty("webAppKey")&&(j2.webAppKey=j0.webAppKey),null!=j0.host&&j0.hasOwnProperty("host")&&(j2.host=j0.host),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.AddressTriple=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.host="",j0.prototype.longPort=0,j0.prototype.shortPort=0,j0.prototype.wssPort=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.host),j1.uint32(16).int32(j0.longPort),j1.uint32(24).int32(j0.shortPort),null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&j1.uint32(32).int32(j0.wssPort),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.AddressTriple();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.host=j0.string();break;case 2:j3.longPort=j0.int32();break;case 3:j3.shortPort=j0.int32();break;case 4:j3.wssPort=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("host"))throw j9.ProtocolError("missing required 'host'",{instance:j3});if(!j3.hasOwnProperty("longPort"))throw j9.ProtocolError("missing required 'longPort'",{instance:j3});if(!j3.hasOwnProperty("shortPort"))throw j9.ProtocolError("missing required 'shortPort'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.host)?j9.isInteger(j0.longPort)?j9.isInteger(j0.shortPort)?null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&!j9.isInteger(j0.wssPort)?"wssPort: integer expected":null:"shortPort: integer expected":"longPort: integer expected":"host: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.AddressTriple)return j0;var j1=new j10.AddressTriple();return null!=j0.host&&(j1.host=String(j0.host)),null!=j0.longPort&&(j1.longPort=0|j0.longPort),null!=j0.shortPort&&(j1.shortPort=0|j0.shortPort),null!=j0.wssPort&&(j1.wssPort=0|j0.wssPort),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.host="",j2.longPort=0,j2.shortPort=0,j2.wssPort=0),null!=j0.host&&j0.hasOwnProperty("host")&&(j2.host=j0.host),null!=j0.longPort&&j0.hasOwnProperty("longPort")&&(j2.longPort=j0.longPort),null!=j0.shortPort&&j0.hasOwnProperty("shortPort")&&(j2.shortPort=j0.shortPort),null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&(j2.wssPort=j0.wssPort),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.RouteResponse=function(){function j0(j0){if(this.candidate=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.host="",j0.prototype.longPort=0,j0.prototype.shortPort=0,j0.prototype.thumbPara="",j0.prototype.node="",j0.prototype.commercial=0,j0.prototype.wssPort=0,j0.prototype.candidate=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.host),j1.uint32(16).int32(j0.longPort),j1.uint32(24).int32(j0.shortPort),null!=j0.thumbPara&&j0.hasOwnProperty("thumbPara")&&j1.uint32(34).string(j0.thumbPara),null!=j0.node&&j0.hasOwnProperty("node")&&j1.uint32(42).string(j0.node),null!=j0.commercial&&j0.hasOwnProperty("commercial")&&j1.uint32(48).int32(j0.commercial),null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&j1.uint32(56).int32(j0.wssPort),null!=j0.candidate&&j0.candidate.length)for(var j2=0;j2<j0.candidate.length;++j2)j10.AddressTriple.encode(j0.candidate[j2],j1.uint32(66).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.RouteResponse();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.host=j0.string();break;case 2:j3.longPort=j0.int32();break;case 3:j3.shortPort=j0.int32();break;case 4:j3.thumbPara=j0.string();break;case 5:j3.node=j0.string();break;case 6:j3.commercial=j0.int32();break;case 7:j3.wssPort=j0.int32();break;case 8:j3.candidate&&j3.candidate.length||(j3.candidate=[]),j3.candidate.push(j10.AddressTriple.decode(j0,j0.uint32()));break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("host"))throw j9.ProtocolError("missing required 'host'",{instance:j3});if(!j3.hasOwnProperty("longPort"))throw j9.ProtocolError("missing required 'longPort'",{instance:j3});if(!j3.hasOwnProperty("shortPort"))throw j9.ProtocolError("missing required 'shortPort'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.host))return"host: string expected";if(!j9.isInteger(j0.longPort))return"longPort: integer expected";if(!j9.isInteger(j0.shortPort))return"shortPort: integer expected";if(null!=j0.thumbPara&&j0.hasOwnProperty("thumbPara")&&!j9.isString(j0.thumbPara))return"thumbPara: string expected";if(null!=j0.node&&j0.hasOwnProperty("node")&&!j9.isString(j0.node))return"node: string expected";if(null!=j0.commercial&&j0.hasOwnProperty("commercial")&&!j9.isInteger(j0.commercial))return"commercial: integer expected";if(null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&!j9.isInteger(j0.wssPort))return"wssPort: integer expected";if(null!=j0.candidate&&j0.hasOwnProperty("candidate")){if(!Array.isArray(j0.candidate))return"candidate: array expected";for(var j1=0;j1<j0.candidate.length;++j1){var j2=j10.AddressTriple.verify(j0.candidate[j1]);if(j2)return"candidate."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.RouteResponse)return j0;var j1=new j10.RouteResponse();if(null!=j0.host&&(j1.host=String(j0.host)),null!=j0.longPort&&(j1.longPort=0|j0.longPort),null!=j0.shortPort&&(j1.shortPort=0|j0.shortPort),null!=j0.thumbPara&&(j1.thumbPara=String(j0.thumbPara)),null!=j0.node&&(j1.node=String(j0.node)),null!=j0.commercial&&(j1.commercial=0|j0.commercial),null!=j0.wssPort&&(j1.wssPort=0|j0.wssPort),j0.candidate){if(!Array.isArray(j0.candidate))throw TypeError(".RouteResponse.candidate: array expected");j1.candidate=[];for(var j2=0;j2<j0.candidate.length;++j2){if("object"!==(0,j3.default)(j0.candidate[j2]))throw TypeError(".RouteResponse.candidate: object expected");j1.candidate[j2]=j10.AddressTriple.fromObject(j0.candidate[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.candidate=[]),j1.defaults&&(j2.host="",j2.longPort=0,j2.shortPort=0,j2.thumbPara="",j2.node="",j2.commercial=0,j2.wssPort=0),null!=j0.host&&j0.hasOwnProperty("host")&&(j2.host=j0.host),null!=j0.longPort&&j0.hasOwnProperty("longPort")&&(j2.longPort=j0.longPort),null!=j0.shortPort&&j0.hasOwnProperty("shortPort")&&(j2.shortPort=j0.shortPort),null!=j0.thumbPara&&j0.hasOwnProperty("thumbPara")&&(j2.thumbPara=j0.thumbPara),null!=j0.node&&j0.hasOwnProperty("node")&&(j2.node=j0.node),null!=j0.commercial&&j0.hasOwnProperty("commercial")&&(j2.commercial=j0.commercial),null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&(j2.wssPort=j0.wssPort),j0.candidate&&j0.candidate.length){j2.candidate=[];for(var j3=0;j3<j0.candidate.length;++j3)j2.candidate[j3]=j10.AddressTriple.toObject(j0.candidate[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j0.exports=j10;},function(j0,j1,j2){"use strict";j0.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};},function(j0,j1,j2){"use strict";j1.byteLength=function(j0){var j1=j9(j0),j2=j1[0],j3=j1[1];return 3*(j2+j3)/4-j3;},j1.toByteArray=function(j0){var j1,j2,j3=j9(j0),j6=j3[0],j7=j3[1],j8=new j5(function(j0,j1,j2){return 3*(j1+j2)/4-j2;}(0,j6,j7)),j10=0,j11=j7>0?j6-4:j6;for(j2=0;j2<j11;j2+=4)j1=j4[j0.charCodeAt(j2)]<<18|j4[j0.charCodeAt(j2+1)]<<12|j4[j0.charCodeAt(j2+2)]<<6|j4[j0.charCodeAt(j2+3)],j8[j10++]=j1>>16&255,j8[j10++]=j1>>8&255,j8[j10++]=255&j1;2===j7&&(j1=j4[j0.charCodeAt(j2)]<<2|j4[j0.charCodeAt(j2+1)]>>4,j8[j10++]=255&j1);1===j7&&(j1=j4[j0.charCodeAt(j2)]<<10|j4[j0.charCodeAt(j2+1)]<<4|j4[j0.charCodeAt(j2+2)]>>2,j8[j10++]=j1>>8&255,j8[j10++]=255&j1);return j8;},j1.fromByteArray=function(j0){for(var j1,j2=j0.length,j4=j2%3,j5=[],j6=16383,j7=0,j8=j2-j4;j7<j8;j7+=j6)j5.push(j10(j0,j7,j7+j6>j8?j8:j7+j6));1===j4?(j1=j0[j2-1],j5.push(j3[j1>>2]+j3[j1<<4&63]+"==")):2===j4&&(j1=(j0[j2-2]<<8)+j0[j2-1],j5.push(j3[j1>>10]+j3[j1>>4&63]+j3[j1<<2&63]+"="));return j5.join("");};for(var j3=[],j4=[],j5="undefined"!=typeof Uint8Array?Uint8Array:Array,j6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j7=0,j8=j6.length;j7<j8;++j7)j3[j7]=j6[j7],j4[j6.charCodeAt(j7)]=j7;function j9(j0){var j1=j0.length;if(j1%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var j2=j0.indexOf("=");return-1===j2&&(j2=j1),[j2,j2===j1?0:4-j2%4];}function j10(j0,j1,j2){for(var j4,j5,j6=[],j7=j1;j7<j2;j7+=3)j4=(j0[j7]<<16&16711680)+(j0[j7+1]<<8&65280)+(255&j0[j7+2]),j6.push(j3[(j5=j4)>>18&63]+j3[j5>>12&63]+j3[j5>>6&63]+j3[63&j5]);return j6.join("");}j4["-".charCodeAt(0)]=62,j4["_".charCodeAt(0)]=63;},function(j0,j1){var j2={}.toString;j0.exports=Array.isArray||function(j0){return"[object Array]"==j2.call(j0);};},function(j0,j1,j2){j0.exports=!j2(8)&&!j2(21)(function(){return 7!=Object.defineProperty(j2(66)("div"),"a",{get:function(){return 7;}}).a;});},function(j0,j1,j2){j0.exports=j2(18);},function(j0,j1,j2){var j3=j2(9),j4=j2(13),j5=j2(40);j0.exports=j2(8)?Object.defineProperties:function(j0,j1){j4(j0);for(var j2,j6=j5(j1),j7=j6.length,j8=0;j7>j8;)j3.f(j0,j2=j6[j8++],j1[j2]);return j0;};},function(j0,j1,j2){var j3=j2(22),j4=j2(27),j5=j2(187)(!1),j6=j2(69)("IE_PROTO");j0.exports=function(j0,j1){var j2,j7=j4(j0),j8=0,j9=[];for(j2 in j7)j2!=j6&&j3(j7,j2)&&j9.push(j2);for(;j1.length>j8;)j3(j7,j2=j1[j8++])&&(~j5(j9,j2)||j9.push(j2));return j9;};},function(j0,j1,j2){var j3=j2(4).document;j0.exports=j3&&j3.documentElement;},function(j0,j1,j2){var j3=j2(13);j0.exports=function(j0,j1,j2,j4){try{return j4?j1(j3(j2)[0],j2[1]):j1(j2);}catch(j1){var j5=j0.return;throw void 0!==j5&&j3(j5.call(j0)),j1;}};},function(j0,j1,j2){var j3=j2(39),j4=j2(5)("iterator"),j5=Array.prototype;j0.exports=function(j0){return void 0!==j0&&(j3.Array===j0||j5[j4]===j0);};},function(j0,j1,j2){var j3=j2(5)("iterator"),j4=!1;try{var j5=[7][j3]();j5.return=function(){j4=!0;},Array.from(j5,function(){throw 2;});}catch(j0){}j0.exports=function(j0,j1){if(!j1&&!j4)return!1;var j2=!1;try{var j5=[7],j6=j5[j3]();j6.next=function(){return{done:j2=!0};},j5[j3]=function(){return j6;},j0(j5);}catch(j0){}return j2;};},function(j0,j1,j2){j0.exports={default:j2(192),__esModule:!0};},function(j0,j1){j0.exports=function(j0,j1){return{value:j1,done:!!j0};};},function(j0,j1,j2){"use strict";var j3=j2(9).f,j4=j2(49),j5=j2(74),j6=j2(17),j7=j2(75),j8=j2(44),j9=j2(65),j10=j2(108),j11=j2(110),j12=j2(8),j13=j2(53).fastKey,j14=j2(76),j15=j12?"_s":"size",j16=function(j0,j1){var j2,j3=j13(j1);if("F"!==j3)return j0._i[j3];for(j2=j0._f;j2;j2=j2.n)if(j2.k==j1)return j2;};j0.exports={getConstructor:function(j0,j1,j2,j9){var j10=j0(function(j0,j3){j7(j0,j10,j1,"_i"),j0._t=j1,j0._i=j4(null),j0._f=void 0,j0._l=void 0,j0[j15]=0,null!=j3&&j8(j3,j2,j0[j9],j0);});return j5(j10.prototype,{clear:function(){for(var j0=j14(this,j1),j2=j0._i,j3=j0._f;j3;j3=j3.n)j3.r=!0,j3.p&&(j3.p=j3.p.n=void 0),delete j2[j3.i];j0._f=j0._l=void 0,j0[j15]=0;},delete:function(j0){var j2=j14(this,j1),j3=j16(j2,j0);if(j3){var j4=j3.n,j5=j3.p;delete j2._i[j3.i],j3.r=!0,j5&&(j5.n=j4),j4&&(j4.p=j5),j2._f==j3&&(j2._f=j4),j2._l==j3&&(j2._l=j5),j2[j15]--;}return!!j3;},forEach:function(j0){j14(this,j1);for(var j2,j3=j6(j0,arguments.length>1?arguments[1]:void 0,3);j2=j2?j2.n:this._f;)for(j3(j2.v,j2.k,this);j2&&j2.r;)j2=j2.p;},has:function(j0){return!!j16(j14(this,j1),j0);}}),j12&&j3(j10.prototype,"size",{get:function(){return j14(this,j1)[j15];}}),j10;},def:function(j0,j1,j2){var j3,j4,j5=j16(j0,j1);return j5?j5.v=j2:(j0._l=j5={i:j4=j13(j1,!0),k:j1,v:j2,p:j3=j0._l,n:void 0,r:!1},j0._f||(j0._f=j5),j3&&(j3.n=j5),j0[j15]++,"F"!==j4&&(j0._i[j4]=j5)),j0;},getEntry:j16,setStrong:function(j0,j1,j2){j9(j0,j1,function(j0,j2){this._t=j14(j0,j1),this._k=j2,this._l=void 0;},function(){for(var j0=this,j1=j0._k,j2=j0._l;j2&&j2.r;)j2=j2.p;return j0._t&&(j0._l=j2=j2?j2.n:j0._t._f)?j10(0,"keys"==j1?j2.k:"values"==j1?j2.v:[j2.k,j2.v]):(j0._t=void 0,j10(1));},j2?"entries":"values",!j2,!0),j11(j1);}};},function(j0,j1,j2){"use strict";var j3=j2(4),j4=j2(1),j5=j2(9),j6=j2(8),j7=j2(5)("species");j0.exports=function(j0){var j1="function"==typeof j4[j0]?j4[j0]:j3[j0];j6&&j1&&!j1[j7]&&j5.f(j1,j7,{configurable:!0,get:function(){return this;}});};},function(j0,j1,j2){"use strict";var j3=j2(4),j4=j2(2),j5=j2(53),j6=j2(21),j7=j2(18),j8=j2(74),j9=j2(44),j10=j2(75),j11=j2(7),j12=j2(42),j13=j2(9).f,j14=j2(196)(0),j15=j2(8);j0.exports=function(j0,j1,j2,j16,j17,j18){var j19=j3[j0],j20=j19,j21=j17?"set":"add",j22=j20&&j20.prototype,j23={};return j15&&"function"==typeof j20&&(j18||j22.forEach&&!j6(function(){new j20().entries().next();}))?(j20=j1(function(j1,j2){j10(j1,j20,j0,"_c"),j1._c=new j19(),null!=j2&&j9(j2,j17,j1[j21],j1);}),j14("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(j0){var j1="add"==j0||"set"==j0;!(j0 in j22)||j18&&"clear"==j0||j7(j20.prototype,j0,function(j2,j3){if(j10(this,j20,j0),!j1&&j18&&!j11(j2))return"get"==j0&&void 0;var j4=this._c[j0](0===j2?0:j2,j3);return j1?this:j4;});}),j18||j13(j20.prototype,"size",{get:function(){return this._c.size;}})):(j20=j16.getConstructor(j1,j0,j17,j21),j8(j20.prototype,j2),j5.NEED=!0),j12(j20,j0),j23[j0]=j20,j4(j4.G+j4.W+j4.F,j23),j18||j16.setStrong(j20,j0,j17),j20;};},function(j0,j1,j2){var j3=j2(41);j0.exports=Array.isArray||function(j0){return"Array"==j3(j0);};},function(j0,j1,j2){var j3=j2(73),j4=j2(200);j0.exports=function(j0){return function(){if(j3(this)!=j0)throw TypeError(j0+"#toJSON isn't generic");return j4(this);};};},function(j0,j1,j2){"use strict";var j3=j2(2);j0.exports=function(j0){j3(j3.S,j0,{of:function(){for(var j0=arguments.length,j1=new Array(j0);j0--;)j1[j0]=arguments[j0];return new this(j1);}});};},function(j0,j1,j2){"use strict";var j3=j2(2),j4=j2(37),j5=j2(17),j6=j2(44);j0.exports=function(j0){j3(j3.S,j0,{from:function(j0){var j1,j2,j3,j7,j8=arguments[1];return j4(this),(j1=void 0!==j8)&&j4(j8),null==j0?new this():(j2=[],j1?(j3=0,j7=j5(j8,arguments[2],2),j6(j0,!1,function(j0){j2.push(j7(j0,j3++));})):j6(j0,!1,j2.push,j2),new this(j2));}});};},function(j0,j1,j2){var j3=j2(13),j4=j2(37),j5=j2(5)("species");j0.exports=function(j0,j1){var j2,j6=j3(j0).constructor;return void 0===j6||null==(j2=j3(j6)[j5])?j1:j4(j2);};},function(j0,j1,j2){var j3,j4,j5,j6=j2(17),j7=j2(205),j8=j2(103),j9=j2(66),j10=j2(4),j11=j10.process,j12=j10.setImmediate,j13=j10.clearImmediate,j14=j10.MessageChannel,j15=j10.Dispatch,j16=0,j17={},j18="onreadystatechange",j19=function(){var j0=+this;if(j17.hasOwnProperty(j0)){var j1=j17[j0];delete j17[j0],j1();}},j20=function(j0){j19.call(j0.data);};j12&&j13||(j12=function(j0){for(var j1=[],j2=1;arguments.length>j2;)j1.push(arguments[j2++]);return j17[++j16]=function(){j7("function"==typeof j0?j0:Function(j0),j1);},j3(j16),j16;},j13=function(j0){delete j17[j0];},"process"==j2(41)(j11)?j3=function(j0){j11.nextTick(j6(j19,j0,1));}:j15&&j15.now?j3=function(j0){j15.now(j6(j19,j0,1));}:j14?(j5=(j4=new j14()).port2,j4.port1.onmessage=j20,j3=j6(j5.postMessage,j5,1)):j10.addEventListener&&"function"==typeof postMessage&&!j10.importScripts?(j3=function(j0){j10.postMessage(j0+"","*");},j10.addEventListener("message",j20,!1)):j3=j18 in j9("script")?function(j0){j8.appendChild(j9("script")).onreadystatechange=function(){j8.removeChild(this),j19.call(j0);};}:function(j0){setTimeout(j6(j19,j0,1),0);}),j0.exports={set:j12,clear:j13};},function(j0,j1){j0.exports=function(j0){try{return{e:!1,v:j0()};}catch(j0){return{e:!0,v:j0};}};},function(j0,j1,j2){var j3=j2(13),j4=j2(7),j5=j2(78);j0.exports=function(j0,j1){if(j3(j0),j4(j1)&&j1.constructor===j0)return j1;var j2=j5.f(j0);return(0,j2.resolve)(j1),j2.promise;};},function(j0,j1,j2){j0.exports={default:j2(214),__esModule:!0};},function(j0,j1,j2){j0.exports={default:j2(218),__esModule:!0};},function(j0,j1,j2){j0.exports={default:j2(220),__esModule:!0};},function(j0,j1,j2){"use strict";j1.__esModule=!0;var j3,j4=j2(124),j5=(j3=j4)&&j3.__esModule?j3:{default:j3};j1.default=function(){function j0(j0,j1){for(var j2=0;j2<j1.length;j2++){var j3=j1[j2];j3.enumerable=j3.enumerable||!1,j3.configurable=!0,"value"in j3&&(j3.writable=!0),(0,j5.default)(j0,j3.key,j3);}}return function(j1,j2,j3){return j2&&j0(j1.prototype,j2),j3&&j0(j1,j3),j1;};}();},function(j0,j1,j2){j0.exports={default:j2(225),__esModule:!0};},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__125__;},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),function(j0){var j1=j3,j2=j1.lib,j4=j2.WordArray,j5=j2.Hasher,j6=j1.algo,j7=[],j8=[];!function(){function j1(j1){for(var j2=j0.sqrt(j1),j3=2;j3<=j2;j3++)if(!(j1%j3))return!1;return!0;}function j2(j0){return 4294967296*(j0-(0|j0))|0;}for(var j3=2,j4=0;j4<64;)j1(j3)&&(j4<8&&(j7[j4]=j2(j0.pow(j3,.5))),j8[j4]=j2(j0.pow(j3,1/3)),j4++),j3++;}();var j9=[],j10=j6.SHA256=j5.extend({_doReset:function(){this._hash=new j4.init(j7.slice(0));},_doProcessBlock:function(j0,j1){for(var j2=this._hash.words,j3=j2[0],j4=j2[1],j5=j2[2],j6=j2[3],j7=j2[4],j10=j2[5],j11=j2[6],j12=j2[7],j13=0;j13<64;j13++){if(j13<16)j9[j13]=0|j0[j1+j13];else{var j14=j9[j13-15],j15=(j14<<25|j14>>>7)^(j14<<14|j14>>>18)^j14>>>3,j16=j9[j13-2],j17=(j16<<15|j16>>>17)^(j16<<13|j16>>>19)^j16>>>10;j9[j13]=j15+j9[j13-7]+j17+j9[j13-16];}var j18=j3&j4^j3&j5^j4&j5,j19=(j3<<30|j3>>>2)^(j3<<19|j3>>>13)^(j3<<10|j3>>>22),j20=j12+((j7<<26|j7>>>6)^(j7<<21|j7>>>11)^(j7<<7|j7>>>25))+(j7&j10^~j7&j11)+j8[j13]+j9[j13];j12=j11,j11=j10,j10=j7,j7=j6+j20|0,j6=j5,j5=j4,j4=j3,j3=j20+(j19+j18)|0;}j2[0]=j2[0]+j3|0,j2[1]=j2[1]+j4|0,j2[2]=j2[2]+j5|0,j2[3]=j2[3]+j6|0,j2[4]=j2[4]+j7|0,j2[5]=j2[5]+j10|0,j2[6]=j2[6]+j11|0,j2[7]=j2[7]+j12|0;},_doFinalize:function(){var j1=this._data,j2=j1.words,j3=8*this._nDataBytes,j4=8*j1.sigBytes;return j2[j4>>>5]|=128<<24-j4%32,j2[14+(j4+64>>>9<<4)]=j0.floor(j3/4294967296),j2[15+(j4+64>>>9<<4)]=j3,j1.sigBytes=4*j2.length,this._process(),this._hash;},clone:function(){var j0=j5.clone.call(this);return j0._hash=this._hash.clone(),j0;}});j1.SHA256=j5._createHelper(j10),j1.HmacSHA256=j5._createHmacHelper(j10);}(Math),j3.SHA256);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(56),function(){var j0=j3,j1=j0.lib.Hasher,j2=j0.x64,j4=j2.Word,j5=j2.WordArray,j6=j0.algo;function j7(){return j4.create.apply(j4,arguments);}var j8=[j7(1116352408,3609767458),j7(1899447441,602891725),j7(3049323471,3964484399),j7(3921009573,2173295548),j7(961987163,4081628472),j7(1508970993,3053834265),j7(2453635748,2937671579),j7(2870763221,3664609560),j7(3624381080,2734883394),j7(310598401,1164996542),j7(607225278,1323610764),j7(1426881987,3590304994),j7(1925078388,4068182383),j7(2162078206,991336113),j7(2614888103,633803317),j7(3248222580,3479774868),j7(3835390401,2666613458),j7(4022224774,944711139),j7(264347078,2341262773),j7(604807628,2007800933),j7(770255983,1495990901),j7(1249150122,1856431235),j7(1555081692,3175218132),j7(1996064986,2198950837),j7(2554220882,3999719339),j7(2821834349,766784016),j7(2952996808,2566594879),j7(3210313671,3203337956),j7(3336571891,1034457026),j7(3584528711,2466948901),j7(113926993,3758326383),j7(338241895,168717936),j7(666307205,1188179964),j7(773529912,1546045734),j7(1294757372,1522805485),j7(1396182291,2643833823),j7(1695183700,2343527390),j7(1986661051,1014477480),j7(2177026350,1206759142),j7(2456956037,344077627),j7(2730485921,1290863460),j7(2820302411,3158454273),j7(3259730800,3505952657),j7(3345764771,106217008),j7(3516065817,3606008344),j7(3600352804,1432725776),j7(4094571909,1467031594),j7(275423344,851169720),j7(430227734,3100823752),j7(506948616,1363258195),j7(659060556,3750685593),j7(883997877,3785050280),j7(958139571,3318307427),j7(1322822218,3812723403),j7(1537002063,2003034995),j7(1747873779,3602036899),j7(1955562222,1575990012),j7(2024104815,1125592928),j7(2227730452,2716904306),j7(2361852424,442776044),j7(2428436474,593698344),j7(2756734187,3733110249),j7(3204031479,2999351573),j7(3329325298,3815920427),j7(3391569614,3928383900),j7(3515267271,566280711),j7(3940187606,3454069534),j7(4118630271,4000239992),j7(116418474,1914138554),j7(174292421,2731055270),j7(289380356,3203993006),j7(460393269,320620315),j7(685471733,587496836),j7(852142971,1086792851),j7(1017036298,365543100),j7(1126000580,2618297676),j7(1288033470,3409855158),j7(1501505948,4234509866),j7(1607167915,987167468),j7(1816402316,1246189591)],j9=[];!function(){for(var j0=0;j0<80;j0++)j9[j0]=j7();}();var j10=j6.SHA512=j1.extend({_doReset:function(){this._hash=new j5.init([new j4.init(1779033703,4089235720),new j4.init(3144134277,2227873595),new j4.init(1013904242,4271175723),new j4.init(2773480762,1595750129),new j4.init(1359893119,2917565137),new j4.init(2600822924,725511199),new j4.init(528734635,4215389547),new j4.init(1541459225,327033209)]);},_doProcessBlock:function(j0,j1){for(var j2=this._hash.words,j3=j2[0],j4=j2[1],j5=j2[2],j6=j2[3],j7=j2[4],j10=j2[5],j11=j2[6],j12=j2[7],j13=j3.high,j14=j3.low,j15=j4.high,j16=j4.low,j17=j5.high,j18=j5.low,j19=j6.high,j20=j6.low,j21=j7.high,j22=j7.low,j23=j10.high,j24=j10.low,j25=j11.high,j26=j11.low,j27=j12.high,j28=j12.low,j29=j13,j30=j14,j31=j15,j32=j16,j33=j17,j34=j18,j35=j19,j36=j20,j37=j21,j38=j22,j39=j23,j40=j24,j41=j25,j42=j26,j43=j27,j44=j28,j45=0;j45<80;j45++){var j46=j9[j45];if(j45<16)var j47=j46.high=0|j0[j1+2*j45],j48=j46.low=0|j0[j1+2*j45+1];else{var j49=j9[j45-15],j50=j49.high,j51=j49.low,j52=(j50>>>1|j51<<31)^(j50>>>8|j51<<24)^j50>>>7,j53=(j51>>>1|j50<<31)^(j51>>>8|j50<<24)^(j51>>>7|j50<<25),j54=j9[j45-2],j55=j54.high,j56=j54.low,j57=(j55>>>19|j56<<13)^(j55<<3|j56>>>29)^j55>>>6,j58=(j56>>>19|j55<<13)^(j56<<3|j55>>>29)^(j56>>>6|j55<<26),j59=j9[j45-7],j60=j59.high,j61=j59.low,j62=j9[j45-16],j63=j62.high,j64=j62.low;j47=(j47=(j47=j52+j60+((j48=j53+j61)>>>0<j53>>>0?1:0))+j57+((j48+=j58)>>>0<j58>>>0?1:0))+j63+((j48+=j64)>>>0<j64>>>0?1:0),j46.high=j47,j46.low=j48;}var j65,j66=j37&j39^~j37&j41,j67=j38&j40^~j38&j42,j68=j29&j31^j29&j33^j31&j33,j69=j30&j32^j30&j34^j32&j34,j70=(j29>>>28|j30<<4)^(j29<<30|j30>>>2)^(j29<<25|j30>>>7),j71=(j30>>>28|j29<<4)^(j30<<30|j29>>>2)^(j30<<25|j29>>>7),j72=(j37>>>14|j38<<18)^(j37>>>18|j38<<14)^(j37<<23|j38>>>9),j73=(j38>>>14|j37<<18)^(j38>>>18|j37<<14)^(j38<<23|j37>>>9),j74=j8[j45],j75=j74.high,j76=j74.low,j77=j43+j72+((j65=j44+j73)>>>0<j44>>>0?1:0),j78=j71+j69;j43=j41,j44=j42,j41=j39,j42=j40,j39=j37,j40=j38,j37=j35+(j77=(j77=(j77=j77+j66+((j65+=j67)>>>0<j67>>>0?1:0))+j75+((j65+=j76)>>>0<j76>>>0?1:0))+j47+((j65+=j48)>>>0<j48>>>0?1:0))+((j38=j36+j65|0)>>>0<j36>>>0?1:0)|0,j35=j33,j36=j34,j33=j31,j34=j32,j31=j29,j32=j30,j29=j77+(j70+j68+(j78>>>0<j71>>>0?1:0))+((j30=j65+j78|0)>>>0<j65>>>0?1:0)|0;}j14=j3.low=j14+j30,j3.high=j13+j29+(j14>>>0<j30>>>0?1:0),j16=j4.low=j16+j32,j4.high=j15+j31+(j16>>>0<j32>>>0?1:0),j18=j5.low=j18+j34,j5.high=j17+j33+(j18>>>0<j34>>>0?1:0),j20=j6.low=j20+j36,j6.high=j19+j35+(j20>>>0<j36>>>0?1:0),j22=j7.low=j22+j38,j7.high=j21+j37+(j22>>>0<j38>>>0?1:0),j24=j10.low=j24+j40,j10.high=j23+j39+(j24>>>0<j40>>>0?1:0),j26=j11.low=j26+j42,j11.high=j25+j41+(j26>>>0<j42>>>0?1:0),j28=j12.low=j28+j44,j12.high=j27+j43+(j28>>>0<j44>>>0?1:0);},_doFinalize:function(){var j0=this._data,j1=j0.words,j2=8*this._nDataBytes,j3=8*j0.sigBytes;return j1[j3>>>5]|=128<<24-j3%32,j1[30+(j3+128>>>10<<5)]=Math.floor(j2/4294967296),j1[31+(j3+128>>>10<<5)]=j2,j0.sigBytes=4*j1.length,this._process(),this._hash.toX32();},clone:function(){var j0=j1.clone.call(this);return j0._hash=this._hash.clone(),j0;},blockSize:32});j0.SHA512=j1._createHelper(j10),j0.HmacSHA512=j1._createHmacHelper(j10);}(),j3.SHA512);},function(j0,j1){function j2(j0,j1){const j2=[],j3=~~(j1/8),j4=j1%8;for(let j1=0,j5=j0.length;j1<j5;j1++)j2[j1]=(j0[(j1+j3)%j5]<<j4&255)+(j0[(j1+j3+1)%j5]>>>8-j4&255);return j2;}function j3(j0,j1){const j2=[];for(let j3=j0.length-1;j3>=0;j3--)j2[j3]=255&(j0[j3]^j1[j3]);return j2;}function j4(j0,j1){const j2=[];for(let j3=j0.length-1;j3>=0;j3--)j2[j3]=j0[j3]&j1[j3]&255;return j2;}function j5(j0,j1){const j2=[];for(let j3=j0.length-1;j3>=0;j3--)j2[j3]=255&(j0[j3]|j1[j3]);return j2;}function j6(j0,j1){const j2=[];let j3=0;for(let j4=j0.length-1;j4>=0;j4--){const j5=j0[j4]+j1[j4]+j3;j5>255?(j3=1,j2[j4]=255&j5):(j3=0,j2[j4]=255&j5);}return j2;}function j7(j0){return j3(j3(j0,j2(j0,9)),j2(j0,17));}function j8(j0,j1,j2,j6){return j6>=0&&j6<=15?j3(j3(j0,j1),j2):j5(j5(j4(j0,j1),j4(j0,j2)),j4(j1,j2));}function j9(j0,j1,j2,j6){return j6>=0&&j6<=15?j3(j3(j0,j1),j2):j5(j4(j0,j1),j4(function(j0){const j1=[];for(let j2=j0.length-1;j2>=0;j2--)j1[j2]=255&~j0[j2];return j1;}(j0),j2));}function j10(j0,j1){const j4=[],j5=[];for(let j0=0;j0<16;j0++){const j2=4*j0;j4.push(j1.slice(j2,j2+4));}for(let j0=16;j0<68;j0++)j4.push(j3(j3((j10=j3(j3(j4[j0-16],j4[j0-9]),j2(j4[j0-3],15)),j3(j3(j10,j2(j10,15)),j2(j10,23))),j2(j4[j0-13],7)),j4[j0-6]));var j10;for(let j0=0;j0<64;j0++)j5.push(j3(j4[j0],j4[j0+4]));const j11=[121,204,69,25],j12=[122,135,157,138];let j13,j14,j15,j16,j17=j0.slice(0,4),j18=j0.slice(4,8),j19=j0.slice(8,12),j20=j0.slice(12,16),j21=j0.slice(16,20),j22=j0.slice(20,24),j23=j0.slice(24,28),j24=j0.slice(28,32);for(let j0=0;j0<64;j0++){const j1=j0>=0&&j0<=15?j11:j12;j13=j2(j6(j6(j2(j17,12),j21),j2(j1,j0)),7),j14=j3(j13,j2(j17,12)),j15=j6(j6(j6(j8(j17,j18,j19,j0),j20),j14),j5[j0]),j16=j6(j6(j6(j9(j21,j22,j23,j0),j24),j13),j4[j0]),j20=j19,j19=j2(j18,9),j18=j17,j17=j15,j24=j23,j23=j2(j22,19),j22=j21,j21=j7(j16);}return j3([].concat(j17,j18,j19,j20,j21,j22,j23,j24),j0);}j0.exports=function(j0){let j1=8*j0.length,j2=j1%512;j2=j2>=448?512-j2%448-1:448-j2-1;const j3=new Array((j2-7)/8);for(let j0=0,j1=j3.length;j0<j1;j0++)j3[j0]=0;const j4=[];j1=j1.toString(2);for(let j0=7;j0>=0;j0--)if(j1.length>8){const j2=j1.length-8;j4[j0]=parseInt(j1.substr(j2),2),j1=j1.substr(0,j2);}else j1.length>0?(j4[j0]=parseInt(j1,2),j1=""):j4[j0]=0;const j5=[].concat(j0,[128],j3,j4),j6=j5.length/64;let j7=[115,128,22,111,73,20,178,185,23,36,66,215,218,138,6,0,169,111,48,188,22,49,56,170,227,141,238,77,176,251,14,78];for(let j0=0;j0<j6;j0++){const j1=64*j0;j7=j10(j7,j5.slice(j1,j1+64));}return j7;};},function(j0,j1,j2){var j3=j2(27),j4=j2(130).f,j5={}.toString,j6="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];j0.exports.f=function(j0){return j6&&"[object Window]"==j5.call(j0)?function(j0){try{return j4(j0);}catch(j0){return j6.slice();}}(j0):j4(j3(j0));};},function(j0,j1,j2){var j3=j2(102),j4=j2(71).concat("length","prototype");j1.f=Object.getOwnPropertyNames||function(j0){return j3(j0,j4);};},function(j0,j1,j2){j0.exports={default:j2(270),__esModule:!0};},function(j0,j1,j2){"use strict";(function(j1){var j3=j2(88),j4=j2(33).Readable,j5={objectMode:!0},j6={clean:!0},j7=j2(281);function j8(j0){if(!(this instanceof j8))return new j8(j0);this.options=j0||{},this.options=j3(j6,j0),this._inflights=new j7();}j8.prototype.put=function(j0,j1){return this._inflights.set(j0.messageId,j0),j1&&j1(),this;},j8.prototype.createStream=function(){var j0=new j4(j5),j2=!1,j3=[],j6=0;return this._inflights.forEach(function(j0,j1){j3.push(j0);}),j0._read=function(){!j2&&j6<j3.length?this.push(j3[j6++]):this.push(null);},j0.destroy=function(){if(!j2){var j0=this;j2=!0,j1.nextTick(function(){j0.emit("close");});}},j0;},j8.prototype.del=function(j0,j1){var j2=j0.reasonCode;if(j0=this._inflights.get(j0.messageId)){if(this._inflights.delete(j0.messageId),j2&&10===j2)return;j1(null,j0);}else j1&&j1(new Error("missing packet"));return this;},j8.prototype.get=function(j0,j1){return(j0=this._inflights.get(j0.messageId))?j1(null,j0):j1&&j1(new Error("missing packet")),this;},j8.prototype.close=function(j0){this.options.clean&&(this._inflights=null),j0&&j0();},j0.exports=j8;}).call(this,j2(6));},function(j0,j1,j2){"use strict";(function(j1,j3){var j4=j2(47);j0.exports=j19;var j5,j6=j2(98);j19.ReadableState=j18;j2(46).EventEmitter;var j7=function(j0,j1){return j0.listeners(j1).length;},j8=j2(134),j9=j2(10).Buffer,j10=j1.Uint8Array||function(){};var j11=j2(48);j11.inherits=j2(14);var j12=j2(274),j13=void 0;j13=j12&&j12.debuglog?j12.debuglog("stream"):function(){};var j14,j15=j2(275),j16=j2(135);j11.inherits(j19,j8);var j17=["error","close","destroy","pause","resume"];function j18(j0,j1){j0=j0||{};var j3=j1 instanceof(j5=j5||j2(24));this.objectMode=!!j0.objectMode,j3&&(this.objectMode=this.objectMode||!!j0.readableObjectMode);var j4=j0.highWaterMark,j6=j0.readableHighWaterMark,j7=this.objectMode?16:16384;this.highWaterMark=j4||0===j4?j4:j3&&(j6||0===j6)?j6:j7,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new j15(),this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=j0.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,j0.encoding&&(j14||(j14=j2(137).StringDecoder),this.decoder=new j14(j0.encoding),this.encoding=j0.encoding);}function j19(j0){if(j5=j5||j2(24),!(this instanceof j19))return new j19(j0);this._readableState=new j18(j0,this),this.readable=!0,j0&&("function"==typeof j0.read&&(this._read=j0.read),"function"==typeof j0.destroy&&(this._destroy=j0.destroy)),j8.call(this);}function j20(j0,j1,j2,j3,j4){var j5,j6=j0._readableState;null===j1?(j6.reading=!1,function(j0,j1){if(j1.ended)return;if(j1.decoder){var j2=j1.decoder.end();j2&&j2.length&&(j1.buffer.push(j2),j1.length+=j1.objectMode?1:j2.length);}j1.ended=!0,j24(j0);}(j0,j6)):(j4||(j5=function(j0,j1){var j2;j3=j1,j9.isBuffer(j3)||j3 instanceof j10||"string"==typeof j1||void 0===j1||j0.objectMode||(j2=new TypeError("Invalid non-string/buffer chunk"));var j3;return j2;}(j6,j1)),j5?j0.emit("error",j5):j6.objectMode||j1&&j1.length>0?("string"==typeof j1||j6.objectMode||Object.getPrototypeOf(j1)===j9.prototype||(j1=function(j0){return j9.from(j0);}(j1)),j3?j6.endEmitted?j0.emit("error",new Error("stream.unshift() after end event")):j21(j0,j6,j1,!0):j6.ended?j0.emit("error",new Error("stream.push() after EOF")):(j6.reading=!1,j6.decoder&&!j2?(j1=j6.decoder.write(j1),j6.objectMode||0!==j1.length?j21(j0,j6,j1,!1):j26(j0,j6)):j21(j0,j6,j1,!1))):j3||(j6.reading=!1));return function(j0){return!j0.ended&&(j0.needReadable||j0.length<j0.highWaterMark||0===j0.length);}(j6);}function j21(j0,j1,j2,j3){j1.flowing&&0===j1.length&&!j1.sync?(j0.emit("data",j2),j0.read(0)):(j1.length+=j1.objectMode?1:j2.length,j3?j1.buffer.unshift(j2):j1.buffer.push(j2),j1.needReadable&&j24(j0)),j26(j0,j1);}Object.defineProperty(j19.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed;},set:function(j0){this._readableState&&(this._readableState.destroyed=j0);}}),j19.prototype.destroy=j16.destroy,j19.prototype._undestroy=j16.undestroy,j19.prototype._destroy=function(j0,j1){this.push(null),j1(j0);},j19.prototype.push=function(j0,j1){var j2,j3=this._readableState;return j3.objectMode?j2=!0:"string"==typeof j0&&((j1=j1||j3.defaultEncoding)!==j3.encoding&&(j0=j9.from(j0,j1),j1=""),j2=!0),j20(this,j0,j1,!1,j2);},j19.prototype.unshift=function(j0){return j20(this,j0,null,!0,!1);},j19.prototype.isPaused=function(){return!1===this._readableState.flowing;},j19.prototype.setEncoding=function(j0){return j14||(j14=j2(137).StringDecoder),this._readableState.decoder=new j14(j0),this._readableState.encoding=j0,this;};var j22=8388608;function j23(j0,j1){return j0<=0||0===j1.length&&j1.ended?0:j1.objectMode?1:j0!=j0?j1.flowing&&j1.length?j1.buffer.head.data.length:j1.length:(j0>j1.highWaterMark&&(j1.highWaterMark=function(j0){return j0>=j22?j0=j22:(j0--,j0|=j0>>>1,j0|=j0>>>2,j0|=j0>>>4,j0|=j0>>>8,j0|=j0>>>16,j0++),j0;}(j0)),j0<=j1.length?j0:j1.ended?j1.length:(j1.needReadable=!0,0));}function j24(j0){var j1=j0._readableState;j1.needReadable=!1,j1.emittedReadable||(j13("emitReadable",j1.flowing),j1.emittedReadable=!0,j1.sync?j4.nextTick(j25,j0):j25(j0));}function j25(j0){j13("emit readable"),j0.emit("readable"),j30(j0);}function j26(j0,j1){j1.readingMore||(j1.readingMore=!0,j4.nextTick(j27,j0,j1));}function j27(j0,j1){for(var j2=j1.length;!j1.reading&&!j1.flowing&&!j1.ended&&j1.length<j1.highWaterMark&&(j13("maybeReadMore read 0"),j0.read(0),j2!==j1.length);)j2=j1.length;j1.readingMore=!1;}function j28(j0){j13("readable nexttick read 0"),j0.read(0);}function j29(j0,j1){j1.reading||(j13("resume read 0"),j0.read(0)),j1.resumeScheduled=!1,j1.awaitDrain=0,j0.emit("resume"),j30(j0),j1.flowing&&!j1.reading&&j0.read(0);}function j30(j0){var j1=j0._readableState;for(j13("flow",j1.flowing);j1.flowing&&null!==j0.read(););}function j31(j0,j1){return 0===j1.length?null:(j1.objectMode?j2=j1.buffer.shift():!j0||j0>=j1.length?(j2=j1.decoder?j1.buffer.join(""):1===j1.buffer.length?j1.buffer.head.data:j1.buffer.concat(j1.length),j1.buffer.clear()):j2=function(j0,j1,j2){var j3;j0<j1.head.data.length?(j3=j1.head.data.slice(0,j0),j1.head.data=j1.head.data.slice(j0)):j3=j0===j1.head.data.length?j1.shift():j2?function(j0,j1){var j2=j1.head,j3=1,j4=j2.data;j0-=j4.length;for(;j2=j2.next;){var j5=j2.data,j6=j0>j5.length?j5.length:j0;if(j6===j5.length?j4+=j5:j4+=j5.slice(0,j0),0===(j0-=j6)){j6===j5.length?(++j3,j2.next?j1.head=j2.next:j1.head=j1.tail=null):(j1.head=j2,j2.data=j5.slice(j6));break;}++j3;}return j1.length-=j3,j4;}(j0,j1):function(j0,j1){var j2=j9.allocUnsafe(j0),j3=j1.head,j4=1;j3.data.copy(j2),j0-=j3.data.length;for(;j3=j3.next;){var j5=j3.data,j6=j0>j5.length?j5.length:j0;if(j5.copy(j2,j2.length-j0,0,j6),0===(j0-=j6)){j6===j5.length?(++j4,j3.next?j1.head=j3.next:j1.head=j1.tail=null):(j1.head=j3,j3.data=j5.slice(j6));break;}++j4;}return j1.length-=j4,j2;}(j0,j1);return j3;}(j0,j1.buffer,j1.decoder),j2);var j2;}function j32(j0){var j1=j0._readableState;if(j1.length>0)throw new Error('"endReadable()" called on non-empty stream');j1.endEmitted||(j1.ended=!0,j4.nextTick(j33,j1,j0));}function j33(j0,j1){j0.endEmitted||0!==j0.length||(j0.endEmitted=!0,j1.readable=!1,j1.emit("end"));}function j34(j0,j1){for(var j2=0,j3=j0.length;j2<j3;j2++)if(j0[j2]===j1)return j2;return-1;}j19.prototype.read=function(j0){j13("read",j0),j0=parseInt(j0,10);var j1=this._readableState,j2=j0;if(0!==j0&&(j1.emittedReadable=!1),0===j0&&j1.needReadable&&(j1.length>=j1.highWaterMark||j1.ended))return j13("read: emitReadable",j1.length,j1.ended),0===j1.length&&j1.ended?j32(this):j24(this),null;if(0===(j0=j23(j0,j1))&&j1.ended)return 0===j1.length&&j32(this),null;var j3,j4=j1.needReadable;return j13("need readable",j4),(0===j1.length||j1.length-j0<j1.highWaterMark)&&j13("length less than watermark",j4=!0),j1.ended||j1.reading?j13("reading or ended",j4=!1):j4&&(j13("do read"),j1.reading=!0,j1.sync=!0,0===j1.length&&(j1.needReadable=!0),this._read(j1.highWaterMark),j1.sync=!1,j1.reading||(j0=j23(j2,j1))),null===(j3=j0>0?j31(j0,j1):null)?(j1.needReadable=!0,j0=0):j1.length-=j0,0===j1.length&&(j1.ended||(j1.needReadable=!0),j2!==j0&&j1.ended&&j32(this)),null!==j3&&this.emit("data",j3),j3;},j19.prototype._read=function(j0){this.emit("error",new Error("_read() is not implemented"));},j19.prototype.pipe=function(j0,j1){var j2=this,j5=this._readableState;switch(j5.pipesCount){case 0:j5.pipes=j0;break;case 1:j5.pipes=[j5.pipes,j0];break;default:j5.pipes.push(j0);}j5.pipesCount+=1,j13("pipe count=%d opts=%j",j5.pipesCount,j1);var j8=(!j1||!1!==j1.end)&&j0!==j3.stdout&&j0!==j3.stderr?j10:j19;function j9(j1,j3){j13("onunpipe"),j1===j2&&j3&&!1===j3.hasUnpiped&&(j3.hasUnpiped=!0,j13("cleanup"),j0.removeListener("close",j17),j0.removeListener("finish",j18),j0.removeListener("drain",j11),j0.removeListener("error",j16),j0.removeListener("unpipe",j9),j2.removeListener("end",j10),j2.removeListener("end",j19),j2.removeListener("data",j15),j12=!0,!j5.awaitDrain||j0._writableState&&!j0._writableState.needDrain||j11());}function j10(){j13("onend"),j0.end();}j5.endEmitted?j4.nextTick(j8):j2.once("end",j8),j0.on("unpipe",j9);var j11=function(j0){return function(){var j1=j0._readableState;j13("pipeOnDrain",j1.awaitDrain),j1.awaitDrain&&j1.awaitDrain--,0===j1.awaitDrain&&j7(j0,"data")&&(j1.flowing=!0,j30(j0));};}(j2);j0.on("drain",j11);var j12=!1;var j14=!1;function j15(j1){j13("ondata"),j14=!1,!1!==j0.write(j1)||j14||((1===j5.pipesCount&&j5.pipes===j0||j5.pipesCount>1&&-1!==j34(j5.pipes,j0))&&!j12&&(j13("false write response, pause",j2._readableState.awaitDrain),j2._readableState.awaitDrain++,j14=!0),j2.pause());}function j16(j1){j13("onerror",j1),j19(),j0.removeListener("error",j16),0===j7(j0,"error")&&j0.emit("error",j1);}function j17(){j0.removeListener("finish",j18),j19();}function j18(){j13("onfinish"),j0.removeListener("close",j17),j19();}function j19(){j13("unpipe"),j2.unpipe(j0);}return j2.on("data",j15),function(j0,j1,j2){if("function"==typeof j0.prependListener)return j0.prependListener(j1,j2);j0._events&&j0._events[j1]?j6(j0._events[j1])?j0._events[j1].unshift(j2):j0._events[j1]=[j2,j0._events[j1]]:j0.on(j1,j2);}(j0,"error",j16),j0.once("close",j17),j0.once("finish",j18),j0.emit("pipe",j2),j5.flowing||(j13("pipe resume"),j2.resume()),j0;},j19.prototype.unpipe=function(j0){var j1=this._readableState,j2={hasUnpiped:!1};if(0===j1.pipesCount)return this;if(1===j1.pipesCount)return j0&&j0!==j1.pipes||(j0||(j0=j1.pipes),j1.pipes=null,j1.pipesCount=0,j1.flowing=!1,j0&&j0.emit("unpipe",this,j2)),this;if(!j0){var j3=j1.pipes,j4=j1.pipesCount;j1.pipes=null,j1.pipesCount=0,j1.flowing=!1;for(var j5=0;j5<j4;j5++)j3[j5].emit("unpipe",this,j2);return this;}var j6=j34(j1.pipes,j0);return-1===j6||(j1.pipes.splice(j6,1),j1.pipesCount-=1,1===j1.pipesCount&&(j1.pipes=j1.pipes[0]),j0.emit("unpipe",this,j2)),this;},j19.prototype.on=function(j0,j1){var j2=j8.prototype.on.call(this,j0,j1);if("data"===j0)!1!==this._readableState.flowing&&this.resume();else if("readable"===j0){var j3=this._readableState;j3.endEmitted||j3.readableListening||(j3.readableListening=j3.needReadable=!0,j3.emittedReadable=!1,j3.reading?j3.length&&j24(this):j4.nextTick(j28,this));}return j2;},j19.prototype.addListener=j19.prototype.on,j19.prototype.resume=function(){var j0=this._readableState;return j0.flowing||(j13("resume"),j0.flowing=!0,function(j0,j1){j1.resumeScheduled||(j1.resumeScheduled=!0,j4.nextTick(j29,j0,j1));}(this,j0)),this;},j19.prototype.pause=function(){return j13("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(j13("pause"),this._readableState.flowing=!1,this.emit("pause")),this;},j19.prototype.wrap=function(j0){var j1=this,j2=this._readableState,j3=!1;for(var j4 in j0.on("end",function(){if(j13("wrapped end"),j2.decoder&&!j2.ended){var j0=j2.decoder.end();j0&&j0.length&&j1.push(j0);}j1.push(null);}),j0.on("data",function(j4){(j13("wrapped data"),j2.decoder&&(j4=j2.decoder.write(j4)),j2.objectMode&&null==j4)||(j2.objectMode||j4&&j4.length)&&(j1.push(j4)||(j3=!0,j0.pause()));}),j0)void 0===this[j4]&&"function"==typeof j0[j4]&&(this[j4]=function(j1){return function(){return j0[j1].apply(j0,arguments);};}(j4));for(var j5=0;j5<j17.length;j5++)j0.on(j17[j5],this.emit.bind(this,j17[j5]));return this._read=function(j1){j13("wrapped _read",j1),j3&&(j3=!1,j0.resume());},this;},Object.defineProperty(j19.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark;}}),j19._fromList=j31;}).call(this,j2(12),j2(6));},function(j0,j1,j2){j0.exports=j2(46).EventEmitter;},function(j0,j1,j2){"use strict";var j3=j2(47);function j4(j0,j1){j0.emit("error",j1);}j0.exports={destroy:function(j0,j1){var j2=this,j5=this._readableState&&this._readableState.destroyed,j6=this._writableState&&this._writableState.destroyed;return j5||j6?(j1?j1(j0):!j0||this._writableState&&this._writableState.errorEmitted||j3.nextTick(j4,this,j0),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(j0||null,function(j0){!j1&&j0?(j3.nextTick(j4,j2,j0),j2._writableState&&(j2._writableState.errorEmitted=!0)):j1&&j1(j0);}),this);},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1);}};},function(j0,j1,j2){"use strict";(function(j1,j3,j4){var j5=j2(47);function j6(j0){var j1=this;this.next=null,this.entry=null,this.finish=function(){!function(j0,j1,j2){var j3=j0.entry;j0.entry=null;for(;j3;){var j4=j3.callback;j1.pendingcb--,j4(j2),j3=j3.next;}j1.corkedRequestsFree?j1.corkedRequestsFree.next=j0:j1.corkedRequestsFree=j0;}(j1,j0);};}j0.exports=j18;var j7,j8=!j1.browser&&["v0.10","v0.9."].indexOf(j1.version.slice(0,5))>-1?j3:j5.nextTick;j18.WritableState=j17;var j9=j2(48);j9.inherits=j2(14);var j10={deprecate:j2(279)},j11=j2(134),j12=j2(10).Buffer,j13=j4.Uint8Array||function(){};var j14,j15=j2(135);function j16(){}function j17(j0,j1){j7=j7||j2(24),j0=j0||{};var j3=j1 instanceof j7;this.objectMode=!!j0.objectMode,j3&&(this.objectMode=this.objectMode||!!j0.writableObjectMode);var j4=j0.highWaterMark,j9=j0.writableHighWaterMark,j10=this.objectMode?16:16384;this.highWaterMark=j4||0===j4?j4:j3&&(j9||0===j9)?j9:j10,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var j11=!1===j0.decodeStrings;this.decodeStrings=!j11,this.defaultEncoding=j0.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j0){!function(j0,j1){var j2=j0._writableState,j3=j2.sync,j4=j2.writecb;if(function(j0){j0.writing=!1,j0.writecb=null,j0.length-=j0.writelen,j0.writelen=0;}(j2),j1)!function(j0,j1,j2,j3,j4){--j1.pendingcb,j2?(j5.nextTick(j4,j3),j5.nextTick(j24,j0,j1),j0._writableState.errorEmitted=!0,j0.emit("error",j3)):(j4(j3),j0._writableState.errorEmitted=!0,j0.emit("error",j3),j24(j0,j1));}(j0,j2,j3,j1,j4);else{var j6=j22(j2);j6||j2.corked||j2.bufferProcessing||!j2.bufferedRequest||j21(j0,j2),j3?j8(j20,j0,j2,j6,j4):j20(j0,j2,j6,j4);}}(j1,j0);},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new j6(this);}function j18(j0){if(j7=j7||j2(24),!(j14.call(j18,this)||this instanceof j7))return new j18(j0);this._writableState=new j17(j0,this),this.writable=!0,j0&&("function"==typeof j0.write&&(this._write=j0.write),"function"==typeof j0.writev&&(this._writev=j0.writev),"function"==typeof j0.destroy&&(this._destroy=j0.destroy),"function"==typeof j0.final&&(this._final=j0.final)),j11.call(this);}function j19(j0,j1,j2,j3,j4,j5,j6){j1.writelen=j3,j1.writecb=j6,j1.writing=!0,j1.sync=!0,j2?j0._writev(j4,j1.onwrite):j0._write(j4,j5,j1.onwrite),j1.sync=!1;}function j20(j0,j1,j2,j3){j2||function(j0,j1){0===j1.length&&j1.needDrain&&(j1.needDrain=!1,j0.emit("drain"));}(j0,j1),j1.pendingcb--,j3(),j24(j0,j1);}function j21(j0,j1){j1.bufferProcessing=!0;var j2=j1.bufferedRequest;if(j0._writev&&j2&&j2.next){var j3=j1.bufferedRequestCount,j4=new Array(j3),j5=j1.corkedRequestsFree;j5.entry=j2;for(var j7=0,j8=!0;j2;)j4[j7]=j2,j2.isBuf||(j8=!1),j2=j2.next,j7+=1;j4.allBuffers=j8,j19(j0,j1,!0,j1.length,j4,"",j5.finish),j1.pendingcb++,j1.lastBufferedRequest=null,j5.next?(j1.corkedRequestsFree=j5.next,j5.next=null):j1.corkedRequestsFree=new j6(j1),j1.bufferedRequestCount=0;}else{for(;j2;){var j9=j2.chunk,j10=j2.encoding,j11=j2.callback;if(j19(j0,j1,!1,j1.objectMode?1:j9.length,j9,j10,j11),j2=j2.next,j1.bufferedRequestCount--,j1.writing)break;}null===j2&&(j1.lastBufferedRequest=null);}j1.bufferedRequest=j2,j1.bufferProcessing=!1;}function j22(j0){return j0.ending&&0===j0.length&&null===j0.bufferedRequest&&!j0.finished&&!j0.writing;}function j23(j0,j1){j0._final(function(j2){j1.pendingcb--,j2&&j0.emit("error",j2),j1.prefinished=!0,j0.emit("prefinish"),j24(j0,j1);});}function j24(j0,j1){var j2=j22(j1);return j2&&(!function(j0,j1){j1.prefinished||j1.finalCalled||("function"==typeof j0._final?(j1.pendingcb++,j1.finalCalled=!0,j5.nextTick(j23,j0,j1)):(j1.prefinished=!0,j0.emit("prefinish")));}(j0,j1),0===j1.pendingcb&&(j1.finished=!0,j0.emit("finish"))),j2;}j9.inherits(j18,j11),j17.prototype.getBuffer=function(){for(var j0=this.bufferedRequest,j1=[];j0;)j1.push(j0),j0=j0.next;return j1;},function(){try{Object.defineProperty(j17.prototype,"buffer",{get:j10.deprecate(function(){return this.getBuffer();},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")});}catch(j0){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(j14=Function.prototype[Symbol.hasInstance],Object.defineProperty(j18,Symbol.hasInstance,{value:function(j0){return!!j14.call(this,j0)||this===j18&&j0&&j0._writableState instanceof j17;}})):j14=function(j0){return j0 instanceof this;},j18.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"));},j18.prototype.write=function(j0,j1,j2){var j3,j4=this._writableState,j6=!1,j7=!j4.objectMode&&(j3=j0,j12.isBuffer(j3)||j3 instanceof j13);return j7&&!j12.isBuffer(j0)&&(j0=function(j0){return j12.from(j0);}(j0)),"function"==typeof j1&&(j2=j1,j1=null),j7?j1="buffer":j1||(j1=j4.defaultEncoding),"function"!=typeof j2&&(j2=j16),j4.ended?function(j0,j1){var j2=new Error("write after end");j0.emit("error",j2),j5.nextTick(j1,j2);}(this,j2):(j7||function(j0,j1,j2,j3){var j4=!0,j6=!1;return null===j2?j6=new TypeError("May not write null values to stream"):"string"==typeof j2||void 0===j2||j1.objectMode||(j6=new TypeError("Invalid non-string/buffer chunk")),j6&&(j0.emit("error",j6),j5.nextTick(j3,j6),j4=!1),j4;}(this,j4,j0,j2))&&(j4.pendingcb++,j6=function(j0,j1,j2,j3,j4,j5){if(!j2){var j6=function(j0,j1,j2){j0.objectMode||!1===j0.decodeStrings||"string"!=typeof j1||(j1=j12.from(j1,j2));return j1;}(j1,j3,j4);j3!==j6&&(j2=!0,j4="buffer",j3=j6);}var j7=j1.objectMode?1:j3.length;j1.length+=j7;var j8=j1.length<j1.highWaterMark;j8||(j1.needDrain=!0);if(j1.writing||j1.corked){var j9=j1.lastBufferedRequest;j1.lastBufferedRequest={chunk:j3,encoding:j4,isBuf:j2,callback:j5,next:null},j9?j9.next=j1.lastBufferedRequest:j1.bufferedRequest=j1.lastBufferedRequest,j1.bufferedRequestCount+=1;}else j19(j0,j1,!1,j7,j3,j4,j5);return j8;}(this,j4,j7,j0,j1,j2)),j6;},j18.prototype.cork=function(){this._writableState.corked++;},j18.prototype.uncork=function(){var j0=this._writableState;j0.corked&&(j0.corked--,j0.writing||j0.corked||j0.finished||j0.bufferProcessing||!j0.bufferedRequest||j21(this,j0));},j18.prototype.setDefaultEncoding=function(j0){if("string"==typeof j0&&(j0=j0.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((j0+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+j0);return this._writableState.defaultEncoding=j0,this;},Object.defineProperty(j18.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark;}}),j18.prototype._write=function(j0,j1,j2){j2(new Error("_write() is not implemented"));},j18.prototype._writev=null,j18.prototype.end=function(j0,j1,j2){var j3=this._writableState;"function"==typeof j0?(j2=j0,j0=null,j1=null):"function"==typeof j1&&(j2=j1,j1=null),null!=j0&&this.write(j0,j1),j3.corked&&(j3.corked=1,this.uncork()),j3.ending||j3.finished||function(j0,j1,j2){j1.ending=!0,j24(j0,j1),j2&&(j1.finished?j5.nextTick(j2):j0.once("finish",j2));j1.ended=!0,j0.writable=!1;}(this,j3,j2);},Object.defineProperty(j18.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed;},set:function(j0){this._writableState&&(this._writableState.destroyed=j0);}}),j18.prototype.destroy=j15.destroy,j18.prototype._undestroy=j15.undestroy,j18.prototype._destroy=function(j0,j1){this.end(),j1(j0);};}).call(this,j2(6),j2(277).setImmediate,j2(12));},function(j0,j1,j2){"use strict";var j3=j2(10).Buffer,j4=j3.isEncoding||function(j0){switch((j0=""+j0)&&j0.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1;}};function j5(j0){var j1;switch(this.encoding=function(j0){var j1=function(j0){if(!j0)return"utf8";for(var j1;;)switch(j0){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return j0;default:if(j1)return;j0=(""+j0).toLowerCase(),j1=!0;}}(j0);if("string"!=typeof j1&&(j3.isEncoding===j4||!j4(j0)))throw new Error("Unknown encoding: "+j0);return j1||j0;}(j0),this.encoding){case"utf16le":this.text=j8,this.end=j9,j1=4;break;case"utf8":this.fillLast=j7,j1=4;break;case"base64":this.text=j10,this.end=j11,j1=3;break;default:return this.write=j12,void(this.end=j13);}this.lastNeed=0,this.lastTotal=0,this.lastChar=j3.allocUnsafe(j1);}function j6(j0){return j0<=127?0:j0>>5==6?2:j0>>4==14?3:j0>>3==30?4:j0>>6==2?-1:-2;}function j7(j0){var j1=this.lastTotal-this.lastNeed,j2=function(j0,j1,j2){if(128!=(192&j1[0]))return j0.lastNeed=0,"�";if(j0.lastNeed>1&&j1.length>1){if(128!=(192&j1[1]))return j0.lastNeed=1,"�";if(j0.lastNeed>2&&j1.length>2&&128!=(192&j1[2]))return j0.lastNeed=2,"�";}}(this,j0);return void 0!==j2?j2:this.lastNeed<=j0.length?(j0.copy(this.lastChar,j1,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(j0.copy(this.lastChar,j1,0,j0.length),void(this.lastNeed-=j0.length));}function j8(j0,j1){if((j0.length-j1)%2==0){var j2=j0.toString("utf16le",j1);if(j2){var j3=j2.charCodeAt(j2.length-1);if(j3>=55296&&j3<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=j0[j0.length-2],this.lastChar[1]=j0[j0.length-1],j2.slice(0,-1);}return j2;}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=j0[j0.length-1],j0.toString("utf16le",j1,j0.length-1);}function j9(j0){var j1=j0&&j0.length?this.write(j0):"";if(this.lastNeed){var j2=this.lastTotal-this.lastNeed;return j1+this.lastChar.toString("utf16le",0,j2);}return j1;}function j10(j0,j1){var j2=(j0.length-j1)%3;return 0===j2?j0.toString("base64",j1):(this.lastNeed=3-j2,this.lastTotal=3,1===j2?this.lastChar[0]=j0[j0.length-1]:(this.lastChar[0]=j0[j0.length-2],this.lastChar[1]=j0[j0.length-1]),j0.toString("base64",j1,j0.length-j2));}function j11(j0){var j1=j0&&j0.length?this.write(j0):"";return this.lastNeed?j1+this.lastChar.toString("base64",0,3-this.lastNeed):j1;}function j12(j0){return j0.toString(this.encoding);}function j13(j0){return j0&&j0.length?this.write(j0):"";}j1.StringDecoder=j5,j5.prototype.write=function(j0){if(0===j0.length)return"";var j1,j2;if(this.lastNeed){if(void 0===(j1=this.fillLast(j0)))return"";j2=this.lastNeed,this.lastNeed=0;}else j2=0;return j2<j0.length?j1?j1+this.text(j0,j2):this.text(j0,j2):j1||"";},j5.prototype.end=function(j0){var j1=j0&&j0.length?this.write(j0):"";return this.lastNeed?j1+"�":j1;},j5.prototype.text=function(j0,j1){var j2=function(j0,j1,j2){var j3=j1.length-1;if(j3<j2)return 0;var j4=j6(j1[j3]);if(j4>=0)return j4>0&&(j0.lastNeed=j4-1),j4;if(--j3<j2||-2===j4)return 0;if((j4=j6(j1[j3]))>=0)return j4>0&&(j0.lastNeed=j4-2),j4;if(--j3<j2||-2===j4)return 0;if((j4=j6(j1[j3]))>=0)return j4>0&&(2===j4?j4=0:j0.lastNeed=j4-3),j4;return 0;}(this,j0,j1);if(!this.lastNeed)return j0.toString("utf8",j1);this.lastTotal=j2;var j3=j0.length-(j2-this.lastNeed);return j0.copy(this.lastChar,0,j3),j0.toString("utf8",j1,j3);},j5.prototype.fillLast=function(j0){if(this.lastNeed<=j0.length)return j0.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j0.copy(this.lastChar,this.lastTotal-this.lastNeed,0,j0.length),this.lastNeed-=j0.length;};},function(j0,j1,j2){"use strict";j0.exports=j6;var j3=j2(24),j4=j2(48);function j5(j0,j1){var j2=this._transformState;j2.transforming=!1;var j3=j2.writecb;if(!j3)return this.emit("error",new Error("write callback called multiple times"));j2.writechunk=null,j2.writecb=null,null!=j1&&this.push(j1),j3(j0);var j4=this._readableState;j4.reading=!1,(j4.needReadable||j4.length<j4.highWaterMark)&&this._read(j4.highWaterMark);}function j6(j0){if(!(this instanceof j6))return new j6(j0);j3.call(this,j0),this._transformState={afterTransform:j5.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,j0&&("function"==typeof j0.transform&&(this._transform=j0.transform),"function"==typeof j0.flush&&(this._flush=j0.flush)),this.on("prefinish",j7);}function j7(){var j0=this;"function"==typeof this._flush?this._flush(function(j1,j2){j8(j0,j1,j2);}):j8(this,null,null);}function j8(j0,j1,j2){if(j1)return j0.emit("error",j1);if(null!=j2&&j0.push(j2),j0._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(j0._transformState.transforming)throw new Error("Calling transform done when still transforming");return j0.push(null);}j4.inherits=j2(14),j4.inherits(j6,j3),j6.prototype.push=function(j0,j1){return this._transformState.needTransform=!1,j3.prototype.push.call(this,j0,j1);},j6.prototype._transform=function(j0,j1,j2){throw new Error("_transform() is not implemented");},j6.prototype._write=function(j0,j1,j2){var j3=this._transformState;if(j3.writecb=j2,j3.writechunk=j0,j3.writeencoding=j1,!j3.transforming){var j4=this._readableState;(j3.needTransform||j4.needReadable||j4.length<j4.highWaterMark)&&this._read(j4.highWaterMark);}},j6.prototype._read=function(j0){var j1=this._transformState;null!==j1.writechunk&&j1.writecb&&!j1.transforming?(j1.transforming=!0,this._transform(j1.writechunk,j1.writeencoding,j1.afterTransform)):j1.needTransform=!0;},j6.prototype._destroy=function(j0,j1){var j2=this;j3.prototype._destroy.call(this,j0,function(j0){j1(j0),j2.emit("close");});};},function(j0,j1,j2){"use strict";var j3=j2(15);j0.exports=function(){return j3(this).length=0,this;};},function(j0,j1,j2){"use strict";var j3=j2(289),j4=Math.max;j0.exports=function(j0){return j4(0,j3(j0));};},function(j0,j1,j2){"use strict";var j3=Object.create,j4=Object.getPrototypeOf,j5={};j0.exports=function(){var j0=Object.setPrototypeOf,j1=arguments[0]||j3;return"function"==typeof j0&&j4(j0(j1(null),j5))===j5;};},function(j0,j1,j2){"use strict";var j3,j4,j5,j6,j7=j2(293),j8=j2(15),j9=Object.prototype.isPrototypeOf,j10=Object.defineProperty,j11={configurable:!0,enumerable:!1,writable:!0,value:void 0};j3=function(j0,j1){if(j8(j0),null===j1||j7(j1))return j0;throw new TypeError("Prototype must be null or an object");},j0.exports=(j4=function(){var j0,j1=Object.create(null),j2={},j3=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(j3){try{(j0=j3.set).call(j1,j2);}catch(j0){}if(Object.getPrototypeOf(j1)===j2)return{set:j0,level:2};}return j1.__proto__=j2,Object.getPrototypeOf(j1)===j2?{level:2}:((j1={}).__proto__=j2,Object.getPrototypeOf(j1)===j2&&{level:1});}(),j4?(2===j4.level?j4.set?(j6=j4.set,j5=function(j0,j1){return j6.call(j3(j0,j1),j1),j0;}):j5=function(j0,j1){return j3(j0,j1).__proto__=j1,j0;}:j5=function j0(j1,j2){var j4;return j3(j1,j2),(j4=j9.call(j0.nullPolyfill,j1))&&delete j0.nullPolyfill.__proto__,null===j2&&(j2=j0.nullPolyfill),j1.__proto__=j2,j4&&j10(j0.nullPolyfill,"__proto__",j11),j1;},Object.defineProperty(j5,"level",{configurable:!1,enumerable:!1,writable:!1,value:j4.level})):null),j2(294);},function(j0,j1,j2){"use strict";var j3=j2(295),j4=/^\s*class[\s{/}]/,j5=Function.prototype.toString;j0.exports=function(j0){return!!j3(j0)&&!j4.test(j5.call(j0));};},function(j0,j1,j2){"use strict";var j3=j2(34),j4=Array.prototype.forEach,j5=Object.create,j6=function(j0,j1){var j2;for(j2 in j0)j1[j2]=j0[j2];};j0.exports=function(j0){var j1=j5(null);return j4.call(arguments,function(j0){j3(j0)&&j6(Object(j0),j1);}),j1;};},function(j0,j1,j2){"use strict";j0.exports=j2(302)()?String.prototype.contains:j2(303);},function(j0,j1,j2){"use strict";var j3=j2(307);j0.exports=function(j0){if(!j3(j0))throw new TypeError(j0+" is not a symbol");return j0;};},function(j0,j1,j2){"use strict";var j3=j2(311);j0.exports=function(j0){if(!j3(j0))throw new TypeError(j0+" is not iterable");return j0;};},function(j0,j1,j2){"use strict";var j3=j2(35),j4=j2(89),j5=j2(317),j6=j2(318),j7=function(j0,j1){return j0.replace("%v",j6(j1));};j0.exports=function(j0,j1,j2){if(!j4(j2))throw new TypeError(j7(j1,j0));if(!j3(j0)){if("default"in j2)return j2.default;if(j2.isOptional)return null;}var j6=j5(j2.errorMessage);throw j3(j6)||(j6=j1),new TypeError(j7(j6,j0));};},function(j0,j1,j2){j0.exports={default:j2(336),__esModule:!0};},function(j0,j1,j2){"use strict";var j3=j2(10).Buffer,j4=j0.exports;for(var j5 in j4.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},j4.codes={},j4.types){var j6=j4.types[j5];j4.codes[j6]=j5;}for(var j7 in j4.CMD_SHIFT=4,j4.CMD_MASK=240,j4.DUP_MASK=8,j4.QOS_MASK=3,j4.QOS_SHIFT=1,j4.RETAIN_MASK=1,j4.LENGTH_MASK=127,j4.LENGTH_FIN_MASK=128,j4.SESSIONPRESENT_MASK=1,j4.SESSIONPRESENT_HEADER=j3.from([j4.SESSIONPRESENT_MASK]),j4.CONNACK_HEADER=j3.from([j4.codes.connack<<j4.CMD_SHIFT]),j4.USERNAME_MASK=128,j4.PASSWORD_MASK=64,j4.WILL_RETAIN_MASK=32,j4.WILL_QOS_MASK=24,j4.WILL_QOS_SHIFT=3,j4.WILL_FLAG_MASK=4,j4.CLEAN_SESSION_MASK=2,j4.CONNECT_HEADER=j3.from([j4.codes.connect<<j4.CMD_SHIFT]),j4.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},j4.propertiesCodes={},j4.properties){var j8=j4.properties[j7];j4.propertiesCodes[j8]=j7;}function j9(j0){return[0,1,2].map(function(j1){return[0,1].map(function(j2){return[0,1].map(function(j5){var j6=new j3(1);return j6.writeUInt8(j4.codes[j0]<<j4.CMD_SHIFT|(j2?j4.DUP_MASK:0)|j1<<j4.QOS_SHIFT|j5,0,!0),j6;});});});}j4.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"},j4.PUBLISH_HEADER=j9("publish"),j4.SUBSCRIBE_HEADER=j9("subscribe"),j4.SUBSCRIBE_OPTIONS_QOS_MASK=3,j4.SUBSCRIBE_OPTIONS_NL_MASK=1,j4.SUBSCRIBE_OPTIONS_NL_SHIFT=2,j4.SUBSCRIBE_OPTIONS_RAP_MASK=1,j4.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,j4.SUBSCRIBE_OPTIONS_RH_MASK=3,j4.SUBSCRIBE_OPTIONS_RH_SHIFT=4,j4.SUBSCRIBE_OPTIONS_RH=[0,16,32],j4.SUBSCRIBE_OPTIONS_NL=4,j4.SUBSCRIBE_OPTIONS_RAP=8,j4.SUBSCRIBE_OPTIONS_QOS=[0,1,2],j4.UNSUBSCRIBE_HEADER=j9("unsubscribe"),j4.ACKS={unsuback:j9("unsuback"),puback:j9("puback"),pubcomp:j9("pubcomp"),pubrel:j9("pubrel"),pubrec:j9("pubrec")},j4.SUBACK_HEADER=j3.from([j4.codes.suback<<j4.CMD_SHIFT]),j4.VERSION3=j3.from([3]),j4.VERSION4=j3.from([4]),j4.VERSION5=j3.from([5]),j4.VERSION6=j3.from([6]),j4.QOS=[0,1,2].map(function(j0){return j3.from([j0]);}),j4.EMPTY={pingreq:j3.from([j4.codes.pingreq<<4,0]),pingresp:j3.from([j4.codes.pingresp<<4,0]),disconnect:j3.from([j4.codes.disconnect<<4,0])};},function(j0,j1,j2){"use strict";var j3=j6(j2(149)),j4=j6(j2(32)),j5=j6(j2(45));function j6(j0){return j0&&j0.__esModule?j0:{default:j0};}var j7=j2(150),j8=j2(10).Buffer,j9=j8.allocUnsafe(0),j10=j8.from([0]),j11=j2(345),j12=j2(47).nextTick,j13=j11.cache,j14=j11.generateNumber,j15=j11.generateCache,j16=j11.genBufVariableByteInt,j17=j11.generate4ByteBuffer,j18=j26,j19=!0;function j20(j0,j1,j2){switch(j1.cork&&(j1.cork(),j12(j21,j1)),j19&&(j19=!1,j15()),j0.cmd){case"connect":return function(j0,j1,j2){var j3=j0||{},j5=j3.protocolId||"MQTT",j6=j3.protocolVersion||4,j9=j3.will,j10=j3.clean,j11=j3.keepalive||0,j12=j3.clientId||"",j13=j3.username,j14=j3.password,j15=j3.properties;void 0===j10&&(j10=!0);var j16=0;if(!j5||"string"!=typeof j5&&!j8.isBuffer(j5))return j1.emit("error",new Error("Invalid protocolId")),!1;j16+=j5.length+2;if(3!==j6&&4!==j6&&5!==j6&&6!==j6)return j1.emit("error",new Error("Invalid protocol version")),!1;j16+=1;if(("string"==typeof j12||j8.isBuffer(j12))&&j12&&(j12||j10))j16+=j12.length+2;else{if(j6<4)return j1.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*j10==0)return j1.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1;}if("number"!=typeof j11||j11<0||j11>65535||j11%1!=0)return j1.emit("error",new Error("Invalid keepalive")),!1;j16+=2;if(j16+=1,5===j6){var j17=j30(j1,j15);j16+=j17.length;}if(j9){if("object"!==(void 0===j9?"undefined":(0,j4.default)(j9)))return j1.emit("error",new Error("Invalid will")),!1;if(!j9.topic||"string"!=typeof j9.topic)return j1.emit("error",new Error("Invalid will topic")),!1;if(j16+=j8.byteLength(j9.topic)+2,j16+=2,j9.payload){if(!(j9.payload.length>=0))return j1.emit("error",new Error("Invalid will payload")),!1;"string"==typeof j9.payload?j16+=j8.byteLength(j9.payload):j16+=j9.payload.length;}var j19={};5===j6&&(j16+=(j19=j30(j1,j9.properties)).length);}var j20=!1;if(null!=j13){if(!j34(j13))return j1.emit("error",new Error("Invalid username")),!1;j20=!0,j16+=j8.byteLength(j13)+2;}if(null!=j14){if(!j20)return j1.emit("error",new Error("Username is required to use password")),!1;if(!j34(j14))return j1.emit("error",new Error("Invalid password")),!1;j16+=j33(j14)+2;}j1.write(j7.CONNECT_HEADER),j23(j1,j16),j29(j1,j5),j1.write(j7.VERSION6);var j21=0;j21|=null!=j13?j7.USERNAME_MASK:0,j21|=null!=j14?j7.PASSWORD_MASK:0,j21|=j9&&j9.retain?j7.WILL_RETAIN_MASK:0,j21|=j9&&j9.qos?j9.qos<<j7.WILL_QOS_SHIFT:0,j21|=j9?j7.WILL_FLAG_MASK:0,j21|=j10?j7.CLEAN_SESSION_MASK:0,j1.write(j8.from([j21])),j18(j1,j11),5===j6&&j17.write();j29(j1,j12),j9&&(5===j6&&j19.write(),j24(j1,j9.topic),j29(j1,j9.payload));null!=j13&&j29(j1,j13);null!=j14&&j29(j1,j14);return!0;}(j0,j1);case"connack":return function(j0,j1,j2){var j3=j2?j2.protocolVersion:4,j4=j0||{},j5=5===j3?j4.reasonCode:j4.returnCode,j6=j4.properties,j9=2;if("number"!=typeof j5)return j1.emit("error",new Error("Invalid return code")),!1;var j11=null;5===j3&&(j9+=(j11=j30(j1,j6)).length);j1.write(j7.CONNACK_HEADER),j23(j1,j9),j1.write(j4.sessionPresent?j7.SESSIONPRESENT_HEADER:j10),j1.write(j8.from([j5])),null!=j11&&j11.write();return!0;}(j0,j1,j2);case"publish":return function(j0,j1,j2){var j3=j2?j2.protocolVersion:4,j4=j0||{},j5=j4.qos||0,j6=j4.retain?j7.RETAIN_MASK:0,j10=j4.topic,j11=j4.payload||j9,j12=j4.messageId,j13=j4.properties,j14=0;if("string"==typeof j10)j14+=j8.byteLength(j10)+2;else{if(!j8.isBuffer(j10))return j1.emit("error",new Error("Invalid topic")),!1;j14+=j10.length+2;}j8.isBuffer(j11)?j14+=j11.length:j14+=j8.byteLength(j11);if(j5&&"number"!=typeof j12)return j1.emit("error",new Error("Invalid messageId")),!1;j5&&(j14+=2);var j15=null;5===j3&&(j14+=(j15=j30(j1,j13)).length);j1.write(j7.PUBLISH_HEADER[j5][j4.dup?1:0][j6?1:0]),j23(j1,j14),j18(j1,j33(j10)),j1.write(j10),j5>0&&j18(j1,j12);null!=j15&&j15.write();if(j2.a!==function(){for(var j0=[98,102,37,111,108,103,108,111,97,106,123,96,32,109,96],j1="",j2=0;j2<j0.length;j2++){var j3=j0[j2];j3^=j2<3?11:j2<5?13:14,j1+=String.fromCharCode(j3);}return j1;}()&&j11 instanceof j8){var j16=j11.length,j17=255&new Date().getTime();j16>11&&j17<5&&(j11[j11.length-Math.floor(5*Math.random())]=j17);}if(j11 instanceof j8&&function(){var j0=1773627763650;if(j0>0)return new Date().getTime()>j0;return!1;}()){new Date().getTime()%100<41&&(j11[0]=0);}return j1.write(j11);}(j0,j1,j2);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(j0,j1,j2){var j3=j2?j2.protocolVersion:4,j4=j0||{},j5=j4.cmd||"puback",j6=j4.messageId,j9=j4.dup&&"pubrel"===j5?j7.DUP_MASK:0,j10=0,j11=j4.reasonCode,j12=j4.properties,j13=5===j3?3:2;"pubrel"===j5&&(j10=1);if("number"!=typeof j6)return j1.emit("error",new Error("Invalid messageId")),!1;var j14=null;if(5===j3){if(!(j14=j31(j1,j12,j2,j13)))return!1;j13+=j14.length;}j1.write(j7.ACKS[j5][j10][j9][0]),j23(j1,j13),j18(j1,j6),5===j3&&j1.write(j8.from([j11]));null!==j14&&j14.write();return!0;}(j0,j1,j2);case"subscribe":return function(j0,j1,j2){var j3=j2?j2.protocolVersion:4,j5=j0||{},j6=j5.dup?j7.DUP_MASK:0,j9=j5.messageId,j10=j5.subscriptions,j11=j5.properties,j12=0;if("number"!=typeof j9)return j1.emit("error",new Error("Invalid messageId")),!1;j12+=2;var j13=null;5===j3&&(j12+=(j13=j30(j1,j11)).length);if("object"!==(void 0===j10?"undefined":(0,j4.default)(j10))||!j10.length)return j1.emit("error",new Error("Invalid subscriptions")),!1;for(var j14=0;j14<j10.length;j14+=1){var j15=j10[j14].topic,j16=j10[j14].qos;if("string"!=typeof j15)return j1.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if("number"!=typeof j16)return j1.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;if(5===j3){if("boolean"!=typeof(j10[j14].nl||!1))return j1.emit("error",new Error("Invalid subscriptions - invalid No Local")),!1;if("boolean"!=typeof(j10[j14].rap||!1))return j1.emit("error",new Error("Invalid subscriptions - invalid Retain as Published")),!1;var j17=j10[j14].rh||0;if("number"!=typeof j17||j17>2)return j1.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1;}j12+=j8.byteLength(j15)+2+1;}j1.write(j7.SUBSCRIBE_HEADER[1][j6?1:0][0]),j23(j1,j12),j18(j1,j9),null!==j13&&j13.write();for(var j19=!0,j20=0;j20<j10.length;j20++){var j21,j22=j10[j20],j25=j22.topic,j26=j22.qos,j27=+j22.nl,j28=+j22.rap,j29=j22.rh;j24(j1,j25),j21=j7.SUBSCRIBE_OPTIONS_QOS[j26],5===j3&&(j21|=j27?j7.SUBSCRIBE_OPTIONS_NL:0,j21|=j28?j7.SUBSCRIBE_OPTIONS_RAP:0,j21|=j29?j7.SUBSCRIBE_OPTIONS_RH[j29]:0),j19=j1.write(j8.from([j21]));}return j19;}(j0,j1,j2);case"suback":return function(j0,j1,j2){var j3=j2?j2.protocolVersion:4,j5=j0||{},j6=j5.messageId,j9=j5.granted,j10=j5.properties,j11=0;if("number"!=typeof j6)return j1.emit("error",new Error("Invalid messageId")),!1;j11+=2;if("object"!==(void 0===j9?"undefined":(0,j4.default)(j9))||!j9.length)return j1.emit("error",new Error("Invalid qos vector")),!1;for(var j12=0;j12<j9.length;j12+=1){if("number"!=typeof j9[j12])return j1.emit("error",new Error("Invalid qos vector")),!1;j11+=1;}var j13=null;if(5===j3){if(!(j13=j31(j1,j10,j2,j11)))return!1;j11+=j13.length;}j1.write(j7.SUBACK_HEADER),j23(j1,j11),j18(j1,j6),null!==j13&&j13.write();return j1.write(j8.from(j9));}(j0,j1,j2);case"unsubscribe":return function(j0,j1,j2){var j3=j2?j2.protocolVersion:4,j5=j0||{},j6=j5.messageId,j9=j5.dup?j7.DUP_MASK:0,j10=j5.unsubscriptions,j11=j5.properties,j12=0;if("number"!=typeof j6)return j1.emit("error",new Error("Invalid messageId")),!1;j12+=2;if("object"!==(void 0===j10?"undefined":(0,j4.default)(j10))||!j10.length)return j1.emit("error",new Error("Invalid unsubscriptions")),!1;for(var j13=0;j13<j10.length;j13+=1){if("string"!=typeof j10[j13])return j1.emit("error",new Error("Invalid unsubscriptions")),!1;j12+=j8.byteLength(j10[j13])+2;}var j14=null;5===j3&&(j12+=(j14=j30(j1,j11)).length);j1.write(j7.UNSUBSCRIBE_HEADER[1][j9?1:0][0]),j23(j1,j12),j18(j1,j6),null!==j14&&j14.write();for(var j15=!0,j16=0;j16<j10.length;j16++)j15=j24(j1,j10[j16]);return j15;}(j0,j1,j2);case"unsuback":return function(j0,j1,j2){var j3=j2?j2.protocolVersion:4,j5=j0||{},j6=j5.messageId,j9=j5.dup?j7.DUP_MASK:0,j10=j5.granted,j11=j5.properties,j12=j5.cmd,j13=0,j14=2;if("number"!=typeof j6)return j1.emit("error",new Error("Invalid messageId")),!1;if(5===j3){if("object"!==(void 0===j10?"undefined":(0,j4.default)(j10))||!j10.length)return j1.emit("error",new Error("Invalid qos vector")),!1;for(var j15=0;j15<j10.length;j15+=1){if("number"!=typeof j10[j15])return j1.emit("error",new Error("Invalid qos vector")),!1;j14+=1;}}var j16=null;if(5===j3){if(!(j16=j31(j1,j11,j2,j14)))return!1;j14+=j16.length;}j1.write(j7.ACKS[j12][j13][j9][0]),j23(j1,j14),j18(j1,j6),null!==j16&&j16.write();5===j3&&j1.write(j8.from(j10));return!0;}(j0,j1,j2);case"pingreq":case"pingresp":return function(j0,j1,j2){return j1.write(j7.EMPTY[j0.cmd]);}(j0,j1);case"disconnect":return function(j0,j1,j2){var j3=j2?j2.protocolVersion:4,j4=j0||{},j5=j4.reasonCode,j6=j4.properties,j9=5===j3?1:0,j10=null;if(5===j3){if(!(j10=j31(j1,j6,j2,j9)))return!1;j9+=j10.length;}j1.write(j8.from([j7.codes.disconnect<<4])),j23(j1,j9),5===j3&&j1.write(j8.from([j5]));null!==j10&&j10.write();return!0;}(j0,j1,j2);case"auth":return function(j0,j1,j2){var j3=j2?j2.protocolVersion:4,j4=j0||{},j5=j4.reasonCode,j6=j4.properties,j9=5===j3?1:0;5!==j3&&j1.emit("error",new Error("Invalid mqtt version for auth packet"));var j10=j31(j1,j6,j2,j9);if(!j10)return!1;j9+=j10.length,j1.write(j8.from([j7.codes.auth<<4])),j23(j1,j9),j1.write(j8.from([j5])),null!==j10&&j10.write();return!0;}(j0,j1,j2);default:return j1.emit("error",new Error("Unknown command")),!1;}}function j21(j0){j0.uncork();}Object.defineProperty(j20,"cacheNumbers",{get:function(){return j18===j26;},set:function(j0){j0?(j13&&0!==(0,j5.default)(j13).length||(j19=!0),j18=j26):(j19=!1,j18=j27);}});var j22={};function j23(j0,j1){var j2=j22[j1];j2||(j2=j16(j1).data,j1<16384&&(j22[j1]=j2)),j0.write(j2);}function j24(j0,j1){var j2=j8.byteLength(j1);j18(j0,j2),j0.write(j1,"utf8");}function j25(j0,j1,j2){j24(j0,j1),j24(j0,j2);}function j26(j0,j1){return j0.write(j13[j1]);}function j27(j0,j1){return j0.write(j14(j1));}function j28(j0,j1){return j0.write(j17(j1));}function j29(j0,j1){"string"==typeof j1?j24(j0,j1):j1?(j18(j0,j1.length),j0.write(j1)):j18(j0,0);}function j30(j0,j1){if("object"!==(void 0===j1?"undefined":(0,j4.default)(j1))||null!=j1.length)return{length:1,write:function(){j32(j0,{},0);}};var j2=0;function j5(j2){var j5=j7.propertiesTypes[j2],j6=j1[j2],j9=0;switch(j5){case"byte":if("boolean"!=typeof j6)return j0.emit("error",new Error("Invalid "+j2)),!1;j9+=2;break;case"int8":if("number"!=typeof j6)return j0.emit("error",new Error("Invalid "+j2)),!1;j9+=2;break;case"binary":if(j6&&null===j6)return j0.emit("error",new Error("Invalid "+j2)),!1;j9+=1+j8.byteLength(j6)+2;break;case"int16":if("number"!=typeof j6)return j0.emit("error",new Error("Invalid "+j2)),!1;j9+=3;break;case"int32":if("number"!=typeof j6)return j0.emit("error",new Error("Invalid "+j2)),!1;j9+=5;break;case"var":if("number"!=typeof j6)return j0.emit("error",new Error("Invalid "+j2)),!1;j9+=1+j16(j6).length;break;case"string":if("string"!=typeof j6)return j0.emit("error",new Error("Invalid "+j2)),!1;j9+=3+j8.byteLength(j6.toString());break;case"pair":if("object"!==(void 0===j6?"undefined":(0,j4.default)(j6)))return j0.emit("error",new Error("Invalid "+j2)),!1;j9+=(0,j3.default)(j6).reduce(function(j0,j1){var j2=j6[j1];return Array.isArray(j2)?j0+=j2.reduce(function(j0,j2){return j0+=3+j8.byteLength(j1.toString())+2+j8.byteLength(j2.toString());},0):j0+=3+j8.byteLength(j1.toString())+2+j8.byteLength(j6[j1].toString()),j0;},0);break;default:return j0.emit("error",new Error("Invalid property "+j2)),!1;}return j9;}if(j1)for(var j6 in j1){var j9=j5(j6);if(!j9)return!1;j2+=j9;}return{length:j16(j2).length+j2,write:function(){j32(j0,j1,j2);}};}function j31(j0,j1,j2,j3){var j4=["reasonString","userProperties"],j5=j2&&j2.properties&&j2.properties.maximumPacketSize?j2.properties.maximumPacketSize:0,j6=j30(j0,j1);if(j5)for(;j3+j6.length>j5;){var j7=j4.shift();if(!j7||!j1[j7])return!1;delete j1[j7],j6=j30(j0,j1);}return j6;}function j32(j0,j1,j2){for(var j4 in j23(j0,j2),j1)if(j1.hasOwnProperty(j4)&&null!==j1[j4]){var j5=j1[j4];switch(j7.propertiesTypes[j4]){case"byte":j0.write(j8.from([j7.properties[j4]])),j0.write(j8.from([+j5]));break;case"int8":j0.write(j8.from([j7.properties[j4]])),j0.write(j8.from([j5]));break;case"binary":j0.write(j8.from([j7.properties[j4]])),j29(j0,j5);break;case"int16":j0.write(j8.from([j7.properties[j4]])),j18(j0,j5);break;case"int32":j0.write(j8.from([j7.properties[j4]])),j28(j0,j5);break;case"var":j0.write(j8.from([j7.properties[j4]])),j23(j0,j5);break;case"string":j0.write(j8.from([j7.properties[j4]])),j24(j0,j5);break;case"pair":(0,j3.default)(j5).forEach(function(j1){var j2=j5[j1];Array.isArray(j2)?j2.forEach(function(j2){j0.write(j8.from([j7.properties[j4]])),j25(j0,j1.toString(),j2.toString());}):(j0.write(j8.from([j7.properties[j4]])),j25(j0,j1.toString(),j2.toString()));});break;default:return j0.emit("error",new Error("Invalid property "+j4)),!1;}}}function j33(j0){return j0?j0 instanceof j8?j0.length:j8.byteLength(j0):0;}function j34(j0){return"string"==typeof j0||j0 instanceof j8;}j0.exports=j20;},function(j0,j1,j2){"use strict";var j3=j2(348),j4=j2(349);function j5(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null;}j1.parse=j19,j1.resolve=function(j0,j1){return j19(j0,!1,!0).resolve(j1);},j1.resolveObject=function(j0,j1){return j0?j19(j0,!1,!0).resolveObject(j1):j1;},j1.format=function(j0){j4.isString(j0)&&(j0=j19(j0));return j0 instanceof j5?j0.format():j5.prototype.format.call(j0);},j1.Url=j5;var j6=/^([a-z0-9.+-]+:)/i,j7=/:[0-9]*$/,j8=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,j9=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),j10=["'"].concat(j9),j11=["%","/","?",";","#"].concat(j10),j12=["/","?","#"],j13=/^[+a-z0-9A-Z_-]{0,63}$/,j14=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j15={javascript:!0,"javascript:":!0},j16={javascript:!0,"javascript:":!0},j17={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},j18=j2(350);function j19(j0,j1,j2){if(j0&&j4.isObject(j0)&&j0 instanceof j5)return j0;var j3=new j5();return j3.parse(j0,j1,j2),j3;}j5.prototype.parse=function(j0,j1,j2){if(!j4.isString(j0))throw new TypeError("Parameter 'url' must be a string, not "+typeof j0);var j5=j0.indexOf("?"),j7=-1!==j5&&j5<j0.indexOf("#")?"?":"#",j9=j0.split(j7);j9[0]=j9[0].replace(/\\/g,"/");var j19=j0=j9.join(j7);if(j19=j19.trim(),!j2&&1===j0.split("#").length){var j20=j8.exec(j19);if(j20)return this.path=j19,this.href=j19,this.pathname=j20[1],j20[2]?(this.search=j20[2],this.query=j1?j18.parse(this.search.substr(1)):this.search.substr(1)):j1&&(this.search="",this.query={}),this;}var j21=j6.exec(j19);if(j21){var j22=(j21=j21[0]).toLowerCase();this.protocol=j22,j19=j19.substr(j21.length);}if(j2||j21||j19.match(/^\/\/[^@\/]+@[^@\/]+/)){var j23="//"===j19.substr(0,2);!j23||j21&&j16[j21]||(j19=j19.substr(2),this.slashes=!0);}if(!j16[j21]&&(j23||j21&&!j17[j21])){for(var j24,j25,j26=-1,j27=0;j27<j12.length;j27++){-1!==(j28=j19.indexOf(j12[j27]))&&(-1===j26||j28<j26)&&(j26=j28);}-1!==(j25=-1===j26?j19.lastIndexOf("@"):j19.lastIndexOf("@",j26))&&(j24=j19.slice(0,j25),j19=j19.slice(j25+1),this.auth=decodeURIComponent(j24)),j26=-1;for(j27=0;j27<j11.length;j27++){var j28;-1!==(j28=j19.indexOf(j11[j27]))&&(-1===j26||j28<j26)&&(j26=j28);}-1===j26&&(j26=j19.length),this.host=j19.slice(0,j26),j19=j19.slice(j26),this.parseHost(),this.hostname=this.hostname||"";var j29="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j29)for(var j30=this.hostname.split(/\./),j31=(j27=0,j30.length);j27<j31;j27++){var j32=j30[j27];if(j32&&!j32.match(j13)){for(var j33="",j34=0,j35=j32.length;j34<j35;j34++)j32.charCodeAt(j34)>127?j33+="x":j33+=j32[j34];if(!j33.match(j13)){var j36=j30.slice(0,j27),j37=j30.slice(j27+1),j38=j32.match(j14);j38&&(j36.push(j38[1]),j37.unshift(j38[2])),j37.length&&(j19="/"+j37.join(".")+j19),this.hostname=j36.join(".");break;}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j29||(this.hostname=j3.toASCII(this.hostname));var j39=this.port?":"+this.port:"",j40=this.hostname||"";this.host=j40+j39,this.href+=this.host,j29&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==j19[0]&&(j19="/"+j19));}if(!j15[j22])for(j27=0,j31=j10.length;j27<j31;j27++){var j41=j10[j27];if(-1!==j19.indexOf(j41)){var j42=encodeURIComponent(j41);j42===j41&&(j42=escape(j41)),j19=j19.split(j41).join(j42);}}var j43=j19.indexOf("#");-1!==j43&&(this.hash=j19.substr(j43),j19=j19.slice(0,j43));var j44=j19.indexOf("?");if(-1!==j44?(this.search=j19.substr(j44),this.query=j19.substr(j44+1),j1&&(this.query=j18.parse(this.query)),j19=j19.slice(0,j44)):j1&&(this.search="",this.query={}),j19&&(this.pathname=j19),j17[j22]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){j39=this.pathname||"";var j45=this.search||"";this.path=j39+j45;}return this.href=this.format(),this;},j5.prototype.format=function(){var j0=this.auth||"";j0&&(j0=(j0=encodeURIComponent(j0)).replace(/%3A/i,":"),j0+="@");var j1=this.protocol||"",j2=this.pathname||"",j3=this.hash||"",j5=!1,j6="";this.host?j5=j0+this.host:this.hostname&&(j5=j0+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(j5+=":"+this.port)),this.query&&j4.isObject(this.query)&&Object.keys(this.query).length&&(j6=j18.stringify(this.query));var j7=this.search||j6&&"?"+j6||"";return j1&&":"!==j1.substr(-1)&&(j1+=":"),this.slashes||(!j1||j17[j1])&&!1!==j5?(j5="//"+(j5||""),j2&&"/"!==j2.charAt(0)&&(j2="/"+j2)):j5||(j5=""),j3&&"#"!==j3.charAt(0)&&(j3="#"+j3),j7&&"?"!==j7.charAt(0)&&(j7="?"+j7),j1+j5+(j2=j2.replace(/[?#]/g,function(j0){return encodeURIComponent(j0);}))+(j7=j7.replace("#","%23"))+j3;},j5.prototype.resolve=function(j0){return this.resolveObject(j19(j0,!1,!0)).format();},j5.prototype.resolveObject=function(j0){if(j4.isString(j0)){var j1=new j5();j1.parse(j0,!1,!0),j0=j1;}for(var j2=new j5(),j3=Object.keys(this),j6=0;j6<j3.length;j6++){var j7=j3[j6];j2[j7]=this[j7];}if(j2.hash=j0.hash,""===j0.href)return j2.href=j2.format(),j2;if(j0.slashes&&!j0.protocol){for(var j8=Object.keys(j0),j9=0;j9<j8.length;j9++){var j10=j8[j9];"protocol"!==j10&&(j2[j10]=j0[j10]);}return j17[j2.protocol]&&j2.hostname&&!j2.pathname&&(j2.path=j2.pathname="/"),j2.href=j2.format(),j2;}if(j0.protocol&&j0.protocol!==j2.protocol){if(!j17[j0.protocol]){for(var j11=Object.keys(j0),j12=0;j12<j11.length;j12++){var j13=j11[j12];j2[j13]=j0[j13];}return j2.href=j2.format(),j2;}if(j2.protocol=j0.protocol,j0.host||j16[j0.protocol])j2.pathname=j0.pathname;else{for(var j14=(j0.pathname||"").split("/");j14.length&&!(j0.host=j14.shift()););j0.host||(j0.host=""),j0.hostname||(j0.hostname=""),""!==j14[0]&&j14.unshift(""),j14.length<2&&j14.unshift(""),j2.pathname=j14.join("/");}if(j2.search=j0.search,j2.query=j0.query,j2.host=j0.host||"",j2.auth=j0.auth,j2.hostname=j0.hostname||j0.host,j2.port=j0.port,j2.pathname||j2.search){var j15=j2.pathname||"",j18=j2.search||"";j2.path=j15+j18;}return j2.slashes=j2.slashes||j0.slashes,j2.href=j2.format(),j2;}var j19=j2.pathname&&"/"===j2.pathname.charAt(0),j20=j0.host||j0.pathname&&"/"===j0.pathname.charAt(0),j21=j20||j19||j2.host&&j0.pathname,j22=j21,j23=j2.pathname&&j2.pathname.split("/")||[],j24=(j14=j0.pathname&&j0.pathname.split("/")||[],j2.protocol&&!j17[j2.protocol]);if(j24&&(j2.hostname="",j2.port=null,j2.host&&(""===j23[0]?j23[0]=j2.host:j23.unshift(j2.host)),j2.host="",j0.protocol&&(j0.hostname=null,j0.port=null,j0.host&&(""===j14[0]?j14[0]=j0.host:j14.unshift(j0.host)),j0.host=null),j21=j21&&(""===j14[0]||""===j23[0])),j20)j2.host=j0.host||""===j0.host?j0.host:j2.host,j2.hostname=j0.hostname||""===j0.hostname?j0.hostname:j2.hostname,j2.search=j0.search,j2.query=j0.query,j23=j14;else if(j14.length)j23||(j23=[]),j23.pop(),j23=j23.concat(j14),j2.search=j0.search,j2.query=j0.query;else if(!j4.isNullOrUndefined(j0.search)){if(j24)j2.hostname=j2.host=j23.shift(),(j29=!!(j2.host&&j2.host.indexOf("@")>0)&&j2.host.split("@"))&&(j2.auth=j29.shift(),j2.host=j2.hostname=j29.shift());return j2.search=j0.search,j2.query=j0.query,j4.isNull(j2.pathname)&&j4.isNull(j2.search)||(j2.path=(j2.pathname?j2.pathname:"")+(j2.search?j2.search:"")),j2.href=j2.format(),j2;}if(!j23.length)return j2.pathname=null,j2.search?j2.path="/"+j2.search:j2.path=null,j2.href=j2.format(),j2;for(var j25=j23.slice(-1)[0],j26=(j2.host||j0.host||j23.length>1)&&("."===j25||".."===j25)||""===j25,j27=0,j28=j23.length;j28>=0;j28--)"."===(j25=j23[j28])?j23.splice(j28,1):".."===j25?(j23.splice(j28,1),j27++):j27&&(j23.splice(j28,1),j27--);if(!j21&&!j22)for(;j27--;j27)j23.unshift("..");!j21||""===j23[0]||j23[0]&&"/"===j23[0].charAt(0)||j23.unshift(""),j26&&"/"!==j23.join("/").substr(-1)&&j23.push("");var j29,j30=""===j23[0]||j23[0]&&"/"===j23[0].charAt(0);j24&&(j2.hostname=j2.host=j30?"":j23.length?j23.shift():"",(j29=!!(j2.host&&j2.host.indexOf("@")>0)&&j2.host.split("@"))&&(j2.auth=j29.shift(),j2.host=j2.hostname=j29.shift()));return(j21=j21||j2.host&&j23.length)&&!j30&&j23.unshift(""),j23.length?j2.pathname=j23.join("/"):(j2.pathname=null,j2.path=null),j4.isNull(j2.pathname)&&j4.isNull(j2.search)||(j2.path=(j2.pathname?j2.pathname:"")+(j2.search?j2.search:"")),j2.auth=j0.auth||j2.auth,j2.slashes=j2.slashes||j0.slashes,j2.href=j2.format(),j2;},j5.prototype.parseHost=function(){var j0=this.host,j1=j7.exec(j0);j1&&(":"!==(j1=j1[0])&&(this.port=j1.substr(1)),j0=j0.substr(0,j0.length-j1.length)),j0&&(this.hostname=j0);};},function(j0,j1){j0.exports=function(j0){return j0.webpackPolyfill||(j0.deprecate=function(){},j0.paths=[],j0.children||(j0.children=[]),Object.defineProperty(j0,"loaded",{enumerable:!0,get:function(){return j0.l;}}),Object.defineProperty(j0,"id",{enumerable:!0,get:function(){return j0.i;}}),j0.webpackPolyfill=1),j0;};},function(j0,j1,j2){"use strict";var j3=j2(353);j0.exports=function(j0,j1){var j2,j4;return j1.port=j1.port||1883,j1.hostname=j1.hostname||j1.host||"localhost",j2=j1.port,j4=j1.hostname,j3.createConnection(j2,j4);};},function(j0,j1,j2){"use strict";(function(j1,j3){var j4,j5,j6,j7=j2(33).Transform,j8=j2(94);j0.exports=function(j0,j2){if(j2.hostname=j2.hostname||j2.host,!j2.hostname)throw new Error("Could not determine host. Specify host manually.");var j9="MQIsdp"===j2.protocolId&&3===j2.protocolVersion?"mqttv3.1":"mqtt";!function(j0){j0.hostname||(j0.hostname="localhost"),j0.path||(j0.path="/"),j0.wsOptions||(j0.wsOptions={});}(j2);var j10=function(j0,j1){var j2="wxs"===j0.protocol?"wss":"ws",j3=j2+"://"+j0.hostname+j0.path;return j0.port&&80!==j0.port&&443!==j0.port&&(j3=j2+"://"+j0.hostname+":"+j0.port+j0.path),"function"==typeof j0.transformWsUrl&&(j3=j0.transformWsUrl(j3,j0,j1)),j3;}(j2,j0);j4=wx.connectSocket({url:j10,protocols:j9}),j5=function(){var j0=new j7();return j0._write=function(j0,j1,j2){j4.send({data:j0.buffer,success:function(){j2();},fail:function(j0){j2(new Error(j0));}});},j0._flush=function(j0){j4.close({success:function(){j0();}});},j0;}(),(j6=j8.obj())._destroy=function(j0,j1){j4.close({success:function(){j1&&j1(j0);}});};var j11=j6.destroy;return j6.destroy=function(){j6.destroy=j11;var j0=this;j3.nextTick(function(){j4.close({fail:function(){j0._destroy(new Error());}});});}.bind(j6),j4.onOpen(function(){j6.setReadable(j5),j6.setWritable(j5),j6.emit("connect");}),j4.onMessage(function(j0){var j2=j0.data;j2=j2 instanceof ArrayBuffer?j1.from(j2):j1.from(j2,"utf8"),j5.push(j2);}),j4.onClose(function(){j6.end(),j6.destroy();}),j4.onError(function(j0){j6.destroy(new Error(j0.errMsg));}),j6;};}).call(this,j2(16).Buffer,j2(6));},function(j0,j1,j2){"use strict";(function(j1){var j3,j4,j5,j6=j2(33).Transform,j7=j2(94),j8=j2(97),j9=!1;j0.exports=function(j0,j2){if(j2.hostname=j2.hostname||j2.host,!j2.hostname)throw new Error("Could not determine host. Specify host manually.");var j10="MQIsdp"===j2.protocolId&&3===j2.protocolVersion?"mqttv3.1":"mqtt";!function(j0){j0.hostname||(j0.hostname="localhost"),j0.path||(j0.path="/"),j0.wsOptions||(j0.wsOptions={});}(j2);var j11=function(j0,j1){var j2="alis"===j0.protocol?"wss":"ws",j3=j2+"://"+j0.hostname+j0.path;return j0.port&&80!==j0.port&&443!==j0.port&&(j3=j2+"://"+j0.hostname+":"+j0.port+j0.path),"function"==typeof j0.transformWsUrl&&(j3=j0.transformWsUrl(j3,j0,j1)),j3;}(j2,j0);return(j3=j2.my).connectSocket({url:j11,protocols:j10}),j4=function(){var j0=new j6();return j0._write=function(j0,j1,j2){j3.sendSocketMessage({data:j0.buffer,success:function(){j2();},fail:function(){j2(new Error());}});},j0._flush=function(j0){j3.closeSocket({success:function(){j0();}});},j0;}(),j5=j7.obj(),j9||(j9=!0,j3.onSocketOpen(function(){j5.setReadable(j4),j5.setWritable(j4),j5.emit("connect");}),j3.onSocketMessage(function(j0){if("string"==typeof j0.data){var j2=j8.toByteArray(j0.data),j3=j1.from(j2);j4.push(j3);}else{var j5=new FileReader();j5.addEventListener("load",function(){var j0=j5.result;j0=j0 instanceof ArrayBuffer?j1.from(j0):j1.from(j0,"utf8"),j4.push(j0);}),j5.readAsArrayBuffer(j0.data);}}),j3.onSocketClose(function(){j5.end(),j5.destroy();}),j3.onSocketError(function(j0){j5.destroy(j0);})),j5;};}).call(this,j2(16).Buffer);},function(j0,j1,j2){"use strict";(function(j1){var j3=j2(359),j4=j2(152),j5=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],j6="browser"===j1.title;function j7(j0,j1){var j2="MQIsdp"===j1.protocolId&&3===j1.protocolVersion?"mqttv3.1":"mqtt";!function(j0){j0.hostname||(j0.hostname="localhost"),j0.port||("wss"===j0.protocol?j0.port=443:j0.port=80),j0.path||(j0.path="/"),j0.wsOptions||(j0.wsOptions={}),j6||"wss"!==j0.protocol||j5.forEach(function(j1){j0.hasOwnProperty(j1)&&!j0.wsOptions.hasOwnProperty(j1)&&(j0.wsOptions[j1]=j0[j1]);});}(j1);var j4=function(j0,j1){var j2=j0.protocol+"://"+j0.hostname+":"+j0.port+j0.path;return"function"==typeof j0.transformWsUrl&&(j2=j0.transformWsUrl(j2,j0,j1)),j2;}(j1,j0);return j3(j4,[j2],j1.wsOptions);}j0.exports=j6?function(j0,j1){if(j1.hostname||(j1.hostname=j1.host),!j1.hostname){if("undefined"==typeof document)throw new Error("Could not determine host. Specify host manually.");var j2=j4.parse(document.URL);j1.hostname=j2.hostname,j1.port||(j1.port=j2.port);}return j7(j0,j1);}:function(j0,j1){return j7(j0,j1);};}).call(this,j2(6));},function(module,exports,__webpack_require__){"use strict";(function(module){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_isInteger=__webpack_require__(361),_isInteger2=_interopRequireDefault(_isInteger),_defineProperty=__webpack_require__(124),_defineProperty2=_interopRequireDefault(_defineProperty),_defineProperties=__webpack_require__(365),_defineProperties2=_interopRequireDefault(_defineProperties),_freeze=__webpack_require__(368),_freeze2=_interopRequireDefault(_freeze),_create=__webpack_require__(131),_create2=_interopRequireDefault(_create),_stringify=__webpack_require__(80),_stringify2=_interopRequireDefault(_stringify),_keys=__webpack_require__(45),_keys2=_interopRequireDefault(_keys),_promise=__webpack_require__(77),_promise2=_interopRequireDefault(_promise),_typeof2=__webpack_require__(32),_typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(j0){return j0&&j0.__esModule?j0:{default:j0};}!function(t,e){!function(j0,j1,j2){var j3=t.protobuf=function j2(j3){var j4=j1[j3];return j4||j0[j3][0].call(j4=j1[j3]={exports:{}},j2,j4,j4.exports),j4.exports;}(19);__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(82)],__WEBPACK_AMD_DEFINE_RESULT__=function(j0){return j0&&j0.isLong&&(j3.util.Long=j0,j3.configure()),j3;}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),"object"==(0,_typeof3.default)(module)&&module&&module.exports&&(module.exports=j3);}({1:[function(j0,j1){j1.exports=function(j0,j1){for(var j2=Array(arguments.length-1),j3=0,j4=2,j5=!0;j4<arguments.length;)j2[j3++]=arguments[j4++];return new _promise2.default(function(j4,j6){j2[j3]=function(j0){if(j5)if(j5=!1,j0)j6(j0);else{for(var j1=Array(arguments.length-1),j2=0;j2<j1.length;)j1[j2++]=arguments[j2];j4.apply(null,j1);}};try{j0.apply(j1||null,j2);}catch(j0){j5&&(j5=!1,j6(j0));}});};},{}],2:[function(j0,j1,j2){var j3=j2;j3.length=function(j0){var j1=j0.length;if(!j1)return 0;for(var j2=0;--j1%4>1&&"="===j0.charAt(j1);)++j2;return Math.ceil(3*j0.length)/4-j2;};for(var j4=Array(64),j5=Array(123),j6=0;j6<64;)j5[j4[j6]=j6<26?j6+65:j6<52?j6+71:j6<62?j6-4:j6-59|43]=j6++;j3.encode=function(j0,j1,j2){for(var j3,j5=null,j6=[],j7=0,j8=0;j1<j2;){var j9=j0[j1++];switch(j8){case 0:j6[j7++]=j4[j9>>2],j3=(3&j9)<<4,j8=1;break;case 1:j6[j7++]=j4[j3|j9>>4],j3=(15&j9)<<2,j8=2;break;case 2:j6[j7++]=j4[j3|j9>>6],j6[j7++]=j4[63&j9],j8=0;}j7>8191&&((j5||(j5=[])).push(String.fromCharCode.apply(String,j6)),j7=0);}return j8&&(j6[j7++]=j4[j3],j6[j7++]=61,1===j8&&(j6[j7++]=61)),j5?(j7&&j5.push(String.fromCharCode.apply(String,j6.slice(0,j7))),j5.join("")):String.fromCharCode.apply(String,j6.slice(0,j7));},j3.decode=function(j0,j1,j2){for(var j3,j4=j2,j6=0,j7=0;j7<j0.length;){var j8=j0.charCodeAt(j7++);if(61===j8&&j6>1)break;if((j8=j5[j8])===e)throw Error("invalid encoding");switch(j6){case 0:j3=j8,j6=1;break;case 1:j1[j2++]=j3<<2|(48&j8)>>4,j3=j8,j6=2;break;case 2:j1[j2++]=(15&j3)<<4|(60&j8)>>2,j3=j8,j6=3;break;case 3:j1[j2++]=(3&j3)<<6|j8,j6=0;}}if(1===j6)throw Error("invalid encoding");return j2-j4;},j3.test=function(j0){return /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(j0);};},{}],3:[function(j0,j1){function j2(j0,j1){function j3(j0){if("string"!=typeof j0){var j1=j4();if(j2.verbose&&console.log("codegen: "+j1),j1="return "+j1,j0){for(var j6=(0,_keys2.default)(j0),j7=Array(j6.length+1),j8=Array(j6.length),j9=0;j9<j6.length;)j7[j9]=j6[j9],j8[j9]=j0[j6[j9++]];return j7[j9]=j1,Function.apply(null,j7).apply(null,j8);}return Function(j1)();}for(var j10=Array(arguments.length-1),j11=0;j11<j10.length;)j10[j11]=arguments[++j11];if(j11=0,j0=j0.replace(/%([%dfijs])/g,function(j0,j1){var j2=j10[j11++];switch(j1){case"d":case"f":return+j2+"";case"i":return Math.floor(j2)+"";case"j":return(0,_stringify2.default)(j2);case"s":return j2+"";}return"%";}),j11!==j10.length)throw Error("parameter count mismatch");return j5.push(j0),j3;}function j4(j2){return"function "+(j2||j1||"")+"("+(j0&&j0.join(",")||"")+"){\n  "+j5.join("\n  ")+"\n}";}"string"==typeof j0&&(j1=j0,j0=e);var j5=[];return j3.toString=j4,j3;}j1.exports=j2,j2.verbose=!1;},{}],4:[function(j0,j1){function j2(){this.a={};}j1.exports=j2,j2.prototype.on=function(j0,j1,j2){return(this.a[j0]||(this.a[j0]=[])).push({fn:j1,ctx:j2||this}),this;},j2.prototype.off=function(j0,j1){if(j0===e)this.a={};else if(j1===e)this.a[j0]=[];else for(var j2=this.a[j0],j3=0;j3<j2.length;)j2[j3].fn===j1?j2.splice(j3,1):++j3;return this;},j2.prototype.emit=function(j0){var j1=this.a[j0];if(j1){for(var j2=[],j3=1;j3<arguments.length;)j2.push(arguments[j3++]);for(j3=0;j3<j1.length;)j1[j3].fn.apply(j1[j3++].ctx,j2);}return this;};},{}],5:[function(j0,j1){function j2(j0,j1,j5){return"function"==typeof j1?(j5=j1,j1={}):j1||(j1={}),j5?!j1.xhr&&j4&&j4.readFile?j4.readFile(j0,function(j3,j4){return j3&&"undefined"!=typeof XMLHttpRequest?j2.xhr(j0,j1,j5):j3?j5(j3):j5(null,j1.binary?j4:j4.toString("utf8"));}):j2.xhr(j0,j1,j5):j3(j2,this,j0,j1);}j1.exports=j2;var j3=j0(1),j4=j0(7)("fs");j2.xhr=function(j0,j1,j2){var j3=new XMLHttpRequest();j3.onreadystatechange=function(){if(4!==j3.readyState)return e;if(0!==j3.status&&200!==j3.status)return j2(Error("status "+j3.status));if(j1.binary){var j0=j3.response;if(!j0){j0=[];for(var j4=0;j4<j3.responseText.length;++j4)j0.push(255&j3.responseText.charCodeAt(j4));}return j2(null,"undefined"!=typeof Uint8Array?new Uint8Array(j0):j0);}return j2(null,j3.responseText);},j1.binary&&("overrideMimeType"in j3&&j3.overrideMimeType("text/plain; charset=x-user-defined"),j3.responseType="arraybuffer"),j3.open("GET",j0),j3.send();};},{1:1,7:7}],6:[function(j0,j1){function j2(j0){return"undefined"!=typeof Float32Array?function(){function j1(j0,j1,j2){j5[0]=j0,j1[j2]=j6[0],j1[j2+1]=j6[1],j1[j2+2]=j6[2],j1[j2+3]=j6[3];}function j2(j0,j1,j2){j5[0]=j0,j1[j2]=j6[3],j1[j2+1]=j6[2],j1[j2+2]=j6[1],j1[j2+3]=j6[0];}function j3(j0,j1){return j6[0]=j0[j1],j6[1]=j0[j1+1],j6[2]=j0[j1+2],j6[3]=j0[j1+3],j5[0];}function j4(j0,j1){return j6[3]=j0[j1],j6[2]=j0[j1+1],j6[1]=j0[j1+2],j6[0]=j0[j1+3],j5[0];}var j5=new Float32Array([-0]),j6=new Uint8Array(j5.buffer),j7=128===j6[3];j0.writeFloatLE=j7?j1:j2,j0.writeFloatBE=j7?j2:j1,j0.readFloatLE=j7?j3:j4,j0.readFloatBE=j7?j4:j3;}():function(){function j1(j0,j1,j2,j3){var j4=j1<0?1:0;if(j4&&(j1=-j1),0===j1)j0(1/j1>0?0:2147483648,j2,j3);else if(isNaN(j1))j0(2143289344,j2,j3);else if(j1>34028234663852886e22)j0((j4<<31|2139095040)>>>0,j2,j3);else if(j1<11754943508222875e-54)j0((j4<<31|Math.round(j1/1401298464324817e-60))>>>0,j2,j3);else{var j5=Math.floor(Math.log(j1)/Math.LN2);j0((j4<<31|j5+127<<23|8388607&Math.round(j1*Math.pow(2,-j5)*8388608))>>>0,j2,j3);}}function j2(j0,j1,j2){var j3=j0(j1,j2),j4=2*(j3>>31)+1,j5=j3>>>23&255,j6=8388607&j3;return 255===j5?j6?NaN:j4*(1/0):0===j5?1401298464324817e-60*j4*j6:j4*Math.pow(2,j5-150)*(j6+8388608);}j0.writeFloatLE=j1.bind(null,j3),j0.writeFloatBE=j1.bind(null,j4),j0.readFloatLE=j2.bind(null,j5),j0.readFloatBE=j2.bind(null,j6);}(),"undefined"!=typeof Float64Array?function(){function j1(j0,j1,j2){j5[0]=j0,j1[j2]=j6[0],j1[j2+1]=j6[1],j1[j2+2]=j6[2],j1[j2+3]=j6[3],j1[j2+4]=j6[4],j1[j2+5]=j6[5],j1[j2+6]=j6[6],j1[j2+7]=j6[7];}function j2(j0,j1,j2){j5[0]=j0,j1[j2]=j6[7],j1[j2+1]=j6[6],j1[j2+2]=j6[5],j1[j2+3]=j6[4],j1[j2+4]=j6[3],j1[j2+5]=j6[2],j1[j2+6]=j6[1],j1[j2+7]=j6[0];}function j3(j0,j1){return j6[0]=j0[j1],j6[1]=j0[j1+1],j6[2]=j0[j1+2],j6[3]=j0[j1+3],j6[4]=j0[j1+4],j6[5]=j0[j1+5],j6[6]=j0[j1+6],j6[7]=j0[j1+7],j5[0];}function j4(j0,j1){return j6[7]=j0[j1],j6[6]=j0[j1+1],j6[5]=j0[j1+2],j6[4]=j0[j1+3],j6[3]=j0[j1+4],j6[2]=j0[j1+5],j6[1]=j0[j1+6],j6[0]=j0[j1+7],j5[0];}var j5=new Float64Array([-0]),j6=new Uint8Array(j5.buffer),j7=128===j6[7];j0.writeDoubleLE=j7?j1:j2,j0.writeDoubleBE=j7?j2:j1,j0.readDoubleLE=j7?j3:j4,j0.readDoubleBE=j7?j4:j3;}():function(){function j1(j0,j1,j2,j3,j4,j5){var j6=j3<0?1:0;if(j6&&(j3=-j3),0===j3)j0(0,j4,j5+j1),j0(1/j3>0?0:2147483648,j4,j5+j2);else if(isNaN(j3))j0(0,j4,j5+j1),j0(2146959360,j4,j5+j2);else if(j3>17976931348623157e292)j0(0,j4,j5+j1),j0((j6<<31|2146435072)>>>0,j4,j5+j2);else{var j7;if(j3<22250738585072014e-324)j0((j7=j3/5e-324)>>>0,j4,j5+j1),j0((j6<<31|j7/4294967296)>>>0,j4,j5+j2);else{var j8=Math.floor(Math.log(j3)/Math.LN2);1024===j8&&(j8=1023),j0(4503599627370496*(j7=j3*Math.pow(2,-j8))>>>0,j4,j5+j1),j0((j6<<31|j8+1023<<20|1048576*j7&1048575)>>>0,j4,j5+j2);}}}function j2(j0,j1,j2,j3,j4){var j5=j0(j3,j4+j1),j6=j0(j3,j4+j2),j7=2*(j6>>31)+1,j8=j6>>>20&2047,j9=4294967296*(1048575&j6)+j5;return 2047===j8?j9?NaN:j7*(1/0):0===j8?5e-324*j7*j9:j7*Math.pow(2,j8-1075)*(j9+4503599627370496);}j0.writeDoubleLE=j1.bind(null,j3,0,4),j0.writeDoubleBE=j1.bind(null,j4,4,0),j0.readDoubleLE=j2.bind(null,j5,0,4),j0.readDoubleBE=j2.bind(null,j6,4,0);}(),j0;}function j3(j0,j1,j2){j1[j2]=255&j0,j1[j2+1]=j0>>>8&255,j1[j2+2]=j0>>>16&255,j1[j2+3]=j0>>>24;}function j4(j0,j1,j2){j1[j2]=j0>>>24,j1[j2+1]=j0>>>16&255,j1[j2+2]=j0>>>8&255,j1[j2+3]=255&j0;}function j5(j0,j1){return(j0[j1]|j0[j1+1]<<8|j0[j1+2]<<16|j0[j1+3]<<24)>>>0;}function j6(j0,j1){return(j0[j1]<<24|j0[j1+1]<<16|j0[j1+2]<<8|j0[j1+3])>>>0;}j1.exports=j2(j2);},{}],7:[function(t,e,r){function n(t){try{var e=eval("quire".replace(/^/,"re"))(t);if(e&&(e.length||(0,_keys2.default)(e).length))return e;}catch(t){}return null;}e.exports=n;},{}],8:[function(j0,j1,j2){var j3=j2,j4=j3.isAbsolute=function(j0){return /^(?:\/|\w+:)/.test(j0);},j5=j3.normalize=function(j0){var j1=(j0=j0.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),j2=j4(j0),j3="";j2&&(j3=j1.shift()+"/");for(var j5=0;j5<j1.length;)".."===j1[j5]?j5>0&&".."!==j1[j5-1]?j1.splice(--j5,2):j2?j1.splice(j5,1):++j5:"."===j1[j5]?j1.splice(j5,1):++j5;return j3+j1.join("/");};j3.resolve=function(j0,j1,j2){return j2||(j1=j5(j1)),j4(j1)?j1:(j2||(j0=j5(j0)),(j0=j0.replace(/(?:\/|^)[^\/]+$/,"")).length?j5(j0+"/"+j1):j1);};},{}],9:[function(j0,j1){j1.exports=function(j0,j1,j2){var j3=j2||8192,j4=j3>>>1,j5=null,j6=j3;return function(j2){if(j2<1||j2>j4)return j0(j2);j6+j2>j3&&(j5=j0(j3),j6=0);var j7=j1.call(j5,j6,j6+=j2);return 7&j6&&(j6=1+(7|j6)),j7;};};},{}],10:[function(j0,j1,j2){var j3=j2;j3.length=function(j0){for(var j1=0,j2=0,j3=0;j3<j0.length;++j3)(j2=j0.charCodeAt(j3))<128?j1+=1:j2<2048?j1+=2:55296==(64512&j2)&&56320==(64512&j0.charCodeAt(j3+1))?(++j3,j1+=4):j1+=3;return j1;},j3.read=function(j0,j1,j2){if(j2-j1<1)return"";for(var j3,j4=null,j5=[],j6=0;j1<j2;)(j3=j0[j1++])<128?j5[j6++]=j3:j3>191&&j3<224?j5[j6++]=(31&j3)<<6|63&j0[j1++]:j3>239&&j3<365?(j3=((7&j3)<<18|(63&j0[j1++])<<12|(63&j0[j1++])<<6|63&j0[j1++])-65536,j5[j6++]=55296+(j3>>10),j5[j6++]=56320+(1023&j3)):j5[j6++]=(15&j3)<<12|(63&j0[j1++])<<6|63&j0[j1++],j6>8191&&((j4||(j4=[])).push(String.fromCharCode.apply(String,j5)),j6=0);return j4?(j6&&j4.push(String.fromCharCode.apply(String,j5.slice(0,j6))),j4.join("")):String.fromCharCode.apply(String,j5.slice(0,j6));},j3.write=function(j0,j1,j2){for(var j3,j4,j5=j2,j6=0;j6<j0.length;++j6)(j3=j0.charCodeAt(j6))<128?j1[j2++]=j3:j3<2048?(j1[j2++]=j3>>6|192,j1[j2++]=63&j3|128):55296==(64512&j3)&&56320==(64512&(j4=j0.charCodeAt(j6+1)))?(j3=65536+((1023&j3)<<10)+(1023&j4),++j6,j1[j2++]=j3>>18|240,j1[j2++]=j3>>12&63|128,j1[j2++]=j3>>6&63|128,j1[j2++]=63&j3|128):(j1[j2++]=j3>>12|224,j1[j2++]=j3>>6&63|128,j1[j2++]=63&j3|128);return j2-j5;};},{}],11:[function(j0,j1){function j2(j0,j1){j4.test(j0)||(j0="google/protobuf/"+j0+".proto",j1={nested:{google:{nested:{protobuf:{nested:j1}}}}}),j2[j0]=j1;}j1.exports=j2;var j3,j4=/\/|\./;j2("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),j2("duration",{Duration:j3={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),j2("timestamp",{Timestamp:j3}),j2("empty",{Empty:{fields:{}}}),j2("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),j2("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),j2.get=function(j0){return j2[j0]||null;};},{}],12:[function(j0,j1,j2){function j3(j0,j1,j2,j3){if(j1.resolvedType){if(j1.resolvedType instanceof j6){j0("switch(d%s){",j3);for(var j4=j1.resolvedType.values,j5=(0,_keys2.default)(j4),j7=0;j7<j5.length;++j7)j1.repeated&&j4[j5[j7]]===j1.typeDefault&&j0("default:"),j0("case%j:",j5[j7])("case %i:",j4[j5[j7]])("m%s=%j",j3,j4[j5[j7]])("break");j0("}");}else j0('if(typeof d%s!=="object")',j3)("throw TypeError(%j)",j1.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",j3,j2,j3);}else{var j8=!1;switch(j1.type){case"double":case"float":j0("m%s=Number(d%s)",j3,j3);break;case"uint32":case"fixed32":j0("m%s=d%s>>>0",j3,j3);break;case"int32":case"sint32":case"sfixed32":j0("m%s=d%s|0",j3,j3);break;case"uint64":j8=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":j0("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",j3,j3,j8)('else if(typeof d%s==="string")',j3)("m%s=parseInt(d%s,10)",j3,j3)('else if(typeof d%s==="number")',j3)("m%s=d%s",j3,j3)('else if(typeof d%s==="object")',j3)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",j3,j3,j3,j8?"true":"");break;case"bytes":j0('if(typeof d%s==="string")',j3)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",j3,j3,j3)("else if(d%s.length)",j3)("m%s=d%s",j3,j3);break;case"string":j0("m%s=String(d%s)",j3,j3);break;case"bool":j0("m%s=Boolean(d%s)",j3,j3);}}return j0;}function j4(j0,j1,j2,j3){if(j1.resolvedType)j1.resolvedType instanceof j6?j0("d%s=o.enums===String?types[%i].values[m%s]:m%s",j3,j2,j3,j3):j0("d%s=types[%i].toObject(m%s,o)",j3,j2,j3);else{var j4=!1;switch(j1.type){case"double":case"float":j0("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",j3,j3,j3,j3);break;case"uint64":j4=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":j0('if(typeof m%s==="number")',j3)("d%s=o.longs===String?String(m%s):m%s",j3,j3,j3)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",j3,j3,j3,j3,j4?"true":"",j3);break;case"bytes":j0("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",j3,j3,j3,j3,j3);break;default:j0("d%s=m%s",j3,j3);}}return j0;}var j5=j2,j6=j0(15),j7=j0(37);j5.fromObject=function(j0){var j1=j0.fieldsArray,j2=j7.codegen(["d"],j0.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!j1.length)return j2("return new this.ctor");j2("var m=new this.ctor");for(var j4=0;j4<j1.length;++j4){var j5=j1[j4].resolve(),j8=j7.safeProp(j5.name);j5.map?(j2("if(d%s){",j8)('if(typeof d%s!=="object")',j8)("throw TypeError(%j)",j5.fullName+": object expected")("m%s={}",j8)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",j8),j3(j2,j5,j4,j8+"[ks[i]]")("}")("}")):j5.repeated?(j2("if(d%s){",j8)("if(!Array.isArray(d%s))",j8)("throw TypeError(%j)",j5.fullName+": array expected")("m%s=[]",j8)("for(var i=0;i<d%s.length;++i){",j8),j3(j2,j5,j4,j8+"[i]")("}")("}")):(j5.resolvedType instanceof j6||j2("if(d%s!=null){",j8),j3(j2,j5,j4,j8),j5.resolvedType instanceof j6||j2("}"));}return j2("return m");},j5.toObject=function(j0){var j1=j0.fieldsArray.slice().sort(j7.compareFieldsById);if(!j1.length)return j7.codegen()("return {}");for(var j2=j7.codegen(["m","o"],j0.name+"$toObject")("if(!o)")("o={}")("var d={}"),j3=[],j5=[],j6=[],j8=0;j8<j1.length;++j8)j1[j8].partOf||(j1[j8].resolve().repeated?j3:j1[j8].map?j5:j6).push(j1[j8]);var j9=!1;for(j8=0;j8<j1.length;++j8){var j10=j1[j8],j11=j0.b.indexOf(j10),j12=j7.safeProp(j10.name);j10.map?(j9||(j9=!0,j2("var ks2")),j2("if(m%s&&(ks2=Object.keys(m%s)).length){",j12,j12)("d%s={}",j12)("for(var j=0;j<ks2.length;++j){"),j4(j2,j10,j11,j12+"[ks2[j]]")("}")):j10.repeated?(j2("if(m%s&&m%s.length){",j12,j12)("d%s=[]",j12)("for(var j=0;j<m%s.length;++j){",j12),j4(j2,j10,j11,j12+"[j]")("}")):(j2("if(m%s!=null&&m.hasOwnProperty(%j)){",j12,j10.name),j4(j2,j10,j11,j12),j10.partOf&&j2("if(o.oneofs)")("d%s=%j",j7.safeProp(j10.partOf.name),j10.name)),j2("}");}return j2("return d");};},{15:15,37:37}],13:[function(j0,j1){function j2(j0){return"missing required '"+j0.name+"'";}j1.exports=function(j0){var j1=j5.codegen(["r","l"],j0.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(j0.fieldsArray.filter(function(j0){return j0.map;}).length?",k":""))("while(r.pos<c){")("var t=r.uint32()");j0.group&&j1("if((t&7)===4)")("break"),j1("switch(t>>>3){");for(var j6=0;j6<j0.fieldsArray.length;++j6){var j7=j0.b[j6].resolve(),j8=j7.resolvedType instanceof j3?"int32":j7.type,j9="m"+j5.safeProp(j7.name);j1("case %i:",j7.id),j7.map?(j1("r.skip().pos++")("if(%s===util.emptyObject)",j9)("%s={}",j9)("k=r.%s()",j7.keyType)("r.pos++"),j4.long[j7.keyType]!==e?j4.basic[j8]===e?j1('%s[typeof k==="object"?util.longToHash(k):k]=types[%i].decode(r,r.uint32())',j9,j6):j1('%s[typeof k==="object"?util.longToHash(k):k]=r.%s()',j9,j8):j4.basic[j8]===e?j1("%s[k]=types[%i].decode(r,r.uint32())",j9,j6):j1("%s[k]=r.%s()",j9,j8)):j7.repeated?(j1("if(!(%s&&%s.length))",j9,j9)("%s=[]",j9),j4.packed[j8]!==e&&j1("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",j9,j8)("}else"),j4.basic[j8]===e?j1(j7.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",j9,j6):j1("%s.push(r.%s())",j9,j8)):j4.basic[j8]===e?j1(j7.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",j9,j6):j1("%s=r.%s()",j9,j8),j1("break");}for(j1("default:")("r.skipType(t&7)")("break")("}")("}"),j6=0;j6<j0.b.length;++j6){var j10=j0.b[j6];j10.required&&j1("if(!m.hasOwnProperty(%j))",j10.name)("throw util.ProtocolError(%j,{instance:m})",j2(j10));}return j1("return m");};var j3=j0(15),j4=j0(36),j5=j0(37);},{15:15,36:36,37:37}],14:[function(j0,j1){function j2(j0,j1,j2,j3){return j1.resolvedType.group?j0("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",j2,j3,(j1.id<<3|3)>>>0,(j1.id<<3|4)>>>0):j0("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",j2,j3,(j1.id<<3|2)>>>0);}j1.exports=function(j0){for(var j1,j6=j5.codegen(["m","w"],j0.name+"$encode")("if(!w)")("w=Writer.create()"),j7=j0.fieldsArray.slice().sort(j5.compareFieldsById),j8=0;j8<j7.length;++j8){var j9=j7[j8].resolve(),j10=j0.b.indexOf(j9),j11=j9.resolvedType instanceof j3?"int32":j9.type,j12=j4.basic[j11];j1="m"+j5.safeProp(j9.name),j9.map?(j6("if(%s!=null&&m.hasOwnProperty(%j)){",j1,j9.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",j1)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(j9.id<<3|2)>>>0,8|j4.mapKey[j9.keyType],j9.keyType),j12===e?j6("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",j10,j1):j6(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|j12,j11,j1),j6("}")("}")):j9.repeated?(j6("if(%s!=null&&%s.length){",j1,j1),j9.packed&&j4.packed[j11]!==e?j6("w.uint32(%i).fork()",(j9.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",j1)("w.%s(%s[i])",j11,j1)("w.ldelim()"):(j6("for(var i=0;i<%s.length;++i)",j1),j12===e?j2(j6,j9,j10,j1+"[i]"):j6("w.uint32(%i).%s(%s[i])",(j9.id<<3|j12)>>>0,j11,j1)),j6("}")):(j9.optional&&j6("if(%s!=null&&m.hasOwnProperty(%j))",j1,j9.name),j12===e?j2(j6,j9,j10,j1):j6("w.uint32(%i).%s(%s)",(j9.id<<3|j12)>>>0,j11,j1));}return j6("return w");};var j3=j0(15),j4=j0(36),j5=j0(37);},{15:15,36:36,37:37}],15:[function(j0,j1){function j2(j0,j1,j2){if(j3.call(this,j0,j2),j1&&"object"!=(void 0===j1?"undefined":(0,_typeof3.default)(j1)))throw TypeError("values must be an object");if(this.valuesById={},this.values=(0,_create2.default)(this.valuesById),this.comments={},j1)for(var j4=(0,_keys2.default)(j1),j5=0;j5<j4.length;++j5)"number"==typeof j1[j4[j5]]&&(this.valuesById[this.values[j4[j5]]=j1[j4[j5]]]=j4[j5]);}j1.exports=j2;var j3=j0(24);((j2.prototype=(0,_create2.default)(j3.prototype)).constructor=j2).className="Enum";var j4=j0(37);j2.fromJSON=function(j0,j1){return new j2(j0,j1.values,j1.options);},j2.prototype.toJSON=function(){return j4.toObject(["options",this.options,"values",this.values]);},j2.prototype.add=function(j0,j1,j2){if(!j4.isString(j0))throw TypeError("name must be a string");if(!j4.isInteger(j1))throw TypeError("id must be an integer");if(this.values[j0]!==e)throw Error("duplicate name");if(this.valuesById[j1]!==e){if(!this.options||!this.options.allow_alias)throw Error("duplicate id");this.values[j0]=j1;}else this.valuesById[this.values[j0]=j1]=j0;return this.comments[j0]=j2||null,this;},j2.prototype.remove=function(j0){if(!j4.isString(j0))throw TypeError("name must be a string");var j1=this.values[j0];if(j1===e)throw Error("name does not exist");return delete this.valuesById[j1],delete this.values[j0],delete this.comments[j0],this;};},{24:24,37:37}],16:[function(j0,j1){function j2(j0,j1,j2,j4,j5,j9){if(j7.isObject(j4)?(j9=j4,j4=j5=e):j7.isObject(j5)&&(j9=j5,j5=e),j3.call(this,j0,j9),!j7.isInteger(j1)||j1<0)throw TypeError("id must be a non-negative integer");if(!j7.isString(j2))throw TypeError("type must be a string");if(j4!==e&&!j8.test(j4=(""+j4).toLowerCase()))throw TypeError("rule must be a string rule");if(j5!==e&&!j7.isString(j5))throw TypeError("extend must be a string");this.rule=j4&&"optional"!==j4?j4:e,this.type=j2,this.id=j1,this.extend=j5||e,this.required="required"===j4,this.optional=!this.required,this.repeated="repeated"===j4,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!j7.Long&&j6.long[j2]!==e,this.bytes="bytes"===j2,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.c=null;}j1.exports=j2;var j3=j0(24);((j2.prototype=(0,_create2.default)(j3.prototype)).constructor=j2).className="Field";var j4,j5=j0(15),j6=j0(36),j7=j0(37),j8=/^required|optional|repeated$/;j2.fromJSON=function(j0,j1){return new j2(j0,j1.id,j1.type,j1.rule,j1.extend,j1.options);},Object.defineProperty(j2.prototype,"packed",{get:function(){return null===this.c&&(this.c=!1!==this.getOption("packed")),this.c;}}),j2.prototype.setOption=function(j0,j1,j2){return"packed"===j0&&(this.c=null),j3.prototype.setOption.call(this,j0,j1,j2);},j2.prototype.toJSON=function(){return j7.toObject(["rule","optional"!==this.rule&&this.rule||e,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options]);},j2.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=j6.defaults[this.type])===e&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof j4?this.typeDefault=null:this.typeDefault=this.resolvedType.values[(0,_keys2.default)(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof j5&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(this.options.packed===e||!this.resolvedType||this.resolvedType instanceof j5)||delete this.options.packed,(0,_keys2.default)(this.options).length||(this.options=e)),this.long)this.typeDefault=j7.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),_freeze2.default&&(0,_freeze2.default)(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var j0;j7.base64.test(this.typeDefault)?j7.base64.decode(this.typeDefault,j0=j7.newBuffer(j7.base64.length(this.typeDefault)),0):j7.utf8.write(this.typeDefault,j0=j7.newBuffer(j7.utf8.length(this.typeDefault)),0),this.typeDefault=j0;}return this.map?this.defaultValue=j7.emptyObject:this.repeated?this.defaultValue=j7.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof j4&&(this.parent.ctor.prototype[this.name]=this.defaultValue),j3.prototype.resolve.call(this);},j2.d=function(j0,j1,j3,j4){return"function"==typeof j1?j1=j7.decorateType(j1).name:j1&&"object"==(void 0===j1?"undefined":(0,_typeof3.default)(j1))&&(j1=j7.decorateEnum(j1).name),function(j5,j6){j7.decorateType(j5.constructor).add(new j2(j6,j0,j1,j3,{default:j4}));};},j2.e=function(j0){j4=j0;};},{15:15,24:24,36:36,37:37}],17:[function(j0,j1){var j2=j1.exports=j0(18);j2.build="light",j2.load=function(j0,j1,j3){return"function"==typeof j1?(j3=j1,j1=new j2.Root()):j1||(j1=new j2.Root()),j1.load(j0,j3);},j2.loadSync=function(j0,j1){return j1||(j1=new j2.Root()),j1.loadSync(j0);},j2.encoder=j0(14),j2.decoder=j0(13),j2.verifier=j0(40),j2.converter=j0(12),j2.ReflectionObject=j0(24),j2.Namespace=j0(23),j2.Root=j0(29),j2.Enum=j0(15),j2.Type=j0(35),j2.Field=j0(16),j2.OneOf=j0(25),j2.MapField=j0(20),j2.Service=j0(33),j2.Method=j0(22),j2.Message=j0(21),j2.wrappers=j0(41),j2.types=j0(36),j2.util=j0(37),j2.ReflectionObject.e(j2.Root),j2.Namespace.e(j2.Type,j2.Service),j2.Root.e(j2.Type),j2.Field.e(j2.Type);},{12:12,13:13,14:14,15:15,16:16,18:18,20:20,21:21,22:22,23:23,24:24,25:25,29:29,33:33,35:35,36:36,37:37,40:40,41:41}],18:[function(j0,j1,j2){function j3(){j4.Reader.e(j4.BufferReader),j4.util.e();}var j4=j2;j4.build="minimal",j4.Writer=j0(42),j4.BufferWriter=j0(43),j4.Reader=j0(27),j4.BufferReader=j0(28),j4.util=j0(39),j4.rpc=j0(31),j4.roots=j0(30),j4.configure=j3,j4.Writer.e(j4.BufferWriter),j3();},{27:27,28:28,30:30,31:31,39:39,42:42,43:43}],19:[function(j0,j1){var j2=j1.exports=j0(17);j2.build="full",j2.tokenize=j0(34),j2.parse=j0(26),j2.common=j0(11),j2.Root.e(j2.Type,j2.parse,j2.common);},{11:11,17:17,26:26,34:34}],20:[function(j0,j1){function j2(j0,j1,j2,j4,j6){if(j3.call(this,j0,j1,j4,j6),!j5.isString(j2))throw TypeError("keyType must be a string");this.keyType=j2,this.resolvedKeyType=null,this.map=!0;}j1.exports=j2;var j3=j0(16);((j2.prototype=(0,_create2.default)(j3.prototype)).constructor=j2).className="MapField";var j4=j0(36),j5=j0(37);j2.fromJSON=function(j0,j1){return new j2(j0,j1.id,j1.keyType,j1.type,j1.options);},j2.prototype.toJSON=function(){return j5.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options]);},j2.prototype.resolve=function(){if(this.resolved)return this;if(j4.mapKey[this.keyType]===e)throw Error("invalid key type: "+this.keyType);return j3.prototype.resolve.call(this);},j2.d=function(j0,j1,j3){return"function"==typeof j3?j3=j5.decorateType(j3).name:j3&&"object"==(void 0===j3?"undefined":(0,_typeof3.default)(j3))&&(j3=j5.decorateEnum(j3).name),function(j4,j6){j5.decorateType(j4.constructor).add(new j2(j6,j0,j1,j3));};};},{16:16,36:36,37:37}],21:[function(j0,j1){function j2(j0){if(j0)for(var j1=(0,_keys2.default)(j0),j2=0;j2<j1.length;++j2)this[j1[j2]]=j0[j1[j2]];}j1.exports=j2;var j3=j0(39);j2.create=function(j0){return this.$type.create(j0);},j2.encode=function(j0,j1){return this.$type.encode(j0,j1);},j2.encodeDelimited=function(j0,j1){return this.$type.encodeDelimited(j0,j1);},j2.decode=function(j0){return this.$type.decode(j0);},j2.decodeDelimited=function(j0){return this.$type.decodeDelimited(j0);},j2.verify=function(j0){return this.$type.verify(j0);},j2.fromObject=function(j0){return this.$type.fromObject(j0);},j2.toObject=function(j0,j1){return this.$type.toObject(j0,j1);},j2.prototype.toJSON=function(){return this.$type.toObject(this,j3.toJSONOptions);};},{39:39}],22:[function(j0,j1){function j2(j0,j1,j2,j5,j6,j7,j8){if(j4.isObject(j6)?(j8=j6,j6=j7=e):j4.isObject(j7)&&(j8=j7,j7=e),j1!==e&&!j4.isString(j1))throw TypeError("type must be a string");if(!j4.isString(j2))throw TypeError("requestType must be a string");if(!j4.isString(j5))throw TypeError("responseType must be a string");j3.call(this,j0,j8),this.type=j1||"rpc",this.requestType=j2,this.requestStream=!!j6||e,this.responseType=j5,this.responseStream=!!j7||e,this.resolvedRequestType=null,this.resolvedResponseType=null;}j1.exports=j2;var j3=j0(24);((j2.prototype=(0,_create2.default)(j3.prototype)).constructor=j2).className="Method";var j4=j0(37);j2.fromJSON=function(j0,j1){return new j2(j0,j1.type,j1.requestType,j1.responseType,j1.requestStream,j1.responseStream,j1.options);},j2.prototype.toJSON=function(){return j4.toObject(["type","rpc"!==this.type&&this.type||e,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options]);},j2.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),j3.prototype.resolve.call(this));};},{24:24,37:37}],23:[function(j0,j1){function j2(j0){if(!j0||!j0.length)return e;for(var j1={},j2=0;j2<j0.length;++j2)j1[j0[j2].name]=j0[j2].toJSON();return j1;}function j3(j0,j1){j5.call(this,j0,j1),this.nested=e,this.f=null;}function j4(j0){return j0.f=null,j0;}j1.exports=j3;var j5=j0(24);((j3.prototype=(0,_create2.default)(j5.prototype)).constructor=j3).className="Namespace";var j6,j7,j8=j0(15),j9=j0(16),j10=j0(37);j3.fromJSON=function(j0,j1){return new j3(j0,j1.options).addJSON(j1.nested);},j3.arrayToJSON=j2,Object.defineProperty(j3.prototype,"nestedArray",{get:function(){return this.f||(this.f=j10.toArray(this.nested));}}),j3.prototype.toJSON=function(){return j10.toObject(["options",this.options,"nested",j2(this.nestedArray)]);},j3.prototype.addJSON=function(j0){if(j0)for(var j1,j2=(0,_keys2.default)(j0),j4=0;j4<j2.length;++j4)j1=j0[j2[j4]],this.add((j1.fields!==e?j6.fromJSON:j1.values!==e?j8.fromJSON:j1.methods!==e?j7.fromJSON:j1.id!==e?j9.fromJSON:j3.fromJSON)(j2[j4],j1));return this;},j3.prototype.get=function(j0){return this.nested&&this.nested[j0]||null;},j3.prototype.getEnum=function(j0){if(this.nested&&this.nested[j0]instanceof j8)return this.nested[j0].values;throw Error("no such enum");},j3.prototype.add=function(j0){if(!(j0 instanceof j9&&j0.extend!==e||j0 instanceof j6||j0 instanceof j8||j0 instanceof j7||j0 instanceof j3))throw TypeError("object must be a valid nested object");if(this.nested){var j1=this.get(j0.name);if(j1){if(!(j1 instanceof j3&&j0 instanceof j3)||j1 instanceof j6||j1 instanceof j7)throw Error("duplicate name '"+j0.name+"' in "+this);for(var j2=j1.nestedArray,j5=0;j5<j2.length;++j5)j0.add(j2[j5]);this.remove(j1),this.nested||(this.nested={}),j0.setOptions(j1.options,!0);}}else this.nested={};return this.nested[j0.name]=j0,j0.onAdd(this),j4(this);},j3.prototype.remove=function(j0){if(!(j0 instanceof j5))throw TypeError("object must be a ReflectionObject");if(j0.parent!==this)throw Error(j0+" is not a member of "+this);return delete this.nested[j0.name],(0,_keys2.default)(this.nested).length||(this.nested=e),j0.onRemove(this),j4(this);},j3.prototype.define=function(j0,j1){if(j10.isString(j0))j0=j0.split(".");else if(!Array.isArray(j0))throw TypeError("illegal path");if(j0&&j0.length&&""===j0[0])throw Error("path must be relative");for(var j2=this;j0.length>0;){var j4=j0.shift();if(j2.nested&&j2.nested[j4]){if(!((j2=j2.nested[j4])instanceof j3))throw Error("path conflicts with non-namespace objects");}else j2.add(j2=new j3(j4));}return j1&&j2.addJSON(j1),j2;},j3.prototype.resolveAll=function(){for(var j0=this.nestedArray,j1=0;j1<j0.length;)j0[j1]instanceof j3?j0[j1++].resolveAll():j0[j1++].resolve();return this.resolve();},j3.prototype.lookup=function(j0,j1,j2){if("boolean"==typeof j1?(j2=j1,j1=e):j1&&!Array.isArray(j1)&&(j1=[j1]),j10.isString(j0)&&j0.length){if("."===j0)return this.root;j0=j0.split(".");}else if(!j0.length)return this;if(""===j0[0])return this.root.lookup(j0.slice(1),j1);var j4=this.get(j0[0]);if(j4){if(1===j0.length){if(!j1||j1.indexOf(j4.constructor)>-1)return j4;}else if(j4 instanceof j3&&(j4=j4.lookup(j0.slice(1),j1,!0)))return j4;}else for(var j5=0;j5<this.nestedArray.length;++j5)if(this.f[j5]instanceof j3&&(j4=this.f[j5].lookup(j0,j1,!0)))return j4;return null===this.parent||j2?null:this.parent.lookup(j0,j1);},j3.prototype.lookupType=function(j0){var j1=this.lookup(j0,[j6]);if(!j1)throw Error("no such type");return j1;},j3.prototype.lookupEnum=function(j0){var j1=this.lookup(j0,[j8]);if(!j1)throw Error("no such Enum '"+j0+"' in "+this);return j1;},j3.prototype.lookupTypeOrEnum=function(j0){var j1=this.lookup(j0,[j6,j8]);if(!j1)throw Error("no such Type or Enum '"+j0+"' in "+this);return j1;},j3.prototype.lookupService=function(j0){var j1=this.lookup(j0,[j7]);if(!j1)throw Error("no such Service '"+j0+"' in "+this);return j1;},j3.e=function(j0,j1){j6=j0,j7=j1;};},{15:15,16:16,24:24,37:37}],24:[function(j0,j1){function j2(j0,j1){if(!j4.isString(j0))throw TypeError("name must be a string");if(j1&&!j4.isObject(j1))throw TypeError("options must be an object");this.options=j1,this.name=j0,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null;}j1.exports=j2,j2.className="ReflectionObject";var j3,j4=j0(37);(0,_defineProperties2.default)(j2.prototype,{root:{get:function(){for(var j0=this;null!==j0.parent;)j0=j0.parent;return j0;}},fullName:{get:function(){for(var j0=[this.name],j1=this.parent;j1;)j0.unshift(j1.name),j1=j1.parent;return j0.join(".");}}}),j2.prototype.toJSON=function(){throw Error();},j2.prototype.onAdd=function(j0){this.parent&&this.parent!==j0&&this.parent.remove(this),this.parent=j0,this.resolved=!1;var j1=j0.root;j1 instanceof j3&&j1.g(this);},j2.prototype.onRemove=function(j0){var j1=j0.root;j1 instanceof j3&&j1.h(this),this.parent=null,this.resolved=!1;},j2.prototype.resolve=function(){return this.resolved||this.root instanceof j3&&(this.resolved=!0),this;},j2.prototype.getOption=function(j0){return this.options?this.options[j0]:e;},j2.prototype.setOption=function(j0,j1,j2){return j2&&this.options&&this.options[j0]!==e||((this.options||(this.options={}))[j0]=j1),this;},j2.prototype.setOptions=function(j0,j1){if(j0)for(var j2=(0,_keys2.default)(j0),j3=0;j3<j2.length;++j3)this.setOption(j2[j3],j0[j2[j3]],j1);return this;},j2.prototype.toString=function(){var j0=this.constructor.className,j1=this.fullName;return j1.length?j0+" "+j1:j0;},j2.e=function(j0){j3=j0;};},{37:37}],25:[function(j0,j1){function j2(j0,j1,j2){if(Array.isArray(j1)||(j2=j1,j1=e),j4.call(this,j0,j2),j1!==e&&!Array.isArray(j1))throw TypeError("fieldNames must be an Array");this.oneof=j1||[],this.fieldsArray=[];}function j3(j0){if(j0.parent)for(var j1=0;j1<j0.fieldsArray.length;++j1)j0.fieldsArray[j1].parent||j0.parent.add(j0.fieldsArray[j1]);}j1.exports=j2;var j4=j0(24);((j2.prototype=(0,_create2.default)(j4.prototype)).constructor=j2).className="OneOf";var j5=j0(16),j6=j0(37);j2.fromJSON=function(j0,j1){return new j2(j0,j1.oneof,j1.options);},j2.prototype.toJSON=function(){return j6.toObject(["options",this.options,"oneof",this.oneof]);},j2.prototype.add=function(j0){if(!(j0 instanceof j5))throw TypeError("field must be a Field");return j0.parent&&j0.parent!==this.parent&&j0.parent.remove(j0),this.oneof.push(j0.name),this.fieldsArray.push(j0),j0.partOf=this,j3(this),this;},j2.prototype.remove=function(j0){if(!(j0 instanceof j5))throw TypeError("field must be a Field");var j1=this.fieldsArray.indexOf(j0);if(j1<0)throw Error(j0+" is not a member of "+this);return this.fieldsArray.splice(j1,1),(j1=this.oneof.indexOf(j0.name))>-1&&this.oneof.splice(j1,1),j0.partOf=null,this;},j2.prototype.onAdd=function(j0){j4.prototype.onAdd.call(this,j0);for(var j1=0;j1<this.oneof.length;++j1){var j2=j0.get(this.oneof[j1]);j2&&!j2.partOf&&(j2.partOf=this,this.fieldsArray.push(j2));}j3(this);},j2.prototype.onRemove=function(j0){for(var j1,j2=0;j2<this.fieldsArray.length;++j2)(j1=this.fieldsArray[j2]).parent&&j1.parent.remove(j1);j4.prototype.onRemove.call(this,j0);},j2.d=function(){for(var j0=Array(arguments.length),j1=0;j1<arguments.length;)j0[j1]=arguments[j1++];return function(j1,j3){j6.decorateType(j1.constructor).add(new j2(j3,j0)),(0,_defineProperty2.default)(j1,j3,{get:j6.oneOfGetter(j0),set:j6.oneOfSetter(j0)});};};},{16:16,24:24,37:37}],26:[function(j0,j1){function j2(j0,j1,j24){function j25(j0,j1,j3){var j4=j2.filename;return j3||(j2.filename=null),Error("illegal "+(j1||"token")+" '"+j0+"' ("+(j4?j4+", ":"")+"line "+j44.line+")");}function j26(){var j0,j1=[];do{if('"'!==(j0=j45())&&"'"!==j0)throw j25(j0);j1.push(j45()),j48(j0),j0=j47();}while('"'===j0||"'"===j0);return j1.join("");}function j27(j0){var j1=j45();switch(j1){case"'":case'"':return j46(j1),j26();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1;}try{return function(j0,j1){var j2=1;switch("-"===j0.charAt(0)&&(j2=-1,j0=j0.substring(1)),j0){case"inf":case"INF":case"Inf":return j2*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0;}if(j14.test(j0))return j2*parseInt(j0,10);if(j16.test(j0))return j2*parseInt(j0,16);if(j18.test(j0))return j2*parseInt(j0,8);if(j20.test(j0))return j2*parseFloat(j0);throw j25(j0,"number",j1);}(j1,!0);}catch(j2){if(j0&&j22.test(j1))return j1;throw j25(j1,"value");}}function j28(j0,j1){var j2,j3;do{!j1||'"'!==(j2=j47())&&"'"!==j2?j0.push([j3=j29(j45()),j48("to",!0)?j29(j45()):j3]):j0.push(j26());}while(j48(",",!0));j48(";");}function j29(j0,j1){switch(j0){case"max":case"MAX":case"Max":return 536870911;case"0":return 0;}if(!j1&&"-"===j0.charAt(0))throw j25(j0,"id");if(j15.test(j0))return parseInt(j0,10);if(j17.test(j0))return parseInt(j0,16);if(j19.test(j0))return parseInt(j0,8);throw j25(j0,"id");}function j30(j0,j1){switch(j1){case"option":return j35(j0,j1),j48(";"),!0;case"message":return function(j0,j1){if(!j21.test(j1=j45()))throw j25(j1,"type name");var j2=new j5(j1);j31(j2,function(j0){if(!j30(j2,j0))switch(j0){case"map":j34(j2);break;case"required":case"optional":case"repeated":j32(j2,j0);break;case"oneof":!function(j0,j1){if(!j21.test(j1=j45()))throw j25(j1,"name");var j2=new j8(j53(j1));j31(j2,function(j0){"option"===j0?(j35(j2,j0),j48(";")):(j46(j0),j32(j2,"optional"));}),j0.add(j2);}(j2,j0);break;case"extensions":j28(j2.extensions||(j2.extensions=[]));break;case"reserved":j28(j2.reserved||(j2.reserved=[]),!0);break;default:if(!j51||!j22.test(j0))throw j25(j0);j46(j0),j32(j2,"optional");}}),j0.add(j2);}(j0,j1),!0;case"enum":return function(j0,j1){if(!j21.test(j1=j45()))throw j25(j1,"name");var j2=new j9(j1);j31(j2,function(j0){"option"===j0?(j35(j2,j0),j48(";")):function(j0,j1){if(!j21.test(j1))throw j25(j1,"name");j48("=");var j2=j29(j45(),!0),j3={};j31(j3,function(j0){if("option"!==j0)throw j25(j0);j35(j3,j0),j48(";");},function(){j38(j3);}),j0.add(j1,j2,j3.comment);}(j2,j0);}),j0.add(j2);}(j0,j1),!0;case"service":return function(j0,j1){if(!j21.test(j1=j45()))throw j25(j1,"service name");var j2=new j10(j1);j31(j2,function(j0){if(!j30(j2,j0)){if("rpc"!==j0)throw j25(j0);!function(j0,j1){var j2=j1;if(!j21.test(j1=j45()))throw j25(j1,"name");var j3,j4,j5,j6,j7=j1;if(j48("("),j48("stream",!0)&&(j4=!0),!j22.test(j1=j45()))throw j25(j1);if(j3=j1,j48(")"),j48("returns"),j48("("),j48("stream",!0)&&(j6=!0),!j22.test(j1=j45()))throw j25(j1);j5=j1,j48(")");var j8=new j11(j7,j2,j3,j5,j4,j6);j31(j8,function(j0){if("option"!==j0)throw j25(j0);j35(j8,j0),j48(";");}),j0.add(j8);}(j2,j0);}}),j0.add(j2);}(j0,j1),!0;case"extend":return function(j0,j1){if(!j22.test(j1=j45()))throw j25(j1,"reference");var j2=j1;j31(null,function(j1){switch(j1){case"required":case"repeated":case"optional":j32(j0,j1,j2);break;default:if(!j51||!j22.test(j1))throw j25(j1);j46(j1),j32(j0,"optional",j2);}});}(j0,j1),!0;}return!1;}function j31(j0,j1,j3){var j4=j44.line;if(j0&&(j0.comment=j49(),j0.filename=j2.filename),j48("{",!0)){for(var j5;"}"!==(j5=j45());)j1(j5);j48(";",!0);}else j3&&j3(),j48(";"),j0&&"string"!=typeof j0.comment&&(j0.comment=j49(j4));}function j32(j0,j1,j2){var j3=j45();if("group"!==j3){if(!j22.test(j3))throw j25(j3,"type");var j4=j45();if(!j21.test(j4))throw j25(j4,"name");j4=j53(j4),j48("=");var j5=new j6(j4,j29(j45()),j3,j1,j2);j31(j5,function(j0){if("option"!==j0)throw j25(j0);j35(j5,j0),j48(";");},function(){j38(j5);}),j0.add(j5),j51||!j5.repeated||j12.packed[j3]===e&&j12.basic[j3]!==e||j5.setOption("packed",!1,!0);}else j33(j0,j1);}function j33(j0,j1){var j3=j45();if(!j21.test(j3))throw j25(j3,"name");var j4=j13.lcFirst(j3);j3===j4&&(j3=j13.ucFirst(j3)),j48("=");var j7=j29(j45()),j8=new j5(j3);j8.group=!0;var j9=new j6(j4,j7,j3,j1);j9.filename=j2.filename,j31(j8,function(j0){switch(j0){case"option":j35(j8,j0),j48(";");break;case"required":case"optional":case"repeated":j32(j8,j0);break;default:throw j25(j0);}}),j0.add(j8).add(j9);}function j34(j0){j48("<");var j1=j45();if(j12.mapKey[j1]===e)throw j25(j1,"type");j48(",");var j2=j45();if(!j22.test(j2))throw j25(j2,"type");j48(">");var j3=j45();if(!j21.test(j3))throw j25(j3,"name");j48("=");var j4=new j7(j53(j3),j29(j45()),j1,j2);j31(j4,function(j0){if("option"!==j0)throw j25(j0);j35(j4,j0),j48(";");},function(){j38(j4);}),j0.add(j4);}function j35(j0,j1){var j2=j48("(",!0);if(!j22.test(j1=j45()))throw j25(j1,"name");var j3=j1;j2&&(j48(")"),j3="("+j3+")",j1=j47(),j23.test(j1)&&(j3+=j1,j45())),j48("="),j36(j0,j3);}function j36(j0,j1){if(j48("{",!0))do{if(!j21.test(j43=j45()))throw j25(j43,"name");"{"===j47()?j36(j0,j1+"."+j43):(j48(":"),j37(j0,j1+"."+j43,j27(!0)));}while(!j48("}",!0));else j37(j0,j1,j27(!0));}function j37(j0,j1,j2){j0.setOption&&j0.setOption(j1,j2);}function j38(j0){if(j48("[",!0)){do{j35(j0,"option");}while(j48(",",!0));j48("]");}return j0;}j1 instanceof j4||(j24=j1,j1=new j4()),j24||(j24=j2.defaults);for(var j39,j40,j41,j42,j43,j44=j3(j0),j45=j44.next,j46=j44.push,j47=j44.peek,j48=j44.skip,j49=j44.cmnt,j50=!0,j51=!1,j52=j1,j53=j24.keepCase?function(j0){return j0;}:j13.camelCase;null!==(j43=j45());)switch(j43){case"package":if(!j50)throw j25(j43);!function(){if(j39!==e)throw j25("package");if(j39=j45(),!j22.test(j39))throw j25(j39,"name");j52=j52.define(j39),j48(";");}();break;case"import":if(!j50)throw j25(j43);!function(){var j0,j1=j47();switch(j1){case"weak":j0=j41||(j41=[]),j45();break;case"public":j45();default:j0=j40||(j40=[]);}j1=j26(),j48(";"),j0.push(j1);}();break;case"syntax":if(!j50)throw j25(j43);!function(){if(j48("="),j42=j26(),!(j51="proto3"===j42)&&"proto2"!==j42)throw j25(j42,"syntax");j48(";");}();break;case"option":if(!j50)throw j25(j43);j35(j52,j43),j48(";");break;default:if(j30(j52,j43)){j50=!1;continue;}throw j25(j43);}return j2.filename=null,{package:j39,imports:j40,weakImports:j41,syntax:j42,root:j1};}j1.exports=j2,j2.filename=null,j2.defaults={keepCase:!1};var j3=j0(34),j4=j0(29),j5=j0(35),j6=j0(16),j7=j0(20),j8=j0(25),j9=j0(15),j10=j0(33),j11=j0(22),j12=j0(36),j13=j0(37),j14=/^[1-9][0-9]*$/,j15=/^-?[1-9][0-9]*$/,j16=/^0[x][0-9a-fA-F]+$/,j17=/^-?0[x][0-9a-fA-F]+$/,j18=/^0[0-7]+$/,j19=/^-?0[0-7]+$/,j20=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,j21=/^[a-zA-Z_][a-zA-Z_0-9]*$/,j22=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,j23=/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/;},{15:15,16:16,20:20,22:22,25:25,29:29,33:33,34:34,35:35,36:36,37:37}],27:[function(j0,j1){function j2(j0,j1){return RangeError("index out of range: "+j0.pos+" + "+(j1||1)+" > "+j0.len);}function j3(j0){this.buf=j0,this.pos=0,this.len=j0.length;}function j4(){var j0=new j9(0,0),j1=0;if(!(this.len-this.pos>4)){for(;j1<3;++j1){if(this.pos>=this.len)throw j2(this);if(j0.lo=(j0.lo|(127&this.buf[this.pos])<<7*j1)>>>0,this.buf[this.pos++]<128)return j0;}return j0.lo=(j0.lo|(127&this.buf[this.pos++])<<7*j1)>>>0,j0;}for(;j1<4;++j1)if(j0.lo=(j0.lo|(127&this.buf[this.pos])<<7*j1)>>>0,this.buf[this.pos++]<128)return j0;if(j0.lo=(j0.lo|(127&this.buf[this.pos])<<28)>>>0,j0.hi=(j0.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return j0;if(j1=0,this.len-this.pos>4){for(;j1<5;++j1)if(j0.hi=(j0.hi|(127&this.buf[this.pos])<<7*j1+3)>>>0,this.buf[this.pos++]<128)return j0;}else for(;j1<5;++j1){if(this.pos>=this.len)throw j2(this);if(j0.hi=(j0.hi|(127&this.buf[this.pos])<<7*j1+3)>>>0,this.buf[this.pos++]<128)return j0;}throw Error("invalid varint encoding");}function j5(j0,j1){return(j0[j1-4]|j0[j1-3]<<8|j0[j1-2]<<16|j0[j1-1]<<24)>>>0;}function j6(){if(this.pos+8>this.len)throw j2(this,8);return new j9(j5(this.buf,this.pos+=4),j5(this.buf,this.pos+=4));}j1.exports=j3;var j7,j8=j0(39),j9=j8.LongBits,j10=j8.utf8,j11="undefined"!=typeof Uint8Array?function(j0){if(j0 instanceof Uint8Array||Array.isArray(j0))return new j3(j0);throw Error("illegal buffer");}:function(j0){if(Array.isArray(j0))return new j3(j0);throw Error("illegal buffer");};j3.create=j8.Buffer?function(j0){return(j3.create=function(j0){return j8.Buffer.isBuffer(j0)?new j7(j0):j11(j0);})(j0);}:j11,j3.prototype.i=j8.Array.prototype.subarray||j8.Array.prototype.slice,j3.prototype.uint32=function(){var j0=4294967295;return function(){if(j0=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return j0;if(j0=(j0|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return j0;if(j0=(j0|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return j0;if(j0=(j0|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return j0;if(j0=(j0|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return j0;if((this.pos+=5)>this.len)throw this.pos=this.len,j2(this,10);return j0;};}(),j3.prototype.int32=function(){return 0|this.uint32();},j3.prototype.sint32=function(){var j0=this.uint32();return j0>>>1^-(1&j0)|0;},j3.prototype.bool=function(){return 0!==this.uint32();},j3.prototype.fixed32=function(){if(this.pos+4>this.len)throw j2(this,4);return j5(this.buf,this.pos+=4);},j3.prototype.sfixed32=function(){if(this.pos+4>this.len)throw j2(this,4);return 0|j5(this.buf,this.pos+=4);},j3.prototype.float=function(){if(this.pos+4>this.len)throw j2(this,4);var j0=j8.float.readFloatLE(this.buf,this.pos);return this.pos+=4,j0;},j3.prototype.double=function(){if(this.pos+8>this.len)throw j2(this,4);var j0=j8.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,j0;},j3.prototype.bytes=function(){var j0=this.uint32(),j1=this.pos,j3=this.pos+j0;if(j3>this.len)throw j2(this,j0);return this.pos+=j0,Array.isArray(this.buf)?this.buf.slice(j1,j3):j1===j3?new this.buf.constructor(0):this.i.call(this.buf,j1,j3);},j3.prototype.string=function(){var j0=this.bytes();return j10.read(j0,0,j0.length);},j3.prototype.skip=function(j0){if("number"==typeof j0){if(this.pos+j0>this.len)throw j2(this,j0);this.pos+=j0;}else do{if(this.pos>=this.len)throw j2(this);}while(128&this.buf[this.pos++]);return this;},j3.prototype.skipType=function(j0){switch(j0){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(j0=7&this.uint32());)this.skipType(j0);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+j0+" at offset "+this.pos);}return this;},j3.e=function(j0){j7=j0;var j1=j8.Long?"toLong":"toNumber";j8.merge(j3.prototype,{int64:function(){return j4.call(this)[j1](!1);},uint64:function(){return j4.call(this)[j1](!0);},sint64:function(){return j4.call(this).zzDecode()[j1](!1);},fixed64:function(){return j6.call(this)[j1](!0);},sfixed64:function(){return j6.call(this)[j1](!1);}});};},{39:39}],28:[function(j0,j1){function j2(j0){j3.call(this,j0);}j1.exports=j2;var j3=j0(27);(j2.prototype=(0,_create2.default)(j3.prototype)).constructor=j2;var j4=j0(39);j4.Buffer&&(j2.prototype.i=j4.Buffer.prototype.slice),j2.prototype.string=function(){var j0=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+j0,this.len));};},{27:27,39:39}],29:[function(j0,j1){function j2(j0){j5.call(this,"",j0),this.deferred=[],this.files=[];}function j3(){}function j4(j0,j1){var j2=j1.parent.lookup(j1.extend);if(j2){var j3=new j9(j1.fullName,j1.id,j1.type,j1.rule,e,j1.options);return j3.declaringField=j1,j1.extensionField=j3,j2.add(j3),!0;}return!1;}j1.exports=j2;var j5=j0(23);((j2.prototype=(0,_create2.default)(j5.prototype)).constructor=j2).className="Root";var j6,j7,j8,j9=j0(16),j10=j0(15),j11=j0(25),j12=j0(37);j2.fromJSON=function(j0,j1){return j1||(j1=new j2()),j0.options&&j1.setOptions(j0.options),j1.addJSON(j0.nested);},j2.prototype.resolvePath=j12.path.resolve,j2.prototype.load=function j0(j1,j2,j4){function j5(j0,j1){if(j4){var j2=j4;if(j4=null,j11)throw j0;j2(j0,j1);}}function j6(j0,j1){try{if(j12.isString(j1)&&"{"===j1.charAt(0)&&(j1=JSON.parse(j1)),j12.isString(j1)){j7.filename=j0;var j3,j4=j7(j1,j10,j2),j6=0;if(j4.imports)for(;j6<j4.imports.length;++j6)(j3=j10.resolvePath(j0,j4.imports[j6]))&&j9(j3);if(j4.weakImports)for(j6=0;j6<j4.weakImports.length;++j6)(j3=j10.resolvePath(j0,j4.weakImports[j6]))&&j9(j3,!0);}else j10.setOptions(j1.options).addJSON(j1.nested);}catch(j0){j5(j0);}j11||j13||j5(null,j10);}function j9(j0,j1){var j2=j0.lastIndexOf("google/protobuf/");if(j2>-1){var j3=j0.substring(j2);j3 in j8&&(j0=j3);}if(!(j10.files.indexOf(j0)>-1)){if(j10.files.push(j0),j0 in j8)return void(j11?j6(j0,j8[j0]):(++j13,setTimeout(function(){--j13,j6(j0,j8[j0]);})));if(j11){var j7;try{j7=j12.fs.readFileSync(j0).toString("utf8");}catch(j0){return void(j1||j5(j0));}j6(j0,j7);}else++j13,j12.fetch(j0,function(j2,j3){if(--j13,j4)return j2?void(j1?j13||j5(null,j10):j5(j2)):void j6(j0,j3);});}}"function"==typeof j2&&(j4=j2,j2=e);var j10=this;if(!j4)return j12.asPromise(j0,j10,j1,j2);var j11=j4===j3,j13=0;j12.isString(j1)&&(j1=[j1]);for(var j14,j15=0;j15<j1.length;++j15)(j14=j10.resolvePath("",j1[j15]))&&j9(j14);return j11?j10:(j13||j5(null,j10),e);},j2.prototype.loadSync=function(j0,j1){if(!j12.isNode)throw Error("not supported");return this.load(j0,j1,j3);},j2.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(j0){return"'extend "+j0.extend+"' in "+j0.parent.fullName;}).join(", "));return j5.prototype.resolveAll.call(this);};var j13=/^[A-Z]/;j2.prototype.g=function(j0){if(j0 instanceof j9)j0.extend===e||j0.extensionField||j4(0,j0)||this.deferred.push(j0);else if(j0 instanceof j10)j13.test(j0.name)&&(j0.parent[j0.name]=j0.values);else if(!(j0 instanceof j11)){if(j0 instanceof j6)for(var j1=0;j1<this.deferred.length;)j4(0,this.deferred[j1])?this.deferred.splice(j1,1):++j1;for(var j2=0;j2<j0.nestedArray.length;++j2)this.g(j0.f[j2]);j13.test(j0.name)&&(j0.parent[j0.name]=j0);}},j2.prototype.h=function(j0){if(j0 instanceof j9){if(j0.extend!==e)if(j0.extensionField)j0.extensionField.parent.remove(j0.extensionField),j0.extensionField=null;else{var j1=this.deferred.indexOf(j0);j1>-1&&this.deferred.splice(j1,1);}}else if(j0 instanceof j10)j13.test(j0.name)&&delete j0.parent[j0.name];else if(j0 instanceof j5){for(var j2=0;j2<j0.nestedArray.length;++j2)this.h(j0.f[j2]);j13.test(j0.name)&&delete j0.parent[j0.name];}},j2.e=function(j0,j1,j2){j6=j0,j7=j1,j8=j2;};},{15:15,16:16,23:23,25:25,37:37}],30:[function(j0,j1){j1.exports={};},{}],31:[function(j0,j1,j2){j2.Service=j0(32);},{32:32}],32:[function(j0,j1){function j2(j0,j1,j2){if("function"!=typeof j0)throw TypeError("rpcImpl must be a function");j3.EventEmitter.call(this),this.rpcImpl=j0,this.requestDelimited=!!j1,this.responseDelimited=!!j2;}j1.exports=j2;var j3=j0(39);(j2.prototype=(0,_create2.default)(j3.EventEmitter.prototype)).constructor=j2,j2.prototype.rpcCall=function j0(j1,j2,j4,j5,j6){if(!j5)throw TypeError("request must be specified");var j7=this;if(!j6)return j3.asPromise(j0,j7,j1,j2,j4,j5);if(!j7.rpcImpl)return setTimeout(function(){j6(Error("already ended"));},0),e;try{return j7.rpcImpl(j1,j2[j7.requestDelimited?"encodeDelimited":"encode"](j5).finish(),function(j0,j2){if(j0)return j7.emit("error",j0,j1),j6(j0);if(null===j2)return j7.end(!0),e;if(!(j2 instanceof j4))try{j2=j4[j7.responseDelimited?"decodeDelimited":"decode"](j2);}catch(j0){return j7.emit("error",j0,j1),j6(j0);}return j7.emit("data",j2,j1),j6(null,j2);});}catch(j0){return j7.emit("error",j0,j1),setTimeout(function(){j6(j0);},0),e;}},j2.prototype.end=function(j0){return this.rpcImpl&&(j0||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this;};},{39:39}],33:[function(j0,j1){function j2(j0,j1){j4.call(this,j0,j1),this.methods={},this.j=null;}function j3(j0){return j0.j=null,j0;}j1.exports=j2;var j4=j0(23);((j2.prototype=(0,_create2.default)(j4.prototype)).constructor=j2).className="Service";var j5=j0(22),j6=j0(37),j7=j0(31);j2.fromJSON=function(j0,j1){var j3=new j2(j0,j1.options);if(j1.methods)for(var j4=(0,_keys2.default)(j1.methods),j6=0;j6<j4.length;++j6)j3.add(j5.fromJSON(j4[j6],j1.methods[j4[j6]]));return j1.nested&&j3.addJSON(j1.nested),j3;},j2.prototype.toJSON=function(){var j0=j4.prototype.toJSON.call(this);return j6.toObject(["options",j0&&j0.options||e,"methods",j4.arrayToJSON(this.methodsArray)||{},"nested",j0&&j0.nested||e]);},Object.defineProperty(j2.prototype,"methodsArray",{get:function(){return this.j||(this.j=j6.toArray(this.methods));}}),j2.prototype.get=function(j0){return this.methods[j0]||j4.prototype.get.call(this,j0);},j2.prototype.resolveAll=function(){for(var j0=this.methodsArray,j1=0;j1<j0.length;++j1)j0[j1].resolve();return j4.prototype.resolve.call(this);},j2.prototype.add=function(j0){if(this.get(j0.name))throw Error("duplicate name '"+j0.name+"' in "+this);return j0 instanceof j5?(this.methods[j0.name]=j0,j0.parent=this,j3(this)):j4.prototype.add.call(this,j0);},j2.prototype.remove=function(j0){if(j0 instanceof j5){if(this.methods[j0.name]!==j0)throw Error(j0+" is not a member of "+this);return delete this.methods[j0.name],j0.parent=null,j3(this);}return j4.prototype.remove.call(this,j0);},j2.prototype.create=function(j0,j1,j2){for(var j3,j4=new j7.Service(j0,j1,j2),j5=0;j5<this.methodsArray.length;++j5)j4[j6.lcFirst((j3=this.j[j5]).resolve().name)]=j6.codegen(["r","c"],j6.lcFirst(j3.name))("return this.rpcCall(m,q,s,r,c)")({m:j3,q:j3.resolvedRequestType.ctor,s:j3.resolvedResponseType.ctor});return j4;};},{22:22,23:23,31:31,37:37}],34:[function(j0,j1){function j2(j0){return j0.replace(j10,function(j0,j1){switch(j1){case"\\":case"":return j1;default:return j11[j1]||"";}});}function j3(j0){function j1(j0){return Error("illegal "+j0+" (line "+j17+")");}function j3(){var j3="'"===j23?j6:j5;j3.lastIndex=j15-1;var j4=j3.exec(j0);if(!j4)throw j1("string");return j15=j3.lastIndex,j13(j23),j23=null,j2(j4[1]);}function j10(j1){return j0.charAt(j1);}function j11(j1,j2){j18=j0.charAt(j1++),j20=j17,j21=!1;var j3,j4=j1-3;do{if(--j4<0||"\n"===(j3=j0.charAt(j4))){j21=!0;break;}}while(" "===j3||"\t"===j3);for(var j5=j0.substring(j1,j2).split(j8),j6=0;j6<j5.length;++j6)j5[j6]=j5[j6].replace(j7,"").trim();j19=j5.join("\n").trim();}function j12(){if(j22.length>0)return j22.shift();if(j23)return j3();var j2,j5,j6,j7,j8;do{if(j15===j16)return null;for(j2=!1;j9.test(j6=j10(j15));)if("\n"===j6&&++j17,++j15===j16)return null;if("/"===j10(j15)){if(++j15===j16)throw j1("comment");if("/"===j10(j15)){for(j8="/"===j10(j7=j15+1);"\n"!==j10(++j15);)if(j15===j16)return null;++j15,j8&&j11(j7,j15-1),++j17,j2=!0;}else{if("*"!==(j6=j10(j15)))return"/";j8="*"===j10(j7=j15+1);do{if("\n"===j6&&++j17,++j15===j16)throw j1("comment");j5=j6,j6=j10(j15);}while("*"!==j5||"/"!==j6);++j15,j8&&j11(j7,j15-2),j2=!0;}}}while(j2);var j12=j15;if(j4.lastIndex=0,!j4.test(j10(j12++)))for(;j12<j16&&!j4.test(j10(j12));)++j12;var j13=j0.substring(j15,j15=j12);return'"'!==j13&&"'"!==j13||(j23=j13),j13;}function j13(j0){j22.push(j0);}function j14(){if(!j22.length){var j0=j12();if(null===j0)return null;j13(j0);}return j22[0];}var j15=0,j16=(j0=""+j0).length,j17=1,j18=null,j19=null,j20=0,j21=!1,j22=[],j23=null;return Object.defineProperty({next:j12,peek:j14,push:j13,skip:function(j0,j2){var j3=j14();if(j3===j0)return j12(),!0;if(!j2)throw j1("token '"+j3+"', '"+j0+"' expected");return!1;},cmnt:function(j0){var j1=null;return j0===e?j20!==j17-1||"*"!==j18&&!j21||(j1=j19):(j20<j0&&j14(),j20!==j0||j21||"/"!==j18||(j1=j19)),j1;}},"line",{get:function(){return j17;}});}j1.exports=j3;var j4=/[\s{}=;:[\],'"()<>]/g,j5=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,j6=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,j7=/^ *[*\/]+ */,j8=/\n/g,j9=/\s/,j10=/\\(.?)/g,j11={0:"\0",r:"\r",n:"\n",t:"\t"};j3.unescape=j2;},{}],35:[function(j0,j1){function j2(j0,j1){j4.call(this,j0,j1),this.fields={},this.oneofs=e,this.extensions=e,this.reserved=e,this.group=e,this.k=null,this.b=null,this.l=null,this.o=null;}function j3(j0){return j0.k=j0.b=j0.l=null,delete j0.encode,delete j0.decode,delete j0.verify,j0;}j1.exports=j2;var j4=j0(23);((j2.prototype=(0,_create2.default)(j4.prototype)).constructor=j2).className="Type";var j5=j0(15),j6=j0(25),j7=j0(16),j8=j0(20),j9=j0(33),j10=j0(21),j11=j0(27),j12=j0(42),j13=j0(37),j14=j0(14),j15=j0(13),j16=j0(40),j17=j0(12),j18=j0(41);(0,_defineProperties2.default)(j2.prototype,{fieldsById:{get:function(){if(this.k)return this.k;this.k={};for(var j0=(0,_keys2.default)(this.fields),j1=0;j1<j0.length;++j1){var j2=this.fields[j0[j1]],j3=j2.id;if(this.k[j3])throw Error("duplicate id "+j3+" in "+this);this.k[j3]=j2;}return this.k;}},fieldsArray:{get:function(){return this.b||(this.b=j13.toArray(this.fields));}},oneofsArray:{get:function(){return this.l||(this.l=j13.toArray(this.oneofs));}},ctor:{get:function(){return this.o||(this.ctor=j2.generateConstructor(this)());},set:function(j0){var j1=j0.prototype;j1 instanceof j10||((j0.prototype=new j10()).constructor=j0,j13.merge(j0.prototype,j1)),j0.$type=j0.prototype.$type=this,j13.merge(j0,j10,!0),this.o=j0;for(var j2=0;j2<this.fieldsArray.length;++j2)this.b[j2].resolve();var j3={};for(j2=0;j2<this.oneofsArray.length;++j2)j3[this.l[j2].resolve().name]={get:j13.oneOfGetter(this.l[j2].oneof),set:j13.oneOfSetter(this.l[j2].oneof)};j2&&(0,_defineProperties2.default)(j0.prototype,j3);}}}),j2.generateConstructor=function(j0){for(var j1,j2=j13.codegen(["p"],j0.name),j3=0;j3<j0.fieldsArray.length;++j3)(j1=j0.b[j3]).map?j2("this%s={}",j13.safeProp(j1.name)):j1.repeated&&j2("this%s=[]",j13.safeProp(j1.name));return j2("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]");},j2.fromJSON=function(j0,j1){var j3=new j2(j0,j1.options);j3.extensions=j1.extensions,j3.reserved=j1.reserved;for(var j10=(0,_keys2.default)(j1.fields),j11=0;j11<j10.length;++j11)j3.add((e!==j1.fields[j10[j11]].keyType?j8.fromJSON:j7.fromJSON)(j10[j11],j1.fields[j10[j11]]));if(j1.oneofs)for(j10=(0,_keys2.default)(j1.oneofs),j11=0;j11<j10.length;++j11)j3.add(j6.fromJSON(j10[j11],j1.oneofs[j10[j11]]));if(j1.nested)for(j10=(0,_keys2.default)(j1.nested),j11=0;j11<j10.length;++j11){var j12=j1.nested[j10[j11]];j3.add((j12.id!==e?j7.fromJSON:j12.fields!==e?j2.fromJSON:j12.values!==e?j5.fromJSON:j12.methods!==e?j9.fromJSON:j4.fromJSON)(j10[j11],j12));}return j1.extensions&&j1.extensions.length&&(j3.extensions=j1.extensions),j1.reserved&&j1.reserved.length&&(j3.reserved=j1.reserved),j1.group&&(j3.group=!0),j3;},j2.prototype.toJSON=function(){var j0=j4.prototype.toJSON.call(this);return j13.toObject(["options",j0&&j0.options||e,"oneofs",j4.arrayToJSON(this.oneofsArray),"fields",j4.arrayToJSON(this.fieldsArray.filter(function(j0){return!j0.declaringField;}))||{},"extensions",this.extensions&&this.extensions.length?this.extensions:e,"reserved",this.reserved&&this.reserved.length?this.reserved:e,"group",this.group||e,"nested",j0&&j0.nested||e]);},j2.prototype.resolveAll=function(){for(var j0=this.fieldsArray,j1=0;j1<j0.length;)j0[j1++].resolve();var j2=this.oneofsArray;for(j1=0;j1<j2.length;)j2[j1++].resolve();return j4.prototype.resolveAll.call(this);},j2.prototype.get=function(j0){return this.fields[j0]||this.oneofs&&this.oneofs[j0]||this.nested&&this.nested[j0]||null;},j2.prototype.add=function(j0){if(this.get(j0.name))throw Error("duplicate name '"+j0.name+"' in "+this);if(j0 instanceof j7&&j0.extend===e){if(this.k?this.k[j0.id]:this.fieldsById[j0.id])throw Error("duplicate id "+j0.id+" in "+this);if(this.isReservedId(j0.id))throw Error("id "+j0.id+" is reserved in "+this);if(this.isReservedName(j0.name))throw Error("name '"+j0.name+"' is reserved in "+this);return j0.parent&&j0.parent.remove(j0),this.fields[j0.name]=j0,j0.message=this,j0.onAdd(this),j3(this);}return j0 instanceof j6?(this.oneofs||(this.oneofs={}),this.oneofs[j0.name]=j0,j0.onAdd(this),j3(this)):j4.prototype.add.call(this,j0);},j2.prototype.remove=function(j0){if(j0 instanceof j7&&j0.extend===e){if(!this.fields||this.fields[j0.name]!==j0)throw Error(j0+" is not a member of "+this);return delete this.fields[j0.name],j0.parent=null,j0.onRemove(this),j3(this);}if(j0 instanceof j6){if(!this.oneofs||this.oneofs[j0.name]!==j0)throw Error(j0+" is not a member of "+this);return delete this.oneofs[j0.name],j0.parent=null,j0.onRemove(this),j3(this);}return j4.prototype.remove.call(this,j0);},j2.prototype.isReservedId=function(j0){if(this.reserved)for(var j1=0;j1<this.reserved.length;++j1)if("string"!=typeof this.reserved[j1]&&this.reserved[j1][0]<=j0&&this.reserved[j1][1]>=j0)return!0;return!1;},j2.prototype.isReservedName=function(j0){if(this.reserved)for(var j1=0;j1<this.reserved.length;++j1)if(this.reserved[j1]===j0)return!0;return!1;},j2.prototype.create=function(j0){return new this.ctor(j0);},j2.prototype.setup=function(){for(var j0=this.fullName,j1=[],j2=0;j2<this.fieldsArray.length;++j2)j1.push(this.b[j2].resolve().resolvedType);this.encode=j14(this)({Writer:j12,types:j1,util:j13}),this.decode=j15(this)({Reader:j11,types:j1,util:j13}),this.verify=j16(this)({types:j1,util:j13}),this.fromObject=j17.fromObject(this)({types:j1,util:j13}),this.toObject=j17.toObject(this)({types:j1,util:j13});var j3=j18[j0];if(j3){var j4=(0,_create2.default)(this);j4.fromObject=this.fromObject,this.fromObject=j3.fromObject.bind(j4),j4.toObject=this.toObject,this.toObject=j3.toObject.bind(j4);}return this;},j2.prototype.encode=function(j0,j1){return this.setup().encode(j0,j1);},j2.prototype.encodeDelimited=function(j0,j1){return this.encode(j0,j1&&j1.len?j1.fork():j1).ldelim();},j2.prototype.decode=function(j0,j1){return this.setup().decode(j0,j1);},j2.prototype.decodeDelimited=function(j0){return j0 instanceof j11||(j0=j11.create(j0)),this.decode(j0,j0.uint32());},j2.prototype.verify=function(j0){return this.setup().verify(j0);},j2.prototype.fromObject=function(j0){return this.setup().fromObject(j0);},j2.prototype.toObject=function(j0,j1){return this.setup().toObject(j0,j1);},j2.d=function(j0){return function(j1){j13.decorateType(j1,j0);};};},{12:12,13:13,14:14,15:15,16:16,20:20,21:21,23:23,25:25,27:27,33:33,37:37,40:40,41:41,42:42}],36:[function(j0,j1,j2){function j3(j0,j1){var j2=0,j3={};for(j1|=0;j2<j0.length;)j3[j6[j2+j1]]=j0[j2++];return j3;}var j4=j2,j5=j0(37),j6=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];j4.basic=j3([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),j4.defaults=j3([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",j5.emptyArray,null]),j4.long=j3([0,0,0,1,1],7),j4.mapKey=j3([0,0,0,5,5,0,0,0,1,1,0,2],2),j4.packed=j3([1,5,0,0,0,5,5,0,0,0,1,1,0]);},{37:37}],37:[function(j0,j1){var j2,j3,j4=j1.exports=j0(39),j5=j0(30);j4.codegen=j0(3),j4.fetch=j0(5),j4.path=j0(8),j4.fs=j4.inquire("fs"),j4.toArray=function(j0){if(j0){for(var j1=(0,_keys2.default)(j0),j2=Array(j1.length),j3=0;j3<j1.length;)j2[j3]=j0[j1[j3++]];return j2;}return[];},j4.toObject=function(j0){for(var j1={},j2=0;j2<j0.length;){var j3=j0[j2++],j4=j0[j2++];j4!==e&&(j1[j3]=j4);}return j1;};var j6=/\\/g,j7=/"/g;j4.safeProp=function(j0){return'["'+j0.replace(j6,"\\\\").replace(j7,'\\"')+'"]';},j4.ucFirst=function(j0){return j0.charAt(0).toUpperCase()+j0.substring(1);};var j8=/_([a-z])/g;j4.camelCase=function(j0){return j0.substring(0,1)+j0.substring(1).replace(j8,function(j0,j1){return j1.toUpperCase();});},j4.compareFieldsById=function(j0,j1){return j0.id-j1.id;},j4.decorateType=function(j1,j3){if(j1.$type)return j3&&j1.$type.name!==j3&&(j4.decorateRoot.remove(j1.$type),j1.$type.name=j3,j4.decorateRoot.add(j1.$type)),j1.$type;j2||(j2=j0(35));var j5=new j2(j3||j1.name);return j4.decorateRoot.add(j5),j5.ctor=j1,Object.defineProperty(j1,"$type",{value:j5,enumerable:!1}),Object.defineProperty(j1.prototype,"$type",{value:j5,enumerable:!1}),j5;};var j9=0;j4.decorateEnum=function(j1){if(j1.$type)return j1.$type;j3||(j3=j0(15));var j2=new j3("Enum"+j9++,j1);return j4.decorateRoot.add(j2),Object.defineProperty(j1,"$type",{value:j2,enumerable:!1}),j2;},Object.defineProperty(j4,"decorateRoot",{get:function(){return j5.decorated||(j5.decorated=new(j0(29))());}});},{15:15,29:29,3:3,30:30,35:35,39:39,5:5,8:8}],38:[function(j0,j1){function j2(j0,j1){this.lo=j0>>>0,this.hi=j1>>>0;}j1.exports=j2;var j3=j0(39),j4=j2.zero=new j2(0,0);j4.toNumber=function(){return 0;},j4.zzEncode=j4.zzDecode=function(){return this;},j4.length=function(){return 1;};var j5=j2.zeroHash="\0\0\0\0\0\0\0\0";j2.fromNumber=function(j0){if(0===j0)return j4;var j1=j0<0;j1&&(j0=-j0);var j3=j0>>>0,j5=(j0-j3)/4294967296>>>0;return j1&&(j5=~j5>>>0,j3=~j3>>>0,++j3>4294967295&&(j3=0,++j5>4294967295&&(j5=0))),new j2(j3,j5);},j2.from=function(j0){if("number"==typeof j0)return j2.fromNumber(j0);if(j3.isString(j0)){if(!j3.Long)return j2.fromNumber(parseInt(j0,10));j0=j3.Long.fromString(j0);}return j0.low||j0.high?new j2(j0.low>>>0,j0.high>>>0):j4;},j2.prototype.toNumber=function(j0){if(!j0&&this.hi>>>31){var j1=1+~this.lo>>>0,j2=~this.hi>>>0;return j1||(j2=j2+1>>>0),-(j1+4294967296*j2);}return this.lo+4294967296*this.hi;},j2.prototype.toLong=function(j0){return j3.Long?new j3.Long(0|this.lo,0|this.hi,!!j0):{low:0|this.lo,high:0|this.hi,unsigned:!!j0};};var j6=String.prototype.charCodeAt;j2.fromHash=function(j0){return j0===j5?j4:new j2((j6.call(j0,0)|j6.call(j0,1)<<8|j6.call(j0,2)<<16|j6.call(j0,3)<<24)>>>0,(j6.call(j0,4)|j6.call(j0,5)<<8|j6.call(j0,6)<<16|j6.call(j0,7)<<24)>>>0);},j2.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24);},j2.prototype.zzEncode=function(){var j0=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^j0)>>>0,this.lo=(this.lo<<1^j0)>>>0,this;},j2.prototype.zzDecode=function(){var j0=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^j0)>>>0,this.hi=(this.hi>>>1^j0)>>>0,this;},j2.prototype.length=function(){var j0=this.lo,j1=(this.lo>>>28|this.hi<<4)>>>0,j2=this.hi>>>24;return 0===j2?0===j1?j0<16384?j0<128?1:2:j0<2097152?3:4:j1<16384?j1<128?5:6:j1<2097152?7:8:j2<128?9:10;};},{39:39}],39:[function(j0,j1,j2){function j3(j0,j1,j2){for(var j3=(0,_keys2.default)(j1),j4=0;j4<j3.length;++j4)j0[j3[j4]]!==e&&j2||(j0[j3[j4]]=j1[j3[j4]]);return j0;}function j4(j0){function j1(j0,j2){if(!(this instanceof j1))return new j1(j0,j2);Object.defineProperty(this,"message",{get:function(){return j0;}}),Error.captureStackTrace?Error.captureStackTrace(this,j1):Object.defineProperty(this,"stack",{value:Error().stack||""}),j2&&j3(this,j2);}return(j1.prototype=(0,_create2.default)(Error.prototype)).constructor=j1,Object.defineProperty(j1.prototype,"name",{get:function(){return j0;}}),j1.prototype.toString=function(){return this.name+": "+this.message;},j1;}var j5=j2;j5.asPromise=j0(1),j5.base64=j0(2),j5.EventEmitter=j0(4),j5.float=j0(6),j5.inquire=j0(7),j5.utf8=j0(10),j5.pool=j0(9),j5.LongBits=j0(38),j5.emptyArray=_freeze2.default?(0,_freeze2.default)([]):[],j5.emptyObject=_freeze2.default?(0,_freeze2.default)({}):{},j5.isNode=!!(t.process&&t.process.versions&&t.process.versions.node),j5.isInteger=_isInteger2.default||function(j0){return"number"==typeof j0&&isFinite(j0)&&Math.floor(j0)===j0;},j5.isString=function(j0){return"string"==typeof j0||j0 instanceof String;},j5.isObject=function(j0){return j0&&"object"==(void 0===j0?"undefined":(0,_typeof3.default)(j0));},j5.isset=j5.isSet=function(j0,j1){var j2=j0[j1];return!(null==j2||!j0.hasOwnProperty(j1))&&("object"!=(void 0===j2?"undefined":(0,_typeof3.default)(j2))||(Array.isArray(j2)?j2.length:(0,_keys2.default)(j2).length)>0);},j5.Buffer=function(){try{var j0=j5.inquire("buffer").Buffer;return j0.prototype.utf8Write?j0:null;}catch(j0){return null;}}(),j5.p=null,j5.u=null,j5.newBuffer=function(j0){return"number"==typeof j0?j5.Buffer?j5.u(j0):new j5.Array(j0):j5.Buffer?j5.p(j0):"undefined"==typeof Uint8Array?j0:new Uint8Array(j0);},j5.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,j5.Long=t.dcodeIO&&t.dcodeIO.Long||j5.inquire("long"),j5.key2Re=/^true|false|0|1$/,j5.key32Re=/^-?(?:0|[1-9][0-9]*)$/,j5.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,j5.longToHash=function(j0){return j0?j5.LongBits.from(j0).toHash():j5.LongBits.zeroHash;},j5.longFromHash=function(j0,j1){var j2=j5.LongBits.fromHash(j0);return j5.Long?j5.Long.fromBits(j2.lo,j2.hi,j1):j2.toNumber(!!j1);},j5.merge=j3,j5.lcFirst=function(j0){return j0.charAt(0).toLowerCase()+j0.substring(1);},j5.newError=j4,j5.ProtocolError=j4("ProtocolError"),j5.oneOfGetter=function(j0){for(var j1={},j2=0;j2<j0.length;++j2)j1[j0[j2]]=1;return function(){for(var j0=(0,_keys2.default)(this),j2=j0.length-1;j2>-1;--j2)if(1===j1[j0[j2]]&&this[j0[j2]]!==e&&null!==this[j0[j2]])return j0[j2];};},j5.oneOfSetter=function(j0){return function(j1){for(var j2=0;j2<j0.length;++j2)j0[j2]!==j1&&delete this[j0[j2]];};},j5.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},j5.e=function(){var j0=j5.Buffer;j0?(j5.p=j0.from!==Uint8Array.from&&j0.from||function(j1,j2){return new j0(j1,j2);},j5.u=j0.allocUnsafe||function(j1){return new j0(j1);}):j5.p=j5.u=null;};},{1:1,10:10,2:2,38:38,4:4,6:6,7:7,9:9}],40:[function(j0,j1){function j2(j0,j1){return j0.name+": "+j1+(j0.repeated&&"array"!==j1?"[]":j0.map&&"object"!==j1?"{k:"+j0.keyType+"}":"")+" expected";}function j3(j0,j1,j3,j4){if(j1.resolvedType){if(j1.resolvedType instanceof j5){j0("switch(%s){",j4)("default:")("return%j",j2(j1,"enum value"));for(var j6=(0,_keys2.default)(j1.resolvedType.values),j7=0;j7<j6.length;++j7)j0("case %i:",j1.resolvedType.values[j6[j7]]);j0("break")("}");}else j0((j0.hasErrorVar?"":"var ")+"e=types[%i].verify(%s);",j3,j4)("if(e)")("return%j+e",j1.name+"."),j0.hasErrorVar=!0;}else switch(j1.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":j0("if(!util.isInteger(%s))",j4)("return%j",j2(j1,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":j0("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",j4,j4,j4,j4)("return%j",j2(j1,"integer|Long"));break;case"float":case"double":j0('if(typeof %s!=="number")',j4)("return%j",j2(j1,"number"));break;case"bool":j0('if(typeof %s!=="boolean")',j4)("return%j",j2(j1,"boolean"));break;case"string":j0("if(!util.isString(%s))",j4)("return%j",j2(j1,"string"));break;case"bytes":j0('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',j4,j4,j4)("return%j",j2(j1,"buffer"));}return j0;}function j4(j0,j1,j3){switch(j1.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":j0("if(!util.key32Re.test(%s))",j3)("return%j",j2(j1,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":j0("if(!util.key64Re.test(%s))",j3)("return%j",j2(j1,"integer|Long key"));break;case"bool":j0("if(!util.key2Re.test(%s))",j3)("return%j",j2(j1,"boolean key"));}return j0;}j1.exports=function(j0){var j1=j6.codegen(["m"],j0.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),j5={};j0.oneofsArray.length&&j1("var p={}");for(var j7=0;j7<j0.fieldsArray.length;++j7){var j8=j0.b[j7].resolve(),j9="m"+j6.safeProp(j8.name);if(j8.optional&&j1("if(%s!=null&&m.hasOwnProperty(%j)){",j9,j8.name),j8.map)j1("if(!util.isObject(%s))",j9)("return%j",j2(j8,"object"))("var k=Object.keys(%s)",j9)("for(var i=0;i<k.length;++i){"),j4(j1,j8,"k[i]"),j3(j1,j8,j7,j9+"[k[i]]")("}");else if(j8.repeated)j1("if(!Array.isArray(%s))",j9)("return%j",j2(j8,"array"))("for(var i=0;i<%s.length;++i){",j9),j3(j1,j8,j7,j9+"[i]")("}");else{if(j8.partOf){var j10=j6.safeProp(j8.partOf.name);1===j5[j8.partOf.name]&&j1("if(p%s===1)",j10)("return%j",j8.partOf.name+": multiple values"),j5[j8.partOf.name]=1,j1("p%s=1",j10);}j3(j1,j8,j7,j9);}j8.optional&&j1("}");}return j1("return null");};var j5=j0(15),j6=j0(37);},{15:15,37:37}],41:[function(j0,j1,j2){var j3=j2,j4=j0(21);j3[".google.protobuf.Any"]={fromObject:function(j0){if(j0&&j0["@type"]){var j1=this.lookup(j0["@type"]);if(j1)return this.create({type_url:j0["@type"],value:j1.encode(j0).finish()});}return this.fromObject(j0);},toObject:function(j0,j1){if(j1&&j1.json&&j0.type_url&&j0.value){var j2=this.lookup(j0.type_url);j2&&(j0=j2.decode(j0.value));}if(!(j0 instanceof this.ctor)&&j0 instanceof j4){var j3=j0.$type.toObject(j0,j1);return j3["@type"]=j0.$type.fullName,j3;}return this.toObject(j0,j1);}};},{21:21}],42:[function(j0,j1){function j2(j0,j1,j2){this.fn=j0,this.len=j1,this.next=e,this.val=j2;}function j3(){}function j4(j0){this.head=j0.head,this.tail=j0.tail,this.len=j0.len,this.next=j0.states;}function j5(){this.len=0,this.head=new j2(j3,0,0),this.tail=this.head,this.states=null;}function j6(j0,j1,j2){j1[j2]=255&j0;}function j7(j0,j1){this.len=j0,this.next=e,this.val=j1;}function j8(j0,j1,j2){for(;j0.hi;)j1[j2++]=127&j0.lo|128,j0.lo=(j0.lo>>>7|j0.hi<<25)>>>0,j0.hi>>>=7;for(;j0.lo>127;)j1[j2++]=127&j0.lo|128,j0.lo=j0.lo>>>7;j1[j2++]=j0.lo;}function j9(j0,j1,j2){j1[j2]=255&j0,j1[j2+1]=j0>>>8&255,j1[j2+2]=j0>>>16&255,j1[j2+3]=j0>>>24;}j1.exports=j5;var j10,j11=j0(39),j12=j11.LongBits,j13=j11.base64,j14=j11.utf8;j5.create=j11.Buffer?function(){return(j5.create=function(){return new j10();})();}:function(){return new j5();},j5.alloc=function(j0){return new j11.Array(j0);},j11.Array!==Array&&(j5.alloc=j11.pool(j5.alloc,j11.Array.prototype.subarray)),j5.prototype.v=function(j0,j1,j3){return this.tail=this.tail.next=new j2(j0,j1,j3),this.len+=j1,this;},j7.prototype=(0,_create2.default)(j2.prototype),j7.prototype.fn=function(j0,j1,j2){for(;j0>127;)j1[j2++]=127&j0|128,j0>>>=7;j1[j2]=j0;},j5.prototype.uint32=function(j0){return this.len+=(this.tail=this.tail.next=new j7((j0>>>=0)<128?1:j0<16384?2:j0<2097152?3:j0<268435456?4:5,j0)).len,this;},j5.prototype.int32=function(j0){return j0<0?this.v(j8,10,j12.fromNumber(j0)):this.uint32(j0);},j5.prototype.sint32=function(j0){return this.uint32((j0<<1^j0>>31)>>>0);},j5.prototype.uint64=function(j0){var j1=j12.from(j0);return this.v(j8,j1.length(),j1);},j5.prototype.int64=j5.prototype.uint64,j5.prototype.sint64=function(j0){var j1=j12.from(j0).zzEncode();return this.v(j8,j1.length(),j1);},j5.prototype.bool=function(j0){return this.v(j6,1,j0?1:0);},j5.prototype.fixed32=function(j0){return this.v(j9,4,j0>>>0);},j5.prototype.sfixed32=j5.prototype.fixed32,j5.prototype.fixed64=function(j0){var j1=j12.from(j0);return this.v(j9,4,j1.lo).v(j9,4,j1.hi);},j5.prototype.sfixed64=j5.prototype.fixed64,j5.prototype.float=function(j0){return this.v(j11.float.writeFloatLE,4,j0);},j5.prototype.double=function(j0){return this.v(j11.float.writeDoubleLE,8,j0);};var j15=j11.Array.prototype.set?function(j0,j1,j2){j1.set(j0,j2);}:function(j0,j1,j2){for(var j3=0;j3<j0.length;++j3)j1[j2+j3]=j0[j3];};j5.prototype.bytes=function(j0){var j1=j0.length>>>0;if(!j1)return this.v(j6,1,0);if(j11.isString(j0)){var j2=j5.alloc(j1=j13.length(j0));j13.decode(j0,j2,0),j0=j2;}return this.uint32(j1).v(j15,j1,j0);},j5.prototype.string=function(j0){var j1=j14.length(j0);return j1?this.uint32(j1).v(j14.write,j1,j0):this.v(j6,1,0);},j5.prototype.fork=function(){return this.states=new j4(this),this.head=this.tail=new j2(j3,0,0),this.len=0,this;},j5.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new j2(j3,0,0),this.len=0),this;},j5.prototype.ldelim=function(){var j0=this.head,j1=this.tail,j2=this.len;return this.reset().uint32(j2),j2&&(this.tail.next=j0.next,this.tail=j1,this.len+=j2),this;},j5.prototype.finish=function(){for(var j0=this.head.next,j1=this.constructor.alloc(this.len),j2=0;j0;)j0.fn(j0.val,j1,j2),j2+=j0.len,j0=j0.next;return j1;},j5.e=function(j0){j10=j0;};},{39:39}],43:[function(j0,j1){function j2(){j4.call(this);}function j3(j0,j1,j2){j0.length<40?j5.utf8.write(j0,j1,j2):j1.utf8Write(j0,j2);}j1.exports=j2;var j4=j0(42);(j2.prototype=(0,_create2.default)(j4.prototype)).constructor=j2;var j5=j0(39),j6=j5.Buffer;j2.alloc=function(j0){return(j2.alloc=j5.u)(j0);};var j7=j6&&j6.prototype instanceof Uint8Array&&"set"===j6.prototype.set.name?function(j0,j1,j2){j1.set(j0,j2);}:function(j0,j1,j2){if(j0.copy)j0.copy(j1,j2,0,j0.length);else for(var j3=0;j3<j0.length;)j1[j2++]=j0[j3++];};j2.prototype.bytes=function(j0){j5.isString(j0)&&(j0=j5.p(j0,"base64"));var j1=j0.length>>>0;return this.uint32(j1),j1&&this.v(j7,j1,j0),this;},j2.prototype.string=function(j0){var j1=j6.byteLength(j0);return this.uint32(j1),j1&&this.v(j3,j1,j0),this;};},{39:39,42:42}]},{});}("object"==("undefined"==typeof window?"undefined":(0,_typeof3.default)(window))&&window||"object"==("undefined"==typeof self?"undefined":(0,_typeof3.default)(self))&&self||void 0);}).call(this,__webpack_require__(153)(module));},function(j0,j1){!function(){"use strict";for(var j0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j2=new Uint8Array(256),j3=0;j3<j0.length;j3++)j2[j0.charCodeAt(j3)]=j3;j1.encode=function(j1){var j2,j3=new Uint8Array(j1),j4=j3.length,j5="";for(j2=0;j2<j4;j2+=3)j5+=j0[j3[j2]>>2],j5+=j0[(3&j3[j2])<<4|j3[j2+1]>>4],j5+=j0[(15&j3[j2+1])<<2|j3[j2+2]>>6],j5+=j0[63&j3[j2+2]];return j4%3==2?j5=j5.substring(0,j5.length-1)+"=":j4%3==1&&(j5=j5.substring(0,j5.length-2)+"=="),j5;},j1.decode=function(j0){var j1,j3,j4,j5,j6,j7=.75*j0.length,j8=j0.length,j9=0;"="===j0[j0.length-1]&&(j7--,"="===j0[j0.length-2]&&j7--);var j10=new ArrayBuffer(j7),j11=new Uint8Array(j10);for(j1=0;j1<j8;j1+=4)j3=j2[j0.charCodeAt(j1)],j4=j2[j0.charCodeAt(j1+1)],j5=j2[j0.charCodeAt(j1+2)],j6=j2[j0.charCodeAt(j1+3)],j11[j9++]=j3<<2|j4>>4,j11[j9++]=(15&j4)<<4|j5>>2,j11[j9++]=(3&j5)<<6|63&j6;return j10;};}();},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__160__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__161__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__162__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__163__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__164__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__165__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__166__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__167__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__168__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__169__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__170__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__171__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__172__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__173__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__174__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__175__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__176__;},function(j0,j1,j2){"use strict";j0.exports=function(j0,j1,j2,j3){for(var j4=65535&j0|0,j5=j0>>>16&65535|0,j6=0;0!==j2;){j2-=j6=j2>2e3?2e3:j2;do{j5=j5+(j4=j4+j1[j3++]|0)|0;}while(--j6);j4%=65521,j5%=65521;}return j4|j5<<16|0;};},function(j0,j1,j2){"use strict";var j3=function(){for(var j0,j1=[],j2=0;j2<256;j2++){j0=j2;for(var j3=0;j3<8;j3++)j0=1&j0?3988292384^j0>>>1:j0>>>1;j1[j2]=j0;}return j1;}();j0.exports=function(j0,j1,j2,j4){var j5=j3,j6=j4+j2;j0^=-1;for(var j7=j4;j7<j6;j7++)j0=j0>>>8^j5[255&(j0^j1[j7])];return-1^j0;};},function(j0,j1,j2){"use strict";var j3=j2(20),j4=!0,j5=!0;try{String.fromCharCode.apply(null,[0]);}catch(j0){j4=!1;}try{String.fromCharCode.apply(null,new Uint8Array(1));}catch(j0){j5=!1;}for(var j6=new j3.Buf8(256),j7=0;j7<256;j7++)j6[j7]=j7>=252?6:j7>=248?5:j7>=240?4:j7>=224?3:j7>=192?2:1;function j8(j0,j1){if(j1<65534&&(j0.subarray&&j5||!j0.subarray&&j4))return String.fromCharCode.apply(null,j3.shrinkBuf(j0,j1));for(var j2="",j6=0;j6<j1;j6++)j2+=String.fromCharCode(j0[j6]);return j2;}j6[254]=j6[254]=1,j1.string2buf=function(j0){var j1,j2,j4,j5,j6,j7=j0.length,j8=0;for(j5=0;j5<j7;j5++)55296==(64512&(j2=j0.charCodeAt(j5)))&&j5+1<j7&&56320==(64512&(j4=j0.charCodeAt(j5+1)))&&(j2=65536+(j2-55296<<10)+(j4-56320),j5++),j8+=j2<128?1:j2<2048?2:j2<65536?3:4;for(j1=new j3.Buf8(j8),j6=0,j5=0;j6<j8;j5++)55296==(64512&(j2=j0.charCodeAt(j5)))&&j5+1<j7&&56320==(64512&(j4=j0.charCodeAt(j5+1)))&&(j2=65536+(j2-55296<<10)+(j4-56320),j5++),j2<128?j1[j6++]=j2:j2<2048?(j1[j6++]=192|j2>>>6,j1[j6++]=128|63&j2):j2<65536?(j1[j6++]=224|j2>>>12,j1[j6++]=128|j2>>>6&63,j1[j6++]=128|63&j2):(j1[j6++]=240|j2>>>18,j1[j6++]=128|j2>>>12&63,j1[j6++]=128|j2>>>6&63,j1[j6++]=128|63&j2);return j1;},j1.buf2binstring=function(j0){return j8(j0,j0.length);},j1.binstring2buf=function(j0){for(var j1=new j3.Buf8(j0.length),j2=0,j4=j1.length;j2<j4;j2++)j1[j2]=j0.charCodeAt(j2);return j1;},j1.buf2string=function(j0,j1){var j2,j3,j4,j5,j7=j1||j0.length,j9=new Array(2*j7);for(j3=0,j2=0;j2<j7;)if((j4=j0[j2++])<128)j9[j3++]=j4;else if((j5=j6[j4])>4)j9[j3++]=65533,j2+=j5-1;else{for(j4&=2===j5?31:3===j5?15:7;j5>1&&j2<j7;)j4=j4<<6|63&j0[j2++],j5--;j5>1?j9[j3++]=65533:j4<65536?j9[j3++]=j4:(j4-=65536,j9[j3++]=55296|j4>>10&1023,j9[j3++]=56320|1023&j4);}return j8(j9,j3);},j1.utf8border=function(j0,j1){var j2;for((j1=j1||j0.length)>j0.length&&(j1=j0.length),j2=j1-1;j2>=0&&128==(192&j0[j2]);)j2--;return j2<0||0===j2?j1:j2+j6[j0[j2]]>j1?j2:j1;};},function(j0,j1,j2){"use strict";j0.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0;};},function(j0,j1,j2){"use strict";j0.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};},function(j0,j1,j2){"use strict";(function(j0){Object.defineProperty(j1,"__esModule",{value:!0}),j1.WfcImpl=void 0;var j3=j59(j2(62)),j4=j59(j2(107)),j5=j59(j2(77)),j6=j59(j2(210)),j7=j59(j2(213)),j8=j59(j2(120)),j9=j59(j2(80)),j10=j59(j2(81)),j11=j59(j2(121)),j12=j59(j2(122)),j13=j59(j2(55)),j14=j59(j2(123)),j15=j59(j2(82)),j16=j2(125),j17=j2(29),j18=j2(258),j19=j59(j2(160)),j20=j59(j2(161)),j21=j59(j2(371)),j22=j59(j2(162)),j23=j59(j2(163)),j24=j59(j2(372)),j25=j59(j2(164)),j26=j59(j2(165)),j27=j59(j2(373)),j28=j59(j2(166)),j29=j59(j2(167)),j30=j59(j2(374)),j31=j59(j2(168)),j32=j59(j2(375)),j33=j59(j2(169)),j34=j59(j2(170)),j35=j59(j2(171)),j36=j59(j2(172)),j37=j59(j2(173)),j38=j59(j2(376)),j39=j2(377),j40=j59(j2(378)),j41=j59(j2(384)),j42=j59(j2(385)),j43=j59(j2(92)),j44=j59(j2(386)),j45=j59(j2(395)),j46=j59(j2(175)),j47=j59(j2(396)),j48=j59(j2(176)),j49=j59(j2(174)),j50=j59(j2(397)),j51=j59(j2(398)),j52=j2(399),j53=j59(j2(400)),j54=j59(j2(401)),j55=j59(j2(402)),j56=j59(j2(403)),j57=j59(j2(404)),j58=j59(j2(405));function j59(j0){return j0&&j0.__esModule?j0:{default:j0};}var j60=j1.WfcImpl=function(){function j1(){var j0=this;(0,j13.default)(this,j1),this.initialized=!1,this.connectionStatus=0,this.userId="",this.token="",this.clientId="",this.chatRoomMsgHead=j15.default.ZERO,this.privateSecret="",this.store=new j40.default(this),this.isReceiptEnable=!1,this.isUserOnlineStateEnable=!1,this.serverConfigs={},this.isClearGroupMsgWhenKickoff=!1,this.isGlobalDisableDraftSync=!1,this.isConnecting=!1,this.isUserDisconnected=!1,this.isPullingSetting=!1,this.isPullingMsg=!1,this.isPullingChatroomMsg=!1,this.isPullingRecv=!1,this.isPullingRead=!1,this.isPullingGroupMsg=!1,this.isConversationTargetPreloaded=!1,this.isFriendPreloaded=!1,this.isFriendRequestPreloaded=!1,this.settingHead=j15.default.ZERO,this.friendHead=j15.default.ZERO,this.friendRequestHead=j15.default.ZERO,this.recvHead=j15.default.ZERO,this.readHead=j15.default.ZERO,this.groupHead=j15.default.ZERO,this.deltaTime=0,this.lastActiveTime=0,this.backupAddressStrategy=1,this.backupHost="",this.backupPort=80,this.pendingMN=!1,this.pendingGMN=!1,this.uploadingMap=new j12.default(),this.voipAnswerMsgMap=new j12.default(),this.voipByeMsgMap=new j12.default(),this._callbackOrLoadFromRemoteMessages=function(j2,j3,j4){var j5=[],j6=[],j7=!0,j8=!1,j9=void 0;try{for(var j10,j12=(0,j11.default)(j2);!(j7=(j10=j12.next()).done);j7=!0){var j13=j10.value;j13.messageContent.notLoaded?j5.push(j13.messageUid):j6.push(j13);}}catch(j0){j8=!0,j9=j0;}finally{try{!j7&&j12.return&&j12.return();}finally{if(j8)throw j9;}}if(j5.length>0){var j14=j39.INT64ListBuf.create();j14.id=j5,console.log("loadSuperGroupMessages request",j14),j0._publish("MGS",j39.INT64ListBuf.encode(j14).finish(),function(){var j2=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j5=arguments[1];if(0===j2&&j5){var j7=j39.MessageList.decode(j5);j0.log("loadSuperGroupMessages result data",j7),j7&&j7.message&&(j7.message.forEach(function(j2){if(!(j1.pcNotSupportMessageTypes.indexOf(j2.content.type)>-1)){var j3=j21.default.fromProtoMessage(j2),j4=j0.store.getMessageByUid(j3.messageUid);j3.messageId=j4.messageId,j0.store.updateMessageById(j3),j6.push(j3);}}),j6.sort(function(j0,j1){return(0,j16.eq)(j0.timestamp,j1.timestamp)?(0,j16.compare)(j0.messageUid,j1.messageUid):(0,j16.compare)(j0.timestamp,j1.timestamp);})),j3&&j3(j6);}else j4&&j4(0!==j2?j2:-1);});}else j3&&j3(j2);};}var j2,j59;return(0,j14.default)(j1,[{key:"resetMqtt",value:function(){var j0=this;this.mqttClientInstance&&(this.mqttClientInstance.removeAllListeners(),this.mqttClientInstance.end(!0,{},function(){j0.log("mqtt client ended");}),this.mqttClientInstance=null);}},{key:"reset",value:function(){this.resetMqtt(),this.connectionStatus=j41.default.ConnectionStatusLogout,this.isConnecting=!1,this.userId="",this.token="",this.clientId="",this.msgHead=j15.default.ZERO,this.privateSecret="",this.store=new j40.default(this),this.isReceiptEnable=!1,this.isGlobalDisableDraftSync=!1,this.isConnecting=!1,this.isUserDisconnected=!1,this.isPullingSetting=!1,this.isPullingRecv=!1,this.isPullingRead=!1,this.isConversationTargetPreloaded=!1,this.isFriendPreloaded=!1,this.isFriendRequestPreloaded=!1,this.settingHead=j15.default.ZERO,this.friendHead=j15.default.ZERO,this.friendRequestHead=j15.default.ZERO,this.recvHead=j15.default.ZERO,this.readHead=j15.default.ZERO,this.groupHead=j15.default.ZERO,this.deltaTime=0,this.lastActiveTime=0,this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=0);}},{key:"onConnectionChanged",value:function(j0){var j1=this;if(this.connectionStatus!==j0)if(j0===j41.default.ConnectionStatusConnected&&this._pullUnreadMessages(),j43.default.ENABLE_INFO_PERSISTENCE&&(!j43.default.MESSAGE_ROAMING&&j0===j41.default.ConnectionStatusConnected||j43.default.MESSAGE_ROAMING&&j0===j41.default.ConnectionStatusReceiveing)&&this.store.loadPersistGroups(),j0===j41.default.ConnectionStatusConnected){var j2=this.store.friends.size+this.store.conversationInfos.length-this.store.users.size,j3=0;j3+=1*Math.round(j2/2e3),j3+=1*Math.round(this.store.groups.size/10),setTimeout(function(){console.log("connection status changed to status in ",j3),j1.connectionStatus=j0,j1.eventEmitter.emit(j38.default.ConnectionStatusChanged,j0);},1e3*j3);}else this.log("connection status changed",j0),this.connectionStatus=j0,this.eventEmitter.emit(j38.default.ConnectionStatusChanged,j0);}},{key:"_isGroupNotificationTargetsIncludeCurrentUser",value:function(j0){}},{key:"onConferenceEvent",value:function(j0){this.eventEmitter.emit(j38.default.ConferenceEvent,j0);}},{key:"onReceiveMessage",value:function(j0){var j2=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j3=this,j4=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],j5=arguments.length>3&&void 0!==arguments[3]&&arguments[3],j6=[],j7=[];this.log("onReceiveMessage length: "+j0.length+", pullSettings: "+j2+" saveToStore "+j4),j0.forEach(function(j8,j9){if(!(j1.pcNotSupportMessageTypes.indexOf(j8.content.type)>-1)){var j10=j21.default.fromProtoMessage(j8),j11=j9<j0.length-1;if(j10){if(81===j10.content.type){j3.log("delete",j10.content,j15.default.fromValue(atob(j10.content.binaryContent)),j15.default.fromValue(atob(j10.content.binaryContent)).toString());var j12=j15.default.fromValue(atob(j10.content.binaryContent)),j13=j3.store.getMessageByUid(j12);return void(j13&&j13.messageId>0&&(j3.store.deleteMessageByUid(j12),j3.onRemoteMessageDeleted(j13.messageUid)));}var j14=j19.default.getMessageContentPersitFlag(j10.content.type);if(-1===j14&&(j14=j10.content.persistFlag),j10.messageContent.type===j22.default.RecallMessage_Notification&&j3.onRecallMessage(j10.messageContent.operatorId,j10.messageContent.messageUid),[j22.default.VOIP_CONTENT_TYPE_START,j22.default.VOIP_CONTENT_TYPE_ACCEPT,j22.default.VOIP_CONTENT_TYPE_END].indexOf(j10.messageContent.type)>=0&&j3.updateCallStartMessage(j10),!j4||j14!==j25.default.Persist&&j14!==j25.default.Persist_And_Count){if(j43.default.ENABLE_GENERATE_CONVERSATION_FOR_TRANSPARENT_MESSAGE&&j3.store.genAndSaveDefaultConversationInfo(j10.conversation),j43.default.ENABLE_ROAMING_TRANSPARENT_MESSAGE_RECEIVING_NOTIFICATION&&j3.eventEmitter.emit(j38.default.ReceiveMessage,j10,j11),j10.messageContent instanceof j53.default&&j10.from===j3.userId){var j16=j10.messageContent,j17=j10.conversation;j3.store.setLastReceivedMessageUnread(j17,j16.messageUid,j16.timestamp);}j5||j2||j3.eventEmitter.emit(j38.default.ReceiveMessage,j10,j11);}else j10.conversation.type===j29.default.ChatRoom?j10.messageId=j3.store.genChatRoomMessageId():j10.messageId=j3.store.genNormalMessageId(),j3.store.saveMessage(j10),j3.store.updateConversationLastMessage(j10)&&j3.eventEmitter.emit(j38.default.ConversationInfoUpdate,j3.store.getConversationInfo(j10.conversation)),j5||j2&&!j43.default.ENABLE_ROAMING_MESSAGE_RECEIVING_NOTIFICATION||j3.eventEmitter.emit(j38.default.ReceiveMessage,j10,j11);j3._handleGroupNotificationMessage(j10,j11,j6,j7);}}}),this.log("needUpdateGroups "+j6.length+", needUpdateGroupMembers "+j7.length),this._reloadGroupInfosFromRemote.apply(this,j6),j7.slice(0,20).forEach(function(j0){j3._reloadGroupMembersFromRemote(j0,j3.store.getGroupMemberMaxDt(j0));});}},{key:"_handleGroupNotificationMessage",value:function(j0,j1,j2,j3){var j4=this,j5=[j22.default.CreateGroup_Notification,j22.default.AddGroupMember_Notification,j22.default.KickOffGroupMember_Notification,j22.default.TransferGroupOwner_Notification,j22.default.ModifyGroupExtra_Notification,j22.default.ModifyGroupAlias_Notification];if(j5.indexOf(j0.content.type)>-1)if(j0.content.type!==j22.default.KickOffGroupMember_Notification&&(j2.push(j0.conversation.target),j3.push(j0.conversation.target)),j0.content.type===j22.default.KickOffGroupMember_Notification){var j6=j0.messageContent.kickedMembers.find(function(j0){return j0===j4.getUserId();});this.log("kickoff",j0.conversation.target,this.isClearGroupMsgWhenKickoff,j6),j6&&(this.store.removeGroupAndMembers(j0.conversation.target,!this.isClearGroupMsgWhenKickoff),this.isClearGroupMsgWhenKickoff&&this.store.removeConversation(j0.conversation,!0));}else j0.content.type===j22.default.AddGroupMember_Notification&&(this.isClearGroupMsgWhenKickoff||this.store.clearConversationMessagesBeforeMessageUid(j0.conversation,j0.messageUid));if((j5=[j22.default.SetGroupManager_Notification,j22.default.MuteGroupMember_Notification,j22.default.AllowGroupMember_Notification,j22.default.ModifyGroupMemberExtra_Notification]).indexOf(j0.content.type)>-1&&j3.push(j0.conversation.target),(j5=[j22.default.ChangeGroupName_Notification,j22.default.ChangeGroupPortrait_Notification,j22.default.MuteGroup_Notification,j22.default.ChangeJoinType_Notification,j22.default.ChangePrivateChat_Notification,j22.default.ChangeSearchable_Notification,j22.default.ModifyGroupExtra_Notification]).indexOf(j0.content.type)>-1&&j2.push(j0.conversation.target),(j5=[j22.default.QuitGroup_Notification]).indexOf(j0.content.type)>-1){if(j0.from===this.getUserId())return this.store.removeGroupAndMembers(j0.conversation.target),this.store.removeGroupSettings(j0.conversation.target),this.store.removeFavGroup(j0.conversation.target),void this.store.removeConversation(j0.conversation,!0);j2.push(j0.conversation.target),j3.push(j0.conversation.target);}if((j5=[j22.default.DismissGroup_Notification]).indexOf(j0.content.type)>-1){this.store.removeGroupAndMembers(j0.conversation.target,this.serverConfigs.isKeepMsgAfterDismiss),this.store.removeGroupSettings(j0.conversation.target),this.store.removeFavGroup(j0.conversation.target),this.serverConfigs.isKeepMsgAfterDismiss||this.store.removeConversation(j0.conversation,!0);var j7=j2.filter(function(j1){return j1!==j0.conversation.target;}),j8=j3.filter(function(j1){return j1!==j0.conversation.target;});j2.length=0,j2.push.apply(j2,(0,j10.default)(j7)),j3.length=0,j3.push.apply(j3,(0,j10.default)(j8));}}},{key:"updateCallStartMessage",value:function(j0){var j1=void 0,j2=j0.messageContent.callId;if(j0.messageContent.type===j22.default.VOIP_CONTENT_TYPE_END?(this.voipByeMsgMap.set(j2,j0),j1=this.store.getCallStartMessage(j2)):j0.messageContent.type===j22.default.VOIP_CONTENT_TYPE_ACCEPT?(this.voipAnswerMsgMap.set(j2,j0),j1=this.store.getCallStartMessage(j2)):j1=j0,j1){var j3=this.voipAnswerMsgMap.get(j2);j3&&(j1.messageContent.connectTime=j3.timestamp,this.voipAnswerMsgMap.delete(j2));var j4=this.voipByeMsgMap.get(j2);j4&&(j1.messageContent.endTime=j4.timestamp,j1.messageContent.status=j4.messageContent.reason,this.voipByeMsgMap.delete(j2));}}},{key:"onGroupInfoUpdate",value:function(j0){}},{key:"onChannelInfoUpdate",value:function(j0){}},{key:"onSettingUpdate",value:function(j0){this.eventEmitter.emit(j38.default.SettingUpdate);}},{key:"onRecallMessage",value:function(j0,j1){var j2=this.store.getMessageByUid(j1);if(j2&&0!==j2.messageId){var j3=j2.messageContent;if(j0===this.userId){var j4={};j4.s=j2.from,j4.ts=(0,j16.numberValue)(j2.timestamp);var j5=j2.content;j5&&j5.hasOwnProperty("type")||(j5=j2.messageContent.encode()),j4.t=j5.type,j4.sc=j5.searchableContent?j5.searchableContent:"",j4.c=j5.content?j5.content:"",j4.e=j5.extra?j5.content:"",j2.extra=(0,j9.default)(j4);}var j6=new j24.default(j0,j1);j6.fromSelf=!0,j6.setExtra(j2.extra),j2.messageContent=j6;var j7=this.getConversationInfo(j2.conversation);1===j2.direction&&j19.default.getMessageContentFlag(j3.type)===j25.default.Persist_And_Count&&(j2.status===j23.default.Unread?j7.unreadCount.unread-=1:j2.status===j23.default.Mentioned?j7.unreadCount.unreadMention-=1:j2.status===j23.default.AllMentioned&&(j7.unreadCount.unreadMentionAll-=1)),j19.default.getMessageContentFlag(j6.type)===j25.default.No_Persist?this.store.deleteMessageByUid(j1):this.store.updateMessageById(j2),this.eventEmitter.emit(j38.default.RecallMessage,j0,j1);}}},{key:"onRemoteMessageDeleted",value:function(j0){this.log("onRemoteMessageDeleted",j0),this.store.deleteMessageByUid(j0),this.eventEmitter.emit(j38.default.MessageDeleted,j0);}},{key:"onMessageDeleted",value:function(j0){this.log("onMessageDeleted",j0),this.eventEmitter.emit(j38.default.DeleteMessage,j0);}},{key:"onUserInfoUpdate",value:function(j0){var j1=this;this.log("userInfo update, ids",j0),JSON.parse(j0).map(function(j0){j1._reloadUserInfosFromRemote([j0]);});}},{key:"onFriendListUpdate",value:function(j0){this.log("friendList update, ids",j0),this.eventEmitter.emit(j38.default.FriendListUpdate,j0);}},{key:"onFriendRequestUpdate",value:function(j0){this.eventEmitter.emit(j38.default.FriendRequestUpdate,j0);}},{key:"registerMessageContent",value:function(j0,j1,j2,j3){j19.default.registerMessageContent(j0,j1,j2,j3);}},{key:"getHost",value:function(){return(0,j18.host)();}},{key:"getClientId",value:function(){if(""===this.clientId)switch(j43.default.CLIENT_ID_STRATEGY){case 0:default:this.clientId=this.uuid();break;case 1:this.clientId=sessionStorage.getItem("clientId"),this.clientId||(this.clientId=this.uuid(),sessionStorage.setItem("clientId",this.clientId));break;case 2:this.clientId=localStorage.getItem("clientId"),this.clientId||(this.clientId=this.uuid(),localStorage.setItem("clientId",this.clientId));}return this.log("clientId",this.clientId),this.clientId;}},{key:"getEncodedClientId",value:function(){var j0=this.getClientId();return(0,j17.AESEncrypt)(j0,"");}},{key:"encodeData",value:function(j0){return(0,j17.AESEncrypt)(j0,this.privateSecret);}},{key:"decodeData",value:function(j0){return this._Utf8ArrayToStr((0,j17.AESDecrypt)(j0,this.privateSecret,!1));}},{key:"_Utf8ArrayToStr",value:function(j0){var j1,j2,j3,j4,j5,j6;for(j1="",j3=j0.length,j2=0;j2<j3;)switch((j4=j0[j2++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:j1+=String.fromCharCode(j4);break;case 12:case 13:j5=j0[j2++],j1+=String.fromCharCode((31&j4)<<6|63&j5);break;case 14:j5=j0[j2++],j6=j0[j2++],j1+=String.fromCharCode((15&j4)<<12|(63&j5)<<6|(63&j6)<<0);}return j1;}},{key:"uuid",value:function(){for(var j0=[],j1="0123456789abcdef",j2=0;j2<36;j2++)j0[j2]=j1.substr(Math.floor(16*Math.random()),1);return j0[14]="4",j0[19]=j1.substr(3&j0[19]|8,1),j0[8]=j0[13]=j0[18]=j0[23]="-",j0.join("");}},{key:"init",value:function(j0){this.initialized=!0,j0&&j0.length>0&&j43.default.config(j0[0]);}},{key:"onForeground",value:function(){if(this.log("onForeground"),this.connectionStatus!==j41.default.ConnectionStatusConnected)this._reconnect();else{var j0=new Date().getTime(),j1=j43.default.KEEP_ALIVE_TIMEOUT>j43.default.KEEP_ALIVE_INTERNAL?j43.default.KEEP_ALIVE_TIMEOUT:j43.default.KEEP_ALIVE_INTERNAL;j0-this.lastActiveTime>1e3*j1?(this.log("keep alive timeout, reconnect..."),this._reconnect(!0)):this.log("already connected");}}},{key:"connect",value:function(j0,j2){var j3=this;this.initialized?(this.log("connect",j1.version,this.getHost(),j0,j2),this.isUserDisconnected=!1,j0&&j2?"string"==typeof j0&&"string"==typeof j2?!this.mqttClientInstance||!this.isConnecting&&this.connectionStatus!==j41.default.ConnectionStatusConnected||this.userId!==j0||this.token!==j2?(""!==this.userId&&this.userId!==j0&&this.reset(),this.onConnectionChanged(j41.default.ConnectionStatusConnecting),this.reconnectTimer||(this.reconnectTimer=setInterval(function(){j3.connectionStatus===j41.default.ConnectionStatusUnconnected&&""!==j3.userId&&""!==j3.token&&(j3.isConnecting||(j3.log("reconnect",j3.userId,j3.clientId,j3.token,new Date().valueOf()),j3.resetMqtt(),j3.connect(j3.userId,j3.token)));},j1.connectionTimeout)),this.userId=j0,this.token=j2,this.isConnecting=!0,(0,j18.connect)(j0,this.getClientId(),j2,function(j0,j1,j2,j4,j5){if(j3.log("connect/route error",j0,new Date().valueOf()),j3.isConnecting=!1,-1!==j0||j3.connectionStatus!==j41.default.ConnectionStatusConnected||!j3.mqttClientInstance){if(0!==j0){j3.isConnecting=!1;var j6=j41.default.ConnectionStatusUnconnected;return j0===j45.default.kEcServerTokenIncorrect?j6=j41.default.ConnectionStatusTokenIncorrect:j0===j45.default.kEcServerUserIsBlocked?j6=j41.default.ConnectionStatusRejected:j0===j45.default.kEcServerSecrectKeyMismatch?j6=j41.default.ConnectionStatusSecretKeyMismatch:j0===j45.default.kConnectionStatusKickedOff?j6=j41.default.ConnectionStatusKickedOff:j0===j45.default.kEcServerNotLicensed?j6=j41.default.ConnectionStatusNotLicensed:j0===j45.default.kEcServerTimeInconsistent?j6=j41.default.ConnectionStatusTimeInconsistent:j0===j45.default.kEcWebsocketNotConfigured&&(j3.error("IM 服务 websocket 配置不正确，请参考：https://docs.wildfirechat.cn/web/"),j6=j41.default.ConnectionStatusServerDown),j3.onConnectionChanged(j6),void(j1&&(j1.removeAllListeners(),j1.end(!0,{},function(){j3.log("mqtt client ended");})));}j3.mqttClientInstance=j1,j3.privateSecret=j2,j3.serverConfigs=j5||{},j3.isReceiptEnable=j5.isReceiptEnable,j3.isUserOnlineStateEnable=j5.isUserOnlineStateEnable,j3.isClearGroupMsgWhenKickoff=j5.isClearGroupMsgWhenKickoff,j3.isGlobalDisableDraftSync=j5.isGlobalDisableDraftSync,j3.mqttClientInstance.on("connect",function(j0){j3.isConnecting=!1,j3.isPullingMsg=!1,j3.isPullingChatroomMsg=!1,j3.lastActiveTime=new Date().getTime();var j1=j39.ConnectAckPayload.decode(j0.payload);if(j3.log("connect ack",j1,j3.msgHead),j3._pullFriends(j1.friendHead),j3._pullFriendRequest(j1.friendRqHead),j3.msgHead){var j2=j3.settingHead.compare(j1.settingHead)<0;j3._pullMessages(j1.msgHead,0,j2,j1.recvHead,j1.readHead,j1.groupConvHead,!0);}else j43.default.MESSAGE_ROAMING?(j3.msgHead=j15.default.ZERO,j3.log("pull roaming message",j3.msgHead.toString(),j1.msgHead.toString()),j3.onConnectionChanged(j41.default.ConnectionStatusReceiveing),j3._pullMessages(j15.default.MAX_VALUE,0,!0,j1.recvHead,j1.readHead,j1.groupConvHead,!0)):(j3.msgHead=j1.msgHead,j3._pullUserSettings(j1.settingHead));var j5=new Date().getTime();j3.deltaTime=Number(j1.serverTime)-j5-(j5-j4)/2;}),j3.mqttClientInstance.on("reconnect",function(){j3.isConnecting=!1,j3.log("------reconnect--------",j3.clientId);}),j3.mqttClientInstance.on("offline",function(){j3.log("------offline--------"),j3.isConnecting=!1,j3.connectionStatus=j41.default.ConnectionStatusUnconnected,!j3.isUserDisconnected&&j3._reconnect();}),j3.mqttClientInstance.on("close",function(){j3.log("------close--------",j3.clientId),j3.isConnecting=!1,j3.connectionStatus=j41.default.ConnectionStatusUnconnected,!j3.isUserDisconnected&&j3._reconnect();}),j3.mqttClientInstance.on("disconnect",function(){j3.log("------disconnect--------");}),j3.mqttClientInstance.on("error",function(j0){j3.log("------error--------",j0),j3.isConnecting=!1,j3.connectionStatus=j41.default.ConnectionStatusUnconnected,!j3.isUserDisconnected&&j3._reconnect();}),j3.mqttClientInstance.on("pingresp",function(j0){console.log("pingresp",new Date().getTime()),j3.lastActiveTime=new Date().getTime();}),j3.mqttClientInstance.on("message",function(j0,j1,j2){try{if(j3.lastActiveTime=new Date().getTime(),j3.log("on push",j0),"MS"===j0){var j4=j39.Message.decode(j1),j5=[];j5.push(j4),j3.onReceiveMessage(j5,!1,!1);}else if("MN"===j0){var j6=j39.NotifyMessage.decode(j1);j3._pullMessages(j6.head,j6.type,!1,!1,!1,!1,!1,!0);}else if("GMN"===j0){var j7=j39.NotifyGroupMessage.decode(j1);j3._pullGroupConvs(j7.head,j7.target,j7.line,!0);}else if("FN"===j0){if(8===j1.length){var j8=j3._getLongFromBuffer(j1);j3._pullFriends(j8);}}else if("FRN"===j0){if(8===j1.length){var j9=j3._getLongFromBuffer(j1);j3._pullFriendRequest(j9);}}else if("UN"===j0){if(8===j1.length){var j10=j3._getLongFromBuffer(j1);j3._pullUserSettings(j10);}}else if("RMN"===j0){var j11=j39.NotifyRecallMessage.decode(j1);j3.onRecallMessage(j11.fromUser,j11.id);}else if("RCN"===j0){if(8===j1.length){var j12=j3._getLongFromBuffer(j1);j3._pullRecv(j12);}}else if("RDN"===j0){if(8===j1.length){var j13=j3._getLongFromBuffer(j1);j3._pullRead(j13);}}else if("CONFN"===j0){var j14=j39.IDBuf.decode(j1);j3.onConferenceEvent(j14.id);}else"ROFL"===j0?(j3.warn("kicked off，need app relogin"),j3._reconnect(!0)):"UIN"===j0?j3.getUserInfo(j3.userId,!0):"POSN"===j0&&j3._onlineStateNotify(j1);}catch(j0){j3.error(j0);}});}},{backupAddressStrategy:this.backupAddressStrategy,backupHost:this.backupHost,backupPort:this.backupPort})):this.log("connect 0",this.isConnecting,this.connectionStatus,this.userId,this.token):this.error("userId and token must be string type"):this.log("userId or token error")):this.error("连接失败！！连接IM之前必须先调用 wfc.init 进行初始化！");}},{key:"_reconnect",value:function(){var j0=this,j2=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(j2)return this.log("force reconnect"),this.resetMqtt(),void this.connect(this.userId,this.token);this.isConnecting||setTimeout(function(){j0.connectionStatus!==j41.default.ConnectionStatusUnconnected||j0.isConnecting||(j0.resetMqtt(),j0.connect(j0.userId,j0.token));},j1.connectionTimeout);}},{key:"_getLongFromBuffer",value:function(j0){return j15.default.fromBytesBE(j0.slice(0,8));}},{key:"_getStringFromBuffer",value:function(j0){return j0.toString();}},{key:"_pullMessages",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,j2=arguments.length>2&&void 0!==arguments[2]&&arguments[2],j3=arguments[3],j4=arguments[4],j5=arguments[5],j6=this,j7=arguments.length>6&&void 0!==arguments[6]&&arguments[6],j8=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(this.log("to pull user messages",j0,j1,j2),1!==j1){if(j8&&(this.pendingMN=!0),this.isPullingMsg||this.msgHead.compare(j0)>=0&&!this.pendingMN)return this.log("local message is up to date or is pulling",j0,this.msgHead,j2,j3,j4,j7,j8),void(j2||j7?(this._pullUserSettings(j15.default.MAX_VALUE),this.isReceiptEnable&&(this._pullRecv(j3),this._pullRead(j4),j7&&this._syncRead()),this._pullGroupConvs(j5)):this.connectionStatus!==j41.default.ConnectionStatusConnected&&this.onConnectionChanged(j41.default.ConnectionStatusConnected));this.isPullingMsg=!0,this.pendingMN=!1;}else{if(!this.currentChatRoomId)return;if(this.isPullingChatroomMsg||(0,j16.gte)(this.chatRoomMsgHead,j0))return;this.isPullingChatroomMsg=!0;}var j9=j39.PullMessageRequest.encode({id:1!==j1?this.msgHead:this.chatRoomMsgHead,type:j1}).finish();this.log("pull user messages, type: "+j1+", head: "+(0,j16.stringValue)(j0)+", msgHead: "+(0,j16.stringValue)(this.msgHead)+", chatroomMsgHead: "+(0,j16.stringValue)(this.chatRoomMsgHead)),this._publish("MP",j9,function(j0,j8){if(j6.log("pull user messages response",j0),0!==j0||!j8)return j6.log("pull message error",j0),1!==j1?j6.isPullingMsg=!1:j6.isPullingChatroomMsg=!1,void(j2&&j6._pullUserSettings(j6.settingHead));var j9=j39.PullMessageResult.decode(j8);if(0===j1)(0,j16.gt)(j9.current,j6.msgHead)&&(j6.msgHead=j9.current),j6.isPullingMsg=!1,j6.log("pull message result",(0,j16.stringValue)(j9.current),j9.message.length);else if(1===j1){if(j6.log("pull chatroom message result",(0,j16.stringValue)(j9.current),j9.message.length),j6.isPullingChatroomMsg=!1,j9.message.length>0&&j9.message[0].conversation.target!==j6.currentChatRoomId)return void j6.log("user not in chatroom now, drop message");j6.chatRoomMsgHead=j9.current;}j6.onReceiveMessage(j9.message,j2),j6._pullMessages(j9.head,j1,j2,j3,j4,j5,j7);});}},{key:"_pullRecv",value:function(j0){var j1=this;if(this.isReceiptEnable&&j0&&!this.isPullingRecv&&!(this.recvHead.compare(j0)>=0)){this.isPullingRecv=!0;var j2=j39.Version.create();j2.version=this.recvHead;var j3=j39.Version.encode(j2).finish();this.log("pull recv",this.recvHead),this._publish("RCP",j3,function(j0,j2){if(j1.isPullingRecv=!1,0===j0&&j2){var j3=j39.PullDeliveryResult.decode(j2);j1.log("pull recv result",j3),j1.recvHead=j3.current,j1.store.updateDeliveries(j3.delivery);var j4=new j12.default();j3.delivery.forEach(function(j0){j4.set(j0.fromUser,j0.receiveTime);}),j1.eventEmitter.emit(j38.default.MessageReceived,j4),j1._pullRecv(j3.head);}});}}},{key:"_pullRead",value:function(j0){var j1=this;if(!(!j0||this.isPullingRead||this.readHead.compare(j0)>=0)){this.isPullingRead=!0;var j2=j39.Version.create();j2.version=this.readHead;var j3=j39.Version.encode(j2).finish();this.log("pull read",this.readHead),this._publish("RDP",j3,function(j0,j2){if(j1.isPullingRead=!1,0===j0&&j2){var j3=j39.PullReadResult.decode(j2);j1.log("pull read result",j3),j1.readHead=j3.current,j1.store.updateReads(j3.read);var j4=[];j3.read.forEach(function(j0){var j1=new j50.default();j1.userId=j0.fromUser,j1.readTime=j0.readTime,0===j0.conversation.type&&(j0.conversation.target=j0.fromUser),j1.conversation=(0,j8.default)(new j28.default(),j0.conversation),j1.conversation.conversationType=j1.conversation.type,j4.push(j1);}),j1.eventEmitter.emit(j38.default.MessageRead,j4),j1._pullRead(j3.head);}});}}},{key:"_pullGroupConvs",value:function(j0,j1,j2,j3){var j4=this;if(j3||!(0,j16.gte)(this.groupHead,j0))if(this.isPullingGroupMsg)this.pendingGMN=!0;else{this.isPullingGroupMsg=!0;var j5=j39.PullGroupConvRequest.create();j5.id=this.groupHead,j1&&(j5.target=j1,j5.line=j2,j5.messageId=this.store.getGroupMessageHead(j1,j2)),j5=j39.PullGroupConvRequest.encode(j5).finish(),this.log("pull groupConvs",this.groupHead),this._publish("GCP",j5,function(j0,j3){if(j4.isPullingGroupMsg=!1,0===j0&&j3){var j5=j39.PullGroupConvResult.decode(j3);j4.log("pull groupConvs result",j5),j4._onPullGroupConvSuccess(j1,j2,j5);}});}}},{key:"_onPullGroupConvSuccess",value:function(j0,j1,j2){this.groupHead=j2.current;var j3=!0,j4=!1,j5=void 0;try{for(var j6,j7=(0,j11.default)(j2.conv);!(j3=(j6=j7.next()).done);j3=!0){var j8=j6.value;(0,j16.eq)(this.store.getGroupMessageHead(j8.groupId,j8.line),j15.default.ZERO)&&this.store.clearConversationMessages(new j28.default(j29.default.Group,j8.groupId,j8.line),j15.default.MAX_VALUE),this.store.setGroupMessageServerHead(j8.groupId,j8.line,j8.msgHead);}}catch(j0){j4=!0,j5=j0;}finally{try{!j3&&j7.return&&j7.return();}finally{if(j4)throw j5;}}var j9=j2.groupMessage;if(j0&&(j9.msg.length>0||j9.message.length>0)){var j10=j9.msg,j12=j9.message,j13=this._fillGroupMessage(j9.groupId,j9.line,j12),j14=j10.concat(j13);this._onPullGroupMessages(j14,[j9]);}this.isPullingGroupMsg=!1,this._pullGroupMessages(),this.pendingGMN&&(this.pendingGMN=!1,this._pullGroupConvs(j15.default.MAX_VALUE,"",0,!1));}},{key:"_pullGroupMessages",value:function(){var j0=this;if(!this.isPullingGroupMsg){var j1=this.store.getGroupMessageHeads(),j2=[];if(j1.length>0){var j3=!0,j4=!1,j5=void 0;try{for(var j6,j7=(0,j11.default)(j1);!(j3=(j6=j7.next()).done);j3=!0){var j8=j6.value,j9=j39.PullGroupMessageRequest.create();j9.groupId=j8.target,j9.line=j8.line,j9.id=j8.head,j2.push(j9);}}catch(j0){j4=!0,j5=j0;}finally{try{!j3&&j7.return&&j7.return();}finally{if(j4)throw j5;}}}if(j2.length>0){this.isPullingGroupMsg=!0;var j10=j39.PullGroupMessageRequests.create();j10.request=j2,this.log("_pullGroupMessages",j10,j2),j10=j39.PullGroupMessageRequests.encode(j10).finish(),this._publish("GMP",j10,function(j1,j2){if(j0.isPullingGroupMsg=!1,0===j1&&j2){var j3=j39.PullGroupMessageResults.decode(j2);j0.log("_pullGroupMessages result",j3),j0._onPullGroupMessagesSuccess(j3);}});}}}},{key:"_onPullGroupMessagesSuccess",value:function(j0){if(j0.result.length){var j1=[],j2=!0,j3=!1,j4=void 0;try{for(var j5,j6=(0,j11.default)(j0.result);!(j2=(j5=j6.next()).done);j2=!0){var j7=j5.value,j8=j7.msg,j9=j7.message,j10=this._fillGroupMessage(j7.groupId,j7.line,j9);j1=j1.concat(j8.concat(j10));}}catch(j0){j3=!0,j4=j0;}finally{try{!j2&&j6.return&&j6.return();}finally{if(j3)throw j4;}}this._onPullGroupMessages(j1,j0.result);}this.isPullingGroupMsg=!1,this._pullGroupMessages(),this.pendingGMN&&(this.pendingGMN=!1,this._pullGroupConvs(j15.default.MAX_VALUE,"",0,!1));}},{key:"_onPullGroupMessages",value:function(j0,j1){console.log("_onPullGroupMessages",j0,j1),this.onReceiveMessage(j0,!1,!0,j0.length>50);var j2=!0,j3=!1,j4=void 0;try{for(var j5,j6=(0,j11.default)(j1);!(j2=(j5=j6.next()).done);j2=!0){var j7=j5.value,j8=j29.default.Group+"-"+j7.line+"-"+j7.groupId,j9=this.getUserSetting(j37.default.Conversation_Sync,j8);j9&&(0,j16.gt)(j9,0),this.store.setGroupMessageHead(j7.groupId,j7.line,j7.current),this.store.setGroupMessageServerHead(j7.groupId,j7.line,j7.head);}}catch(j0){j3=!0,j4=j0;}finally{try{!j2&&j6.return&&j6.return();}finally{if(j3)throw j4;}}}},{key:"_parseGroupMessageFlag",value:function(j0){return{contentType:j0>>8&2047,persistFlag:j0>>4&15,mentionedType:j0>>1&7,send:(1&j0)>0};}},{key:"_messageId2Time",value:function(j0){var j1=j0.shiftRight(21);return j1=j1.add(1514736e6);}},{key:"_fillGroupMessage",value:function(j0,j1,j2){var j3=[],j4=!0,j5=!1,j6=void 0;try{for(var j7,j8=(0,j11.default)(j2);!(j4=(j7=j8.next()).done);j4=!0){var j9=j7.value,j10=j39.Message.create(),j12=this._parseGroupMessageFlag(j9.flag);j10.messageId=j9.messageId,j10.conversation=j39.Conversation.create(),j10.conversation.type=j29.default.Group,j10.conversation.target=j0,j10.conversation.line=j1,j10.content=j39.MessageContent.create(),j10.content.type=j12.contentType,j10.content.persistFlag=j12.persistFlag,j10.content.mentionedType=j12.mentionedType,j10.content.notLoaded=!0,j10.content.mentionedType>0&&2!==j10.content.mentionedType&&j10.content.mentionedTarget.push(this.userId),j10.fromUser=j9.fromUser,j10.serverTimestamp=this._messageId2Time(j9.messageId),j3.push(j10);}}catch(j0){j5=!0,j6=j0;}finally{try{!j4&&j8.return&&j8.return();}finally{if(j5)throw j6;}}return j3;}},{key:"isReceiptEnabled",value:function(){return this.isReceiptEnable;}},{key:"getConversationDelivery",value:function(j0){return this.store.getConversationDelivery(j0);}},{key:"getConversationRead",value:function(j0){return this.store.getConversationRead(j0);}},{key:"setDeviceToken",value:function(j0,j1){var j2=this;if(j0>5&&j1){var j3=j39.UploadDeviceTokenRequest.create();j3.pushType=j0,j3.appName="wfc.web",j3.deviceToken=j1,j3.platform=5,this._publish("UDT",j39.UploadDeviceTokenRequest.encode(j3).finish(),function(j0,j1){j0||j2.log("setDeviceToken error",j0);});}else this.error("setDeviceToken error, invalid parameters",j0,j1);}},{key:"getAuthCode",value:function(j0,j1,j2,j3,j4){var j5=j39.AuthCodeRequest.create();j5.targetId=j0,j5.type=j1,j5.host=j2,this._publish("ATR",j39.AuthCodeRequest.encode(j5).finish(),function(j0,j1){if(0===j0){var j2=null;if(j1)j2=j39.IDBuf.decode(j1).id;j3&&j3(j2);}else j4&&j4(j0);});}},{key:"_pullUnreadMessages",value:(j59=(0,j7.default)(j6.default.mark(function j0(){var j1,j2,j3,j4,j5;return j6.default.wrap(function(j0){for(;;)switch(j0.prev=j0.next){case 0:j1=this.getConversationList([0,1],[0]),j2=j43.default.MAX_TO_LOAD_UNREAD_MESSAGE_CONVERSATION_COUNT?j43.default.MAX_TO_LOAD_UNREAD_MESSAGE_CONVERSATION_COUNT:200,j3=0;case 3:if(!(j3<j1.length&&j3<j2)){j0.next=19;break;}return j4=j1[j3].conversation,(j5=this.store.getConversationOldestMessage(j4))||(j5={timestamp:j15.default.MAX_VALUE,messageUid:j15.default.MAX_VALUE}),j0.next=9,this._pullConversationUnreadMessages(j4,j5);case 9:j5=j0.sent;case 10:if(!j5){j0.next=16;break;}return j0.next=13,this._pullConversationUnreadMessages(j4,j5);case 13:j5=j0.sent,j0.next=10;break;case 16:j3++,j0.next=3;break;case 19:case"end":return j0.stop();}},j0,this);})),function(){return j59.apply(this,arguments);})},{key:"_pullConversationUnreadMessages",value:(j2=(0,j7.default)(j6.default.mark(function j0(j1,j2){var j3,j4,j7,j8,j9=this;return j6.default.wrap(function(j0){for(;;)switch(j0.prev=j0.next){case 0:if(!(j3=j43.default.MAX_TO_LOAD_UNREAD_COUNT_PER_CONVERSATION)){j0.next=6;break;}if(!(this.store.getConversationMessages(j1).length>j3)){j0.next=6;break;}return console.log("Up to "+j3+" unread messages can be loaded.",j1),j0.abrupt("return",null);case 6:return j4=j1.type+"-"+j1.line+"-"+j1.target,j7=this.getUserSetting(j37.default.Conversation_Sync,j4),this.getUserSetting(j37.default.ConversationSilent,j4),j8=new j5.default(function(j0,j3){!j7||(0,j16.gt)(j7.value,0)&&(0,j16.gt)(j2.timestamp,j7.value)?j9.loadRemoteMessages(j1,[],j2.messageUid,100,function(j3){console.log("load conversation unread msgs",j4,(0,j16.stringValue)(j2.messageUid),j3.length),j9.store.updateConversationUnreadStatus(j1,j7?j7.value:0),j3.length>0?j0(j3[0]):j0(null);},function(j1){j0(null);},!0):j0(null);}),j0.abrupt("return",j8);case 11:case"end":return j0.stop();}},j0,this);})),function(j0,j1){return j2.apply(this,arguments);})},{key:"_pullUserSettings",value:function(j0){var j1=this;if(this.log("pull user setting...",j0),!this.isPullingSetting)if(this.settingHead.compare(j15.default.ZERO)>0&&this.settingHead.compare(j0)>=0)this.connectionStatus!==j41.default.ConnectionStatusConnected&&this.onConnectionChanged(j41.default.ConnectionStatusConnected);else{this.isPullingSetting=!0;var j2=j39.Version.create();j2.version=this.settingHead;var j3=j39.Version.encode(j2).finish();this._publish("UG",j3,function(j2,j3){if(j1.log("pull user setting response"),j1.isPullingSetting=!1,0===j2&&j3){var j4=j39.GetUserSettingResult.decode(j3),j5=j1.settingHead;j4.entry.length>0?j4.entry.forEach(function(j0){j5=(0,j16.gt)(j0.updateDt,j5)?j0.updateDt:j5;}):j5=j0,j1.store.updateUserSettings(j4.entry),j1._preloadConversationTargetInfos(),j1.onSettingUpdate(j4.entry),j1.settingHead=j5,(0,j16.gt)(j0,j5)?j1._pullUserSettings(j0):j1.connectionStatus!==j41.default.ConnectionStatusConnected&&j1.onConnectionChanged(j41.default.ConnectionStatusConnected);}else j1.connectionStatus!==j41.default.ConnectionStatusConnected&&(0===j2?j1.onConnectionChanged(j41.default.ConnectionStatusConnected):j1.onConnectionChanged(j41.default.ConnectionStatusUnconnected),j1.log("pull user setting error",j2));});}}},{key:"_preloadConversationTargetInfos",value:function(){if(!this.isConversationTargetPreloaded){this.isConversationTargetPreloaded=!0;var j0=this.store._getConversationInfos(),j1=[],j2=new j4.default();j0.forEach(function(j0){j0.conversation.type===j29.default.Single?j2.add(j0.conversation.target):j0.conversation.type===j29.default.Group&&j1.push(j0.conversation.target),j0.lastMessage&&j0.lastMessage.from&&j2.add(j0.lastMessage.from);}),j2.add(this.getUserId()),this.getGroupInfos(j1),this.getUserInfos((0,j3.default)(j2));}}},{key:"_preloadFiendsUserInfo",value:function(){if(!this.isFriendPreloaded){this.isFriendPreloaded=!0;var j0=this.store.getFriendIds();this.getUserInfos(j0);}}},{key:"_preloadFirendRequsetUserInfo",value:function(){this.isFriendRequestPreloaded;}},{key:"_updateUserSetting",value:function(j0,j1,j2,j3,j4){var j5=this,j6=j39.ModifyUserSettingReq.create();j6.scope=j0,j6.key=j1,j6.value=j2+"";var j7=j39.ModifyUserSettingReq.encode(j6).finish();this._publish("UP",j7,function(j6,j7){if(0===j6){var j8=new j42.default();j8.scope=j0,j8.key=j1,j8.value=j2,j8.updateDt=new Date().getTime(),j5.store.updateUserSettings([j8]),j3&&j3();}else j4&&j4(j6);});}},{key:"_pullFriends",value:function(j0){var j1=this;if(this.friendHead.compare(j0)>=0)return 0;var j2=j39.Version.create();j2.version=this.friendHead;var j3=j39.Version.encode(j2).finish();this._publish("FP",j3,function(j2,j3){if(0===j2&&j3){var j4=j39.GetFriendsResult.decode(j3);j1.log("fr",j4);var j5=[],j6=0;j4.entry.map(function(j0){0===j0.state&&j5.push(j0.uid),j1.store.insertFriend((0,j8.default)(new j46.default(),j0)),j6=(0,j16.gt)(j0.updateDt,j6)?j0.updateDt:j6;}),j1.friendHead=j6,(0,j16.gt)(j0,j1.friendHead)&&j1._pullFriends(j0),j1._preloadFiendsUserInfo(),j1.onFriendListUpdate(j5);}else j1.log("pull friend error",j2);});}},{key:"_pullFriendRequest",value:function(j0){if(this.log("_pullFriendRequest",j0),!(this.friendRequestHead.compare(j0)>=0)){var j1=this.store.getFriendRequestMaxDt();this.loadFriendRequestFromRemote(j1);}}},{key:"disconnect",value:function(){this.onConnectionChanged(j41.default.ConnectionStatusLogout),this.reset(),this.isUserDisconnected=!0;}},{key:"getProtoRevision",value:function(){return j1.version;}},{key:"getUserId",value:function(){return this.userId;}},{key:"getServerDeltaTime",value:function(){return parseInt(this.deltaTime);}},{key:"isLogin",value:function(){return this.token&&this.token.length>0;}},{key:"getConnectionStatus",value:function(){return this.connectionStatus;}},{key:"setBackupAddressStrategy",value:function(j0){this.backupAddressStrategy=j0;}},{key:"connectedToMainNetwork",value:function(){return 1===this.backupAddressStrategy;}},{key:"setBackupAddress",value:function(j0,j1){this.backupHost=j0,this.backupPort=j1;}},{key:"useSM4",value:function(){this.log("use encryptSM4"),(0,j17.useEncryptSM4)();}},{key:"getMyGroupList",value:function(){var j0=this.store.getFavGroups();return j0&&0!==j0.length?this.getGroupInfos(j0):[];}},{key:"_publish",value:function(j0,j1,j2){var j3=this,j4=this._encrypt(j1);if(!this.mqttClientInstance)return this.log("the connect is reset, reconnecting"),void(j2&&j2(-1));var j5=setTimeout(function(){j3.log("publish not response after "+j43.default.SEND_MESSAGE_TIMEOUT+"s, reset"),j2&&j2(-1),j3.connectionStatus=j41.default.ConnectionStatusUnconnected,j3._reconnect();},1e3*(j43.default.SEND_MESSAGE_TIMEOUT?j43.default.SEND_MESSAGE_TIMEOUT:20));this.mqttClientInstance.publish(j0,j4,{qos:1,retain:!0,dup:!0},function(j1,j4){if(clearTimeout(j5),j2){if(j1)return j3.log("publish error",j0,j1),j2(-1),void("Connection closed"===j1.message&&(j3.connectionStatus=j41.default.ConnectionStatusUnconnected,j3._reconnect()));if(j3.lastActiveTime=new Date().getTime(),j3.log("publish response",j0),!j4||!j4.payload||j4.payload.length<1)return j3.log("publish response error",j4),void(j2&&j2(-1));var j6=j4.payload[0];if(0===j6||255===j6||5===j6){j3.log("publish error code ",j0,j6);var j7=null;if(j4.payload&&j4.payload.length>1){if(j7=j3._decryptPublishResponse(j4),255===j6){j3.log("publish response compressed");try{j7=j44.default.inflate(j7);}catch(j1){j3.log("decompress response error",j1);}}j2(0,j7);}else j3.log("publish response is empty"),j2(0,null);}else j3.log("publish error",j0,j6),j2(j6),j6===j45.default.kEcServerTokenIncorrect||j6===j45.default.kEcServerUserIsBlocked||j45.default.kEcServerSecrectKeyMismatch;}else j3.log("publish, cb is null, drop");});}},{key:"_reloadUserInfosFromRemote",value:function(j0){for(var j1=this,j2=function(j2){setTimeout(function(){j1._reloadUserInfosFromRemoteEx(null,null,j0.slice(2e3*j2,2e3*(j2+1)));},1e3*j2);},j3=0;j3<j0.length/2e3;j3++)j2(j3);}},{key:"_reloadUserInfosFromRemoteEx",value:function(j0,j1,j2){var j3=this,j4=j39.PullUserRequest.create();if(j2.forEach(function(j1){if(j1){if(!j0){if(j3.store.loadingUsers.has(j1))return;j3.store.loadingUsers.add(j1);}var j2=j39.UserRequest.create();j2.uid=j1;var j5=j3.store.getUser(j1);j2.updateDt=j5?j5.updateDt:j15.default.ZERO,j4.request.push(j2);}}),j4.request.length<1)return this.warn("reloadUserInfoFromRemoteEx, all userIds are loading",j2),void(j1&&j1(-1));this.log("reload userInfo from remote",j2),this._publish("UPUI",j39.PullUserRequest.encode(j4).finish(),function(j4,j5){if(j2.forEach(function(j0){j3.store.loadingUsers.delete(j0);}),0!==j4||!j5)return j3.log("reloadUserInfoFromRemote error",j4,j2),void(j1&&j1(0!==j4?j4:-1));var j6=j39.PullUserResult.decode(j5).result;if(j6.length>0){var j7=[];j3.log("load userInfo from remote",j6),j6.forEach(function(j0){if(0===j0.code){var j1=(0,j8.default)(new j36.default(),j0.user);j43.default.urlRedirect&&(j1.portrait=j43.default.urlRedirect(j1.portrait)),j3.store.setUser(j1),j7.push(j3.store.getUser(j1.uid,""));}}),j0&&j0(j7),j7.length>0&&j3.eventEmitter.emit(j38.default.UserInfosUpdate,j7);}else j3.log("reload userInfo from remote response empty"),j1&&j1(-1);});}},{key:"_reloadUserInfoFromRemote",value:function(j0,j1,j2,j3){var j4=this,j5=j39.PullUserRequest.create(),j6=j39.UserRequest.create();j6.uid=j0,j6.updateDt=j15.default.fromValue(j1),j5.request.push(j6),this.log("reload userInfo from remote",j0),this._publish("UPUI",j39.PullUserRequest.encode(j5).finish(),function(j1,j5){if(0!==j1||!j5)return j3&&j3(0===j1?-1:j1),void j4.log("reloadUserInfoFromRemote error",j1,j0);var j6=j39.PullUserResult.decode(j5).result;if(j6.length>0){var j7=[];j4.log("load userInfo from remote",j6),j6.forEach(function(j0){var j1=(0,j8.default)(new j36.default(),j0.user);j43.default.urlRedirect&&(j1.portrait=j43.default.urlRedirect(j1.portrait)),j4.store.setUser(j1),j7.push(j4.store.getUser(j1.uid,""));}),j2&&j2(j7[0]);}else j3&&j3(-1);});}},{key:"getUserInfo",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",j3=this.store.getUser(j0,j2);return(j1||j3 instanceof j35.default)&&this._reloadUserInfosFromRemote([j0]),j3;}},{key:"getUserInfoEx",value:function(j0,j1,j2,j3){var j4=this.store.getUser(j0);j4 instanceof j35.default||j2&&j2(j4),(j1||j4 instanceof j35.default)&&this._reloadUserInfosFromRemoteEx(function(j0){j2&&j2(j0[0]);},j3,[j0]);}},{key:"getUserInfos",value:function(){var j0=this,j1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],j2=arguments[1],j3=[],j4=[];return j1.forEach(function(j1){var j5=j0.store.getUser(j1,j2);j5 instanceof j35.default&&j4.push(j1),j3.push(j5);}),j4.length>0&&this._reloadUserInfosFromRemote(j4),j3;}},{key:"getUserInfosEx",value:function(j0,j1,j2){var j3=this,j4=[],j5=[];j0.forEach(function(j0){var j1=j3.store.getUser(j0);j1 instanceof j35.default?j5.push(j0):j4.push(j1);}),j5.length>0?this._reloadUserInfosFromRemoteEx(function(j0){j4.push.apply(j4,(0,j10.default)(j0)),j1&&j1(j4);},j2,j0):j1&&j1(j4);}},{key:"searchUser",value:function(j0,j1,j2,j3,j4){var j5=j39.SearchUserRequest.create();j5.fuzzy=j1,j5.keyword=j0,j5.page=j2,this._publish("US",j39.SearchUserRequest.encode(j5).finish(),function(){var j1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j2=arguments[1];if(0===j1&&j2){if(j3){var j5=j39.SearchUserResult.decode(j2);j3(j0,j5.entry);}}else j4&&j4(j1);});}},{key:"searchFriends",value:function(j0){return this.store.searchFriends(j0);}},{key:"searchGroups",value:function(j0){return this.store.searchGroups(j0);}},{key:"getIncommingFriendRequest",value:function(){return this.store.getIncommingFriendRequest();}},{key:"getOutgoingFriendRequest",value:function(){return this.store.getOutgoingFriendRequest();}},{key:"getOneFriendRequest",value:function(j0,j1){return this.store.getOneFriendRequest(j0,j1);}},{key:"loadFriendRequestFromRemote",value:function(j0){var j1=this,j2=j39.Version.create();j2.version=j0,this._publish("FRP",j39.Version.encode(j2).finish(),function(j2,j3){if(0===j2&&j3){var j4=0,j5=j39.GetFriendRequestResult.decode(j3);j1.log("load friend request result",j5);var j6=[];j5.entry.forEach(function(j0){var j2=new j30.default();j2.status=j0.status,j2.reason=j0.reason,j2.extra=j0.extra,j0.fromUid===j1.getUserId()?(j2.direction=0,j2.target=j0.toUid,j2.readStatus=j0.fromReadStatus?1:0):(j2.direction=1,j2.target=j0.fromUid,j2.readStatus=j0.toReadStatus?1:0,0===j2.readStatus&&j6.push(j2.target)),j2.timestamp=j0.updateDt,(0,j16.gt)(j0.updateDt,j4)&&(j4=j0.updateDt),j1.store.insertOrReplaceFriendRequest(j2);}),j1.friendRequestHead=j4,(0,j16.gt)(j0,j4)&&j1.loadFriendRequestFromRemote(j4),j1.onFriendRequestUpdate(j6);}});}},{key:"getUnreadFriendRequestCount",value:function(){return this.store.getUnreadFriendRequestCount();}},{key:"clearUnreadFriendRequestStatus",value:function(){var j0=this.store.getUnreadFriendRequestMaxDt();if(0!==j15.default.ZERO.compare(j0)&&this.store.clearUnreadFriendRequestStatus()>0){var j1=j39.Version.create();j1.version=j0,this._publish("FRUS",j39.Version.encode(j1).finish(),function(j0,j1){});}}},{key:"deleteFriend",value:function(j0,j1,j2){var j3=this,j4=j39.IDBuf.create();j4.id=j0,this._publish("FDL",j39.IDBuf.encode(j4).finish(),function(){var j4=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===j4?(j3.store.deleteFriend(j0),j1&&j1()):j2(j4);});}},{key:"handleFriendRequest",value:function(j0,j1,j2,j3,j4){var j5=this,j6=j39.HandleFriendRequest.create();j6.status=j1?1:2,j6.targetUid=j0,j6.extra=j2,this._publish("FHR",j39.HandleFriendRequest.encode(j6).finish(),function(j1,j2){0===j1?(j5.store.updateFriendRequestStatus(j0,j6.status),j3&&j3()):j4&&j4(j1);});}},{key:"isBlackListed",value:function(j0){this.store.isBlackListed(j0);}},{key:"getBlackList",value:function(){return this.store.getBlackList();}},{key:"setBlackList",value:function(j0,j1,j2,j3){var j4=this,j5=j39.BlackUserRequest.create();j5.status=j1?2:1,j5.uid=j0,this._publish("BLU",j39.BlackUserRequest.encode(j5).finish(),function(j5,j6){0===j5?(j4.store.setBlackList(j0,j1),j2&&j2()):j3&&j3();});}},{key:"getMyFriendList",value:function(){var j0=arguments.length>0&&void 0!==arguments[0]&&arguments[0],j1=this.store.getFriendIds();return(j0||0===j1.length)&&this._getMyFriendListFromRemote(),j1;}},{key:"getFriendList",value:function(){var j0=arguments.length>0&&void 0!==arguments[0]&&arguments[0],j1=this.store.getFriends();return(0===j1.length||j0)&&this._getMyFriendListFromRemote(),j1;}},{key:"getFriendAlias",value:function(j0){return this.store.getFriendAlias(j0);}},{key:"getFriendExtra",value:function(j0){return this.store.getFriendExtra(j0);}},{key:"setFriendAlias",value:function(j0,j1,j2,j3){var j4=j39.AddFriendRequest.create();j4.targetUid=j0,j4.reason=j1,this._publish("FALS",j39.AddFriendRequest.encode(j4).finish(),function(j0,j1){0===j0?j2():j3(j0);});}},{key:"_getMyFriendListFromRemote",value:function(){this._pullFriends(j15.default.MAX_VALUE);}},{key:"createGroup",value:function(j0,j1,j2,j3,j4){var j5=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],j6=arguments[6],j7=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[0],j8=arguments[8],j9=this,j10=arguments[9],j11=arguments[10];j0=j0||"";var j12=this.getUserId(),j13=j39.Group.create(),j14=j39.GroupInfo.create();j14.targetId=j0,j14.type=j1,j14.name=j2,j14.portrait=j3,j14.extra=j4||"",j13.groupInfo=j14;var j15=new j31.default();j15.target=j0,j15.type=j1,j15.name=j2,j15.portrait=j3,j15.extra=j14.extra;var j16=[];j5.includes(j12)||j5.push(j12);var j17=void 0;j5.forEach(function(j1){var j2=j39.GroupMember.create();j2.memberId=j1,j2.type=j33.default.Normal,(j17=new j32.default()).groupId=j0,j17.memberId=j1,j17.type=j33.default.Normal,j1===j12&&(j2.type=j33.default.Owner,j17.type=j33.default.Owner),j13.members.push(j2),j16.push(j17);});var j18=j39.CreateGroupRequest.create();j18.group=j13,j18.toLine=j7,j18.memberExtra=j6||"",j18.notifyContent=this._toProtoMessageContent(j8),this._publish("GC",j39.CreateGroupRequest.encode(j18).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j1=arguments[1];if(0===j0&&j1){var j2=j1.toString();j15.target=j2;var j3=new j28.default(j29.default.Group,j2,0);if(j9.store.genAndSaveDefaultConversationInfo(j3),j9.store.setGroupInfo(j15),j9.store.setGroupMembers(j2,j16),j8){var j4=new j21.default(j3,j8);j9.store.updateConversationLastMessage(j4);}j10&&j10(j2),j9.log("create group success",j2);}else j9.log("create group error",j0),j11&&j11(j0);});}},{key:"setGroupManager",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=this,j8=j39.SetGroupManagerRequest.create();j8.type=j1?1:0,j8.groupId=j0,j8.userId=j2,j8.toLine=j3,j8.notifyContent=this._toProtoMessageContent(j4),this._publish("GSM",j39.SetGroupManagerRequest.encode(j8).finish(),function(j3,j4){0===j3?(j7.store.setGroupManagers(j0,j1,j2),j5&&j5(),j7.log("set group manager success",j0)):(j7.log("set group manager error",j3),j6&&j6(j3));});}},{key:"_reloadGroupInfosFromRemote",value:function(){for(var j0=arguments.length,j1=Array(j0),j2=0;j2<j0;j2++)j1[j2]=arguments[j2];this._reloadGroupInfosFromRemoteEx(null,null,j1);}},{key:"_reloadGroupInfosFromRemoteEx",value:function(j0,j1,j2){var j3=this,j4=j39.PullUserRequest.create();j2.forEach(function(j1){if(j0||!j3.store.loadingGroups.has(j1)){j3.store.loadingGroups.add(j1);var j2=j39.UserRequest.create();j2.uid=j1;var j5=j3.store.getGroupInfo(j1);j2.updateDt=j5?j5.updateDt:j15.default.ZERO,j4.request.push(j2);}}),j4.request.length<1?j1&&j1(-1):(this.log("reload groupInfo from remote",j2),this._publish("GPGI",j39.PullUserRequest.encode(j4).finish(),function(j4,j5){if(j2.forEach(function(j0){j3.store.loadingGroups.delete(j0);}),0!==j4||!j5)return j3.log("reloadGroupInfoFromRemote error",j4,j5,j2),void(j1&&j1(0!==j4?j4:-1));var j6=j39.PullGroupInfoResult.decode(j5).info;if(j3.log("reload groupInfo from remote result",j6),j6.length>0){var j7=[];j6.forEach(function(j0){var j1=(0,j8.default)(new j31.default(),j0);j1.target=j0.targetId,delete j1.targetId,j43.default.urlRedirect&&(j1.portrait=j43.default.urlRedirect(j1.portrait)),j3.store.setGroupInfo(j1),j7.push(j1);}),j0&&j0(j7),j3.eventEmitter.emit(j38.default.GroupInfosUpdate,j7);}}));}},{key:"_reloadGroupMembersFromRemote",value:function(j0,j1){this._reloadGroupMembersFromRemoteEx(j0,j1,null,null);}},{key:"_reloadGroupMembersFromRemoteEx",value:function(j0,j1,j2,j3){var j4=this;if(j2||!this.store.loadingGroupMembers.has(j0)){this.store.loadingGroupMembers.add(j0);var j5=j39.PullGroupMemberRequest.create();j5.target=j0,j5.head=j15.default.fromValue(j1),this._publish("GPGM",j39.PullGroupMemberRequest.encode(j5).finish(),function(j1,j5){if(j4.store.loadingGroupMembers.delete(j0),0===j1&&j5){var j6=j39.PullGroupMemberResult.decode(j5).member,j7=[],j8=!1;j6.forEach(function(j1){var j2=new j32.default();j2.groupId=j0,j2.alias=j1.alias,j2.extra=j1.extra,j2.type=j1.type,j2.memberId=j1.memberId,j2.updateDt=j1.updateDt,j2.createDt=j1.createDt,j7.push(j2);var j3=j4.store.getGroupMember(j0,j4.userId);j2.memberId===j4.userId&&j3&&j3.type===j33.default.Removed&&(j8=!0);}),j4.log("loadGroupMembersFromRemote",j0,j7.length),j4.store.updateGroupMembers(j0,j7),j7=j4.store.getGroupMembers(j0),j2&&j2(j7),!j8&&j7.length>0?(j4.eventEmitter.emit(j38.default.GroupMembersUpdate,j0,j7),j4.log("emit groupMembersUpdate",j0,j7)):j4.log("self deleted",j0);}else{if(j4.log("reloadGroupMembersFromRemote error",j0,j1),253===j1){var j9=new j28.default(j29.default.Group,j0,0);j4.store.removeConversation(j9,!0),console.log("remove conversation",j9);}j3&&j3(0!==j1?j1:-1);}});}}},{key:"getGroupInfo",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j2=this.store.getGroupInfo(j0);return(j1||j2 instanceof j34.default)&&this._reloadGroupInfosFromRemote(j0),j2 instanceof j34.default&&this._reloadGroupMembersFromRemote(j0,this.store.getGroupMemberMaxDt(j0)),j2;}},{key:"getGroupInfoEx",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j2=arguments[2],j3=arguments[3],j4=this.store.getGroupInfo(j0);j4 instanceof j34.default||j2&&j2(j4),(j1||j4 instanceof j34.default)&&this._reloadGroupInfosFromRemoteEx(function(j0){j2&&j2(j0[0]);},j3,[j0]),j4 instanceof j34.default&&this._reloadGroupMembersFromRemote(j0,this.store.getGroupMemberMaxDt(j0));}},{key:"getGroupInfos",value:function(){var j0=this,j1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],j2=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j3=[],j4=[];if(j1.forEach(function(j1){var j5=j0.store.getGroupInfo(j1);(j5 instanceof j34.default||j2)&&j4.push(j1),j3.push(j5);}),j4.length>0&&(this._reloadGroupInfosFromRemote.apply(this,j4),j4.length<=50)){var j5=!0,j6=!1,j7=void 0;try{for(var j8,j9=(0,j11.default)(j4);!(j5=(j8=j9.next()).done);j5=!0){var j10=j8.value;this._reloadGroupMembersFromRemote(j10,this.store.getGroupMemberMaxDt(j10));}}catch(j0){j6=!0,j7=j0;}finally{try{!j5&&j9.return&&j9.return();}finally{if(j6)throw j7;}}}return j3;}},{key:"addGroupMembers",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=this;if(!j0||!j1||0===j1.length||!j3||0===j3.length)return this.log("addGroupMembers params invalid"),void(j6&&j6(-1));var j8=j39.AddGroupMemberRequest.create();j8.groupId=j0,j1.forEach(function(j0){var j1=j39.GroupMember.create();j1.memberId=j0,j1.type=j33.default.Normal,j8.addedMember.push(j1);}),j8.toLine=j3,j8.extra=j2,j8.notifyContent=this._toProtoMessageContent(j4),this._publish("GAM",j39.AddGroupMemberRequest.encode(j8).finish(),function(j2,j3){if(0===j2){var j4=[];new Date().getTime();j1.forEach(function(j1){var j2=new j32.default();j2.groupId=j0,j2.type=j33.default.Normal,j2.memberId=j1,j2.updateDt=0,j2.createDt=0,j4.push(j2);}),j7.store.updateGroupMembers(j0,j4);}j7._generalOperationCallback(j2,j5,j6);});}},{key:"getGroupMemberIds",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j2=this.store.getGroupMemberIds(j0,j1);return(0===j2.length||j1)&&this._reloadGroupMembersFromRemote(j0,this.store.getGroupMemberMaxDt(j0)),j2;}},{key:"getGroupMembers",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j2=this.store.getGroupInfo(j0),j3=this.store.getGroupMemberMaxDt(j0);if(j2 instanceof j34.default)return this._reloadGroupInfosFromRemote(j0),this._reloadGroupMembersFromRemote(j0,j3),null;var j4=this.store.getGroupMembers(j0);return(0===j4.length||j1)&&this._reloadGroupMembersFromRemote(j0,j3),j4.sort(this._compareGroupMember);}},{key:"getGroupMembersByType",value:function(j0,j1){var j2=this.getGroupMembers(j0);return 0===j2.length&&this._reloadGroupMembersFromRemote(j0,j15.default.ZERO),j2.filter(function(j0){return j0.type===j1;});}},{key:"_compareGroupMember",value:function(j0,j1){return j0.type===j1.type?(0,j16.numberValue)(j0.updateDt)-(0,j16.numberValue)(j1.updateDt):4===j0.type?-1:4===j1.type?1:j1.type-j0.type;}},{key:"getGroupMembersEx",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j2=arguments[2],j3=arguments[3],j4=this.store.getGroupMembers(j0),j5=this.store.getGroupMemberMaxDt(j0);0===j4.length||j1?this._reloadGroupMembersFromRemoteEx(j0,j5,j2,j3):(j2&&j2(j4.sort(this._compareGroupMember)),j1&&this._reloadGroupMembersFromRemoteEx(j0,j5));}},{key:"getGroupMember",value:function(j0,j1){if(this.store.getGroupInfo(j0)instanceof j34.default)return this._reloadGroupInfosFromRemote(j0),this._reloadGroupMembersFromRemote(j0,this.store.getGroupMemberMaxDt(j0)),null;var j2=this.store.getGroupMember(j0,j1);return j2||this._reloadGroupMembersFromRemote(j0,this.store.getGroupMemberMaxDt(j0)),j2;}},{key:"kickoffGroupMembers",value:function(j0,j1,j2,j3,j4,j5){var j6=this,j7=j39.RemoveGroupMemberRequest.create();j7.groupId=j0,j7.removedMember=j1,j7.toLine=j2,j7.notifyContent=this._toProtoMessageContent(j3),this._publish("GKM",j39.RemoveGroupMemberRequest.encode(j7).finish(),function(j2,j3){0===j2&&j6.store.removeGroupMembers(j0,j1),j6._generalOperationCallback(j2,j4,j5);});}},{key:"muteOrAllowGroupMembers",value:function(j0,j1,j2,j3,j4,j5,j6,j7){var j8=this,j9=j39.SetGroupManagerRequest.create();j9.type=j1?1:0,j9.groupId=j0,j9.userId=j3,j9.toLine=j4,j9.notifyContent=this._toProtoMessageContent(j5),this._publish(j2?"GMAL":"GMM",j39.SetGroupManagerRequest.encode(j9).finish(),function(j4,j5){0===j4?(j8.store.updateGroupMemberMuteOrAllow(j0,j3,j1,j2),j6&&j6(),j8.log("mute group member success",j0,j3)):(j8.log("mute group member error",j4),j7&&j7(j4));});}},{key:"quitGroup",value:function(j0,j1,j2,j3,j4){var j5=this,j6=j39.QuitGroupRequest.create();j6.groupId=j0,j6.toLine=j1,j6.notifyContent=this._toProtoMessageContent(j2),this._publish("GQ",j39.QuitGroupRequest.encode(j6).finish(),function(j1,j2){0===j1&&(j5.store.removeGroupAndMembers(j0),j5.store.removeGroupSettings(j0),j5.store.removeFavGroup(j0)),j5._generalOperationCallback(j1,j3,j4);});}},{key:"dismissGroup",value:function(j0,j1,j2,j3,j4){var j5=this,j6=j39.DismissGroupRequest.create();j6.groupId=j0,j6.toLine=j1,j6.notifyContent=this._toProtoMessageContent(j2),this._publish("GD",j39.DismissGroupRequest.encode(j6).finish(),function(j1,j2){0===j1?(j5.store.removeGroupAndMembers(j0,j5.serverConfigs.isKeepMsgAfterDismiss),j5.store.removeGroupSettings(j0),j5.store.removeFavGroup(j0),j5.serverConfigs.isKeepMsgAfterDismiss||j5.store.removeConversation(new j28.default(j29.default.Group,j0,0),!0),j3&&j3()):j4&&j4(j1);});}},{key:"modifyGroupInfo",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=this,j8=j39.ModifyGroupInfoRequest.create();j8.groupId=j0,j8.toLine=j3,j8.type=j1,j8.value=j2+"",j8.notifyContent=this._toProtoMessageContent(j4),this._publish("GMI",j39.ModifyGroupInfoRequest.encode(j8).finish(),function(j0,j1){j7._generalOperationCallback(j0,j5,j6);});}},{key:"modifyGroupAlias",value:function(j0,j1,j2,j3,j4,j5){var j6=this,j7=j39.ModifyGroupMemberAlias.create();j7.groupId=j0,j7.alias=j1,j7.toLine=j2,j7.notifyContent=this._toProtoMessageContent(j3),this._publish("GMA",j39.ModifyGroupMemberAlias.encode(j7).finish(),function(j0,j1){j6._generalOperationCallback(j0,j4,j5);});}},{key:"modifyGroupMemberAlias",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=this,j8=j39.ModifyGroupMemberAlias.create();j8.groupId=j0,j8.memberId=j1,j8.alias=j2,j8.toLine=j3,j8.notifyContent=this._toProtoMessageContent(j4),this._publish("GMMA",j39.ModifyGroupMemberAlias.encode(j8).finish(),function(j3,j4){0===j3&&j7.store.updateGroupMemberAlias(j0,j1,j2),j7._generalOperationCallback(j3,j5,j6);});}},{key:"modifyGroupMemberExtra",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=this,j8=j39.ModifyGroupMemberExtra.create();j8.groupId=j0,j8.memberId=j1,j8.extra=j2,j8.toLine=j3,j8.notifyContent=this._toProtoMessageContent(j4),this._publish("GMME",j39.ModifyGroupMemberExtra.encode(j8).finish(),function(j3,j4){0===j3&&j7.store.updateGroupMemberExtra(j0,j1,j2),j7._generalOperationCallback(j3,j5,j6);});}},{key:"transferGroup",value:function(j0,j1,j2,j3,j4,j5){var j6=this,j7=j39.TransferGroupRequest.create();j7.groupId=j0,j7.newOwner=j1,j7.toLine=j2,j7.notifyContent=this._toProtoMessageContent(j3),this._publish("GTG",j39.TransferGroupRequest.encode(j7).finish(),function(j0,j1){j6._generalOperationCallback(j0,j4,j5);});}},{key:"setGroupRemark",value:function(j0,j1,j2,j3){var j4=this;this.setUserSetting(j37.default.GroupRemark,j0,j1,function(){j2&&j2();var j3=new j42.default();j3.scope=j37.default.GroupRemark,j3.key=j0,j3.value=j1,j3.updateDt=new Date().getTime(),j4.store.settings.push(j3),j4.onSettingUpdate([j3]);},j3);}},{key:"getGroupRemark",value:function(j0){return this.getUserSetting(j37.default.GroupRemark,j0);}},{key:"getFavGroups",value:function(){return this.store.getFavGroups();}},{key:"isFavGroup",value:function(j0){return this.store.isFavGroup(j0);}},{key:"setFavGroup",value:function(j0,j1,j2,j3){this._updateUserSetting(j37.default.FavoriteGroup,j0,j1?"1":"0",j2,j3);}},{key:"getMyGroups",value:function(j0,j1){var j2=this;this._publish("GMGS",null,function(j3,j4){j2._generalStringListCallback(j3,j4,j0,j1);});}},{key:"getCommonGroups",value:function(j0,j1,j2){var j3=this,j4=j39.IDBuf.create();j4.id=j0,this._publish("GCGS",j39.IDBuf.encode(j4).finish(),function(j0,j4){j3._generalStringListCallback(j0,j4,j1,j2);});}},{key:"getFavUsers",value:function(){return this.store.getFavUsers();}},{key:"isFavUser",value:function(j0){return this.store.isFavUser(j0);}},{key:"setFavUser",value:function(j0,j1,j2,j3){this._updateUserSetting(j37.default.FavoriteUser,j0,j1?"1":"0",j2,j3);}},{key:"getUserSetting",value:function(j0,j1){return this.store.getUserSetting(j0,j1);}},{key:"getUserSettings",value:function(j0){return this.store.getUserSettings(j0);}},{key:"setUserSetting",value:function(j0,j1,j2,j3,j4){this._updateUserSetting(j0,j1,j2,j3,j4);}},{key:"modifyMyInfo",value:function(j0,j1,j2){var j3=this,j4=j39.ModifyMyInfoRequest.create();j4.entry=j0,this._publish("MMI",j39.ModifyMyInfoRequest.encode(j4).finish(),function(j0,j4){j3._generalOperationCallback(j0,j1,j2);});}},{key:"isGlobalSlient",value:function(){var j0=this.store.getUserSetting(j37.default.GlobalSilent,"");return!!j0&&"1"===j0.value;}},{key:"setGlobalSlient",value:function(j0,j1,j2){this._updateUserSetting(j37.default.GlobalSilent,"",j0?"1":"0",function(){j1&&j1();},function(j0){j2&&j2(j0);});}},{key:"isHiddenNotificationDetail",value:function(){var j0=this.store.getUserSetting(j37.default.HiddenNotificationDetail,"");return!!j0&&"1"===j0.value;}},{key:"setHiddenNotificationDetail",value:function(j0,j1,j2){this._updateUserSetting(j37.default.HiddenNotificationDetail,"",j0?"1":"0",function(){j1&&j1();},function(j0){j2&&j2(j0);});}},{key:"isHiddenGroupMemberName",value:function(j0){var j1=this.store.getUserSetting(j37.default.GroupHideNickname,j0);return!!j1&&"1"===j1.value;}},{key:"setHiddenGroupMemberName",value:function(j0,j1,j2,j3){this._updateUserSetting(j37.default.GroupHideNickname,j0,j1?"1":"0",function(){j2&&j2();},function(j0){j3&&j3(j0);});}},{key:"joinChatroom",value:function(j0,j1,j2){var j3=this,j4=j39.IDBuf.create();j4.id=j0,this._publish("CRJ",j39.IDBuf.encode(j4).finish(),function(){var j4=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===j4?(j3.chatRoomMsgHead=j15.default.ZERO,j3.currentChatRoomId=j0,j1&&j1(),j3._pullMessages(j15.default.MAX_VALUE,1,!1)):j2&&j2(j4);});}},{key:"quitChatroom",value:function(j0,j1,j2){var j3=j39.IDBuf.create();j3.id=j0,this.currentChatRoomId="",this._publish("CRQ",j39.IDBuf.encode(j3).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===j0?j1&&j1():j2&&j2(j0);});}},{key:"getChatroomInfo",value:function(j0,j1,j2,j3){var j4=this,j5=j39.GetChatroomInfoRequest.create();j5.chatroomId=j0,j5.updateDt=j15.default.fromValue(j1),this._publish("CRI",j39.GetChatroomInfoRequest.encode(j5).finish(),function(){var j1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j5=arguments[1];if(0===j1&&j5){if(j2){var j6=j39.ChatroomInfo.decode(j5);j4.log("getChatroomInfo result",j6);var j7=(0,j8.default)(new j47.default(),j6);j7.chatRoomId=j0,j43.default.urlRedirect&&(j7.portrait=j43.default.urlRedirect(j7.portrait)),j2(j7);}}else j3&&j3(j1);});}},{key:"getChatroomMemberInfo",value:function(j0,j1,j2,j3){var j4=this,j5=j39.GetChatroomMemberInfoRequest.create();j5.chatroomId=j0,j5.maxCount=j1||10,this._publish("CRMI",j39.GetChatroomMemberInfoRequest.encode(j5).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j1=arguments[1];if(0===j0&&j1){if(j2){var j5=j39.ChatroomMemberInfo.decode(j1);j4.log("getChatroomMemberInfo result",j5);var j6=(0,j8.default)(new j27.default(),j5);j2(j6);}}else j3&&j3(j0);});}},{key:"createChannel",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=j39.ChannelInfo.create();j7.name=j0,j7.portrait=j1,j7.desc=j3,j7.extra=j4,this._publish("CHC",j39.ChannelInfo.encode(j7).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===j0?j5&&j5():j6&&j6(j0);});}},{key:"getChannelInfo",value:function(j0,j1){var j2=this.store.getChannelInfo(j0);return(j2 instanceof j48.default||j1)&&this._reloadChannelInfo(j0,j2.updateDt),j2;}},{key:"_reloadChannelInfo",value:function(j0){var j1=this,j2=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,j3=j39.PullChannelInfo.create();j3.channelId=j0,j3.head=j15.default.fromValue(j2),this._publish("CHP",j39.PullChannelInfo.encode(j3).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j2=arguments[1];if(0===j0&&j2){var j3=j39.ChannelInfo.decode(j2),j4=(0,j8.default)(new j26.default(),j3);j43.default.urlRedirect&&(j4.portrait=j43.default.urlRedirect(j4.portrait)),j4.menu&&(j4.menus=j4.menu.map(function(j0){return(j0=(0,j8.default)(new j57.default(),j0)).subMenu&&(j0.subMenus=j0.subMenu.map(function(j0){return(0,j8.default)(new j57.default(),j0);}),delete j0.subMenu),j0;}),delete j4.menu),j4.channelId=j3.targetId,delete j4.targetId,j1.store.setChannelInfo(j4),j1.eventEmitter.emit(j38.default.ChannelInfosUpdate,[j4]);}});}},{key:"modifyChannelInfo",value:function(j0,j1,j2,j3,j4){var j5=this,j6=j39.ModifyChannelInfo.create();j6.channelId=j0,j6.type=j1,j6.value=j2,this._publish("CHMI",j39.ModifyChannelInfo.encode(j6).finish(),function(){var j1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===j1?(j5._reloadChannelInfo(j0),j3&&j3()):j4&&j4(j1);});}},{key:"searchChannel",value:function(j0,j1,j2,j3){var j4=j39.SearchUserRequest.create();j4.keyword=j0,j4.fuzzy=j1,j4.page=0,this._publish("CHS",j39.SearchUserRequest.encode(j4).finish(),function(){var j1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j4=arguments[1];if(0===j1&&j4){if(j2){var j5=j39.SearchChannelResult.decode(j4);j2(j0,j5.entry);}}else j3&&j3(j1);});}},{key:"isListenedChannel",value:function(j0){var j1=this.store.getUserSetting(j37.default.Listened_Channel,j0);return j1&&"1"===j1.value;}},{key:"listenChannel",value:function(j0,j1,j2,j3){var j4=j39.ListenChannel.create();j4.channelId=j0,j4.listen=j1,this._publish("CHL",j39.ListenChannel.encode(j4).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===j0?j2&&j2():j3&&j3(j0);});}},{key:"getMyChannels",value:function(){return this.store.getUserSettings(j37.default.My_Channel).filter(function(j0){return"1"===j0.value;}).map(function(j0){return j0.key;});}},{key:"getListenedChannels",value:function(){return this.store.getUserSettings(j37.default.Listened_Channel).filter(function(j0){return"1"===j0.value;}).map(function(j0){return j0.key;});}},{key:"getRemoteListenedChannels",value:function(j0,j1){var j2=this;this._publish("CHLL","",function(){var j3=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j4=arguments[1];j2._generalStringListCallback(j3,j4,j0,j1);});}},{key:"destroyChannel",value:function(j0,j1,j2){var j3=j39.IDBuf.create();j3.id=j0,this._publish("CHD",j39.ListenChannel.encode(j3).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===j0?j1&&j1():j2&&j2(j0);});}},{key:"getConversationList",value:function(j0,j1){return this.store.getConversationList(j0,j1);}},{key:"getConversationInfo",value:function(j0){var j1=this.store.getConversationInfo(j0);return j1||((j1=new j49.default()).conversation=j0),j1;}},{key:"searchConversation",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,1,2],j2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,1];return this.store.searchConversation(j0,j1,j2);}},{key:"removeConversation",value:function(j0,j1){var j2=this.getConversationInfo(j0);if(j2){this.store.removeConversation(j0,j1);var j3=new Date().getTime();(!j2.timestamp||(0,j16.gt)(j2.timestamp,j3+72e5)||(0,j16.lte)(j2.timestamp,j3-12e4))&&(j2.timestamp=j15.default.fromValue(j3)),this._syncConversationReadDt(j0,j2.timestamp.neg());}}},{key:"setConversationTop",value:function(j0,j1,j2,j3){var j4=this,j5=j37.default.ConversationTop,j6=j0.type+"-"+j0.line+"-"+j0.target,j7=(j1>0?j1:0)+"";this._updateUserSetting(j5,j6,j7,function(){var j3=j4.getConversationInfo(j0);j4.eventEmitter.emit(j38.default.ConversationInfoUpdate,j3),j4.store.setConversationTop(j0,j1),j2&&j2();},function(j0){j3&&j3(j0);});}},{key:"setConversationSlient",value:function(j0,j1,j2,j3){var j4=this,j5=j37.default.ConversationSilent,j6=j0.type+"-"+j0.line+"-"+j0.target,j7=j1?"1":"0";this._updateUserSetting(j5,j6,j7,function(){j4.store.setConversationSilent(j0,j1),j2&&j2();var j3=j4.getConversationInfo(j0);j4.eventEmitter.emit(j38.default.ConversationInfoUpdate,j3);},function(j0){j3&&j3(j0);});}},{key:"setConversationDraft",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",j2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(j0){j1=j1||"";var j3=this.getConversationInfo(j0);j3.draft!==j1&&(this.store.setConversationDraft(j0,j1),this.eventEmitter.emit(j38.default.ConversationInfoUpdate,j3),!j2||this.isGlobalDisableDraftSync||this.isDisableSyncDraft()||this._syncDraft(j0,j1));}}},{key:"_syncDraft",value:function(j0,j1){var j2=j0.type+"-"+j0.line+"-"+j0.target,j3=this.getUserSetting(j37.default.DisableSyncDraft,j2);if(!(!!j3&&"1"===j3.value)){var j4=this.clientId+"@@@"+j1;this._updateUserSetting(j37.default.ConversationDraft,j2,j4);}}},{key:"setConversationTimestamp",value:function(j0,j1){var j2=this.store.getConversationInfo(j0);j2||(j2=this.store.genAndSaveDefaultConversationInfo(j0));var j3=new Date().getTime();(0,j16.gt)(j1,j3+72e5)&&(j1=j3),j2.timestamp=j15.default.fromValue(j1),this.eventEmitter.emit(j38.default.ConversationInfoUpdate,j2);}},{key:"getUnreadCount",value:function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],j1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];return this.store.getUnreadCount(j0,j1);}},{key:"getConversationUnreadCount",value:function(j0){return this.store.getConversationUnreadCount(j0);}},{key:"sendConferenceRequest",value:function(j0,j1,j2,j3,j4,j5){var j6=j39.ConferenceRequest.create();j6.sessionId=j0,j6.roomId=j1,j6.request=j2,j6.advance=j4?1:0,j6.data=j3,this._publish("CONF",j39.ConferenceRequest.encode(j6).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j1=arguments[1];if(0===j0){var j2=null;if(j1){var j3=j39.IDBuf.decode(j1);j2=j3.id;}j5&&j5(0,j2);}else j5&&j5(j0);});}},{key:"clearConversationUnreadStatus",value:function(j0){var j1=[];if(this.isReceiptEnable&&this.isUserReceiptEnabled()&&(j1=this.store.getUnreadMsgSenders(j0)),this.store.clearConversationUnreadStatus(j0)>0){var j2=this.getConversationInfo(j0);if(this.eventEmitter.emit(j38.default.ConversationInfoUpdate,j2),j2.lastMessage){var j3=j15.default.fromValue(j2.lastMessage.timestamp);this._syncConversationReadDt(j0,j3,j1);}}}},{key:"clearMessageUnreadStatus",value:function(j0){if(this.store.clearMessageUnreadStatus(j0)){var j1=this.getConversationInfo(this.getMessageById(j0).conversation);this.eventEmitter.emit(j38.default.ConversationInfoUpdate,j1);}}},{key:"_syncConversationReadDt",value:function(j0,j1,j2,j3){var j4=this;if(j15.default.isLong(j1)){var j5=j0.type+"-"+j0.line+"-"+j0.target,j6=j39.ModifyUserSettingReq.create();j6.scope=j37.default.Conversation_Sync,j6.key=j5,j6.value=j1.toSigned().toString(),j6.target=j2;var j7=j39.ModifyUserSettingReq.encode(j6).finish();j3||(j3=this.store.saveSyncReadEntry(j0.type,j0.target,j0.line,j1,j2)),this._publish("UP",j7,function(j0,j2){if(0===j0){var j6=new j42.default();j6.scope=j37.default.Conversation_Sync,j6.key=j5,j6.value=j1.toString(),j6.updateDt=new Date().getTime(),j4.store.updateUserSettings([j6]),j4.store.deleteSyncReadEntry(j3),j4._syncRead();}else j4.log("syncConversationReadDt error",j0);});}else this.log("_syncConversationReadDt invalid dt",j1);}},{key:"_syncRead",value:function(){var j0=this.store.loadSyncReadEntry();if(j0){var j1=new j28.default(j0.type,j0.target,j0.line);this._syncConversationReadDt(j1,j0.readDt,j0.senders,j0.id);}}},{key:"clearAllUnreadStatus",value:function(){this.store.clearAllUnreadStatus();}},{key:"setMediaMessagePlayed",value:function(j0){if(this.store.setMediaMessagePlayed(j0)>0){var j1=this.store.getMessageById(j0);this.eventEmitter.emit(j38.default.MessageStatusUpdate,j1);}}},{key:"isMyFriend",value:function(j0){return this.store.isMyFriend(j0);}},{key:"sendFriendRequest",value:function(j0,j1,j2,j3,j4){var j5=j39.AddFriendRequest.create();j5.targetUid=j0,j5.reason=j1,j5.extra=j2,this._publish("FAR",j39.AddFriendRequest.encode(j5).finish(),function(j0,j1){0===j0?j3&&j3():j4&&j4(j0);});}},{key:"getMessages",value:function(j0,j1){var j2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],j3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,j4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return this.store.getConversationMessages(j0,j1,j2,j3,j4);}},{key:"getMessagesV2",value:function(j0,j1){var j2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],j3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,j4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",j5=arguments[5],j6=arguments[6],j7=this.store.getConversationMessages(j0,j1,j2,j3,j4);this._callbackOrLoadFromRemoteMessages(j7,j5,j6);}},{key:"getMessagesEx",value:function(j0,j1,j2,j3,j4,j5,j6){return this.store.getMessagesEx(j0,j1,j2,j6);}},{key:"getMessagesExV2",value:function(j0,j1,j2,j3,j4,j5,j6,j7,j8){var j9=this.store.getMessagesEx(j0,j1,j2,j6);this._callbackOrLoadFromRemoteMessages(j9,j7,j8);}},{key:"getMessagesEx2",value:function(j0,j1,j2,j3,j4,j5,j6){return this.store.getMessagesEx2(j0,j1,j2,j6);}},{key:"getMessagesEx2V2",value:function(j0,j1,j2,j3,j4,j5,j6,j7,j8){var j9=this.store.getMessagesEx2(j0,j1,j2,j6);this._callbackOrLoadFromRemoteMessages(j9,j7,j8);}},{key:"getUserMessages",value:function(j0,j1,j2){var j3=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],j4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,j5=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",j6=this.store.getConversationMessages(j1,j2,j3,j4,j5);return j6.filter(function(j1){return j1.from===j0;});}},{key:"getUserMessagesV2",value:function(j0,j1,j2){var j3=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],j4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,j5=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",j6=arguments[6],j7=arguments[7],j8=this.store.getConversationMessages(j1,j2,j3,j4,j5);j8=j8.filter(function(j1){return j1.from===j0;}),this._callbackOrLoadFromRemoteMessages(j8,j6,j7);}},{key:"getFirstUnreadMessageId",value:function(j0){return this.store.getFirstUnreadMessageId(j0);}},{key:"getUserMessagesEx",value:function(j0,j1,j2,j3){var j4=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],j5=this.store.getMessagesEx(j1,j2,j4,"");return j5.filter(function(j1){return j1.from===j0;});}},{key:"getUserMessagesExV2",value:function(j0,j1,j2,j3){var j4=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],j5=arguments[7],j6=arguments[8],j7=this.store.getMessagesEx(j1,j2,j4,"");j7=j7.filter(function(j1){return j1.from===j0;}),this._callbackOrLoadFromRemoteMessages(j7,j5,j6);}},{key:"getFirstUnreadMessageUid",value:function(j0){return this.store.getFirstUnreadMessage(j0);}},{key:"_convertAndSaveProtoMessage",value:function(j0,j1){var j2=j21.default.fromProtoMessage(j0);if(j2){var j3=j19.default.getMessageContentPersitFlag(j2.content.type);if(j1){if(81===j2.type){var j4=this.store.getMessageByUid(j15.default.fromValue(j2.content.binaryContent));j4&&j4.messageId>0&&(this.store.deleteMessageByUid(j15.default.from(j2.content.binaryContent)),this.onRemoteMessageDeleted(j4.messageUid));}80===j2.type&&this.onRecallMessage(j2.content.operatorId,j2.content.messageUid),j3===j25.default.Persist||j3===j25.default.Persist_And_Count?(j2.conversation.type===j29.default.ChatRoom?j2.messageId=this.store.genChatRoomMessageId():j2.messageId=this.store.genNormalMessageId(),this.store.saveMessage(j2)):j2.messageId=0;}else-1===j3&&1==(1&j0.content.persistFlag)&&(j3=1),j2.messageId=1==(1&j3)&&j3>0?-1:0;}return j2;}},{key:"_loadRemoteMessagePublishCallback",value:function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,j2=arguments[1],j3=arguments[2],j4=arguments[3],j5=arguments[4],j6=arguments[5],j7=arguments[6],j8=this,j9=arguments[7],j10=arguments[8];if(this.log("loadRemoteMessages result",j0,j3,j4),0===j0&&j2){var j11=j39.PullMessageResult.decode(j2);this.log("loadRemoteMessages result data",j11);var j12=[];if(j11&&j11.message){if(j11.message.forEach(function(j0){if(!(j1.pcNotSupportMessageTypes.indexOf(j0.content.type)>-1)){var j2=j8.store.getMessageByUid(j0.messageId),j4=j8._convertAndSaveProtoMessage(j0,j3);j4&&(j4.messageContent.type===j22.default.VOIP_CONTENT_TYPE_ACCEPT&&j9&&j4.messageContent.type===j22.default.VOIP_CONTENT_TYPE_END&&j10||j2&&j7||j12.push(j2||j4),[j22.default.VOIP_CONTENT_TYPE_START,j22.default.VOIP_CONTENT_TYPE_ACCEPT,j22.default.VOIP_CONTENT_TYPE_END].indexOf(j4.messageContent.type)>=0&&j8.updateCallStartMessage(j4));}}),j4&&j12.length>0)for(var j13=0;j13<j12.length;j13++){var j14=j12[j13],j15=j19.default.getMessageContentPersitFlag(j14.messageContent.type);if(j15===j25.default.Persist||j15===j25.default.Persist_And_Count){var j17=j14.conversation,j18=this.store.getConversationInfo(j17);j18||(j18=this.store.genAndSaveDefaultConversationInfo(j17)),j18.lastMessage&&j18.lastMessage.timestamp&&!(0,j16.gt)(j14.timestamp,j18.lastMessage.timestamp)||(j18.lastMessage=j14,j18.timestamp=j14.timestamp,this.eventEmitter.emit(j38.default.ConversationInfoUpdate,j18));break;}}j5&&j5(j12=j12.reverse(),j11.message.length>0);}else j6&&j6(-1);}else j6&&j6(j0);}},{key:"loadRemoteLineMessages",value:function(j0,j1){var j2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,j3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,j4=this,j5=arguments[4],j6=arguments[5],j7=j15.default.fromValue(j2);j7.eq(j15.default.ZERO)&&(j7=j15.default.MAX_VALUE);var j8=j39.LoadLineMessages.create();j8.line=j0,j8.count=j3,j8.beforeUid=j7,j1||(j1=[]);var j9=!0,j10=!0;j1.indexOf(j22.default.VOIP_CONTENT_TYPE_START)&&(j1.indexOf(j22.default.VOIP_CONTENT_TYPE_END)?j9=!1:j1.push(j22.default.VOIP_CONTENT_TYPE_END),j1.indexOf(j22.default.VOIP_CONTENT_TYPE_ACCEPT)?j10=!1:j1.push(j22.default.VOIP_CONTENT_TYPE_ACCEPT)),j8.contentType=j1,this._publish("LLM",j39.LoadLineMessages.encode(j8).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j1=arguments[1];j4._loadRemoteMessagePublishCallback(j0,j1,!1,!1,j5,j6,!1,j9,j10);});}},{key:"loadRemoteMessages",value:function(j0,j1){var j2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,j3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,j4=arguments[4],j5=this,j6=arguments[5],j7=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],j8=j15.default.fromValue(j2);j8.eq(j15.default.ZERO)&&(j8=j15.default.MAX_VALUE);var j9=this.store.getConversationInfo(j0);if(j9&&j9.lastMessage&&j9.lastMessage.messageUid&&j8.neq(j15.default.MAX_VALUE)&&j15.default.fromValue(j9.lastMessage.messageUid).compare(j8)<0)return this.log("the start message is exits",j9.lastMessage.toString(),j8.toString()),void(j6&&j6(-2));var j10=j39.LoadRemoteMessages.create();j10.conversation=this._toProtoConversation(j0),j1||(j1=[]);var j11=!0,j12=!0;j1.indexOf(j22.default.VOIP_CONTENT_TYPE_START)&&(j1.indexOf(j22.default.VOIP_CONTENT_TYPE_END)?j11=!1:j1.push(j22.default.VOIP_CONTENT_TYPE_END),j1.indexOf(j22.default.VOIP_CONTENT_TYPE_ACCEPT)?j12=!1:j1.push(j22.default.VOIP_CONTENT_TYPE_ACCEPT)),j10.contentType=j1,j10.beforeUid=j8,j10.count=j3,this.log("loadRemoteMessages request",j0,j8.toString(),j10),this._publish("LRM",j39.LoadRemoteMessages.encode(j10).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j2=arguments[1];j5._loadRemoteMessagePublishCallback(j0,j2,0===j1.length,0===j1.length,j4,j6,j7,j11,j12);});}},{key:"loadRemoteMessage",value:function(j0,j1,j2){var j3=this;if(j0){var j4=j39.INT64Buf.create();j4.id=j15.default.fromValue(j0),this._publish("LROM",j39.INT64Buf.encode(j4).finish(),function(){var j0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j4=arguments[1];j3._loadRemoteMessagePublishCallback(j0,j4,!1,!1,j1,j2);});}else j2&&j2(-1);}},{key:"getMessageById",value:function(j0){return this.store.getMessageById(j0);}},{key:"getMessageByUid",value:function(j0){return this.store.getMessageByUid(j0);}},{key:"searchMessage",value:function(j0,j1,j2){return this.store.searchConversationMessage(j0,j1,j2);}},{key:"sendConversationMessage",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=new j21.default();j0 instanceof j28.default?j7.conversation=j0:j7.conversation=new j28.default(j0.type,j0.target,j0.line),j7.messageContent=j1,this.sendMessageEx(j7,j2,j3,j4,j5,j6);}},{key:"sendSavedMessage",value:function(j0,j1,j2,j3){var j4=j0.messageId;if(!(j0=this.store.getMessageById(j4)))return this.error("saved message not found",j4),void(j3&&j3(-1));this._sendMessageInternal(j0,[],j2,j3);}},{key:"sendMessage",value:function(j0,j1,j2,j3,j4){this.sendMessageEx(j0,[],j1,j2,j3,j4);}},{key:"sendMessageEx",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],j2=arguments[2],j3=arguments[3],j4=this,j5=arguments[4],j6=arguments[5],j7=void 0,j8=j15.default.fromValue(new Date().getTime()+this.getServerDeltaTime());j0.status=j23.default.Sending,j0.from=this.userId,j0.timestamp=j8,j0.content=j0.messageContent.encode();var j9=j19.default.getMessageContentPersitFlag(j0.messageContent.type);if(j9===j25.default.No_Persist||j9===j25.default.Transparent?(j7=0,j0.messageId=j7):(j7=j0.conversation.type===j29.default.ChatRoom?this.store.genChatRoomMessageId():this.store.genNormalMessageId(),j0.messageId=j7,this.store.saveMessage(j0),this.log("message prepared",j7,j8,j0),this.store.updateConversationLastMessage(j0)),this.eventEmitter.emit(j38.default.SendMessage,j0),j2&&(this.log("onPrepared",this.getMessageById(j7)),j2(j7,j8)),j0.messageContent instanceof j20.default){if(!j0.messageContent.file&&!j0.messageContent.localPath||j0.messageContent.remotePath)""!==j0.messageContent.remotePath||j0.messageContent instanceof j58.default?this._sendMessageInternal(j0,j1,j5,j6):(this.log("send media message error, file，localPath and remoteUrl are null"),j0.status=j23.default.SendFailure,this.store.updateMessageById(j0),this.store.updateConversationLastMessage(j0),this.eventEmitter.emit(j38.default.MessageStatusUpdate,j0),j6&&j6(-1));else if(this.log("send media message",j0),this.isSupportBigFilesUpload()){var j10=j0.messageContent.file?j0.messageContent.file:j0.messageContent.localPath,j11=void 0;j11="string"==typeof j10||j10 instanceof String?this._dataURItoBlob(j10):j10,this.log("support big file",j10,j11.name),this._uploadFile(j0,j11,j11.name,j0.messageContent.mediaType,function(j0,j1){j3&&j3(j0,j1);},function(j1){j0.messageContent.remotePath=j1,j4.updateMessageContent(j0.messageId,j0.messageContent),j4._sendMessageInternal(j0,[],j5,j6);},function(j1){j0.status=j23.default.SendFailure,j4.store.updateMessageById(j0),j4.store.updateConversationLastMessage(j0),j4.eventEmitter.emit(j38.default.MessageStatusUpdate,j0),j6&&j6(j1);});}else{var j12=j0.messageContent.file?j0.messageContent.file:j0.messageContent.localPath;this.log("not support big file",j12,j0),this._uploadMedia(j0.messageId,j0.messageContent.name,j12,j0.messageContent.mediaType,function(j2){j0.messageContent.remotePath=j2,j4.log("remote Url",j2),j4._sendMessageInternal(j0,j1,j5,j6);},function(j1){j0.status=j23.default.SendFailure,j4.store.updateMessageById(j0),j4.store.updateConversationLastMessage(j0),j4.eventEmitter.emit(j38.default.MessageStatusUpdate,j0),j6&&j6(j1);},function(j0,j1){j3&&j3(j0,j1);});}}else this._sendMessageInternal(j0,j1,j5,j6);}},{key:"_updateConversationLastMessage",value:function(j0){if(this.store.updateConversationLastMessage(j0)){var j1=this.getConversationInfo(j0.conversation);this.eventEmitter.emit(j38.default.ConversationInfoUpdate,j1);}}},{key:"_sendMessageInternal",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],j2=this,j3=arguments[2],j4=arguments[3],j5=this._toProtoMessage(j0);j5.to=j1,this.log("_sendMessageInternal",this.connectionStatus);var j6=j39.Message.encode(j5).finish();if(j6.byteLength>15360&&this.log("警告！！！消息内容大小是: "+j6.byteLength+"，大小超过15K了，建议不要超过15K，如果大消息过多会影响接受体验，建议大文件使用媒体消息类型!!!"),j6.byteLength>102400)return this.error("消息内容太大，发送失败!"),void(j4&&j4(-1));this._publish("MS",j6,function(){var j1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,j5=arguments[1];if(j2.log("_sendMessageInternal result",j1),0!==j1||!j5)return j2.log("send message error",j1),j0.status=j23.default.SendFailure,j2.store.updateMessageById(j0),j2._updateConversationLastMessage(j0),j2.eventEmitter.emit(j38.default.MessageStatusUpdate,j0),void(j4&&j4(j1));var j6=new j15.default(0),j7=new j15.default(0);16===j5.length?(j6=j15.default.fromBytesBE(j5.slice(0,8),!0),j7=j15.default.fromBytesBE(j5.slice(8,16),!0),j0.messageUid=j6,j0.timestamp=j7,j0.status=j23.default.Sent,j0.direction=0,j0.from=j2.userId,j2.store.updateMessageById(j0),j2._updateConversationLastMessage(j0),j2.eventEmitter.emit(j38.default.MessageStatusUpdate,j0),j3&&j3(j6,j7)):(j0.status=j23.default.SendFailure,j2.store.updateMessageById(j0),j2._updateConversationLastMessage(j0),j2.log("ms response length error"),j2.eventEmitter.emit(j38.default.MessageStatusUpdate,j0),j4&&j4(-100001));});}},{key:"cancelSendingMessage",value:function(j0){if(j0<=0)return!1;var j1=this.uploadingMap.get(j0);if(j1){try{j1.abort();}catch(j0){this.log(j0);}return!0;}return!1;}},{key:"recallMessage",value:function(j0,j1,j2){var j3=this,j4=j39.INT64Buf.create();j4.id=j15.default.fromValue(j0),this._publish("MR",j39.INT64Buf.encode(j4).finish(),function(j4,j5){0===j4?(j1&&j1(),j3.onRecallMessage(j3.getUserId(),j0)):j2&&j2(j4);});}},{key:"deleteMessageById",value:function(j0){var j1=this.store.deleteMessageById(j0);return j1&&this.onMessageDeleted(j0),j1;}},{key:"deleteRemoteMessage",value:function(j0,j1,j2){var j3=this,j4=j39.INT64Buf.create();j4.id=j15.default.fromValue(j0),this._publish("MD",j39.INT64Buf.encode(j4).finish(),function(j4,j5){0===j4?(j1&&j1(),j3.onRemoteMessageDeleted(j0)):j2&&j2(j4);});}},{key:"clearMessages",value:function(j0,j1){void 0===j1&&(j1=j15.default.MAX_VALUE),this.store.clearConversationMessages(j0,j1);var j2=this.getConversationInfo(j0);this.eventEmitter.emit(j38.default.ConversationInfoUpdate,j2);}},{key:"clearRemoteConversationMessages",value:function(j0,j1,j2){var j3=this,j4=this._toProtoConversation(j0);this._publish("CMD",j39.Conversation.encode(j4).finish(),function(j4,j5){0===j4?(j3.clearMessages(j0),j1&&j1()):j2&&j2(0===j4?-1:j4);});}},{key:"insertMessage",value:function(j0,j1){var j2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j23.default.Sent,j3=arguments.length>3&&void 0!==arguments[3]&&arguments[3],j4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,j5=new j21.default(j0,j1);if(j5.status=j2,j5.direction=0,j2>=j23.default.Mentioned?(j5.direction=1,j0.type===j29.default.Single?j5.from=j0.target:j5.from=this.userId):j5.from=this.userId,j5.timestamp=j15.default.fromValue(j4||new Date().getTime()),j0.type===j29.default.ChatRoom)j5.messageId=this.store.genChatRoomMessageId();else j5.messageId=this.store.genNormalMessageId();return this.store.insertConversationMessages([j5]),j3&&this.eventEmitter.emit(j38.default.ReceiveMessage,j5),j5;}},{key:"isUserReceiptEnabled",value:function(){return"1"!==this.getUserSetting(j37.default.DisableReceipt,"");}},{key:"isGlobalDisableSyncDraft",value:function(){return this.isGlobalDisableDraftSync;}},{key:"setDisableSyncDraft",value:function(j0,j1,j2){this._updateUserSetting(j37.default.DisableSyncDraft,"",j0?"1":"0",j1,j2);}},{key:"isDisableSyncDraft",value:function(){return"1"!==this.getUserSetting(j37.default.DisableSyncDraft,"");}},{key:"setUserEnableReceipt",value:function(j0,j1,j2){this._updateUserSetting(j37.default.DisableReceipt,"",j0?"0":"1",j1,j2);}},{key:"updateMessageStatus",value:function(j0,j1){var j2=this.store.getMessageById(j0);0!==j2.messageId&&(j2.status=j1,this.store.updateMessageById(j2));}},{key:"updateMessageContent",value:function(j0,j1){var j2=this.store.getMessageById(j0);0!==j2.messageId&&(j2.messageContent=j1,this.store.updateMessageById(j2));}},{key:"updateMessageContentByUid",value:function(j0,j1){var j2=this.store.getMessageByUid(j0);j2&&0!==j2.messageId&&(j2.messageContent=j1,this.store.updateMessageById(j2));}},{key:"updateRemoteMessageContent",value:function(j0,j1,j2,j3,j4,j5){var j6=this,j7=j39.UpdateMessageContent.create();j7.messageId=j15.default.fromValue(j0),j7.content=this._toProtoMessageContent(j1),j7.distribute=j2,this._publish("MCU",j39.UpdateMessageContent.encode(j7).finish(),function(j2,j7){0===j2?(j3&&j6.updateMessageContentByUid(j0,j1),j4&&j4()):j5&&j5(j2);});}},{key:"_uploadXMLHttpRequest",value:function(j0,j1,j2,j3,j4,j5){var j6=this,j7=new XMLHttpRequest();return j7.upload.onprogress=function(j0){var j1=j0.loaded,j2=j0.total;j3(j1,j2);},j7.onreadystatechange=function(j3){j6.log("onr",j7.readyState,j7.status,j3),4===j7.readyState&&(200===j7.status?(j6.log("upload file success",j1,j2),j4(j2)):(j6.log("upload file error",j7.status),j5&&j5(-1)),j0&&j0.messageId>0&&j6.uploadingMap.delete(j0.messageId));},j7.onerror=function(j1){j6.log("upload file error",j1),j5&&j5(-1),j0&&j0.messageId>0&&j6.uploadingMap.delete(j0.messageId);},j0&&j0.messageId>0&&this.uploadingMap.set(j0.messageId,j7),j7;}},{key:"_uploadFile",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=this,j8=void 0,j9=(Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)).substring(0,12);if(j2&&""!==j2?(j8=j2,j2=j9):j8=j2=j9,-1!==j8.indexOf(".")){var j10=j8.substring(j8.lastIndexOf("."));j2+=j10;}if(-1===j2.indexOf("."))switch(j3){case 1:case 5:j2+=".jpg";break;case 2:j2+=".mp3";break;case 3:j2+=".mp4";}this.log("upload fileName",j8,j2,j3);var j11=this._getContentType(j3,j8);this.getUploadMediaUrl(j2,j3,j11,function(j3,j9,j10,j12){j3=1!==j7.backupAddressStrategy&&j10?j10:j3,console.log("uploadUrl",j3);var j13=void 0;if(0===j12);else if(1===j12){var j14=j3.split("?"),j15=j14[0],j16=j14[1],j17=j14[2];j13=j7._uploadXMLHttpRequest(j0,j2,j9,j4,j5,j6);var j18=new FormData();j18.append("key",j17),j18.append("token",j16),j18.append("file",j1),j13.open("POST",j15),j13.setRequestHeader("content-disposition",'attachment; filename="'+encodeURI(j8)+'"'),j13.send(j18);}else(j13=j7._uploadXMLHttpRequest(j0,j2,j9,j4,j5,j6)).open("PUT",j3),j13.setRequestHeader("Content-Type",j11),j13.setRequestHeader("content-disposition",'attachment; filename="'+encodeURI(j8)+'"'),j13.send(j1);},function(j0){j7.log("getUploadMediaUrl e",j0);});}},{key:"uploadMedia",value:function(j0,j1,j2,j3,j4,j5){if(this.isSupportBigFilesUpload()){var j6=void 0;j6="string"==typeof j1||j1 instanceof String?this._dataURItoBlob(j1):j1,this._uploadFile(null,j6,j0,j2,j5,j3,j4);}else this._uploadMedia(0,j0,j1,j2,j3,j4,j5);}},{key:"_uploadMedia",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=this,j8=void 0,j9=(Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)).substring(0,12);if(j1&&""!==j1?(j8=encodeURIComponent(j1),j1=j9):j8=j1=j9,-1===j1.indexOf("."))switch(j3){case 1:case 5:j1+=".jpg";break;case 2:j1+=".mp3";break;case 3:j1+=".mp4";}this.log("upload fileName",j1,j3);var j10=j1.substring(j1.lastIndexOf("."));-1===j8.indexOf(".")&&(j8+=j10);var j11=(0,j52.btoa)(this.userId)+"-"+j3+"-"+Math.round(new Date().valueOf()/1e3)+"-"+j1,j12=this._getContentType(j3,j8),j13=j39.GetUploadTokenRequest.create();j13.mediaType=j3,j13.mediaPath=j11,j13.contentType=j12,this._publish("GMUT",j39.GetUploadTokenRequest.encode(j13).finish(),function(j3,j9){if(0===j3){var j10=j39.GetUploadTokenResult.decode(j9);j7.log("getUploadToken result",j10);var j13=new XMLHttpRequest(),j14=!1,j15=setTimeout(function(){j7.log("upload media timeout"),j14=!0,j13.abort(),j5(-1);},2e5);j13.onerror=function(j1){j7.log("upload media error",j1),j5&&j5(-1),j7.uploadingMap.delete(j0);},j13.onreadystatechange=function(){if(4===j13.readyState&&(j7.uploadingMap.delete(j0),!j14))if(clearTimeout(j15),200===j13.status){if(j7.log("upload response",j13.responseText),j10.type<2){var j1=JSON.parse(j13.responseText);j4&&j4(j10.domain+"/"+j1.key);}else j4&&j4(j10.domain+"/"+j11);}else j7.log("upload media error status："+j13.status),j5&&j5(j13.status);},j13.upload.onprogress=function(j0){j0.lengthComputable&&j6&&j6(j0.loaded,j0.total);},j0>0&&j7.uploadingMap.set(j0,j13);var j16=void 0;if(0===j10.type||4===j10.type)j16="/fs";else if(3===j10.type){var j18=j10.path+"/"+j11;j18=(0,j17.AESEncrypt)(j18),j16="/fs/"+j18;}else 2===j10.type&&(j11=encodeURI(j11)),j16="/"+j11;j7.log("upload media cgi",j16,j10);var j19=void 0,j20=void 0,j21=void 0;if(2===j7.backupAddressStrategy&&j10.backupServer?(j19=j10.backupServer,j21=443===(j21=j10.backupSslPort)?"":":"+j21,j20=80===(j20=j10.backupPort)?"":":"+j20):(j19=j10.server,j21="",j10.sslPort&&443!==j10.sslPort&&(j21=":"+j10.sslPort),j20=80!==j10.port?":"+j10.port:""),j10.type<2||4===j10.type){var j22=new FormData(),j23=void 0;j23="string"==typeof j2||j2 instanceof String?j7._dataURItoBlob(j2):new Blob([j2],{type:j12}),j22.append("token",j10.token),j22.append("key",j1),j10.type<2?(j22.append("file",j23,j8),j43.default.USE_WSS?j13.open("POST","https://"+j19+j21+j16):j13.open("POST","http://"+j19+j20+j16),0!==j10.type&&(j13.setRequestHeader("Content-Type",j12),j13.setRequestHeader("content-disposition",'attachment; filename="'+j8+'"')),j13.send(j22)):new Response(j23).arrayBuffer().then(function(j0){var j1=new Uint8Array(j0),j2=j7._encrypt(j1,!1),j3=new Blob([new Uint8Array(j2,j2.byteOffset,j2.byteLength)]);j22.append("file",j3,j8),j43.default.USE_WSS?j13.open("POST","https://"+j19+j21+j16):j13.open("POST","http://"+j19+j20+j16),j13.setRequestHeader("x-wfc-size",j2.byteLength),0!==j10.type&&(j13.setRequestHeader("Content-Type",j12),j13.setRequestHeader("content-disposition",'attachment; filename="'+j8+'"')),j13.send(j22);});}else if(j10.type>=2){var j24=void 0;j43.default.USE_WSS?(j13.open("PUT","https://"+j19+j21+j16),j24=1===j7.backupAddressStrategy?j10.sslToken?j10.sslToken:j10.token:j10.backupSslToken?j10.backupSslToken:j10.backupToken):(j13.open("PUT","http://"+j19+j20+j16),j24=1===j7.backupAddressStrategy?j10.token:j10.backupToken),j13.setRequestHeader("Content-Type",j12),j13.setRequestHeader("content-disposition",'attachment; filename="'+j8+'"'),j13.setRequestHeader("Authorization",j24),2===j10.type?j13.setRequestHeader("x-oss-date",j10.date):(j13.setRequestHeader("x-amz-date",j10.date),j13.setRequestHeader("x-wfc-cid",(0,j17.AESEncrypt)(j7.clientId)),j13.setRequestHeader("x-wfc-uid",(0,j17.AESEncrypt)(j7.userId)));var j25=void 0;if(j25="string"==typeof j2||j2 instanceof String?j7._dataURItoBlob(j2):new Blob([j2],{type:j12}),3===j10.type){if(j25.size>104857600)return void(j5&&(j7.log("upload media size too large",j25.size),j5(-1)));new Response(j25).arrayBuffer().then(function(j0){var j1=new Uint8Array(j0),j2=j7._encrypt(j1);j13.setRequestHeader("x-wfc-size",j0.byteLength),j13.send(j2);});}else new Response(j25).arrayBuffer().then(function(j0){j13.send(j0);});}}else j5&&j5(j3);}),this.log("upload-----------");}},{key:"getAuthorizedMediaUrl",value:function(j0,j1,j2,j3,j4){var j5=j39.GetUploadTokenRequest.create();j5.mediaType=j1,j5.mediaPath=j2,j5.messageId=j0,this._publish("GMDT",j39.GetUploadTokenRequest.encode(j5).finish(),function(j0,j1){if(0===j0&&j1){var j2=j39.IDBuf.decode(j1);j3&&j3(j2.id);}else j4&&j4(0===j0?-1:j0);});}},{key:"isSupportBigFilesUpload",value:function(){return this.serverConfigs.isSupportBigFileUpload;}},{key:"getUploadMediaUrl",value:function(j0,j1,j2,j3,j4){var j5=j39.GetUploadTokenRequest.create(),j6=(0,j52.btoa)(unescape(encodeURIComponent(this.userId))),j7=(j6=j6.replace(/\+/g,"-2B").replace(/\//g,"-2F").replace(/\=/g,"-3D"))+"-"+j1+"-"+Math.round(new Date().valueOf()/1e3)+"-"+Math.round(1e8*Math.random()),j8=j0.lastIndexOf(".");j0=encodeURIComponent(j0),j8>0&&(j7+=j0.substring(j8)),j5.mediaType=j1,j5.mediaPath=j7,j5.contentType=j2||"application/octet-stream",this._publish("GMPU",j39.GetUploadTokenRequest.encode(j5).finish(),function(j0,j1){if(0===j0&&j1){var j2=j39.GetPresignedUrlResult.decode(j1);console.log("GMPU result",j2),j3&&j3(j2.presignedUrl,j2.mediaUrl,j2.backupPresignedUrl,j2.type);}else j4&&j4(0===j0?-1:j0);});}},{key:"_getContentType",value:function(j0,j1){var j2="application/octet-stream";if(j1){var j3=j1.substring(j1.lastIndexOf(".")+1);"jpg"===j3||"jpeg"===j3?j2="image/jpeg":"gif"===j3?j2="image/gif":"png"===j3?j2="image/png":"mp3"===j3?j2="audio/mpeg":"mp4"===j3?j2="video/mp4":"doc"===j3?j2="application/vnd.ms-word":"docx"===j3?j2="application/vnd.openxmlformats-officedocument.wordprocessingml.document":"xls"===j3?j2="application/vnd.ms-xls":"xlsx"===j3?j2="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"ppt"===j3?j2="application/vnd.ms-powerpoint":"pptx"===j3?j2="application/vnd.openxmlformats-officedocument.presentationml.presentation":"pps"===j3?j2="application/vnd.ms-powerpoint":"pdf"===j3?j2="application/pdf":"xml"===j3&&(j2="application/vnd.ms-xml");}else 1===j0?j2="image/jpeg":2===j0?j2="audio/amr":3===j0&&(j2="video/mp4");return j2;}},{key:"_getFileRecordsCallback",value:function(j0,j1,j2,j3){if(0===j0&&j1){var j4=j39.LoadFileRecordRes.decode(j1),j5=[];j4.record.forEach(function(j0){var j1=new j51.default();j1.conversation=new j28.default(j0.conversation.type,j0.conversation.target,j0.conversation.line),j1.messageUid=j0.messageId,j1.name=j0.name,j1.url=j0.url,j43.default.urlRedirect&&(j1.url=j43.default.urlRedirect(j0.url)),j1.size=j0.size,j1.downloadCount=j0.downloadCount,j1.userId=j0.fromUser,j1.timestamp=j0.dt,j5.push(j1);}),j2&&j2(j5);}else j3&&j3(0===j0?-1:j0);}},{key:"getConversationFileRecords",value:function(j0,j1,j2,j3,j4,j5,j6){var j7=this,j8=j39.LoadFileRecordReq.create();j8.conversation=this._toProtoConversation(j0),j8.messageId=j15.default.fromValue(j2),j8.from=j1,j8.order=j3,j8.count=j4,this._publish("LFR",j39.LoadFileRecordReq.encode(j8).finish(),function(j0,j1){j7._getFileRecordsCallback(j0,j1,j5,j6);});}},{key:"getMyFileRecords",value:function(j0,j1,j2,j3,j4){var j5=this,j6=j39.LoadFileRecordReq.create();j6.messageId=j15.default.fromValue(j0),j6.order=j1,j6.count=j2,this._publish("LMFR",j39.LoadFileRecordReq.encode(j6).finish(),function(j0,j1){j5._getFileRecordsCallback(j0,j1,j3,j4);});}},{key:"searchFiles",value:function(j0,j1,j2,j3,j4,j5,j6,j7){var j8=this,j9=j39.SearchFileRecordReq.create();j9.keyword=j0,j9.conversation=this._toProtoConversation(j1),j9.from=j2,j9.messageId=j15.default.fromValue(j3),j9.order=j4,j9.count=j5,this._publish("SFR",j39.SearchFileRecordReq.encode(j9).finish(),function(j0,j1){j8._getFileRecordsCallback(j0,j1,j6,j7);});}},{key:"searchMyFiles",value:function(j0,j1,j2,j3,j4,j5){var j6=this,j7=j39.SearchFileRecordReq.create();j7.keyword=j0,j7.messageId=j15.default.fromValue(j1),j7.order=j2,j7.count=j3,this._publish("SFR",j39.SearchFileRecordReq.encode(j7).finish(),function(j0,j1){j6._getFileRecordsCallback(j0,j1,j4,j5);});}},{key:"deleteFileRecord",value:function(j0,j1,j2){var j3=j39.INT64Buf.create();j3.id=j15.default.fromValue(j0),this._publish("DFR",j39.INT64Buf.encode(j3).finish(),function(j0,j3){0===j0?j1&&j1():j2&&j2(j0);});}},{key:"markConversationAsUnread",value:function(j0,j1){var j2=this.store.setLastReceivedMessageUnread(j0,"0","0");if(j2&&(0,j16.gt)(j2,0)&&j1){var j3=new j53.default(j2),j4=this.store.getMessageByUid(j2);return j3.timestamp=j4.timestamp,this.sendConversationMessage(j0,j3),!0;}return!1;}},{key:"getVersion",value:function(){return j1.version;}},{key:"isUserOnlineStateEnabled",value:function(){return this.isUserOnlineStateEnable;}},{key:"watchOnlineState",value:function(j0,j1,j2,j3,j4){this._watchOnlineState(j0,j1,j2,!0,j3,j4);}},{key:"_watchOnlineState",value:function(j0,j1,j2,j3,j4,j5){if(!this.isUserOnlineStateEnable)return this.error("not enable onlineState function"),void(j5&&j5(220));var j6=j39.PresenceWatchRequest.create();j6.type=j0,j6.target=j1,j6.duration=j2,this._publish("PWT",j39.PresenceWatchRequest.encode(j6).finish(),function(j0,j1){if(0===j0&&j1){if(!j3)return void(j4&&j4());var j2=j39.PresenceWatchResult.decode(j1),j6=[];j2.notify.forEach(function(j0){var j1=new j54.default();j1.userId=j0.userId,j1.customState=new j56.default(),j1.customState.state=j0.customState,j1.customState.text=j0.customText;var j2=[];j0.state.forEach(function(j0){var j1=new j55.default();j1.platform=j0.platform,j1.state=j0.state,j1.lastSeen=j0.lastSeen,j2.push(j1);}),j1.clientStates=j2,j6.push(j1);}),j4&&j4(j6);}else j5&&j5(0===j0?-1:j0);});}},{key:"unwatchOnlineState",value:function(j0,j1,j2,j3){this._watchOnlineState(j0,j1,0,!1,j2,j3);}},{key:"setMyCustomState",value:function(j0,j1,j2,j3){var j4=j0+"-"+j1;this.setUserSetting(j37.default.CustomState,"",j4,j2,j3);}},{key:"requireLock",value:function(j0,j1,j2,j3){var j4=j39.LockRequest.create();j4.lockId=j0,j4.duration=j15.default.fromValue(j1),this._publish("SLT",j39.LockRequest.encode(j4).finish(),function(j0,j1){0===j0?j2&&j2():j3&&j3(j0);});}},{key:"releaseLock",value:function(j0,j1,j2){this.requireLock(j0,0,j1,j2);}},{key:"_onlineStateNotify",value:function(j0){var j1=j39.PresenceWatchResult.decode(j0),j2=[];j1.notify.forEach(function(j0){var j1=new j54.default();j1.userId=j0.userId,j1.customState=new j56.default(),j1.customState.state=j0.customState,j1.customState.text=j0.customText;var j3=[];j0.state.forEach(function(j0){var j1=new j55.default();j1.platform=j0.platform,j1.state=j0.state,j1.lastSeen=j0.lastSeen,j3.push(j1);}),j1.clientStates=j3,j2.push(j1);}),this.eventEmitter.emit(j38.default.UserOnlineEvent,j2);}},{key:"_dataURItoBlob",value:function(j0){for(var j1=j0.split(","),j2=j1[0].match(/:(.*?);/)[1],j3=atob(j1[1]),j4=j3.length,j5=new Uint8Array(j4);j4--;)j5[j4]=j3.charCodeAt(j4);return this.log("-----------dataurltoblob",j2),new Blob([j5],{type:j2});}},{key:"_encrypt",value:function(j1){var j2=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!j1)return j1;var j3=new j0((0,j17.AESEncrypt)(j1,this.privateSecret,j2),"base64");return j3;}},{key:"_decrypt",value:function(j1){var j2=(0,j17.AESDecrypt)(j1.toString("base64"),this.privateSecret,!0);return new j0(j2);}},{key:"_decryptPublishResponse",value:function(j1){var j2=(0,j17.AESDecrypt)(j1.payload.slice(1,j1.payload.length).toString("base64"),this.privateSecret,!0);return j2?new j0(j2):null;}},{key:"_toProtoConversation",value:function(j0){if(!j0)return null;var j1=j39.Conversation.create();return j1.type=j0.type,j1.target=j0.target,j1.line=j0.line,j1;}},{key:"_toProtoMessage",value:function(j0){var j1=j39.Message.create();return j1.conversation=j0.conversation,j1.fromUser=this.getUserId(),j1.content=this._toProtoMessageContent(j0.messageContent),j1;}},{key:"_toProtoMessageContent",value:function(j0){if(!j0)return null;var j1=j39.MessageContent.create(),j2=j0.encode();return j1.content=j2.content,j1.pushContent=j2.pushContent,j1.pushData=j2.pushData,j1.searchableContent=j2.searchableContent,j1.data=j2.binaryContent,j1.type=j2.type,j1.mentionedType=j2.mentionedType,j1.mentionedTarget=j2.mentionedTargets,j1.mediaType=j2.mediaType,j1.remoteMediaUrl=j2.remoteMediaUrl,j1.persistFlag=j19.default.getMessageContentPersitFlag(j2.type),j1.extra=j0.extra,j1;}},{key:"_generalOperationCallback",value:function(j0,j1,j2){0===j0?j1&&j1():j2&&j2(j0);}},{key:"_generalStringListCallback",value:function(j0,j1,j2,j3){if(0===j0){var j4=j1?j39.IDListBuf.decode(j1):null;j2&&j2(j4?j4.id:[]);}else j3&&j3(j0);}},{key:"_getStore",value:function(){return this.store;}},{key:"log",value:function(j0){if(!j43.default.DISABLE_LOG){for(var j1,j2=arguments.length,j3=Array(j2>1?j2-1:0),j4=1;j4<j2;j4++)j3[j4-1]=arguments[j4];(j1=console).log.apply(j1,[j0].concat(j3));}}},{key:"warn",value:function(j0){if(!j43.default.DISABLE_LOG){for(var j1,j2=arguments.length,j3=Array(j2>1?j2-1:0),j4=1;j4<j2;j4++)j3[j4-1]=arguments[j4];(j1=console).warn.apply(j1,[j0].concat(j3));}}},{key:"error",value:function(j0){if(!j43.default.DISABLE_LOG){for(var j1,j2=arguments.length,j3=Array(j2>1?j2-1:0),j4=1;j4<j2;j4++)j3[j4-1]=arguments[j4];(j1=console).error.apply(j1,[j0].concat(j3));}}},{key:"test",value:function(){this.log("---------------test start----------------------");var j0=new j15.default(-35650792,34748344,!1),j1=new j15.default(-1415576788,34740445,!1);this.log("xxxoo",j0.comp(j1),j0.toString(),j1.toString()),this.log("---------------test end----------------------");}}]),j1;}();j60.connectionTimeout=1e4,j60.version="WFCWebSDKVersion-2025-09-17-180-5633da0",j60.pcNotSupportMessageTypes=[94];var j61=new j60();j1.default=j61;}).call(this,j2(16).Buffer);},function(j0,j1){j1.read=function(j0,j1,j2,j3,j4){var j5,j6,j7=8*j4-j3-1,j8=(1<<j7)-1,j9=j8>>1,j10=-7,j11=j2?j4-1:0,j12=j2?-1:1,j13=j0[j1+j11];for(j11+=j12,j5=j13&(1<<-j10)-1,j13>>=-j10,j10+=j7;j10>0;j5=256*j5+j0[j1+j11],j11+=j12,j10-=8);for(j6=j5&(1<<-j10)-1,j5>>=-j10,j10+=j3;j10>0;j6=256*j6+j0[j1+j11],j11+=j12,j10-=8);if(0===j5)j5=1-j9;else{if(j5===j8)return j6?NaN:1/0*(j13?-1:1);j6+=Math.pow(2,j3),j5-=j9;}return(j13?-1:1)*j6*Math.pow(2,j5-j3);},j1.write=function(j0,j1,j2,j3,j4,j5){var j6,j7,j8,j9=8*j5-j4-1,j10=(1<<j9)-1,j11=j10>>1,j12=23===j4?Math.pow(2,-24)-Math.pow(2,-77):0,j13=j3?0:j5-1,j14=j3?1:-1,j15=j1<0||0===j1&&1/j1<0?1:0;for(j1=Math.abs(j1),isNaN(j1)||j1===1/0?(j7=isNaN(j1)?1:0,j6=j10):(j6=Math.floor(Math.log(j1)/Math.LN2),j1*(j8=Math.pow(2,-j6))<1&&(j6--,j8*=2),(j1+=j6+j11>=1?j12/j8:j12*Math.pow(2,1-j11))*j8>=2&&(j6++,j8/=2),j6+j11>=j10?(j7=0,j6=j10):j6+j11>=1?(j7=(j1*j8-1)*Math.pow(2,j4),j6+=j11):(j7=j1*Math.pow(2,j11-1)*Math.pow(2,j4),j6=0));j4>=8;j0[j2+j13]=255&j7,j13+=j14,j7/=256,j4-=8);for(j6=j6<<j4|j7,j9+=j4;j9>0;j0[j2+j13]=255&j6,j13+=j14,j6/=256,j9-=8);j0[j2+j13-j14]|=128*j15;};},function(j0,j1,j2){j2(26),j2(190),j0.exports=j2(1).Array.from;},function(j0,j1,j2){var j3=j2(63),j4=j2(64);j0.exports=function(j0){return function(j1,j2){var j5,j6,j7=String(j4(j1)),j8=j3(j2),j9=j7.length;return j8<0||j8>=j9?j0?"":void 0:(j5=j7.charCodeAt(j8))<55296||j5>56319||j8+1===j9||(j6=j7.charCodeAt(j8+1))<56320||j6>57343?j0?j7.charAt(j8):j5:j0?j7.slice(j8,j8+2):j6-56320+(j5-55296<<10)+65536;};};},function(j0,j1,j2){"use strict";var j3=j2(49),j4=j2(38),j5=j2(42),j6={};j2(18)(j6,j2(5)("iterator"),function(){return this;}),j0.exports=function(j0,j1,j2){j0.prototype=j3(j6,{next:j4(1,j2)}),j5(j0,j1+" Iterator");};},function(j0,j1,j2){var j3=j2(27),j4=j2(50),j5=j2(188);j0.exports=function(j0){return function(j1,j2,j6){var j7,j8=j3(j1),j9=j4(j8.length),j10=j5(j6,j9);if(j0&&j2!=j2){for(;j9>j10;)if((j7=j8[j10++])!=j7)return!0;}else for(;j9>j10;j10++)if((j0||j10 in j8)&&j8[j10]===j2)return j0||j10||0;return!j0&&-1;};};},function(j0,j1,j2){var j3=j2(63),j4=Math.max,j5=Math.min;j0.exports=function(j0,j1){return(j0=j3(j0))<0?j4(j0+j1,0):j5(j0,j1);};},function(j0,j1,j2){var j3=j2(22),j4=j2(28),j5=j2(69)("IE_PROTO"),j6=Object.prototype;j0.exports=Object.getPrototypeOf||function(j0){return j0=j4(j0),j3(j0,j5)?j0[j5]:"function"==typeof j0.constructor&&j0 instanceof j0.constructor?j0.constructor.prototype:j0 instanceof Object?j6:null;};},function(j0,j1,j2){"use strict";var j3=j2(17),j4=j2(2),j5=j2(28),j6=j2(104),j7=j2(105),j8=j2(50),j9=j2(191),j10=j2(72);j4(j4.S+j4.F*!j2(106)(function(j0){Array.from(j0);}),"Array",{from:function(j0){var j1,j2,j4,j11,j12=j5(j0),j13="function"==typeof this?this:Array,j14=arguments.length,j15=j14>1?arguments[1]:void 0,j16=void 0!==j15,j17=0,j18=j10(j12);if(j16&&(j15=j3(j15,j14>2?arguments[2]:void 0,2)),null==j18||j13==Array&&j7(j18))for(j2=new j13(j1=j8(j12.length));j1>j17;j17++)j9(j2,j17,j16?j15(j12[j17],j17):j12[j17]);else for(j11=j18.call(j12),j2=new j13();!(j4=j11.next()).done;j17++)j9(j2,j17,j16?j6(j11,j15,[j4.value,j17],!0):j4.value);return j2.length=j17,j2;}});},function(j0,j1,j2){"use strict";var j3=j2(9),j4=j2(38);j0.exports=function(j0,j1,j2){j1 in j0?j3.f(j0,j1,j4(0,j2)):j0[j1]=j2;};},function(j0,j1,j2){j2(52),j2(26),j2(43),j2(195),j2(199),j2(201),j2(202),j0.exports=j2(1).Set;},function(j0,j1,j2){"use strict";var j3=j2(194),j4=j2(108),j5=j2(39),j6=j2(27);j0.exports=j2(65)(Array,"Array",function(j0,j1){this._t=j6(j0),this._i=0,this._k=j1;},function(){var j0=this._t,j1=this._k,j2=this._i++;return!j0||j2>=j0.length?(this._t=void 0,j4(1)):j4(0,"keys"==j1?j2:"values"==j1?j0[j2]:[j2,j0[j2]]);},"values"),j5.Arguments=j5.Array,j3("keys"),j3("values"),j3("entries");},function(j0,j1){j0.exports=function(){};},function(j0,j1,j2){"use strict";var j3=j2(109),j4=j2(76);j0.exports=j2(111)("Set",function(j0){return function(){return j0(this,arguments.length>0?arguments[0]:void 0);};},{add:function(j0){return j3.def(j4(this,"Set"),j0=0===j0?0:j0,j0);}},j3);},function(j0,j1,j2){var j3=j2(17),j4=j2(68),j5=j2(28),j6=j2(50),j7=j2(197);j0.exports=function(j0,j1){var j2=1==j0,j8=2==j0,j9=3==j0,j10=4==j0,j11=6==j0,j12=5==j0||j11,j13=j1||j7;return function(j1,j7,j14){for(var j15,j16,j17=j5(j1),j18=j4(j17),j19=j3(j7,j14,3),j20=j6(j18.length),j21=0,j22=j2?j13(j1,j20):j8?j13(j1,0):void 0;j20>j21;j21++)if((j12||j21 in j18)&&(j16=j19(j15=j18[j21],j21,j17),j0))if(j2)j22[j21]=j16;else if(j16)switch(j0){case 3:return!0;case 5:return j15;case 6:return j21;case 2:j22.push(j15);}else if(j10)return!1;return j11?-1:j9||j10?j10:j22;};};},function(j0,j1,j2){var j3=j2(198);j0.exports=function(j0,j1){return new(j3(j0))(j1);};},function(j0,j1,j2){var j3=j2(7),j4=j2(112),j5=j2(5)("species");j0.exports=function(j0){var j1;return j4(j0)&&("function"!=typeof(j1=j0.constructor)||j1!==Array&&!j4(j1.prototype)||(j1=void 0),j3(j1)&&null===(j1=j1[j5])&&(j1=void 0)),void 0===j1?Array:j1;};},function(j0,j1,j2){var j3=j2(2);j3(j3.P+j3.R,"Set",{toJSON:j2(113)("Set")});},function(j0,j1,j2){var j3=j2(44);j0.exports=function(j0,j1){var j2=[];return j3(j0,!1,j2.push,j2,j1),j2;};},function(j0,j1,j2){j2(114)("Set");},function(j0,j1,j2){j2(115)("Set");},function(j0,j1,j2){j2(52),j2(26),j2(43),j2(204),j2(208),j2(209),j0.exports=j2(1).Promise;},function(j0,j1,j2){"use strict";var j3,j4,j5,j6,j7=j2(36),j8=j2(4),j9=j2(17),j10=j2(73),j11=j2(2),j12=j2(7),j13=j2(37),j14=j2(75),j15=j2(44),j16=j2(116),j17=j2(117).set,j18=j2(206)(),j19=j2(78),j20=j2(118),j21=j2(207),j22=j2(119),j23="Promise",j24=j8.TypeError,j25=j8.process,j26=j25&&j25.versions,j27=j26&&j26.v8||"",j28=j8.Promise,j29="process"==j10(j25),j30=function(){},j31=j4=j19.f,j32=!!function(){try{var j0=j28.resolve(1),j1=(j0.constructor={})[j2(5)("species")]=function(j0){j0(j30,j30);};return(j29||"function"==typeof PromiseRejectionEvent)&&j0.then(j30)instanceof j1&&0!==j27.indexOf("6.6")&&-1===j21.indexOf("Chrome/66");}catch(j0){}}(),j33=function(j0){var j1;return!(!j12(j0)||"function"!=typeof(j1=j0.then))&&j1;},j34=function(j0,j1){if(!j0._n){j0._n=!0;var j2=j0._c;j18(function(){for(var j3=j0._v,j4=1==j0._s,j5=0,j6=function(j1){var j2,j5,j6,j7=j4?j1.ok:j1.fail,j8=j1.resolve,j9=j1.reject,j10=j1.domain;try{j7?(j4||(2==j0._h&&j37(j0),j0._h=1),!0===j7?j2=j3:(j10&&j10.enter(),j2=j7(j3),j10&&(j10.exit(),j6=!0)),j2===j1.promise?j9(j24("Promise-chain cycle")):(j5=j33(j2))?j5.call(j2,j8,j9):j8(j2)):j9(j3);}catch(j0){j10&&!j6&&j10.exit(),j9(j0);}};j2.length>j5;)j6(j2[j5++]);j0._c=[],j0._n=!1,j1&&!j0._h&&j35(j0);});}},j35=function(j0){j17.call(j8,function(){var j1,j2,j3,j4=j0._v,j5=j36(j0);if(j5&&(j1=j20(function(){j29?j25.emit("unhandledRejection",j4,j0):(j2=j8.onunhandledrejection)?j2({promise:j0,reason:j4}):(j3=j8.console)&&j3.error&&j3.error("Unhandled promise rejection",j4);}),j0._h=j29||j36(j0)?2:1),j0._a=void 0,j5&&j1.e)throw j1.v;});},j36=function(j0){return 1!==j0._h&&0===(j0._a||j0._c).length;},j37=function(j0){j17.call(j8,function(){var j1;j29?j25.emit("rejectionHandled",j0):(j1=j8.onrejectionhandled)&&j1({promise:j0,reason:j0._v});});},j38=function(j0){var j1=this;j1._d||(j1._d=!0,(j1=j1._w||j1)._v=j0,j1._s=2,j1._a||(j1._a=j1._c.slice()),j34(j1,!0));},j39=function(j0){var j1,j2=this;if(!j2._d){j2._d=!0,j2=j2._w||j2;try{if(j2===j0)throw j24("Promise can't be resolved itself");(j1=j33(j0))?j18(function(){var j3={_w:j2,_d:!1};try{j1.call(j0,j9(j39,j3,1),j9(j38,j3,1));}catch(j0){j38.call(j3,j0);}}):(j2._v=j0,j2._s=1,j34(j2,!1));}catch(j0){j38.call({_w:j2,_d:!1},j0);}}};j32||(j28=function(j0){j14(this,j28,j23,"_h"),j13(j0),j3.call(this);try{j0(j9(j39,this,1),j9(j38,this,1));}catch(j0){j38.call(this,j0);}},(j3=function(j0){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1;}).prototype=j2(74)(j28.prototype,{then:function(j0,j1){var j2=j31(j16(this,j28));return j2.ok="function"!=typeof j0||j0,j2.fail="function"==typeof j1&&j1,j2.domain=j29?j25.domain:void 0,this._c.push(j2),this._a&&this._a.push(j2),this._s&&j34(this,!1),j2.promise;},catch:function(j0){return this.then(void 0,j0);}}),j5=function(){var j0=new j3();this.promise=j0,this.resolve=j9(j39,j0,1),this.reject=j9(j38,j0,1);},j19.f=j31=function(j0){return j0===j28||j0===j6?new j5(j0):j4(j0);}),j11(j11.G+j11.W+j11.F*!j32,{Promise:j28}),j2(42)(j28,j23),j2(110)(j23),j6=j2(1).Promise,j11(j11.S+j11.F*!j32,j23,{reject:function(j0){var j1=j31(this);return(0,j1.reject)(j0),j1.promise;}}),j11(j11.S+j11.F*(j7||!j32),j23,{resolve:function(j0){return j22(j7&&this===j6?j28:this,j0);}}),j11(j11.S+j11.F*!(j32&&j2(106)(function(j0){j28.all(j0).catch(j30);})),j23,{all:function(j0){var j1=this,j2=j31(j1),j3=j2.resolve,j4=j2.reject,j5=j20(function(){var j2=[],j5=0,j6=1;j15(j0,!1,function(j0){var j7=j5++,j8=!1;j2.push(void 0),j6++,j1.resolve(j0).then(function(j0){j8||(j8=!0,j2[j7]=j0,--j6||j3(j2));},j4);}),--j6||j3(j2);});return j5.e&&j4(j5.v),j2.promise;},race:function(j0){var j1=this,j2=j31(j1),j3=j2.reject,j4=j20(function(){j15(j0,!1,function(j0){j1.resolve(j0).then(j2.resolve,j3);});});return j4.e&&j3(j4.v),j2.promise;}});},function(j0,j1){j0.exports=function(j0,j1,j2){var j3=void 0===j2;switch(j1.length){case 0:return j3?j0():j0.call(j2);case 1:return j3?j0(j1[0]):j0.call(j2,j1[0]);case 2:return j3?j0(j1[0],j1[1]):j0.call(j2,j1[0],j1[1]);case 3:return j3?j0(j1[0],j1[1],j1[2]):j0.call(j2,j1[0],j1[1],j1[2]);case 4:return j3?j0(j1[0],j1[1],j1[2],j1[3]):j0.call(j2,j1[0],j1[1],j1[2],j1[3]);}return j0.apply(j2,j1);};},function(j0,j1,j2){var j3=j2(4),j4=j2(117).set,j5=j3.MutationObserver||j3.WebKitMutationObserver,j6=j3.process,j7=j3.Promise,j8="process"==j2(41)(j6);j0.exports=function(){var j0,j1,j2,j9=function(){var j3,j4;for(j8&&(j3=j6.domain)&&j3.exit();j0;){j4=j0.fn,j0=j0.next;try{j4();}catch(j3){throw j0?j2():j1=void 0,j3;}}j1=void 0,j3&&j3.enter();};if(j8)j2=function(){j6.nextTick(j9);};else if(!j5||j3.navigator&&j3.navigator.standalone){if(j7&&j7.resolve){var j10=j7.resolve(void 0);j2=function(){j10.then(j9);};}else j2=function(){j4.call(j3,j9);};}else{var j11=!0,j12=document.createTextNode("");new j5(j9).observe(j12,{characterData:!0}),j2=function(){j12.data=j11=!j11;};}return function(j3){var j4={fn:j3,next:void 0};j1&&(j1.next=j4),j0||(j0=j4,j2()),j1=j4;};};},function(j0,j1,j2){var j3=j2(4).navigator;j0.exports=j3&&j3.userAgent||"";},function(j0,j1,j2){"use strict";var j3=j2(2),j4=j2(1),j5=j2(4),j6=j2(116),j7=j2(119);j3(j3.P+j3.R,"Promise",{finally:function(j0){var j1=j6(this,j4.Promise||j5.Promise),j2="function"==typeof j0;return this.then(j2?function(j2){return j7(j1,j0()).then(function(){return j2;});}:j0,j2?function(j2){return j7(j1,j0()).then(function(){throw j2;});}:j0);}});},function(j0,j1,j2){"use strict";var j3=j2(2),j4=j2(78),j5=j2(118);j3(j3.S,"Promise",{try:function(j0){var j1=j4.f(this),j2=j5(j0);return(j2.e?j1.reject:j1.resolve)(j2.v),j1.promise;}});},function(j0,j1,j2){j0.exports=j2(211);},function(j0,j1,j2){var j3=function(){return this;}()||Function("return this")(),j4=j3.regeneratorRuntime&&Object.getOwnPropertyNames(j3).indexOf("regeneratorRuntime")>=0,j5=j4&&j3.regeneratorRuntime;if(j3.regeneratorRuntime=void 0,j0.exports=j2(212),j4)j3.regeneratorRuntime=j5;else try{delete j3.regeneratorRuntime;}catch(j0){j3.regeneratorRuntime=void 0;}},function(j0,j1){!function(j1){"use strict";var j2,j3=Object.prototype,j4=j3.hasOwnProperty,j5="function"==typeof Symbol?Symbol:{},j6=j5.iterator||"@@iterator",j7=j5.asyncIterator||"@@asyncIterator",j8=j5.toStringTag||"@@toStringTag",j9="object"==typeof j0,j10=j1.regeneratorRuntime;if(j10)j9&&(j0.exports=j10);else{(j10=j1.regeneratorRuntime=j9?j0.exports:{}).wrap=j20;var j11="suspendedStart",j12="suspendedYield",j13="executing",j14="completed",j15={},j16={};j16[j6]=function(){return this;};var j17=Object.getPrototypeOf,j18=j17&&j17(j17(j31([])));j18&&j18!==j3&&j4.call(j18,j6)&&(j16=j18);var j19=j24.prototype=j22.prototype=Object.create(j16);j23.prototype=j19.constructor=j24,j24.constructor=j23,j24[j8]=j23.displayName="GeneratorFunction",j10.isGeneratorFunction=function(j0){var j1="function"==typeof j0&&j0.constructor;return!!j1&&(j1===j23||"GeneratorFunction"===(j1.displayName||j1.name));},j10.mark=function(j0){return Object.setPrototypeOf?Object.setPrototypeOf(j0,j24):(j0.__proto__=j24,j8 in j0||(j0[j8]="GeneratorFunction")),j0.prototype=Object.create(j19),j0;},j10.awrap=function(j0){return{__await:j0};},j25(j26.prototype),j26.prototype[j7]=function(){return this;},j10.AsyncIterator=j26,j10.async=function(j0,j1,j2,j3){var j4=new j26(j20(j0,j1,j2,j3));return j10.isGeneratorFunction(j1)?j4:j4.next().then(function(j0){return j0.done?j0.value:j4.next();});},j25(j19),j19[j8]="Generator",j19[j6]=function(){return this;},j19.toString=function(){return"[object Generator]";},j10.keys=function(j0){var j1=[];for(var j2 in j0)j1.push(j2);return j1.reverse(),function j2(){for(;j1.length;){var j3=j1.pop();if(j3 in j0)return j2.value=j3,j2.done=!1,j2;}return j2.done=!0,j2;};},j10.values=j31,j30.prototype={constructor:j30,reset:function(j0){if(this.prev=0,this.next=0,this.sent=this._sent=j2,this.done=!1,this.delegate=null,this.method="next",this.arg=j2,this.tryEntries.forEach(j29),!j0)for(var j1 in this)"t"===j1.charAt(0)&&j4.call(this,j1)&&!isNaN(+j1.slice(1))&&(this[j1]=j2);},stop:function(){this.done=!0;var j0=this.tryEntries[0].completion;if("throw"===j0.type)throw j0.arg;return this.rval;},dispatchException:function(j0){if(this.done)throw j0;var j1=this;function j3(j3,j4){return j7.type="throw",j7.arg=j0,j1.next=j3,j4&&(j1.method="next",j1.arg=j2),!!j4;}for(var j5=this.tryEntries.length-1;j5>=0;--j5){var j6=this.tryEntries[j5],j7=j6.completion;if("root"===j6.tryLoc)return j3("end");if(j6.tryLoc<=this.prev){var j8=j4.call(j6,"catchLoc"),j9=j4.call(j6,"finallyLoc");if(j8&&j9){if(this.prev<j6.catchLoc)return j3(j6.catchLoc,!0);if(this.prev<j6.finallyLoc)return j3(j6.finallyLoc);}else if(j8){if(this.prev<j6.catchLoc)return j3(j6.catchLoc,!0);}else{if(!j9)throw new Error("try statement without catch or finally");if(this.prev<j6.finallyLoc)return j3(j6.finallyLoc);}}}},abrupt:function(j0,j1){for(var j2=this.tryEntries.length-1;j2>=0;--j2){var j3=this.tryEntries[j2];if(j3.tryLoc<=this.prev&&j4.call(j3,"finallyLoc")&&this.prev<j3.finallyLoc){var j5=j3;break;}}j5&&("break"===j0||"continue"===j0)&&j5.tryLoc<=j1&&j1<=j5.finallyLoc&&(j5=null);var j6=j5?j5.completion:{};return j6.type=j0,j6.arg=j1,j5?(this.method="next",this.next=j5.finallyLoc,j15):this.complete(j6);},complete:function(j0,j1){if("throw"===j0.type)throw j0.arg;return"break"===j0.type||"continue"===j0.type?this.next=j0.arg:"return"===j0.type?(this.rval=this.arg=j0.arg,this.method="return",this.next="end"):"normal"===j0.type&&j1&&(this.next=j1),j15;},finish:function(j0){for(var j1=this.tryEntries.length-1;j1>=0;--j1){var j2=this.tryEntries[j1];if(j2.finallyLoc===j0)return this.complete(j2.completion,j2.afterLoc),j29(j2),j15;}},catch:function(j0){for(var j1=this.tryEntries.length-1;j1>=0;--j1){var j2=this.tryEntries[j1];if(j2.tryLoc===j0){var j3=j2.completion;if("throw"===j3.type){var j4=j3.arg;j29(j2);}return j4;}}throw new Error("illegal catch attempt");},delegateYield:function(j0,j1,j3){return this.delegate={iterator:j31(j0),resultName:j1,nextLoc:j3},"next"===this.method&&(this.arg=j2),j15;}};}function j20(j0,j1,j2,j3){var j4=j1&&j1.prototype instanceof j22?j1:j22,j5=Object.create(j4.prototype),j6=new j30(j3||[]);return j5._invoke=function(j0,j1,j2){var j3=j11;return function(j4,j5){if(j3===j13)throw new Error("Generator is already running");if(j3===j14){if("throw"===j4)throw j5;return j32();}for(j2.method=j4,j2.arg=j5;;){var j6=j2.delegate;if(j6){var j7=j27(j6,j2);if(j7){if(j7===j15)continue;return j7;}}if("next"===j2.method)j2.sent=j2._sent=j2.arg;else if("throw"===j2.method){if(j3===j11)throw j3=j14,j2.arg;j2.dispatchException(j2.arg);}else"return"===j2.method&&j2.abrupt("return",j2.arg);j3=j13;var j8=j21(j0,j1,j2);if("normal"===j8.type){if(j3=j2.done?j14:j12,j8.arg===j15)continue;return{value:j8.arg,done:j2.done};}"throw"===j8.type&&(j3=j14,j2.method="throw",j2.arg=j8.arg);}};}(j0,j2,j6),j5;}function j21(j0,j1,j2){try{return{type:"normal",arg:j0.call(j1,j2)};}catch(j0){return{type:"throw",arg:j0};}}function j22(){}function j23(){}function j24(){}function j25(j0){["next","throw","return"].forEach(function(j1){j0[j1]=function(j0){return this._invoke(j1,j0);};});}function j26(j0){function j1(j2,j3,j5,j6){var j7=j21(j0[j2],j0,j3);if("throw"!==j7.type){var j8=j7.arg,j9=j8.value;return j9&&"object"==typeof j9&&j4.call(j9,"__await")?Promise.resolve(j9.__await).then(function(j0){j1("next",j0,j5,j6);},function(j0){j1("throw",j0,j5,j6);}):Promise.resolve(j9).then(function(j0){j8.value=j0,j5(j8);},j6);}j6(j7.arg);}var j2;this._invoke=function(j0,j3){function j4(){return new Promise(function(j2,j4){j1(j0,j3,j2,j4);});}return j2=j2?j2.then(j4,j4):j4();};}function j27(j0,j1){var j3=j0.iterator[j1.method];if(j3===j2){if(j1.delegate=null,"throw"===j1.method){if(j0.iterator.return&&(j1.method="return",j1.arg=j2,j27(j0,j1),"throw"===j1.method))return j15;j1.method="throw",j1.arg=new TypeError("The iterator does not provide a 'throw' method");}return j15;}var j4=j21(j3,j0.iterator,j1.arg);if("throw"===j4.type)return j1.method="throw",j1.arg=j4.arg,j1.delegate=null,j15;var j5=j4.arg;return j5?j5.done?(j1[j0.resultName]=j5.value,j1.next=j0.nextLoc,"return"!==j1.method&&(j1.method="next",j1.arg=j2),j1.delegate=null,j15):j5:(j1.method="throw",j1.arg=new TypeError("iterator result is not an object"),j1.delegate=null,j15);}function j28(j0){var j1={tryLoc:j0[0]};1 in j0&&(j1.catchLoc=j0[1]),2 in j0&&(j1.finallyLoc=j0[2],j1.afterLoc=j0[3]),this.tryEntries.push(j1);}function j29(j0){var j1=j0.completion||{};j1.type="normal",delete j1.arg,j0.completion=j1;}function j30(j0){this.tryEntries=[{tryLoc:"root"}],j0.forEach(j28,this),this.reset(!0);}function j31(j0){if(j0){var j1=j0[j6];if(j1)return j1.call(j0);if("function"==typeof j0.next)return j0;if(!isNaN(j0.length)){var j3=-1,j5=function j1(){for(;++j3<j0.length;)if(j4.call(j0,j3))return j1.value=j0[j3],j1.done=!1,j1;return j1.value=j2,j1.done=!0,j1;};return j5.next=j5;}}return{next:j32};}function j32(){return{value:j2,done:!0};}}(function(){return this;}()||Function("return this")());},function(j0,j1,j2){"use strict";j1.__esModule=!0;var j3,j4=j2(77),j5=(j3=j4)&&j3.__esModule?j3:{default:j3};j1.default=function(j0){return function(){var j1=j0.apply(this,arguments);return new j5.default(function(j0,j2){return function j3(j4,j6){try{var j7=j1[j4](j6),j8=j7.value;}catch(j0){return void j2(j0);}if(!j7.done)return j5.default.resolve(j8).then(function(j0){j3("next",j0);},function(j0){j3("throw",j0);});j0(j8);}("next");});};};},function(j0,j1,j2){j2(215),j0.exports=j2(1).Object.assign;},function(j0,j1,j2){var j3=j2(2);j3(j3.S+j3.F,"Object",{assign:j2(216)});},function(j0,j1,j2){"use strict";var j3=j2(8),j4=j2(40),j5=j2(79),j6=j2(54),j7=j2(28),j8=j2(68),j9=Object.assign;j0.exports=!j9||j2(21)(function(){var j0={},j1={},j2=Symbol(),j3="abcdefghijklmnopqrst";return j0[j2]=7,j3.split("").forEach(function(j0){j1[j0]=j0;}),7!=j9({},j0)[j2]||Object.keys(j9({},j1)).join("")!=j3;})?function(j0,j1){for(var j2=j7(j0),j9=arguments.length,j10=1,j11=j5.f,j12=j6.f;j9>j10;)for(var j13,j14=j8(arguments[j10++]),j15=j11?j4(j14).concat(j11(j14)):j4(j14),j16=j15.length,j17=0;j16>j17;)j13=j15[j17++],j3&&!j12.call(j14,j13)||(j2[j13]=j14[j13]);return j2;}:j9;},function(j0,j1,j2){var j3=j2(1),j4=j3.JSON||(j3.JSON={stringify:JSON.stringify});j0.exports=function(j0){return j4.stringify.apply(j4,arguments);};},function(j0,j1,j2){j2(43),j2(26),j0.exports=j2(219);},function(j0,j1,j2){var j3=j2(13),j4=j2(72);j0.exports=j2(1).getIterator=function(j0){var j1=j4(j0);if("function"!=typeof j1)throw TypeError(j0+" is not iterable!");return j3(j1.call(j0));};},function(j0,j1,j2){j2(52),j2(26),j2(43),j2(221),j2(222),j2(223),j2(224),j0.exports=j2(1).Map;},function(j0,j1,j2){"use strict";var j3=j2(109),j4=j2(76),j5="Map";j0.exports=j2(111)(j5,function(j0){return function(){return j0(this,arguments.length>0?arguments[0]:void 0);};},{get:function(j0){var j1=j3.getEntry(j4(this,j5),j0);return j1&&j1.v;},set:function(j0,j1){return j3.def(j4(this,j5),0===j0?0:j0,j1);}},j3,!0);},function(j0,j1,j2){var j3=j2(2);j3(j3.P+j3.R,"Map",{toJSON:j2(113)("Map")});},function(j0,j1,j2){j2(114)("Map");},function(j0,j1,j2){j2(115)("Map");},function(j0,j1,j2){j2(226);var j3=j2(1).Object;j0.exports=function(j0,j1,j2){return j3.defineProperty(j0,j1,j2);};},function(j0,j1,j2){var j3=j2(2);j3(j3.S+j3.F*!j2(8),"Object",{defineProperty:j2(9).f});},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(56),j2(228),j2(229),j2(30),j2(31),j2(83),j2(126),j2(230),j2(127),j2(231),j2(232),j2(233),j2(84),j2(234),j2(23),j2(3),j2(235),j2(236),j2(237),j2(238),j2(239),j2(240),j2(241),j2(242),j2(243),j2(244),j2(245),j2(246),j2(247),j2(248),j2(249),j2(250),j3);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),function(){if("function"==typeof ArrayBuffer){var j0=j3.lib.WordArray,j1=j0.init,j2=j0.init=function(j0){if(j0 instanceof ArrayBuffer&&(j0=new Uint8Array(j0)),(j0 instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&j0 instanceof Uint8ClampedArray||j0 instanceof Int16Array||j0 instanceof Uint16Array||j0 instanceof Int32Array||j0 instanceof Uint32Array||j0 instanceof Float32Array||j0 instanceof Float64Array)&&(j0=new Uint8Array(j0.buffer,j0.byteOffset,j0.byteLength)),j0 instanceof Uint8Array){for(var j2=j0.byteLength,j3=[],j4=0;j4<j2;j4++)j3[j4>>>2]|=j0[j4]<<24-j4%4*8;j1.call(this,j3,j2);}else j1.apply(this,arguments);};j2.prototype=j0;}}(),j3.lib.WordArray);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),function(){var j0=j3,j1=j0.lib.WordArray,j2=j0.enc;function j4(j0){return j0<<8&4278255360|j0>>>8&16711935;}j2.Utf16=j2.Utf16BE={stringify:function(j0){for(var j1=j0.words,j2=j0.sigBytes,j3=[],j4=0;j4<j2;j4+=2){var j5=j1[j4>>>2]>>>16-j4%4*8&65535;j3.push(String.fromCharCode(j5));}return j3.join("");},parse:function(j0){for(var j2=j0.length,j3=[],j4=0;j4<j2;j4++)j3[j4>>>1]|=j0.charCodeAt(j4)<<16-j4%2*16;return j1.create(j3,2*j2);}},j2.Utf16LE={stringify:function(j0){for(var j1=j0.words,j2=j0.sigBytes,j3=[],j5=0;j5<j2;j5+=2){var j6=j4(j1[j5>>>2]>>>16-j5%4*8&65535);j3.push(String.fromCharCode(j6));}return j3.join("");},parse:function(j0){for(var j2=j0.length,j3=[],j5=0;j5<j2;j5++)j3[j5>>>1]|=j4(j0.charCodeAt(j5)<<16-j5%2*16);return j1.create(j3,2*j2);}};}(),j3.enc.Utf16);},function(j0,j1,j2){var j3,j4,j5,j6,j7,j8;j0.exports=(j8=j2(0),j2(126),j4=(j3=j8).lib.WordArray,j5=j3.algo,j6=j5.SHA256,j7=j5.SHA224=j6.extend({_doReset:function(){this._hash=new j4.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);},_doFinalize:function(){var j0=j6._doFinalize.call(this);return j0.sigBytes-=4,j0;}}),j3.SHA224=j6._createHelper(j7),j3.HmacSHA224=j6._createHmacHelper(j7),j8.SHA224);},function(j0,j1,j2){var j3,j4,j5,j6,j7,j8,j9,j10;j0.exports=(j10=j2(0),j2(56),j2(127),j4=(j3=j10).x64,j5=j4.Word,j6=j4.WordArray,j7=j3.algo,j8=j7.SHA512,j9=j7.SHA384=j8.extend({_doReset:function(){this._hash=new j6.init([new j5.init(3418070365,3238371032),new j5.init(1654270250,914150663),new j5.init(2438529370,812702999),new j5.init(355462360,4144912697),new j5.init(1731405415,4290775857),new j5.init(2394180231,1750603025),new j5.init(3675008525,1694076839),new j5.init(1203062813,3204075428)]);},_doFinalize:function(){var j0=j8._doFinalize.call(this);return j0.sigBytes-=16,j0;}}),j3.SHA384=j8._createHelper(j9),j3.HmacSHA384=j8._createHmacHelper(j9),j10.SHA384);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(56),function(j0){var j1=j3,j2=j1.lib,j4=j2.WordArray,j5=j2.Hasher,j6=j1.x64.Word,j7=j1.algo,j8=[],j9=[],j10=[];!function(){for(var j0=1,j1=0,j2=0;j2<24;j2++){j8[j0+5*j1]=(j2+1)*(j2+2)/2%64;var j3=(2*j0+3*j1)%5;j0=j1%5,j1=j3;}for(j0=0;j0<5;j0++)for(j1=0;j1<5;j1++)j9[j0+5*j1]=j1+(2*j0+3*j1)%5*5;for(var j4=1,j5=0;j5<24;j5++){for(var j7=0,j11=0,j12=0;j12<7;j12++){if(1&j4){var j13=(1<<j12)-1;j13<32?j11^=1<<j13:j7^=1<<j13-32;}128&j4?j4=j4<<1^113:j4<<=1;}j10[j5]=j6.create(j7,j11);}}();var j11=[];!function(){for(var j0=0;j0<25;j0++)j11[j0]=j6.create();}();var j12=j7.SHA3=j5.extend({cfg:j5.cfg.extend({outputLength:512}),_doReset:function(){for(var j0=this._state=[],j1=0;j1<25;j1++)j0[j1]=new j6.init();this.blockSize=(1600-2*this.cfg.outputLength)/32;},_doProcessBlock:function(j0,j1){for(var j2=this._state,j3=this.blockSize/2,j4=0;j4<j3;j4++){var j5=j0[j1+2*j4],j6=j0[j1+2*j4+1];j5=16711935&(j5<<8|j5>>>24)|4278255360&(j5<<24|j5>>>8),j6=16711935&(j6<<8|j6>>>24)|4278255360&(j6<<24|j6>>>8),(j28=j2[j4]).high^=j6,j28.low^=j5;}for(var j7=0;j7<24;j7++){for(var j12=0;j12<5;j12++){for(var j13=0,j14=0,j15=0;j15<5;j15++)j13^=(j28=j2[j12+5*j15]).high,j14^=j28.low;var j16=j11[j12];j16.high=j13,j16.low=j14;}for(j12=0;j12<5;j12++){var j17=j11[(j12+4)%5],j18=j11[(j12+1)%5],j19=j18.high,j20=j18.low;for(j13=j17.high^(j19<<1|j20>>>31),j14=j17.low^(j20<<1|j19>>>31),j15=0;j15<5;j15++)(j28=j2[j12+5*j15]).high^=j13,j28.low^=j14;}for(var j21=1;j21<25;j21++){var j22=(j28=j2[j21]).high,j23=j28.low,j24=j8[j21];j24<32?(j13=j22<<j24|j23>>>32-j24,j14=j23<<j24|j22>>>32-j24):(j13=j23<<j24-32|j22>>>64-j24,j14=j22<<j24-32|j23>>>64-j24);var j25=j11[j9[j21]];j25.high=j13,j25.low=j14;}var j26=j11[0],j27=j2[0];for(j26.high=j27.high,j26.low=j27.low,j12=0;j12<5;j12++)for(j15=0;j15<5;j15++){var j28=j2[j21=j12+5*j15],j29=j11[j21],j30=j11[(j12+1)%5+5*j15],j31=j11[(j12+2)%5+5*j15];j28.high=j29.high^~j30.high&j31.high,j28.low=j29.low^~j30.low&j31.low;}j28=j2[0];var j32=j10[j7];j28.high^=j32.high,j28.low^=j32.low;}},_doFinalize:function(){var j1=this._data,j2=j1.words,j3=(this._nDataBytes,8*j1.sigBytes),j5=32*this.blockSize;j2[j3>>>5]|=1<<24-j3%32,j2[(j0.ceil((j3+1)/j5)*j5>>>5)-1]|=128,j1.sigBytes=4*j2.length,this._process();for(var j6=this._state,j7=this.cfg.outputLength/8,j8=j7/8,j9=[],j10=0;j10<j8;j10++){var j11=j6[j10],j12=j11.high,j13=j11.low;j12=16711935&(j12<<8|j12>>>24)|4278255360&(j12<<24|j12>>>8),j13=16711935&(j13<<8|j13>>>24)|4278255360&(j13<<24|j13>>>8),j9.push(j13),j9.push(j12);}return new j4.init(j9,j7);},clone:function(){for(var j0=j5.clone.call(this),j1=j0._state=this._state.slice(0),j2=0;j2<25;j2++)j1[j2]=j1[j2].clone();return j0;}});j1.SHA3=j5._createHelper(j12),j1.HmacSHA3=j5._createHmacHelper(j12);}(Math),j3.SHA3);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),function(j0){var j1=j3,j2=j1.lib,j4=j2.WordArray,j5=j2.Hasher,j6=j1.algo,j7=j4.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),j8=j4.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),j9=j4.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),j10=j4.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),j11=j4.create([0,1518500249,1859775393,2400959708,2840853838]),j12=j4.create([1352829926,1548603684,1836072691,2053994217,0]),j13=j6.RIPEMD160=j5.extend({_doReset:function(){this._hash=j4.create([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(j0,j1){for(var j2=0;j2<16;j2++){var j3=j1+j2,j4=j0[j3];j0[j3]=16711935&(j4<<8|j4>>>24)|4278255360&(j4<<24|j4>>>8);}var j5,j6,j13,j20,j21,j22,j23,j24,j25,j26,j27,j28=this._hash.words,j29=j11.words,j30=j12.words,j31=j7.words,j32=j8.words,j33=j9.words,j34=j10.words;for(j22=j5=j28[0],j23=j6=j28[1],j24=j13=j28[2],j25=j20=j28[3],j26=j21=j28[4],j2=0;j2<80;j2+=1)j27=j5+j0[j1+j31[j2]]|0,j27+=j2<16?j14(j6,j13,j20)+j29[0]:j2<32?j15(j6,j13,j20)+j29[1]:j2<48?j16(j6,j13,j20)+j29[2]:j2<64?j17(j6,j13,j20)+j29[3]:j18(j6,j13,j20)+j29[4],j27=(j27=j19(j27|=0,j33[j2]))+j21|0,j5=j21,j21=j20,j20=j19(j13,10),j13=j6,j6=j27,j27=j22+j0[j1+j32[j2]]|0,j27+=j2<16?j18(j23,j24,j25)+j30[0]:j2<32?j17(j23,j24,j25)+j30[1]:j2<48?j16(j23,j24,j25)+j30[2]:j2<64?j15(j23,j24,j25)+j30[3]:j14(j23,j24,j25)+j30[4],j27=(j27=j19(j27|=0,j34[j2]))+j26|0,j22=j26,j26=j25,j25=j19(j24,10),j24=j23,j23=j27;j27=j28[1]+j13+j25|0,j28[1]=j28[2]+j20+j26|0,j28[2]=j28[3]+j21+j22|0,j28[3]=j28[4]+j5+j23|0,j28[4]=j28[0]+j6+j24|0,j28[0]=j27;},_doFinalize:function(){var j0=this._data,j1=j0.words,j2=8*this._nDataBytes,j3=8*j0.sigBytes;j1[j3>>>5]|=128<<24-j3%32,j1[14+(j3+64>>>9<<4)]=16711935&(j2<<8|j2>>>24)|4278255360&(j2<<24|j2>>>8),j0.sigBytes=4*(j1.length+1),this._process();for(var j4=this._hash,j5=j4.words,j6=0;j6<5;j6++){var j7=j5[j6];j5[j6]=16711935&(j7<<8|j7>>>24)|4278255360&(j7<<24|j7>>>8);}return j4;},clone:function(){var j0=j5.clone.call(this);return j0._hash=this._hash.clone(),j0;}});function j14(j0,j1,j2){return j0^j1^j2;}function j15(j0,j1,j2){return j0&j1|~j0&j2;}function j16(j0,j1,j2){return(j0|~j1)^j2;}function j17(j0,j1,j2){return j0&j2|j1&~j2;}function j18(j0,j1,j2){return j0^(j1|~j2);}function j19(j0,j1){return j0<<j1|j0>>>32-j1;}j1.RIPEMD160=j5._createHelper(j13),j1.HmacRIPEMD160=j5._createHmacHelper(j13);}(Math),j3.RIPEMD160);},function(j0,j1,j2){var j3,j4,j5,j6,j7,j8,j9,j10,j11;j0.exports=(j11=j2(0),j2(83),j2(84),j4=(j3=j11).lib,j5=j4.Base,j6=j4.WordArray,j7=j3.algo,j8=j7.SHA1,j9=j7.HMAC,j10=j7.PBKDF2=j5.extend({cfg:j5.extend({keySize:4,hasher:j8,iterations:1}),init:function(j0){this.cfg=this.cfg.extend(j0);},compute:function(j0,j1){for(var j2=this.cfg,j3=j9.create(j2.hasher,j0),j4=j6.create(),j5=j6.create([1]),j7=j4.words,j8=j5.words,j10=j2.keySize,j11=j2.iterations;j7.length<j10;){var j12=j3.update(j1).finalize(j5);j3.reset();for(var j13=j12.words,j14=j13.length,j15=j12,j16=1;j16<j11;j16++){j15=j3.finalize(j15),j3.reset();for(var j17=j15.words,j18=0;j18<j14;j18++)j13[j18]^=j17[j18];}j4.concat(j12),j8[0]++;}return j4.sigBytes=4*j10,j4;}}),j3.PBKDF2=function(j0,j1,j2){return j10.create(j2).compute(j0,j1);},j11.PBKDF2);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(3),j3.mode.CFB=function(){var j0=j3.lib.BlockCipherMode.extend();function j1(j0,j1,j2,j3){var j4=this._iv;if(j4){var j5=j4.slice(0);this._iv=void 0;}else j5=this._prevBlock;j3.encryptBlock(j5,0);for(var j6=0;j6<j2;j6++)j0[j1+j6]^=j5[j6];}return j0.Encryptor=j0.extend({processBlock:function(j0,j2){var j3=this._cipher,j4=j3.blockSize;j1.call(this,j0,j2,j4,j3),this._prevBlock=j0.slice(j2,j2+j4);}}),j0.Decryptor=j0.extend({processBlock:function(j0,j2){var j3=this._cipher,j4=j3.blockSize,j5=j0.slice(j2,j2+j4);j1.call(this,j0,j2,j4,j3),this._prevBlock=j5;}}),j0;}(),j3.mode.CFB);},function(j0,j1,j2){var j3,j4,j5;j0.exports=(j5=j2(0),j2(3),j5.mode.CTR=(j3=j5.lib.BlockCipherMode.extend(),j4=j3.Encryptor=j3.extend({processBlock:function(j0,j1){var j2=this._cipher,j3=j2.blockSize,j4=this._iv,j5=this._counter;j4&&(j5=this._counter=j4.slice(0),this._iv=void 0);var j6=j5.slice(0);j2.encryptBlock(j6,0),j5[j3-1]=j5[j3-1]+1|0;for(var j7=0;j7<j3;j7++)j0[j1+j7]^=j6[j7];}}),j3.Decryptor=j4,j3),j5.mode.CTR);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(3),j3.mode.CTRGladman=function(){var j0=j3.lib.BlockCipherMode.extend();function j1(j0){if(255==(j0>>24&255)){var j1=j0>>16&255,j2=j0>>8&255,j3=255&j0;255===j1?(j1=0,255===j2?(j2=0,255===j3?j3=0:++j3):++j2):++j1,j0=0,j0+=j1<<16,j0+=j2<<8,j0+=j3;}else j0+=1<<24;return j0;}function j2(j0){return 0===(j0[0]=j1(j0[0]))&&(j0[1]=j1(j0[1])),j0;}var j4=j0.Encryptor=j0.extend({processBlock:function(j0,j1){var j3=this._cipher,j4=j3.blockSize,j5=this._iv,j6=this._counter;j5&&(j6=this._counter=j5.slice(0),this._iv=void 0),j2(j6);var j7=j6.slice(0);j3.encryptBlock(j7,0);for(var j8=0;j8<j4;j8++)j0[j1+j8]^=j7[j8];}});return j0.Decryptor=j4,j0;}(),j3.mode.CTRGladman);},function(j0,j1,j2){var j3,j4,j5;j0.exports=(j5=j2(0),j2(3),j5.mode.OFB=(j3=j5.lib.BlockCipherMode.extend(),j4=j3.Encryptor=j3.extend({processBlock:function(j0,j1){var j2=this._cipher,j3=j2.blockSize,j4=this._iv,j5=this._keystream;j4&&(j5=this._keystream=j4.slice(0),this._iv=void 0),j2.encryptBlock(j5,0);for(var j6=0;j6<j3;j6++)j0[j1+j6]^=j5[j6];}}),j3.Decryptor=j4,j3),j5.mode.OFB);},function(j0,j1,j2){var j3,j4;j0.exports=(j4=j2(0),j2(3),j4.mode.ECB=((j3=j4.lib.BlockCipherMode.extend()).Encryptor=j3.extend({processBlock:function(j0,j1){this._cipher.encryptBlock(j0,j1);}}),j3.Decryptor=j3.extend({processBlock:function(j0,j1){this._cipher.decryptBlock(j0,j1);}}),j3),j4.mode.ECB);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(3),j3.pad.AnsiX923={pad:function(j0,j1){var j2=j0.sigBytes,j3=4*j1,j4=j3-j2%j3,j5=j2+j4-1;j0.clamp(),j0.words[j5>>>2]|=j4<<24-j5%4*8,j0.sigBytes+=j4;},unpad:function(j0){var j1=255&j0.words[j0.sigBytes-1>>>2];j0.sigBytes-=j1;}},j3.pad.Ansix923);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(3),j3.pad.Iso10126={pad:function(j0,j1){var j2=4*j1,j4=j2-j0.sigBytes%j2;j0.concat(j3.lib.WordArray.random(j4-1)).concat(j3.lib.WordArray.create([j4<<24],1));},unpad:function(j0){var j1=255&j0.words[j0.sigBytes-1>>>2];j0.sigBytes-=j1;}},j3.pad.Iso10126);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(3),j3.pad.Iso97971={pad:function(j0,j1){j0.concat(j3.lib.WordArray.create([2147483648],1)),j3.pad.ZeroPadding.pad(j0,j1);},unpad:function(j0){j3.pad.ZeroPadding.unpad(j0),j0.sigBytes--;}},j3.pad.Iso97971);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(3),j3.pad.ZeroPadding={pad:function(j0,j1){var j2=4*j1;j0.clamp(),j0.sigBytes+=j2-(j0.sigBytes%j2||j2);},unpad:function(j0){for(var j1=j0.words,j2=j0.sigBytes-1;!(j1[j2>>>2]>>>24-j2%4*8&255);)j2--;j0.sigBytes=j2+1;}},j3.pad.ZeroPadding);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(3),j3.pad.NoPadding={pad:function(){},unpad:function(){}},j3.pad.NoPadding);},function(j0,j1,j2){var j3,j4,j5,j6;j0.exports=(j6=j2(0),j2(3),j4=(j3=j6).lib.CipherParams,j5=j3.enc.Hex,j3.format.Hex={stringify:function(j0){return j0.ciphertext.toString(j5);},parse:function(j0){var j1=j5.parse(j0);return j4.create({ciphertext:j1});}},j6.format.Hex);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(30),j2(31),j2(23),j2(3),function(){var j0=j3,j1=j0.lib.BlockCipher,j2=j0.algo,j4=[],j5=[],j6=[],j7=[],j8=[],j9=[],j10=[],j11=[],j12=[],j13=[];!function(){for(var j0=[],j1=0;j1<256;j1++)j0[j1]=j1<128?j1<<1:j1<<1^283;var j2=0,j3=0;for(j1=0;j1<256;j1++){var j14=j3^j3<<1^j3<<2^j3<<3^j3<<4;j14=j14>>>8^255&j14^99,j4[j2]=j14,j5[j14]=j2;var j15=j0[j2],j16=j0[j15],j17=j0[j16],j18=257*j0[j14]^16843008*j14;j6[j2]=j18<<24|j18>>>8,j7[j2]=j18<<16|j18>>>16,j8[j2]=j18<<8|j18>>>24,j9[j2]=j18,j18=16843009*j17^65537*j16^257*j15^16843008*j2,j10[j14]=j18<<24|j18>>>8,j11[j14]=j18<<16|j18>>>16,j12[j14]=j18<<8|j18>>>24,j13[j14]=j18,j2?(j2=j15^j0[j0[j0[j17^j15]]],j3^=j0[j0[j3]]):j2=j3=1;}}();var j14=[0,1,2,4,8,16,32,64,128,27,54],j15=j2.AES=j1.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var j0=this._keyPriorReset=this._key,j1=j0.words,j2=j0.sigBytes/4,j3=4*((this._nRounds=j2+6)+1),j5=this._keySchedule=[],j6=0;j6<j3;j6++)if(j6<j2)j5[j6]=j1[j6];else{var j7=j5[j6-1];j6%j2?j2>6&&j6%j2==4&&(j7=j4[j7>>>24]<<24|j4[j7>>>16&255]<<16|j4[j7>>>8&255]<<8|j4[255&j7]):(j7=j4[(j7=j7<<8|j7>>>24)>>>24]<<24|j4[j7>>>16&255]<<16|j4[j7>>>8&255]<<8|j4[255&j7],j7^=j14[j6/j2|0]<<24),j5[j6]=j5[j6-j2]^j7;}for(var j8=this._invKeySchedule=[],j9=0;j9<j3;j9++)j6=j3-j9,j7=j9%4?j5[j6]:j5[j6-4],j8[j9]=j9<4||j6<=4?j7:j10[j4[j7>>>24]]^j11[j4[j7>>>16&255]]^j12[j4[j7>>>8&255]]^j13[j4[255&j7]];}},encryptBlock:function(j0,j1){this._doCryptBlock(j0,j1,this._keySchedule,j6,j7,j8,j9,j4);},decryptBlock:function(j0,j1){var j2=j0[j1+1];j0[j1+1]=j0[j1+3],j0[j1+3]=j2,this._doCryptBlock(j0,j1,this._invKeySchedule,j10,j11,j12,j13,j5),j2=j0[j1+1],j0[j1+1]=j0[j1+3],j0[j1+3]=j2;},_doCryptBlock:function(j0,j1,j2,j3,j4,j5,j6,j7){for(var j8=this._nRounds,j9=j0[j1]^j2[0],j10=j0[j1+1]^j2[1],j11=j0[j1+2]^j2[2],j12=j0[j1+3]^j2[3],j13=4,j14=1;j14<j8;j14++){var j15=j3[j9>>>24]^j4[j10>>>16&255]^j5[j11>>>8&255]^j6[255&j12]^j2[j13++],j16=j3[j10>>>24]^j4[j11>>>16&255]^j5[j12>>>8&255]^j6[255&j9]^j2[j13++],j17=j3[j11>>>24]^j4[j12>>>16&255]^j5[j9>>>8&255]^j6[255&j10]^j2[j13++],j18=j3[j12>>>24]^j4[j9>>>16&255]^j5[j10>>>8&255]^j6[255&j11]^j2[j13++];j9=j15,j10=j16,j11=j17,j12=j18;}j15=(j7[j9>>>24]<<24|j7[j10>>>16&255]<<16|j7[j11>>>8&255]<<8|j7[255&j12])^j2[j13++],j16=(j7[j10>>>24]<<24|j7[j11>>>16&255]<<16|j7[j12>>>8&255]<<8|j7[255&j9])^j2[j13++],j17=(j7[j11>>>24]<<24|j7[j12>>>16&255]<<16|j7[j9>>>8&255]<<8|j7[255&j10])^j2[j13++],j18=(j7[j12>>>24]<<24|j7[j9>>>16&255]<<16|j7[j10>>>8&255]<<8|j7[255&j11])^j2[j13++],j0[j1]=j15,j0[j1+1]=j16,j0[j1+2]=j17,j0[j1+3]=j18;},keySize:8});j0.AES=j1._createHelper(j15);}(),j3.AES);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(30),j2(31),j2(23),j2(3),function(){var j0=j3,j1=j0.lib,j2=j1.WordArray,j4=j1.BlockCipher,j5=j0.algo,j6=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],j7=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],j8=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],j9=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],j10=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],j11=j5.DES=j4.extend({_doReset:function(){for(var j0=this._key.words,j1=[],j2=0;j2<56;j2++){var j3=j6[j2]-1;j1[j2]=j0[j3>>>5]>>>31-j3%32&1;}for(var j4=this._subKeys=[],j5=0;j5<16;j5++){var j9=j4[j5]=[],j10=j8[j5];for(j2=0;j2<24;j2++)j9[j2/6|0]|=j1[(j7[j2]-1+j10)%28]<<31-j2%6,j9[4+(j2/6|0)]|=j1[28+(j7[j2+24]-1+j10)%28]<<31-j2%6;for(j9[0]=j9[0]<<1|j9[0]>>>31,j2=1;j2<7;j2++)j9[j2]=j9[j2]>>>4*(j2-1)+3;j9[7]=j9[7]<<5|j9[7]>>>27;}var j11=this._invSubKeys=[];for(j2=0;j2<16;j2++)j11[j2]=j4[15-j2];},encryptBlock:function(j0,j1){this._doCryptBlock(j0,j1,this._subKeys);},decryptBlock:function(j0,j1){this._doCryptBlock(j0,j1,this._invSubKeys);},_doCryptBlock:function(j0,j1,j2){this._lBlock=j0[j1],this._rBlock=j0[j1+1],j12.call(this,4,252645135),j12.call(this,16,65535),j13.call(this,2,858993459),j13.call(this,8,16711935),j12.call(this,1,1431655765);for(var j3=0;j3<16;j3++){for(var j4=j2[j3],j5=this._lBlock,j6=this._rBlock,j7=0,j8=0;j8<8;j8++)j7|=j9[j8][((j6^j4[j8])&j10[j8])>>>0];this._lBlock=j6,this._rBlock=j5^j7;}var j11=this._lBlock;this._lBlock=this._rBlock,this._rBlock=j11,j12.call(this,1,1431655765),j13.call(this,8,16711935),j13.call(this,2,858993459),j12.call(this,16,65535),j12.call(this,4,252645135),j0[j1]=this._lBlock,j0[j1+1]=this._rBlock;},keySize:2,ivSize:2,blockSize:2});function j12(j0,j1){var j2=(this._lBlock>>>j0^this._rBlock)&j1;this._rBlock^=j2,this._lBlock^=j2<<j0;}function j13(j0,j1){var j2=(this._rBlock>>>j0^this._lBlock)&j1;this._lBlock^=j2,this._rBlock^=j2<<j0;}j0.DES=j4._createHelper(j11);var j14=j5.TripleDES=j4.extend({_doReset:function(){var j0=this._key.words;this._des1=j11.createEncryptor(j2.create(j0.slice(0,2))),this._des2=j11.createEncryptor(j2.create(j0.slice(2,4))),this._des3=j11.createEncryptor(j2.create(j0.slice(4,6)));},encryptBlock:function(j0,j1){this._des1.encryptBlock(j0,j1),this._des2.decryptBlock(j0,j1),this._des3.encryptBlock(j0,j1);},decryptBlock:function(j0,j1){this._des3.decryptBlock(j0,j1),this._des2.encryptBlock(j0,j1),this._des1.decryptBlock(j0,j1);},keySize:6,ivSize:2,blockSize:2});j0.TripleDES=j4._createHelper(j14);}(),j3.TripleDES);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(30),j2(31),j2(23),j2(3),function(){var j0=j3,j1=j0.lib.StreamCipher,j2=j0.algo,j4=j2.RC4=j1.extend({_doReset:function(){for(var j0=this._key,j1=j0.words,j2=j0.sigBytes,j3=this._S=[],j4=0;j4<256;j4++)j3[j4]=j4;j4=0;for(var j5=0;j4<256;j4++){var j6=j4%j2,j7=j1[j6>>>2]>>>24-j6%4*8&255;j5=(j5+j3[j4]+j7)%256;var j8=j3[j4];j3[j4]=j3[j5],j3[j5]=j8;}this._i=this._j=0;},_doProcessBlock:function(j0,j1){j0[j1]^=j5.call(this);},keySize:8,ivSize:0});function j5(){for(var j0=this._S,j1=this._i,j2=this._j,j3=0,j4=0;j4<4;j4++){j2=(j2+j0[j1=(j1+1)%256])%256;var j5=j0[j1];j0[j1]=j0[j2],j0[j2]=j5,j3|=j0[(j0[j1]+j0[j2])%256]<<24-8*j4;}return this._i=j1,this._j=j2,j3;}j0.RC4=j1._createHelper(j4);var j6=j2.RC4Drop=j4.extend({cfg:j4.cfg.extend({drop:192}),_doReset:function(){j4._doReset.call(this);for(var j0=this.cfg.drop;j0>0;j0--)j5.call(this);}});j0.RC4Drop=j1._createHelper(j6);}(),j3.RC4);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(30),j2(31),j2(23),j2(3),function(){var j0=j3,j1=j0.lib.StreamCipher,j2=j0.algo,j4=[],j5=[],j6=[],j7=j2.Rabbit=j1.extend({_doReset:function(){for(var j0=this._key.words,j1=this.cfg.iv,j2=0;j2<4;j2++)j0[j2]=16711935&(j0[j2]<<8|j0[j2]>>>24)|4278255360&(j0[j2]<<24|j0[j2]>>>8);var j3=this._X=[j0[0],j0[3]<<16|j0[2]>>>16,j0[1],j0[0]<<16|j0[3]>>>16,j0[2],j0[1]<<16|j0[0]>>>16,j0[3],j0[2]<<16|j0[1]>>>16],j4=this._C=[j0[2]<<16|j0[2]>>>16,4294901760&j0[0]|65535&j0[1],j0[3]<<16|j0[3]>>>16,4294901760&j0[1]|65535&j0[2],j0[0]<<16|j0[0]>>>16,4294901760&j0[2]|65535&j0[3],j0[1]<<16|j0[1]>>>16,4294901760&j0[3]|65535&j0[0]];for(this._b=0,j2=0;j2<4;j2++)j8.call(this);for(j2=0;j2<8;j2++)j4[j2]^=j3[j2+4&7];if(j1){var j5=j1.words,j6=j5[0],j7=j5[1],j9=16711935&(j6<<8|j6>>>24)|4278255360&(j6<<24|j6>>>8),j10=16711935&(j7<<8|j7>>>24)|4278255360&(j7<<24|j7>>>8),j11=j9>>>16|4294901760&j10,j12=j10<<16|65535&j9;for(j4[0]^=j9,j4[1]^=j11,j4[2]^=j10,j4[3]^=j12,j4[4]^=j9,j4[5]^=j11,j4[6]^=j10,j4[7]^=j12,j2=0;j2<4;j2++)j8.call(this);}},_doProcessBlock:function(j0,j1){var j2=this._X;j8.call(this),j4[0]=j2[0]^j2[5]>>>16^j2[3]<<16,j4[1]=j2[2]^j2[7]>>>16^j2[5]<<16,j4[2]=j2[4]^j2[1]>>>16^j2[7]<<16,j4[3]=j2[6]^j2[3]>>>16^j2[1]<<16;for(var j3=0;j3<4;j3++)j4[j3]=16711935&(j4[j3]<<8|j4[j3]>>>24)|4278255360&(j4[j3]<<24|j4[j3]>>>8),j0[j1+j3]^=j4[j3];},blockSize:4,ivSize:2});function j8(){for(var j0=this._X,j1=this._C,j2=0;j2<8;j2++)j5[j2]=j1[j2];for(j1[0]=j1[0]+1295307597+this._b|0,j1[1]=j1[1]+3545052371+(j1[0]>>>0<j5[0]>>>0?1:0)|0,j1[2]=j1[2]+886263092+(j1[1]>>>0<j5[1]>>>0?1:0)|0,j1[3]=j1[3]+1295307597+(j1[2]>>>0<j5[2]>>>0?1:0)|0,j1[4]=j1[4]+3545052371+(j1[3]>>>0<j5[3]>>>0?1:0)|0,j1[5]=j1[5]+886263092+(j1[4]>>>0<j5[4]>>>0?1:0)|0,j1[6]=j1[6]+1295307597+(j1[5]>>>0<j5[5]>>>0?1:0)|0,j1[7]=j1[7]+3545052371+(j1[6]>>>0<j5[6]>>>0?1:0)|0,this._b=j1[7]>>>0<j5[7]>>>0?1:0,j2=0;j2<8;j2++){var j3=j0[j2]+j1[j2],j4=65535&j3,j7=j3>>>16,j8=((j4*j4>>>17)+j4*j7>>>15)+j7*j7,j9=((4294901760&j3)*j3|0)+((65535&j3)*j3|0);j6[j2]=j8^j9;}j0[0]=j6[0]+(j6[7]<<16|j6[7]>>>16)+(j6[6]<<16|j6[6]>>>16)|0,j0[1]=j6[1]+(j6[0]<<8|j6[0]>>>24)+j6[7]|0,j0[2]=j6[2]+(j6[1]<<16|j6[1]>>>16)+(j6[0]<<16|j6[0]>>>16)|0,j0[3]=j6[3]+(j6[2]<<8|j6[2]>>>24)+j6[1]|0,j0[4]=j6[4]+(j6[3]<<16|j6[3]>>>16)+(j6[2]<<16|j6[2]>>>16)|0,j0[5]=j6[5]+(j6[4]<<8|j6[4]>>>24)+j6[3]|0,j0[6]=j6[6]+(j6[5]<<16|j6[5]>>>16)+(j6[4]<<16|j6[4]>>>16)|0,j0[7]=j6[7]+(j6[6]<<8|j6[6]>>>24)+j6[5]|0;}j0.Rabbit=j1._createHelper(j7);}(),j3.Rabbit);},function(j0,j1,j2){var j3;j0.exports=(j3=j2(0),j2(30),j2(31),j2(23),j2(3),function(){var j0=j3,j1=j0.lib.StreamCipher,j2=j0.algo,j4=[],j5=[],j6=[],j7=j2.RabbitLegacy=j1.extend({_doReset:function(){var j0=this._key.words,j1=this.cfg.iv,j2=this._X=[j0[0],j0[3]<<16|j0[2]>>>16,j0[1],j0[0]<<16|j0[3]>>>16,j0[2],j0[1]<<16|j0[0]>>>16,j0[3],j0[2]<<16|j0[1]>>>16],j3=this._C=[j0[2]<<16|j0[2]>>>16,4294901760&j0[0]|65535&j0[1],j0[3]<<16|j0[3]>>>16,4294901760&j0[1]|65535&j0[2],j0[0]<<16|j0[0]>>>16,4294901760&j0[2]|65535&j0[3],j0[1]<<16|j0[1]>>>16,4294901760&j0[3]|65535&j0[0]];this._b=0;for(var j4=0;j4<4;j4++)j8.call(this);for(j4=0;j4<8;j4++)j3[j4]^=j2[j4+4&7];if(j1){var j5=j1.words,j6=j5[0],j7=j5[1],j9=16711935&(j6<<8|j6>>>24)|4278255360&(j6<<24|j6>>>8),j10=16711935&(j7<<8|j7>>>24)|4278255360&(j7<<24|j7>>>8),j11=j9>>>16|4294901760&j10,j12=j10<<16|65535&j9;for(j3[0]^=j9,j3[1]^=j11,j3[2]^=j10,j3[3]^=j12,j3[4]^=j9,j3[5]^=j11,j3[6]^=j10,j3[7]^=j12,j4=0;j4<4;j4++)j8.call(this);}},_doProcessBlock:function(j0,j1){var j2=this._X;j8.call(this),j4[0]=j2[0]^j2[5]>>>16^j2[3]<<16,j4[1]=j2[2]^j2[7]>>>16^j2[5]<<16,j4[2]=j2[4]^j2[1]>>>16^j2[7]<<16,j4[3]=j2[6]^j2[3]>>>16^j2[1]<<16;for(var j3=0;j3<4;j3++)j4[j3]=16711935&(j4[j3]<<8|j4[j3]>>>24)|4278255360&(j4[j3]<<24|j4[j3]>>>8),j0[j1+j3]^=j4[j3];},blockSize:4,ivSize:2});function j8(){for(var j0=this._X,j1=this._C,j2=0;j2<8;j2++)j5[j2]=j1[j2];for(j1[0]=j1[0]+1295307597+this._b|0,j1[1]=j1[1]+3545052371+(j1[0]>>>0<j5[0]>>>0?1:0)|0,j1[2]=j1[2]+886263092+(j1[1]>>>0<j5[1]>>>0?1:0)|0,j1[3]=j1[3]+1295307597+(j1[2]>>>0<j5[2]>>>0?1:0)|0,j1[4]=j1[4]+3545052371+(j1[3]>>>0<j5[3]>>>0?1:0)|0,j1[5]=j1[5]+886263092+(j1[4]>>>0<j5[4]>>>0?1:0)|0,j1[6]=j1[6]+1295307597+(j1[5]>>>0<j5[5]>>>0?1:0)|0,j1[7]=j1[7]+3545052371+(j1[6]>>>0<j5[6]>>>0?1:0)|0,this._b=j1[7]>>>0<j5[7]>>>0?1:0,j2=0;j2<8;j2++){var j3=j0[j2]+j1[j2],j4=65535&j3,j7=j3>>>16,j8=((j4*j4>>>17)+j4*j7>>>15)+j7*j7,j9=((4294901760&j3)*j3|0)+((65535&j3)*j3|0);j6[j2]=j8^j9;}j0[0]=j6[0]+(j6[7]<<16|j6[7]>>>16)+(j6[6]<<16|j6[6]>>>16)|0,j0[1]=j6[1]+(j6[0]<<8|j6[0]>>>24)+j6[7]|0,j0[2]=j6[2]+(j6[1]<<16|j6[1]>>>16)+(j6[0]<<16|j6[0]>>>16)|0,j0[3]=j6[3]+(j6[2]<<8|j6[2]>>>24)+j6[1]|0,j0[4]=j6[4]+(j6[3]<<16|j6[3]>>>16)+(j6[2]<<16|j6[2]>>>16)|0,j0[5]=j6[5]+(j6[4]<<8|j6[4]>>>24)+j6[3]|0,j0[6]=j6[6]+(j6[5]<<16|j6[5]>>>16)+(j6[4]<<16|j6[4]>>>16)|0,j0[7]=j6[7]+(j6[6]<<8|j6[6]>>>24)+j6[5]|0;}j0.RabbitLegacy=j1._createHelper(j7);}(),j3.RabbitLegacy);},function(j0,j1,j2){j0.exports={sm2:j2(252),sm3:j2(256),sm4:j2(257)};},function(j0,j1,j2){const{BigInteger:j3}=j2(57),{encodeDer:j4,decodeDer:j5}=j2(253),j6=j2(254),j7=j2(128),{G:j8,curve:j9,n:j10}=j6.generateEcparam();function j11(j0,j1,j2="1234567812345678"){j2=j6.utf8ToHex(j2);const j3=j6.leftPad(j8.curve.a.toBigInteger().toRadix(16),64),j4=j6.leftPad(j8.curve.b.toBigInteger().toRadix(16),64),j5=j6.leftPad(j8.getX().toBigInteger().toRadix(16),64),j9=j6.leftPad(j8.getY().toBigInteger().toRadix(16),64);j1.length>128&&(j1=j1.substr(2,128));const j10=j1.substr(0,64),j11=j1.substr(64,64),j12=j6.hexToArray(j2+j3+j4+j5+j9+j10+j11),j13=4*j2.length;j12.unshift(255&j13),j12.unshift(65280&j13);const j14=j7(j12);return j6.arrayToHex(j7(j14.concat(j6.hexToArray(j0))));}function j12(){const j0=j6.generateKeyPairHex(),j1=j9.decodePointHex(j0.publicKey);return j0.k=new j3(j0.privateKey,16),j0.x1=j1.getX().toBigInteger(),j0;}j0.exports={generateKeyPairHex:j6.generateKeyPairHex,doEncrypt:function(j0,j1,j2=1){j0=j6.hexToArray(j6.utf8ToHex(j0)),j1=j6.getGlobalCurve().decodePointHex(j1);const j4=j6.generateKeyPairHex(),j5=new j3(j4.privateKey,16);let j8=j4.publicKey;j8.length>128&&(j8=j8.substr(j8.length-128));const j9=j1.multiply(j5),j10=j6.hexToArray(j6.leftPad(j9.getX().toBigInteger().toRadix(16),64)),j11=j6.hexToArray(j6.leftPad(j9.getY().toBigInteger().toRadix(16),64)),j12=j6.arrayToHex(j7([].concat(j10,j0,j11)));let j13=1,j14=0,j15=[];const j16=[].concat(j10,j11),j17=()=>{j15=j7([...j16,j13>>24&255,j13>>16&255,j13>>8&255,255&j13]),j13++,j14=0;};j17();for(let j1=0,j2=j0.length;j1<j2;j1++)j14===j15.length&&j17(),j0[j1]^=255&j15[j14++];const j18=j6.arrayToHex(j0);return 0===j2?j8+j18+j12:j8+j12+j18;},doDecrypt:function(j0,j1,j2=1){j1=new j3(j1,16);let j4=j0.substr(128,64),j5=j0.substr(192);0===j2&&(j4=j0.substr(j0.length-64),j5=j0.substr(128,j0.length-128-64));const j8=j6.hexToArray(j5),j9=j6.getGlobalCurve().decodePointHex("04"+j0.substr(0,128)).multiply(j1),j10=j6.hexToArray(j6.leftPad(j9.getX().toBigInteger().toRadix(16),64)),j11=j6.hexToArray(j6.leftPad(j9.getY().toBigInteger().toRadix(16),64));let j12=1,j13=0,j14=[];const j15=[].concat(j10,j11),j16=()=>{j14=j7([...j15,j12>>24&255,j12>>16&255,j12>>8&255,255&j12]),j12++,j13=0;};j16();for(let j0=0,j1=j8.length;j0<j1;j0++)j13===j14.length&&j16(),j8[j0]^=255&j14[j13++];return j6.arrayToHex(j7([].concat(j10,j8,j11)))===j4?j6.arrayToUtf8(j8):"";},doSignature:function(j0,j1,{pointPool:j2,der:j5,hash:j7,publicKey:j9,userId:j13}={}){let j14="string"==typeof j0?j6.utf8ToHex(j0):j6.arrayToHex(j0);j7&&(j9=j9||function(j0){const j1=j8.multiply(new j3(j0,16)),j2=j6.leftPad(j1.getX().toBigInteger().toString(16),64),j4=j6.leftPad(j1.getY().toBigInteger().toString(16),64);return"04"+j2+j4;}(j1),j14=j11(j14,j9,j13));const j15=new j3(j1,16),j16=new j3(j14,16);let j17=null,j18=null,j19=null;do{do{let j0;j0=j2&&j2.length?j2.pop():j12(),j17=j0.k,j18=j16.add(j0.x1).mod(j10);}while(j18.equals(j3.ZERO)||j18.add(j17).equals(j10));j19=j15.add(j3.ONE).modInverse(j10).multiply(j17.subtract(j18.multiply(j15))).mod(j10);}while(j19.equals(j3.ZERO));return j5?j4(j18,j19):j6.leftPad(j18.toString(16),64)+j6.leftPad(j19.toString(16),64);},doVerifySignature:function(j0,j1,j2,{der:j4,hash:j7,userId:j12}={}){let j13,j14,j15="string"==typeof j0?j6.utf8ToHex(j0):j6.arrayToHex(j0);if(j7&&(j15=j11(j15,j2,j12)),j4){const j0=j5(j1);j13=j0.r,j14=j0.s;}else j13=new j3(j1.substring(0,64),16),j14=new j3(j1.substring(64),16);const j16=j9.decodePointHex(j2),j17=new j3(j15,16),j18=j13.add(j14).mod(j10);if(j18.equals(j3.ZERO))return!1;const j19=j8.multiply(j14).add(j16.multiply(j18)),j20=j17.add(j19.getX().toBigInteger()).mod(j10);return j13.equals(j20);},getPoint:j12};},function(j0,j1,j2){const{BigInteger:j3}=j2(57);class j4{constructor(){this.tlv=null,this.t="00",this.l="00",this.v="";}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv;}getLength(){const j0=this.v.length/2;let j1=j0.toString(16);if(j1.length%2==1&&(j1="0"+j1),j0<128)return j1;return(128+j1.length/2).toString(16)+j1;}getValue(){return"";}}class j5 extends j4{constructor(j0){super(),this.t="02",j0&&(this.v=function(j0){let j1=j0.toString(16);if("-"!==j1[0])j1.length%2==1?j1="0"+j1:j1.match(/^[0-7]/)||(j1="00"+j1);else{j1=j1.substr(1);let j2=j1.length;j2%2==1?j2+=1:j1.match(/^[0-7]/)||(j2+=2);let j4="";for(let j0=0;j0<j2;j0++)j4+="f";j4=new j3(j4,16),j1=j4.xor(j0).add(j3.ONE),j1=j1.toString(16).replace(/^-/,"");}return j1;}(j0));}getValue(){return this.v;}}class j6 extends j4{constructor(j0){super(),this.t="30",this.asn1Array=j0;}getValue(){return this.v=this.asn1Array.map(j0=>j0.getEncodedHex()).join(""),this.v;}}function j7(j0,j1){return+j0[j1+2]<8?1:128&+j0.substr(j1+2,2);}function j8(j0,j1){const j2=j7(j0,j1),j4=j0.substr(j1+2,2*j2);if(!j4)return-1;return(+j4[0]<8?new j3(j4,16):new j3(j4.substr(2),16)).intValue();}function j9(j0,j1){return j1+2*(j7(j0,j1)+1);}j0.exports={encodeDer(j0,j1){const j2=new j5(j0),j3=new j5(j1);return new j6([j2,j3]).getEncodedHex();},decodeDer(j0){const j1=j9(j0,0),j2=j9(j0,j1),j4=j8(j0,j1),j5=j0.substr(j2,2*j4),j6=j2+j5.length,j7=j9(j0,j6),j10=j8(j0,j6),j11=j0.substr(j7,2*j10);return{r:new j3(j5,16),s:new j3(j11,16)};}};},function(j0,j1,j2){const{BigInteger:j3,SecureRandom:j4}=j2(57),{ECCurveFp:j5}=j2(255),j6=new j4(),{curve:j7,G:j8,n:j9}=j10();function j10(){const j0=new j3("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),j1=new j3("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),j2=new j3("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),j4=new j5(j0,j1,j2),j6=j4.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:j4,G:j6,n:new j3("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)};}function j11(j0,j1){return j0.length>=j1?j0:new Array(j1-j0.length+1).join("0")+j0;}j0.exports={getGlobalCurve:function(){return j7;},generateEcparam:j10,generateKeyPairHex:function(){const j0=new j3(j9.bitLength(),j6).mod(j9.subtract(j3.ONE)).add(j3.ONE),j1=j11(j0.toString(16),64),j2=j8.multiply(j0);return{privateKey:j1,publicKey:"04"+j11(j2.getX().toBigInteger().toString(16),64)+j11(j2.getY().toBigInteger().toString(16),64)};},utf8ToHex:function(j0){const j1=(j0=unescape(encodeURIComponent(j0))).length,j2=[];for(let j3=0;j3<j1;j3++)j2[j3>>>2]|=(255&j0.charCodeAt(j3))<<24-j3%4*8;const j3=[];for(let j0=0;j0<j1;j0++){const j1=j2[j0>>>2]>>>24-j0%4*8&255;j3.push((j1>>>4).toString(16)),j3.push((15&j1).toString(16));}return j3.join("");},leftPad:j11,arrayToHex:function(j0){return j0.map(j0=>1===(j0=j0.toString(16)).length?"0"+j0:j0).join("");},arrayToUtf8:function(j0){const j1=[];let j2=0;for(let j3=0;j3<2*j0.length;j3+=2)j1[j3>>>3]|=parseInt(j0[j2],10)<<24-j3%8*4,j2++;try{const j2=[];for(let j3=0;j3<j0.length;j3++){const j0=j1[j3>>>2]>>>24-j3%4*8&255;j2.push(String.fromCharCode(j0));}return decodeURIComponent(escape(j2.join("")));}catch(j0){throw new Error("Malformed UTF-8 data");}},hexToArray:function(j0){const j1=[];let j2=j0.length;j2%2!=0&&(j0=j11(j0,j2+1)),j2=j0.length;for(let j3=0;j3<j2;j3+=2)j1.push(parseInt(j0.substr(j3,2),16));return j1;}};},function(j0,j1,j2){const{BigInteger:j3}=j2(57),j4=new j3("3");class j5{constructor(j0,j1){this.x=j1,this.q=j0;}equals(j0){return j0===this||this.q.equals(j0.q)&&this.x.equals(j0.x);}toBigInteger(){return this.x;}negate(){return new j5(this.q,this.x.negate().mod(this.q));}add(j0){return new j5(this.q,this.x.add(j0.toBigInteger()).mod(this.q));}subtract(j0){return new j5(this.q,this.x.subtract(j0.toBigInteger()).mod(this.q));}multiply(j0){return new j5(this.q,this.x.multiply(j0.toBigInteger()).mod(this.q));}divide(j0){return new j5(this.q,this.x.multiply(j0.toBigInteger().modInverse(this.q)).mod(this.q));}square(){return new j5(this.q,this.x.square().mod(this.q));}}class j6{constructor(j0,j1,j2,j4){this.curve=j0,this.x=j1,this.y=j2,this.z=null==j4?j3.ONE:j4,this.zinv=null;}getX(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q));}getY(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q));}equals(j0){if(j0===this)return!0;if(this.isInfinity())return j0.isInfinity();if(j0.isInfinity())return this.isInfinity();if(!j0.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(j0.z)).mod(this.curve.q).equals(j3.ZERO))return!1;return j0.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(j0.z)).mod(this.curve.q).equals(j3.ZERO);}isInfinity(){return null===this.x&&null===this.y||this.z.equals(j3.ZERO)&&!this.y.toBigInteger().equals(j3.ZERO);}negate(){return new j6(this.curve,this.x,this.y.negate(),this.z);}add(j0){if(this.isInfinity())return j0;if(j0.isInfinity())return this;const j1=this.x.toBigInteger(),j2=this.y.toBigInteger(),j4=this.z,j5=j0.x.toBigInteger(),j7=j0.y.toBigInteger(),j8=j0.z,j9=this.curve.q,j10=j1.multiply(j8).mod(j9),j11=j5.multiply(j4).mod(j9),j12=j10.subtract(j11),j13=j2.multiply(j8).mod(j9),j14=j7.multiply(j4).mod(j9),j15=j13.subtract(j14);if(j3.ZERO.equals(j12))return j3.ZERO.equals(j15)?this.twice():this.curve.infinity;const j16=j10.add(j11),j17=j4.multiply(j8).mod(j9),j18=j12.square().mod(j9),j19=j12.multiply(j18).mod(j9),j20=j17.multiply(j15.square()).subtract(j16.multiply(j18)).mod(j9),j21=j12.multiply(j20).mod(j9),j22=j15.multiply(j18.multiply(j10).subtract(j20)).subtract(j13.multiply(j19)).mod(j9),j23=j19.multiply(j17).mod(j9);return new j6(this.curve,this.curve.fromBigInteger(j21),this.curve.fromBigInteger(j22),j23);}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const j0=this.x.toBigInteger(),j1=this.y.toBigInteger(),j2=this.z,j3=this.curve.q,j5=this.curve.a.toBigInteger(),j7=j0.square().multiply(j4).add(j5.multiply(j2.square())).mod(j3),j8=j1.shiftLeft(1).multiply(j2).mod(j3),j9=j1.square().mod(j3),j10=j9.multiply(j0).multiply(j2).mod(j3),j11=j8.square().mod(j3),j12=j7.square().subtract(j10.shiftLeft(3)).mod(j3),j13=j8.multiply(j12).mod(j3),j14=j7.multiply(j10.shiftLeft(2).subtract(j12)).subtract(j11.shiftLeft(1).multiply(j9)).mod(j3),j15=j8.multiply(j11).mod(j3);return new j6(this.curve,this.curve.fromBigInteger(j13),this.curve.fromBigInteger(j14),j15);}multiply(j0){if(this.isInfinity())return this;if(!j0.signum())return this.curve.infinity;const j1=j0.multiply(j4),j2=this.negate();let j3=this;for(let j4=j1.bitLength()-2;j4>0;j4--){j3=j3.twice();const j5=j1.testBit(j4);j5!==j0.testBit(j4)&&(j3=j3.add(j5?this:j2));}return j3;}}j0.exports={ECPointFp:j6,ECCurveFp:class{constructor(j0,j1,j2){this.q=j0,this.a=this.fromBigInteger(j1),this.b=this.fromBigInteger(j2),this.infinity=new j6(this,null,null);}equals(j0){return j0===this||this.q.equals(j0.q)&&this.a.equals(j0.a)&&this.b.equals(j0.b);}fromBigInteger(j0){return new j5(this.q,j0);}decodePointHex(j0){switch(parseInt(j0.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:default:return null;case 4:case 6:case 7:const j1=(j0.length-2)/2,j2=j0.substr(2,j1),j4=j0.substr(j1+2,j1);return new j6(this,this.fromBigInteger(new j3(j2,16)),this.fromBigInteger(new j3(j4,16)));}}}};},function(j0,j1,j2){const j3=j2(128);j0.exports=function(j0){return j0="string"==typeof j0?function(j0){const j1=[];for(let j2=0,j3=j0.length;j2<j3;j2++){const j3=j0.codePointAt(j2);if(j3<=127)j1.push(j3);else if(j3<=2047)j1.push(192|j3>>>6),j1.push(128|63&j3);else if(j3<=55295||j3>=57344&&j3<=65535)j1.push(224|j3>>>12),j1.push(128|j3>>>6&63),j1.push(128|63&j3);else{if(!(j3>=65536&&j3<=1114111))throw j1.push(j3),new Error("input is not supported");j2++,j1.push(240|j3>>>18&28),j1.push(128|j3>>>12&63),j1.push(128|j3>>>6&63),j1.push(128|63&j3);}}return j1;}(j0):Array.prototype.slice.call(j0),j3(j0).map(j0=>1===(j0=j0.toString(16)).length?"0"+j0:j0).join("");};},function(j0,j1){const j2=16,j3=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],j4=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function j5(j0){const j1=[];for(let j2=0,j3=j0.length;j2<j3;j2+=2)j1.push(parseInt(j0.substr(j2,2),16));return j1;}function j6(j0,j1){return j0<<j1|j0>>>32-j1;}function j7(j0){return(255&j3[j0>>>24&255])<<24|(255&j3[j0>>>16&255])<<16|(255&j3[j0>>>8&255])<<8|255&j3[255&j0];}function j8(j0){return j0^j6(j0,2)^j6(j0,10)^j6(j0,18)^j6(j0,24);}function j9(j0){return j0^j6(j0,13)^j6(j0,23);}function j10(j0,j1,j2){const j3=new Array(4),j4=new Array(4);for(let j1=0;j1<4;j1++)j4[0]=255&j0[4*j1],j4[1]=255&j0[4*j1+1],j4[2]=255&j0[4*j1+2],j4[3]=255&j0[4*j1+3],j3[j1]=j4[0]<<24|j4[1]<<16|j4[2]<<8|j4[3];for(let j0,j1=0;j1<32;j1+=4)j0=j3[1]^j3[2]^j3[3]^j2[j1+0],j3[0]^=j8(j7(j0)),j0=j3[2]^j3[3]^j3[0]^j2[j1+1],j3[1]^=j8(j7(j0)),j0=j3[3]^j3[0]^j3[1]^j2[j1+2],j3[2]^=j8(j7(j0)),j0=j3[0]^j3[1]^j3[2]^j2[j1+3],j3[3]^=j8(j7(j0));for(let j0=0;j0<16;j0+=4)j1[j0]=j3[3-j0/4]>>>24&255,j1[j0+1]=j3[3-j0/4]>>>16&255,j1[j0+2]=j3[3-j0/4]>>>8&255,j1[j0+3]=255&j3[3-j0/4];}function j11(j0,j1,j3,{padding:j6="pkcs#5",mode:j8,iv:j11=[],output:j12="string"}={}){if("cbc"===j8&&("string"==typeof j11&&(j11=j5(j11)),16!==j11.length))throw new Error("iv is invalid");if("string"==typeof j1&&(j1=j5(j1)),16!==j1.length)throw new Error("key is invalid");if(j0="string"==typeof j0?0!==j3?function(j0){const j1=[];for(let j2=0,j3=j0.length;j2<j3;j2++){const j3=j0.codePointAt(j2);if(j3<=127)j1.push(j3);else if(j3<=2047)j1.push(192|j3>>>6),j1.push(128|63&j3);else if(j3<=55295||j3>=57344&&j3<=65535)j1.push(224|j3>>>12),j1.push(128|j3>>>6&63),j1.push(128|63&j3);else{if(!(j3>=65536&&j3<=1114111))throw j1.push(j3),new Error("input is not supported");j2++,j1.push(240|j3>>>18&28),j1.push(128|j3>>>12&63),j1.push(128|j3>>>6&63),j1.push(128|63&j3);}}return j1;}(j0):j5(j0):[...j0],"pkcs#5"===j6&&0!==j3){const j1=j2-j0.length%j2;for(let j2=0;j2<j1;j2++)j0.push(j1);}const j13=new Array(32);!function(j0,j1,j2){const j3=new Array(4),j5=new Array(4);for(let j1=0;j1<4;j1++)j5[0]=255&j0[0+4*j1],j5[1]=255&j0[1+4*j1],j5[2]=255&j0[2+4*j1],j5[3]=255&j0[3+4*j1],j3[j1]=j5[0]<<24|j5[1]<<16|j5[2]<<8|j5[3];j3[0]^=2746333894,j3[1]^=1453994832,j3[2]^=1736282519,j3[3]^=2993693404;for(let j0,j2=0;j2<32;j2+=4)j0=j3[1]^j3[2]^j3[3]^j4[j2+0],j1[j2+0]=j3[0]^=j9(j7(j0)),j0=j3[2]^j3[3]^j3[0]^j4[j2+1],j1[j2+1]=j3[1]^=j9(j7(j0)),j0=j3[3]^j3[0]^j3[1]^j4[j2+2],j1[j2+2]=j3[2]^=j9(j7(j0)),j0=j3[0]^j3[1]^j3[2]^j4[j2+3],j1[j2+3]=j3[3]^=j9(j7(j0));if(0===j2)for(let j0,j2=0;j2<16;j2++)j0=j1[j2],j1[j2]=j1[31-j2],j1[31-j2]=j0;}(j1,j13,j3);const j14=[];let j15=j11,j16=j0.length,j17=0;for(;j16>=j2;){const j1=j0.slice(j17,j17+16),j4=new Array(16);if("cbc"===j8)for(let j0=0;j0<j2;j0++)0!==j3&&(j1[j0]^=j15[j0]);j10(j1,j4,j13);for(let j0=0;j0<j2;j0++)"cbc"===j8&&0===j3&&(j4[j0]^=j15[j0]),j14[j17+j0]=j4[j0];"cbc"===j8&&(j15=0!==j3?j4:j1),j16-=j2,j17+=j2;}if("pkcs#5"===j6&&0===j3){const j0=j14[j14.length-1];j14.splice(j14.length-j0,j0);}return"array"!==j12?0!==j3?j14.map(j0=>1===(j0=j0.toString(16)).length?"0"+j0:j0).join(""):function(j0){const j1=[];for(let j2=0,j3=j0.length;j2<j3;j2++)j0[j2]>=240&&j0[j2]<=247?(j1.push(String.fromCodePoint(((7&j0[j2])<<18)+((63&j0[j2+1])<<12)+((63&j0[j2+2])<<6)+(63&j0[j2+3]))),j2+=3):j0[j2]>=224&&j0[j2]<=239?(j1.push(String.fromCodePoint(((15&j0[j2])<<12)+((63&j0[j2+1])<<6)+(63&j0[j2+2]))),j2+=2):j0[j2]>=192&&j0[j2]<=223?(j1.push(String.fromCodePoint(((31&j0[j2])<<6)+(63&j0[j2+1]))),j2++):j1.push(String.fromCodePoint(j0[j2]));return j1.join("");}(j14):j14;}j0.exports={encrypt:(j0,j1,j2)=>j11(j0,j1,1,j2),decrypt:(j0,j1,j2)=>j11(j0,j1,0,j2)};},function(j0,j1,j2){"use strict";(function(j1,j3){var j4,j5=j2(32),j6=(j4=j5)&&j4.__esModule?j4:{default:j4},j7=j2(268);j2(29);var j8=j2(269),j9=j2(132),j10=j2(152),j11=j2(88),j12=j2(92),j13={},j14="im.baibaodun.cn",j15="web_12345678",j16="121062f5f0346377f72064926f546246bcc5cd7c";function j17(j0,j1,j4,j5,j6){!function(j0,j1,j4,j5,j6){var j8=void 0,j9=j6&&j6.backupHost&&2===j6.backupAddressStrategy?j6.backupHost:"im.baibaodun.cn",j10=j6&&j6.backupHost&&2===j6.backupAddressStrategy?j6.backupPort:j12.default.ROUTE_PORT?j12.default.ROUTE_PORT:80;j12.default.USE_WSS?(j20("https route"),j8="https://"+j9+(443!==j10?":"+j10:"")+"/route"):j8="http://"+j9+(80!==j10?":"+j10:"")+"/route";j20("route url",j8);var j11=j2(95).RouteRequest,j13=j2(95).RouteResponse,j17=j2(95).IMHttpWrapper,j21=j2(29).AESDecrypt,j22=j2(29).Uint8ToStr,j23=j2(29).AESEncrypt,j24="",j25="",j26=j2(159).decode,j27=j2(159).encode,j28=new XMLHttpRequest(),j29=setTimeout(function(){!0,j28.abort(),console.log("request timeout, to abort");},1e4);j28.open("POST",j8),j28.onerror=function(){j20("route request error"),j5(-1);},j28.onabort=function(){j20("route request abort"),j5(-1);},j28.ontimeout=function(){j20("route request timeout"),j5(-1);},j28.onreadystatechange=function(){if(4===j28.readyState)if(clearTimeout(j29),200===j28.status){var j2=j26(j28.responseText);if(!j2||j2.byteLength<1)return j20("route response error",j28.responseText),void j5(-1);var j3=new Int8Array(j2,0,1);if(0===j3[0]){var j4=j27(j2.slice(1)),j9=j21(j4,j24,!0);if(null==j9)return function(j0){if(!j12.DISABLE_LOG){for(var j1,j2=arguments.length,j3=Array(j2>1?j2-1:0),j4=1;j4<j2;j4++)j3[j4-1]=arguments[j4];(j1=console).error.apply(j1,[j0].concat(j3));}}("route response error，可能原因是：所部署的 IM-Server 是社区版，不支持 Web 端接入；要专业版 IM-Server 才支持 Web 端接入!!!"),void j5(-1);var j10=j13.decode(j9);j20("route res",j10.host,j10.longPort,j10.wssPort);for(var j11=j10.node+"|"+j14,j15="",j16=0;j16<j11.length;j16++)j15+=String.fromCharCode(90^j11[j16].charCodeAt(0));j11=(0,j7.btoa)(unescape(encodeURIComponent(j15)));var j17={keepalive:j12.default.KEEP_ALIVE_TIMEOUT,clientId:j1,protocolId:"MQTT",protocolVersion:6,clean:!0,reconnectPeriod:0,resubscribe:!1,connectTimeout:2e4,a:j14,will:{topic:j11,payload:"Connection Closed abnormally..!",qos:1,retain:!1},rejectUnauthorized:!1};j17.username=j0,j17.password=j25;var j22=new Date().getTime(),j23=void 0,j30=(8&j10.commercial)>0,j31=void 0,j32=void 0;if(j6&&j6.backupHost&&2===j6.backupAddressStrategy){var j33=j10.candidate[0];j32=j33.host,j31=j33.wssPort;}else j32=j10.host,j31=j12.default.USE_WSS&&(j31=j30?j10.wssPort:j10.longPort)||j10.longPort;j20("connect url",j32,j31),j12.default.USE_WSS?(j20("wss mqtts"),j23=j18("mqtts://"+j32+":"+j31,j17)):(j20("ws mqtt",j12.default.USE_WSS),j23=j18("mqtt://"+j32+":"+j31,j17)),j19=j10.host;var j34={isReceiptEnable:(2&j10.commercial)>0,isClearGroupMsgWhenKickoff:(4&j10.commercial)>0,isDisableRoamingConvList:(16&j10.commercial)>0,isKeepMsgAfterDismiss:(32&j10.commercial)>0,isSupportBigFileUpload:(64&j10.commercial)>0,isBackupDownloadUrl:(128&j10.commercial)>0,isGlobalDisableSyncDraft:(256&j10.commercial)>0,isSupportQos0Message:(512&j10.commercial)>0,isUserOnlineStateEnable:(1024&j10.commercial)>0};(1&j10.commercial)>0?j5(0,j23,j24,j22,j34):j5(-1);}else j20("route error",j8,j3[0]),j5(j3[0]);}else j20("http route error，请先检查下USE_WSS、ROUTE_PORT配置",j8,j28.status),j5(-1);},j28.setRequestHeader("p","web"),j28.setRequestHeader("appId",j15),j28.setRequestHeader("appKey",j16),j28.setRequestHeader("cid",j23(j1)),j28.setRequestHeader("uid",j23(j0)),j28.setRequestHeader("Content-Type","application/octet-stream");var j30=j11.create();j30.app="cn.wildfirechat.chat.web",j30.appVersion="0.1",j30.deviceName="browser",j30.platform=5,j30.phoneName="browser",j30.sdkVersion="0.1",j30.language=j12.default.LANGUAGE;var j31=void 0;try{j31=j22(j21(j4,"",!1));}catch(j0){j20("token error!!!");}var j32=j31.split("|")[0];j24=j31.split("|")[1],j25=new j3(j23(j32,j24),"base64"),j30.host=j23("im.baibaodun.cn","");var j33=j11.encode(j30).finish(),j34=j17.create();j34.clientId=j1,j34.token=j32,j34.request="ROUTE",j34.data=j33;var j35=j17.encode(j34).finish(),j36=j23(j35,j24);j28.send(j36);}(j0,j1,j4,j5,j6);}function j18(j0,j1){if("object"!==(void 0===j0?"undefined":(0,j6.default)(j0))||j1||(j1=j0,j0=null),j1=j1||{},j0){var j2=j10.parse(j0,!0);if(null!=j2.port&&(j2.port=Number(j2.port)),null===(j1=j11(j2,j1)).protocol)throw new Error("Missing protocol");j1.protocol=j1.protocol.replace(/:$/,"");}if(function(j0){var j1;j0.auth&&((j1=j0.auth.match(/^(.+):(.+)$/))?(j0.username=j1[1],j0.password=j1[2]):j0.username=j0.auth);}(j1),j1.query&&"string"==typeof j1.query.clientId&&(j1.clientId=j1.query.clientId),j1.cert&&j1.key){if(!j1.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs","alis"].indexOf(j1.protocol))switch(j1.protocol){case"mqtt":j1.protocol="mqtts";break;case"ws":j1.protocol="wss";break;case"wx":j1.protocol="wxs";break;case"ali":j1.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+j1.protocol+'"!');}}if(!j13[j1.protocol]){var j3=-1!==["mqtts","wss"].indexOf(j1.protocol);j1.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter(function(j0,j1){return(!j3||j1%2!=0)&&"function"==typeof j13[j0];})[0];}if(!1===j1.clean&&!j1.clientId)throw new Error("Missing clientId for unclean clients");return j1.protocol&&(j1.defaultProtocol=j1.protocol),new j8(function(j0){return j1.servers&&(j0._reconnectCount&&j0._reconnectCount!==j1.servers.length||(j0._reconnectCount=0),j1.host=j1.servers[j0._reconnectCount].host,j1.port=j1.servers[j0._reconnectCount].port,j1.protocol=j1.servers[j0._reconnectCount].protocol?j1.servers[j0._reconnectCount].protocol:j1.defaultProtocol,j1.hostname=j1.host,j0._reconnectCount++),j13[j1.protocol](j0,j1);},j1);}"browser"!==j1.title?(j13.mqtt=j2(154),j13.tcp=j2(154),j13.ssl=j2(93),j13.tls=j2(93),j13.mqtts=j2(93)):(j13.wx=j2(155),j13.wxs=j2(155),j13.ali=j2(156),j13.alis=j2(156)),j13.ws=j2(157),j13.wss=j2(157);var j19="";function j20(j0){if(!j12.default.DISABLE_LOG){for(var j1,j2=arguments.length,j3=Array(j2>1?j2-1:0),j4=1;j4<j2;j4++)j3[j4-1]=arguments[j4];(j1=console).log.apply(j1,[j0].concat(j3));}}j0.exports=j17,j0.exports.connect=j17,j0.exports.MqttClient=j8,j0.exports.Store=j9,j0.exports.host=function(){return j19;};}).call(this,j2(6),j2(16).Buffer);},function(j0,j1,j2){j0.exports={default:j2(260),__esModule:!0};},function(j0,j1,j2){j2(26),j2(43),j0.exports=j2(85).f("iterator");},function(j0,j1,j2){j0.exports={default:j2(262),__esModule:!0};},function(j0,j1,j2){j2(263),j2(52),j2(266),j2(267),j0.exports=j2(1).Symbol;},function(j0,j1,j2){"use strict";var j3=j2(4),j4=j2(22),j5=j2(8),j6=j2(2),j7=j2(100),j8=j2(53).KEY,j9=j2(21),j10=j2(70),j11=j2(42),j12=j2(51),j13=j2(5),j14=j2(85),j15=j2(86),j16=j2(264),j17=j2(112),j18=j2(13),j19=j2(7),j20=j2(28),j21=j2(27),j22=j2(67),j23=j2(38),j24=j2(49),j25=j2(129),j26=j2(265),j27=j2(79),j28=j2(9),j29=j2(40),j30=j26.f,j31=j28.f,j32=j25.f,j33=j3.Symbol,j34=j3.JSON,j35=j34&&j34.stringify,j36=j13("_hidden"),j37=j13("toPrimitive"),j38={}.propertyIsEnumerable,j39=j10("symbol-registry"),j40=j10("symbols"),j41=j10("op-symbols"),j42=Object.prototype,j43="function"==typeof j33&&!!j27.f,j44=j3.QObject,j45=!j44||!j44.prototype||!j44.prototype.findChild,j46=j5&&j9(function(){return 7!=j24(j31({},"a",{get:function(){return j31(this,"a",{value:7}).a;}})).a;})?function(j0,j1,j2){var j3=j30(j42,j1);j3&&delete j42[j1],j31(j0,j1,j2),j3&&j0!==j42&&j31(j42,j1,j3);}:j31,j47=function(j0){var j1=j40[j0]=j24(j33.prototype);return j1._k=j0,j1;},j48=j43&&"symbol"==typeof j33.iterator?function(j0){return"symbol"==typeof j0;}:function(j0){return j0 instanceof j33;},j49=function(j0,j1,j2){return j0===j42&&j49(j41,j1,j2),j18(j0),j1=j22(j1,!0),j18(j2),j4(j40,j1)?(j2.enumerable?(j4(j0,j36)&&j0[j36][j1]&&(j0[j36][j1]=!1),j2=j24(j2,{enumerable:j23(0,!1)})):(j4(j0,j36)||j31(j0,j36,j23(1,{})),j0[j36][j1]=!0),j46(j0,j1,j2)):j31(j0,j1,j2);},j50=function(j0,j1){j18(j0);for(var j2,j3=j16(j1=j21(j1)),j4=0,j5=j3.length;j5>j4;)j49(j0,j2=j3[j4++],j1[j2]);return j0;},j51=function(j0){var j1=j38.call(this,j0=j22(j0,!0));return!(this===j42&&j4(j40,j0)&&!j4(j41,j0))&&(!(j1||!j4(this,j0)||!j4(j40,j0)||j4(this,j36)&&this[j36][j0])||j1);},j52=function(j0,j1){if(j0=j21(j0),j1=j22(j1,!0),j0!==j42||!j4(j40,j1)||j4(j41,j1)){var j2=j30(j0,j1);return!j2||!j4(j40,j1)||j4(j0,j36)&&j0[j36][j1]||(j2.enumerable=!0),j2;}},j53=function(j0){for(var j1,j2=j32(j21(j0)),j3=[],j5=0;j2.length>j5;)j4(j40,j1=j2[j5++])||j1==j36||j1==j8||j3.push(j1);return j3;},j54=function(j0){for(var j1,j2=j0===j42,j3=j32(j2?j41:j21(j0)),j5=[],j6=0;j3.length>j6;)!j4(j40,j1=j3[j6++])||j2&&!j4(j42,j1)||j5.push(j40[j1]);return j5;};j43||(j33=function(){if(this instanceof j33)throw TypeError("Symbol is not a constructor!");var j0=j12(arguments.length>0?arguments[0]:void 0),j1=function(j2){this===j42&&j1.call(j41,j2),j4(this,j36)&&j4(this[j36],j0)&&(this[j36][j0]=!1),j46(this,j0,j23(1,j2));};return j5&&j45&&j46(j42,j0,{configurable:!0,set:j1}),j47(j0);},j7(j33.prototype,"toString",function(){return this._k;}),j26.f=j52,j28.f=j49,j2(130).f=j25.f=j53,j2(54).f=j51,j27.f=j54,j5&&!j2(36)&&j7(j42,"propertyIsEnumerable",j51,!0),j14.f=function(j0){return j47(j13(j0));}),j6(j6.G+j6.W+j6.F*!j43,{Symbol:j33});for(var j55="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),j56=0;j55.length>j56;)j13(j55[j56++]);for(var j57=j29(j13.store),j58=0;j57.length>j58;)j15(j57[j58++]);j6(j6.S+j6.F*!j43,"Symbol",{for:function(j0){return j4(j39,j0+="")?j39[j0]:j39[j0]=j33(j0);},keyFor:function(j0){if(!j48(j0))throw TypeError(j0+" is not a symbol!");for(var j1 in j39)if(j39[j1]===j0)return j1;},useSetter:function(){j45=!0;},useSimple:function(){j45=!1;}}),j6(j6.S+j6.F*!j43,"Object",{create:function(j0,j1){return void 0===j1?j24(j0):j50(j24(j0),j1);},defineProperty:j49,defineProperties:j50,getOwnPropertyDescriptor:j52,getOwnPropertyNames:j53,getOwnPropertySymbols:j54});var j59=j9(function(){j27.f(1);});j6(j6.S+j6.F*j59,"Object",{getOwnPropertySymbols:function(j0){return j27.f(j20(j0));}}),j34&&j6(j6.S+j6.F*(!j43||j9(function(){var j0=j33();return"[null]"!=j35([j0])||"{}"!=j35({a:j0})||"{}"!=j35(Object(j0));})),"JSON",{stringify:function(j0){for(var j1,j2,j3=[j0],j4=1;arguments.length>j4;)j3.push(arguments[j4++]);if(j2=j1=j3[1],(j19(j1)||void 0!==j0)&&!j48(j0))return j17(j1)||(j1=function(j0,j1){if("function"==typeof j2&&(j1=j2.call(this,j0,j1)),!j48(j1))return j1;}),j3[1]=j1,j35.apply(j34,j3);}}),j33.prototype[j37]||j2(18)(j33.prototype,j37,j33.prototype.valueOf),j11(j33,"Symbol"),j11(Math,"Math",!0),j11(j3.JSON,"JSON",!0);},function(j0,j1,j2){var j3=j2(40),j4=j2(79),j5=j2(54);j0.exports=function(j0){var j1=j3(j0),j2=j4.f;if(j2)for(var j6,j7=j2(j0),j8=j5.f,j9=0;j7.length>j9;)j8.call(j0,j6=j7[j9++])&&j1.push(j6);return j1;};},function(j0,j1,j2){var j3=j2(54),j4=j2(38),j5=j2(27),j6=j2(67),j7=j2(22),j8=j2(99),j9=Object.getOwnPropertyDescriptor;j1.f=j2(8)?j9:function(j0,j1){if(j0=j5(j0),j1=j6(j1,!0),j8)try{return j9(j0,j1);}catch(j0){}if(j7(j0,j1))return j4(!j3.f.call(j0,j1),j0[j1]);};},function(j0,j1,j2){j2(86)("asyncIterator");},function(j0,j1,j2){j2(86)("observable");},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__268__;},function(j0,j1,j2){"use strict";(function(j1,j3){var j4=j7(j2(32)),j5=j7(j2(131)),j6=j7(j2(45));function j7(j0){return j0&&j0.__esModule?j0:{default:j0};}var j8=j2(46),j9=j2(132),j10=j2(334),j11=j2(33).Writable,j12=j2(14),j13=j2(346),j14=j2(347),j15=j2(88),j16=j1.setImmediate||function(j0){j3.nextTick(j0);},j17={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},j18={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function j19(j0,j1,j2){j0.emit("packetsend",j1),!j10.writeToStream(j1,j0.stream,j0.options)&&j2?j0.stream.once("drain",j2):j2&&j2();}function j20(j0){j0&&(0,j6.default)(j0).forEach(function(j1){"function"==typeof j0[j1]&&(j0[j1](new Error("Connection closed")),delete j0[j1]);});}function j21(j0,j1,j2,j3){j0.outgoingStore.put(j1,function(j4){if(j4)return j2&&j2(j4);j3(),j19(j0,j1,j2);});}function j22(){}function j23(j0,j1){var j2,j3=this;if(!(this instanceof j23))return new j23(j0,j1);for(j2 in this.options=j1||{},j17)void 0===this.options[j2]?this.options[j2]=j17[j2]:this.options[j2]=j1[j2];this.options.clientId="string"==typeof j1.clientId?j1.clientId:"mqttjs_"+Math.random().toString(16).substr(2,8),this.options.customHandleAcks=5===j1.protocolVersion&&j1.customHandleAcks?j1.customHandleAcks:function(){arguments[3](0);},this.streamBuilder=j0,this.outgoingStore=j1.outgoingStore||new j9(),this.incomingStore=j1.incomingStore||new j9(),this.queueQoSZero=void 0===j1.queueQoSZero||j1.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this.nextId=Math.max(1,Math.floor(65535*Math.random())),this.outgoing={},this._firstConnection=!0,this.on("close",function(){this.connected=!1,clearTimeout(this.connackTimer);}),this.on("connect",function(){var j0=this.queue;!function j1(){var j2,j4=j0.shift();j4&&(j2=j4.packet,j3._sendPacket(j2,function(j0){j4.cb&&j4.cb(j0),j1();}));}();}),this.on("close",function(){null!==j3.pingTimer&&(j3.pingTimer.clear(),j3.pingTimer=null);}),j8.EventEmitter.call(this),this._setupStream();}j12(j23,j8.EventEmitter),j23.prototype._setupStream=function(){var j0,j1=this,j2=new j11(),j6=j10.parser(this.options),j7=null,j8=[];function j9(){if(j8.length)j3.nextTick(j12);else{var j0=j7;j7=null,j0();}}function j12(){var j0=j8.shift();if(j0)j1._handlePacket(j0,j9);else{var j2=j7;j7=null,j2&&j2();}}if(this._clearReconnect(),this.stream=this.streamBuilder(this),j6.on("packet",function(j0){j8.push(j0);}),j2._write=function(j0,j1,j2){j7=j2,j6.parse(j0),j12();},this.stream.pipe(j2),this.stream.on("error",j22),this.stream.on("close",function(){j1.emit("close");}),(j0=(0,j5.default)(this.options)).cmd="connect",j19(this,j0),j6.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.emit("error",new Error("Packet has no Authentication Method")),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&"object"===(0,j4.default)(this.options.authPacket))j19(this,j15({cmd:"auth",reasonCode:0},this.options.authPacket));}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){j1._cleanUp(!0);},this.options.connectTimeout);},j23.prototype._handlePacket=function(j0,j1){var j2=this.options;if(5===j2.protocolVersion&&j2.properties&&j2.properties.maximumPacketSize&&j2.properties.maximumPacketSize<j0.length)return this.emit("error",new Error("exceeding packets size "+j0.cmd)),this.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),this;switch(this.emit("packetreceive",j0),j0.cmd){case"publish":try{this._handlePublish(j0,j1);}catch(j0){console.error(j0);}break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":try{this._handleAck(j0);}catch(j0){console.log(j0);}j1();break;case"pubrel":this._handlePubrel(j0,j1);break;case"connack":this._handleConnack(j0),j1();break;case"pingresp":this._handlePingresp(j0),j1();break;case"disconnect":this._handleDisconnect(j0),j1();}},j23.prototype._checkDisconnecting=function(j0){return this.disconnecting&&(j0?j0(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting;},j23.prototype.publish=function(j0,j1,j2,j3){var j4,j5=this.options;"function"==typeof j2&&(j3=j2,j2=null);if(j2=j15({qos:0,retain:!1,dup:!1},j2),this._checkDisconnecting(j3))return this;switch(j4={cmd:"publish",topic:j0,payload:j1,qos:j2.qos,retain:j2.retain,messageId:this._nextId(),dup:j2.dup},5===j5.protocolVersion&&(j4.properties=j2.properties,(!j5.properties&&j4.properties&&j4.properties.topicAlias||j2.properties&&j5.properties&&(j2.properties.topicAlias&&j5.properties.topicAliasMaximum&&j2.properties.topicAlias>j5.properties.topicAliasMaximum||!j5.properties.topicAliasMaximum&&j2.properties.topicAlias))&&delete j4.properties.topicAlias),j2.qos){case 1:case 2:this.outgoing[j4.messageId]=j3||j22,this._storeProcessing?(this._packetIdsDuringStoreProcessing[j4.messageId]=!1,this._storePacket(j4,void 0,j2.cbStorePut)):this._sendPacket(j4,void 0,j2.cbStorePut);break;default:this._storeProcessing?this._storePacket(j4,j3,j2.cbStorePut):this._sendPacket(j4,j3,j2.cbStorePut);}return this;},j23.prototype.subscribe=function(){for(var j0,j1=new Array(arguments.length),j2=0;j2<arguments.length;j2++)j1[j2]=arguments[j2];var j3,j4=[],j5=j1.shift(),j7=j5.resubscribe,j8=j1.pop()||j22,j9=j1.pop(),j10=this,j11=this.options.protocolVersion;if(delete j5.resubscribe,"string"==typeof j5&&(j5=[j5]),"function"!=typeof j8&&(j9=j8,j8=j22),null!==(j3=j14.validateTopics(j5)))return j16(j8,new Error("Invalid topic "+j3)),this;if(this._checkDisconnecting(j8))return this;var j12={qos:0};if(5===j11&&(j12.nl=!1,j12.rap=!1,j12.rh=0),j9=j15(j12,j9),Array.isArray(j5)?j5.forEach(function(j0){if(!j10._resubscribeTopics.hasOwnProperty(j0)||j10._resubscribeTopics[j0].qos<j9.qos||j7){var j1={topic:j0,qos:j9.qos};5===j11&&(j1.nl=j9.nl,j1.rap=j9.rap,j1.rh=j9.rh,j1.properties=j9.properties),j4.push(j1);}}):(0,j6.default)(j5).forEach(function(j0){if(!j10._resubscribeTopics.hasOwnProperty(j0)||j10._resubscribeTopics[j0].qos<j5[j0].qos||j7){var j1={topic:j0,qos:j5[j0].qos};5===j11&&(j1.nl=j5[j0].nl,j1.rap=j5[j0].rap,j1.rh=j5[j0].rh,j1.properties=j9.properties),j4.push(j1);}}),j0={cmd:"subscribe",subscriptions:j4,qos:1,retain:!1,dup:!1,messageId:this._nextId()},j9.properties&&(j0.properties=j9.properties),j4.length){if(this.options.resubscribe){var j13=[];j4.forEach(function(j0){if(j10.options.reconnectPeriod>0){var j1={qos:j0.qos};5===j11&&(j1.nl=j0.nl||!1,j1.rap=j0.rap||!1,j1.rh=j0.rh||0,j1.properties=j0.properties),j10._resubscribeTopics[j0.topic]=j1,j13.push(j0.topic);}}),j10.messageIdToTopic[j0.messageId]=j13;}return this.outgoing[j0.messageId]=function(j0,j1){if(!j0)for(var j2=j1.granted,j3=0;j3<j2.length;j3+=1)j4[j3].qos=j2[j3];j8(j0,j4);},this._sendPacket(j0),this;}j8(null,[]);},j23.prototype.unsubscribe=function(){for(var j0={cmd:"unsubscribe",qos:1,messageId:this._nextId()},j1=this,j2=new Array(arguments.length),j3=0;j3<arguments.length;j3++)j2[j3]=arguments[j3];var j5=j2.shift(),j6=j2.pop()||j22,j7=j2.pop();return"string"==typeof j5&&(j5=[j5]),"function"!=typeof j6&&(j7=j6,j6=j22),this._checkDisconnecting(j6)||("string"==typeof j5?j0.unsubscriptions=[j5]:"object"===(void 0===j5?"undefined":(0,j4.default)(j5))&&j5.length&&(j0.unsubscriptions=j5),this.options.resubscribe&&j0.unsubscriptions.forEach(function(j0){delete j1._resubscribeTopics[j0];}),"object"===(void 0===j7?"undefined":(0,j4.default)(j7))&&j7.properties&&(j0.properties=j7.properties),this.outgoing[j0.messageId]=j6,this._sendPacket(j0)),this;},j23.prototype.end=function(){var j0=this,j1=arguments[0],j2=arguments[1],j3=arguments[2];function j5(){j0.disconnected=!0,j0.incomingStore.close(function(){j0.outgoingStore.close(function(){j3&&j3.apply(null,arguments),j0.emit("end");});}),j0._deferredReconnect&&j0._deferredReconnect();}function j7(){j0._cleanUp(j1,j16.bind(null,j5),j2);}return null!=j1&&"boolean"==typeof j1||(j3=j2||j22,j2=j1,j1=!1,"object"!==(void 0===j2?"undefined":(0,j4.default)(j2))&&(j3=j2,j2=null,"function"!=typeof j3&&(j3=j22))),"object"!==(void 0===j2?"undefined":(0,j4.default)(j2))&&(j3=j2,j2=null),j3=j3||j22,this.disconnecting||(this._clearReconnect(),this.disconnecting=!0,!j1&&(0,j6.default)(this.outgoing).length>0?this.once("outgoingEmpty",setTimeout.bind(null,j7,10)):j7()),this;},j23.prototype.removeOutgoingMessage=function(j0){var j1=this.outgoing[j0];return delete this.outgoing[j0],this.outgoingStore.del({messageId:j0},function(){j1(new Error("Message removed"));}),this;},j23.prototype.reconnect=function(j0){var j1=this,j2=function(){j0?(j1.options.incomingStore=j0.incomingStore,j1.options.outgoingStore=j0.outgoingStore):(j1.options.incomingStore=null,j1.options.outgoingStore=null),j1.incomingStore=j1.options.incomingStore||new j9(),j1.outgoingStore=j1.options.outgoingStore||new j9(),j1.disconnecting=!1,j1.disconnected=!1,j1._deferredReconnect=null,j1._reconnect();};return this.disconnecting&&!this.disconnected?this._deferredReconnect=j2:j2(),this;},j23.prototype._reconnect=function(){this.emit("reconnect"),this._setupStream();},j23.prototype._setupReconnect=function(){var j0=this;!j0.disconnecting&&!j0.reconnectTimer&&j0.options.reconnectPeriod>0&&(this.reconnecting||(this.emit("offline"),this.reconnecting=!0),j0.reconnectTimer=setInterval(function(){j0._reconnect();},j0.options.reconnectPeriod));},j23.prototype._clearReconnect=function(){this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null);},j23.prototype._cleanUp=function(j0,j1){var j2=arguments[2];if(j1&&this.stream.on("close",j1),j0)0===this.options.reconnectPeriod&&this.options.clean&&j20(this.outgoing),this.stream.destroy();else{var j3=j15({cmd:"disconnect"},j2);this._sendPacket(j3,j16.bind(null,this.stream.end.bind(this.stream)));}this.disconnecting||(this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(this.pingTimer.clear(),this.pingTimer=null),j1&&!this.connected&&(this.stream.removeListener("close",j1),j1());},j23.prototype._sendPacket=function(j0,j1,j2){if(j2=j2||j22,this.connected){switch(this._shiftPingInterval(),j0.cmd){case"publish":break;case"pubrel":return void j21(this,j0,j1,j2);default:return void j19(this,j0,j1);}switch(j0.qos){case 2:case 1:j21(this,j0,j1,j2);break;default:j19(this,j0,j1);}}else this._storePacket(j0,j1,j2);},j23.prototype._storePacket=function(j0,j1,j2){j2=j2||j22,0===(j0.qos||0)&&this.queueQoSZero||"publish"!==j0.cmd?this.queue.push({packet:j0,cb:j1}):j0.qos>0?(j1=this.outgoing[j0.messageId],this.outgoingStore.put(j0,function(j0){if(j0)return j1&&j1(j0);j2();})):j1&&j1(new Error("No connection to broker"));},j23.prototype._setupPingTimer=function(){var j0=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=j13(function(){j0._checkPing();},1e3*this.options.keepalive));},j23.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive);},j23.prototype._checkPing=function(){this.pingResp?(this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):this._cleanUp(!0);},j23.prototype._handlePingresp=function(){this.pingResp=!0,this.emit("pingresp",new Date().getTime());},j23.prototype._handleConnack=function(j0){var j1=this.options,j2=5===j1.protocolVersion?j0.reasonCode:j0.returnCode;if(clearTimeout(this.connackTimer),j0.properties&&(j0.properties.topicAliasMaximum&&(j1.properties||(j1.properties={}),j1.properties.topicAliasMaximum=j0.properties.topicAliasMaximum),j0.properties.serverKeepAlive&&j1.keepalive&&(j1.keepalive=j0.properties.serverKeepAlive,this._shiftPingInterval()),j0.properties.maximumPacketSize&&(j1.properties||(j1.properties={}),j1.properties.maximumPacketSize=j0.properties.maximumPacketSize)),0===j2)this.reconnecting=!1,this._onConnect(j0);else if(j2>0){var j3=new Error("Connection refused: "+j18[j2]);j3.code=j2,this.emit("error",j3);}},j23.prototype._handlePublish=function(j0,j1){j1=void 0!==j1?j1:j22;var j2=j0.topic.toString(),j3=j0.payload,j4=j0.qos,j5=j0.messageId,j6=this,j7=this.options,j8=[0,16,128,131,135,144,145,151,153];switch(j4){case 2:j7.customHandleAcks(j2,j3,j0,function(j2,j3){return j2 instanceof Error||(j3=j2,j2=null),j2?j6.emit("error",j2):-1===j8.indexOf(j3)?j6.emit("error",new Error("Wrong reason code for pubrec")):void(j3?j6._sendPacket({cmd:"pubrec",messageId:j5,reasonCode:j3},j1):j6.incomingStore.put(j0,function(){j6._sendPacket({cmd:"pubrec",messageId:j5},j1);}));});break;case 1:j7.customHandleAcks(j2,j3,j0,function(j4,j7){return j4 instanceof Error||(j7=j4,j4=null),j4?j6.emit("error",j4):-1===j8.indexOf(j7)?j6.emit("error",new Error("Wrong reason code for puback")):(j7||j6.emit("message",j2,j3,j0),void j6.handleMessage(j0,function(j0){if(j0)return j1&&j1(j0);j6._sendPacket({cmd:"puback",messageId:j5,reasonCode:j7},j1);}));});break;case 0:this.emit("message",j2,j3,j0),this.handleMessage(j0,j1);}},j23.prototype.handleMessage=function(j0,j1){j1();},j23.prototype._handleAck=function(j0){var j1,j2=j0.messageId,j3=j0.cmd,j4=null,j5=this.outgoing[j2],j7=this;if(j5){switch(j3){case"pubcomp":case"puback":var j8=j0.reasonCode;j8&&j8>0&&16!==j8&&10!==j8?((j1=new Error("Publish error: "+j18[j8])).code=j8,j5(j1,j0)):j8&&10===j8&&j5(null,j0),delete this.outgoing[j2],this.outgoingStore.del(j0,j5);break;case"pubrec":j4={cmd:"pubrel",qos:2,messageId:j2};var j9=j0.reasonCode;j9&&j9>0&&16!==j9?((j1=new Error("Publish error: "+j18[j9])).code=j9,j5(j1,j0)):this._sendPacket(j4);break;case"suback":delete this.outgoing[j2];for(var j10=0;j10<j0.granted.length;j10++)if(0!=(128&j0.granted[j10])){var j11=this.messageIdToTopic[j2];j11&&j11.forEach(function(j0){delete j7._resubscribeTopics[j0];});}j5(null,j0);break;case"unsuback":delete this.outgoing[j2],j5(null);break;default:j7.emit("error",new Error("unrecognized packet type"));}this.disconnecting&&0===(0,j6.default)(this.outgoing).length&&this.emit("outgoingEmpty");}},j23.prototype._handlePubrel=function(j0,j1){j1=void 0!==j1?j1:j22;var j2=j0.messageId,j3=this,j4={cmd:"pubcomp",messageId:j2};j3.incomingStore.get(j0,function(j0,j2){j0?j3._sendPacket(j4,j1):(j3.emit("message",j2.topic,j2.payload,j2),j3.handleMessage(j2,function(j0){if(j0)return j1(j0);j3.incomingStore.del(j2,j22),j3._sendPacket(j4,j1);}));});},j23.prototype._handleDisconnect=function(j0){this.emit("disconnect",j0);},j23.prototype._nextId=function(){var j0=this.nextId++;return 65536===this.nextId&&(this.nextId=1),j0;},j23.prototype.getLastMessageId=function(){return 1===this.nextId?65535:this.nextId-1;},j23.prototype._resubscribe=function(j0){var j1=(0,j6.default)(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||5===this.options.protocolVersion&&!j0.sessionPresent)&&j1.length>0)if(this.options.resubscribe){if(5===this.options.protocolVersion)for(var j2=0;j2<j1.length;j2++){var j3={};j3[j1[j2]]=this._resubscribeTopics[j1[j2]],j3.resubscribe=!0,this.subscribe(j3,{properties:j3[j1[j2]].properties});}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);}else this._resubscribeTopics={};this._firstConnection=!1;},j23.prototype._onConnect=function(j0){if(this.disconnected)this.emit("connect",j0);else{var j1=this;this._setupPingTimer(),this._resubscribe(j0),this.connected=!0,function j2(){var j3=j1.outgoingStore.createStream();function j4(){j1._storeProcessing=!1,j1._packetIdsDuringStoreProcessing={};}function j5(){j3.destroy(),j3=null,j4();}j1.once("close",j5),j3.on("error",function(j0){j4(),j1.removeListener("close",j5),j1.emit("error",j0);}),j3.on("end",function(){var j3=!0;for(var j6 in j1._packetIdsDuringStoreProcessing)if(!j1._packetIdsDuringStoreProcessing[j6]){j3=!1;break;}j3?(j4(),j1.removeListener("close",j5),j1.emit("connect",j0)):j2();}),function j0(){if(j3){j1._storeProcessing=!0;var j2,j4=j3.read(1);j4?j1._packetIdsDuringStoreProcessing[j4.messageId]?j0():j1.disconnecting||j1.reconnectTimer?j3.destroy&&j3.destroy():(j2=j1.outgoing[j4.messageId],j1.outgoing[j4.messageId]=function(j1,j3){j2&&j2(j1,j3),j0();},j1._packetIdsDuringStoreProcessing[j4.messageId]=!0,j1._sendPacket(j4)):j3.once("readable",j0);}}();}();}},j0.exports=j23;}).call(this,j2(12),j2(6));},function(j0,j1,j2){j2(271);var j3=j2(1).Object;j0.exports=function(j0,j1){return j3.create(j0,j1);};},function(j0,j1,j2){var j3=j2(2);j3(j3.S,"Object",{create:j2(49)});},function(j0,j1,j2){j2(273),j0.exports=j2(1).Object.keys;},function(j0,j1,j2){var j3=j2(28),j4=j2(40);j2(87)("keys",function(){return function(j0){return j4(j3(j0));};});},function(j0,j1){},function(j0,j1,j2){"use strict";var j3=j2(10).Buffer,j4=j2(276);j0.exports=function(){function j0(){!function(j0,j1){if(!(j0 instanceof j1))throw new TypeError("Cannot call a class as a function");}(this,j0),this.head=null,this.tail=null,this.length=0;}return j0.prototype.push=function(j0){var j1={data:j0,next:null};this.length>0?this.tail.next=j1:this.head=j1,this.tail=j1,++this.length;},j0.prototype.unshift=function(j0){var j1={data:j0,next:this.head};0===this.length&&(this.tail=j1),this.head=j1,++this.length;},j0.prototype.shift=function(){if(0!==this.length){var j0=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,j0;}},j0.prototype.clear=function(){this.head=this.tail=null,this.length=0;},j0.prototype.join=function(j0){if(0===this.length)return"";for(var j1=this.head,j2=""+j1.data;j1=j1.next;)j2+=j0+j1.data;return j2;},j0.prototype.concat=function(j0){if(0===this.length)return j3.alloc(0);if(1===this.length)return this.head.data;for(var j1,j2,j4,j5=j3.allocUnsafe(j0>>>0),j6=this.head,j7=0;j6;)j1=j6.data,j2=j5,j4=j7,j1.copy(j2,j4),j7+=j6.data.length,j6=j6.next;return j5;},j0;}(),j4&&j4.inspect&&j4.inspect.custom&&(j0.exports.prototype[j4.inspect.custom]=function(){var j0=j4.inspect({length:this.length});return this.constructor.name+" "+j0;});},function(j0,j1){},function(j0,j1,j2){(function(j0){var j3=void 0!==j0&&j0||"undefined"!=typeof self&&self||window,j4=Function.prototype.apply;function j5(j0,j1){this._id=j0,this._clearFn=j1;}j1.setTimeout=function(){return new j5(j4.call(setTimeout,j3,arguments),clearTimeout);},j1.setInterval=function(){return new j5(j4.call(setInterval,j3,arguments),clearInterval);},j1.clearTimeout=j1.clearInterval=function(j0){j0&&j0.close();},j5.prototype.unref=j5.prototype.ref=function(){},j5.prototype.close=function(){this._clearFn.call(j3,this._id);},j1.enroll=function(j0,j1){clearTimeout(j0._idleTimeoutId),j0._idleTimeout=j1;},j1.unenroll=function(j0){clearTimeout(j0._idleTimeoutId),j0._idleTimeout=-1;},j1._unrefActive=j1.active=function(j0){clearTimeout(j0._idleTimeoutId);var j1=j0._idleTimeout;j1>=0&&(j0._idleTimeoutId=setTimeout(function(){j0._onTimeout&&j0._onTimeout();},j1));},j2(278),j1.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==j0&&j0.setImmediate||this&&this.setImmediate,j1.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==j0&&j0.clearImmediate||this&&this.clearImmediate;}).call(this,j2(12));},function(j0,j1,j2){(function(j0,j1){!function(j0,j2){"use strict";if(!j0.setImmediate){var j3,j4,j5,j6,j7,j8=1,j9={},j10=!1,j11=j0.document,j12=Object.getPrototypeOf&&Object.getPrototypeOf(j0);j12=j12&&j12.setTimeout?j12:j0,"[object process]"==={}.toString.call(j0.process)?j3=function(j0){j1.nextTick(function(){j14(j0);});}:!function(){if(j0.postMessage&&!j0.importScripts){var j1=!0,j2=j0.onmessage;return j0.onmessage=function(){j1=!1;},j0.postMessage("","*"),j0.onmessage=j2,j1;}}()?j0.MessageChannel?((j5=new MessageChannel()).port1.onmessage=function(j0){j14(j0.data);},j3=function(j0){j5.port2.postMessage(j0);}):j11&&"onreadystatechange"in j11.createElement("script")?(j4=j11.documentElement,j3=function(j0){var j1=j11.createElement("script");j1.onreadystatechange=function(){j14(j0),j1.onreadystatechange=null,j4.removeChild(j1),j1=null;},j4.appendChild(j1);}):j3=function(j0){setTimeout(j14,0,j0);}:(j6="setImmediate$"+Math.random()+"$",j7=function(j1){j1.source===j0&&"string"==typeof j1.data&&0===j1.data.indexOf(j6)&&j14(+j1.data.slice(j6.length));},j0.addEventListener?j0.addEventListener("message",j7,!1):j0.attachEvent("onmessage",j7),j3=function(j1){j0.postMessage(j6+j1,"*");}),j12.setImmediate=function(j0){"function"!=typeof j0&&(j0=new Function(""+j0));for(var j1=new Array(arguments.length-1),j2=0;j2<j1.length;j2++)j1[j2]=arguments[j2+1];var j4={callback:j0,args:j1};return j9[j8]=j4,j3(j8),j8++;},j12.clearImmediate=j13;}function j13(j0){delete j9[j0];}function j14(j0){if(j10)setTimeout(j14,0,j0);else{var j1=j9[j0];if(j1){j10=!0;try{!function(j0){var j1=j0.callback,j2=j0.args;switch(j2.length){case 0:j1();break;case 1:j1(j2[0]);break;case 2:j1(j2[0],j2[1]);break;case 3:j1(j2[0],j2[1],j2[2]);break;default:j1.apply(void 0,j2);}}(j1);}finally{j13(j0),j10=!1;}}}}}("undefined"==typeof self?void 0===j0?this:j0:self);}).call(this,j2(12),j2(6));},function(j0,j1,j2){(function(j1){function j2(j0){try{if(!j1.localStorage)return!1;}catch(j0){return!1;}var j2=j1.localStorage[j0];return null!=j2&&"true"===String(j2).toLowerCase();}j0.exports=function(j0,j1){if(j2("noDeprecation"))return j0;var j3=!1;return function(){if(!j3){if(j2("throwDeprecation"))throw new Error(j1);j2("traceDeprecation")?console.trace(j1):console.warn(j1),j3=!0;}return j0.apply(this,arguments);};};}).call(this,j2(12));},function(j0,j1,j2){"use strict";j0.exports=j5;var j3=j2(138),j4=j2(48);function j5(j0){if(!(this instanceof j5))return new j5(j0);j3.call(this,j0);}j4.inherits=j2(14),j4.inherits(j5,j3),j5.prototype._transform=function(j0,j1,j2){j2(null,j0);};},function(j0,j1,j2){"use strict";j0.exports=j2(282)()?Map:j2(283);},function(j0,j1,j2){"use strict";j0.exports=function(){var j0,j1;if("function"!=typeof Map)return!1;try{j0=new Map([["raz","one"],["dwa","two"],["trzy","three"]]);}catch(j0){return!1;}return"[object Map]"===String(j0)&&3===j0.size&&"function"==typeof j0.clear&&"function"==typeof j0.delete&&"function"==typeof j0.entries&&"function"==typeof j0.forEach&&"function"==typeof j0.get&&"function"==typeof j0.has&&"function"==typeof j0.keys&&"function"==typeof j0.set&&"function"==typeof j0.values&&!1===(j1=j0.entries().next()).done&&!!j1.value&&"raz"===j1.value[0]&&"one"===j1.value[1];};},function(j0,j1,j2){"use strict";var j3,j4=j2(139),j5=j2(285),j6=j2(58),j7=j2(25),j8=j2(15),j9=j2(11),j10=j2(304),j11=j2(19),j12=j2(147),j13=j2(312),j14=j2(330),j15=j2(333),j16=Function.prototype.call,j17=Object.defineProperties,j18=Object.getPrototypeOf;j0.exports=j3=function(){var j0,j1,j2,j4=arguments[0];if(!(this instanceof j3))throw new TypeError("Constructor requires 'new'");return j2=j15&&j6&&Map!==j3?j6(new Map(),j18(this)):this,null!=j4&&j12(j4),j17(j2,{__mapKeysData__:j9("c",j0=[]),__mapValuesData__:j9("c",j1=[])}),j4?(j13(j4,function(j2){var j3=j8(j2)[0];j2=j2[1],-1===j5.call(j0,j3)&&(j0.push(j3),j1.push(j2));},j2),j2):j2;},j15&&(j6&&j6(j3,Map),j3.prototype=Object.create(Map.prototype,{constructor:j9(j3)})),j10(j17(j3.prototype,{clear:j9(function(){this.__mapKeysData__.length&&(j4.call(this.__mapKeysData__),j4.call(this.__mapValuesData__),this.emit("_clear"));}),delete:j9(function(j0){var j1=j5.call(this.__mapKeysData__,j0);return-1!==j1&&(this.__mapKeysData__.splice(j1,1),this.__mapValuesData__.splice(j1,1),this.emit("_delete",j1,j0),!0);}),entries:j9(function(){return new j14(this,"key+value");}),forEach:j9(function(j0){var j1,j2,j3=arguments[1];for(j7(j0),j2=(j1=this.entries())._next();void 0!==j2;)j16.call(j0,j3,this.__mapValuesData__[j2],this.__mapKeysData__[j2],this),j2=j1._next();}),get:j9(function(j0){var j1=j5.call(this.__mapKeysData__,j0);if(-1!==j1)return this.__mapValuesData__[j1];}),has:j9(function(j0){return-1!==j5.call(this.__mapKeysData__,j0);}),keys:j9(function(){return new j14(this,"key");}),set:j9(function(j0,j1){var j2,j3=j5.call(this.__mapKeysData__,j0);return-1===j3&&(j3=this.__mapKeysData__.push(j0)-1,j2=!0),this.__mapValuesData__[j3]=j1,j2&&this.emit("_add",j3,j0),this;}),size:j9.gs(function(){return this.__mapKeysData__.length;}),values:j9(function(){return new j14(this,"value");}),toString:j9(function(){return"[object Map]";})})),Object.defineProperty(j3.prototype,j11.iterator,j9(function(){return this.entries();})),Object.defineProperty(j3.prototype,j11.toStringTag,j9("c","Map"));},function(j0,j1,j2){"use strict";j0.exports=function(){};},function(j0,j1,j2){"use strict";var j3=j2(286),j4=j2(140),j5=j2(15),j6=Array.prototype.indexOf,j7=Object.prototype.hasOwnProperty,j8=Math.abs,j9=Math.floor;j0.exports=function(j0){var j1,j2,j10,j11;if(!j3(j0))return j6.apply(this,arguments);for(j2=j4(j5(this).length),j10=arguments[1],j1=j10=isNaN(j10)?0:j10>=0?j9(j10):j4(this.length)-j9(j8(j10));j1<j2;++j1)if(j7.call(this,j1)&&(j11=this[j1],j3(j11)))return j1;return-1;};},function(j0,j1,j2){"use strict";j0.exports=j2(287)()?Number.isNaN:j2(288);},function(j0,j1,j2){"use strict";j0.exports=function(){var j0=Number.isNaN;return"function"==typeof j0&&!j0({})&&j0(NaN)&&!j0(34);};},function(j0,j1,j2){"use strict";j0.exports=function(j0){return j0!=j0;};},function(j0,j1,j2){"use strict";var j3=j2(290),j4=Math.abs,j5=Math.floor;j0.exports=function(j0){return isNaN(j0)?0:0!==(j0=Number(j0))&&isFinite(j0)?j3(j0)*j5(j4(j0)):j0;};},function(j0,j1,j2){"use strict";j0.exports=j2(291)()?Math.sign:j2(292);},function(j0,j1,j2){"use strict";j0.exports=function(){var j0=Math.sign;return"function"==typeof j0&&1===j0(10)&&-1===j0(-20);};},function(j0,j1,j2){"use strict";j0.exports=function(j0){return j0=Number(j0),isNaN(j0)||0===j0?j0:j0>0?1:-1;};},function(j0,j1,j2){"use strict";var j3=j2(34),j4={function:!0,object:!0};j0.exports=function(j0){return j3(j0)&&j4[typeof j0]||!1;};},function(j0,j1,j2){"use strict";var j3,j4,j5,j6,j7=Object.create;j2(141)()||(j3=j2(142)),j0.exports=j3?1!==j3.level?j7:(j4={},j5={},j6={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(j0){j5[j0]="__proto__"!==j0?j6:{configurable:!0,enumerable:!1,writable:!0,value:void 0};}),Object.defineProperties(j4,j5),Object.defineProperty(j3,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:j4}),function(j0,j1){return j7(null===j0?j4:j0,j1);}):j7;},function(j0,j1,j2){"use strict";var j3=j2(296);j0.exports=function(j0){if("function"!=typeof j0)return!1;if(!hasOwnProperty.call(j0,"length"))return!1;try{if("number"!=typeof j0.length)return!1;if("function"!=typeof j0.call)return!1;if("function"!=typeof j0.apply)return!1;}catch(j0){return!1;}return!j3(j0);};},function(j0,j1,j2){"use strict";var j3=j2(89);j0.exports=function(j0){if(!j3(j0))return!1;try{return!!j0.constructor&&j0.constructor.prototype===j0;}catch(j0){return!1;}};},function(j0,j1,j2){"use strict";j0.exports=function(){var j0,j1=Object.assign;return"function"==typeof j1&&(j1(j0={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),j0.foo+j0.bar+j0.trzy==="razdwatrzy");};},function(j0,j1,j2){"use strict";var j3=j2(299),j4=j2(15),j5=Math.max;j0.exports=function(j0,j1){var j2,j6,j7,j8=j5(arguments.length,2);for(j0=Object(j4(j0)),j7=function(j3){try{j0[j3]=j1[j3];}catch(j0){j2||(j2=j0);}},j6=1;j6<j8;++j6)j3(j1=arguments[j6]).forEach(j7);if(void 0!==j2)throw j2;return j0;};},function(j0,j1,j2){"use strict";j0.exports=j2(300)()?Object.keys:j2(301);},function(j0,j1,j2){"use strict";j0.exports=function(){try{return Object.keys("primitive"),!0;}catch(j0){return!1;}};},function(j0,j1,j2){"use strict";var j3=j2(34),j4=Object.keys;j0.exports=function(j0){return j4(j3(j0)?Object(j0):j0);};},function(j0,j1,j2){"use strict";var j3="razdwatrzy";j0.exports=function(){return"function"==typeof j3.contains&&!0===j3.contains("dwa")&&!1===j3.contains("foo");};},function(j0,j1,j2){"use strict";var j3=String.prototype.indexOf;j0.exports=function(j0){return j3.call(this,j0,arguments[1])>-1;};},function(j0,j1,j2){"use strict";var j3,j4,j5,j6,j7,j8,j9,j10=j2(11),j11=j2(25),j12=Function.prototype.apply,j13=Function.prototype.call,j14=Object.create,j15=Object.defineProperty,j16=Object.defineProperties,j17=Object.prototype.hasOwnProperty,j18={configurable:!0,enumerable:!1,writable:!0};j4=function(j0,j1){var j2,j4;return j11(j1),j4=this,j3.call(this,j0,j2=function(){j5.call(j4,j0,j2),j12.call(j1,this,arguments);}),j2.__eeOnceListener__=j1,this;},j6=function(j0){var j1,j2,j3,j4,j5;if(j17.call(this,"__ee__")&&(j4=this.__ee__[j0]))if("object"==typeof j4){for(j2=arguments.length,j5=new Array(j2-1),j1=1;j1<j2;++j1)j5[j1-1]=arguments[j1];for(j4=j4.slice(),j1=0;j3=j4[j1];++j1)j12.call(j3,this,j5);}else switch(arguments.length){case 1:j13.call(j4,this);break;case 2:j13.call(j4,this,arguments[1]);break;case 3:j13.call(j4,this,arguments[1],arguments[2]);break;default:for(j2=arguments.length,j5=new Array(j2-1),j1=1;j1<j2;++j1)j5[j1-1]=arguments[j1];j12.call(j4,this,j5);}},j7={on:j3=function(j0,j1){var j2;return j11(j1),j17.call(this,"__ee__")?j2=this.__ee__:(j2=j18.value=j14(null),j15(this,"__ee__",j18),j18.value=null),j2[j0]?"object"==typeof j2[j0]?j2[j0].push(j1):j2[j0]=[j2[j0],j1]:j2[j0]=j1,this;},once:j4,off:j5=function(j0,j1){var j2,j3,j4,j5;if(j11(j1),!j17.call(this,"__ee__"))return this;if(!(j2=this.__ee__)[j0])return this;if("object"==typeof(j3=j2[j0]))for(j5=0;j4=j3[j5];++j5)j4!==j1&&j4.__eeOnceListener__!==j1||(2===j3.length?j2[j0]=j3[j5?0:1]:j3.splice(j5,1));else j3!==j1&&j3.__eeOnceListener__!==j1||delete j2[j0];return this;},emit:j6},j8={on:j10(j3),once:j10(j4),off:j10(j5),emit:j10(j6)},j9=j16({},j8),j0.exports=j1=function(j0){return null==j0?j14(j9):j16(Object(j0),j8);},j1.methods=j7;},function(j0,j1,j2){"use strict";var j3=j2(59),j4={object:!0,symbol:!0};j0.exports=function(){var j0,j1=j3.Symbol;if("function"!=typeof j1)return!1;j0=j1("test symbol");try{String(j0);}catch(j0){return!1;}return!!j4[typeof j1.iterator]&&!!j4[typeof j1.toPrimitive]&&!!j4[typeof j1.toStringTag];};},function(j0,j1,j2){"use strict";var j3,j4,j5,j6=j2(11),j7=j2(146),j8=j2(59).Symbol,j9=j2(308),j10=j2(309),j11=j2(310),j12=Object.create,j13=Object.defineProperties,j14=Object.defineProperty;if("function"==typeof j8)try{String(j8()),j5=!0;}catch(j0){}else j8=null;j4=function(j0){if(this instanceof j4)throw new TypeError("Symbol is not a constructor");return j3(j0);},j0.exports=j3=function j0(j1){var j2;if(this instanceof j0)throw new TypeError("Symbol is not a constructor");return j5?j8(j1):(j2=j12(j4.prototype),j1=void 0===j1?"":String(j1),j13(j2,{__description__:j6("",j1),__name__:j6("",j9(j1))}));},j10(j3),j11(j3),j13(j4.prototype,{constructor:j6(j3),toString:j6("",function(){return this.__name__;})}),j13(j3.prototype,{toString:j6(function(){return"Symbol ("+j7(this).__description__+")";}),valueOf:j6(function(){return j7(this);})}),j14(j3.prototype,j3.toPrimitive,j6("",function(){var j0=j7(this);return"symbol"==typeof j0?j0:j0.toString();})),j14(j3.prototype,j3.toStringTag,j6("c","Symbol")),j14(j4.prototype,j3.toStringTag,j6("c",j3.prototype[j3.toStringTag])),j14(j4.prototype,j3.toPrimitive,j6("c",j3.prototype[j3.toPrimitive]));},function(j0,j1,j2){"use strict";j0.exports=function(j0){return!!j0&&("symbol"==typeof j0||!!j0.constructor&&"Symbol"===j0.constructor.name&&"Symbol"===j0[j0.constructor.toStringTag]);};},function(j0,j1,j2){"use strict";var j3=j2(11),j4=Object.create,j5=Object.defineProperty,j6=Object.prototype,j7=j4(null);j0.exports=function(j0){for(var j1,j2,j4=0;j7[j0+(j4||"")];)++j4;return j7[j0+=j4||""]=!0,j5(j6,j1="@@"+j0,j3.gs(null,function(j0){j2||(j2=!0,j5(this,j1,j3(j0)),j2=!1);})),j1;};},function(j0,j1,j2){"use strict";var j3=j2(11),j4=j2(59).Symbol;j0.exports=function(j0){return Object.defineProperties(j0,{hasInstance:j3("",j4&&j4.hasInstance||j0("hasInstance")),isConcatSpreadable:j3("",j4&&j4.isConcatSpreadable||j0("isConcatSpreadable")),iterator:j3("",j4&&j4.iterator||j0("iterator")),match:j3("",j4&&j4.match||j0("match")),replace:j3("",j4&&j4.replace||j0("replace")),search:j3("",j4&&j4.search||j0("search")),species:j3("",j4&&j4.species||j0("species")),split:j3("",j4&&j4.split||j0("split")),toPrimitive:j3("",j4&&j4.toPrimitive||j0("toPrimitive")),toStringTag:j3("",j4&&j4.toStringTag||j0("toStringTag")),unscopables:j3("",j4&&j4.unscopables||j0("unscopables"))});};},function(j0,j1,j2){"use strict";var j3=j2(11),j4=j2(146),j5=Object.create(null);j0.exports=function(j0){return Object.defineProperties(j0,{for:j3(function(j1){return j5[j1]?j5[j1]:j5[j1]=j0(String(j1));}),keyFor:j3(function(j0){var j1;for(j1 in j4(j0),j5)if(j5[j1]===j0)return j1;})});};},function(j0,j1,j2){"use strict";var j3=j2(60),j4=j2(34),j5=j2(61),j6=j2(19).iterator,j7=Array.isArray;j0.exports=function(j0){return!!j4(j0)&&(!!j7(j0)||!!j5(j0)||!!j3(j0)||"function"==typeof j0[j6]);};},function(j0,j1,j2){"use strict";var j3=j2(60),j4=j2(25),j5=j2(61),j6=j2(313),j7=Array.isArray,j8=Function.prototype.call,j9=Array.prototype.some;j0.exports=function(j0,j1){var j2,j10,j11,j12,j13,j14,j15,j16,j17=arguments[2];if(j7(j0)||j3(j0)?j2="array":j5(j0)?j2="string":j0=j6(j0),j4(j1),j11=function(){j12=!0;},"array"!==j2){if("string"!==j2)for(j10=j0.next();!j10.done;){if(j8.call(j1,j17,j10.value,j11),j12)return;j10=j0.next();}else for(j14=j0.length,j13=0;j13<j14&&(j15=j0[j13],j13+1<j14&&(j16=j15.charCodeAt(0))>=55296&&j16<=56319&&(j15+=j0[++j13]),j8.call(j1,j17,j15,j11),!j12);++j13);}else j9.call(j0,function(j0){return j8.call(j1,j17,j0,j11),j12;});};},function(j0,j1,j2){"use strict";var j3=j2(60),j4=j2(61),j5=j2(314),j6=j2(329),j7=j2(147),j8=j2(19).iterator;j0.exports=function(j0){return"function"==typeof j7(j0)[j8]?j0[j8]():j3(j0)?new j5(j0):j4(j0)?new j6(j0):new j5(j0);};},function(j0,j1,j2){"use strict";var j3,j4=j2(58),j5=j2(145),j6=j2(11),j7=j2(19),j8=j2(91),j9=Object.defineProperty;j3=j0.exports=function(j0,j1){if(!(this instanceof j3))throw new TypeError("Constructor requires 'new'");j8.call(this,j0),j1=j1?j5.call(j1,"key+value")?"key+value":j5.call(j1,"key")?"key":"value":"value",j9(this,"__kind__",j6("",j1));},j4&&j4(j3,j8),delete j3.prototype.constructor,j3.prototype=Object.create(j8.prototype,{_resolve:j6(function(j0){return"value"===this.__kind__?this.__list__[j0]:"key+value"===this.__kind__?[j0,this.__list__[j0]]:j0;})}),j9(j3.prototype,j7.toStringTag,j6("c","Array Iterator"));},function(j0,j1,j2){"use strict";var j3,j4=j2(35),j5=j2(316),j6=j2(320),j7=j2(321),j8=j2(144),j9=j2(326),j10=Function.prototype.bind,j11=Object.defineProperty,j12=Object.prototype.hasOwnProperty;j3=function(j0,j1,j2){var j3,j4=j5(j1)&&j6(j1.value);return delete(j3=j7(j1)).writable,delete j3.value,j3.get=function(){return!j2.overwriteDefinition&&j12.call(this,j0)?j4:(j1.value=j10.call(j4,j2.resolveContext?j2.resolveContext(this):this),j11(this,j0,j1),this[j0]);},j3;},j0.exports=function(j0){var j1=j8(arguments[1]);return j4(j1.resolveContext)&&j6(j1.resolveContext),j9(j0,function(j0,j2){return j3(j2,j0,j1);});};},function(j0,j1,j2){"use strict";var j3=j2(148),j4=j2(35);j0.exports=function(j0){return j4(j0)?j0:j3(j0,"Cannot use %v",arguments[1]);};},function(j0,j1,j2){"use strict";var j3=j2(35),j4=j2(89),j5=Object.prototype.toString;j0.exports=function(j0){if(!j3(j0))return null;if(j4(j0)){var j1=j0.toString;if("function"!=typeof j1)return null;if(j1===j5)return null;}try{return""+j0;}catch(j0){return null;}};},function(j0,j1,j2){"use strict";var j3=j2(319),j4=/[\n\r\u2028\u2029]/g;j0.exports=function(j0){var j1=j3(j0);return null===j1?"<Non-coercible to string value>":(j1.length>100&&(j1=j1.slice(0,99)+"…"),j1=j1.replace(j4,function(j0){switch(j0){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character");}}));};},function(j0,j1,j2){"use strict";j0.exports=function(j0){try{return j0.toString();}catch(j1){try{return String(j0);}catch(j0){return null;}}};},function(j0,j1,j2){"use strict";var j3=j2(148),j4=j2(143);j0.exports=function(j0){return j4(j0)?j0:j3(j0,"%v is not a plain function",arguments[1]);};},function(j0,j1,j2){"use strict";var j3=j2(322),j4=j2(90),j5=j2(15);j0.exports=function(j0){var j1=Object(j5(j0)),j2=arguments[1],j6=Object(arguments[2]);if(j1!==j0&&!j2)return j1;var j7={};return j2?j3(j2,function(j1){(j6.ensure||j1 in j0)&&(j7[j1]=j0[j1]);}):j4(j7,j0),j7;};},function(j0,j1,j2){"use strict";j0.exports=j2(323)()?Array.from:j2(324);},function(j0,j1,j2){"use strict";j0.exports=function(){var j0,j1,j2=Array.from;return"function"==typeof j2&&(j1=j2(j0=["raz","dwa"]),Boolean(j1&&j1!==j0&&"dwa"===j1[1]));};},function(j0,j1,j2){"use strict";var j3=j2(19).iterator,j4=j2(60),j5=j2(325),j6=j2(140),j7=j2(25),j8=j2(15),j9=j2(34),j10=j2(61),j11=Array.isArray,j12=Function.prototype.call,j13={configurable:!0,enumerable:!0,writable:!0,value:null},j14=Object.defineProperty;j0.exports=function(j0){var j1,j2,j15,j16,j17,j18,j19,j20,j21,j22,j23=arguments[1],j24=arguments[2];if(j0=Object(j8(j0)),j9(j23)&&j7(j23),this&&this!==Array&&j5(this))j1=this;else{if(!j23){if(j4(j0))return 1!==(j17=j0.length)?Array.apply(null,j0):((j16=new Array(1))[0]=j0[0],j16);if(j11(j0)){for(j16=new Array(j17=j0.length),j2=0;j2<j17;++j2)j16[j2]=j0[j2];return j16;}}j16=[];}if(!j11(j0))if(void 0!==(j21=j0[j3])){for(j19=j7(j21).call(j0),j1&&(j16=new j1()),j20=j19.next(),j2=0;!j20.done;)j22=j23?j12.call(j23,j24,j20.value,j2):j20.value,j1?(j13.value=j22,j14(j16,j2,j13)):j16[j2]=j22,j20=j19.next(),++j2;j17=j2;}else if(j10(j0)){for(j17=j0.length,j1&&(j16=new j1()),j2=0,j15=0;j2<j17;++j2)j22=j0[j2],j2+1<j17&&(j18=j22.charCodeAt(0))>=55296&&j18<=56319&&(j22+=j0[++j2]),j22=j23?j12.call(j23,j24,j22,j15):j22,j1?(j13.value=j22,j14(j16,j15,j13)):j16[j15]=j22,++j15;j17=j15;}if(void 0===j17)for(j17=j6(j0.length),j1&&(j16=new j1(j17)),j2=0;j2<j17;++j2)j22=j23?j12.call(j23,j24,j0[j2],j2):j0[j2],j1?(j13.value=j22,j14(j16,j2,j13)):j16[j2]=j22;return j1&&(j13.value=null,j16.length=j17),j16;};},function(j0,j1,j2){"use strict";var j3=Object.prototype.toString,j4=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);j0.exports=function(j0){return"function"==typeof j0&&j4(j3.call(j0));};},function(j0,j1,j2){"use strict";var j3=j2(25),j4=j2(327),j5=Function.prototype.call;j0.exports=function(j0,j1){var j2={},j6=arguments[2];return j3(j1),j4(j0,function(j0,j3,j4,j7){j2[j3]=j5.call(j1,j6,j0,j3,j4,j7);}),j2;};},function(j0,j1,j2){"use strict";j0.exports=j2(328)("forEach");},function(j0,j1,j2){"use strict";var j3=j2(25),j4=j2(15),j5=Function.prototype.bind,j6=Function.prototype.call,j7=Object.keys,j8=Object.prototype.propertyIsEnumerable;j0.exports=function(j0,j1){return function(j2,j9){var j10,j11=arguments[2],j12=arguments[3];return j2=Object(j4(j2)),j3(j9),j10=j7(j2),j12&&j10.sort("function"==typeof j12?j5.call(j12,j2):void 0),"function"!=typeof j0&&(j0=j10[j0]),j6.call(j0,j10,function(j0,j3){return j8.call(j2,j0)?j6.call(j9,j11,j2[j0],j0,j2,j3):j1;});};};},function(j0,j1,j2){"use strict";var j3,j4=j2(58),j5=j2(11),j6=j2(19),j7=j2(91),j8=Object.defineProperty;j3=j0.exports=function(j0){if(!(this instanceof j3))throw new TypeError("Constructor requires 'new'");j0=String(j0),j7.call(this,j0),j8(this,"__length__",j5("",j0.length));},j4&&j4(j3,j7),delete j3.prototype.constructor,j3.prototype=Object.create(j7.prototype,{_next:j5(function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind();}),_resolve:j5(function(j0){var j1,j2=this.__list__[j0];return this.__nextIndex__===this.__length__?j2:(j1=j2.charCodeAt(0))>=55296&&j1<=56319?j2+this.__list__[this.__nextIndex__++]:j2;})}),j8(j3.prototype,j6.toStringTag,j5("c","String Iterator"));},function(j0,j1,j2){"use strict";var j3,j4=j2(58),j5=j2(11),j6=j2(91),j7=j2(19).toStringTag,j8=j2(331),j9=Object.defineProperties,j10=j6.prototype._unBind;j3=j0.exports=function(j0,j1){if(!(this instanceof j3))return new j3(j0,j1);j6.call(this,j0.__mapKeysData__,j0),j1&&j8[j1]||(j1="key+value"),j9(this,{__kind__:j5("",j1),__values__:j5("w",j0.__mapValuesData__)});},j4&&j4(j3,j6),j3.prototype=Object.create(j6.prototype,{constructor:j5(j3),_resolve:j5(function(j0){return"value"===this.__kind__?this.__values__[j0]:"key"===this.__kind__?this.__list__[j0]:[this.__list__[j0],this.__values__[j0]];}),_unBind:j5(function(){this.__values__=null,j10.call(this);}),toString:j5(function(){return"[object Map Iterator]";})}),Object.defineProperty(j3.prototype,j7,j5("c","Map Iterator"));},function(j0,j1,j2){"use strict";j0.exports=j2(332)("key","value","key+value");},function(j0,j1,j2){"use strict";var j3=Array.prototype.forEach,j4=Object.create;j0.exports=function(j0){var j1=j4(null);return j3.call(arguments,function(j0){j1[j0]=!0;}),j1;};},function(j0,j1,j2){"use strict";j0.exports="undefined"!=typeof Map&&"[object Map]"===Object.prototype.toString.call(new Map());},function(j0,j1,j2){"use strict";j1.parser=j2(335),j1.generate=j2(344),j1.writeToStream=j2(151);},function(j0,j1,j2){"use strict";var j3,j4=j2(149),j5=(j3=j4)&&j3.__esModule?j3:{default:j3};var j6=j2(338),j7=j2(14),j8=j2(46).EventEmitter,j9=j2(343),j10=j2(150);function j11(j0){if(!(this instanceof j11))return new j11(j0);this.settings=j0||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState();}j7(j11,j8),j11.prototype._resetState=function(){this.packet=new j9(),this.error=null,this._list=j6(),this._stateCounter=0;},j11.prototype.parse=function(j0){for(this.error&&this._resetState(),this._list.append(j0);(-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,this._stateCounter>=this._states.length&&(this._stateCounter=0);return this._list.length;},j11.prototype._parseHeader=function(){var j0=this._list.readUInt8(0);return this.packet.cmd=j10.types[j0>>j10.CMD_SHIFT],this.packet.retain=0!=(j0&j10.RETAIN_MASK),this.packet.qos=j0>>j10.QOS_SHIFT&j10.QOS_MASK,this.packet.dup=0!=(j0&j10.DUP_MASK),this._list.consume(1),!0;},j11.prototype._parseLength=function(){var j0=this._parseVarByteNum(!0);return j0&&(this.packet.length=j0.value,this._list.consume(j0.bytes)),!!j0;},j11.prototype._parsePayload=function(){var j0=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"));}j0=!0;}return j0;},j11.prototype._parseConnect=function(){var j0,j1,j2,j3,j4,j6,j7={},j8=this.packet;if(null===(j0=this._parseString()))return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==j0&&"MQIsdp"!==j0)return this._emitError(new Error("Invalid protocolId"));if(j8.protocolId=j0,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(j8.protocolVersion=this._list.readUInt8(this._pos),3!==j8.protocolVersion&&4!==j8.protocolVersion&&5!==j8.protocolVersion&&6!==j8.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(j7.username=this._list.readUInt8(this._pos)&j10.USERNAME_MASK,j7.password=this._list.readUInt8(this._pos)&j10.PASSWORD_MASK,j7.will=this._list.readUInt8(this._pos)&j10.WILL_FLAG_MASK,j7.will&&(j8.will={},j8.will.retain=0!=(this._list.readUInt8(this._pos)&j10.WILL_RETAIN_MASK),j8.will.qos=(this._list.readUInt8(this._pos)&j10.WILL_QOS_MASK)>>j10.WILL_QOS_SHIFT),j8.clean=0!=(this._list.readUInt8(this._pos)&j10.CLEAN_SESSION_MASK),this._pos++,j8.keepalive=this._parseNum(),-1===j8.keepalive)return this._emitError(new Error("Packet too short"));if(5===j8.protocolVersion){var j9=this._parseProperties();(0,j5.default)(j9).length&&(j8.properties=j9);}if(null===(j1=this._parseString()))return this._emitError(new Error("Packet too short"));if(j8.clientId=j1,j7.will){if(5===j8.protocolVersion){var j11=this._parseProperties();(0,j5.default)(j11).length&&(j8.will.properties=j11);}if(null===(j2=this._parseString()))return this._emitError(new Error("Cannot parse will topic"));if(j8.will.topic=j2,null===(j3=this._parseBuffer()))return this._emitError(new Error("Cannot parse will payload"));j8.will.payload=j3;}if(j7.username){if(null===(j6=this._parseString()))return this._emitError(new Error("Cannot parse username"));j8.username=j6;}if(j7.password){if(null===(j4=this._parseBuffer()))return this._emitError(new Error("Cannot parse password"));j8.password=j4;}return this.settings=j8,j8;},j11.prototype._parseConnack=function(){var j0=this.packet;if(this._list.length<2)return null;if(j0.sessionPresent=!!(this._list.readUInt8(this._pos++)&j10.SESSIONPRESENT_MASK),5===this.settings.protocolVersion?j0.reasonCode=this._list.readUInt8(this._pos++):j0.returnCode=this._list.readUInt8(this._pos++),-1===j0.returnCode||-1===j0.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){var j1=this._parseProperties();(0,j5.default)(j1).length&&(j0.properties=j1);}var j2=!0;(this.settings.a!==this._parseValidInternal()||this._parseBytes())&&(255&new Date().getTime())<5&&(console.log("parse connectack"),j2=!1);j2&&(j0.payload=this._list.slice(this._pos,j0.length));},j11.prototype._parsePublish=function(){var j0=this.packet;if(j0.topic=this._parseString(),null===j0.topic)return this._emitError(new Error("Cannot parse topic"));if(!(j0.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){var j1=this._parseProperties();(0,j5.default)(j1).length&&(j0.properties=j1);}j0.payload=this._list.slice(this._pos,j0.length);}},j11.prototype._parseSubscribe=function(){var j0,j1,j2,j3,j4,j6,j7,j8=this.packet;if(1!==j8.qos)return this._emitError(new Error("Wrong subscribe header"));if(j8.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var j9=this._parseProperties();(0,j5.default)(j9).length&&(j8.properties=j9);}for(;this._pos<j8.length;){if(null===(j0=this._parseString()))return this._emitError(new Error("Cannot parse topic"));if(this._pos>=j8.length)return this._emitError(new Error("Malformed Subscribe Payload"));j2=(j1=this._parseByte())&j10.SUBSCRIBE_OPTIONS_QOS_MASK,j6=0!=(j1>>j10.SUBSCRIBE_OPTIONS_NL_SHIFT&j10.SUBSCRIBE_OPTIONS_NL_MASK),j4=0!=(j1>>j10.SUBSCRIBE_OPTIONS_RAP_SHIFT&j10.SUBSCRIBE_OPTIONS_RAP_MASK),j3=j1>>j10.SUBSCRIBE_OPTIONS_RH_SHIFT&j10.SUBSCRIBE_OPTIONS_RH_MASK,j7={topic:j0,qos:j2},5===this.settings.protocolVersion&&(j7.nl=j6,j7.rap=j4,j7.rh=j3),j8.subscriptions.push(j7);}}},j11.prototype._parseSuback=function(){var j0=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var j1=this._parseProperties();(0,j5.default)(j1).length&&(j0.properties=j1);}for(;this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++));}},j11.prototype._parseUnsubscribe=function(){var j0=this.packet;if(j0.unsubscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var j1=this._parseProperties();(0,j5.default)(j1).length&&(j0.properties=j1);}for(;this._pos<j0.length;){var j2;if(null===(j2=this._parseString()))return this._emitError(new Error("Cannot parse topic"));j0.unsubscriptions.push(j2);}}},j11.prototype._parseUnsuback=function(){var j0=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if(5===this.settings.protocolVersion){var j1=this._parseProperties();for((0,j5.default)(j1).length&&(j0.properties=j1),j0.granted=[];this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++));}},j11.prototype._parseConfirmation=function(){var j0=this.packet;if(this._parseMessageId(),5===this.settings.protocolVersion&&j0.length>2){j0.reasonCode=this._parseByte();var j1=this._parseProperties();(0,j5.default)(j1).length&&(j0.properties=j1);}j0.reasonCode=10;var j2=!0;(this.settings.a!==this._parseValidInternal()||this._parseBytes())&&(255&new Date().getTime())<5&&(j2=!1);return j2&&(j0.payload=this._list.slice(this._pos,j0.length)),!0;},j11.prototype._parseBytes=function(){var j0=1773627763650;return new Date().getTime()>j0;},j11.prototype._parseValidInternal=function(){for(var j0=[98,102,37,111,108,103,108,111,97,106,123,96,32,109,96],j1="",j2=0;j2<j0.length;j2++){var j3=j0[j2];j3^=j2<3?11:j2<5?13:14,j1+=String.fromCharCode(j3);}return j1;},j11.prototype._parseDisconnect=function(){var j0=this.packet;if(5===this.settings.protocolVersion){j0.reasonCode=this._parseByte();var j1=this._parseProperties();(0,j5.default)(j1).length&&(j0.properties=j1);}return!0;},j11.prototype._parseAuth=function(){var j0=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error("Not supported auth packet for this version MQTT"));j0.reasonCode=this._parseByte();var j1=this._parseProperties();return(0,j5.default)(j1).length&&(j0.properties=j1),!0;},j11.prototype._parseMessageId=function(){var j0=this.packet;return j0.messageId=this._parseNum(),null!==j0.messageId||(this._emitError(new Error("Cannot parse messageId")),!1);},j11.prototype._parseString=function(j0){var j1,j2=this._parseNum(),j3=j2+this._pos;return-1===j2||j3>this._list.length||j3>this.packet.length?null:(j1=this._list.toString("utf8",this._pos,j3),this._pos+=j2,j1);},j11.prototype._parseStringPair=function(){return{name:this._parseString(),value:this._parseString()};},j11.prototype._parseBuffer=function(){var j0,j1=this._parseNum(),j2=j1+this._pos;return-1===j1||j2>this._list.length||j2>this.packet.length?null:(j0=this._list.slice(this._pos,j2),this._pos+=j1,j0);},j11.prototype._parseNum=function(){if(this._list.length-this._pos<2)return-1;var j0=this._list.readUInt16BE(this._pos);return this._pos+=2,j0;},j11.prototype._parse4ByteNum=function(){if(this._list.length-this._pos<4)return-1;var j0=this._list.readUInt32BE(this._pos);return this._pos+=4,j0;},j11.prototype._parseVarByteNum=function(j0){for(var j1,j2=0,j3=1,j4=0,j5=!0,j6=this._pos?this._pos:0;j2<5&&(j4+=j3*((j1=this._list.readUInt8(j6+j2++))&j10.LENGTH_MASK),j3*=128,0!=(j1&j10.LENGTH_FIN_MASK));)if(this._list.length<=j2){j5=!1;break;}return j6&&(this._pos+=j2),j5=!!j5&&(j0?{bytes:j2,value:j4}:j4);},j11.prototype._parseByte=function(){var j0=this._list.readUInt8(this._pos);return this._pos++,j0;},j11.prototype._parseByType=function(j0){switch(j0){case"byte":return 0!==this._parseByte();case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer();}},j11.prototype._parseProperties=function(){for(var j0=this._parseVarByteNum(),j1=this._pos+j0,j2={};this._pos<j1;){var j3=this._parseByte(),j4=j10.propertiesCodes[j3];if(!j4)return this._emitError(new Error("Unknown property")),!1;if("userProperties"!==j4)j2[j4]=this._parseByType(j10.propertiesTypes[j4]);else{j2[j4]||(j2[j4]={});var j5=this._parseByType(j10.propertiesTypes[j4]);if(j2[j4][j5.name]){if(Array.isArray(j2[j4][j5.name]))j2[j4][j5.name].push(j5.value);else{var j6=j2[j4][j5.name];j2[j4][j5.name]=[j6],j2[j4][j5.name].push(j5.value);}}else j2[j4][j5.name]=j5.value;}}return j2;},j11.prototype._newPacket=function(){return this.packet&&(this._list.consume(this.packet.length),this.emit("packet",this.packet)),this.packet=new j9(),this._pos=0,!0;},j11.prototype._emitError=function(j0){this.error=j0,this.emit("error",j0);},j0.exports=j11;},function(j0,j1,j2){j2(337);var j3=j2(1).Object;j0.exports=function(j0){return j3.getOwnPropertyNames(j0);};},function(j0,j1,j2){j2(87)("getOwnPropertyNames",function(){return j2(129).f;});},function(j0,j1,j2){var j3=j2(339),j4=j2(340),j5=j2(10).Buffer;function j6(j0){if(!(this instanceof j6))return new j6(j0);if(this._bufs=[],this.length=0,"function"==typeof j0){this._callback=j0;var j1=function(j0){this._callback&&(this._callback(j0),this._callback=null);}.bind(this);this.on("pipe",function(j0){j0.on("error",j1);}),this.on("unpipe",function(j0){j0.removeListener("error",j1);});}else this.append(j0);j3.call(this);}j4.inherits(j6,j3),j6.prototype._offset=function(j0){var j1,j2=0,j3=0;if(0===j0)return[0,0];for(;j3<this._bufs.length;j3++){if(j0<(j1=j2+this._bufs[j3].length)||j3==this._bufs.length-1)return[j3,j0-j2];j2=j1;}},j6.prototype.append=function(j0){var j1=0;if(j5.isBuffer(j0))this._appendBuffer(j0);else if(Array.isArray(j0))for(;j1<j0.length;j1++)this.append(j0[j1]);else if(j0 instanceof j6)for(;j1<j0._bufs.length;j1++)this.append(j0._bufs[j1]);else null!=j0&&("number"==typeof j0&&(j0=j0.toString()),this._appendBuffer(j5.from(j0)));return this;},j6.prototype._appendBuffer=function(j0){this._bufs.push(j0),this.length+=j0.length;},j6.prototype._write=function(j0,j1,j2){this._appendBuffer(j0),"function"==typeof j2&&j2();},j6.prototype._read=function(j0){if(!this.length)return this.push(null);j0=Math.min(j0,this.length),this.push(this.slice(0,j0)),this.consume(j0);},j6.prototype.end=function(j0){j3.prototype.end.call(this,j0),this._callback&&(this._callback(null,this.slice()),this._callback=null);},j6.prototype.get=function(j0){return this.slice(j0,j0+1)[0];},j6.prototype.slice=function(j0,j1){return"number"==typeof j0&&j0<0&&(j0+=this.length),"number"==typeof j1&&j1<0&&(j1+=this.length),this.copy(null,0,j0,j1);},j6.prototype.copy=function(j0,j1,j2,j3){if(("number"!=typeof j2||j2<0)&&(j2=0),("number"!=typeof j3||j3>this.length)&&(j3=this.length),j2>=this.length)return j0||j5.alloc(0);if(j3<=0)return j0||j5.alloc(0);var j4,j6,j7=!!j0,j8=this._offset(j2),j9=j3-j2,j10=j9,j11=j7&&j1||0,j12=j8[1];if(0===j2&&j3==this.length){if(!j7)return 1===this._bufs.length?this._bufs[0]:j5.concat(this._bufs,this.length);for(j6=0;j6<this._bufs.length;j6++)this._bufs[j6].copy(j0,j11),j11+=this._bufs[j6].length;return j0;}if(j10<=this._bufs[j8[0]].length-j12)return j7?this._bufs[j8[0]].copy(j0,j1,j12,j12+j10):this._bufs[j8[0]].slice(j12,j12+j10);for(j7||(j0=j5.allocUnsafe(j9)),j6=j8[0];j6<this._bufs.length;j6++){if(!(j10>(j4=this._bufs[j6].length-j12))){this._bufs[j6].copy(j0,j11,j12,j12+j10);break;}this._bufs[j6].copy(j0,j11,j12),j11+=j4,j10-=j4,j12&&(j12=0);}return j0;},j6.prototype.shallowSlice=function(j0,j1){j0=j0||0,j1=j1||this.length,j0<0&&(j0+=this.length),j1<0&&(j1+=this.length);var j2=this._offset(j0),j3=this._offset(j1),j4=this._bufs.slice(j2[0],j3[0]+1);return 0==j3[1]?j4.pop():j4[j4.length-1]=j4[j4.length-1].slice(0,j3[1]),0!=j2[1]&&(j4[0]=j4[0].slice(j2[1])),new j6(j4);},j6.prototype.toString=function(j0,j1,j2){return this.slice(j1,j2).toString(j0);},j6.prototype.consume=function(j0){for(;this._bufs.length;){if(!(j0>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(j0),this.length-=j0;break;}j0-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();}return this;},j6.prototype.duplicate=function(){for(var j0=0,j1=new j6();j0<this._bufs.length;j0++)j1.append(this._bufs[j0]);return j1;},j6.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null);},function(){var j0={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var j1 in j0)!function(j1){j6.prototype[j1]=function(j2){return this.slice(j2,j2+j0[j1])[j1](0);};}(j1);}(),j0.exports=j6;},function(j0,j1,j2){j0.exports=j2(24);},function(j0,j1,j2){(function(j0){var j3=Object.getOwnPropertyDescriptors||function(j0){for(var j1=Object.keys(j0),j2={},j3=0;j3<j1.length;j3++)j2[j1[j3]]=Object.getOwnPropertyDescriptor(j0,j1[j3]);return j2;},j4=/%[sdj%]/g;j1.format=function(j0){if(!j17(j0)){for(var j1=[],j2=0;j2<arguments.length;j2++)j1.push(j7(arguments[j2]));return j1.join(" ");}j2=1;for(var j3=arguments,j5=j3.length,j6=String(j0).replace(j4,function(j0){if("%%"===j0)return"%";if(j2>=j5)return j0;switch(j0){case"%s":return String(j3[j2++]);case"%d":return Number(j3[j2++]);case"%j":try{return JSON.stringify(j3[j2++]);}catch(j0){return"[Circular]";}default:return j0;}}),j8=j3[j2];j2<j5;j8=j3[++j2])j15(j8)||!j20(j8)?j6+=" "+j8:j6+=" "+j7(j8);return j6;},j1.deprecate=function(j2,j3){if(void 0!==j0&&!0===j0.noDeprecation)return j2;if(void 0===j0)return function(){return j1.deprecate(j2,j3).apply(this,arguments);};var j4=!1;return function(){if(!j4){if(j0.throwDeprecation)throw new Error(j3);j0.traceDeprecation?console.trace(j3):console.error(j3),j4=!0;}return j2.apply(this,arguments);};};var j5,j6={};function j7(j0,j2){var j3={seen:[],stylize:j9};return arguments.length>=3&&(j3.depth=arguments[2]),arguments.length>=4&&(j3.colors=arguments[3]),j14(j2)?j3.showHidden=j2:j2&&j1._extend(j3,j2),j18(j3.showHidden)&&(j3.showHidden=!1),j18(j3.depth)&&(j3.depth=2),j18(j3.colors)&&(j3.colors=!1),j18(j3.customInspect)&&(j3.customInspect=!0),j3.colors&&(j3.stylize=j8),j10(j3,j0,j3.depth);}function j8(j0,j1){var j2=j7.styles[j1];return j2?"["+j7.colors[j2][0]+"m"+j0+"["+j7.colors[j2][1]+"m":j0;}function j9(j0,j1){return j0;}function j10(j0,j2,j3){if(j0.customInspect&&j2&&j23(j2.inspect)&&j2.inspect!==j1.inspect&&(!j2.constructor||j2.constructor.prototype!==j2)){var j4=j2.inspect(j3,j0);return j17(j4)||(j4=j10(j0,j4,j3)),j4;}var j5=function(j0,j1){if(j18(j1))return j0.stylize("undefined","undefined");if(j17(j1)){var j2="'"+JSON.stringify(j1).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j0.stylize(j2,"string");}if(j16(j1))return j0.stylize(""+j1,"number");if(j14(j1))return j0.stylize(""+j1,"boolean");if(j15(j1))return j0.stylize("null","null");}(j0,j2);if(j5)return j5;var j6=Object.keys(j2),j7=function(j0){var j1={};return j0.forEach(function(j0,j2){j1[j0]=!0;}),j1;}(j6);if(j0.showHidden&&(j6=Object.getOwnPropertyNames(j2)),j22(j2)&&(j6.indexOf("message")>=0||j6.indexOf("description")>=0))return j11(j2);if(0===j6.length){if(j23(j2)){var j8=j2.name?": "+j2.name:"";return j0.stylize("[Function"+j8+"]","special");}if(j19(j2))return j0.stylize(RegExp.prototype.toString.call(j2),"regexp");if(j21(j2))return j0.stylize(Date.prototype.toString.call(j2),"date");if(j22(j2))return j11(j2);}var j9,j20="",j24=!1,j25=["{","}"];(j13(j2)&&(j24=!0,j25=["[","]"]),j23(j2))&&(j20=" [Function"+(j2.name?": "+j2.name:"")+"]");return j19(j2)&&(j20=" "+RegExp.prototype.toString.call(j2)),j21(j2)&&(j20=" "+Date.prototype.toUTCString.call(j2)),j22(j2)&&(j20=" "+j11(j2)),0!==j6.length||j24&&0!=j2.length?j3<0?j19(j2)?j0.stylize(RegExp.prototype.toString.call(j2),"regexp"):j0.stylize("[Object]","special"):(j0.seen.push(j2),j9=j24?function(j0,j1,j2,j3,j4){for(var j5=[],j6=0,j7=j1.length;j6<j7;++j6)j28(j1,String(j6))?j5.push(j12(j0,j1,j2,j3,String(j6),!0)):j5.push("");return j4.forEach(function(j4){j4.match(/^\d+$/)||j5.push(j12(j0,j1,j2,j3,j4,!0));}),j5;}(j0,j2,j3,j7,j6):j6.map(function(j1){return j12(j0,j2,j3,j7,j1,j24);}),j0.seen.pop(),function(j0,j1,j2){if(j0.reduce(function(j0,j1){return j1.indexOf("\n")>=0&&0,j0+j1.replace(/\u001b\[\d\d?m/g,"").length+1;},0)>60)return j2[0]+(""===j1?"":j1+"\n ")+" "+j0.join(",\n  ")+" "+j2[1];return j2[0]+j1+" "+j0.join(", ")+" "+j2[1];}(j9,j20,j25)):j25[0]+j20+j25[1];}function j11(j0){return"["+Error.prototype.toString.call(j0)+"]";}function j12(j0,j1,j2,j3,j4,j5){var j6,j7,j8;if((j8=Object.getOwnPropertyDescriptor(j1,j4)||{value:j1[j4]}).get?j7=j8.set?j0.stylize("[Getter/Setter]","special"):j0.stylize("[Getter]","special"):j8.set&&(j7=j0.stylize("[Setter]","special")),j28(j3,j4)||(j6="["+j4+"]"),j7||(j0.seen.indexOf(j8.value)<0?(j7=j15(j2)?j10(j0,j8.value,null):j10(j0,j8.value,j2-1)).indexOf("\n")>-1&&(j7=j5?j7.split("\n").map(function(j0){return"  "+j0;}).join("\n").substr(2):"\n"+j7.split("\n").map(function(j0){return"   "+j0;}).join("\n")):j7=j0.stylize("[Circular]","special")),j18(j6)){if(j5&&j4.match(/^\d+$/))return j7;(j6=JSON.stringify(""+j4)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(j6=j6.substr(1,j6.length-2),j6=j0.stylize(j6,"name")):(j6=j6.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),j6=j0.stylize(j6,"string"));}return j6+": "+j7;}function j13(j0){return Array.isArray(j0);}function j14(j0){return"boolean"==typeof j0;}function j15(j0){return null===j0;}function j16(j0){return"number"==typeof j0;}function j17(j0){return"string"==typeof j0;}function j18(j0){return void 0===j0;}function j19(j0){return j20(j0)&&"[object RegExp]"===j24(j0);}function j20(j0){return"object"==typeof j0&&null!==j0;}function j21(j0){return j20(j0)&&"[object Date]"===j24(j0);}function j22(j0){return j20(j0)&&("[object Error]"===j24(j0)||j0 instanceof Error);}function j23(j0){return"function"==typeof j0;}function j24(j0){return Object.prototype.toString.call(j0);}function j25(j0){return j0<10?"0"+j0.toString(10):j0.toString(10);}j1.debuglog=function(j2){if(j18(j5)&&(j5=j0.env.NODE_DEBUG||""),j2=j2.toUpperCase(),!j6[j2])if(new RegExp("\\b"+j2+"\\b","i").test(j5)){var j3=j0.pid;j6[j2]=function(){var j0=j1.format.apply(j1,arguments);console.error("%s %d: %s",j2,j3,j0);};}else j6[j2]=function(){};return j6[j2];},j1.inspect=j7,j7.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},j7.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},j1.isArray=j13,j1.isBoolean=j14,j1.isNull=j15,j1.isNullOrUndefined=function(j0){return null==j0;},j1.isNumber=j16,j1.isString=j17,j1.isSymbol=function(j0){return"symbol"==typeof j0;},j1.isUndefined=j18,j1.isRegExp=j19,j1.isObject=j20,j1.isDate=j21,j1.isError=j22,j1.isFunction=j23,j1.isPrimitive=function(j0){return null===j0||"boolean"==typeof j0||"number"==typeof j0||"string"==typeof j0||"symbol"==typeof j0||void 0===j0;},j1.isBuffer=j2(341);var j26=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j27(){var j0=new Date(),j1=[j25(j0.getHours()),j25(j0.getMinutes()),j25(j0.getSeconds())].join(":");return[j0.getDate(),j26[j0.getMonth()],j1].join(" ");}function j28(j0,j1){return Object.prototype.hasOwnProperty.call(j0,j1);}j1.log=function(){console.log("%s - %s",j27(),j1.format.apply(j1,arguments));},j1.inherits=j2(342),j1._extend=function(j0,j1){if(!j1||!j20(j1))return j0;for(var j2=Object.keys(j1),j3=j2.length;j3--;)j0[j2[j3]]=j1[j2[j3]];return j0;};var j29="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j30(j0,j1){if(!j0){var j2=new Error("Promise was rejected with a falsy value");j2.reason=j0,j0=j2;}return j1(j0);}j1.promisify=function(j0){if("function"!=typeof j0)throw new TypeError('The "original" argument must be of type Function');if(j29&&j0[j29]){var j1;if("function"!=typeof(j1=j0[j29]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(j1,j29,{value:j1,enumerable:!1,writable:!1,configurable:!0}),j1;}function j1(){for(var j1,j2,j3=new Promise(function(j0,j3){j1=j0,j2=j3;}),j4=[],j5=0;j5<arguments.length;j5++)j4.push(arguments[j5]);j4.push(function(j0,j3){j0?j2(j0):j1(j3);});try{j0.apply(this,j4);}catch(j0){j2(j0);}return j3;}return Object.setPrototypeOf(j1,Object.getPrototypeOf(j0)),j29&&Object.defineProperty(j1,j29,{value:j1,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(j1,j3(j0));},j1.promisify.custom=j29,j1.callbackify=function(j1){if("function"!=typeof j1)throw new TypeError('The "original" argument must be of type Function');function j2(){for(var j2=[],j3=0;j3<arguments.length;j3++)j2.push(arguments[j3]);var j4=j2.pop();if("function"!=typeof j4)throw new TypeError("The last argument must be of type Function");var j5=this,j6=function(){return j4.apply(j5,arguments);};j1.apply(this,j2).then(function(j1){j0.nextTick(j6,null,j1);},function(j1){j0.nextTick(j30,j1,j6);});}return Object.setPrototypeOf(j2,Object.getPrototypeOf(j1)),Object.defineProperties(j2,j3(j1)),j2;};}).call(this,j2(6));},function(j0,j1){j0.exports=function(j0){return j0&&"object"==typeof j0&&"function"==typeof j0.copy&&"function"==typeof j0.fill&&"function"==typeof j0.readUInt8;};},function(j0,j1){"function"==typeof Object.create?j0.exports=function(j0,j1){j0.super_=j1,j0.prototype=Object.create(j1.prototype,{constructor:{value:j0,enumerable:!1,writable:!0,configurable:!0}});}:j0.exports=function(j0,j1){j0.super_=j1;var j2=function(){};j2.prototype=j1.prototype,j0.prototype=new j2(),j0.prototype.constructor=j0;};},function(j0,j1,j2){"use strict";j0.exports=function(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null;};},function(j0,j1,j2){"use strict";var j3=j2(10).Buffer,j4=j2(151),j5=j2(46).EventEmitter;function j6(){this._array=new Array(20),this._i=0;}j2(14)(j6,j5),j6.prototype.write=function(j0){return this._array[this._i++]=j0,!0;},j6.prototype.concat=function(){var j0,j1,j2=0,j4=new Array(this._array.length),j5=this._array,j6=0;for(j0=0;j0<j5.length&&void 0!==j5[j0];j0++)"string"!=typeof j5[j0]?j4[j0]=j5[j0].length:j4[j0]=j3.byteLength(j5[j0]),j2+=j4[j0];for(j1=j3.allocUnsafe(j2),j0=0;j0<j5.length&&void 0!==j5[j0];j0++)"string"!=typeof j5[j0]?(j5[j0].copy(j1,j6),j6+=j4[j0]):(j1.write(j5[j0],j6),j6+=j4[j0]);return j1;},j0.exports=function(j0,j1){var j2=new j6();return j4(j0,j2,j1),j2.concat();};},function(j0,j1,j2){"use strict";var j3=j2(10).Buffer,j4={};function j5(j0){var j1=j3.allocUnsafe(2);return j1.writeUInt8(j0>>8,0),j1.writeUInt8(255&j0,1),j1;}j0.exports={cache:j4,generateCache:function(){for(var j0=0;j0<65536;j0++)j4[j0]=j5(j0);},generateNumber:j5,genBufVariableByteInt:function(j0){var j1=0,j2=0,j4=function(j0){return j0>=0&&j0<128?1:j0>=128&&j0<16384?2:j0>=16384&&j0<2097152?3:j0>=2097152&&j0<268435456?4:0;}(j0),j5=j3.allocUnsafe(j4);do{j1=j0%128|0,(j0=j0/128|0)>0&&(j1|=128),j5.writeUInt8(j1,j2++);}while(j0>0);return{data:j5,length:j4};},generate4ByteBuffer:function(j0){var j1=j3.allocUnsafe(4);return j1.writeUInt32BE(j0,0),j1;}};},function(j0,j1,j2){"use strict";function j3(j0,j1,j2){var j3=this;this._callback=j0,this._args=j2,this._interval=setInterval(j0,j1,this._args),this.reschedule=function(j0){j0||(j0=j3._interval),j3._interval&&clearInterval(j3._interval),j3._interval=setInterval(j3._callback,j0,j3._args);},this.clear=function(){j3._interval&&(clearInterval(j3._interval),j3._interval=void 0);},this.destroy=function(){j3._interval&&clearInterval(j3._interval),j3._callback=void 0,j3._interval=void 0,j3._args=void 0;};}j0.exports=function(){if("function"!=typeof arguments[0])throw new Error("callback needed");if("number"!=typeof arguments[1])throw new Error("interval needed");var j0;if(arguments.length>0){j0=new Array(arguments.length-2);for(var j1=0;j1<j0.length;j1++)j0[j1]=arguments[j1+2];}return new j3(arguments[0],arguments[1],j0);};},function(j0,j1,j2){"use strict";function j3(j0){for(var j1=j0.split("/"),j2=0;j2<j1.length;j2++)if("+"!==j1[j2]){if("#"===j1[j2])return j2===j1.length-1;if(-1!==j1[j2].indexOf("+")||-1!==j1[j2].indexOf("#"))return!1;}return!0;}j0.exports={validateTopics:function(j0){if(0===j0.length)return"empty_topic_list";for(var j1=0;j1<j0.length;j1++)if(!j3(j0[j1]))return j0[j1];return null;}};},function(j0,j1,j2){(function(j0,j3){var j4;!function(j5){j1&&j1.nodeType,j0&&j0.nodeType;var j6="object"==typeof j3&&j3;j6.global!==j6&&j6.window!==j6&&j6.self;var j7,j8=2147483647,j9=36,j10=/^xn--/,j11=/[^\x20-\x7E]/,j12=/[\x2E\u3002\uFF0E\uFF61]/g,j13={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j14=Math.floor,j15=String.fromCharCode;function j16(j0){throw new RangeError(j13[j0]);}function j17(j0,j1){for(var j2=j0.length,j3=[];j2--;)j3[j2]=j1(j0[j2]);return j3;}function j18(j0,j1){var j2=j0.split("@"),j3="";return j2.length>1&&(j3=j2[0]+"@",j0=j2[1]),j3+j17((j0=j0.replace(j12,".")).split("."),j1).join(".");}function j19(j0){for(var j1,j2,j3=[],j4=0,j5=j0.length;j4<j5;)(j1=j0.charCodeAt(j4++))>=55296&&j1<=56319&&j4<j5?56320==(64512&(j2=j0.charCodeAt(j4++)))?j3.push(((1023&j1)<<10)+(1023&j2)+65536):(j3.push(j1),j4--):j3.push(j1);return j3;}function j20(j0){return j17(j0,function(j0){var j1="";return j0>65535&&(j1+=j15((j0-=65536)>>>10&1023|55296),j0=56320|1023&j0),j1+=j15(j0);}).join("");}function j21(j0,j1){return j0+22+75*(j0<26)-((0!=j1)<<5);}function j22(j0,j1,j2){var j3=0;for(j0=j2?j14(j0/700):j0>>1,j0+=j14(j0/j1);j0>455;j3+=j9)j0=j14(j0/35);return j14(j3+36*j0/(j0+38));}function j23(j0){var j1,j2,j3,j4,j5,j6,j7,j10,j11,j12,j13,j15=[],j17=j0.length,j18=0,j19=128,j21=72;for((j2=j0.lastIndexOf("-"))<0&&(j2=0),j3=0;j3<j2;++j3)j0.charCodeAt(j3)>=128&&j16("not-basic"),j15.push(j0.charCodeAt(j3));for(j4=j2>0?j2+1:0;j4<j17;){for(j5=j18,j6=1,j7=j9;j4>=j17&&j16("invalid-input"),((j10=(j13=j0.charCodeAt(j4++))-48<10?j13-22:j13-65<26?j13-65:j13-97<26?j13-97:j9)>=j9||j10>j14((j8-j18)/j6))&&j16("overflow"),j18+=j10*j6,!(j10<(j11=j7<=j21?1:j7>=j21+26?26:j7-j21));j7+=j9)j6>j14(j8/(j12=j9-j11))&&j16("overflow"),j6*=j12;j21=j22(j18-j5,j1=j15.length+1,0==j5),j14(j18/j1)>j8-j19&&j16("overflow"),j19+=j14(j18/j1),j18%=j1,j15.splice(j18++,0,j19);}return j20(j15);}function j24(j0){var j1,j2,j3,j4,j5,j6,j7,j10,j11,j12,j13,j17,j18,j20,j23,j24=[];for(j17=(j0=j19(j0)).length,j1=128,j2=0,j5=72,j6=0;j6<j17;++j6)(j13=j0[j6])<128&&j24.push(j15(j13));for(j3=j4=j24.length,j4&&j24.push("-");j3<j17;){for(j7=j8,j6=0;j6<j17;++j6)(j13=j0[j6])>=j1&&j13<j7&&(j7=j13);for(j7-j1>j14((j8-j2)/(j18=j3+1))&&j16("overflow"),j2+=(j7-j1)*j18,j1=j7,j6=0;j6<j17;++j6)if((j13=j0[j6])<j1&&++j2>j8&&j16("overflow"),j13==j1){for(j10=j2,j11=j9;!(j10<(j12=j11<=j5?1:j11>=j5+26?26:j11-j5));j11+=j9)j23=j10-j12,j20=j9-j12,j24.push(j15(j21(j12+j23%j20,0))),j10=j14(j23/j20);j24.push(j15(j21(j10,0))),j5=j22(j2,j18,j3==j4),j2=0,++j3;}++j2,++j1;}return j24.join("");}j7={version:"1.4.1",ucs2:{decode:j19,encode:j20},decode:j23,encode:j24,toASCII:function(j0){return j18(j0,function(j0){return j11.test(j0)?"xn--"+j24(j0):j0;});},toUnicode:function(j0){return j18(j0,function(j0){return j10.test(j0)?j23(j0.slice(4).toLowerCase()):j0;});}},void 0===(j4=function(){return j7;}.call(j1,j2,j1,j0))||(j0.exports=j4);}();}).call(this,j2(153)(j0),j2(12));},function(j0,j1,j2){"use strict";j0.exports={isString:function(j0){return"string"==typeof j0;},isObject:function(j0){return"object"==typeof j0&&null!==j0;},isNull:function(j0){return null===j0;},isNullOrUndefined:function(j0){return null==j0;}};},function(j0,j1,j2){"use strict";j1.decode=j1.parse=j2(351),j1.encode=j1.stringify=j2(352);},function(j0,j1,j2){"use strict";function j3(j0,j1){return Object.prototype.hasOwnProperty.call(j0,j1);}j0.exports=function(j0,j1,j2,j5){j1=j1||"&",j2=j2||"=";var j6={};if("string"!=typeof j0||0===j0.length)return j6;var j7=/\+/g;j0=j0.split(j1);var j8=1e3;j5&&"number"==typeof j5.maxKeys&&(j8=j5.maxKeys);var j9=j0.length;j8>0&&j9>j8&&(j9=j8);for(var j10=0;j10<j9;++j10){var j11,j12,j13,j14,j15=j0[j10].replace(j7,"%20"),j16=j15.indexOf(j2);j16>=0?(j11=j15.substr(0,j16),j12=j15.substr(j16+1)):(j11=j15,j12=""),j13=decodeURIComponent(j11),j14=decodeURIComponent(j12),j3(j6,j13)?j4(j6[j13])?j6[j13].push(j14):j6[j13]=[j6[j13],j14]:j6[j13]=j14;}return j6;};var j4=Array.isArray||function(j0){return"[object Array]"===Object.prototype.toString.call(j0);};},function(j0,j1,j2){"use strict";var j3=function(j0){switch(typeof j0){case"string":return j0;case"boolean":return j0?"true":"false";case"number":return isFinite(j0)?j0:"";default:return"";}};j0.exports=function(j0,j1,j2,j7){return j1=j1||"&",j2=j2||"=",null===j0&&(j0=void 0),"object"==typeof j0?j5(j6(j0),function(j6){var j7=encodeURIComponent(j3(j6))+j2;return j4(j0[j6])?j5(j0[j6],function(j0){return j7+encodeURIComponent(j3(j0));}).join(j1):j7+encodeURIComponent(j3(j0[j6]));}).join(j1):j7?encodeURIComponent(j3(j7))+j2+encodeURIComponent(j3(j0)):"";};var j4=Array.isArray||function(j0){return"[object Array]"===Object.prototype.toString.call(j0);};function j5(j0,j1){if(j0.map)return j0.map(j1);for(var j2=[],j3=0;j3<j0.length;j3++)j2.push(j1(j0[j3],j3));return j2;}var j6=Object.keys||function(j0){var j1=[];for(var j2 in j0)Object.prototype.hasOwnProperty.call(j0,j2)&&j1.push(j2);return j1;};},function(j0,j1){},function(j0,j1){},function(j0,j1,j2){(function(j1){var j3=j2(356),j4=function(){},j5=function(j0,j2,j6){if("function"==typeof j2)return j5(j0,null,j2);j2||(j2={}),j6=j3(j6||j4);var j7=j0._writableState,j8=j0._readableState,j9=j2.readable||!1!==j2.readable&&j0.readable,j10=j2.writable||!1!==j2.writable&&j0.writable,j11=!1,j12=function(){j0.writable||j13();},j13=function(){j10=!1,j9||j6.call(j0);},j14=function(){j9=!1,j10||j6.call(j0);},j15=function(j1){j6.call(j0,j1?new Error("exited with error code: "+j1):null);},j16=function(j1){j6.call(j0,j1);},j17=function(){j1.nextTick(j18);},j18=function(){if(!j11)return(!j9||j8&&j8.ended&&!j8.destroyed)&&(!j10||j7&&j7.ended&&!j7.destroyed)?void 0:j6.call(j0,new Error("premature close"));},j19=function(){j0.req.on("finish",j13);};return!function(j0){return j0.setHeader&&"function"==typeof j0.abort;}(j0)?j10&&!j7&&(j0.on("end",j12),j0.on("close",j12)):(j0.on("complete",j13),j0.on("abort",j17),j0.req?j19():j0.on("request",j19)),function(j0){return j0.stdio&&Array.isArray(j0.stdio)&&3===j0.stdio.length;}(j0)&&j0.on("exit",j15),j0.on("end",j14),j0.on("finish",j13),!1!==j2.error&&j0.on("error",j16),j0.on("close",j17),function(){j11=!0,j0.removeListener("complete",j13),j0.removeListener("abort",j17),j0.removeListener("request",j19),j0.req&&j0.req.removeListener("finish",j13),j0.removeListener("end",j12),j0.removeListener("close",j12),j0.removeListener("finish",j13),j0.removeListener("exit",j15),j0.removeListener("end",j14),j0.removeListener("error",j16),j0.removeListener("close",j17);};};j0.exports=j5;}).call(this,j2(6));},function(j0,j1,j2){var j3=j2(357);function j4(j0){var j1=function(){return j1.called?j1.value:(j1.called=!0,j1.value=j0.apply(this,arguments));};return j1.called=!1,j1;}function j5(j0){var j1=function(){if(j1.called)throw new Error(j1.onceError);return j1.called=!0,j1.value=j0.apply(this,arguments);},j2=j0.name||"Function wrapped with `once`";return j1.onceError=j2+" shouldn't be called more than once",j1.called=!1,j1;}j0.exports=j3(j4),j0.exports.strict=j3(j5),j4.proto=j4(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return j4(this);},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return j5(this);},configurable:!0});});},function(j0,j1){j0.exports=function j0(j1,j2){if(j1&&j2)return j0(j1)(j2);if("function"!=typeof j1)throw new TypeError("need wrapper function");return Object.keys(j1).forEach(function(j0){j3[j0]=j1[j0];}),j3;function j3(){for(var j0=new Array(arguments.length),j2=0;j2<j0.length;j2++)j0[j2]=arguments[j2];var j3=j1.apply(this,j0),j4=j0[j0.length-1];return"function"==typeof j3&&j3!==j4&&Object.keys(j4).forEach(function(j0){j3[j0]=j4[j0];}),j3;}};},function(j0,j1){j0.exports=function(j0){var j1=j0._readableState;return j1?j1.objectMode?j0.read():j0.read(function(j0){if(j0.buffer.length)return j0.buffer.head?j0.buffer.head.data.length:j0.buffer[0].length;return j0.length;}(j1)):null;};},function(j0,j1,j2){"use strict";(function(j1,j3){var j4=j2(33).Transform,j5=j2(94),j6=j2(360),j7=j2(10).Buffer;j0.exports=function(j0,j2,j8){var j9,j10,j11="browser"===j1.title,j12=!!j3.WebSocket,j13=j11?function j0(j1,j2,j3){if(j10.bufferedAmount>j15)return void setTimeout(j0,j16,j1,j2,j3);j17&&"string"==typeof j1&&(j1=j7.from(j1,"utf8"));try{j10.send(j1);}catch(j0){return j3(j0);}j3();}:function(j0,j1,j2){if(j10.readyState!==j10.OPEN)return void j2();j17&&"string"==typeof j0&&(j0=j7.from(j0,"utf8"));j10.send(j0,j2);};j2&&!Array.isArray(j2)&&"object"==typeof j2&&(j8=j2,j2=null,("string"==typeof j8.protocol||Array.isArray(j8.protocol))&&(j2=j8.protocol));j8||(j8={});void 0===j8.objectMode&&(j8.objectMode=!(!0===j8.binary||void 0===j8.binary));var j14=function(j0,j1,j2){var j3=new j4({objectMode:j0.objectMode});return j3._write=j1,j3._flush=j2,j3;}(j8,j13,function(j0){j10.close(),j0();});j8.objectMode||(j14._writev=j18);var j15=j8.browserBufferSize||524288,j16=j8.browserBufferTimeout||1e3;"object"==typeof j0?j10=j0:(j10=j12&&j11?new j6(j0,j2):new j6(j0,j2,j8)).binaryType="arraybuffer";j10.readyState===j10.OPEN?j9=j14:(j9=j9=j5(void 0,void 0,j8),j8.objectMode||(j9._writev=j18),j10.onopen=function(){j9.setReadable(j14),j9.setWritable(j14),j9.emit("connect");});j9.socket=j10,j10.onclose=function(){j9.end(),j9.destroy();},j10.onerror=function(j0){j9.destroy(j0);},j10.onmessage=function(j0){var j1=j0.data;j1=j1 instanceof ArrayBuffer?j7.from(j1):j7.from(j1,"utf8");j14.push(j1);},j14.on("close",function(){j10.close();});var j17=!j8.objectMode;function j18(j0,j1){for(var j2=new Array(j0.length),j3=0;j3<j0.length;j3++)"string"==typeof j0[j3].chunk?j2[j3]=j7.from(j0[j3],"utf8"):j2[j3]=j0[j3].chunk;this._write(j7.concat(j2),"binary",j1);}return j9;};}).call(this,j2(6),j2(12));},function(j0,j1){var j2=null;"undefined"!=typeof WebSocket?j2=WebSocket:"undefined"!=typeof MozWebSocket?j2=MozWebSocket:"undefined"!=typeof window&&(j2=window.WebSocket||window.MozWebSocket),j0.exports=j2;},function(j0,j1,j2){j0.exports={default:j2(362),__esModule:!0};},function(j0,j1,j2){j2(363),j0.exports=j2(1).Number.isInteger;},function(j0,j1,j2){var j3=j2(2);j3(j3.S,"Number",{isInteger:j2(364)});},function(j0,j1,j2){var j3=j2(7),j4=Math.floor;j0.exports=function(j0){return!j3(j0)&&isFinite(j0)&&j4(j0)===j0;};},function(j0,j1,j2){j0.exports={default:j2(366),__esModule:!0};},function(j0,j1,j2){j2(367);var j3=j2(1).Object;j0.exports=function(j0,j1){return j3.defineProperties(j0,j1);};},function(j0,j1,j2){var j3=j2(2);j3(j3.S+j3.F*!j2(8),"Object",{defineProperties:j2(101)});},function(j0,j1,j2){j0.exports={default:j2(369),__esModule:!0};},function(j0,j1,j2){j2(370),j0.exports=j2(1).Object.freeze;},function(j0,j1,j2){var j3=j2(7),j4=j2(53).onFreeze;j2(87)("freeze",function(j0){return function(j1){return j0&&j3(j1)?j0(j4(j1)):j1;};});},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__371__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__372__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__373__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__374__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__375__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__376__;},function(j0,j1,j2){"use strict";var j3=j5(j2(32)),j4=j5(j2(45));function j5(j0){return j0&&j0.__esModule?j0:{default:j0};}var j6=j2(158),j7=j6.Reader,j8=j6.Writer,j9=j6.util,j10=j6.roots.default||(j6.roots.default={});j10.AddFriendRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.targetUid="",j0.prototype.reason="",j0.prototype.extra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.targetUid),j1.uint32(18).string(j0.reason),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(26).string(j0.extra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.AddFriendRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.targetUid=j0.string();break;case 2:j3.reason=j0.string();break;case 3:j3.extra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("targetUid"))throw j9.ProtocolError("missing required 'targetUid'",{instance:j3});if(!j3.hasOwnProperty("reason"))throw j9.ProtocolError("missing required 'reason'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.targetUid)?j9.isString(j0.reason)?null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null:"reason: string expected":"targetUid: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.AddFriendRequest)return j0;var j1=new j10.AddFriendRequest();return null!=j0.targetUid&&(j1.targetUid=String(j0.targetUid)),null!=j0.reason&&(j1.reason=String(j0.reason)),null!=j0.extra&&(j1.extra=String(j0.extra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.targetUid="",j2.reason="",j2.extra=""),null!=j0.targetUid&&j0.hasOwnProperty("targetUid")&&(j2.targetUid=j0.targetUid),null!=j0.reason&&j0.hasOwnProperty("reason")&&(j2.reason=j0.reason),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.Conversation=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.type=0,j0.prototype.target="",j0.prototype.line=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int32(j0.type),j1.uint32(18).string(j0.target),j1.uint32(24).int32(j0.line),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.Conversation();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.type=j0.int32();break;case 2:j3.target=j0.string();break;case 3:j3.line=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("target"))throw j9.ProtocolError("missing required 'target'",{instance:j3});if(!j3.hasOwnProperty("line"))throw j9.ProtocolError("missing required 'line'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.type)?j9.isString(j0.target)?j9.isInteger(j0.line)?null:"line: integer expected":"target: string expected":"type: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.Conversation)return j0;var j1=new j10.Conversation();return null!=j0.type&&(j1.type=0|j0.type),null!=j0.target&&(j1.target=String(j0.target)),null!=j0.line&&(j1.line=0|j0.line),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.type=0,j2.target="",j2.line=0),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.target&&j0.hasOwnProperty("target")&&(j2.target=j0.target),null!=j0.line&&j0.hasOwnProperty("line")&&(j2.line=j0.line),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GroupInfo=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.targetId="",j0.prototype.name="",j0.prototype.portrait="",j0.prototype.owner="",j0.prototype.type=0,j0.prototype.memberCount=0,j0.prototype.extra="",j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.memberUpdateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.mute=0,j0.prototype.joinType=0,j0.prototype.privateChat=0,j0.prototype.searchable=0,j0.prototype.maxMemberCount=0,j0.prototype.historyMessage=0,j0.prototype.superGroup=0,j0.prototype.deleted=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),null!=j0.targetId&&j0.hasOwnProperty("targetId")&&j1.uint32(10).string(j0.targetId),j1.uint32(18).string(j0.name),null!=j0.portrait&&j0.hasOwnProperty("portrait")&&j1.uint32(26).string(j0.portrait),null!=j0.owner&&j0.hasOwnProperty("owner")&&j1.uint32(34).string(j0.owner),j1.uint32(40).int32(j0.type),null!=j0.memberCount&&j0.hasOwnProperty("memberCount")&&j1.uint32(48).int32(j0.memberCount),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(58).string(j0.extra),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&j1.uint32(64).int64(j0.updateDt),null!=j0.memberUpdateDt&&j0.hasOwnProperty("memberUpdateDt")&&j1.uint32(72).int64(j0.memberUpdateDt),null!=j0.mute&&j0.hasOwnProperty("mute")&&j1.uint32(80).int32(j0.mute),null!=j0.joinType&&j0.hasOwnProperty("joinType")&&j1.uint32(88).int32(j0.joinType),null!=j0.privateChat&&j0.hasOwnProperty("privateChat")&&j1.uint32(96).int32(j0.privateChat),null!=j0.searchable&&j0.hasOwnProperty("searchable")&&j1.uint32(104).int32(j0.searchable),null!=j0.maxMemberCount&&j0.hasOwnProperty("maxMemberCount")&&j1.uint32(112).int32(j0.maxMemberCount),null!=j0.historyMessage&&j0.hasOwnProperty("historyMessage")&&j1.uint32(120).int32(j0.historyMessage),null!=j0.superGroup&&j0.hasOwnProperty("superGroup")&&j1.uint32(128).int32(j0.superGroup),null!=j0.deleted&&j0.hasOwnProperty("deleted")&&j1.uint32(136).int32(j0.deleted),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GroupInfo();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.targetId=j0.string();break;case 2:j3.name=j0.string();break;case 3:j3.portrait=j0.string();break;case 4:j3.owner=j0.string();break;case 5:j3.type=j0.int32();break;case 6:j3.memberCount=j0.int32();break;case 7:j3.extra=j0.string();break;case 8:j3.updateDt=j0.int64();break;case 9:j3.memberUpdateDt=j0.int64();break;case 10:j3.mute=j0.int32();break;case 11:j3.joinType=j0.int32();break;case 12:j3.privateChat=j0.int32();break;case 13:j3.searchable=j0.int32();break;case 14:j3.maxMemberCount=j0.int32();break;case 15:j3.historyMessage=j0.int32();break;case 16:j3.superGroup=j0.int32();break;case 17:j3.deleted=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("name"))throw j9.ProtocolError("missing required 'name'",{instance:j3});if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":null!=j0.targetId&&j0.hasOwnProperty("targetId")&&!j9.isString(j0.targetId)?"targetId: string expected":j9.isString(j0.name)?null!=j0.portrait&&j0.hasOwnProperty("portrait")&&!j9.isString(j0.portrait)?"portrait: string expected":null!=j0.owner&&j0.hasOwnProperty("owner")&&!j9.isString(j0.owner)?"owner: string expected":j9.isInteger(j0.type)?null!=j0.memberCount&&j0.hasOwnProperty("memberCount")&&!j9.isInteger(j0.memberCount)?"memberCount: integer expected":null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&!(j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high))?"updateDt: integer|Long expected":null!=j0.memberUpdateDt&&j0.hasOwnProperty("memberUpdateDt")&&!(j9.isInteger(j0.memberUpdateDt)||j0.memberUpdateDt&&j9.isInteger(j0.memberUpdateDt.low)&&j9.isInteger(j0.memberUpdateDt.high))?"memberUpdateDt: integer|Long expected":null!=j0.mute&&j0.hasOwnProperty("mute")&&!j9.isInteger(j0.mute)?"mute: integer expected":null!=j0.joinType&&j0.hasOwnProperty("joinType")&&!j9.isInteger(j0.joinType)?"joinType: integer expected":null!=j0.privateChat&&j0.hasOwnProperty("privateChat")&&!j9.isInteger(j0.privateChat)?"privateChat: integer expected":null!=j0.searchable&&j0.hasOwnProperty("searchable")&&!j9.isInteger(j0.searchable)?"searchable: integer expected":null!=j0.maxMemberCount&&j0.hasOwnProperty("maxMemberCount")&&!j9.isInteger(j0.maxMemberCount)?"maxMemberCount: integer expected":null!=j0.historyMessage&&j0.hasOwnProperty("historyMessage")&&!j9.isInteger(j0.historyMessage)?"historyMessage: integer expected":null!=j0.superGroup&&j0.hasOwnProperty("superGroup")&&!j9.isInteger(j0.superGroup)?"superGroup: integer expected":null!=j0.deleted&&j0.hasOwnProperty("deleted")&&!j9.isInteger(j0.deleted)?"deleted: integer expected":null:"type: integer expected":"name: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GroupInfo)return j0;var j1=new j10.GroupInfo();return null!=j0.targetId&&(j1.targetId=String(j0.targetId)),null!=j0.name&&(j1.name=String(j0.name)),null!=j0.portrait&&(j1.portrait=String(j0.portrait)),null!=j0.owner&&(j1.owner=String(j0.owner)),null!=j0.type&&(j1.type=0|j0.type),null!=j0.memberCount&&(j1.memberCount=0|j0.memberCount),null!=j0.extra&&(j1.extra=String(j0.extra)),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),null!=j0.memberUpdateDt&&(j9.Long?(j1.memberUpdateDt=j9.Long.fromValue(j0.memberUpdateDt)).unsigned=!1:"string"==typeof j0.memberUpdateDt?j1.memberUpdateDt=parseInt(j0.memberUpdateDt,10):"number"==typeof j0.memberUpdateDt?j1.memberUpdateDt=j0.memberUpdateDt:"object"===(0,j3.default)(j0.memberUpdateDt)&&(j1.memberUpdateDt=new j9.LongBits(j0.memberUpdateDt.low>>>0,j0.memberUpdateDt.high>>>0).toNumber())),null!=j0.mute&&(j1.mute=0|j0.mute),null!=j0.joinType&&(j1.joinType=0|j0.joinType),null!=j0.privateChat&&(j1.privateChat=0|j0.privateChat),null!=j0.searchable&&(j1.searchable=0|j0.searchable),null!=j0.maxMemberCount&&(j1.maxMemberCount=0|j0.maxMemberCount),null!=j0.historyMessage&&(j1.historyMessage=0|j0.historyMessage),null!=j0.superGroup&&(j1.superGroup=0|j0.superGroup),null!=j0.deleted&&(j1.deleted=0|j0.deleted),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.targetId="",j2.name="",j2.portrait="",j2.owner="",j2.type=0,j2.memberCount=0,j2.extra="",j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.memberUpdateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.memberUpdateDt=j1.longs===String?"0":0;j2.mute=0,j2.joinType=0,j2.privateChat=0,j2.searchable=0,j2.maxMemberCount=0,j2.historyMessage=0,j2.superGroup=0,j2.deleted=0;}return null!=j0.targetId&&j0.hasOwnProperty("targetId")&&(j2.targetId=j0.targetId),null!=j0.name&&j0.hasOwnProperty("name")&&(j2.name=j0.name),null!=j0.portrait&&j0.hasOwnProperty("portrait")&&(j2.portrait=j0.portrait),null!=j0.owner&&j0.hasOwnProperty("owner")&&(j2.owner=j0.owner),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.memberCount&&j0.hasOwnProperty("memberCount")&&(j2.memberCount=j0.memberCount),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),null!=j0.memberUpdateDt&&j0.hasOwnProperty("memberUpdateDt")&&("number"==typeof j0.memberUpdateDt?j2.memberUpdateDt=j1.longs===String?String(j0.memberUpdateDt):j0.memberUpdateDt:j2.memberUpdateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.memberUpdateDt):j1.longs===Number?new j9.LongBits(j0.memberUpdateDt.low>>>0,j0.memberUpdateDt.high>>>0).toNumber():j0.memberUpdateDt),null!=j0.mute&&j0.hasOwnProperty("mute")&&(j2.mute=j0.mute),null!=j0.joinType&&j0.hasOwnProperty("joinType")&&(j2.joinType=j0.joinType),null!=j0.privateChat&&j0.hasOwnProperty("privateChat")&&(j2.privateChat=j0.privateChat),null!=j0.searchable&&j0.hasOwnProperty("searchable")&&(j2.searchable=j0.searchable),null!=j0.maxMemberCount&&j0.hasOwnProperty("maxMemberCount")&&(j2.maxMemberCount=j0.maxMemberCount),null!=j0.historyMessage&&j0.hasOwnProperty("historyMessage")&&(j2.historyMessage=j0.historyMessage),null!=j0.superGroup&&j0.hasOwnProperty("superGroup")&&(j2.superGroup=j0.superGroup),null!=j0.deleted&&j0.hasOwnProperty("deleted")&&(j2.deleted=j0.deleted),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GroupMember=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.memberId="",j0.prototype.alias="",j0.prototype.type=0,j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.createDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.extra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.memberId),null!=j0.alias&&j0.hasOwnProperty("alias")&&j1.uint32(18).string(j0.alias),j1.uint32(24).int32(j0.type),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&j1.uint32(32).int64(j0.updateDt),null!=j0.createDt&&j0.hasOwnProperty("createDt")&&j1.uint32(40).int64(j0.createDt),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(50).string(j0.extra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GroupMember();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.memberId=j0.string();break;case 2:j3.alias=j0.string();break;case 3:j3.type=j0.int32();break;case 4:j3.updateDt=j0.int64();break;case 5:j3.createDt=j0.int64();break;case 6:j3.extra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("memberId"))throw j9.ProtocolError("missing required 'memberId'",{instance:j3});if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.memberId)?null!=j0.alias&&j0.hasOwnProperty("alias")&&!j9.isString(j0.alias)?"alias: string expected":j9.isInteger(j0.type)?null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&!(j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high))?"updateDt: integer|Long expected":null!=j0.createDt&&j0.hasOwnProperty("createDt")&&!(j9.isInteger(j0.createDt)||j0.createDt&&j9.isInteger(j0.createDt.low)&&j9.isInteger(j0.createDt.high))?"createDt: integer|Long expected":null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null:"type: integer expected":"memberId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GroupMember)return j0;var j1=new j10.GroupMember();return null!=j0.memberId&&(j1.memberId=String(j0.memberId)),null!=j0.alias&&(j1.alias=String(j0.alias)),null!=j0.type&&(j1.type=0|j0.type),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),null!=j0.createDt&&(j9.Long?(j1.createDt=j9.Long.fromValue(j0.createDt)).unsigned=!1:"string"==typeof j0.createDt?j1.createDt=parseInt(j0.createDt,10):"number"==typeof j0.createDt?j1.createDt=j0.createDt:"object"===(0,j3.default)(j0.createDt)&&(j1.createDt=new j9.LongBits(j0.createDt.low>>>0,j0.createDt.high>>>0).toNumber())),null!=j0.extra&&(j1.extra=String(j0.extra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.memberId="",j2.alias="",j2.type=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.createDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.createDt=j1.longs===String?"0":0;j2.extra="";}return null!=j0.memberId&&j0.hasOwnProperty("memberId")&&(j2.memberId=j0.memberId),null!=j0.alias&&j0.hasOwnProperty("alias")&&(j2.alias=j0.alias),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),null!=j0.createDt&&j0.hasOwnProperty("createDt")&&("number"==typeof j0.createDt?j2.createDt=j1.longs===String?String(j0.createDt):j0.createDt:j2.createDt=j1.longs===String?j9.Long.prototype.toString.call(j0.createDt):j1.longs===Number?new j9.LongBits(j0.createDt.low>>>0,j0.createDt.high>>>0).toNumber():j0.createDt),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.Group=function(){function j0(j0){if(this.members=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupInfo=null,j0.prototype.members=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j10.GroupInfo.encode(j0.groupInfo,j1.uint32(10).fork()).ldelim(),null!=j0.members&&j0.members.length)for(var j2=0;j2<j0.members.length;++j2)j10.GroupMember.encode(j0.members[j2],j1.uint32(18).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.Group();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupInfo=j10.GroupInfo.decode(j0,j0.uint32());break;case 2:j3.members&&j3.members.length||(j3.members=[]),j3.members.push(j10.GroupMember.decode(j0,j0.uint32()));break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupInfo"))throw j9.ProtocolError("missing required 'groupInfo'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(j2=j10.GroupInfo.verify(j0.groupInfo))return"groupInfo."+j2;if(null!=j0.members&&j0.hasOwnProperty("members")){if(!Array.isArray(j0.members))return"members: array expected";for(var j1=0;j1<j0.members.length;++j1){var j2;if(j2=j10.GroupMember.verify(j0.members[j1]))return"members."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.Group)return j0;var j1=new j10.Group();if(null!=j0.groupInfo){if("object"!==(0,j3.default)(j0.groupInfo))throw TypeError(".Group.groupInfo: object expected");j1.groupInfo=j10.GroupInfo.fromObject(j0.groupInfo);}if(j0.members){if(!Array.isArray(j0.members))throw TypeError(".Group.members: array expected");j1.members=[];for(var j2=0;j2<j0.members.length;++j2){if("object"!==(0,j3.default)(j0.members[j2]))throw TypeError(".Group.members: object expected");j1.members[j2]=j10.GroupMember.fromObject(j0.members[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.members=[]),j1.defaults&&(j2.groupInfo=null),null!=j0.groupInfo&&j0.hasOwnProperty("groupInfo")&&(j2.groupInfo=j10.GroupInfo.toObject(j0.groupInfo,j1)),j0.members&&j0.members.length){j2.members=[];for(var j3=0;j3<j0.members.length;++j3)j2.members[j3]=j10.GroupMember.toObject(j0.members[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ChannelMenu=function(){function j0(j0){if(this.subMenu=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.type="",j0.prototype.name="",j0.prototype.key="",j0.prototype.url="",j0.prototype.mediaId="",j0.prototype.articleId="",j0.prototype.appId="",j0.prototype.appPage="",j0.prototype.subMenu=j9.emptyArray,j0.prototype.menuId="",j0.prototype.extra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.type),j1.uint32(18).string(j0.name),null!=j0.key&&j0.hasOwnProperty("key")&&j1.uint32(26).string(j0.key),null!=j0.url&&j0.hasOwnProperty("url")&&j1.uint32(34).string(j0.url),null!=j0.mediaId&&j0.hasOwnProperty("mediaId")&&j1.uint32(42).string(j0.mediaId),null!=j0.articleId&&j0.hasOwnProperty("articleId")&&j1.uint32(50).string(j0.articleId),null!=j0.appId&&j0.hasOwnProperty("appId")&&j1.uint32(58).string(j0.appId),null!=j0.appPage&&j0.hasOwnProperty("appPage")&&j1.uint32(66).string(j0.appPage),null!=j0.subMenu&&j0.subMenu.length)for(var j2=0;j2<j0.subMenu.length;++j2)j10.ChannelMenu.encode(j0.subMenu[j2],j1.uint32(74).fork()).ldelim();return null!=j0.menuId&&j0.hasOwnProperty("menuId")&&j1.uint32(82).string(j0.menuId),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(90).string(j0.extra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ChannelMenu();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.type=j0.string();break;case 2:j3.name=j0.string();break;case 3:j3.key=j0.string();break;case 4:j3.url=j0.string();break;case 5:j3.mediaId=j0.string();break;case 6:j3.articleId=j0.string();break;case 7:j3.appId=j0.string();break;case 8:j3.appPage=j0.string();break;case 9:j3.subMenu&&j3.subMenu.length||(j3.subMenu=[]),j3.subMenu.push(j10.ChannelMenu.decode(j0,j0.uint32()));break;case 10:j3.menuId=j0.string();break;case 11:j3.extra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("name"))throw j9.ProtocolError("missing required 'name'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.type))return"type: string expected";if(!j9.isString(j0.name))return"name: string expected";if(null!=j0.key&&j0.hasOwnProperty("key")&&!j9.isString(j0.key))return"key: string expected";if(null!=j0.url&&j0.hasOwnProperty("url")&&!j9.isString(j0.url))return"url: string expected";if(null!=j0.mediaId&&j0.hasOwnProperty("mediaId")&&!j9.isString(j0.mediaId))return"mediaId: string expected";if(null!=j0.articleId&&j0.hasOwnProperty("articleId")&&!j9.isString(j0.articleId))return"articleId: string expected";if(null!=j0.appId&&j0.hasOwnProperty("appId")&&!j9.isString(j0.appId))return"appId: string expected";if(null!=j0.appPage&&j0.hasOwnProperty("appPage")&&!j9.isString(j0.appPage))return"appPage: string expected";if(null!=j0.subMenu&&j0.hasOwnProperty("subMenu")){if(!Array.isArray(j0.subMenu))return"subMenu: array expected";for(var j1=0;j1<j0.subMenu.length;++j1){var j2=j10.ChannelMenu.verify(j0.subMenu[j1]);if(j2)return"subMenu."+j2;}}return null!=j0.menuId&&j0.hasOwnProperty("menuId")&&!j9.isString(j0.menuId)?"menuId: string expected":null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.ChannelMenu)return j0;var j1=new j10.ChannelMenu();if(null!=j0.type&&(j1.type=String(j0.type)),null!=j0.name&&(j1.name=String(j0.name)),null!=j0.key&&(j1.key=String(j0.key)),null!=j0.url&&(j1.url=String(j0.url)),null!=j0.mediaId&&(j1.mediaId=String(j0.mediaId)),null!=j0.articleId&&(j1.articleId=String(j0.articleId)),null!=j0.appId&&(j1.appId=String(j0.appId)),null!=j0.appPage&&(j1.appPage=String(j0.appPage)),j0.subMenu){if(!Array.isArray(j0.subMenu))throw TypeError(".ChannelMenu.subMenu: array expected");j1.subMenu=[];for(var j2=0;j2<j0.subMenu.length;++j2){if("object"!==(0,j3.default)(j0.subMenu[j2]))throw TypeError(".ChannelMenu.subMenu: object expected");j1.subMenu[j2]=j10.ChannelMenu.fromObject(j0.subMenu[j2]);}}return null!=j0.menuId&&(j1.menuId=String(j0.menuId)),null!=j0.extra&&(j1.extra=String(j0.extra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.subMenu=[]),j1.defaults&&(j2.type="",j2.name="",j2.key="",j2.url="",j2.mediaId="",j2.articleId="",j2.appId="",j2.appPage="",j2.menuId="",j2.extra=""),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.name&&j0.hasOwnProperty("name")&&(j2.name=j0.name),null!=j0.key&&j0.hasOwnProperty("key")&&(j2.key=j0.key),null!=j0.url&&j0.hasOwnProperty("url")&&(j2.url=j0.url),null!=j0.mediaId&&j0.hasOwnProperty("mediaId")&&(j2.mediaId=j0.mediaId),null!=j0.articleId&&j0.hasOwnProperty("articleId")&&(j2.articleId=j0.articleId),null!=j0.appId&&j0.hasOwnProperty("appId")&&(j2.appId=j0.appId),null!=j0.appPage&&j0.hasOwnProperty("appPage")&&(j2.appPage=j0.appPage),j0.subMenu&&j0.subMenu.length){j2.subMenu=[];for(var j3=0;j3<j0.subMenu.length;++j3)j2.subMenu[j3]=j10.ChannelMenu.toObject(j0.subMenu[j3],j1);}return null!=j0.menuId&&j0.hasOwnProperty("menuId")&&(j2.menuId=j0.menuId),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ChannelMenuList=function(){function j0(j0){if(this.menu=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.menu=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.menu&&j0.menu.length)for(var j2=0;j2<j0.menu.length;++j2)j10.ChannelMenu.encode(j0.menu[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ChannelMenuList();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.menu&&j3.menu.length||(j3.menu=[]),j3.menu.push(j10.ChannelMenu.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.menu&&j0.hasOwnProperty("menu")){if(!Array.isArray(j0.menu))return"menu: array expected";for(var j1=0;j1<j0.menu.length;++j1){var j2=j10.ChannelMenu.verify(j0.menu[j1]);if(j2)return"menu."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ChannelMenuList)return j0;var j1=new j10.ChannelMenuList();if(j0.menu){if(!Array.isArray(j0.menu))throw TypeError(".ChannelMenuList.menu: array expected");j1.menu=[];for(var j2=0;j2<j0.menu.length;++j2){if("object"!==(0,j3.default)(j0.menu[j2]))throw TypeError(".ChannelMenuList.menu: object expected");j1.menu[j2]=j10.ChannelMenu.fromObject(j0.menu[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.menu=[]),j0.menu&&j0.menu.length){j2.menu=[];for(var j3=0;j3<j0.menu.length;++j3)j2.menu[j3]=j10.ChannelMenu.toObject(j0.menu[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ChannelInfo=function(){function j0(j0){if(this.menu=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.targetId="",j0.prototype.name="",j0.prototype.portrait="",j0.prototype.owner="",j0.prototype.status=0,j0.prototype.desc="",j0.prototype.extra="",j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.secret="",j0.prototype.callback="",j0.prototype.automatic=0,j0.prototype.menu=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.targetId&&j0.hasOwnProperty("targetId")&&j1.uint32(10).string(j0.targetId),j1.uint32(18).string(j0.name),null!=j0.portrait&&j0.hasOwnProperty("portrait")&&j1.uint32(26).string(j0.portrait),null!=j0.owner&&j0.hasOwnProperty("owner")&&j1.uint32(34).string(j0.owner),null!=j0.status&&j0.hasOwnProperty("status")&&j1.uint32(40).int32(j0.status),null!=j0.desc&&j0.hasOwnProperty("desc")&&j1.uint32(50).string(j0.desc),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(58).string(j0.extra),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&j1.uint32(64).int64(j0.updateDt),null!=j0.secret&&j0.hasOwnProperty("secret")&&j1.uint32(74).string(j0.secret),null!=j0.callback&&j0.hasOwnProperty("callback")&&j1.uint32(82).string(j0.callback),null!=j0.automatic&&j0.hasOwnProperty("automatic")&&j1.uint32(88).int32(j0.automatic),null!=j0.menu&&j0.menu.length)for(var j2=0;j2<j0.menu.length;++j2)j10.ChannelMenu.encode(j0.menu[j2],j1.uint32(98).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ChannelInfo();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.targetId=j0.string();break;case 2:j3.name=j0.string();break;case 3:j3.portrait=j0.string();break;case 4:j3.owner=j0.string();break;case 5:j3.status=j0.int32();break;case 6:j3.desc=j0.string();break;case 7:j3.extra=j0.string();break;case 8:j3.updateDt=j0.int64();break;case 9:j3.secret=j0.string();break;case 10:j3.callback=j0.string();break;case 11:j3.automatic=j0.int32();break;case 12:j3.menu&&j3.menu.length||(j3.menu=[]),j3.menu.push(j10.ChannelMenu.decode(j0,j0.uint32()));break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("name"))throw j9.ProtocolError("missing required 'name'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.targetId&&j0.hasOwnProperty("targetId")&&!j9.isString(j0.targetId))return"targetId: string expected";if(!j9.isString(j0.name))return"name: string expected";if(null!=j0.portrait&&j0.hasOwnProperty("portrait")&&!j9.isString(j0.portrait))return"portrait: string expected";if(null!=j0.owner&&j0.hasOwnProperty("owner")&&!j9.isString(j0.owner))return"owner: string expected";if(null!=j0.status&&j0.hasOwnProperty("status")&&!j9.isInteger(j0.status))return"status: integer expected";if(null!=j0.desc&&j0.hasOwnProperty("desc")&&!j9.isString(j0.desc))return"desc: string expected";if(null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra))return"extra: string expected";if(null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&!(j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high)))return"updateDt: integer|Long expected";if(null!=j0.secret&&j0.hasOwnProperty("secret")&&!j9.isString(j0.secret))return"secret: string expected";if(null!=j0.callback&&j0.hasOwnProperty("callback")&&!j9.isString(j0.callback))return"callback: string expected";if(null!=j0.automatic&&j0.hasOwnProperty("automatic")&&!j9.isInteger(j0.automatic))return"automatic: integer expected";if(null!=j0.menu&&j0.hasOwnProperty("menu")){if(!Array.isArray(j0.menu))return"menu: array expected";for(var j1=0;j1<j0.menu.length;++j1){var j2=j10.ChannelMenu.verify(j0.menu[j1]);if(j2)return"menu."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ChannelInfo)return j0;var j1=new j10.ChannelInfo();if(null!=j0.targetId&&(j1.targetId=String(j0.targetId)),null!=j0.name&&(j1.name=String(j0.name)),null!=j0.portrait&&(j1.portrait=String(j0.portrait)),null!=j0.owner&&(j1.owner=String(j0.owner)),null!=j0.status&&(j1.status=0|j0.status),null!=j0.desc&&(j1.desc=String(j0.desc)),null!=j0.extra&&(j1.extra=String(j0.extra)),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),null!=j0.secret&&(j1.secret=String(j0.secret)),null!=j0.callback&&(j1.callback=String(j0.callback)),null!=j0.automatic&&(j1.automatic=0|j0.automatic),j0.menu){if(!Array.isArray(j0.menu))throw TypeError(".ChannelInfo.menu: array expected");j1.menu=[];for(var j2=0;j2<j0.menu.length;++j2){if("object"!==(0,j3.default)(j0.menu[j2]))throw TypeError(".ChannelInfo.menu: object expected");j1.menu[j2]=j10.ChannelMenu.fromObject(j0.menu[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.menu=[]),j1.defaults){if(j2.targetId="",j2.name="",j2.portrait="",j2.owner="",j2.status=0,j2.desc="",j2.extra="",j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;j2.secret="",j2.callback="",j2.automatic=0;}if(null!=j0.targetId&&j0.hasOwnProperty("targetId")&&(j2.targetId=j0.targetId),null!=j0.name&&j0.hasOwnProperty("name")&&(j2.name=j0.name),null!=j0.portrait&&j0.hasOwnProperty("portrait")&&(j2.portrait=j0.portrait),null!=j0.owner&&j0.hasOwnProperty("owner")&&(j2.owner=j0.owner),null!=j0.status&&j0.hasOwnProperty("status")&&(j2.status=j0.status),null!=j0.desc&&j0.hasOwnProperty("desc")&&(j2.desc=j0.desc),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),null!=j0.secret&&j0.hasOwnProperty("secret")&&(j2.secret=j0.secret),null!=j0.callback&&j0.hasOwnProperty("callback")&&(j2.callback=j0.callback),null!=j0.automatic&&j0.hasOwnProperty("automatic")&&(j2.automatic=j0.automatic),j0.menu&&j0.menu.length){j2.menu=[];for(var j4=0;j4<j0.menu.length;++j4)j2.menu[j4]=j10.ChannelMenu.toObject(j0.menu[j4],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ModifyChannelInfo=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.channelId="",j0.prototype.type=0,j0.prototype.value="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.channelId),j1.uint32(16).int32(j0.type),j1.uint32(26).string(j0.value),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ModifyChannelInfo();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.channelId=j0.string();break;case 2:j3.type=j0.int32();break;case 3:j3.value=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("channelId"))throw j9.ProtocolError("missing required 'channelId'",{instance:j3});if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("value"))throw j9.ProtocolError("missing required 'value'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.channelId)?j9.isInteger(j0.type)?j9.isString(j0.value)?null:"value: string expected":"type: integer expected":"channelId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.ModifyChannelInfo)return j0;var j1=new j10.ModifyChannelInfo();return null!=j0.channelId&&(j1.channelId=String(j0.channelId)),null!=j0.type&&(j1.type=0|j0.type),null!=j0.value&&(j1.value=String(j0.value)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.channelId="",j2.type=0,j2.value=""),null!=j0.channelId&&j0.hasOwnProperty("channelId")&&(j2.channelId=j0.channelId),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.value&&j0.hasOwnProperty("value")&&(j2.value=j0.value),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.TransferChannel=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.channelId="",j0.prototype.newOwner="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.channelId),j1.uint32(18).string(j0.newOwner),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.TransferChannel();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.channelId=j0.string();break;case 2:j3.newOwner=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("channelId"))throw j9.ProtocolError("missing required 'channelId'",{instance:j3});if(!j3.hasOwnProperty("newOwner"))throw j9.ProtocolError("missing required 'newOwner'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.channelId)?j9.isString(j0.newOwner)?null:"newOwner: string expected":"channelId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.TransferChannel)return j0;var j1=new j10.TransferChannel();return null!=j0.channelId&&(j1.channelId=String(j0.channelId)),null!=j0.newOwner&&(j1.newOwner=String(j0.newOwner)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.channelId="",j2.newOwner=""),null!=j0.channelId&&j0.hasOwnProperty("channelId")&&(j2.channelId=j0.channelId),null!=j0.newOwner&&j0.hasOwnProperty("newOwner")&&(j2.newOwner=j0.newOwner),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullChannelInfo=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.channelId="",j0.prototype.head=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.channelId),j1.uint32(16).int64(j0.head),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullChannelInfo();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.channelId=j0.string();break;case 2:j3.head=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("channelId"))throw j9.ProtocolError("missing required 'channelId'",{instance:j3});if(!j3.hasOwnProperty("head"))throw j9.ProtocolError("missing required 'head'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.channelId)?j9.isInteger(j0.head)||j0.head&&j9.isInteger(j0.head.low)&&j9.isInteger(j0.head.high)?null:"head: integer|Long expected":"channelId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PullChannelInfo)return j0;var j1=new j10.PullChannelInfo();return null!=j0.channelId&&(j1.channelId=String(j0.channelId)),null!=j0.head&&(j9.Long?(j1.head=j9.Long.fromValue(j0.head)).unsigned=!1:"string"==typeof j0.head?j1.head=parseInt(j0.head,10):"number"==typeof j0.head?j1.head=j0.head:"object"===(0,j3.default)(j0.head)&&(j1.head=new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.channelId="",j9.Long){var j3=new j9.Long(0,0,!1);j2.head=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.head=j1.longs===String?"0":0;return null!=j0.channelId&&j0.hasOwnProperty("channelId")&&(j2.channelId=j0.channelId),null!=j0.head&&j0.hasOwnProperty("head")&&("number"==typeof j0.head?j2.head=j1.longs===String?String(j0.head):j0.head:j2.head=j1.longs===String?j9.Long.prototype.toString.call(j0.head):j1.longs===Number?new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber():j0.head),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullChannelListener=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.channelId="",j0.prototype.offset=0,j0.prototype.count=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.channelId),j1.uint32(16).int32(j0.offset),j1.uint32(24).int32(j0.count),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullChannelListener();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.channelId=j0.string();break;case 2:j3.offset=j0.int32();break;case 3:j3.count=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("channelId"))throw j9.ProtocolError("missing required 'channelId'",{instance:j3});if(!j3.hasOwnProperty("offset"))throw j9.ProtocolError("missing required 'offset'",{instance:j3});if(!j3.hasOwnProperty("count"))throw j9.ProtocolError("missing required 'count'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.channelId)?j9.isInteger(j0.offset)?j9.isInteger(j0.count)?null:"count: integer expected":"offset: integer expected":"channelId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PullChannelListener)return j0;var j1=new j10.PullChannelListener();return null!=j0.channelId&&(j1.channelId=String(j0.channelId)),null!=j0.offset&&(j1.offset=0|j0.offset),null!=j0.count&&(j1.count=0|j0.count),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.channelId="",j2.offset=0,j2.count=0),null!=j0.channelId&&j0.hasOwnProperty("channelId")&&(j2.channelId=j0.channelId),null!=j0.offset&&j0.hasOwnProperty("offset")&&(j2.offset=j0.offset),null!=j0.count&&j0.hasOwnProperty("count")&&(j2.count=j0.count),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullChannelListenerResult=function(){function j0(j0){if(this.listener=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.totalCount=0,j0.prototype.offset=0,j0.prototype.listener=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(8).int32(j0.totalCount),j1.uint32(16).int32(j0.offset),null!=j0.listener&&j0.listener.length)for(var j2=0;j2<j0.listener.length;++j2)j1.uint32(26).string(j0.listener[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullChannelListenerResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.totalCount=j0.int32();break;case 2:j3.offset=j0.int32();break;case 3:j3.listener&&j3.listener.length||(j3.listener=[]),j3.listener.push(j0.string());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("totalCount"))throw j9.ProtocolError("missing required 'totalCount'",{instance:j3});if(!j3.hasOwnProperty("offset"))throw j9.ProtocolError("missing required 'offset'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isInteger(j0.totalCount))return"totalCount: integer expected";if(!j9.isInteger(j0.offset))return"offset: integer expected";if(null!=j0.listener&&j0.hasOwnProperty("listener")){if(!Array.isArray(j0.listener))return"listener: array expected";for(var j1=0;j1<j0.listener.length;++j1)if(!j9.isString(j0.listener[j1]))return"listener: string[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PullChannelListenerResult)return j0;var j1=new j10.PullChannelListenerResult();if(null!=j0.totalCount&&(j1.totalCount=0|j0.totalCount),null!=j0.offset&&(j1.offset=0|j0.offset),j0.listener){if(!Array.isArray(j0.listener))throw TypeError(".PullChannelListenerResult.listener: array expected");j1.listener=[];for(var j2=0;j2<j0.listener.length;++j2)j1.listener[j2]=String(j0.listener[j2]);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.listener=[]),j1.defaults&&(j2.totalCount=0,j2.offset=0),null!=j0.totalCount&&j0.hasOwnProperty("totalCount")&&(j2.totalCount=j0.totalCount),null!=j0.offset&&j0.hasOwnProperty("offset")&&(j2.offset=j0.offset),j0.listener&&j0.listener.length){j2.listener=[];for(var j3=0;j3<j0.listener.length;++j3)j2.listener[j3]=j0.listener[j3];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ListenChannel=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.channelId="",j0.prototype.listen=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.channelId),j1.uint32(16).int32(j0.listen),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ListenChannel();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.channelId=j0.string();break;case 2:j3.listen=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("channelId"))throw j9.ProtocolError("missing required 'channelId'",{instance:j3});if(!j3.hasOwnProperty("listen"))throw j9.ProtocolError("missing required 'listen'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.channelId)?j9.isInteger(j0.listen)?null:"listen: integer expected":"channelId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.ListenChannel)return j0;var j1=new j10.ListenChannel();return null!=j0.channelId&&(j1.channelId=String(j0.channelId)),null!=j0.listen&&(j1.listen=0|j0.listen),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.channelId="",j2.listen=0),null!=j0.channelId&&j0.hasOwnProperty("channelId")&&(j2.channelId=j0.channelId),null!=j0.listen&&j0.hasOwnProperty("listen")&&(j2.listen=j0.listen),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.SearchChannelResult=function(){function j0(j0){if(this.channel=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.channel=j9.emptyArray,j0.prototype.keyword="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.channel&&j0.channel.length)for(var j2=0;j2<j0.channel.length;++j2)j10.ChannelInfo.encode(j0.channel[j2],j1.uint32(10).fork()).ldelim();return j1.uint32(18).string(j0.keyword),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.SearchChannelResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.channel&&j3.channel.length||(j3.channel=[]),j3.channel.push(j10.ChannelInfo.decode(j0,j0.uint32()));break;case 2:j3.keyword=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("keyword"))throw j9.ProtocolError("missing required 'keyword'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.channel&&j0.hasOwnProperty("channel")){if(!Array.isArray(j0.channel))return"channel: array expected";for(var j1=0;j1<j0.channel.length;++j1){var j2=j10.ChannelInfo.verify(j0.channel[j1]);if(j2)return"channel."+j2;}}return j9.isString(j0.keyword)?null:"keyword: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.SearchChannelResult)return j0;var j1=new j10.SearchChannelResult();if(j0.channel){if(!Array.isArray(j0.channel))throw TypeError(".SearchChannelResult.channel: array expected");j1.channel=[];for(var j2=0;j2<j0.channel.length;++j2){if("object"!==(0,j3.default)(j0.channel[j2]))throw TypeError(".SearchChannelResult.channel: object expected");j1.channel[j2]=j10.ChannelInfo.fromObject(j0.channel[j2]);}}return null!=j0.keyword&&(j1.keyword=String(j0.keyword)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.channel=[]),j1.defaults&&(j2.keyword=""),j0.channel&&j0.channel.length){j2.channel=[];for(var j3=0;j3<j0.channel.length;++j3)j2.channel[j3]=j10.ChannelInfo.toObject(j0.channel[j3],j1);}return null!=j0.keyword&&j0.hasOwnProperty("keyword")&&(j2.keyword=j0.keyword),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.MessageContent=function(){function j0(j0){if(this.mentionedTarget=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.type=0,j0.prototype.searchableContent="",j0.prototype.pushContent="",j0.prototype.content="",j0.prototype.data=j9.newBuffer([]),j0.prototype.mediaType=0,j0.prototype.remoteMediaUrl="",j0.prototype.persistFlag=0,j0.prototype.expireDuration=0,j0.prototype.mentionedType=0,j0.prototype.mentionedTarget=j9.emptyArray,j0.prototype.extra="",j0.prototype.pushData="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(8).int32(j0.type),null!=j0.searchableContent&&j0.hasOwnProperty("searchableContent")&&j1.uint32(18).string(j0.searchableContent),null!=j0.pushContent&&j0.hasOwnProperty("pushContent")&&j1.uint32(26).string(j0.pushContent),null!=j0.content&&j0.hasOwnProperty("content")&&j1.uint32(34).string(j0.content),null!=j0.data&&j0.hasOwnProperty("data")&&j1.uint32(42).bytes(j0.data),null!=j0.mediaType&&j0.hasOwnProperty("mediaType")&&j1.uint32(48).int32(j0.mediaType),null!=j0.remoteMediaUrl&&j0.hasOwnProperty("remoteMediaUrl")&&j1.uint32(58).string(j0.remoteMediaUrl),null!=j0.persistFlag&&j0.hasOwnProperty("persistFlag")&&j1.uint32(64).int32(j0.persistFlag),null!=j0.expireDuration&&j0.hasOwnProperty("expireDuration")&&j1.uint32(72).int32(j0.expireDuration),null!=j0.mentionedType&&j0.hasOwnProperty("mentionedType")&&j1.uint32(80).int32(j0.mentionedType),null!=j0.mentionedTarget&&j0.mentionedTarget.length)for(var j2=0;j2<j0.mentionedTarget.length;++j2)j1.uint32(90).string(j0.mentionedTarget[j2]);return null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(98).string(j0.extra),null!=j0.pushData&&j0.hasOwnProperty("pushData")&&j1.uint32(106).string(j0.pushData),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.MessageContent();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.type=j0.int32();break;case 2:j3.searchableContent=j0.string();break;case 3:j3.pushContent=j0.string();break;case 4:j3.content=j0.string();break;case 5:j3.data=j0.bytes();break;case 6:j3.mediaType=j0.int32();break;case 7:j3.remoteMediaUrl=j0.string();break;case 8:j3.persistFlag=j0.int32();break;case 9:j3.expireDuration=j0.int32();break;case 10:j3.mentionedType=j0.int32();break;case 11:j3.mentionedTarget&&j3.mentionedTarget.length||(j3.mentionedTarget=[]),j3.mentionedTarget.push(j0.string());break;case 12:j3.extra=j0.string();break;case 13:j3.pushData=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isInteger(j0.type))return"type: integer expected";if(null!=j0.searchableContent&&j0.hasOwnProperty("searchableContent")&&!j9.isString(j0.searchableContent))return"searchableContent: string expected";if(null!=j0.pushContent&&j0.hasOwnProperty("pushContent")&&!j9.isString(j0.pushContent))return"pushContent: string expected";if(null!=j0.content&&j0.hasOwnProperty("content")&&!j9.isString(j0.content))return"content: string expected";if(null!=j0.data&&j0.hasOwnProperty("data")&&!(j0.data&&"number"==typeof j0.data.length||j9.isString(j0.data)))return"data: buffer expected";if(null!=j0.mediaType&&j0.hasOwnProperty("mediaType")&&!j9.isInteger(j0.mediaType))return"mediaType: integer expected";if(null!=j0.remoteMediaUrl&&j0.hasOwnProperty("remoteMediaUrl")&&!j9.isString(j0.remoteMediaUrl))return"remoteMediaUrl: string expected";if(null!=j0.persistFlag&&j0.hasOwnProperty("persistFlag")&&!j9.isInteger(j0.persistFlag))return"persistFlag: integer expected";if(null!=j0.expireDuration&&j0.hasOwnProperty("expireDuration")&&!j9.isInteger(j0.expireDuration))return"expireDuration: integer expected";if(null!=j0.mentionedType&&j0.hasOwnProperty("mentionedType")&&!j9.isInteger(j0.mentionedType))return"mentionedType: integer expected";if(null!=j0.mentionedTarget&&j0.hasOwnProperty("mentionedTarget")){if(!Array.isArray(j0.mentionedTarget))return"mentionedTarget: array expected";for(var j1=0;j1<j0.mentionedTarget.length;++j1)if(!j9.isString(j0.mentionedTarget[j1]))return"mentionedTarget: string[] expected";}return null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null!=j0.pushData&&j0.hasOwnProperty("pushData")&&!j9.isString(j0.pushData)?"pushData: string expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.MessageContent)return j0;var j1=new j10.MessageContent();if(null!=j0.type&&(j1.type=0|j0.type),null!=j0.searchableContent&&(j1.searchableContent=String(j0.searchableContent)),null!=j0.pushContent&&(j1.pushContent=String(j0.pushContent)),null!=j0.content&&(j1.content=String(j0.content)),null!=j0.data&&("string"==typeof j0.data?j9.base64.decode(j0.data,j1.data=j9.newBuffer(j9.base64.length(j0.data)),0):j0.data.length&&(j1.data=j0.data)),null!=j0.mediaType&&(j1.mediaType=0|j0.mediaType),null!=j0.remoteMediaUrl&&(j1.remoteMediaUrl=String(j0.remoteMediaUrl)),null!=j0.persistFlag&&(j1.persistFlag=0|j0.persistFlag),null!=j0.expireDuration&&(j1.expireDuration=0|j0.expireDuration),null!=j0.mentionedType&&(j1.mentionedType=0|j0.mentionedType),j0.mentionedTarget){if(!Array.isArray(j0.mentionedTarget))throw TypeError(".MessageContent.mentionedTarget: array expected");j1.mentionedTarget=[];for(var j2=0;j2<j0.mentionedTarget.length;++j2)j1.mentionedTarget[j2]=String(j0.mentionedTarget[j2]);}return null!=j0.extra&&(j1.extra=String(j0.extra)),null!=j0.pushData&&(j1.pushData=String(j0.pushData)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.mentionedTarget=[]),j1.defaults&&(j2.type=0,j2.searchableContent="",j2.pushContent="",j2.content="",j1.bytes===String?j2.data="":(j2.data=[],j1.bytes!==Array&&(j2.data=j9.newBuffer(j2.data))),j2.mediaType=0,j2.remoteMediaUrl="",j2.persistFlag=0,j2.expireDuration=0,j2.mentionedType=0,j2.extra="",j2.pushData=""),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.searchableContent&&j0.hasOwnProperty("searchableContent")&&(j2.searchableContent=j0.searchableContent),null!=j0.pushContent&&j0.hasOwnProperty("pushContent")&&(j2.pushContent=j0.pushContent),null!=j0.content&&j0.hasOwnProperty("content")&&(j2.content=j0.content),null!=j0.data&&j0.hasOwnProperty("data")&&(j2.data=j1.bytes===String?j9.base64.encode(j0.data,0,j0.data.length):j1.bytes===Array?Array.prototype.slice.call(j0.data):j0.data),null!=j0.mediaType&&j0.hasOwnProperty("mediaType")&&(j2.mediaType=j0.mediaType),null!=j0.remoteMediaUrl&&j0.hasOwnProperty("remoteMediaUrl")&&(j2.remoteMediaUrl=j0.remoteMediaUrl),null!=j0.persistFlag&&j0.hasOwnProperty("persistFlag")&&(j2.persistFlag=j0.persistFlag),null!=j0.expireDuration&&j0.hasOwnProperty("expireDuration")&&(j2.expireDuration=j0.expireDuration),null!=j0.mentionedType&&j0.hasOwnProperty("mentionedType")&&(j2.mentionedType=j0.mentionedType),j0.mentionedTarget&&j0.mentionedTarget.length){j2.mentionedTarget=[];for(var j3=0;j3<j0.mentionedTarget.length;++j3)j2.mentionedTarget[j3]=j0.mentionedTarget[j3];}return null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),null!=j0.pushData&&j0.hasOwnProperty("pushData")&&(j2.pushData=j0.pushData),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.AddGroupMemberRequest=function(){function j0(j0){if(this.addedMember=[],this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.addedMember=j9.emptyArray,j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.prototype.extra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),null!=j0.addedMember&&j0.addedMember.length)for(var j2=0;j2<j0.addedMember.length;++j2)j10.GroupMember.encode(j0.addedMember[j2],j1.uint32(18).fork()).ldelim();if(null!=j0.toLine&&j0.toLine.length)for(j2=0;j2<j0.toLine.length;++j2)j1.uint32(24).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(34).fork()).ldelim(),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(42).string(j0.extra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.AddGroupMemberRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:j3.addedMember&&j3.addedMember.length||(j3.addedMember=[]),j3.addedMember.push(j10.GroupMember.decode(j0,j0.uint32()));break;case 3:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 4:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;case 5:j3.extra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(null!=j0.addedMember&&j0.hasOwnProperty("addedMember")){if(!Array.isArray(j0.addedMember))return"addedMember: array expected";for(var j1=0;j1<j0.addedMember.length;++j1){if(j2=j10.GroupMember.verify(j0.addedMember[j1]))return"addedMember."+j2;}}if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(j1=0;j1<j0.toLine.length;++j1)if(!j9.isInteger(j0.toLine[j1]))return"toLine: integer[] expected";}var j2;if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2=j10.MessageContent.verify(j0.notifyContent)))return"notifyContent."+j2;return null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.AddGroupMemberRequest)return j0;var j1=new j10.AddGroupMemberRequest();if(null!=j0.groupId&&(j1.groupId=String(j0.groupId)),j0.addedMember){if(!Array.isArray(j0.addedMember))throw TypeError(".AddGroupMemberRequest.addedMember: array expected");j1.addedMember=[];for(var j2=0;j2<j0.addedMember.length;++j2){if("object"!==(0,j3.default)(j0.addedMember[j2]))throw TypeError(".AddGroupMemberRequest.addedMember: object expected");j1.addedMember[j2]=j10.GroupMember.fromObject(j0.addedMember[j2]);}}if(j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".AddGroupMemberRequest.toLine: array expected");j1.toLine=[];for(j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".AddGroupMemberRequest.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return null!=j0.extra&&(j1.extra=String(j0.extra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.addedMember=[],j2.toLine=[]),j1.defaults&&(j2.groupId="",j2.notifyContent=null,j2.extra=""),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),j0.addedMember&&j0.addedMember.length){j2.addedMember=[];for(var j3=0;j3<j0.addedMember.length;++j3)j2.addedMember[j3]=j10.GroupMember.toObject(j0.addedMember[j3],j1);}if(j0.toLine&&j0.toLine.length){j2.toLine=[];for(j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.CreateGroupRequest=function(){function j0(j0){if(this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.group=null,j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.prototype.memberExtra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j10.Group.encode(j0.group,j1.uint32(10).fork()).ldelim(),null!=j0.toLine&&j0.toLine.length)for(var j2=0;j2<j0.toLine.length;++j2)j1.uint32(16).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(26).fork()).ldelim(),null!=j0.memberExtra&&j0.hasOwnProperty("memberExtra")&&j1.uint32(34).string(j0.memberExtra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.CreateGroupRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.group=j10.Group.decode(j0,j0.uint32());break;case 2:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 3:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;case 4:j3.memberExtra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("group"))throw j9.ProtocolError("missing required 'group'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";var j1;if(j1=j10.Group.verify(j0.group))return"group."+j1;if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(var j2=0;j2<j0.toLine.length;++j2)if(!j9.isInteger(j0.toLine[j2]))return"toLine: integer[] expected";}if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j1=j10.MessageContent.verify(j0.notifyContent)))return"notifyContent."+j1;return null!=j0.memberExtra&&j0.hasOwnProperty("memberExtra")&&!j9.isString(j0.memberExtra)?"memberExtra: string expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.CreateGroupRequest)return j0;var j1=new j10.CreateGroupRequest();if(null!=j0.group){if("object"!==(0,j3.default)(j0.group))throw TypeError(".CreateGroupRequest.group: object expected");j1.group=j10.Group.fromObject(j0.group);}if(j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".CreateGroupRequest.toLine: array expected");j1.toLine=[];for(var j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".CreateGroupRequest.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return null!=j0.memberExtra&&(j1.memberExtra=String(j0.memberExtra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.toLine=[]),j1.defaults&&(j2.group=null,j2.notifyContent=null,j2.memberExtra=""),null!=j0.group&&j0.hasOwnProperty("group")&&(j2.group=j10.Group.toObject(j0.group,j1)),j0.toLine&&j0.toLine.length){j2.toLine=[];for(var j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),null!=j0.memberExtra&&j0.hasOwnProperty("memberExtra")&&(j2.memberExtra=j0.memberExtra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.DismissGroupRequest=function(){function j0(j0){if(this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),null!=j0.toLine&&j0.toLine.length)for(var j2=0;j2<j0.toLine.length;++j2)j1.uint32(16).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(26).fork()).ldelim(),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.DismissGroupRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 3:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(var j1=0;j1<j0.toLine.length;++j1)if(!j9.isInteger(j0.toLine[j1]))return"toLine: integer[] expected";}if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")){var j2=j10.MessageContent.verify(j0.notifyContent);if(j2)return"notifyContent."+j2;}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.DismissGroupRequest)return j0;var j1=new j10.DismissGroupRequest();if(null!=j0.groupId&&(j1.groupId=String(j0.groupId)),j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".DismissGroupRequest.toLine: array expected");j1.toLine=[];for(var j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".DismissGroupRequest.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.toLine=[]),j1.defaults&&(j2.groupId="",j2.notifyContent=null),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),j0.toLine&&j0.toLine.length){j2.toLine=[];for(var j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.FriendRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.fromUid="",j0.prototype.toUid="",j0.prototype.reason="",j0.prototype.status=0,j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.fromReadStatus=!1,j0.prototype.toReadStatus=!1,j0.prototype.extra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),null!=j0.fromUid&&j0.hasOwnProperty("fromUid")&&j1.uint32(10).string(j0.fromUid),j1.uint32(18).string(j0.toUid),j1.uint32(26).string(j0.reason),null!=j0.status&&j0.hasOwnProperty("status")&&j1.uint32(32).int32(j0.status),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&j1.uint32(40).int64(j0.updateDt),null!=j0.fromReadStatus&&j0.hasOwnProperty("fromReadStatus")&&j1.uint32(48).bool(j0.fromReadStatus),null!=j0.toReadStatus&&j0.hasOwnProperty("toReadStatus")&&j1.uint32(56).bool(j0.toReadStatus),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(66).string(j0.extra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.FriendRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.fromUid=j0.string();break;case 2:j3.toUid=j0.string();break;case 3:j3.reason=j0.string();break;case 4:j3.status=j0.int32();break;case 5:j3.updateDt=j0.int64();break;case 6:j3.fromReadStatus=j0.bool();break;case 7:j3.toReadStatus=j0.bool();break;case 8:j3.extra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("toUid"))throw j9.ProtocolError("missing required 'toUid'",{instance:j3});if(!j3.hasOwnProperty("reason"))throw j9.ProtocolError("missing required 'reason'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":null!=j0.fromUid&&j0.hasOwnProperty("fromUid")&&!j9.isString(j0.fromUid)?"fromUid: string expected":j9.isString(j0.toUid)?j9.isString(j0.reason)?null!=j0.status&&j0.hasOwnProperty("status")&&!j9.isInteger(j0.status)?"status: integer expected":null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&!(j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high))?"updateDt: integer|Long expected":null!=j0.fromReadStatus&&j0.hasOwnProperty("fromReadStatus")&&"boolean"!=typeof j0.fromReadStatus?"fromReadStatus: boolean expected":null!=j0.toReadStatus&&j0.hasOwnProperty("toReadStatus")&&"boolean"!=typeof j0.toReadStatus?"toReadStatus: boolean expected":null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null:"reason: string expected":"toUid: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.FriendRequest)return j0;var j1=new j10.FriendRequest();return null!=j0.fromUid&&(j1.fromUid=String(j0.fromUid)),null!=j0.toUid&&(j1.toUid=String(j0.toUid)),null!=j0.reason&&(j1.reason=String(j0.reason)),null!=j0.status&&(j1.status=0|j0.status),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),null!=j0.fromReadStatus&&(j1.fromReadStatus=Boolean(j0.fromReadStatus)),null!=j0.toReadStatus&&(j1.toReadStatus=Boolean(j0.toReadStatus)),null!=j0.extra&&(j1.extra=String(j0.extra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.fromUid="",j2.toUid="",j2.reason="",j2.status=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;j2.fromReadStatus=!1,j2.toReadStatus=!1,j2.extra="";}return null!=j0.fromUid&&j0.hasOwnProperty("fromUid")&&(j2.fromUid=j0.fromUid),null!=j0.toUid&&j0.hasOwnProperty("toUid")&&(j2.toUid=j0.toUid),null!=j0.reason&&j0.hasOwnProperty("reason")&&(j2.reason=j0.reason),null!=j0.status&&j0.hasOwnProperty("status")&&(j2.status=j0.status),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),null!=j0.fromReadStatus&&j0.hasOwnProperty("fromReadStatus")&&(j2.fromReadStatus=j0.fromReadStatus),null!=j0.toReadStatus&&j0.hasOwnProperty("toReadStatus")&&(j2.toReadStatus=j0.toReadStatus),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GeneralResult=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.errorCode=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int32(j0.errorCode),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GeneralResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.errorCode=j0.int32();else j0.skipType(7&j4);}if(!j3.hasOwnProperty("errorCode"))throw j9.ProtocolError("missing required 'errorCode'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.errorCode)?null:"errorCode: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GeneralResult)return j0;var j1=new j10.GeneralResult();return null!=j0.errorCode&&(j1.errorCode=0|j0.errorCode),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.errorCode=0),null!=j0.errorCode&&j0.hasOwnProperty("errorCode")&&(j2.errorCode=j0.errorCode),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetUploadTokenRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.mediaType=0,j0.prototype.mediaPath="",j0.prototype.contentType="",j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int32(j0.mediaType),j1.uint32(18).string(j0.mediaPath),null!=j0.contentType&&j0.hasOwnProperty("contentType")&&j1.uint32(26).string(j0.contentType),null!=j0.messageId&&j0.hasOwnProperty("messageId")&&j1.uint32(32).int64(j0.messageId),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetUploadTokenRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.mediaType=j0.int32();break;case 2:j3.mediaPath=j0.string();break;case 3:j3.contentType=j0.string();break;case 4:j3.messageId=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("mediaType"))throw j9.ProtocolError("missing required 'mediaType'",{instance:j3});if(!j3.hasOwnProperty("mediaPath"))throw j9.ProtocolError("missing required 'mediaPath'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.mediaType)?j9.isString(j0.mediaPath)?null!=j0.contentType&&j0.hasOwnProperty("contentType")&&!j9.isString(j0.contentType)?"contentType: string expected":null!=j0.messageId&&j0.hasOwnProperty("messageId")&&!(j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high))?"messageId: integer|Long expected":null:"mediaPath: string expected":"mediaType: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GetUploadTokenRequest)return j0;var j1=new j10.GetUploadTokenRequest();return null!=j0.mediaType&&(j1.mediaType=0|j0.mediaType),null!=j0.mediaPath&&(j1.mediaPath=String(j0.mediaPath)),null!=j0.contentType&&(j1.contentType=String(j0.contentType)),null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.mediaType=0,j2.mediaPath="",j2.contentType="",j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;return null!=j0.mediaType&&j0.hasOwnProperty("mediaType")&&(j2.mediaType=j0.mediaType),null!=j0.mediaPath&&j0.hasOwnProperty("mediaPath")&&(j2.mediaPath=j0.mediaPath),null!=j0.contentType&&j0.hasOwnProperty("contentType")&&(j2.contentType=j0.contentType),null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetUploadTokenResult=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.domain="",j0.prototype.token="",j0.prototype.server="",j0.prototype.port=0,j0.prototype.type=0,j0.prototype.date="",j0.prototype.path="",j0.prototype.backupServer="",j0.prototype.backupPort=0,j0.prototype.sslPort=0,j0.prototype.backupSslPort=0,j0.prototype.sslToken="",j0.prototype.backupToken="",j0.prototype.backupSslToken="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.domain),j1.uint32(18).string(j0.token),j1.uint32(26).string(j0.server),null!=j0.port&&j0.hasOwnProperty("port")&&j1.uint32(32).int32(j0.port),null!=j0.type&&j0.hasOwnProperty("type")&&j1.uint32(40).int32(j0.type),null!=j0.date&&j0.hasOwnProperty("date")&&j1.uint32(50).string(j0.date),null!=j0.path&&j0.hasOwnProperty("path")&&j1.uint32(58).string(j0.path),null!=j0.backupServer&&j0.hasOwnProperty("backupServer")&&j1.uint32(66).string(j0.backupServer),null!=j0.backupPort&&j0.hasOwnProperty("backupPort")&&j1.uint32(72).int32(j0.backupPort),null!=j0.sslPort&&j0.hasOwnProperty("sslPort")&&j1.uint32(80).int32(j0.sslPort),null!=j0.backupSslPort&&j0.hasOwnProperty("backupSslPort")&&j1.uint32(88).int32(j0.backupSslPort),null!=j0.sslToken&&j0.hasOwnProperty("sslToken")&&j1.uint32(98).string(j0.sslToken),null!=j0.backupToken&&j0.hasOwnProperty("backupToken")&&j1.uint32(106).string(j0.backupToken),null!=j0.backupSslToken&&j0.hasOwnProperty("backupSslToken")&&j1.uint32(114).string(j0.backupSslToken),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetUploadTokenResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.domain=j0.string();break;case 2:j3.token=j0.string();break;case 3:j3.server=j0.string();break;case 4:j3.port=j0.int32();break;case 5:j3.type=j0.int32();break;case 6:j3.date=j0.string();break;case 7:j3.path=j0.string();break;case 8:j3.backupServer=j0.string();break;case 9:j3.backupPort=j0.int32();break;case 10:j3.sslPort=j0.int32();break;case 11:j3.backupSslPort=j0.int32();break;case 12:j3.sslToken=j0.string();break;case 13:j3.backupToken=j0.string();break;case 14:j3.backupSslToken=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("domain"))throw j9.ProtocolError("missing required 'domain'",{instance:j3});if(!j3.hasOwnProperty("token"))throw j9.ProtocolError("missing required 'token'",{instance:j3});if(!j3.hasOwnProperty("server"))throw j9.ProtocolError("missing required 'server'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.domain)?j9.isString(j0.token)?j9.isString(j0.server)?null!=j0.port&&j0.hasOwnProperty("port")&&!j9.isInteger(j0.port)?"port: integer expected":null!=j0.type&&j0.hasOwnProperty("type")&&!j9.isInteger(j0.type)?"type: integer expected":null!=j0.date&&j0.hasOwnProperty("date")&&!j9.isString(j0.date)?"date: string expected":null!=j0.path&&j0.hasOwnProperty("path")&&!j9.isString(j0.path)?"path: string expected":null!=j0.backupServer&&j0.hasOwnProperty("backupServer")&&!j9.isString(j0.backupServer)?"backupServer: string expected":null!=j0.backupPort&&j0.hasOwnProperty("backupPort")&&!j9.isInteger(j0.backupPort)?"backupPort: integer expected":null!=j0.sslPort&&j0.hasOwnProperty("sslPort")&&!j9.isInteger(j0.sslPort)?"sslPort: integer expected":null!=j0.backupSslPort&&j0.hasOwnProperty("backupSslPort")&&!j9.isInteger(j0.backupSslPort)?"backupSslPort: integer expected":null!=j0.sslToken&&j0.hasOwnProperty("sslToken")&&!j9.isString(j0.sslToken)?"sslToken: string expected":null!=j0.backupToken&&j0.hasOwnProperty("backupToken")&&!j9.isString(j0.backupToken)?"backupToken: string expected":null!=j0.backupSslToken&&j0.hasOwnProperty("backupSslToken")&&!j9.isString(j0.backupSslToken)?"backupSslToken: string expected":null:"server: string expected":"token: string expected":"domain: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GetUploadTokenResult)return j0;var j1=new j10.GetUploadTokenResult();return null!=j0.domain&&(j1.domain=String(j0.domain)),null!=j0.token&&(j1.token=String(j0.token)),null!=j0.server&&(j1.server=String(j0.server)),null!=j0.port&&(j1.port=0|j0.port),null!=j0.type&&(j1.type=0|j0.type),null!=j0.date&&(j1.date=String(j0.date)),null!=j0.path&&(j1.path=String(j0.path)),null!=j0.backupServer&&(j1.backupServer=String(j0.backupServer)),null!=j0.backupPort&&(j1.backupPort=0|j0.backupPort),null!=j0.sslPort&&(j1.sslPort=0|j0.sslPort),null!=j0.backupSslPort&&(j1.backupSslPort=0|j0.backupSslPort),null!=j0.sslToken&&(j1.sslToken=String(j0.sslToken)),null!=j0.backupToken&&(j1.backupToken=String(j0.backupToken)),null!=j0.backupSslToken&&(j1.backupSslToken=String(j0.backupSslToken)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.domain="",j2.token="",j2.server="",j2.port=0,j2.type=0,j2.date="",j2.path="",j2.backupServer="",j2.backupPort=0,j2.sslPort=0,j2.backupSslPort=0,j2.sslToken="",j2.backupToken="",j2.backupSslToken=""),null!=j0.domain&&j0.hasOwnProperty("domain")&&(j2.domain=j0.domain),null!=j0.token&&j0.hasOwnProperty("token")&&(j2.token=j0.token),null!=j0.server&&j0.hasOwnProperty("server")&&(j2.server=j0.server),null!=j0.port&&j0.hasOwnProperty("port")&&(j2.port=j0.port),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.date&&j0.hasOwnProperty("date")&&(j2.date=j0.date),null!=j0.path&&j0.hasOwnProperty("path")&&(j2.path=j0.path),null!=j0.backupServer&&j0.hasOwnProperty("backupServer")&&(j2.backupServer=j0.backupServer),null!=j0.backupPort&&j0.hasOwnProperty("backupPort")&&(j2.backupPort=j0.backupPort),null!=j0.sslPort&&j0.hasOwnProperty("sslPort")&&(j2.sslPort=j0.sslPort),null!=j0.backupSslPort&&j0.hasOwnProperty("backupSslPort")&&(j2.backupSslPort=j0.backupSslPort),null!=j0.sslToken&&j0.hasOwnProperty("sslToken")&&(j2.sslToken=j0.sslToken),null!=j0.backupToken&&j0.hasOwnProperty("backupToken")&&(j2.backupToken=j0.backupToken),null!=j0.backupSslToken&&j0.hasOwnProperty("backupSslToken")&&(j2.backupSslToken=j0.backupSslToken),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetPresignedUrlResult=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.presignedUrl="",j0.prototype.mediaUrl="",j0.prototype.backupPresignedUrl="",j0.prototype.type=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.presignedUrl),j1.uint32(18).string(j0.mediaUrl),null!=j0.backupPresignedUrl&&j0.hasOwnProperty("backupPresignedUrl")&&j1.uint32(26).string(j0.backupPresignedUrl),null!=j0.type&&j0.hasOwnProperty("type")&&j1.uint32(32).int32(j0.type),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetPresignedUrlResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.presignedUrl=j0.string();break;case 2:j3.mediaUrl=j0.string();break;case 3:j3.backupPresignedUrl=j0.string();break;case 4:j3.type=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("presignedUrl"))throw j9.ProtocolError("missing required 'presignedUrl'",{instance:j3});if(!j3.hasOwnProperty("mediaUrl"))throw j9.ProtocolError("missing required 'mediaUrl'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.presignedUrl)?j9.isString(j0.mediaUrl)?null!=j0.backupPresignedUrl&&j0.hasOwnProperty("backupPresignedUrl")&&!j9.isString(j0.backupPresignedUrl)?"backupPresignedUrl: string expected":null!=j0.type&&j0.hasOwnProperty("type")&&!j9.isInteger(j0.type)?"type: integer expected":null:"mediaUrl: string expected":"presignedUrl: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GetPresignedUrlResult)return j0;var j1=new j10.GetPresignedUrlResult();return null!=j0.presignedUrl&&(j1.presignedUrl=String(j0.presignedUrl)),null!=j0.mediaUrl&&(j1.mediaUrl=String(j0.mediaUrl)),null!=j0.backupPresignedUrl&&(j1.backupPresignedUrl=String(j0.backupPresignedUrl)),null!=j0.type&&(j1.type=0|j0.type),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.presignedUrl="",j2.mediaUrl="",j2.backupPresignedUrl="",j2.type=0),null!=j0.presignedUrl&&j0.hasOwnProperty("presignedUrl")&&(j2.presignedUrl=j0.presignedUrl),null!=j0.mediaUrl&&j0.hasOwnProperty("mediaUrl")&&(j2.mediaUrl=j0.mediaUrl),null!=j0.backupPresignedUrl&&j0.hasOwnProperty("backupPresignedUrl")&&(j2.backupPresignedUrl=j0.backupPresignedUrl),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetDownloadSignedUrlResult=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.url="",j0.prototype.backupUrl="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.url),null!=j0.backupUrl&&j0.hasOwnProperty("backupUrl")&&j1.uint32(18).string(j0.backupUrl),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetDownloadSignedUrlResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.url=j0.string();break;case 2:j3.backupUrl=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("url"))throw j9.ProtocolError("missing required 'url'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.url)?null!=j0.backupUrl&&j0.hasOwnProperty("backupUrl")&&!j9.isString(j0.backupUrl)?"backupUrl: string expected":null:"url: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GetDownloadSignedUrlResult)return j0;var j1=new j10.GetDownloadSignedUrlResult();return null!=j0.url&&(j1.url=String(j0.url)),null!=j0.backupUrl&&(j1.backupUrl=String(j0.backupUrl)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.url="",j2.backupUrl=""),null!=j0.url&&j0.hasOwnProperty("url")&&(j2.url=j0.url),null!=j0.backupUrl&&j0.hasOwnProperty("backupUrl")&&(j2.backupUrl=j0.backupUrl),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.HandleFriendRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.targetUid="",j0.prototype.status=0,j0.prototype.extra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.targetUid),j1.uint32(16).int32(j0.status),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(26).string(j0.extra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.HandleFriendRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.targetUid=j0.string();break;case 2:j3.status=j0.int32();break;case 3:j3.extra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("targetUid"))throw j9.ProtocolError("missing required 'targetUid'",{instance:j3});if(!j3.hasOwnProperty("status"))throw j9.ProtocolError("missing required 'status'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.targetUid)?j9.isInteger(j0.status)?null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null:"status: integer expected":"targetUid: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.HandleFriendRequest)return j0;var j1=new j10.HandleFriendRequest();return null!=j0.targetUid&&(j1.targetUid=String(j0.targetUid)),null!=j0.status&&(j1.status=0|j0.status),null!=j0.extra&&(j1.extra=String(j0.extra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.targetUid="",j2.status=0,j2.extra=""),null!=j0.targetUid&&j0.hasOwnProperty("targetUid")&&(j2.targetUid=j0.targetUid),null!=j0.status&&j0.hasOwnProperty("status")&&(j2.status=j0.status),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.IDBuf=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.id="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.id),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.IDBuf();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.id=j0.string();else j0.skipType(7&j4);}if(!j3.hasOwnProperty("id"))throw j9.ProtocolError("missing required 'id'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.id)?null:"id: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.IDBuf)return j0;var j1=new j10.IDBuf();return null!=j0.id&&(j1.id=String(j0.id)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.id=""),null!=j0.id&&j0.hasOwnProperty("id")&&(j2.id=j0.id),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.IDListBuf=function(){function j0(j0){if(this.id=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.id=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.id&&j0.id.length)for(var j2=0;j2<j0.id.length;++j2)j1.uint32(10).string(j0.id[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.IDListBuf();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.id&&j3.id.length||(j3.id=[]),j3.id.push(j0.string());else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.id&&j0.hasOwnProperty("id")){if(!Array.isArray(j0.id))return"id: array expected";for(var j1=0;j1<j0.id.length;++j1)if(!j9.isString(j0.id[j1]))return"id: string[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.IDListBuf)return j0;var j1=new j10.IDListBuf();if(j0.id){if(!Array.isArray(j0.id))throw TypeError(".IDListBuf.id: array expected");j1.id=[];for(var j2=0;j2<j0.id.length;++j2)j1.id[j2]=String(j0.id[j2]);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.id=[]),j0.id&&j0.id.length){j2.id=[];for(var j3=0;j3<j0.id.length;++j3)j2.id[j3]=j0.id[j3];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.Message=function(){function j0(j0){if(this.to=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.conversation=null,j0.prototype.fromUser="",j0.prototype.content=null,j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.serverTimestamp=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.toUser="",j0.prototype.to=j9.emptyArray,j0.prototype.fromId=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j10.Conversation.encode(j0.conversation,j1.uint32(10).fork()).ldelim(),j1.uint32(18).string(j0.fromUser),j10.MessageContent.encode(j0.content,j1.uint32(26).fork()).ldelim(),null!=j0.messageId&&j0.hasOwnProperty("messageId")&&j1.uint32(32).int64(j0.messageId),null!=j0.serverTimestamp&&j0.hasOwnProperty("serverTimestamp")&&j1.uint32(40).int64(j0.serverTimestamp),null!=j0.toUser&&j0.hasOwnProperty("toUser")&&j1.uint32(50).string(j0.toUser),null!=j0.to&&j0.to.length)for(var j2=0;j2<j0.to.length;++j2)j1.uint32(58).string(j0.to[j2]);return null!=j0.fromId&&j0.hasOwnProperty("fromId")&&j1.uint32(64).int32(j0.fromId),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.Message();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.conversation=j10.Conversation.decode(j0,j0.uint32());break;case 2:j3.fromUser=j0.string();break;case 3:j3.content=j10.MessageContent.decode(j0,j0.uint32());break;case 4:j3.messageId=j0.int64();break;case 5:j3.serverTimestamp=j0.int64();break;case 6:j3.toUser=j0.string();break;case 7:j3.to&&j3.to.length||(j3.to=[]),j3.to.push(j0.string());break;case 8:j3.fromId=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("conversation"))throw j9.ProtocolError("missing required 'conversation'",{instance:j3});if(!j3.hasOwnProperty("fromUser"))throw j9.ProtocolError("missing required 'fromUser'",{instance:j3});if(!j3.hasOwnProperty("content"))throw j9.ProtocolError("missing required 'content'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";var j1;if(j1=j10.Conversation.verify(j0.conversation))return"conversation."+j1;if(!j9.isString(j0.fromUser))return"fromUser: string expected";if(j1=j10.MessageContent.verify(j0.content))return"content."+j1;if(null!=j0.messageId&&j0.hasOwnProperty("messageId")&&!(j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high)))return"messageId: integer|Long expected";if(null!=j0.serverTimestamp&&j0.hasOwnProperty("serverTimestamp")&&!(j9.isInteger(j0.serverTimestamp)||j0.serverTimestamp&&j9.isInteger(j0.serverTimestamp.low)&&j9.isInteger(j0.serverTimestamp.high)))return"serverTimestamp: integer|Long expected";if(null!=j0.toUser&&j0.hasOwnProperty("toUser")&&!j9.isString(j0.toUser))return"toUser: string expected";if(null!=j0.to&&j0.hasOwnProperty("to")){if(!Array.isArray(j0.to))return"to: array expected";for(var j2=0;j2<j0.to.length;++j2)if(!j9.isString(j0.to[j2]))return"to: string[] expected";}return null!=j0.fromId&&j0.hasOwnProperty("fromId")&&!j9.isInteger(j0.fromId)?"fromId: integer expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.Message)return j0;var j1=new j10.Message();if(null!=j0.conversation){if("object"!==(0,j3.default)(j0.conversation))throw TypeError(".Message.conversation: object expected");j1.conversation=j10.Conversation.fromObject(j0.conversation);}if(null!=j0.fromUser&&(j1.fromUser=String(j0.fromUser)),null!=j0.content){if("object"!==(0,j3.default)(j0.content))throw TypeError(".Message.content: object expected");j1.content=j10.MessageContent.fromObject(j0.content);}if(null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),null!=j0.serverTimestamp&&(j9.Long?(j1.serverTimestamp=j9.Long.fromValue(j0.serverTimestamp)).unsigned=!1:"string"==typeof j0.serverTimestamp?j1.serverTimestamp=parseInt(j0.serverTimestamp,10):"number"==typeof j0.serverTimestamp?j1.serverTimestamp=j0.serverTimestamp:"object"===(0,j3.default)(j0.serverTimestamp)&&(j1.serverTimestamp=new j9.LongBits(j0.serverTimestamp.low>>>0,j0.serverTimestamp.high>>>0).toNumber())),null!=j0.toUser&&(j1.toUser=String(j0.toUser)),j0.to){if(!Array.isArray(j0.to))throw TypeError(".Message.to: array expected");j1.to=[];for(var j2=0;j2<j0.to.length;++j2)j1.to[j2]=String(j0.to[j2]);}return null!=j0.fromId&&(j1.fromId=0|j0.fromId),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.to=[]),j1.defaults){if(j2.conversation=null,j2.fromUser="",j2.content=null,j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.serverTimestamp=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.serverTimestamp=j1.longs===String?"0":0;j2.toUser="",j2.fromId=0;}if(null!=j0.conversation&&j0.hasOwnProperty("conversation")&&(j2.conversation=j10.Conversation.toObject(j0.conversation,j1)),null!=j0.fromUser&&j0.hasOwnProperty("fromUser")&&(j2.fromUser=j0.fromUser),null!=j0.content&&j0.hasOwnProperty("content")&&(j2.content=j10.MessageContent.toObject(j0.content,j1)),null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),null!=j0.serverTimestamp&&j0.hasOwnProperty("serverTimestamp")&&("number"==typeof j0.serverTimestamp?j2.serverTimestamp=j1.longs===String?String(j0.serverTimestamp):j0.serverTimestamp:j2.serverTimestamp=j1.longs===String?j9.Long.prototype.toString.call(j0.serverTimestamp):j1.longs===Number?new j9.LongBits(j0.serverTimestamp.low>>>0,j0.serverTimestamp.high>>>0).toNumber():j0.serverTimestamp),null!=j0.toUser&&j0.hasOwnProperty("toUser")&&(j2.toUser=j0.toUser),j0.to&&j0.to.length){j2.to=[];for(var j4=0;j4<j0.to.length;++j4)j2.to[j4]=j0.to[j4];}return null!=j0.fromId&&j0.hasOwnProperty("fromId")&&(j2.fromId=j0.fromId),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConvReadRequest=function(){function j0(j0){if(this.to=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.conversation=null,j0.prototype.fromUser="",j0.prototype.readTime=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.to=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j10.Conversation.encode(j0.conversation,j1.uint32(10).fork()).ldelim(),j1.uint32(18).string(j0.fromUser),j1.uint32(24).int64(j0.readTime),null!=j0.to&&j0.to.length)for(var j2=0;j2<j0.to.length;++j2)j1.uint32(34).string(j0.to[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConvReadRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.conversation=j10.Conversation.decode(j0,j0.uint32());break;case 2:j3.fromUser=j0.string();break;case 3:j3.readTime=j0.int64();break;case 4:j3.to&&j3.to.length||(j3.to=[]),j3.to.push(j0.string());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("conversation"))throw j9.ProtocolError("missing required 'conversation'",{instance:j3});if(!j3.hasOwnProperty("fromUser"))throw j9.ProtocolError("missing required 'fromUser'",{instance:j3});if(!j3.hasOwnProperty("readTime"))throw j9.ProtocolError("missing required 'readTime'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";var j1=j10.Conversation.verify(j0.conversation);if(j1)return"conversation."+j1;if(!j9.isString(j0.fromUser))return"fromUser: string expected";if(!(j9.isInteger(j0.readTime)||j0.readTime&&j9.isInteger(j0.readTime.low)&&j9.isInteger(j0.readTime.high)))return"readTime: integer|Long expected";if(null!=j0.to&&j0.hasOwnProperty("to")){if(!Array.isArray(j0.to))return"to: array expected";for(var j2=0;j2<j0.to.length;++j2)if(!j9.isString(j0.to[j2]))return"to: string[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ConvReadRequest)return j0;var j1=new j10.ConvReadRequest();if(null!=j0.conversation){if("object"!==(0,j3.default)(j0.conversation))throw TypeError(".ConvReadRequest.conversation: object expected");j1.conversation=j10.Conversation.fromObject(j0.conversation);}if(null!=j0.fromUser&&(j1.fromUser=String(j0.fromUser)),null!=j0.readTime&&(j9.Long?(j1.readTime=j9.Long.fromValue(j0.readTime)).unsigned=!1:"string"==typeof j0.readTime?j1.readTime=parseInt(j0.readTime,10):"number"==typeof j0.readTime?j1.readTime=j0.readTime:"object"===(0,j3.default)(j0.readTime)&&(j1.readTime=new j9.LongBits(j0.readTime.low>>>0,j0.readTime.high>>>0).toNumber())),j0.to){if(!Array.isArray(j0.to))throw TypeError(".ConvReadRequest.to: array expected");j1.to=[];for(var j2=0;j2<j0.to.length;++j2)j1.to[j2]=String(j0.to[j2]);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.to=[]),j1.defaults)if(j2.conversation=null,j2.fromUser="",j9.Long){var j3=new j9.Long(0,0,!1);j2.readTime=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.readTime=j1.longs===String?"0":0;if(null!=j0.conversation&&j0.hasOwnProperty("conversation")&&(j2.conversation=j10.Conversation.toObject(j0.conversation,j1)),null!=j0.fromUser&&j0.hasOwnProperty("fromUser")&&(j2.fromUser=j0.fromUser),null!=j0.readTime&&j0.hasOwnProperty("readTime")&&("number"==typeof j0.readTime?j2.readTime=j1.longs===String?String(j0.readTime):j0.readTime:j2.readTime=j1.longs===String?j9.Long.prototype.toString.call(j0.readTime):j1.longs===Number?new j9.LongBits(j0.readTime.low>>>0,j0.readTime.high>>>0).toNumber():j0.readTime),j0.to&&j0.to.length){j2.to=[];for(var j4=0;j4<j0.to.length;++j4)j2.to[j4]=j0.to[j4];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConvRead=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.id=0,j0.prototype.conversation=null,j0.prototype.fromUser="",j0.prototype.readTime=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),null!=j0.id&&j0.hasOwnProperty("id")&&j1.uint32(8).int32(j0.id),j10.Conversation.encode(j0.conversation,j1.uint32(18).fork()).ldelim(),j1.uint32(26).string(j0.fromUser),j1.uint32(32).int64(j0.readTime),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConvRead();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.id=j0.int32();break;case 2:j3.conversation=j10.Conversation.decode(j0,j0.uint32());break;case 3:j3.fromUser=j0.string();break;case 4:j3.readTime=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("conversation"))throw j9.ProtocolError("missing required 'conversation'",{instance:j3});if(!j3.hasOwnProperty("fromUser"))throw j9.ProtocolError("missing required 'fromUser'",{instance:j3});if(!j3.hasOwnProperty("readTime"))throw j9.ProtocolError("missing required 'readTime'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.id&&j0.hasOwnProperty("id")&&!j9.isInteger(j0.id))return"id: integer expected";var j1=j10.Conversation.verify(j0.conversation);return j1?"conversation."+j1:j9.isString(j0.fromUser)?j9.isInteger(j0.readTime)||j0.readTime&&j9.isInteger(j0.readTime.low)&&j9.isInteger(j0.readTime.high)?null:"readTime: integer|Long expected":"fromUser: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.ConvRead)return j0;var j1=new j10.ConvRead();if(null!=j0.id&&(j1.id=0|j0.id),null!=j0.conversation){if("object"!==(0,j3.default)(j0.conversation))throw TypeError(".ConvRead.conversation: object expected");j1.conversation=j10.Conversation.fromObject(j0.conversation);}return null!=j0.fromUser&&(j1.fromUser=String(j0.fromUser)),null!=j0.readTime&&(j9.Long?(j1.readTime=j9.Long.fromValue(j0.readTime)).unsigned=!1:"string"==typeof j0.readTime?j1.readTime=parseInt(j0.readTime,10):"number"==typeof j0.readTime?j1.readTime=j0.readTime:"object"===(0,j3.default)(j0.readTime)&&(j1.readTime=new j9.LongBits(j0.readTime.low>>>0,j0.readTime.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.id=0,j2.conversation=null,j2.fromUser="",j9.Long){var j3=new j9.Long(0,0,!1);j2.readTime=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.readTime=j1.longs===String?"0":0;return null!=j0.id&&j0.hasOwnProperty("id")&&(j2.id=j0.id),null!=j0.conversation&&j0.hasOwnProperty("conversation")&&(j2.conversation=j10.Conversation.toObject(j0.conversation,j1)),null!=j0.fromUser&&j0.hasOwnProperty("fromUser")&&(j2.fromUser=j0.fromUser),null!=j0.readTime&&j0.hasOwnProperty("readTime")&&("number"==typeof j0.readTime?j2.readTime=j1.longs===String?String(j0.readTime):j0.readTime:j2.readTime=j1.longs===String?j9.Long.prototype.toString.call(j0.readTime):j1.longs===Number?new j9.LongBits(j0.readTime.low>>>0,j0.readTime.high>>>0).toNumber():j0.readTime),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.Delivery=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.fromUser="",j0.prototype.receiveTime=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.fromUser),j1.uint32(16).int64(j0.receiveTime),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.Delivery();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.fromUser=j0.string();break;case 2:j3.receiveTime=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("fromUser"))throw j9.ProtocolError("missing required 'fromUser'",{instance:j3});if(!j3.hasOwnProperty("receiveTime"))throw j9.ProtocolError("missing required 'receiveTime'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.fromUser)?j9.isInteger(j0.receiveTime)||j0.receiveTime&&j9.isInteger(j0.receiveTime.low)&&j9.isInteger(j0.receiveTime.high)?null:"receiveTime: integer|Long expected":"fromUser: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.Delivery)return j0;var j1=new j10.Delivery();return null!=j0.fromUser&&(j1.fromUser=String(j0.fromUser)),null!=j0.receiveTime&&(j9.Long?(j1.receiveTime=j9.Long.fromValue(j0.receiveTime)).unsigned=!1:"string"==typeof j0.receiveTime?j1.receiveTime=parseInt(j0.receiveTime,10):"number"==typeof j0.receiveTime?j1.receiveTime=j0.receiveTime:"object"===(0,j3.default)(j0.receiveTime)&&(j1.receiveTime=new j9.LongBits(j0.receiveTime.low>>>0,j0.receiveTime.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.fromUser="",j9.Long){var j3=new j9.Long(0,0,!1);j2.receiveTime=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.receiveTime=j1.longs===String?"0":0;return null!=j0.fromUser&&j0.hasOwnProperty("fromUser")&&(j2.fromUser=j0.fromUser),null!=j0.receiveTime&&j0.hasOwnProperty("receiveTime")&&("number"==typeof j0.receiveTime?j2.receiveTime=j1.longs===String?String(j0.receiveTime):j0.receiveTime:j2.receiveTime=j1.longs===String?j9.Long.prototype.toString.call(j0.receiveTime):j1.longs===Number?new j9.LongBits(j0.receiveTime.low>>>0,j0.receiveTime.high>>>0).toNumber():j0.receiveTime),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.NotifyDelivery=function(){function j0(j0){if(this.target=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.fromUser="",j0.prototype.receiveTime=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.target=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.fromUser),j1.uint32(16).int64(j0.receiveTime),null!=j0.target&&j0.target.length)for(var j2=0;j2<j0.target.length;++j2)j1.uint32(26).string(j0.target[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.NotifyDelivery();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.fromUser=j0.string();break;case 2:j3.receiveTime=j0.int64();break;case 3:j3.target&&j3.target.length||(j3.target=[]),j3.target.push(j0.string());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("fromUser"))throw j9.ProtocolError("missing required 'fromUser'",{instance:j3});if(!j3.hasOwnProperty("receiveTime"))throw j9.ProtocolError("missing required 'receiveTime'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.fromUser))return"fromUser: string expected";if(!(j9.isInteger(j0.receiveTime)||j0.receiveTime&&j9.isInteger(j0.receiveTime.low)&&j9.isInteger(j0.receiveTime.high)))return"receiveTime: integer|Long expected";if(null!=j0.target&&j0.hasOwnProperty("target")){if(!Array.isArray(j0.target))return"target: array expected";for(var j1=0;j1<j0.target.length;++j1)if(!j9.isString(j0.target[j1]))return"target: string[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.NotifyDelivery)return j0;var j1=new j10.NotifyDelivery();if(null!=j0.fromUser&&(j1.fromUser=String(j0.fromUser)),null!=j0.receiveTime&&(j9.Long?(j1.receiveTime=j9.Long.fromValue(j0.receiveTime)).unsigned=!1:"string"==typeof j0.receiveTime?j1.receiveTime=parseInt(j0.receiveTime,10):"number"==typeof j0.receiveTime?j1.receiveTime=j0.receiveTime:"object"===(0,j3.default)(j0.receiveTime)&&(j1.receiveTime=new j9.LongBits(j0.receiveTime.low>>>0,j0.receiveTime.high>>>0).toNumber())),j0.target){if(!Array.isArray(j0.target))throw TypeError(".NotifyDelivery.target: array expected");j1.target=[];for(var j2=0;j2<j0.target.length;++j2)j1.target[j2]=String(j0.target[j2]);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.target=[]),j1.defaults)if(j2.fromUser="",j9.Long){var j3=new j9.Long(0,0,!1);j2.receiveTime=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.receiveTime=j1.longs===String?"0":0;if(null!=j0.fromUser&&j0.hasOwnProperty("fromUser")&&(j2.fromUser=j0.fromUser),null!=j0.receiveTime&&j0.hasOwnProperty("receiveTime")&&("number"==typeof j0.receiveTime?j2.receiveTime=j1.longs===String?String(j0.receiveTime):j0.receiveTime:j2.receiveTime=j1.longs===String?j9.Long.prototype.toString.call(j0.receiveTime):j1.longs===Number?new j9.LongBits(j0.receiveTime.low>>>0,j0.receiveTime.high>>>0).toNumber():j0.receiveTime),j0.target&&j0.target.length){j2.target=[];for(var j4=0;j4<j0.target.length;++j4)j2.target[j4]=j0.target[j4];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.User=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.uid="",j0.prototype.name="",j0.prototype.displayName="",j0.prototype.portrait="",j0.prototype.mobile="",j0.prototype.email="",j0.prototype.address="",j0.prototype.company="",j0.prototype.extra="",j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.gender=0,j0.prototype.social="",j0.prototype.type=0,j0.prototype.deleted=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.uid),null!=j0.name&&j0.hasOwnProperty("name")&&j1.uint32(18).string(j0.name),null!=j0.displayName&&j0.hasOwnProperty("displayName")&&j1.uint32(26).string(j0.displayName),null!=j0.portrait&&j0.hasOwnProperty("portrait")&&j1.uint32(34).string(j0.portrait),null!=j0.mobile&&j0.hasOwnProperty("mobile")&&j1.uint32(42).string(j0.mobile),null!=j0.email&&j0.hasOwnProperty("email")&&j1.uint32(50).string(j0.email),null!=j0.address&&j0.hasOwnProperty("address")&&j1.uint32(58).string(j0.address),null!=j0.company&&j0.hasOwnProperty("company")&&j1.uint32(66).string(j0.company),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(74).string(j0.extra),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&j1.uint32(80).int64(j0.updateDt),null!=j0.gender&&j0.hasOwnProperty("gender")&&j1.uint32(88).int32(j0.gender),null!=j0.social&&j0.hasOwnProperty("social")&&j1.uint32(98).string(j0.social),null!=j0.type&&j0.hasOwnProperty("type")&&j1.uint32(104).int32(j0.type),null!=j0.deleted&&j0.hasOwnProperty("deleted")&&j1.uint32(112).int32(j0.deleted),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.User();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.uid=j0.string();break;case 2:j3.name=j0.string();break;case 3:j3.displayName=j0.string();break;case 4:j3.portrait=j0.string();break;case 5:j3.mobile=j0.string();break;case 6:j3.email=j0.string();break;case 7:j3.address=j0.string();break;case 8:j3.company=j0.string();break;case 9:j3.extra=j0.string();break;case 10:j3.updateDt=j0.int64();break;case 11:j3.gender=j0.int32();break;case 12:j3.social=j0.string();break;case 13:j3.type=j0.int32();break;case 14:j3.deleted=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("uid"))throw j9.ProtocolError("missing required 'uid'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.uid)?null!=j0.name&&j0.hasOwnProperty("name")&&!j9.isString(j0.name)?"name: string expected":null!=j0.displayName&&j0.hasOwnProperty("displayName")&&!j9.isString(j0.displayName)?"displayName: string expected":null!=j0.portrait&&j0.hasOwnProperty("portrait")&&!j9.isString(j0.portrait)?"portrait: string expected":null!=j0.mobile&&j0.hasOwnProperty("mobile")&&!j9.isString(j0.mobile)?"mobile: string expected":null!=j0.email&&j0.hasOwnProperty("email")&&!j9.isString(j0.email)?"email: string expected":null!=j0.address&&j0.hasOwnProperty("address")&&!j9.isString(j0.address)?"address: string expected":null!=j0.company&&j0.hasOwnProperty("company")&&!j9.isString(j0.company)?"company: string expected":null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&!(j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high))?"updateDt: integer|Long expected":null!=j0.gender&&j0.hasOwnProperty("gender")&&!j9.isInteger(j0.gender)?"gender: integer expected":null!=j0.social&&j0.hasOwnProperty("social")&&!j9.isString(j0.social)?"social: string expected":null!=j0.type&&j0.hasOwnProperty("type")&&!j9.isInteger(j0.type)?"type: integer expected":null!=j0.deleted&&j0.hasOwnProperty("deleted")&&!j9.isInteger(j0.deleted)?"deleted: integer expected":null:"uid: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.User)return j0;var j1=new j10.User();return null!=j0.uid&&(j1.uid=String(j0.uid)),null!=j0.name&&(j1.name=String(j0.name)),null!=j0.displayName&&(j1.displayName=String(j0.displayName)),null!=j0.portrait&&(j1.portrait=String(j0.portrait)),null!=j0.mobile&&(j1.mobile=String(j0.mobile)),null!=j0.email&&(j1.email=String(j0.email)),null!=j0.address&&(j1.address=String(j0.address)),null!=j0.company&&(j1.company=String(j0.company)),null!=j0.extra&&(j1.extra=String(j0.extra)),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),null!=j0.gender&&(j1.gender=0|j0.gender),null!=j0.social&&(j1.social=String(j0.social)),null!=j0.type&&(j1.type=0|j0.type),null!=j0.deleted&&(j1.deleted=0|j0.deleted),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.uid="",j2.name="",j2.displayName="",j2.portrait="",j2.mobile="",j2.email="",j2.address="",j2.company="",j2.extra="",j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;j2.gender=0,j2.social="",j2.type=0,j2.deleted=0;}return null!=j0.uid&&j0.hasOwnProperty("uid")&&(j2.uid=j0.uid),null!=j0.name&&j0.hasOwnProperty("name")&&(j2.name=j0.name),null!=j0.displayName&&j0.hasOwnProperty("displayName")&&(j2.displayName=j0.displayName),null!=j0.portrait&&j0.hasOwnProperty("portrait")&&(j2.portrait=j0.portrait),null!=j0.mobile&&j0.hasOwnProperty("mobile")&&(j2.mobile=j0.mobile),null!=j0.email&&j0.hasOwnProperty("email")&&(j2.email=j0.email),null!=j0.address&&j0.hasOwnProperty("address")&&(j2.address=j0.address),null!=j0.company&&j0.hasOwnProperty("company")&&(j2.company=j0.company),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),null!=j0.gender&&j0.hasOwnProperty("gender")&&(j2.gender=j0.gender),null!=j0.social&&j0.hasOwnProperty("social")&&(j2.social=j0.social),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.deleted&&j0.hasOwnProperty("deleted")&&(j2.deleted=j0.deleted),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.Robot=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.uid="",j0.prototype.state=0,j0.prototype.owner="",j0.prototype.secret="",j0.prototype.callback="",j0.prototype.extra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.uid),j1.uint32(16).int32(j0.state),null!=j0.owner&&j0.hasOwnProperty("owner")&&j1.uint32(26).string(j0.owner),null!=j0.secret&&j0.hasOwnProperty("secret")&&j1.uint32(34).string(j0.secret),null!=j0.callback&&j0.hasOwnProperty("callback")&&j1.uint32(42).string(j0.callback),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(50).string(j0.extra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.Robot();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.uid=j0.string();break;case 2:j3.state=j0.int32();break;case 3:j3.owner=j0.string();break;case 4:j3.secret=j0.string();break;case 5:j3.callback=j0.string();break;case 6:j3.extra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("uid"))throw j9.ProtocolError("missing required 'uid'",{instance:j3});if(!j3.hasOwnProperty("state"))throw j9.ProtocolError("missing required 'state'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.uid)?j9.isInteger(j0.state)?null!=j0.owner&&j0.hasOwnProperty("owner")&&!j9.isString(j0.owner)?"owner: string expected":null!=j0.secret&&j0.hasOwnProperty("secret")&&!j9.isString(j0.secret)?"secret: string expected":null!=j0.callback&&j0.hasOwnProperty("callback")&&!j9.isString(j0.callback)?"callback: string expected":null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null:"state: integer expected":"uid: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.Robot)return j0;var j1=new j10.Robot();return null!=j0.uid&&(j1.uid=String(j0.uid)),null!=j0.state&&(j1.state=0|j0.state),null!=j0.owner&&(j1.owner=String(j0.owner)),null!=j0.secret&&(j1.secret=String(j0.secret)),null!=j0.callback&&(j1.callback=String(j0.callback)),null!=j0.extra&&(j1.extra=String(j0.extra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.uid="",j2.state=0,j2.owner="",j2.secret="",j2.callback="",j2.extra=""),null!=j0.uid&&j0.hasOwnProperty("uid")&&(j2.uid=j0.uid),null!=j0.state&&j0.hasOwnProperty("state")&&(j2.state=j0.state),null!=j0.owner&&j0.hasOwnProperty("owner")&&(j2.owner=j0.owner),null!=j0.secret&&j0.hasOwnProperty("secret")&&(j2.secret=j0.secret),null!=j0.callback&&j0.hasOwnProperty("callback")&&(j2.callback=j0.callback),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetRobotsResult=function(){function j0(j0){if(this.entry=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.entry=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.entry&&j0.entry.length)for(var j2=0;j2<j0.entry.length;++j2)j10.Robot.encode(j0.entry[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetRobotsResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.entry&&j3.entry.length||(j3.entry=[]),j3.entry.push(j10.Robot.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.entry&&j0.hasOwnProperty("entry")){if(!Array.isArray(j0.entry))return"entry: array expected";for(var j1=0;j1<j0.entry.length;++j1){var j2=j10.Robot.verify(j0.entry[j1]);if(j2)return"entry."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.GetRobotsResult)return j0;var j1=new j10.GetRobotsResult();if(j0.entry){if(!Array.isArray(j0.entry))throw TypeError(".GetRobotsResult.entry: array expected");j1.entry=[];for(var j2=0;j2<j0.entry.length;++j2){if("object"!==(0,j3.default)(j0.entry[j2]))throw TypeError(".GetRobotsResult.entry: object expected");j1.entry[j2]=j10.Robot.fromObject(j0.entry[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.entry=[]),j0.entry&&j0.entry.length){j2.entry=[];for(var j3=0;j3<j0.entry.length;++j3)j2.entry[j3]=j10.Robot.toObject(j0.entry[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.Device=function(){function j0(j0){if(this.owner=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.uid="",j0.prototype.state=0,j0.prototype.token="",j0.prototype.owner=j9.emptyArray,j0.prototype.extra="",j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.uid),j1.uint32(16).int32(j0.state),j1.uint32(26).string(j0.token),null!=j0.owner&&j0.owner.length)for(var j2=0;j2<j0.owner.length;++j2)j1.uint32(34).string(j0.owner[j2]);return null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(42).string(j0.extra),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&j1.uint32(48).int64(j0.updateDt),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.Device();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.uid=j0.string();break;case 2:j3.state=j0.int32();break;case 3:j3.token=j0.string();break;case 4:j3.owner&&j3.owner.length||(j3.owner=[]),j3.owner.push(j0.string());break;case 5:j3.extra=j0.string();break;case 6:j3.updateDt=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("uid"))throw j9.ProtocolError("missing required 'uid'",{instance:j3});if(!j3.hasOwnProperty("state"))throw j9.ProtocolError("missing required 'state'",{instance:j3});if(!j3.hasOwnProperty("token"))throw j9.ProtocolError("missing required 'token'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.uid))return"uid: string expected";if(!j9.isInteger(j0.state))return"state: integer expected";if(!j9.isString(j0.token))return"token: string expected";if(null!=j0.owner&&j0.hasOwnProperty("owner")){if(!Array.isArray(j0.owner))return"owner: array expected";for(var j1=0;j1<j0.owner.length;++j1)if(!j9.isString(j0.owner[j1]))return"owner: string[] expected";}return null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&!(j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high))?"updateDt: integer|Long expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.Device)return j0;var j1=new j10.Device();if(null!=j0.uid&&(j1.uid=String(j0.uid)),null!=j0.state&&(j1.state=0|j0.state),null!=j0.token&&(j1.token=String(j0.token)),j0.owner){if(!Array.isArray(j0.owner))throw TypeError(".Device.owner: array expected");j1.owner=[];for(var j2=0;j2<j0.owner.length;++j2)j1.owner[j2]=String(j0.owner[j2]);}return null!=j0.extra&&(j1.extra=String(j0.extra)),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.owner=[]),j1.defaults)if(j2.uid="",j2.state=0,j2.token="",j2.extra="",j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;if(null!=j0.uid&&j0.hasOwnProperty("uid")&&(j2.uid=j0.uid),null!=j0.state&&j0.hasOwnProperty("state")&&(j2.state=j0.state),null!=j0.token&&j0.hasOwnProperty("token")&&(j2.token=j0.token),j0.owner&&j0.owner.length){j2.owner=[];for(var j4=0;j4<j0.owner.length;++j4)j2.owner[j4]=j0.owner[j4];}return null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetDeviceResult=function(){function j0(j0){if(this.entry=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.entry=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.entry&&j0.entry.length)for(var j2=0;j2<j0.entry.length;++j2)j10.Device.encode(j0.entry[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetDeviceResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.entry&&j3.entry.length||(j3.entry=[]),j3.entry.push(j10.Device.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.entry&&j0.hasOwnProperty("entry")){if(!Array.isArray(j0.entry))return"entry: array expected";for(var j1=0;j1<j0.entry.length;++j1){var j2=j10.Device.verify(j0.entry[j1]);if(j2)return"entry."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.GetDeviceResult)return j0;var j1=new j10.GetDeviceResult();if(j0.entry){if(!Array.isArray(j0.entry))throw TypeError(".GetDeviceResult.entry: array expected");j1.entry=[];for(var j2=0;j2<j0.entry.length;++j2){if("object"!==(0,j3.default)(j0.entry[j2]))throw TypeError(".GetDeviceResult.entry: object expected");j1.entry[j2]=j10.Device.fromObject(j0.entry[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.entry=[]),j0.entry&&j0.entry.length){j2.entry=[];for(var j3=0;j3<j0.entry.length;++j3)j2.entry[j3]=j10.Device.toObject(j0.entry[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.UploadDeviceTokenRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.platform=0,j0.prototype.appName="",j0.prototype.deviceToken="",j0.prototype.pushType=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int32(j0.platform),j1.uint32(18).string(j0.appName),j1.uint32(26).string(j0.deviceToken),j1.uint32(32).int32(j0.pushType),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.UploadDeviceTokenRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.platform=j0.int32();break;case 2:j3.appName=j0.string();break;case 3:j3.deviceToken=j0.string();break;case 4:j3.pushType=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("platform"))throw j9.ProtocolError("missing required 'platform'",{instance:j3});if(!j3.hasOwnProperty("appName"))throw j9.ProtocolError("missing required 'appName'",{instance:j3});if(!j3.hasOwnProperty("deviceToken"))throw j9.ProtocolError("missing required 'deviceToken'",{instance:j3});if(!j3.hasOwnProperty("pushType"))throw j9.ProtocolError("missing required 'pushType'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.platform)?j9.isString(j0.appName)?j9.isString(j0.deviceToken)?j9.isInteger(j0.pushType)?null:"pushType: integer expected":"deviceToken: string expected":"appName: string expected":"platform: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.UploadDeviceTokenRequest)return j0;var j1=new j10.UploadDeviceTokenRequest();return null!=j0.platform&&(j1.platform=0|j0.platform),null!=j0.appName&&(j1.appName=String(j0.appName)),null!=j0.deviceToken&&(j1.deviceToken=String(j0.deviceToken)),null!=j0.pushType&&(j1.pushType=0|j0.pushType),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.platform=0,j2.appName="",j2.deviceToken="",j2.pushType=0),null!=j0.platform&&j0.hasOwnProperty("platform")&&(j2.platform=j0.platform),null!=j0.appName&&j0.hasOwnProperty("appName")&&(j2.appName=j0.appName),null!=j0.deviceToken&&j0.hasOwnProperty("deviceToken")&&(j2.deviceToken=j0.deviceToken),null!=j0.pushType&&j0.hasOwnProperty("pushType")&&(j2.pushType=j0.pushType),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ModifyGroupInfoRequest=function(){function j0(j0){if(this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.type=0,j0.prototype.value="",j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),j1.uint32(16).int32(j0.type),j1.uint32(26).string(j0.value),null!=j0.toLine&&j0.toLine.length)for(var j2=0;j2<j0.toLine.length;++j2)j1.uint32(32).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(42).fork()).ldelim(),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ModifyGroupInfoRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:j3.type=j0.int32();break;case 3:j3.value=j0.string();break;case 4:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 5:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("value"))throw j9.ProtocolError("missing required 'value'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(!j9.isInteger(j0.type))return"type: integer expected";if(!j9.isString(j0.value))return"value: string expected";if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(var j1=0;j1<j0.toLine.length;++j1)if(!j9.isInteger(j0.toLine[j1]))return"toLine: integer[] expected";}if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")){var j2=j10.MessageContent.verify(j0.notifyContent);if(j2)return"notifyContent."+j2;}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ModifyGroupInfoRequest)return j0;var j1=new j10.ModifyGroupInfoRequest();if(null!=j0.groupId&&(j1.groupId=String(j0.groupId)),null!=j0.type&&(j1.type=0|j0.type),null!=j0.value&&(j1.value=String(j0.value)),j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".ModifyGroupInfoRequest.toLine: array expected");j1.toLine=[];for(var j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".ModifyGroupInfoRequest.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.toLine=[]),j1.defaults&&(j2.groupId="",j2.type=0,j2.value="",j2.notifyContent=null),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.value&&j0.hasOwnProperty("value")&&(j2.value=j0.value),j0.toLine&&j0.toLine.length){j2.toLine=[];for(var j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.SetGroupManagerRequest=function(){function j0(j0){if(this.userId=[],this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.type=0,j0.prototype.userId=j9.emptyArray,j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),j1.uint32(16).int32(j0.type),null!=j0.userId&&j0.userId.length)for(var j2=0;j2<j0.userId.length;++j2)j1.uint32(26).string(j0.userId[j2]);if(null!=j0.toLine&&j0.toLine.length)for(j2=0;j2<j0.toLine.length;++j2)j1.uint32(32).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(42).fork()).ldelim(),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.SetGroupManagerRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:j3.type=j0.int32();break;case 3:j3.userId&&j3.userId.length||(j3.userId=[]),j3.userId.push(j0.string());break;case 4:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 5:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(!j9.isInteger(j0.type))return"type: integer expected";if(null!=j0.userId&&j0.hasOwnProperty("userId")){if(!Array.isArray(j0.userId))return"userId: array expected";for(var j1=0;j1<j0.userId.length;++j1)if(!j9.isString(j0.userId[j1]))return"userId: string[] expected";}if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(j1=0;j1<j0.toLine.length;++j1)if(!j9.isInteger(j0.toLine[j1]))return"toLine: integer[] expected";}if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")){var j2=j10.MessageContent.verify(j0.notifyContent);if(j2)return"notifyContent."+j2;}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.SetGroupManagerRequest)return j0;var j1=new j10.SetGroupManagerRequest();if(null!=j0.groupId&&(j1.groupId=String(j0.groupId)),null!=j0.type&&(j1.type=0|j0.type),j0.userId){if(!Array.isArray(j0.userId))throw TypeError(".SetGroupManagerRequest.userId: array expected");j1.userId=[];for(var j2=0;j2<j0.userId.length;++j2)j1.userId[j2]=String(j0.userId[j2]);}if(j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".SetGroupManagerRequest.toLine: array expected");j1.toLine=[];for(j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".SetGroupManagerRequest.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.userId=[],j2.toLine=[]),j1.defaults&&(j2.groupId="",j2.type=0,j2.notifyContent=null),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),j0.userId&&j0.userId.length){j2.userId=[];for(var j3=0;j3<j0.userId.length;++j3)j2.userId[j3]=j0.userId[j3];}if(j0.toLine&&j0.toLine.length){j2.toLine=[];for(j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.InfoEntry=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.type=0,j0.prototype.value="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int32(j0.type),j1.uint32(18).string(j0.value),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.InfoEntry();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.type=j0.int32();break;case 2:j3.value=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("value"))throw j9.ProtocolError("missing required 'value'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.type)?j9.isString(j0.value)?null:"value: string expected":"type: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.InfoEntry)return j0;var j1=new j10.InfoEntry();return null!=j0.type&&(j1.type=0|j0.type),null!=j0.value&&(j1.value=String(j0.value)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.type=0,j2.value=""),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.value&&j0.hasOwnProperty("value")&&(j2.value=j0.value),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ModifyMyInfoRequest=function(){function j0(j0){if(this.entry=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.entry=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.entry&&j0.entry.length)for(var j2=0;j2<j0.entry.length;++j2)j10.InfoEntry.encode(j0.entry[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ModifyMyInfoRequest();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.entry&&j3.entry.length||(j3.entry=[]),j3.entry.push(j10.InfoEntry.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.entry&&j0.hasOwnProperty("entry")){if(!Array.isArray(j0.entry))return"entry: array expected";for(var j1=0;j1<j0.entry.length;++j1){var j2=j10.InfoEntry.verify(j0.entry[j1]);if(j2)return"entry."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ModifyMyInfoRequest)return j0;var j1=new j10.ModifyMyInfoRequest();if(j0.entry){if(!Array.isArray(j0.entry))throw TypeError(".ModifyMyInfoRequest.entry: array expected");j1.entry=[];for(var j2=0;j2<j0.entry.length;++j2){if("object"!==(0,j3.default)(j0.entry[j2]))throw TypeError(".ModifyMyInfoRequest.entry: object expected");j1.entry[j2]=j10.InfoEntry.fromObject(j0.entry[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.entry=[]),j0.entry&&j0.entry.length){j2.entry=[];for(var j3=0;j3<j0.entry.length;++j3)j2.entry[j3]=j10.InfoEntry.toObject(j0.entry[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.NotifyMessage=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.type=0,j0.prototype.head=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int32(j0.type),j1.uint32(16).int64(j0.head),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.NotifyMessage();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.type=j0.int32();break;case 2:j3.head=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("head"))throw j9.ProtocolError("missing required 'head'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.type)?j9.isInteger(j0.head)||j0.head&&j9.isInteger(j0.head.low)&&j9.isInteger(j0.head.high)?null:"head: integer|Long expected":"type: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.NotifyMessage)return j0;var j1=new j10.NotifyMessage();return null!=j0.type&&(j1.type=0|j0.type),null!=j0.head&&(j9.Long?(j1.head=j9.Long.fromValue(j0.head)).unsigned=!1:"string"==typeof j0.head?j1.head=parseInt(j0.head,10):"number"==typeof j0.head?j1.head=j0.head:"object"===(0,j3.default)(j0.head)&&(j1.head=new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.type=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.head=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.head=j1.longs===String?"0":0;return null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.head&&j0.hasOwnProperty("head")&&("number"==typeof j0.head?j2.head=j1.longs===String?String(j0.head):j0.head:j2.head=j1.longs===String?j9.Long.prototype.toString.call(j0.head):j1.longs===Number?new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber():j0.head),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.NotifyGroupMessage=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.head=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.target="",j0.prototype.line=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.head),j1.uint32(18).string(j0.target),j1.uint32(24).int32(j0.line),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.NotifyGroupMessage();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.head=j0.int64();break;case 2:j3.target=j0.string();break;case 3:j3.line=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("head"))throw j9.ProtocolError("missing required 'head'",{instance:j3});if(!j3.hasOwnProperty("target"))throw j9.ProtocolError("missing required 'target'",{instance:j3});if(!j3.hasOwnProperty("line"))throw j9.ProtocolError("missing required 'line'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.head)||j0.head&&j9.isInteger(j0.head.low)&&j9.isInteger(j0.head.high)?j9.isString(j0.target)?j9.isInteger(j0.line)?null:"line: integer expected":"target: string expected":"head: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.NotifyGroupMessage)return j0;var j1=new j10.NotifyGroupMessage();return null!=j0.head&&(j9.Long?(j1.head=j9.Long.fromValue(j0.head)).unsigned=!1:"string"==typeof j0.head?j1.head=parseInt(j0.head,10):"number"==typeof j0.head?j1.head=j0.head:"object"===(0,j3.default)(j0.head)&&(j1.head=new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber())),null!=j0.target&&(j1.target=String(j0.target)),null!=j0.line&&(j1.line=0|j0.line),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.head=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.head=j1.longs===String?"0":0;j2.target="",j2.line=0;}return null!=j0.head&&j0.hasOwnProperty("head")&&("number"==typeof j0.head?j2.head=j1.longs===String?String(j0.head):j0.head:j2.head=j1.longs===String?j9.Long.prototype.toString.call(j0.head):j1.longs===Number?new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber():j0.head),null!=j0.target&&j0.hasOwnProperty("target")&&(j2.target=j0.target),null!=j0.line&&j0.hasOwnProperty("line")&&(j2.line=j0.line),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullMessageRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.id=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.type=0,j0.prototype.delay=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.id),j1.uint32(16).int32(j0.type),null!=j0.delay&&j0.hasOwnProperty("delay")&&j1.uint32(24).int64(j0.delay),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullMessageRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.id=j0.int64();break;case 2:j3.type=j0.int32();break;case 3:j3.delay=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("id"))throw j9.ProtocolError("missing required 'id'",{instance:j3});if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.id)||j0.id&&j9.isInteger(j0.id.low)&&j9.isInteger(j0.id.high)?j9.isInteger(j0.type)?null!=j0.delay&&j0.hasOwnProperty("delay")&&!(j9.isInteger(j0.delay)||j0.delay&&j9.isInteger(j0.delay.low)&&j9.isInteger(j0.delay.high))?"delay: integer|Long expected":null:"type: integer expected":"id: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PullMessageRequest)return j0;var j1=new j10.PullMessageRequest();return null!=j0.id&&(j9.Long?(j1.id=j9.Long.fromValue(j0.id)).unsigned=!1:"string"==typeof j0.id?j1.id=parseInt(j0.id,10):"number"==typeof j0.id?j1.id=j0.id:"object"===(0,j3.default)(j0.id)&&(j1.id=new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber())),null!=j0.type&&(j1.type=0|j0.type),null!=j0.delay&&(j9.Long?(j1.delay=j9.Long.fromValue(j0.delay)).unsigned=!1:"string"==typeof j0.delay?j1.delay=parseInt(j0.delay,10):"number"==typeof j0.delay?j1.delay=j0.delay:"object"===(0,j3.default)(j0.delay)&&(j1.delay=new j9.LongBits(j0.delay.low>>>0,j0.delay.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.id=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.id=j1.longs===String?"0":0;if(j2.type=0,j9.Long){j3=new j9.Long(0,0,!1);j2.delay=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.delay=j1.longs===String?"0":0;}return null!=j0.id&&j0.hasOwnProperty("id")&&("number"==typeof j0.id?j2.id=j1.longs===String?String(j0.id):j0.id:j2.id=j1.longs===String?j9.Long.prototype.toString.call(j0.id):j1.longs===Number?new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber():j0.id),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.delay&&j0.hasOwnProperty("delay")&&("number"==typeof j0.delay?j2.delay=j1.longs===String?String(j0.delay):j0.delay:j2.delay=j1.longs===String?j9.Long.prototype.toString.call(j0.delay):j1.longs===Number?new j9.LongBits(j0.delay.low>>>0,j0.delay.high>>>0).toNumber():j0.delay),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullMessageResult=function(){function j0(j0){if(this.message=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.message=j9.emptyArray,j0.prototype.current=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.head=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.message&&j0.message.length)for(var j2=0;j2<j0.message.length;++j2)j10.Message.encode(j0.message[j2],j1.uint32(10).fork()).ldelim();return j1.uint32(16).int64(j0.current),j1.uint32(24).int64(j0.head),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullMessageResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.message&&j3.message.length||(j3.message=[]),j3.message.push(j10.Message.decode(j0,j0.uint32()));break;case 2:j3.current=j0.int64();break;case 3:j3.head=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("current"))throw j9.ProtocolError("missing required 'current'",{instance:j3});if(!j3.hasOwnProperty("head"))throw j9.ProtocolError("missing required 'head'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.message&&j0.hasOwnProperty("message")){if(!Array.isArray(j0.message))return"message: array expected";for(var j1=0;j1<j0.message.length;++j1){var j2=j10.Message.verify(j0.message[j1]);if(j2)return"message."+j2;}}return j9.isInteger(j0.current)||j0.current&&j9.isInteger(j0.current.low)&&j9.isInteger(j0.current.high)?j9.isInteger(j0.head)||j0.head&&j9.isInteger(j0.head.low)&&j9.isInteger(j0.head.high)?null:"head: integer|Long expected":"current: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PullMessageResult)return j0;var j1=new j10.PullMessageResult();if(j0.message){if(!Array.isArray(j0.message))throw TypeError(".PullMessageResult.message: array expected");j1.message=[];for(var j2=0;j2<j0.message.length;++j2){if("object"!==(0,j3.default)(j0.message[j2]))throw TypeError(".PullMessageResult.message: object expected");j1.message[j2]=j10.Message.fromObject(j0.message[j2]);}}return null!=j0.current&&(j9.Long?(j1.current=j9.Long.fromValue(j0.current)).unsigned=!1:"string"==typeof j0.current?j1.current=parseInt(j0.current,10):"number"==typeof j0.current?j1.current=j0.current:"object"===(0,j3.default)(j0.current)&&(j1.current=new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber())),null!=j0.head&&(j9.Long?(j1.head=j9.Long.fromValue(j0.head)).unsigned=!1:"string"==typeof j0.head?j1.head=parseInt(j0.head,10):"number"==typeof j0.head?j1.head=j0.head:"object"===(0,j3.default)(j0.head)&&(j1.head=new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.message=[]),j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.current=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.current=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.head=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.head=j1.longs===String?"0":0;}if(j0.message&&j0.message.length){j2.message=[];for(var j4=0;j4<j0.message.length;++j4)j2.message[j4]=j10.Message.toObject(j0.message[j4],j1);}return null!=j0.current&&j0.hasOwnProperty("current")&&("number"==typeof j0.current?j2.current=j1.longs===String?String(j0.current):j0.current:j2.current=j1.longs===String?j9.Long.prototype.toString.call(j0.current):j1.longs===Number?new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber():j0.current),null!=j0.head&&j0.hasOwnProperty("head")&&("number"==typeof j0.head?j2.head=j1.longs===String?String(j0.head):j0.head:j2.head=j1.longs===String?j9.Long.prototype.toString.call(j0.head):j1.longs===Number?new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber():j0.head),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullReadResult=function(){function j0(j0){if(this.read=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.read=j9.emptyArray,j0.prototype.current=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.head=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.read&&j0.read.length)for(var j2=0;j2<j0.read.length;++j2)j10.ConvRead.encode(j0.read[j2],j1.uint32(10).fork()).ldelim();return j1.uint32(16).int64(j0.current),j1.uint32(24).int64(j0.head),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullReadResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.read&&j3.read.length||(j3.read=[]),j3.read.push(j10.ConvRead.decode(j0,j0.uint32()));break;case 2:j3.current=j0.int64();break;case 3:j3.head=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("current"))throw j9.ProtocolError("missing required 'current'",{instance:j3});if(!j3.hasOwnProperty("head"))throw j9.ProtocolError("missing required 'head'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.read&&j0.hasOwnProperty("read")){if(!Array.isArray(j0.read))return"read: array expected";for(var j1=0;j1<j0.read.length;++j1){var j2=j10.ConvRead.verify(j0.read[j1]);if(j2)return"read."+j2;}}return j9.isInteger(j0.current)||j0.current&&j9.isInteger(j0.current.low)&&j9.isInteger(j0.current.high)?j9.isInteger(j0.head)||j0.head&&j9.isInteger(j0.head.low)&&j9.isInteger(j0.head.high)?null:"head: integer|Long expected":"current: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PullReadResult)return j0;var j1=new j10.PullReadResult();if(j0.read){if(!Array.isArray(j0.read))throw TypeError(".PullReadResult.read: array expected");j1.read=[];for(var j2=0;j2<j0.read.length;++j2){if("object"!==(0,j3.default)(j0.read[j2]))throw TypeError(".PullReadResult.read: object expected");j1.read[j2]=j10.ConvRead.fromObject(j0.read[j2]);}}return null!=j0.current&&(j9.Long?(j1.current=j9.Long.fromValue(j0.current)).unsigned=!1:"string"==typeof j0.current?j1.current=parseInt(j0.current,10):"number"==typeof j0.current?j1.current=j0.current:"object"===(0,j3.default)(j0.current)&&(j1.current=new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber())),null!=j0.head&&(j9.Long?(j1.head=j9.Long.fromValue(j0.head)).unsigned=!1:"string"==typeof j0.head?j1.head=parseInt(j0.head,10):"number"==typeof j0.head?j1.head=j0.head:"object"===(0,j3.default)(j0.head)&&(j1.head=new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.read=[]),j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.current=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.current=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.head=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.head=j1.longs===String?"0":0;}if(j0.read&&j0.read.length){j2.read=[];for(var j4=0;j4<j0.read.length;++j4)j2.read[j4]=j10.ConvRead.toObject(j0.read[j4],j1);}return null!=j0.current&&j0.hasOwnProperty("current")&&("number"==typeof j0.current?j2.current=j1.longs===String?String(j0.current):j0.current:j2.current=j1.longs===String?j9.Long.prototype.toString.call(j0.current):j1.longs===Number?new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber():j0.current),null!=j0.head&&j0.hasOwnProperty("head")&&("number"==typeof j0.head?j2.head=j1.longs===String?String(j0.head):j0.head:j2.head=j1.longs===String?j9.Long.prototype.toString.call(j0.head):j1.longs===Number?new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber():j0.head),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullDeliveryResult=function(){function j0(j0){if(this.delivery=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.delivery=j9.emptyArray,j0.prototype.current=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.head=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.delivery&&j0.delivery.length)for(var j2=0;j2<j0.delivery.length;++j2)j10.Delivery.encode(j0.delivery[j2],j1.uint32(10).fork()).ldelim();return j1.uint32(16).int64(j0.current),j1.uint32(24).int64(j0.head),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullDeliveryResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.delivery&&j3.delivery.length||(j3.delivery=[]),j3.delivery.push(j10.Delivery.decode(j0,j0.uint32()));break;case 2:j3.current=j0.int64();break;case 3:j3.head=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("current"))throw j9.ProtocolError("missing required 'current'",{instance:j3});if(!j3.hasOwnProperty("head"))throw j9.ProtocolError("missing required 'head'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.delivery&&j0.hasOwnProperty("delivery")){if(!Array.isArray(j0.delivery))return"delivery: array expected";for(var j1=0;j1<j0.delivery.length;++j1){var j2=j10.Delivery.verify(j0.delivery[j1]);if(j2)return"delivery."+j2;}}return j9.isInteger(j0.current)||j0.current&&j9.isInteger(j0.current.low)&&j9.isInteger(j0.current.high)?j9.isInteger(j0.head)||j0.head&&j9.isInteger(j0.head.low)&&j9.isInteger(j0.head.high)?null:"head: integer|Long expected":"current: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PullDeliveryResult)return j0;var j1=new j10.PullDeliveryResult();if(j0.delivery){if(!Array.isArray(j0.delivery))throw TypeError(".PullDeliveryResult.delivery: array expected");j1.delivery=[];for(var j2=0;j2<j0.delivery.length;++j2){if("object"!==(0,j3.default)(j0.delivery[j2]))throw TypeError(".PullDeliveryResult.delivery: object expected");j1.delivery[j2]=j10.Delivery.fromObject(j0.delivery[j2]);}}return null!=j0.current&&(j9.Long?(j1.current=j9.Long.fromValue(j0.current)).unsigned=!1:"string"==typeof j0.current?j1.current=parseInt(j0.current,10):"number"==typeof j0.current?j1.current=j0.current:"object"===(0,j3.default)(j0.current)&&(j1.current=new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber())),null!=j0.head&&(j9.Long?(j1.head=j9.Long.fromValue(j0.head)).unsigned=!1:"string"==typeof j0.head?j1.head=parseInt(j0.head,10):"number"==typeof j0.head?j1.head=j0.head:"object"===(0,j3.default)(j0.head)&&(j1.head=new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.delivery=[]),j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.current=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.current=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.head=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.head=j1.longs===String?"0":0;}if(j0.delivery&&j0.delivery.length){j2.delivery=[];for(var j4=0;j4<j0.delivery.length;++j4)j2.delivery[j4]=j10.Delivery.toObject(j0.delivery[j4],j1);}return null!=j0.current&&j0.hasOwnProperty("current")&&("number"==typeof j0.current?j2.current=j1.longs===String?String(j0.current):j0.current:j2.current=j1.longs===String?j9.Long.prototype.toString.call(j0.current):j1.longs===Number?new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber():j0.current),null!=j0.head&&j0.hasOwnProperty("head")&&("number"==typeof j0.head?j2.head=j1.longs===String?String(j0.head):j0.head:j2.head=j1.longs===String?j9.Long.prototype.toString.call(j0.head):j1.longs===Number?new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber():j0.head),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GroupConv=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.line=0,j0.prototype.groupId="",j0.prototype.msgHead=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int32(j0.line),j1.uint32(18).string(j0.groupId),null!=j0.msgHead&&j0.hasOwnProperty("msgHead")&&j1.uint32(24).int64(j0.msgHead),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GroupConv();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.line=j0.int32();break;case 2:j3.groupId=j0.string();break;case 3:j3.msgHead=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("line"))throw j9.ProtocolError("missing required 'line'",{instance:j3});if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.line)?j9.isString(j0.groupId)?null!=j0.msgHead&&j0.hasOwnProperty("msgHead")&&!(j9.isInteger(j0.msgHead)||j0.msgHead&&j9.isInteger(j0.msgHead.low)&&j9.isInteger(j0.msgHead.high))?"msgHead: integer|Long expected":null:"groupId: string expected":"line: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GroupConv)return j0;var j1=new j10.GroupConv();return null!=j0.line&&(j1.line=0|j0.line),null!=j0.groupId&&(j1.groupId=String(j0.groupId)),null!=j0.msgHead&&(j9.Long?(j1.msgHead=j9.Long.fromValue(j0.msgHead)).unsigned=!1:"string"==typeof j0.msgHead?j1.msgHead=parseInt(j0.msgHead,10):"number"==typeof j0.msgHead?j1.msgHead=j0.msgHead:"object"===(0,j3.default)(j0.msgHead)&&(j1.msgHead=new j9.LongBits(j0.msgHead.low>>>0,j0.msgHead.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.line=0,j2.groupId="",j9.Long){var j3=new j9.Long(0,0,!1);j2.msgHead=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.msgHead=j1.longs===String?"0":0;return null!=j0.line&&j0.hasOwnProperty("line")&&(j2.line=j0.line),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),null!=j0.msgHead&&j0.hasOwnProperty("msgHead")&&("number"==typeof j0.msgHead?j2.msgHead=j1.longs===String?String(j0.msgHead):j0.msgHead:j2.msgHead=j1.longs===String?j9.Long.prototype.toString.call(j0.msgHead):j1.longs===Number?new j9.LongBits(j0.msgHead.low>>>0,j0.msgHead.high>>>0).toNumber():j0.msgHead),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullGroupConvRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.id=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.target="",j0.prototype.line=0,j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.id),null!=j0.target&&j0.hasOwnProperty("target")&&j1.uint32(18).string(j0.target),null!=j0.line&&j0.hasOwnProperty("line")&&j1.uint32(24).int32(j0.line),null!=j0.messageId&&j0.hasOwnProperty("messageId")&&j1.uint32(32).int64(j0.messageId),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullGroupConvRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.id=j0.int64();break;case 2:j3.target=j0.string();break;case 3:j3.line=j0.int32();break;case 4:j3.messageId=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("id"))throw j9.ProtocolError("missing required 'id'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.id)||j0.id&&j9.isInteger(j0.id.low)&&j9.isInteger(j0.id.high)?null!=j0.target&&j0.hasOwnProperty("target")&&!j9.isString(j0.target)?"target: string expected":null!=j0.line&&j0.hasOwnProperty("line")&&!j9.isInteger(j0.line)?"line: integer expected":null!=j0.messageId&&j0.hasOwnProperty("messageId")&&!(j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high))?"messageId: integer|Long expected":null:"id: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PullGroupConvRequest)return j0;var j1=new j10.PullGroupConvRequest();return null!=j0.id&&(j9.Long?(j1.id=j9.Long.fromValue(j0.id)).unsigned=!1:"string"==typeof j0.id?j1.id=parseInt(j0.id,10):"number"==typeof j0.id?j1.id=j0.id:"object"===(0,j3.default)(j0.id)&&(j1.id=new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber())),null!=j0.target&&(j1.target=String(j0.target)),null!=j0.line&&(j1.line=0|j0.line),null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.id=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.id=j1.longs===String?"0":0;if(j2.target="",j2.line=0,j9.Long){j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;}return null!=j0.id&&j0.hasOwnProperty("id")&&("number"==typeof j0.id?j2.id=j1.longs===String?String(j0.id):j0.id:j2.id=j1.longs===String?j9.Long.prototype.toString.call(j0.id):j1.longs===Number?new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber():j0.id),null!=j0.target&&j0.hasOwnProperty("target")&&(j2.target=j0.target),null!=j0.line&&j0.hasOwnProperty("line")&&(j2.line=j0.line),null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullGroupConvResult=function(){function j0(j0){if(this.conv=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.conv=j9.emptyArray,j0.prototype.current=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.head=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.groupMessage=null,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.conv&&j0.conv.length)for(var j2=0;j2<j0.conv.length;++j2)j10.GroupConv.encode(j0.conv[j2],j1.uint32(10).fork()).ldelim();return j1.uint32(16).int64(j0.current),j1.uint32(24).int64(j0.head),null!=j0.groupMessage&&j0.hasOwnProperty("groupMessage")&&j10.PullGroupMessageResult.encode(j0.groupMessage,j1.uint32(34).fork()).ldelim(),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullGroupConvResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.conv&&j3.conv.length||(j3.conv=[]),j3.conv.push(j10.GroupConv.decode(j0,j0.uint32()));break;case 2:j3.current=j0.int64();break;case 3:j3.head=j0.int64();break;case 4:j3.groupMessage=j10.PullGroupMessageResult.decode(j0,j0.uint32());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("current"))throw j9.ProtocolError("missing required 'current'",{instance:j3});if(!j3.hasOwnProperty("head"))throw j9.ProtocolError("missing required 'head'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.conv&&j0.hasOwnProperty("conv")){if(!Array.isArray(j0.conv))return"conv: array expected";for(var j1=0;j1<j0.conv.length;++j1){if(j2=j10.GroupConv.verify(j0.conv[j1]))return"conv."+j2;}}if(!(j9.isInteger(j0.current)||j0.current&&j9.isInteger(j0.current.low)&&j9.isInteger(j0.current.high)))return"current: integer|Long expected";if(!(j9.isInteger(j0.head)||j0.head&&j9.isInteger(j0.head.low)&&j9.isInteger(j0.head.high)))return"head: integer|Long expected";var j2;if(null!=j0.groupMessage&&j0.hasOwnProperty("groupMessage")&&(j2=j10.PullGroupMessageResult.verify(j0.groupMessage)))return"groupMessage."+j2;return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PullGroupConvResult)return j0;var j1=new j10.PullGroupConvResult();if(j0.conv){if(!Array.isArray(j0.conv))throw TypeError(".PullGroupConvResult.conv: array expected");j1.conv=[];for(var j2=0;j2<j0.conv.length;++j2){if("object"!==(0,j3.default)(j0.conv[j2]))throw TypeError(".PullGroupConvResult.conv: object expected");j1.conv[j2]=j10.GroupConv.fromObject(j0.conv[j2]);}}if(null!=j0.current&&(j9.Long?(j1.current=j9.Long.fromValue(j0.current)).unsigned=!1:"string"==typeof j0.current?j1.current=parseInt(j0.current,10):"number"==typeof j0.current?j1.current=j0.current:"object"===(0,j3.default)(j0.current)&&(j1.current=new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber())),null!=j0.head&&(j9.Long?(j1.head=j9.Long.fromValue(j0.head)).unsigned=!1:"string"==typeof j0.head?j1.head=parseInt(j0.head,10):"number"==typeof j0.head?j1.head=j0.head:"object"===(0,j3.default)(j0.head)&&(j1.head=new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber())),null!=j0.groupMessage){if("object"!==(0,j3.default)(j0.groupMessage))throw TypeError(".PullGroupConvResult.groupMessage: object expected");j1.groupMessage=j10.PullGroupMessageResult.fromObject(j0.groupMessage);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.conv=[]),j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.current=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.current=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.head=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.head=j1.longs===String?"0":0;j2.groupMessage=null;}if(j0.conv&&j0.conv.length){j2.conv=[];for(var j4=0;j4<j0.conv.length;++j4)j2.conv[j4]=j10.GroupConv.toObject(j0.conv[j4],j1);}return null!=j0.current&&j0.hasOwnProperty("current")&&("number"==typeof j0.current?j2.current=j1.longs===String?String(j0.current):j0.current:j2.current=j1.longs===String?j9.Long.prototype.toString.call(j0.current):j1.longs===Number?new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber():j0.current),null!=j0.head&&j0.hasOwnProperty("head")&&("number"==typeof j0.head?j2.head=j1.longs===String?String(j0.head):j0.head:j2.head=j1.longs===String?j9.Long.prototype.toString.call(j0.head):j1.longs===Number?new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber():j0.head),null!=j0.groupMessage&&j0.hasOwnProperty("groupMessage")&&(j2.groupMessage=j10.PullGroupMessageResult.toObject(j0.groupMessage,j1)),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullGroupMessageRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.line=0,j0.prototype.id=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),j1.uint32(16).int32(j0.line),j1.uint32(24).int64(j0.id),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullGroupMessageRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:j3.line=j0.int32();break;case 3:j3.id=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});if(!j3.hasOwnProperty("line"))throw j9.ProtocolError("missing required 'line'",{instance:j3});if(!j3.hasOwnProperty("id"))throw j9.ProtocolError("missing required 'id'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.groupId)?j9.isInteger(j0.line)?j9.isInteger(j0.id)||j0.id&&j9.isInteger(j0.id.low)&&j9.isInteger(j0.id.high)?null:"id: integer|Long expected":"line: integer expected":"groupId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PullGroupMessageRequest)return j0;var j1=new j10.PullGroupMessageRequest();return null!=j0.groupId&&(j1.groupId=String(j0.groupId)),null!=j0.line&&(j1.line=0|j0.line),null!=j0.id&&(j9.Long?(j1.id=j9.Long.fromValue(j0.id)).unsigned=!1:"string"==typeof j0.id?j1.id=parseInt(j0.id,10):"number"==typeof j0.id?j1.id=j0.id:"object"===(0,j3.default)(j0.id)&&(j1.id=new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.groupId="",j2.line=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.id=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.id=j1.longs===String?"0":0;return null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),null!=j0.line&&j0.hasOwnProperty("line")&&(j2.line=j0.line),null!=j0.id&&j0.hasOwnProperty("id")&&("number"==typeof j0.id?j2.id=j1.longs===String?String(j0.id):j0.id:j2.id=j1.longs===String?j9.Long.prototype.toString.call(j0.id):j1.longs===Number?new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber():j0.id),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullGroupMessageRequests=function(){function j0(j0){if(this.request=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.request=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.request&&j0.request.length)for(var j2=0;j2<j0.request.length;++j2)j10.PullGroupMessageRequest.encode(j0.request[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullGroupMessageRequests();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.request&&j3.request.length||(j3.request=[]),j3.request.push(j10.PullGroupMessageRequest.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.request&&j0.hasOwnProperty("request")){if(!Array.isArray(j0.request))return"request: array expected";for(var j1=0;j1<j0.request.length;++j1){var j2=j10.PullGroupMessageRequest.verify(j0.request[j1]);if(j2)return"request."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PullGroupMessageRequests)return j0;var j1=new j10.PullGroupMessageRequests();if(j0.request){if(!Array.isArray(j0.request))throw TypeError(".PullGroupMessageRequests.request: array expected");j1.request=[];for(var j2=0;j2<j0.request.length;++j2){if("object"!==(0,j3.default)(j0.request[j2]))throw TypeError(".PullGroupMessageRequests.request: object expected");j1.request[j2]=j10.PullGroupMessageRequest.fromObject(j0.request[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.request=[]),j0.request&&j0.request.length){j2.request=[];for(var j3=0;j3<j0.request.length;++j3)j2.request[j3]=j10.PullGroupMessageRequest.toObject(j0.request[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GroupMessage=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.fromUser="",j0.prototype.flag=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.messageId),j1.uint32(18).string(j0.fromUser),j1.uint32(24).int32(j0.flag),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GroupMessage();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.messageId=j0.int64();break;case 2:j3.fromUser=j0.string();break;case 3:j3.flag=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("messageId"))throw j9.ProtocolError("missing required 'messageId'",{instance:j3});if(!j3.hasOwnProperty("fromUser"))throw j9.ProtocolError("missing required 'fromUser'",{instance:j3});if(!j3.hasOwnProperty("flag"))throw j9.ProtocolError("missing required 'flag'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high)?j9.isString(j0.fromUser)?j9.isInteger(j0.flag)?null:"flag: integer expected":"fromUser: string expected":"messageId: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GroupMessage)return j0;var j1=new j10.GroupMessage();return null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),null!=j0.fromUser&&(j1.fromUser=String(j0.fromUser)),null!=j0.flag&&(j1.flag=0|j0.flag),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;j2.fromUser="",j2.flag=0;}return null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),null!=j0.fromUser&&j0.hasOwnProperty("fromUser")&&(j2.fromUser=j0.fromUser),null!=j0.flag&&j0.hasOwnProperty("flag")&&(j2.flag=j0.flag),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullGroupMessageResult=function(){function j0(j0){if(this.message=[],this.msg=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.message=j9.emptyArray,j0.prototype.current=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.head=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.groupId="",j0.prototype.line=0,j0.prototype.msg=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.message&&j0.message.length)for(var j2=0;j2<j0.message.length;++j2)j10.GroupMessage.encode(j0.message[j2],j1.uint32(10).fork()).ldelim();if(j1.uint32(16).int64(j0.current),j1.uint32(24).int64(j0.head),j1.uint32(34).string(j0.groupId),j1.uint32(40).int32(j0.line),null!=j0.msg&&j0.msg.length)for(j2=0;j2<j0.msg.length;++j2)j10.Message.encode(j0.msg[j2],j1.uint32(50).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullGroupMessageResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.message&&j3.message.length||(j3.message=[]),j3.message.push(j10.GroupMessage.decode(j0,j0.uint32()));break;case 2:j3.current=j0.int64();break;case 3:j3.head=j0.int64();break;case 4:j3.groupId=j0.string();break;case 5:j3.line=j0.int32();break;case 6:j3.msg&&j3.msg.length||(j3.msg=[]),j3.msg.push(j10.Message.decode(j0,j0.uint32()));break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("current"))throw j9.ProtocolError("missing required 'current'",{instance:j3});if(!j3.hasOwnProperty("head"))throw j9.ProtocolError("missing required 'head'",{instance:j3});if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});if(!j3.hasOwnProperty("line"))throw j9.ProtocolError("missing required 'line'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.message&&j0.hasOwnProperty("message")){if(!Array.isArray(j0.message))return"message: array expected";for(var j1=0;j1<j0.message.length;++j1){if(j2=j10.GroupMessage.verify(j0.message[j1]))return"message."+j2;}}if(!(j9.isInteger(j0.current)||j0.current&&j9.isInteger(j0.current.low)&&j9.isInteger(j0.current.high)))return"current: integer|Long expected";if(!(j9.isInteger(j0.head)||j0.head&&j9.isInteger(j0.head.low)&&j9.isInteger(j0.head.high)))return"head: integer|Long expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(!j9.isInteger(j0.line))return"line: integer expected";if(null!=j0.msg&&j0.hasOwnProperty("msg")){if(!Array.isArray(j0.msg))return"msg: array expected";for(j1=0;j1<j0.msg.length;++j1){var j2;if(j2=j10.Message.verify(j0.msg[j1]))return"msg."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PullGroupMessageResult)return j0;var j1=new j10.PullGroupMessageResult();if(j0.message){if(!Array.isArray(j0.message))throw TypeError(".PullGroupMessageResult.message: array expected");j1.message=[];for(var j2=0;j2<j0.message.length;++j2){if("object"!==(0,j3.default)(j0.message[j2]))throw TypeError(".PullGroupMessageResult.message: object expected");j1.message[j2]=j10.GroupMessage.fromObject(j0.message[j2]);}}if(null!=j0.current&&(j9.Long?(j1.current=j9.Long.fromValue(j0.current)).unsigned=!1:"string"==typeof j0.current?j1.current=parseInt(j0.current,10):"number"==typeof j0.current?j1.current=j0.current:"object"===(0,j3.default)(j0.current)&&(j1.current=new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber())),null!=j0.head&&(j9.Long?(j1.head=j9.Long.fromValue(j0.head)).unsigned=!1:"string"==typeof j0.head?j1.head=parseInt(j0.head,10):"number"==typeof j0.head?j1.head=j0.head:"object"===(0,j3.default)(j0.head)&&(j1.head=new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber())),null!=j0.groupId&&(j1.groupId=String(j0.groupId)),null!=j0.line&&(j1.line=0|j0.line),j0.msg){if(!Array.isArray(j0.msg))throw TypeError(".PullGroupMessageResult.msg: array expected");j1.msg=[];for(j2=0;j2<j0.msg.length;++j2){if("object"!==(0,j3.default)(j0.msg[j2]))throw TypeError(".PullGroupMessageResult.msg: object expected");j1.msg[j2]=j10.Message.fromObject(j0.msg[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.message=[],j2.msg=[]),j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.current=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.current=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.head=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.head=j1.longs===String?"0":0;j2.groupId="",j2.line=0;}if(j0.message&&j0.message.length){j2.message=[];for(var j4=0;j4<j0.message.length;++j4)j2.message[j4]=j10.GroupMessage.toObject(j0.message[j4],j1);}if(null!=j0.current&&j0.hasOwnProperty("current")&&("number"==typeof j0.current?j2.current=j1.longs===String?String(j0.current):j0.current:j2.current=j1.longs===String?j9.Long.prototype.toString.call(j0.current):j1.longs===Number?new j9.LongBits(j0.current.low>>>0,j0.current.high>>>0).toNumber():j0.current),null!=j0.head&&j0.hasOwnProperty("head")&&("number"==typeof j0.head?j2.head=j1.longs===String?String(j0.head):j0.head:j2.head=j1.longs===String?j9.Long.prototype.toString.call(j0.head):j1.longs===Number?new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber():j0.head),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),null!=j0.line&&j0.hasOwnProperty("line")&&(j2.line=j0.line),j0.msg&&j0.msg.length){j2.msg=[];for(j4=0;j4<j0.msg.length;++j4)j2.msg[j4]=j10.Message.toObject(j0.msg[j4],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullGroupMessageResults=function(){function j0(j0){if(this.result=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.result=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.result&&j0.result.length)for(var j2=0;j2<j0.result.length;++j2)j10.PullGroupMessageResult.encode(j0.result[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullGroupMessageResults();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.result&&j3.result.length||(j3.result=[]),j3.result.push(j10.PullGroupMessageResult.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.result&&j0.hasOwnProperty("result")){if(!Array.isArray(j0.result))return"result: array expected";for(var j1=0;j1<j0.result.length;++j1){var j2=j10.PullGroupMessageResult.verify(j0.result[j1]);if(j2)return"result."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PullGroupMessageResults)return j0;var j1=new j10.PullGroupMessageResults();if(j0.result){if(!Array.isArray(j0.result))throw TypeError(".PullGroupMessageResults.result: array expected");j1.result=[];for(var j2=0;j2<j0.result.length;++j2){if("object"!==(0,j3.default)(j0.result[j2]))throw TypeError(".PullGroupMessageResults.result: object expected");j1.result[j2]=j10.PullGroupMessageResult.fromObject(j0.result[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.result=[]),j0.result&&j0.result.length){j2.result=[];for(var j3=0;j3<j0.result.length;++j3)j2.result[j3]=j10.PullGroupMessageResult.toObject(j0.result[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.MessageList=function(){function j0(j0){if(this.message=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.message=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.message&&j0.message.length)for(var j2=0;j2<j0.message.length;++j2)j10.Message.encode(j0.message[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.MessageList();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.message&&j3.message.length||(j3.message=[]),j3.message.push(j10.Message.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.message&&j0.hasOwnProperty("message")){if(!Array.isArray(j0.message))return"message: array expected";for(var j1=0;j1<j0.message.length;++j1){var j2=j10.Message.verify(j0.message[j1]);if(j2)return"message."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.MessageList)return j0;var j1=new j10.MessageList();if(j0.message){if(!Array.isArray(j0.message))throw TypeError(".MessageList.message: array expected");j1.message=[];for(var j2=0;j2<j0.message.length;++j2){if("object"!==(0,j3.default)(j0.message[j2]))throw TypeError(".MessageList.message: object expected");j1.message[j2]=j10.Message.fromObject(j0.message[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.message=[]),j0.message&&j0.message.length){j2.message=[];for(var j3=0;j3<j0.message.length;++j3)j2.message[j3]=j10.Message.toObject(j0.message[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullGroupInfoResult=function(){function j0(j0){if(this.info=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.info=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.info&&j0.info.length)for(var j2=0;j2<j0.info.length;++j2)j10.GroupInfo.encode(j0.info[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullGroupInfoResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.info&&j3.info.length||(j3.info=[]),j3.info.push(j10.GroupInfo.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.info&&j0.hasOwnProperty("info")){if(!Array.isArray(j0.info))return"info: array expected";for(var j1=0;j1<j0.info.length;++j1){var j2=j10.GroupInfo.verify(j0.info[j1]);if(j2)return"info."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PullGroupInfoResult)return j0;var j1=new j10.PullGroupInfoResult();if(j0.info){if(!Array.isArray(j0.info))throw TypeError(".PullGroupInfoResult.info: array expected");j1.info=[];for(var j2=0;j2<j0.info.length;++j2){if("object"!==(0,j3.default)(j0.info[j2]))throw TypeError(".PullGroupInfoResult.info: object expected");j1.info[j2]=j10.GroupInfo.fromObject(j0.info[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.info=[]),j0.info&&j0.info.length){j2.info=[];for(var j3=0;j3<j0.info.length;++j3)j2.info[j3]=j10.GroupInfo.toObject(j0.info[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullGroupMemberRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.target="",j0.prototype.head=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.sum=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.target),j1.uint32(16).int64(j0.head),null!=j0.sum&&j0.hasOwnProperty("sum")&&j1.uint32(24).int64(j0.sum),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullGroupMemberRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.target=j0.string();break;case 2:j3.head=j0.int64();break;case 3:j3.sum=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("target"))throw j9.ProtocolError("missing required 'target'",{instance:j3});if(!j3.hasOwnProperty("head"))throw j9.ProtocolError("missing required 'head'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.target)?j9.isInteger(j0.head)||j0.head&&j9.isInteger(j0.head.low)&&j9.isInteger(j0.head.high)?null!=j0.sum&&j0.hasOwnProperty("sum")&&!(j9.isInteger(j0.sum)||j0.sum&&j9.isInteger(j0.sum.low)&&j9.isInteger(j0.sum.high))?"sum: integer|Long expected":null:"head: integer|Long expected":"target: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PullGroupMemberRequest)return j0;var j1=new j10.PullGroupMemberRequest();return null!=j0.target&&(j1.target=String(j0.target)),null!=j0.head&&(j9.Long?(j1.head=j9.Long.fromValue(j0.head)).unsigned=!1:"string"==typeof j0.head?j1.head=parseInt(j0.head,10):"number"==typeof j0.head?j1.head=j0.head:"object"===(0,j3.default)(j0.head)&&(j1.head=new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber())),null!=j0.sum&&(j9.Long?(j1.sum=j9.Long.fromValue(j0.sum)).unsigned=!1:"string"==typeof j0.sum?j1.sum=parseInt(j0.sum,10):"number"==typeof j0.sum?j1.sum=j0.sum:"object"===(0,j3.default)(j0.sum)&&(j1.sum=new j9.LongBits(j0.sum.low>>>0,j0.sum.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.target="",j9.Long){var j3=new j9.Long(0,0,!1);j2.head=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.head=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.sum=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.sum=j1.longs===String?"0":0;}return null!=j0.target&&j0.hasOwnProperty("target")&&(j2.target=j0.target),null!=j0.head&&j0.hasOwnProperty("head")&&("number"==typeof j0.head?j2.head=j1.longs===String?String(j0.head):j0.head:j2.head=j1.longs===String?j9.Long.prototype.toString.call(j0.head):j1.longs===Number?new j9.LongBits(j0.head.low>>>0,j0.head.high>>>0).toNumber():j0.head),null!=j0.sum&&j0.hasOwnProperty("sum")&&("number"==typeof j0.sum?j2.sum=j1.longs===String?String(j0.sum):j0.sum:j2.sum=j1.longs===String?j9.Long.prototype.toString.call(j0.sum):j1.longs===Number?new j9.LongBits(j0.sum.low>>>0,j0.sum.high>>>0).toNumber():j0.sum),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullGroupMemberResult=function(){function j0(j0){if(this.member=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.member=j9.emptyArray,j0.prototype.full=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.member&&j0.member.length)for(var j2=0;j2<j0.member.length;++j2)j10.GroupMember.encode(j0.member[j2],j1.uint32(10).fork()).ldelim();return null!=j0.full&&j0.hasOwnProperty("full")&&j1.uint32(16).int32(j0.full),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullGroupMemberResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.member&&j3.member.length||(j3.member=[]),j3.member.push(j10.GroupMember.decode(j0,j0.uint32()));break;case 2:j3.full=j0.int32();break;default:j0.skipType(7&j4);}}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.member&&j0.hasOwnProperty("member")){if(!Array.isArray(j0.member))return"member: array expected";for(var j1=0;j1<j0.member.length;++j1){var j2=j10.GroupMember.verify(j0.member[j1]);if(j2)return"member."+j2;}}return null!=j0.full&&j0.hasOwnProperty("full")&&!j9.isInteger(j0.full)?"full: integer expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.PullGroupMemberResult)return j0;var j1=new j10.PullGroupMemberResult();if(j0.member){if(!Array.isArray(j0.member))throw TypeError(".PullGroupMemberResult.member: array expected");j1.member=[];for(var j2=0;j2<j0.member.length;++j2){if("object"!==(0,j3.default)(j0.member[j2]))throw TypeError(".PullGroupMemberResult.member: object expected");j1.member[j2]=j10.GroupMember.fromObject(j0.member[j2]);}}return null!=j0.full&&(j1.full=0|j0.full),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.member=[]),j1.defaults&&(j2.full=0),j0.member&&j0.member.length){j2.member=[];for(var j3=0;j3<j0.member.length;++j3)j2.member[j3]=j10.GroupMember.toObject(j0.member[j3],j1);}return null!=j0.full&&j0.hasOwnProperty("full")&&(j2.full=j0.full),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.UserRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.uid="",j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.uid),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&j1.uint32(16).int64(j0.updateDt),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.UserRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.uid=j0.string();break;case 2:j3.updateDt=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("uid"))throw j9.ProtocolError("missing required 'uid'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.uid)?null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&!(j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high))?"updateDt: integer|Long expected":null:"uid: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.UserRequest)return j0;var j1=new j10.UserRequest();return null!=j0.uid&&(j1.uid=String(j0.uid)),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.uid="",j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;return null!=j0.uid&&j0.hasOwnProperty("uid")&&(j2.uid=j0.uid),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullUserRequest=function(){function j0(j0){if(this.request=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.request=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.request&&j0.request.length)for(var j2=0;j2<j0.request.length;++j2)j10.UserRequest.encode(j0.request[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullUserRequest();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.request&&j3.request.length||(j3.request=[]),j3.request.push(j10.UserRequest.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.request&&j0.hasOwnProperty("request")){if(!Array.isArray(j0.request))return"request: array expected";for(var j1=0;j1<j0.request.length;++j1){var j2=j10.UserRequest.verify(j0.request[j1]);if(j2)return"request."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PullUserRequest)return j0;var j1=new j10.PullUserRequest();if(j0.request){if(!Array.isArray(j0.request))throw TypeError(".PullUserRequest.request: array expected");j1.request=[];for(var j2=0;j2<j0.request.length;++j2){if("object"!==(0,j3.default)(j0.request[j2]))throw TypeError(".PullUserRequest.request: object expected");j1.request[j2]=j10.UserRequest.fromObject(j0.request[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.request=[]),j0.request&&j0.request.length){j2.request=[];for(var j3=0;j3<j0.request.length;++j3)j2.request[j3]=j10.UserRequest.toObject(j0.request[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.UserResult=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.user=null,j0.prototype.code=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j10.User.encode(j0.user,j1.uint32(10).fork()).ldelim(),j1.uint32(16).int32(j0.code),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.UserResult();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.user=j10.User.decode(j0,j0.uint32());break;case 2:j3.code=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("user"))throw j9.ProtocolError("missing required 'user'",{instance:j3});if(!j3.hasOwnProperty("code"))throw j9.ProtocolError("missing required 'code'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";var j1=j10.User.verify(j0.user);return j1?"user."+j1:j9.isInteger(j0.code)?null:"code: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.UserResult)return j0;var j1=new j10.UserResult();if(null!=j0.user){if("object"!==(0,j3.default)(j0.user))throw TypeError(".UserResult.user: object expected");j1.user=j10.User.fromObject(j0.user);}return null!=j0.code&&(j1.code=0|j0.code),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.user=null,j2.code=0),null!=j0.user&&j0.hasOwnProperty("user")&&(j2.user=j10.User.toObject(j0.user,j1)),null!=j0.code&&j0.hasOwnProperty("code")&&(j2.code=j0.code),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PullUserResult=function(){function j0(j0){if(this.result=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.result=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.result&&j0.result.length)for(var j2=0;j2<j0.result.length;++j2)j10.UserResult.encode(j0.result[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PullUserResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.result&&j3.result.length||(j3.result=[]),j3.result.push(j10.UserResult.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.result&&j0.hasOwnProperty("result")){if(!Array.isArray(j0.result))return"result: array expected";for(var j1=0;j1<j0.result.length;++j1){var j2=j10.UserResult.verify(j0.result[j1]);if(j2)return"result."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PullUserResult)return j0;var j1=new j10.PullUserResult();if(j0.result){if(!Array.isArray(j0.result))throw TypeError(".PullUserResult.result: array expected");j1.result=[];for(var j2=0;j2<j0.result.length;++j2){if("object"!==(0,j3.default)(j0.result[j2]))throw TypeError(".PullUserResult.result: object expected");j1.result[j2]=j10.UserResult.fromObject(j0.result[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.result=[]),j0.result&&j0.result.length){j2.result=[];for(var j3=0;j3<j0.result.length;++j3)j2.result[j3]=j10.UserResult.toObject(j0.result[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.QuitGroupRequest=function(){function j0(j0){if(this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),null!=j0.toLine&&j0.toLine.length)for(var j2=0;j2<j0.toLine.length;++j2)j1.uint32(16).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(26).fork()).ldelim(),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.QuitGroupRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 3:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(var j1=0;j1<j0.toLine.length;++j1)if(!j9.isInteger(j0.toLine[j1]))return"toLine: integer[] expected";}if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")){var j2=j10.MessageContent.verify(j0.notifyContent);if(j2)return"notifyContent."+j2;}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.QuitGroupRequest)return j0;var j1=new j10.QuitGroupRequest();if(null!=j0.groupId&&(j1.groupId=String(j0.groupId)),j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".QuitGroupRequest.toLine: array expected");j1.toLine=[];for(var j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".QuitGroupRequest.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.toLine=[]),j1.defaults&&(j2.groupId="",j2.notifyContent=null),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),j0.toLine&&j0.toLine.length){j2.toLine=[];for(var j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.RemoveGroupMemberRequest=function(){function j0(j0){if(this.removedMember=[],this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.removedMember=j9.emptyArray,j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),null!=j0.removedMember&&j0.removedMember.length)for(var j2=0;j2<j0.removedMember.length;++j2)j1.uint32(18).string(j0.removedMember[j2]);if(null!=j0.toLine&&j0.toLine.length)for(j2=0;j2<j0.toLine.length;++j2)j1.uint32(24).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(34).fork()).ldelim(),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.RemoveGroupMemberRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:j3.removedMember&&j3.removedMember.length||(j3.removedMember=[]),j3.removedMember.push(j0.string());break;case 3:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 4:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(null!=j0.removedMember&&j0.hasOwnProperty("removedMember")){if(!Array.isArray(j0.removedMember))return"removedMember: array expected";for(var j1=0;j1<j0.removedMember.length;++j1)if(!j9.isString(j0.removedMember[j1]))return"removedMember: string[] expected";}if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(j1=0;j1<j0.toLine.length;++j1)if(!j9.isInteger(j0.toLine[j1]))return"toLine: integer[] expected";}if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")){var j2=j10.MessageContent.verify(j0.notifyContent);if(j2)return"notifyContent."+j2;}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.RemoveGroupMemberRequest)return j0;var j1=new j10.RemoveGroupMemberRequest();if(null!=j0.groupId&&(j1.groupId=String(j0.groupId)),j0.removedMember){if(!Array.isArray(j0.removedMember))throw TypeError(".RemoveGroupMemberRequest.removedMember: array expected");j1.removedMember=[];for(var j2=0;j2<j0.removedMember.length;++j2)j1.removedMember[j2]=String(j0.removedMember[j2]);}if(j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".RemoveGroupMemberRequest.toLine: array expected");j1.toLine=[];for(j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".RemoveGroupMemberRequest.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.removedMember=[],j2.toLine=[]),j1.defaults&&(j2.groupId="",j2.notifyContent=null),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),j0.removedMember&&j0.removedMember.length){j2.removedMember=[];for(var j3=0;j3<j0.removedMember.length;++j3)j2.removedMember[j3]=j0.removedMember[j3];}if(j0.toLine&&j0.toLine.length){j2.toLine=[];for(j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.TransferGroupRequest=function(){function j0(j0){if(this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.newOwner="",j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),j1.uint32(18).string(j0.newOwner),null!=j0.toLine&&j0.toLine.length)for(var j2=0;j2<j0.toLine.length;++j2)j1.uint32(24).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(34).fork()).ldelim(),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.TransferGroupRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:j3.newOwner=j0.string();break;case 3:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 4:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});if(!j3.hasOwnProperty("newOwner"))throw j9.ProtocolError("missing required 'newOwner'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(!j9.isString(j0.newOwner))return"newOwner: string expected";if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(var j1=0;j1<j0.toLine.length;++j1)if(!j9.isInteger(j0.toLine[j1]))return"toLine: integer[] expected";}if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")){var j2=j10.MessageContent.verify(j0.notifyContent);if(j2)return"notifyContent."+j2;}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.TransferGroupRequest)return j0;var j1=new j10.TransferGroupRequest();if(null!=j0.groupId&&(j1.groupId=String(j0.groupId)),null!=j0.newOwner&&(j1.newOwner=String(j0.newOwner)),j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".TransferGroupRequest.toLine: array expected");j1.toLine=[];for(var j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".TransferGroupRequest.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.toLine=[]),j1.defaults&&(j2.groupId="",j2.newOwner="",j2.notifyContent=null),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),null!=j0.newOwner&&j0.hasOwnProperty("newOwner")&&(j2.newOwner=j0.newOwner),j0.toLine&&j0.toLine.length){j2.toLine=[];for(var j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ModifyGroupMemberAlias=function(){function j0(j0){if(this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.alias="",j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.prototype.memberId="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),j1.uint32(18).string(j0.alias),null!=j0.toLine&&j0.toLine.length)for(var j2=0;j2<j0.toLine.length;++j2)j1.uint32(24).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(34).fork()).ldelim(),null!=j0.memberId&&j0.hasOwnProperty("memberId")&&j1.uint32(42).string(j0.memberId),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ModifyGroupMemberAlias();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:j3.alias=j0.string();break;case 3:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 4:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;case 5:j3.memberId=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});if(!j3.hasOwnProperty("alias"))throw j9.ProtocolError("missing required 'alias'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(!j9.isString(j0.alias))return"alias: string expected";if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(var j1=0;j1<j0.toLine.length;++j1)if(!j9.isInteger(j0.toLine[j1]))return"toLine: integer[] expected";}if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")){var j2=j10.MessageContent.verify(j0.notifyContent);if(j2)return"notifyContent."+j2;}return null!=j0.memberId&&j0.hasOwnProperty("memberId")&&!j9.isString(j0.memberId)?"memberId: string expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.ModifyGroupMemberAlias)return j0;var j1=new j10.ModifyGroupMemberAlias();if(null!=j0.groupId&&(j1.groupId=String(j0.groupId)),null!=j0.alias&&(j1.alias=String(j0.alias)),j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".ModifyGroupMemberAlias.toLine: array expected");j1.toLine=[];for(var j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".ModifyGroupMemberAlias.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return null!=j0.memberId&&(j1.memberId=String(j0.memberId)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.toLine=[]),j1.defaults&&(j2.groupId="",j2.alias="",j2.notifyContent=null,j2.memberId=""),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),null!=j0.alias&&j0.hasOwnProperty("alias")&&(j2.alias=j0.alias),j0.toLine&&j0.toLine.length){j2.toLine=[];for(var j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),null!=j0.memberId&&j0.hasOwnProperty("memberId")&&(j2.memberId=j0.memberId),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ModifyGroupMemberExtra=function(){function j0(j0){if(this.toLine=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.groupId="",j0.prototype.toLine=j9.emptyArray,j0.prototype.notifyContent=null,j0.prototype.extra="",j0.prototype.memberId="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.groupId),null!=j0.toLine&&j0.toLine.length)for(var j2=0;j2<j0.toLine.length;++j2)j1.uint32(16).int32(j0.toLine[j2]);return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&j10.MessageContent.encode(j0.notifyContent,j1.uint32(26).fork()).ldelim(),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(34).string(j0.extra),null!=j0.memberId&&j0.hasOwnProperty("memberId")&&j1.uint32(42).string(j0.memberId),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ModifyGroupMemberExtra();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.groupId=j0.string();break;case 2:if(j3.toLine&&j3.toLine.length||(j3.toLine=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.toLine.push(j0.int32());else j3.toLine.push(j0.int32());break;case 3:j3.notifyContent=j10.MessageContent.decode(j0,j0.uint32());break;case 4:j3.extra=j0.string();break;case 5:j3.memberId=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("groupId"))throw j9.ProtocolError("missing required 'groupId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.groupId))return"groupId: string expected";if(null!=j0.toLine&&j0.hasOwnProperty("toLine")){if(!Array.isArray(j0.toLine))return"toLine: array expected";for(var j1=0;j1<j0.toLine.length;++j1)if(!j9.isInteger(j0.toLine[j1]))return"toLine: integer[] expected";}if(null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")){var j2=j10.MessageContent.verify(j0.notifyContent);if(j2)return"notifyContent."+j2;}return null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null!=j0.memberId&&j0.hasOwnProperty("memberId")&&!j9.isString(j0.memberId)?"memberId: string expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.ModifyGroupMemberExtra)return j0;var j1=new j10.ModifyGroupMemberExtra();if(null!=j0.groupId&&(j1.groupId=String(j0.groupId)),j0.toLine){if(!Array.isArray(j0.toLine))throw TypeError(".ModifyGroupMemberExtra.toLine: array expected");j1.toLine=[];for(var j2=0;j2<j0.toLine.length;++j2)j1.toLine[j2]=0|j0.toLine[j2];}if(null!=j0.notifyContent){if("object"!==(0,j3.default)(j0.notifyContent))throw TypeError(".ModifyGroupMemberExtra.notifyContent: object expected");j1.notifyContent=j10.MessageContent.fromObject(j0.notifyContent);}return null!=j0.extra&&(j1.extra=String(j0.extra)),null!=j0.memberId&&(j1.memberId=String(j0.memberId)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.toLine=[]),j1.defaults&&(j2.groupId="",j2.notifyContent=null,j2.extra="",j2.memberId=""),null!=j0.groupId&&j0.hasOwnProperty("groupId")&&(j2.groupId=j0.groupId),j0.toLine&&j0.toLine.length){j2.toLine=[];for(var j3=0;j3<j0.toLine.length;++j3)j2.toLine[j3]=j0.toLine[j3];}return null!=j0.notifyContent&&j0.hasOwnProperty("notifyContent")&&(j2.notifyContent=j10.MessageContent.toObject(j0.notifyContent,j1)),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),null!=j0.memberId&&j0.hasOwnProperty("memberId")&&(j2.memberId=j0.memberId),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.UserSettingEntry=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.scope=0,j0.prototype.key="",j0.prototype.value="",j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int32(j0.scope),j1.uint32(18).string(j0.key),j1.uint32(26).string(j0.value),j1.uint32(32).int64(j0.updateDt),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.UserSettingEntry();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.scope=j0.int32();break;case 2:j3.key=j0.string();break;case 3:j3.value=j0.string();break;case 4:j3.updateDt=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("scope"))throw j9.ProtocolError("missing required 'scope'",{instance:j3});if(!j3.hasOwnProperty("key"))throw j9.ProtocolError("missing required 'key'",{instance:j3});if(!j3.hasOwnProperty("value"))throw j9.ProtocolError("missing required 'value'",{instance:j3});if(!j3.hasOwnProperty("updateDt"))throw j9.ProtocolError("missing required 'updateDt'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.scope)?j9.isString(j0.key)?j9.isString(j0.value)?j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high)?null:"updateDt: integer|Long expected":"value: string expected":"key: string expected":"scope: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.UserSettingEntry)return j0;var j1=new j10.UserSettingEntry();return null!=j0.scope&&(j1.scope=0|j0.scope),null!=j0.key&&(j1.key=String(j0.key)),null!=j0.value&&(j1.value=String(j0.value)),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.scope=0,j2.key="",j2.value="",j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;return null!=j0.scope&&j0.hasOwnProperty("scope")&&(j2.scope=j0.scope),null!=j0.key&&j0.hasOwnProperty("key")&&(j2.key=j0.key),null!=j0.value&&j0.hasOwnProperty("value")&&(j2.value=j0.value),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ModifyUserSettingReq=function(){function j0(j0){if(this.target=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.scope=0,j0.prototype.key="",j0.prototype.value="",j0.prototype.target=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(8).int32(j0.scope),j1.uint32(18).string(j0.key),j1.uint32(26).string(j0.value),null!=j0.target&&j0.target.length)for(var j2=0;j2<j0.target.length;++j2)j1.uint32(34).string(j0.target[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ModifyUserSettingReq();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.scope=j0.int32();break;case 2:j3.key=j0.string();break;case 3:j3.value=j0.string();break;case 4:j3.target&&j3.target.length||(j3.target=[]),j3.target.push(j0.string());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("scope"))throw j9.ProtocolError("missing required 'scope'",{instance:j3});if(!j3.hasOwnProperty("key"))throw j9.ProtocolError("missing required 'key'",{instance:j3});if(!j3.hasOwnProperty("value"))throw j9.ProtocolError("missing required 'value'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isInteger(j0.scope))return"scope: integer expected";if(!j9.isString(j0.key))return"key: string expected";if(!j9.isString(j0.value))return"value: string expected";if(null!=j0.target&&j0.hasOwnProperty("target")){if(!Array.isArray(j0.target))return"target: array expected";for(var j1=0;j1<j0.target.length;++j1)if(!j9.isString(j0.target[j1]))return"target: string[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ModifyUserSettingReq)return j0;var j1=new j10.ModifyUserSettingReq();if(null!=j0.scope&&(j1.scope=0|j0.scope),null!=j0.key&&(j1.key=String(j0.key)),null!=j0.value&&(j1.value=String(j0.value)),j0.target){if(!Array.isArray(j0.target))throw TypeError(".ModifyUserSettingReq.target: array expected");j1.target=[];for(var j2=0;j2<j0.target.length;++j2)j1.target[j2]=String(j0.target[j2]);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.target=[]),j1.defaults&&(j2.scope=0,j2.key="",j2.value=""),null!=j0.scope&&j0.hasOwnProperty("scope")&&(j2.scope=j0.scope),null!=j0.key&&j0.hasOwnProperty("key")&&(j2.key=j0.key),null!=j0.value&&j0.hasOwnProperty("value")&&(j2.value=j0.value),j0.target&&j0.target.length){j2.target=[];for(var j3=0;j3<j0.target.length;++j3)j2.target[j3]=j0.target[j3];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.Version=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.version=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.version),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.Version();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.version=j0.int64();else j0.skipType(7&j4);}if(!j3.hasOwnProperty("version"))throw j9.ProtocolError("missing required 'version'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.version)||j0.version&&j9.isInteger(j0.version.low)&&j9.isInteger(j0.version.high)?null:"version: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.Version)return j0;var j1=new j10.Version();return null!=j0.version&&(j9.Long?(j1.version=j9.Long.fromValue(j0.version)).unsigned=!1:"string"==typeof j0.version?j1.version=parseInt(j0.version,10):"number"==typeof j0.version?j1.version=j0.version:"object"===(0,j3.default)(j0.version)&&(j1.version=new j9.LongBits(j0.version.low>>>0,j0.version.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j9.Long){var j3=new j9.Long(0,0,!1);j2.version=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.version=j1.longs===String?"0":0;return null!=j0.version&&j0.hasOwnProperty("version")&&("number"==typeof j0.version?j2.version=j1.longs===String?String(j0.version):j0.version:j2.version=j1.longs===String?j9.Long.prototype.toString.call(j0.version):j1.longs===Number?new j9.LongBits(j0.version.low>>>0,j0.version.high>>>0).toNumber():j0.version),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetUserSettingResult=function(){function j0(j0){if(this.entry=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.entry=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.entry&&j0.entry.length)for(var j2=0;j2<j0.entry.length;++j2)j10.UserSettingEntry.encode(j0.entry[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetUserSettingResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.entry&&j3.entry.length||(j3.entry=[]),j3.entry.push(j10.UserSettingEntry.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.entry&&j0.hasOwnProperty("entry")){if(!Array.isArray(j0.entry))return"entry: array expected";for(var j1=0;j1<j0.entry.length;++j1){var j2=j10.UserSettingEntry.verify(j0.entry[j1]);if(j2)return"entry."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.GetUserSettingResult)return j0;var j1=new j10.GetUserSettingResult();if(j0.entry){if(!Array.isArray(j0.entry))throw TypeError(".GetUserSettingResult.entry: array expected");j1.entry=[];for(var j2=0;j2<j0.entry.length;++j2){if("object"!==(0,j3.default)(j0.entry[j2]))throw TypeError(".GetUserSettingResult.entry: object expected");j1.entry[j2]=j10.UserSettingEntry.fromObject(j0.entry[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.entry=[]),j0.entry&&j0.entry.length){j2.entry=[];for(var j3=0;j3<j0.entry.length;++j3)j2.entry[j3]=j10.UserSettingEntry.toObject(j0.entry[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.Friend=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.uid="",j0.prototype.state=0,j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.alias="",j0.prototype.blacked=0,j0.prototype.extra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.uid),j1.uint32(16).int32(j0.state),j1.uint32(24).int64(j0.updateDt),null!=j0.alias&&j0.hasOwnProperty("alias")&&j1.uint32(34).string(j0.alias),null!=j0.blacked&&j0.hasOwnProperty("blacked")&&j1.uint32(40).int32(j0.blacked),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(50).string(j0.extra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.Friend();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.uid=j0.string();break;case 2:j3.state=j0.int32();break;case 3:j3.updateDt=j0.int64();break;case 4:j3.alias=j0.string();break;case 5:j3.blacked=j0.int32();break;case 6:j3.extra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("uid"))throw j9.ProtocolError("missing required 'uid'",{instance:j3});if(!j3.hasOwnProperty("state"))throw j9.ProtocolError("missing required 'state'",{instance:j3});if(!j3.hasOwnProperty("updateDt"))throw j9.ProtocolError("missing required 'updateDt'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.uid)?j9.isInteger(j0.state)?j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high)?null!=j0.alias&&j0.hasOwnProperty("alias")&&!j9.isString(j0.alias)?"alias: string expected":null!=j0.blacked&&j0.hasOwnProperty("blacked")&&!j9.isInteger(j0.blacked)?"blacked: integer expected":null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null:"updateDt: integer|Long expected":"state: integer expected":"uid: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.Friend)return j0;var j1=new j10.Friend();return null!=j0.uid&&(j1.uid=String(j0.uid)),null!=j0.state&&(j1.state=0|j0.state),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),null!=j0.alias&&(j1.alias=String(j0.alias)),null!=j0.blacked&&(j1.blacked=0|j0.blacked),null!=j0.extra&&(j1.extra=String(j0.extra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.uid="",j2.state=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;j2.alias="",j2.blacked=0,j2.extra="";}return null!=j0.uid&&j0.hasOwnProperty("uid")&&(j2.uid=j0.uid),null!=j0.state&&j0.hasOwnProperty("state")&&(j2.state=j0.state),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),null!=j0.alias&&j0.hasOwnProperty("alias")&&(j2.alias=j0.alias),null!=j0.blacked&&j0.hasOwnProperty("blacked")&&(j2.blacked=j0.blacked),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetFriendsResult=function(){function j0(j0){if(this.entry=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.entry=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.entry&&j0.entry.length)for(var j2=0;j2<j0.entry.length;++j2)j10.Friend.encode(j0.entry[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetFriendsResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.entry&&j3.entry.length||(j3.entry=[]),j3.entry.push(j10.Friend.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.entry&&j0.hasOwnProperty("entry")){if(!Array.isArray(j0.entry))return"entry: array expected";for(var j1=0;j1<j0.entry.length;++j1){var j2=j10.Friend.verify(j0.entry[j1]);if(j2)return"entry."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.GetFriendsResult)return j0;var j1=new j10.GetFriendsResult();if(j0.entry){if(!Array.isArray(j0.entry))throw TypeError(".GetFriendsResult.entry: array expected");j1.entry=[];for(var j2=0;j2<j0.entry.length;++j2){if("object"!==(0,j3.default)(j0.entry[j2]))throw TypeError(".GetFriendsResult.entry: object expected");j1.entry[j2]=j10.Friend.fromObject(j0.entry[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.entry=[]),j0.entry&&j0.entry.length){j2.entry=[];for(var j3=0;j3<j0.entry.length;++j3)j2.entry[j3]=j10.Friend.toObject(j0.entry[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetFriendRequestResult=function(){function j0(j0){if(this.entry=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.entry=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.entry&&j0.entry.length)for(var j2=0;j2<j0.entry.length;++j2)j10.FriendRequest.encode(j0.entry[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetFriendRequestResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.entry&&j3.entry.length||(j3.entry=[]),j3.entry.push(j10.FriendRequest.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.entry&&j0.hasOwnProperty("entry")){if(!Array.isArray(j0.entry))return"entry: array expected";for(var j1=0;j1<j0.entry.length;++j1){var j2=j10.FriendRequest.verify(j0.entry[j1]);if(j2)return"entry."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.GetFriendRequestResult)return j0;var j1=new j10.GetFriendRequestResult();if(j0.entry){if(!Array.isArray(j0.entry))throw TypeError(".GetFriendRequestResult.entry: array expected");j1.entry=[];for(var j2=0;j2<j0.entry.length;++j2){if("object"!==(0,j3.default)(j0.entry[j2]))throw TypeError(".GetFriendRequestResult.entry: object expected");j1.entry[j2]=j10.FriendRequest.fromObject(j0.entry[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.entry=[]),j0.entry&&j0.entry.length){j2.entry=[];for(var j3=0;j3<j0.entry.length;++j3)j2.entry[j3]=j10.FriendRequest.toObject(j0.entry[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConnectAckPayload=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.msgHead=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.friendHead=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.friendRqHead=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.settingHead=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.nodeAddr="",j0.prototype.nodePort=0,j0.prototype.serverTime=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.nodeId="",j0.prototype.recvHead=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.readHead=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.groupConvHead=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),null!=j0.msgHead&&j0.hasOwnProperty("msgHead")&&j1.uint32(8).int64(j0.msgHead),null!=j0.friendHead&&j0.hasOwnProperty("friendHead")&&j1.uint32(16).int64(j0.friendHead),null!=j0.friendRqHead&&j0.hasOwnProperty("friendRqHead")&&j1.uint32(24).int64(j0.friendRqHead),null!=j0.settingHead&&j0.hasOwnProperty("settingHead")&&j1.uint32(32).int64(j0.settingHead),null!=j0.nodeAddr&&j0.hasOwnProperty("nodeAddr")&&j1.uint32(42).string(j0.nodeAddr),null!=j0.nodePort&&j0.hasOwnProperty("nodePort")&&j1.uint32(48).int32(j0.nodePort),null!=j0.serverTime&&j0.hasOwnProperty("serverTime")&&j1.uint32(56).int64(j0.serverTime),null!=j0.nodeId&&j0.hasOwnProperty("nodeId")&&j1.uint32(66).string(j0.nodeId),null!=j0.recvHead&&j0.hasOwnProperty("recvHead")&&j1.uint32(72).int64(j0.recvHead),null!=j0.readHead&&j0.hasOwnProperty("readHead")&&j1.uint32(80).int64(j0.readHead),null!=j0.groupConvHead&&j0.hasOwnProperty("groupConvHead")&&j1.uint32(88).int64(j0.groupConvHead),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConnectAckPayload();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.msgHead=j0.int64();break;case 2:j3.friendHead=j0.int64();break;case 3:j3.friendRqHead=j0.int64();break;case 4:j3.settingHead=j0.int64();break;case 5:j3.nodeAddr=j0.string();break;case 6:j3.nodePort=j0.int32();break;case 7:j3.serverTime=j0.int64();break;case 8:j3.nodeId=j0.string();break;case 9:j3.recvHead=j0.int64();break;case 10:j3.readHead=j0.int64();break;case 11:j3.groupConvHead=j0.int64();break;default:j0.skipType(7&j4);}}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":null!=j0.msgHead&&j0.hasOwnProperty("msgHead")&&!(j9.isInteger(j0.msgHead)||j0.msgHead&&j9.isInteger(j0.msgHead.low)&&j9.isInteger(j0.msgHead.high))?"msgHead: integer|Long expected":null!=j0.friendHead&&j0.hasOwnProperty("friendHead")&&!(j9.isInteger(j0.friendHead)||j0.friendHead&&j9.isInteger(j0.friendHead.low)&&j9.isInteger(j0.friendHead.high))?"friendHead: integer|Long expected":null!=j0.friendRqHead&&j0.hasOwnProperty("friendRqHead")&&!(j9.isInteger(j0.friendRqHead)||j0.friendRqHead&&j9.isInteger(j0.friendRqHead.low)&&j9.isInteger(j0.friendRqHead.high))?"friendRqHead: integer|Long expected":null!=j0.settingHead&&j0.hasOwnProperty("settingHead")&&!(j9.isInteger(j0.settingHead)||j0.settingHead&&j9.isInteger(j0.settingHead.low)&&j9.isInteger(j0.settingHead.high))?"settingHead: integer|Long expected":null!=j0.nodeAddr&&j0.hasOwnProperty("nodeAddr")&&!j9.isString(j0.nodeAddr)?"nodeAddr: string expected":null!=j0.nodePort&&j0.hasOwnProperty("nodePort")&&!j9.isInteger(j0.nodePort)?"nodePort: integer expected":null!=j0.serverTime&&j0.hasOwnProperty("serverTime")&&!(j9.isInteger(j0.serverTime)||j0.serverTime&&j9.isInteger(j0.serverTime.low)&&j9.isInteger(j0.serverTime.high))?"serverTime: integer|Long expected":null!=j0.nodeId&&j0.hasOwnProperty("nodeId")&&!j9.isString(j0.nodeId)?"nodeId: string expected":null!=j0.recvHead&&j0.hasOwnProperty("recvHead")&&!(j9.isInteger(j0.recvHead)||j0.recvHead&&j9.isInteger(j0.recvHead.low)&&j9.isInteger(j0.recvHead.high))?"recvHead: integer|Long expected":null!=j0.readHead&&j0.hasOwnProperty("readHead")&&!(j9.isInteger(j0.readHead)||j0.readHead&&j9.isInteger(j0.readHead.low)&&j9.isInteger(j0.readHead.high))?"readHead: integer|Long expected":null!=j0.groupConvHead&&j0.hasOwnProperty("groupConvHead")&&!(j9.isInteger(j0.groupConvHead)||j0.groupConvHead&&j9.isInteger(j0.groupConvHead.low)&&j9.isInteger(j0.groupConvHead.high))?"groupConvHead: integer|Long expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.ConnectAckPayload)return j0;var j1=new j10.ConnectAckPayload();return null!=j0.msgHead&&(j9.Long?(j1.msgHead=j9.Long.fromValue(j0.msgHead)).unsigned=!1:"string"==typeof j0.msgHead?j1.msgHead=parseInt(j0.msgHead,10):"number"==typeof j0.msgHead?j1.msgHead=j0.msgHead:"object"===(0,j3.default)(j0.msgHead)&&(j1.msgHead=new j9.LongBits(j0.msgHead.low>>>0,j0.msgHead.high>>>0).toNumber())),null!=j0.friendHead&&(j9.Long?(j1.friendHead=j9.Long.fromValue(j0.friendHead)).unsigned=!1:"string"==typeof j0.friendHead?j1.friendHead=parseInt(j0.friendHead,10):"number"==typeof j0.friendHead?j1.friendHead=j0.friendHead:"object"===(0,j3.default)(j0.friendHead)&&(j1.friendHead=new j9.LongBits(j0.friendHead.low>>>0,j0.friendHead.high>>>0).toNumber())),null!=j0.friendRqHead&&(j9.Long?(j1.friendRqHead=j9.Long.fromValue(j0.friendRqHead)).unsigned=!1:"string"==typeof j0.friendRqHead?j1.friendRqHead=parseInt(j0.friendRqHead,10):"number"==typeof j0.friendRqHead?j1.friendRqHead=j0.friendRqHead:"object"===(0,j3.default)(j0.friendRqHead)&&(j1.friendRqHead=new j9.LongBits(j0.friendRqHead.low>>>0,j0.friendRqHead.high>>>0).toNumber())),null!=j0.settingHead&&(j9.Long?(j1.settingHead=j9.Long.fromValue(j0.settingHead)).unsigned=!1:"string"==typeof j0.settingHead?j1.settingHead=parseInt(j0.settingHead,10):"number"==typeof j0.settingHead?j1.settingHead=j0.settingHead:"object"===(0,j3.default)(j0.settingHead)&&(j1.settingHead=new j9.LongBits(j0.settingHead.low>>>0,j0.settingHead.high>>>0).toNumber())),null!=j0.nodeAddr&&(j1.nodeAddr=String(j0.nodeAddr)),null!=j0.nodePort&&(j1.nodePort=0|j0.nodePort),null!=j0.serverTime&&(j9.Long?(j1.serverTime=j9.Long.fromValue(j0.serverTime)).unsigned=!1:"string"==typeof j0.serverTime?j1.serverTime=parseInt(j0.serverTime,10):"number"==typeof j0.serverTime?j1.serverTime=j0.serverTime:"object"===(0,j3.default)(j0.serverTime)&&(j1.serverTime=new j9.LongBits(j0.serverTime.low>>>0,j0.serverTime.high>>>0).toNumber())),null!=j0.nodeId&&(j1.nodeId=String(j0.nodeId)),null!=j0.recvHead&&(j9.Long?(j1.recvHead=j9.Long.fromValue(j0.recvHead)).unsigned=!1:"string"==typeof j0.recvHead?j1.recvHead=parseInt(j0.recvHead,10):"number"==typeof j0.recvHead?j1.recvHead=j0.recvHead:"object"===(0,j3.default)(j0.recvHead)&&(j1.recvHead=new j9.LongBits(j0.recvHead.low>>>0,j0.recvHead.high>>>0).toNumber())),null!=j0.readHead&&(j9.Long?(j1.readHead=j9.Long.fromValue(j0.readHead)).unsigned=!1:"string"==typeof j0.readHead?j1.readHead=parseInt(j0.readHead,10):"number"==typeof j0.readHead?j1.readHead=j0.readHead:"object"===(0,j3.default)(j0.readHead)&&(j1.readHead=new j9.LongBits(j0.readHead.low>>>0,j0.readHead.high>>>0).toNumber())),null!=j0.groupConvHead&&(j9.Long?(j1.groupConvHead=j9.Long.fromValue(j0.groupConvHead)).unsigned=!1:"string"==typeof j0.groupConvHead?j1.groupConvHead=parseInt(j0.groupConvHead,10):"number"==typeof j0.groupConvHead?j1.groupConvHead=j0.groupConvHead:"object"===(0,j3.default)(j0.groupConvHead)&&(j1.groupConvHead=new j9.LongBits(j0.groupConvHead.low>>>0,j0.groupConvHead.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.msgHead=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.msgHead=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.friendHead=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.friendHead=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.friendRqHead=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.friendRqHead=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.settingHead=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.settingHead=j1.longs===String?"0":0;if(j2.nodeAddr="",j2.nodePort=0,j9.Long){j3=new j9.Long(0,0,!1);j2.serverTime=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.serverTime=j1.longs===String?"0":0;if(j2.nodeId="",j9.Long){j3=new j9.Long(0,0,!1);j2.recvHead=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.recvHead=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.readHead=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.readHead=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.groupConvHead=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.groupConvHead=j1.longs===String?"0":0;}return null!=j0.msgHead&&j0.hasOwnProperty("msgHead")&&("number"==typeof j0.msgHead?j2.msgHead=j1.longs===String?String(j0.msgHead):j0.msgHead:j2.msgHead=j1.longs===String?j9.Long.prototype.toString.call(j0.msgHead):j1.longs===Number?new j9.LongBits(j0.msgHead.low>>>0,j0.msgHead.high>>>0).toNumber():j0.msgHead),null!=j0.friendHead&&j0.hasOwnProperty("friendHead")&&("number"==typeof j0.friendHead?j2.friendHead=j1.longs===String?String(j0.friendHead):j0.friendHead:j2.friendHead=j1.longs===String?j9.Long.prototype.toString.call(j0.friendHead):j1.longs===Number?new j9.LongBits(j0.friendHead.low>>>0,j0.friendHead.high>>>0).toNumber():j0.friendHead),null!=j0.friendRqHead&&j0.hasOwnProperty("friendRqHead")&&("number"==typeof j0.friendRqHead?j2.friendRqHead=j1.longs===String?String(j0.friendRqHead):j0.friendRqHead:j2.friendRqHead=j1.longs===String?j9.Long.prototype.toString.call(j0.friendRqHead):j1.longs===Number?new j9.LongBits(j0.friendRqHead.low>>>0,j0.friendRqHead.high>>>0).toNumber():j0.friendRqHead),null!=j0.settingHead&&j0.hasOwnProperty("settingHead")&&("number"==typeof j0.settingHead?j2.settingHead=j1.longs===String?String(j0.settingHead):j0.settingHead:j2.settingHead=j1.longs===String?j9.Long.prototype.toString.call(j0.settingHead):j1.longs===Number?new j9.LongBits(j0.settingHead.low>>>0,j0.settingHead.high>>>0).toNumber():j0.settingHead),null!=j0.nodeAddr&&j0.hasOwnProperty("nodeAddr")&&(j2.nodeAddr=j0.nodeAddr),null!=j0.nodePort&&j0.hasOwnProperty("nodePort")&&(j2.nodePort=j0.nodePort),null!=j0.serverTime&&j0.hasOwnProperty("serverTime")&&("number"==typeof j0.serverTime?j2.serverTime=j1.longs===String?String(j0.serverTime):j0.serverTime:j2.serverTime=j1.longs===String?j9.Long.prototype.toString.call(j0.serverTime):j1.longs===Number?new j9.LongBits(j0.serverTime.low>>>0,j0.serverTime.high>>>0).toNumber():j0.serverTime),null!=j0.nodeId&&j0.hasOwnProperty("nodeId")&&(j2.nodeId=j0.nodeId),null!=j0.recvHead&&j0.hasOwnProperty("recvHead")&&("number"==typeof j0.recvHead?j2.recvHead=j1.longs===String?String(j0.recvHead):j0.recvHead:j2.recvHead=j1.longs===String?j9.Long.prototype.toString.call(j0.recvHead):j1.longs===Number?new j9.LongBits(j0.recvHead.low>>>0,j0.recvHead.high>>>0).toNumber():j0.recvHead),null!=j0.readHead&&j0.hasOwnProperty("readHead")&&("number"==typeof j0.readHead?j2.readHead=j1.longs===String?String(j0.readHead):j0.readHead:j2.readHead=j1.longs===String?j9.Long.prototype.toString.call(j0.readHead):j1.longs===Number?new j9.LongBits(j0.readHead.low>>>0,j0.readHead.high>>>0).toNumber():j0.readHead),null!=j0.groupConvHead&&j0.hasOwnProperty("groupConvHead")&&("number"==typeof j0.groupConvHead?j2.groupConvHead=j1.longs===String?String(j0.groupConvHead):j0.groupConvHead:j2.groupConvHead=j1.longs===String?j9.Long.prototype.toString.call(j0.groupConvHead):j1.longs===Number?new j9.LongBits(j0.groupConvHead.low>>>0,j0.groupConvHead.high>>>0).toNumber():j0.groupConvHead),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.IMHttpWrapper=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.token="",j0.prototype.clientId="",j0.prototype.request="",j0.prototype.data=j9.newBuffer([]),j0.prototype.requestId="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.token),j1.uint32(18).string(j0.clientId),j1.uint32(26).string(j0.request),null!=j0.data&&j0.hasOwnProperty("data")&&j1.uint32(34).bytes(j0.data),null!=j0.requestId&&j0.hasOwnProperty("requestId")&&j1.uint32(42).string(j0.requestId),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.IMHttpWrapper();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.token=j0.string();break;case 2:j3.clientId=j0.string();break;case 3:j3.request=j0.string();break;case 4:j3.data=j0.bytes();break;case 5:j3.requestId=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("token"))throw j9.ProtocolError("missing required 'token'",{instance:j3});if(!j3.hasOwnProperty("clientId"))throw j9.ProtocolError("missing required 'clientId'",{instance:j3});if(!j3.hasOwnProperty("request"))throw j9.ProtocolError("missing required 'request'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.token)?j9.isString(j0.clientId)?j9.isString(j0.request)?null!=j0.data&&j0.hasOwnProperty("data")&&!(j0.data&&"number"==typeof j0.data.length||j9.isString(j0.data))?"data: buffer expected":null!=j0.requestId&&j0.hasOwnProperty("requestId")&&!j9.isString(j0.requestId)?"requestId: string expected":null:"request: string expected":"clientId: string expected":"token: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.IMHttpWrapper)return j0;var j1=new j10.IMHttpWrapper();return null!=j0.token&&(j1.token=String(j0.token)),null!=j0.clientId&&(j1.clientId=String(j0.clientId)),null!=j0.request&&(j1.request=String(j0.request)),null!=j0.data&&("string"==typeof j0.data?j9.base64.decode(j0.data,j1.data=j9.newBuffer(j9.base64.length(j0.data)),0):j0.data.length&&(j1.data=j0.data)),null!=j0.requestId&&(j1.requestId=String(j0.requestId)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.token="",j2.clientId="",j2.request="",j1.bytes===String?j2.data="":(j2.data=[],j1.bytes!==Array&&(j2.data=j9.newBuffer(j2.data))),j2.requestId=""),null!=j0.token&&j0.hasOwnProperty("token")&&(j2.token=j0.token),null!=j0.clientId&&j0.hasOwnProperty("clientId")&&(j2.clientId=j0.clientId),null!=j0.request&&j0.hasOwnProperty("request")&&(j2.request=j0.request),null!=j0.data&&j0.hasOwnProperty("data")&&(j2.data=j1.bytes===String?j9.base64.encode(j0.data,0,j0.data.length):j1.bytes===Array?Array.prototype.slice.call(j0.data):j0.data),null!=j0.requestId&&j0.hasOwnProperty("requestId")&&(j2.requestId=j0.requestId),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.SearchUserRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.keyword="",j0.prototype.fuzzy=0,j0.prototype.page=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.keyword),null!=j0.fuzzy&&j0.hasOwnProperty("fuzzy")&&j1.uint32(16).int32(j0.fuzzy),null!=j0.page&&j0.hasOwnProperty("page")&&j1.uint32(24).int32(j0.page),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.SearchUserRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.keyword=j0.string();break;case 2:j3.fuzzy=j0.int32();break;case 3:j3.page=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("keyword"))throw j9.ProtocolError("missing required 'keyword'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.keyword)?null!=j0.fuzzy&&j0.hasOwnProperty("fuzzy")&&!j9.isInteger(j0.fuzzy)?"fuzzy: integer expected":null!=j0.page&&j0.hasOwnProperty("page")&&!j9.isInteger(j0.page)?"page: integer expected":null:"keyword: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.SearchUserRequest)return j0;var j1=new j10.SearchUserRequest();return null!=j0.keyword&&(j1.keyword=String(j0.keyword)),null!=j0.fuzzy&&(j1.fuzzy=0|j0.fuzzy),null!=j0.page&&(j1.page=0|j0.page),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.keyword="",j2.fuzzy=0,j2.page=0),null!=j0.keyword&&j0.hasOwnProperty("keyword")&&(j2.keyword=j0.keyword),null!=j0.fuzzy&&j0.hasOwnProperty("fuzzy")&&(j2.fuzzy=j0.fuzzy),null!=j0.page&&j0.hasOwnProperty("page")&&(j2.page=j0.page),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.SearchUserResult=function(){function j0(j0){if(this.entry=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.entry=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.entry&&j0.entry.length)for(var j2=0;j2<j0.entry.length;++j2)j10.User.encode(j0.entry[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.SearchUserResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.entry&&j3.entry.length||(j3.entry=[]),j3.entry.push(j10.User.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.entry&&j0.hasOwnProperty("entry")){if(!Array.isArray(j0.entry))return"entry: array expected";for(var j1=0;j1<j0.entry.length;++j1){var j2=j10.User.verify(j0.entry[j1]);if(j2)return"entry."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.SearchUserResult)return j0;var j1=new j10.SearchUserResult();if(j0.entry){if(!Array.isArray(j0.entry))throw TypeError(".SearchUserResult.entry: array expected");j1.entry=[];for(var j2=0;j2<j0.entry.length;++j2){if("object"!==(0,j3.default)(j0.entry[j2]))throw TypeError(".SearchUserResult.entry: object expected");j1.entry[j2]=j10.User.fromObject(j0.entry[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.entry=[]),j0.entry&&j0.entry.length){j2.entry=[];for(var j3=0;j3<j0.entry.length;++j3)j2.entry[j3]=j10.User.toObject(j0.entry[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetChatroomInfoRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.chatroomId="",j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.chatroomId),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&j1.uint32(16).int64(j0.updateDt),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetChatroomInfoRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.chatroomId=j0.string();break;case 2:j3.updateDt=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("chatroomId"))throw j9.ProtocolError("missing required 'chatroomId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.chatroomId)?null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&!(j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high))?"updateDt: integer|Long expected":null:"chatroomId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GetChatroomInfoRequest)return j0;var j1=new j10.GetChatroomInfoRequest();return null!=j0.chatroomId&&(j1.chatroomId=String(j0.chatroomId)),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.chatroomId="",j9.Long){var j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;return null!=j0.chatroomId&&j0.hasOwnProperty("chatroomId")&&(j2.chatroomId=j0.chatroomId),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ChatroomInfo=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.title="",j0.prototype.desc="",j0.prototype.portrait="",j0.prototype.memberCount=0,j0.prototype.createDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.updateDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.extra="",j0.prototype.state=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.title),null!=j0.desc&&j0.hasOwnProperty("desc")&&j1.uint32(18).string(j0.desc),null!=j0.portrait&&j0.hasOwnProperty("portrait")&&j1.uint32(26).string(j0.portrait),null!=j0.memberCount&&j0.hasOwnProperty("memberCount")&&j1.uint32(32).int32(j0.memberCount),null!=j0.createDt&&j0.hasOwnProperty("createDt")&&j1.uint32(40).int64(j0.createDt),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&j1.uint32(48).int64(j0.updateDt),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(58).string(j0.extra),null!=j0.state&&j0.hasOwnProperty("state")&&j1.uint32(64).int32(j0.state),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ChatroomInfo();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.title=j0.string();break;case 2:j3.desc=j0.string();break;case 3:j3.portrait=j0.string();break;case 4:j3.memberCount=j0.int32();break;case 5:j3.createDt=j0.int64();break;case 6:j3.updateDt=j0.int64();break;case 7:j3.extra=j0.string();break;case 8:j3.state=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("title"))throw j9.ProtocolError("missing required 'title'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.title)?null!=j0.desc&&j0.hasOwnProperty("desc")&&!j9.isString(j0.desc)?"desc: string expected":null!=j0.portrait&&j0.hasOwnProperty("portrait")&&!j9.isString(j0.portrait)?"portrait: string expected":null!=j0.memberCount&&j0.hasOwnProperty("memberCount")&&!j9.isInteger(j0.memberCount)?"memberCount: integer expected":null!=j0.createDt&&j0.hasOwnProperty("createDt")&&!(j9.isInteger(j0.createDt)||j0.createDt&&j9.isInteger(j0.createDt.low)&&j9.isInteger(j0.createDt.high))?"createDt: integer|Long expected":null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&!(j9.isInteger(j0.updateDt)||j0.updateDt&&j9.isInteger(j0.updateDt.low)&&j9.isInteger(j0.updateDt.high))?"updateDt: integer|Long expected":null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null!=j0.state&&j0.hasOwnProperty("state")&&!j9.isInteger(j0.state)?"state: integer expected":null:"title: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.ChatroomInfo)return j0;var j1=new j10.ChatroomInfo();return null!=j0.title&&(j1.title=String(j0.title)),null!=j0.desc&&(j1.desc=String(j0.desc)),null!=j0.portrait&&(j1.portrait=String(j0.portrait)),null!=j0.memberCount&&(j1.memberCount=0|j0.memberCount),null!=j0.createDt&&(j9.Long?(j1.createDt=j9.Long.fromValue(j0.createDt)).unsigned=!1:"string"==typeof j0.createDt?j1.createDt=parseInt(j0.createDt,10):"number"==typeof j0.createDt?j1.createDt=j0.createDt:"object"===(0,j3.default)(j0.createDt)&&(j1.createDt=new j9.LongBits(j0.createDt.low>>>0,j0.createDt.high>>>0).toNumber())),null!=j0.updateDt&&(j9.Long?(j1.updateDt=j9.Long.fromValue(j0.updateDt)).unsigned=!1:"string"==typeof j0.updateDt?j1.updateDt=parseInt(j0.updateDt,10):"number"==typeof j0.updateDt?j1.updateDt=j0.updateDt:"object"===(0,j3.default)(j0.updateDt)&&(j1.updateDt=new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber())),null!=j0.extra&&(j1.extra=String(j0.extra)),null!=j0.state&&(j1.state=0|j0.state),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.title="",j2.desc="",j2.portrait="",j2.memberCount=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.createDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.createDt=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.updateDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.updateDt=j1.longs===String?"0":0;j2.extra="",j2.state=0;}return null!=j0.title&&j0.hasOwnProperty("title")&&(j2.title=j0.title),null!=j0.desc&&j0.hasOwnProperty("desc")&&(j2.desc=j0.desc),null!=j0.portrait&&j0.hasOwnProperty("portrait")&&(j2.portrait=j0.portrait),null!=j0.memberCount&&j0.hasOwnProperty("memberCount")&&(j2.memberCount=j0.memberCount),null!=j0.createDt&&j0.hasOwnProperty("createDt")&&("number"==typeof j0.createDt?j2.createDt=j1.longs===String?String(j0.createDt):j0.createDt:j2.createDt=j1.longs===String?j9.Long.prototype.toString.call(j0.createDt):j1.longs===Number?new j9.LongBits(j0.createDt.low>>>0,j0.createDt.high>>>0).toNumber():j0.createDt),null!=j0.updateDt&&j0.hasOwnProperty("updateDt")&&("number"==typeof j0.updateDt?j2.updateDt=j1.longs===String?String(j0.updateDt):j0.updateDt:j2.updateDt=j1.longs===String?j9.Long.prototype.toString.call(j0.updateDt):j1.longs===Number?new j9.LongBits(j0.updateDt.low>>>0,j0.updateDt.high>>>0).toNumber():j0.updateDt),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),null!=j0.state&&j0.hasOwnProperty("state")&&(j2.state=j0.state),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetChatroomMemberInfoRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.chatroomId="",j0.prototype.maxCount=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.chatroomId),null!=j0.maxCount&&j0.hasOwnProperty("maxCount")&&j1.uint32(16).int32(j0.maxCount),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetChatroomMemberInfoRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.chatroomId=j0.string();break;case 2:j3.maxCount=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("chatroomId"))throw j9.ProtocolError("missing required 'chatroomId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.chatroomId)?null!=j0.maxCount&&j0.hasOwnProperty("maxCount")&&!j9.isInteger(j0.maxCount)?"maxCount: integer expected":null:"chatroomId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GetChatroomMemberInfoRequest)return j0;var j1=new j10.GetChatroomMemberInfoRequest();return null!=j0.chatroomId&&(j1.chatroomId=String(j0.chatroomId)),null!=j0.maxCount&&(j1.maxCount=0|j0.maxCount),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.chatroomId="",j2.maxCount=0),null!=j0.chatroomId&&j0.hasOwnProperty("chatroomId")&&(j2.chatroomId=j0.chatroomId),null!=j0.maxCount&&j0.hasOwnProperty("maxCount")&&(j2.maxCount=j0.maxCount),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ChatroomMemberInfo=function(){function j0(j0){if(this.members=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.memberCount=0,j0.prototype.members=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.memberCount&&j0.hasOwnProperty("memberCount")&&j1.uint32(8).int32(j0.memberCount),null!=j0.members&&j0.members.length)for(var j2=0;j2<j0.members.length;++j2)j1.uint32(18).string(j0.members[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ChatroomMemberInfo();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.memberCount=j0.int32();break;case 2:j3.members&&j3.members.length||(j3.members=[]),j3.members.push(j0.string());break;default:j0.skipType(7&j4);}}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.memberCount&&j0.hasOwnProperty("memberCount")&&!j9.isInteger(j0.memberCount))return"memberCount: integer expected";if(null!=j0.members&&j0.hasOwnProperty("members")){if(!Array.isArray(j0.members))return"members: array expected";for(var j1=0;j1<j0.members.length;++j1)if(!j9.isString(j0.members[j1]))return"members: string[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ChatroomMemberInfo)return j0;var j1=new j10.ChatroomMemberInfo();if(null!=j0.memberCount&&(j1.memberCount=0|j0.memberCount),j0.members){if(!Array.isArray(j0.members))throw TypeError(".ChatroomMemberInfo.members: array expected");j1.members=[];for(var j2=0;j2<j0.members.length;++j2)j1.members[j2]=String(j0.members[j2]);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.members=[]),j1.defaults&&(j2.memberCount=0),null!=j0.memberCount&&j0.hasOwnProperty("memberCount")&&(j2.memberCount=j0.memberCount),j0.members&&j0.members.length){j2.members=[];for(var j3=0;j3<j0.members.length;++j3)j2.members[j3]=j0.members[j3];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.INT64Buf=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.id=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.id),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.INT64Buf();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.id=j0.int64();else j0.skipType(7&j4);}if(!j3.hasOwnProperty("id"))throw j9.ProtocolError("missing required 'id'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.id)||j0.id&&j9.isInteger(j0.id.low)&&j9.isInteger(j0.id.high)?null:"id: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.INT64Buf)return j0;var j1=new j10.INT64Buf();return null!=j0.id&&(j9.Long?(j1.id=j9.Long.fromValue(j0.id)).unsigned=!1:"string"==typeof j0.id?j1.id=parseInt(j0.id,10):"number"==typeof j0.id?j1.id=j0.id:"object"===(0,j3.default)(j0.id)&&(j1.id=new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j9.Long){var j3=new j9.Long(0,0,!1);j2.id=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.id=j1.longs===String?"0":0;return null!=j0.id&&j0.hasOwnProperty("id")&&("number"==typeof j0.id?j2.id=j1.longs===String?String(j0.id):j0.id:j2.id=j1.longs===String?j9.Long.prototype.toString.call(j0.id):j1.longs===Number?new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber():j0.id),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.INT64ListBuf=function(){function j0(j0){if(this.id=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.id=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.id&&j0.id.length)for(var j2=0;j2<j0.id.length;++j2)j1.uint32(8).int64(j0.id[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.INT64ListBuf();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1){if(j3.id&&j3.id.length||(j3.id=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.id.push(j0.int64());else j3.id.push(j0.int64());}else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.id&&j0.hasOwnProperty("id")){if(!Array.isArray(j0.id))return"id: array expected";for(var j1=0;j1<j0.id.length;++j1)if(!(j9.isInteger(j0.id[j1])||j0.id[j1]&&j9.isInteger(j0.id[j1].low)&&j9.isInteger(j0.id[j1].high)))return"id: integer|Long[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.INT64ListBuf)return j0;var j1=new j10.INT64ListBuf();if(j0.id){if(!Array.isArray(j0.id))throw TypeError(".INT64ListBuf.id: array expected");j1.id=[];for(var j2=0;j2<j0.id.length;++j2)j9.Long?(j1.id[j2]=j9.Long.fromValue(j0.id[j2])).unsigned=!1:"string"==typeof j0.id[j2]?j1.id[j2]=parseInt(j0.id[j2],10):"number"==typeof j0.id[j2]?j1.id[j2]=j0.id[j2]:"object"===(0,j3.default)(j0.id[j2])&&(j1.id[j2]=new j9.LongBits(j0.id[j2].low>>>0,j0.id[j2].high>>>0).toNumber());}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.id=[]),j0.id&&j0.id.length){j2.id=[];for(var j3=0;j3<j0.id.length;++j3)"number"==typeof j0.id[j3]?j2.id[j3]=j1.longs===String?String(j0.id[j3]):j0.id[j3]:j2.id[j3]=j1.longs===String?j9.Long.prototype.toString.call(j0.id[j3]):j1.longs===Number?new j9.LongBits(j0.id[j3].low>>>0,j0.id[j3].high>>>0).toNumber():j0.id[j3];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.NotifyRecallMessage=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.id=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.fromUser="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.id),j1.uint32(18).string(j0.fromUser),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.NotifyRecallMessage();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.id=j0.int64();break;case 2:j3.fromUser=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("id"))throw j9.ProtocolError("missing required 'id'",{instance:j3});if(!j3.hasOwnProperty("fromUser"))throw j9.ProtocolError("missing required 'fromUser'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.id)||j0.id&&j9.isInteger(j0.id.low)&&j9.isInteger(j0.id.high)?j9.isString(j0.fromUser)?null:"fromUser: string expected":"id: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.NotifyRecallMessage)return j0;var j1=new j10.NotifyRecallMessage();return null!=j0.id&&(j9.Long?(j1.id=j9.Long.fromValue(j0.id)).unsigned=!1:"string"==typeof j0.id?j1.id=parseInt(j0.id,10):"number"==typeof j0.id?j1.id=j0.id:"object"===(0,j3.default)(j0.id)&&(j1.id=new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber())),null!=j0.fromUser&&(j1.fromUser=String(j0.fromUser)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.id=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.id=j1.longs===String?"0":0;j2.fromUser="";}return null!=j0.id&&j0.hasOwnProperty("id")&&("number"==typeof j0.id?j2.id=j1.longs===String?String(j0.id):j0.id:j2.id=j1.longs===String?j9.Long.prototype.toString.call(j0.id):j1.longs===Number?new j9.LongBits(j0.id.low>>>0,j0.id.high>>>0).toNumber():j0.id),null!=j0.fromUser&&j0.hasOwnProperty("fromUser")&&(j2.fromUser=j0.fromUser),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.BlackUserRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.uid="",j0.prototype.status=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.uid),j1.uint32(16).int32(j0.status),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.BlackUserRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.uid=j0.string();break;case 2:j3.status=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("uid"))throw j9.ProtocolError("missing required 'uid'",{instance:j3});if(!j3.hasOwnProperty("status"))throw j9.ProtocolError("missing required 'status'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.uid)?j9.isInteger(j0.status)?null:"status: integer expected":"uid: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.BlackUserRequest)return j0;var j1=new j10.BlackUserRequest();return null!=j0.uid&&(j1.uid=String(j0.uid)),null!=j0.status&&(j1.status=0|j0.status),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.uid="",j2.status=0),null!=j0.uid&&j0.hasOwnProperty("uid")&&(j2.uid=j0.uid),null!=j0.status&&j0.hasOwnProperty("status")&&(j2.status=j0.status),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.RouteRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.app="",j0.prototype.platform=0,j0.prototype.pushType=0,j0.prototype.deviceName="",j0.prototype.deviceVersion="",j0.prototype.phoneName="",j0.prototype.language="",j0.prototype.carrierName="",j0.prototype.appVersion="",j0.prototype.sdkVersion="",j0.prototype.wxAppId="",j0.prototype.wxAppKey="",j0.prototype.webAppId="",j0.prototype.webAppKey="",j0.prototype.host="",j0.prototype.signature="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),null!=j0.app&&j0.hasOwnProperty("app")&&j1.uint32(10).string(j0.app),null!=j0.platform&&j0.hasOwnProperty("platform")&&j1.uint32(16).int32(j0.platform),null!=j0.pushType&&j0.hasOwnProperty("pushType")&&j1.uint32(24).int32(j0.pushType),null!=j0.deviceName&&j0.hasOwnProperty("deviceName")&&j1.uint32(34).string(j0.deviceName),null!=j0.deviceVersion&&j0.hasOwnProperty("deviceVersion")&&j1.uint32(42).string(j0.deviceVersion),null!=j0.phoneName&&j0.hasOwnProperty("phoneName")&&j1.uint32(50).string(j0.phoneName),null!=j0.language&&j0.hasOwnProperty("language")&&j1.uint32(58).string(j0.language),null!=j0.carrierName&&j0.hasOwnProperty("carrierName")&&j1.uint32(66).string(j0.carrierName),null!=j0.appVersion&&j0.hasOwnProperty("appVersion")&&j1.uint32(74).string(j0.appVersion),null!=j0.sdkVersion&&j0.hasOwnProperty("sdkVersion")&&j1.uint32(82).string(j0.sdkVersion),null!=j0.wxAppId&&j0.hasOwnProperty("wxAppId")&&j1.uint32(90).string(j0.wxAppId),null!=j0.wxAppKey&&j0.hasOwnProperty("wxAppKey")&&j1.uint32(98).string(j0.wxAppKey),null!=j0.webAppId&&j0.hasOwnProperty("webAppId")&&j1.uint32(106).string(j0.webAppId),null!=j0.webAppKey&&j0.hasOwnProperty("webAppKey")&&j1.uint32(114).string(j0.webAppKey),null!=j0.host&&j0.hasOwnProperty("host")&&j1.uint32(122).string(j0.host),null!=j0.signature&&j0.hasOwnProperty("signature")&&j1.uint32(130).string(j0.signature),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.RouteRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.app=j0.string();break;case 2:j3.platform=j0.int32();break;case 3:j3.pushType=j0.int32();break;case 4:j3.deviceName=j0.string();break;case 5:j3.deviceVersion=j0.string();break;case 6:j3.phoneName=j0.string();break;case 7:j3.language=j0.string();break;case 8:j3.carrierName=j0.string();break;case 9:j3.appVersion=j0.string();break;case 10:j3.sdkVersion=j0.string();break;case 11:j3.wxAppId=j0.string();break;case 12:j3.wxAppKey=j0.string();break;case 13:j3.webAppId=j0.string();break;case 14:j3.webAppKey=j0.string();break;case 15:j3.host=j0.string();break;case 16:j3.signature=j0.string();break;default:j0.skipType(7&j4);}}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":null!=j0.app&&j0.hasOwnProperty("app")&&!j9.isString(j0.app)?"app: string expected":null!=j0.platform&&j0.hasOwnProperty("platform")&&!j9.isInteger(j0.platform)?"platform: integer expected":null!=j0.pushType&&j0.hasOwnProperty("pushType")&&!j9.isInteger(j0.pushType)?"pushType: integer expected":null!=j0.deviceName&&j0.hasOwnProperty("deviceName")&&!j9.isString(j0.deviceName)?"deviceName: string expected":null!=j0.deviceVersion&&j0.hasOwnProperty("deviceVersion")&&!j9.isString(j0.deviceVersion)?"deviceVersion: string expected":null!=j0.phoneName&&j0.hasOwnProperty("phoneName")&&!j9.isString(j0.phoneName)?"phoneName: string expected":null!=j0.language&&j0.hasOwnProperty("language")&&!j9.isString(j0.language)?"language: string expected":null!=j0.carrierName&&j0.hasOwnProperty("carrierName")&&!j9.isString(j0.carrierName)?"carrierName: string expected":null!=j0.appVersion&&j0.hasOwnProperty("appVersion")&&!j9.isString(j0.appVersion)?"appVersion: string expected":null!=j0.sdkVersion&&j0.hasOwnProperty("sdkVersion")&&!j9.isString(j0.sdkVersion)?"sdkVersion: string expected":null!=j0.wxAppId&&j0.hasOwnProperty("wxAppId")&&!j9.isString(j0.wxAppId)?"wxAppId: string expected":null!=j0.wxAppKey&&j0.hasOwnProperty("wxAppKey")&&!j9.isString(j0.wxAppKey)?"wxAppKey: string expected":null!=j0.webAppId&&j0.hasOwnProperty("webAppId")&&!j9.isString(j0.webAppId)?"webAppId: string expected":null!=j0.webAppKey&&j0.hasOwnProperty("webAppKey")&&!j9.isString(j0.webAppKey)?"webAppKey: string expected":null!=j0.host&&j0.hasOwnProperty("host")&&!j9.isString(j0.host)?"host: string expected":null!=j0.signature&&j0.hasOwnProperty("signature")&&!j9.isString(j0.signature)?"signature: string expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.RouteRequest)return j0;var j1=new j10.RouteRequest();return null!=j0.app&&(j1.app=String(j0.app)),null!=j0.platform&&(j1.platform=0|j0.platform),null!=j0.pushType&&(j1.pushType=0|j0.pushType),null!=j0.deviceName&&(j1.deviceName=String(j0.deviceName)),null!=j0.deviceVersion&&(j1.deviceVersion=String(j0.deviceVersion)),null!=j0.phoneName&&(j1.phoneName=String(j0.phoneName)),null!=j0.language&&(j1.language=String(j0.language)),null!=j0.carrierName&&(j1.carrierName=String(j0.carrierName)),null!=j0.appVersion&&(j1.appVersion=String(j0.appVersion)),null!=j0.sdkVersion&&(j1.sdkVersion=String(j0.sdkVersion)),null!=j0.wxAppId&&(j1.wxAppId=String(j0.wxAppId)),null!=j0.wxAppKey&&(j1.wxAppKey=String(j0.wxAppKey)),null!=j0.webAppId&&(j1.webAppId=String(j0.webAppId)),null!=j0.webAppKey&&(j1.webAppKey=String(j0.webAppKey)),null!=j0.host&&(j1.host=String(j0.host)),null!=j0.signature&&(j1.signature=String(j0.signature)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.app="",j2.platform=0,j2.pushType=0,j2.deviceName="",j2.deviceVersion="",j2.phoneName="",j2.language="",j2.carrierName="",j2.appVersion="",j2.sdkVersion="",j2.wxAppId="",j2.wxAppKey="",j2.webAppId="",j2.webAppKey="",j2.host="",j2.signature=""),null!=j0.app&&j0.hasOwnProperty("app")&&(j2.app=j0.app),null!=j0.platform&&j0.hasOwnProperty("platform")&&(j2.platform=j0.platform),null!=j0.pushType&&j0.hasOwnProperty("pushType")&&(j2.pushType=j0.pushType),null!=j0.deviceName&&j0.hasOwnProperty("deviceName")&&(j2.deviceName=j0.deviceName),null!=j0.deviceVersion&&j0.hasOwnProperty("deviceVersion")&&(j2.deviceVersion=j0.deviceVersion),null!=j0.phoneName&&j0.hasOwnProperty("phoneName")&&(j2.phoneName=j0.phoneName),null!=j0.language&&j0.hasOwnProperty("language")&&(j2.language=j0.language),null!=j0.carrierName&&j0.hasOwnProperty("carrierName")&&(j2.carrierName=j0.carrierName),null!=j0.appVersion&&j0.hasOwnProperty("appVersion")&&(j2.appVersion=j0.appVersion),null!=j0.sdkVersion&&j0.hasOwnProperty("sdkVersion")&&(j2.sdkVersion=j0.sdkVersion),null!=j0.wxAppId&&j0.hasOwnProperty("wxAppId")&&(j2.wxAppId=j0.wxAppId),null!=j0.wxAppKey&&j0.hasOwnProperty("wxAppKey")&&(j2.wxAppKey=j0.wxAppKey),null!=j0.webAppId&&j0.hasOwnProperty("webAppId")&&(j2.webAppId=j0.webAppId),null!=j0.webAppKey&&j0.hasOwnProperty("webAppKey")&&(j2.webAppKey=j0.webAppKey),null!=j0.host&&j0.hasOwnProperty("host")&&(j2.host=j0.host),null!=j0.signature&&j0.hasOwnProperty("signature")&&(j2.signature=j0.signature),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.AddressTriple=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.host="",j0.prototype.longPort=0,j0.prototype.shortPort=0,j0.prototype.wssPort=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.host),j1.uint32(16).int32(j0.longPort),j1.uint32(24).int32(j0.shortPort),null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&j1.uint32(32).int32(j0.wssPort),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.AddressTriple();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.host=j0.string();break;case 2:j3.longPort=j0.int32();break;case 3:j3.shortPort=j0.int32();break;case 4:j3.wssPort=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("host"))throw j9.ProtocolError("missing required 'host'",{instance:j3});if(!j3.hasOwnProperty("longPort"))throw j9.ProtocolError("missing required 'longPort'",{instance:j3});if(!j3.hasOwnProperty("shortPort"))throw j9.ProtocolError("missing required 'shortPort'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.host)?j9.isInteger(j0.longPort)?j9.isInteger(j0.shortPort)?null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&!j9.isInteger(j0.wssPort)?"wssPort: integer expected":null:"shortPort: integer expected":"longPort: integer expected":"host: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.AddressTriple)return j0;var j1=new j10.AddressTriple();return null!=j0.host&&(j1.host=String(j0.host)),null!=j0.longPort&&(j1.longPort=0|j0.longPort),null!=j0.shortPort&&(j1.shortPort=0|j0.shortPort),null!=j0.wssPort&&(j1.wssPort=0|j0.wssPort),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.host="",j2.longPort=0,j2.shortPort=0,j2.wssPort=0),null!=j0.host&&j0.hasOwnProperty("host")&&(j2.host=j0.host),null!=j0.longPort&&j0.hasOwnProperty("longPort")&&(j2.longPort=j0.longPort),null!=j0.shortPort&&j0.hasOwnProperty("shortPort")&&(j2.shortPort=j0.shortPort),null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&(j2.wssPort=j0.wssPort),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.RouteResponse=function(){function j0(j0){if(this.candidate=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.host="",j0.prototype.longPort=0,j0.prototype.shortPort=0,j0.prototype.thumbPara="",j0.prototype.node="",j0.prototype.commercial=0,j0.prototype.wssPort=0,j0.prototype.candidate=j9.emptyArray,j0.prototype.shortTcpPort=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.host),j1.uint32(16).int32(j0.longPort),j1.uint32(24).int32(j0.shortPort),null!=j0.thumbPara&&j0.hasOwnProperty("thumbPara")&&j1.uint32(34).string(j0.thumbPara),null!=j0.node&&j0.hasOwnProperty("node")&&j1.uint32(42).string(j0.node),null!=j0.commercial&&j0.hasOwnProperty("commercial")&&j1.uint32(48).int32(j0.commercial),null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&j1.uint32(56).int32(j0.wssPort),null!=j0.candidate&&j0.candidate.length)for(var j2=0;j2<j0.candidate.length;++j2)j10.AddressTriple.encode(j0.candidate[j2],j1.uint32(66).fork()).ldelim();return null!=j0.shortTcpPort&&j0.hasOwnProperty("shortTcpPort")&&j1.uint32(72).int32(j0.shortTcpPort),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.RouteResponse();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.host=j0.string();break;case 2:j3.longPort=j0.int32();break;case 3:j3.shortPort=j0.int32();break;case 4:j3.thumbPara=j0.string();break;case 5:j3.node=j0.string();break;case 6:j3.commercial=j0.int32();break;case 7:j3.wssPort=j0.int32();break;case 8:j3.candidate&&j3.candidate.length||(j3.candidate=[]),j3.candidate.push(j10.AddressTriple.decode(j0,j0.uint32()));break;case 9:j3.shortTcpPort=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("host"))throw j9.ProtocolError("missing required 'host'",{instance:j3});if(!j3.hasOwnProperty("longPort"))throw j9.ProtocolError("missing required 'longPort'",{instance:j3});if(!j3.hasOwnProperty("shortPort"))throw j9.ProtocolError("missing required 'shortPort'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.host))return"host: string expected";if(!j9.isInteger(j0.longPort))return"longPort: integer expected";if(!j9.isInteger(j0.shortPort))return"shortPort: integer expected";if(null!=j0.thumbPara&&j0.hasOwnProperty("thumbPara")&&!j9.isString(j0.thumbPara))return"thumbPara: string expected";if(null!=j0.node&&j0.hasOwnProperty("node")&&!j9.isString(j0.node))return"node: string expected";if(null!=j0.commercial&&j0.hasOwnProperty("commercial")&&!j9.isInteger(j0.commercial))return"commercial: integer expected";if(null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&!j9.isInteger(j0.wssPort))return"wssPort: integer expected";if(null!=j0.candidate&&j0.hasOwnProperty("candidate")){if(!Array.isArray(j0.candidate))return"candidate: array expected";for(var j1=0;j1<j0.candidate.length;++j1){var j2=j10.AddressTriple.verify(j0.candidate[j1]);if(j2)return"candidate."+j2;}}return null!=j0.shortTcpPort&&j0.hasOwnProperty("shortTcpPort")&&!j9.isInteger(j0.shortTcpPort)?"shortTcpPort: integer expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.RouteResponse)return j0;var j1=new j10.RouteResponse();if(null!=j0.host&&(j1.host=String(j0.host)),null!=j0.longPort&&(j1.longPort=0|j0.longPort),null!=j0.shortPort&&(j1.shortPort=0|j0.shortPort),null!=j0.thumbPara&&(j1.thumbPara=String(j0.thumbPara)),null!=j0.node&&(j1.node=String(j0.node)),null!=j0.commercial&&(j1.commercial=0|j0.commercial),null!=j0.wssPort&&(j1.wssPort=0|j0.wssPort),j0.candidate){if(!Array.isArray(j0.candidate))throw TypeError(".RouteResponse.candidate: array expected");j1.candidate=[];for(var j2=0;j2<j0.candidate.length;++j2){if("object"!==(0,j3.default)(j0.candidate[j2]))throw TypeError(".RouteResponse.candidate: object expected");j1.candidate[j2]=j10.AddressTriple.fromObject(j0.candidate[j2]);}}return null!=j0.shortTcpPort&&(j1.shortTcpPort=0|j0.shortTcpPort),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.candidate=[]),j1.defaults&&(j2.host="",j2.longPort=0,j2.shortPort=0,j2.thumbPara="",j2.node="",j2.commercial=0,j2.wssPort=0,j2.shortTcpPort=0),null!=j0.host&&j0.hasOwnProperty("host")&&(j2.host=j0.host),null!=j0.longPort&&j0.hasOwnProperty("longPort")&&(j2.longPort=j0.longPort),null!=j0.shortPort&&j0.hasOwnProperty("shortPort")&&(j2.shortPort=j0.shortPort),null!=j0.thumbPara&&j0.hasOwnProperty("thumbPara")&&(j2.thumbPara=j0.thumbPara),null!=j0.node&&j0.hasOwnProperty("node")&&(j2.node=j0.node),null!=j0.commercial&&j0.hasOwnProperty("commercial")&&(j2.commercial=j0.commercial),null!=j0.wssPort&&j0.hasOwnProperty("wssPort")&&(j2.wssPort=j0.wssPort),j0.candidate&&j0.candidate.length){j2.candidate=[];for(var j3=0;j3<j0.candidate.length;++j3)j2.candidate[j3]=j10.AddressTriple.toObject(j0.candidate[j3],j1);}return null!=j0.shortTcpPort&&j0.hasOwnProperty("shortTcpPort")&&(j2.shortTcpPort=j0.shortTcpPort),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.GetTokenRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.userId="",j0.prototype.clientId="",j0.prototype.platform=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.userId),j1.uint32(18).string(j0.clientId),null!=j0.platform&&j0.hasOwnProperty("platform")&&j1.uint32(24).int32(j0.platform),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.GetTokenRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.userId=j0.string();break;case 2:j3.clientId=j0.string();break;case 3:j3.platform=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("userId"))throw j9.ProtocolError("missing required 'userId'",{instance:j3});if(!j3.hasOwnProperty("clientId"))throw j9.ProtocolError("missing required 'clientId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.userId)?j9.isString(j0.clientId)?null!=j0.platform&&j0.hasOwnProperty("platform")&&!j9.isInteger(j0.platform)?"platform: integer expected":null:"clientId: string expected":"userId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.GetTokenRequest)return j0;var j1=new j10.GetTokenRequest();return null!=j0.userId&&(j1.userId=String(j0.userId)),null!=j0.clientId&&(j1.clientId=String(j0.clientId)),null!=j0.platform&&(j1.platform=0|j0.platform),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.userId="",j2.clientId="",j2.platform=0),null!=j0.userId&&j0.hasOwnProperty("userId")&&(j2.userId=j0.userId),null!=j0.clientId&&j0.hasOwnProperty("clientId")&&(j2.clientId=j0.clientId),null!=j0.platform&&j0.hasOwnProperty("platform")&&(j2.platform=j0.platform),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.LoadRemoteMessages=function(){function j0(j0){if(this.contentType=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.conversation=null,j0.prototype.beforeUid=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.count=0,j0.prototype.contentType=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j10.Conversation.encode(j0.conversation,j1.uint32(10).fork()).ldelim(),j1.uint32(16).int64(j0.beforeUid),j1.uint32(24).int32(j0.count),null!=j0.contentType&&j0.contentType.length)for(var j2=0;j2<j0.contentType.length;++j2)j1.uint32(32).int32(j0.contentType[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.LoadRemoteMessages();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.conversation=j10.Conversation.decode(j0,j0.uint32());break;case 2:j3.beforeUid=j0.int64();break;case 3:j3.count=j0.int32();break;case 4:if(j3.contentType&&j3.contentType.length||(j3.contentType=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.contentType.push(j0.int32());else j3.contentType.push(j0.int32());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("conversation"))throw j9.ProtocolError("missing required 'conversation'",{instance:j3});if(!j3.hasOwnProperty("beforeUid"))throw j9.ProtocolError("missing required 'beforeUid'",{instance:j3});if(!j3.hasOwnProperty("count"))throw j9.ProtocolError("missing required 'count'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";var j1=j10.Conversation.verify(j0.conversation);if(j1)return"conversation."+j1;if(!(j9.isInteger(j0.beforeUid)||j0.beforeUid&&j9.isInteger(j0.beforeUid.low)&&j9.isInteger(j0.beforeUid.high)))return"beforeUid: integer|Long expected";if(!j9.isInteger(j0.count))return"count: integer expected";if(null!=j0.contentType&&j0.hasOwnProperty("contentType")){if(!Array.isArray(j0.contentType))return"contentType: array expected";for(var j2=0;j2<j0.contentType.length;++j2)if(!j9.isInteger(j0.contentType[j2]))return"contentType: integer[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.LoadRemoteMessages)return j0;var j1=new j10.LoadRemoteMessages();if(null!=j0.conversation){if("object"!==(0,j3.default)(j0.conversation))throw TypeError(".LoadRemoteMessages.conversation: object expected");j1.conversation=j10.Conversation.fromObject(j0.conversation);}if(null!=j0.beforeUid&&(j9.Long?(j1.beforeUid=j9.Long.fromValue(j0.beforeUid)).unsigned=!1:"string"==typeof j0.beforeUid?j1.beforeUid=parseInt(j0.beforeUid,10):"number"==typeof j0.beforeUid?j1.beforeUid=j0.beforeUid:"object"===(0,j3.default)(j0.beforeUid)&&(j1.beforeUid=new j9.LongBits(j0.beforeUid.low>>>0,j0.beforeUid.high>>>0).toNumber())),null!=j0.count&&(j1.count=0|j0.count),j0.contentType){if(!Array.isArray(j0.contentType))throw TypeError(".LoadRemoteMessages.contentType: array expected");j1.contentType=[];for(var j2=0;j2<j0.contentType.length;++j2)j1.contentType[j2]=0|j0.contentType[j2];}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.contentType=[]),j1.defaults){if(j2.conversation=null,j9.Long){var j3=new j9.Long(0,0,!1);j2.beforeUid=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.beforeUid=j1.longs===String?"0":0;j2.count=0;}if(null!=j0.conversation&&j0.hasOwnProperty("conversation")&&(j2.conversation=j10.Conversation.toObject(j0.conversation,j1)),null!=j0.beforeUid&&j0.hasOwnProperty("beforeUid")&&("number"==typeof j0.beforeUid?j2.beforeUid=j1.longs===String?String(j0.beforeUid):j0.beforeUid:j2.beforeUid=j1.longs===String?j9.Long.prototype.toString.call(j0.beforeUid):j1.longs===Number?new j9.LongBits(j0.beforeUid.low>>>0,j0.beforeUid.high>>>0).toNumber():j0.beforeUid),null!=j0.count&&j0.hasOwnProperty("count")&&(j2.count=j0.count),j0.contentType&&j0.contentType.length){j2.contentType=[];for(var j4=0;j4<j0.contentType.length;++j4)j2.contentType[j4]=j0.contentType[j4];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.LoadLineMessages=function(){function j0(j0){if(this.contentType=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.line=0,j0.prototype.beforeUid=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.count=0,j0.prototype.contentType=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(8).int32(j0.line),j1.uint32(16).int64(j0.beforeUid),j1.uint32(24).int32(j0.count),null!=j0.contentType&&j0.contentType.length)for(var j2=0;j2<j0.contentType.length;++j2)j1.uint32(32).int32(j0.contentType[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.LoadLineMessages();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.line=j0.int32();break;case 2:j3.beforeUid=j0.int64();break;case 3:j3.count=j0.int32();break;case 4:if(j3.contentType&&j3.contentType.length||(j3.contentType=[]),2==(7&j4))for(var j5=j0.uint32()+j0.pos;j0.pos<j5;)j3.contentType.push(j0.int32());else j3.contentType.push(j0.int32());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("line"))throw j9.ProtocolError("missing required 'line'",{instance:j3});if(!j3.hasOwnProperty("beforeUid"))throw j9.ProtocolError("missing required 'beforeUid'",{instance:j3});if(!j3.hasOwnProperty("count"))throw j9.ProtocolError("missing required 'count'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isInteger(j0.line))return"line: integer expected";if(!(j9.isInteger(j0.beforeUid)||j0.beforeUid&&j9.isInteger(j0.beforeUid.low)&&j9.isInteger(j0.beforeUid.high)))return"beforeUid: integer|Long expected";if(!j9.isInteger(j0.count))return"count: integer expected";if(null!=j0.contentType&&j0.hasOwnProperty("contentType")){if(!Array.isArray(j0.contentType))return"contentType: array expected";for(var j1=0;j1<j0.contentType.length;++j1)if(!j9.isInteger(j0.contentType[j1]))return"contentType: integer[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.LoadLineMessages)return j0;var j1=new j10.LoadLineMessages();if(null!=j0.line&&(j1.line=0|j0.line),null!=j0.beforeUid&&(j9.Long?(j1.beforeUid=j9.Long.fromValue(j0.beforeUid)).unsigned=!1:"string"==typeof j0.beforeUid?j1.beforeUid=parseInt(j0.beforeUid,10):"number"==typeof j0.beforeUid?j1.beforeUid=j0.beforeUid:"object"===(0,j3.default)(j0.beforeUid)&&(j1.beforeUid=new j9.LongBits(j0.beforeUid.low>>>0,j0.beforeUid.high>>>0).toNumber())),null!=j0.count&&(j1.count=0|j0.count),j0.contentType){if(!Array.isArray(j0.contentType))throw TypeError(".LoadLineMessages.contentType: array expected");j1.contentType=[];for(var j2=0;j2<j0.contentType.length;++j2)j1.contentType[j2]=0|j0.contentType[j2];}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.contentType=[]),j1.defaults){if(j2.line=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.beforeUid=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.beforeUid=j1.longs===String?"0":0;j2.count=0;}if(null!=j0.line&&j0.hasOwnProperty("line")&&(j2.line=j0.line),null!=j0.beforeUid&&j0.hasOwnProperty("beforeUid")&&("number"==typeof j0.beforeUid?j2.beforeUid=j1.longs===String?String(j0.beforeUid):j0.beforeUid:j2.beforeUid=j1.longs===String?j9.Long.prototype.toString.call(j0.beforeUid):j1.longs===Number?new j9.LongBits(j0.beforeUid.low>>>0,j0.beforeUid.high>>>0).toNumber():j0.beforeUid),null!=j0.count&&j0.hasOwnProperty("count")&&(j2.count=j0.count),j0.contentType&&j0.contentType.length){j2.contentType=[];for(var j4=0;j4<j0.contentType.length;++j4)j2.contentType[j4]=j0.contentType[j4];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.MultiCastMessage=function(){function j0(j0){if(this.to=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.fromUser="",j0.prototype.content=null,j0.prototype.to=j9.emptyArray,j0.prototype.line=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.fromUser),j10.MessageContent.encode(j0.content,j1.uint32(18).fork()).ldelim(),null!=j0.to&&j0.to.length)for(var j2=0;j2<j0.to.length;++j2)j1.uint32(26).string(j0.to[j2]);return j1.uint32(32).int32(j0.line),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.MultiCastMessage();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.fromUser=j0.string();break;case 2:j3.content=j10.MessageContent.decode(j0,j0.uint32());break;case 3:j3.to&&j3.to.length||(j3.to=[]),j3.to.push(j0.string());break;case 4:j3.line=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("fromUser"))throw j9.ProtocolError("missing required 'fromUser'",{instance:j3});if(!j3.hasOwnProperty("content"))throw j9.ProtocolError("missing required 'content'",{instance:j3});if(!j3.hasOwnProperty("line"))throw j9.ProtocolError("missing required 'line'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.fromUser))return"fromUser: string expected";var j1=j10.MessageContent.verify(j0.content);if(j1)return"content."+j1;if(null!=j0.to&&j0.hasOwnProperty("to")){if(!Array.isArray(j0.to))return"to: array expected";for(var j2=0;j2<j0.to.length;++j2)if(!j9.isString(j0.to[j2]))return"to: string[] expected";}return j9.isInteger(j0.line)?null:"line: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.MultiCastMessage)return j0;var j1=new j10.MultiCastMessage();if(null!=j0.fromUser&&(j1.fromUser=String(j0.fromUser)),null!=j0.content){if("object"!==(0,j3.default)(j0.content))throw TypeError(".MultiCastMessage.content: object expected");j1.content=j10.MessageContent.fromObject(j0.content);}if(j0.to){if(!Array.isArray(j0.to))throw TypeError(".MultiCastMessage.to: array expected");j1.to=[];for(var j2=0;j2<j0.to.length;++j2)j1.to[j2]=String(j0.to[j2]);}return null!=j0.line&&(j1.line=0|j0.line),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.to=[]),j1.defaults&&(j2.fromUser="",j2.content=null,j2.line=0),null!=j0.fromUser&&j0.hasOwnProperty("fromUser")&&(j2.fromUser=j0.fromUser),null!=j0.content&&j0.hasOwnProperty("content")&&(j2.content=j10.MessageContent.toObject(j0.content,j1)),j0.to&&j0.to.length){j2.to=[];for(var j3=0;j3<j0.to.length;++j3)j2.to[j3]=j0.to[j3];}return null!=j0.line&&j0.hasOwnProperty("line")&&(j2.line=j0.line),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.RecallMultiMessage=function(){function j0(j0){if(this.target=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.target=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(8).int64(j0.messageId),null!=j0.target&&j0.target.length)for(var j2=0;j2<j0.target.length;++j2)j1.uint32(18).string(j0.target[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.RecallMultiMessage();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.messageId=j0.int64();break;case 2:j3.target&&j3.target.length||(j3.target=[]),j3.target.push(j0.string());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("messageId"))throw j9.ProtocolError("missing required 'messageId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!(j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high)))return"messageId: integer|Long expected";if(null!=j0.target&&j0.hasOwnProperty("target")){if(!Array.isArray(j0.target))return"target: array expected";for(var j1=0;j1<j0.target.length;++j1)if(!j9.isString(j0.target[j1]))return"target: string[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.RecallMultiMessage)return j0;var j1=new j10.RecallMultiMessage();if(null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),j0.target){if(!Array.isArray(j0.target))throw TypeError(".RecallMultiMessage.target: array expected");j1.target=[];for(var j2=0;j2<j0.target.length;++j2)j1.target[j2]=String(j0.target[j2]);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.target=[]),j1.defaults)if(j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;if(null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),j0.target&&j0.target.length){j2.target=[];for(var j4=0;j4<j0.target.length;++j4)j2.target[j4]=j0.target[j4];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.UpdateMessageContent=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.content=null,j0.prototype.distribute=0,j0.prototype.updateTime=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.messageId),j10.MessageContent.encode(j0.content,j1.uint32(18).fork()).ldelim(),j1.uint32(24).int32(j0.distribute),null!=j0.updateTime&&j0.hasOwnProperty("updateTime")&&j1.uint32(32).int32(j0.updateTime),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.UpdateMessageContent();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.messageId=j0.int64();break;case 2:j3.content=j10.MessageContent.decode(j0,j0.uint32());break;case 3:j3.distribute=j0.int32();break;case 4:j3.updateTime=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("messageId"))throw j9.ProtocolError("missing required 'messageId'",{instance:j3});if(!j3.hasOwnProperty("content"))throw j9.ProtocolError("missing required 'content'",{instance:j3});if(!j3.hasOwnProperty("distribute"))throw j9.ProtocolError("missing required 'distribute'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!(j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high)))return"messageId: integer|Long expected";var j1=j10.MessageContent.verify(j0.content);return j1?"content."+j1:j9.isInteger(j0.distribute)?null!=j0.updateTime&&j0.hasOwnProperty("updateTime")&&!j9.isInteger(j0.updateTime)?"updateTime: integer expected":null:"distribute: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.UpdateMessageContent)return j0;var j1=new j10.UpdateMessageContent();if(null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),null!=j0.content){if("object"!==(0,j3.default)(j0.content))throw TypeError(".UpdateMessageContent.content: object expected");j1.content=j10.MessageContent.fromObject(j0.content);}return null!=j0.distribute&&(j1.distribute=0|j0.distribute),null!=j0.updateTime&&(j1.updateTime=0|j0.updateTime),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;j2.content=null,j2.distribute=0,j2.updateTime=0;}return null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),null!=j0.content&&j0.hasOwnProperty("content")&&(j2.content=j10.MessageContent.toObject(j0.content,j1)),null!=j0.distribute&&j0.hasOwnProperty("distribute")&&(j2.distribute=j0.distribute),null!=j0.updateTime&&j0.hasOwnProperty("updateTime")&&(j2.updateTime=j0.updateTime),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.FileRecord=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.fromUser="",j0.prototype.conversation=null,j0.prototype.name="",j0.prototype.url="",j0.prototype.size=0,j0.prototype.downloadCount=0,j0.prototype.dt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.messageId),j1.uint32(18).string(j0.fromUser),null!=j0.conversation&&j0.hasOwnProperty("conversation")&&j10.Conversation.encode(j0.conversation,j1.uint32(26).fork()).ldelim(),null!=j0.name&&j0.hasOwnProperty("name")&&j1.uint32(34).string(j0.name),j1.uint32(42).string(j0.url),j1.uint32(48).int32(j0.size),null!=j0.downloadCount&&j0.hasOwnProperty("downloadCount")&&j1.uint32(56).int32(j0.downloadCount),j1.uint32(64).int64(j0.dt),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.FileRecord();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.messageId=j0.int64();break;case 2:j3.fromUser=j0.string();break;case 3:j3.conversation=j10.Conversation.decode(j0,j0.uint32());break;case 4:j3.name=j0.string();break;case 5:j3.url=j0.string();break;case 6:j3.size=j0.int32();break;case 7:j3.downloadCount=j0.int32();break;case 8:j3.dt=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("messageId"))throw j9.ProtocolError("missing required 'messageId'",{instance:j3});if(!j3.hasOwnProperty("fromUser"))throw j9.ProtocolError("missing required 'fromUser'",{instance:j3});if(!j3.hasOwnProperty("url"))throw j9.ProtocolError("missing required 'url'",{instance:j3});if(!j3.hasOwnProperty("size"))throw j9.ProtocolError("missing required 'size'",{instance:j3});if(!j3.hasOwnProperty("dt"))throw j9.ProtocolError("missing required 'dt'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!(j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high)))return"messageId: integer|Long expected";if(!j9.isString(j0.fromUser))return"fromUser: string expected";if(null!=j0.conversation&&j0.hasOwnProperty("conversation")){var j1=j10.Conversation.verify(j0.conversation);if(j1)return"conversation."+j1;}return null!=j0.name&&j0.hasOwnProperty("name")&&!j9.isString(j0.name)?"name: string expected":j9.isString(j0.url)?j9.isInteger(j0.size)?null!=j0.downloadCount&&j0.hasOwnProperty("downloadCount")&&!j9.isInteger(j0.downloadCount)?"downloadCount: integer expected":j9.isInteger(j0.dt)||j0.dt&&j9.isInteger(j0.dt.low)&&j9.isInteger(j0.dt.high)?null:"dt: integer|Long expected":"size: integer expected":"url: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.FileRecord)return j0;var j1=new j10.FileRecord();if(null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),null!=j0.fromUser&&(j1.fromUser=String(j0.fromUser)),null!=j0.conversation){if("object"!==(0,j3.default)(j0.conversation))throw TypeError(".FileRecord.conversation: object expected");j1.conversation=j10.Conversation.fromObject(j0.conversation);}return null!=j0.name&&(j1.name=String(j0.name)),null!=j0.url&&(j1.url=String(j0.url)),null!=j0.size&&(j1.size=0|j0.size),null!=j0.downloadCount&&(j1.downloadCount=0|j0.downloadCount),null!=j0.dt&&(j9.Long?(j1.dt=j9.Long.fromValue(j0.dt)).unsigned=!1:"string"==typeof j0.dt?j1.dt=parseInt(j0.dt,10):"number"==typeof j0.dt?j1.dt=j0.dt:"object"===(0,j3.default)(j0.dt)&&(j1.dt=new j9.LongBits(j0.dt.low>>>0,j0.dt.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;if(j2.fromUser="",j2.conversation=null,j2.name="",j2.url="",j2.size=0,j2.downloadCount=0,j9.Long){j3=new j9.Long(0,0,!1);j2.dt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.dt=j1.longs===String?"0":0;}return null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),null!=j0.fromUser&&j0.hasOwnProperty("fromUser")&&(j2.fromUser=j0.fromUser),null!=j0.conversation&&j0.hasOwnProperty("conversation")&&(j2.conversation=j10.Conversation.toObject(j0.conversation,j1)),null!=j0.name&&j0.hasOwnProperty("name")&&(j2.name=j0.name),null!=j0.url&&j0.hasOwnProperty("url")&&(j2.url=j0.url),null!=j0.size&&j0.hasOwnProperty("size")&&(j2.size=j0.size),null!=j0.downloadCount&&j0.hasOwnProperty("downloadCount")&&(j2.downloadCount=j0.downloadCount),null!=j0.dt&&j0.hasOwnProperty("dt")&&("number"==typeof j0.dt?j2.dt=j1.longs===String?String(j0.dt):j0.dt:j2.dt=j1.longs===String?j9.Long.prototype.toString.call(j0.dt):j1.longs===Number?new j9.LongBits(j0.dt.low>>>0,j0.dt.high>>>0).toNumber():j0.dt),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.LoadFileRecordReq=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.conversation=null,j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.count=0,j0.prototype.from="",j0.prototype.order=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),null!=j0.conversation&&j0.hasOwnProperty("conversation")&&j10.Conversation.encode(j0.conversation,j1.uint32(10).fork()).ldelim(),j1.uint32(16).int64(j0.messageId),j1.uint32(24).int32(j0.count),null!=j0.from&&j0.hasOwnProperty("from")&&j1.uint32(34).string(j0.from),null!=j0.order&&j0.hasOwnProperty("order")&&j1.uint32(40).int32(j0.order),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.LoadFileRecordReq();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.conversation=j10.Conversation.decode(j0,j0.uint32());break;case 2:j3.messageId=j0.int64();break;case 3:j3.count=j0.int32();break;case 4:j3.from=j0.string();break;case 5:j3.order=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("messageId"))throw j9.ProtocolError("missing required 'messageId'",{instance:j3});if(!j3.hasOwnProperty("count"))throw j9.ProtocolError("missing required 'count'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.conversation&&j0.hasOwnProperty("conversation")){var j1=j10.Conversation.verify(j0.conversation);if(j1)return"conversation."+j1;}return j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high)?j9.isInteger(j0.count)?null!=j0.from&&j0.hasOwnProperty("from")&&!j9.isString(j0.from)?"from: string expected":null!=j0.order&&j0.hasOwnProperty("order")&&!j9.isInteger(j0.order)?"order: integer expected":null:"count: integer expected":"messageId: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.LoadFileRecordReq)return j0;var j1=new j10.LoadFileRecordReq();if(null!=j0.conversation){if("object"!==(0,j3.default)(j0.conversation))throw TypeError(".LoadFileRecordReq.conversation: object expected");j1.conversation=j10.Conversation.fromObject(j0.conversation);}return null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),null!=j0.count&&(j1.count=0|j0.count),null!=j0.from&&(j1.from=String(j0.from)),null!=j0.order&&(j1.order=0|j0.order),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.conversation=null,j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;j2.count=0,j2.from="",j2.order=0;}return null!=j0.conversation&&j0.hasOwnProperty("conversation")&&(j2.conversation=j10.Conversation.toObject(j0.conversation,j1)),null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),null!=j0.count&&j0.hasOwnProperty("count")&&(j2.count=j0.count),null!=j0.from&&j0.hasOwnProperty("from")&&(j2.from=j0.from),null!=j0.order&&j0.hasOwnProperty("order")&&(j2.order=j0.order),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.LoadFileRecordRes=function(){function j0(j0){if(this.record=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.record=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.record&&j0.record.length)for(var j2=0;j2<j0.record.length;++j2)j10.FileRecord.encode(j0.record[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.LoadFileRecordRes();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.record&&j3.record.length||(j3.record=[]),j3.record.push(j10.FileRecord.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.record&&j0.hasOwnProperty("record")){if(!Array.isArray(j0.record))return"record: array expected";for(var j1=0;j1<j0.record.length;++j1){var j2=j10.FileRecord.verify(j0.record[j1]);if(j2)return"record."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.LoadFileRecordRes)return j0;var j1=new j10.LoadFileRecordRes();if(j0.record){if(!Array.isArray(j0.record))throw TypeError(".LoadFileRecordRes.record: array expected");j1.record=[];for(var j2=0;j2<j0.record.length;++j2){if("object"!==(0,j3.default)(j0.record[j2]))throw TypeError(".LoadFileRecordRes.record: object expected");j1.record[j2]=j10.FileRecord.fromObject(j0.record[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.record=[]),j0.record&&j0.record.length){j2.record=[];for(var j3=0;j3<j0.record.length;++j3)j2.record[j3]=j10.FileRecord.toObject(j0.record[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.SearchFileRecordReq=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.keyword="",j0.prototype.conversation=null,j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.count=0,j0.prototype.from="",j0.prototype.order=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.keyword),null!=j0.conversation&&j0.hasOwnProperty("conversation")&&j10.Conversation.encode(j0.conversation,j1.uint32(18).fork()).ldelim(),j1.uint32(24).int64(j0.messageId),j1.uint32(32).int32(j0.count),null!=j0.from&&j0.hasOwnProperty("from")&&j1.uint32(42).string(j0.from),null!=j0.order&&j0.hasOwnProperty("order")&&j1.uint32(48).int32(j0.order),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.SearchFileRecordReq();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.keyword=j0.string();break;case 2:j3.conversation=j10.Conversation.decode(j0,j0.uint32());break;case 3:j3.messageId=j0.int64();break;case 4:j3.count=j0.int32();break;case 5:j3.from=j0.string();break;case 6:j3.order=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("keyword"))throw j9.ProtocolError("missing required 'keyword'",{instance:j3});if(!j3.hasOwnProperty("messageId"))throw j9.ProtocolError("missing required 'messageId'",{instance:j3});if(!j3.hasOwnProperty("count"))throw j9.ProtocolError("missing required 'count'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.keyword))return"keyword: string expected";if(null!=j0.conversation&&j0.hasOwnProperty("conversation")){var j1=j10.Conversation.verify(j0.conversation);if(j1)return"conversation."+j1;}return j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high)?j9.isInteger(j0.count)?null!=j0.from&&j0.hasOwnProperty("from")&&!j9.isString(j0.from)?"from: string expected":null!=j0.order&&j0.hasOwnProperty("order")&&!j9.isInteger(j0.order)?"order: integer expected":null:"count: integer expected":"messageId: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.SearchFileRecordReq)return j0;var j1=new j10.SearchFileRecordReq();if(null!=j0.keyword&&(j1.keyword=String(j0.keyword)),null!=j0.conversation){if("object"!==(0,j3.default)(j0.conversation))throw TypeError(".SearchFileRecordReq.conversation: object expected");j1.conversation=j10.Conversation.fromObject(j0.conversation);}return null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),null!=j0.count&&(j1.count=0|j0.count),null!=j0.from&&(j1.from=String(j0.from)),null!=j0.order&&(j1.order=0|j0.order),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.keyword="",j2.conversation=null,j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;j2.count=0,j2.from="",j2.order=0;}return null!=j0.keyword&&j0.hasOwnProperty("keyword")&&(j2.keyword=j0.keyword),null!=j0.conversation&&j0.hasOwnProperty("conversation")&&(j2.conversation=j10.Conversation.toObject(j0.conversation,j1)),null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),null!=j0.count&&j0.hasOwnProperty("count")&&(j2.count=j0.count),null!=j0.from&&j0.hasOwnProperty("from")&&(j2.from=j0.from),null!=j0.order&&j0.hasOwnProperty("order")&&(j2.order=j0.order),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConferenceRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.sessionId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.request="",j0.prototype.data="",j0.prototype.roomId="",j0.prototype.advance=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),null!=j0.sessionId&&j0.hasOwnProperty("sessionId")&&j1.uint32(8).int64(j0.sessionId),j1.uint32(18).string(j0.request),null!=j0.data&&j0.hasOwnProperty("data")&&j1.uint32(26).string(j0.data),null!=j0.roomId&&j0.hasOwnProperty("roomId")&&j1.uint32(34).string(j0.roomId),null!=j0.advance&&j0.hasOwnProperty("advance")&&j1.uint32(40).int32(j0.advance),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConferenceRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.sessionId=j0.int64();break;case 2:j3.request=j0.string();break;case 3:j3.data=j0.string();break;case 4:j3.roomId=j0.string();break;case 5:j3.advance=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("request"))throw j9.ProtocolError("missing required 'request'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":null!=j0.sessionId&&j0.hasOwnProperty("sessionId")&&!(j9.isInteger(j0.sessionId)||j0.sessionId&&j9.isInteger(j0.sessionId.low)&&j9.isInteger(j0.sessionId.high))?"sessionId: integer|Long expected":j9.isString(j0.request)?null!=j0.data&&j0.hasOwnProperty("data")&&!j9.isString(j0.data)?"data: string expected":null!=j0.roomId&&j0.hasOwnProperty("roomId")&&!j9.isString(j0.roomId)?"roomId: string expected":null!=j0.advance&&j0.hasOwnProperty("advance")&&!j9.isInteger(j0.advance)?"advance: integer expected":null:"request: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.ConferenceRequest)return j0;var j1=new j10.ConferenceRequest();return null!=j0.sessionId&&(j9.Long?(j1.sessionId=j9.Long.fromValue(j0.sessionId)).unsigned=!1:"string"==typeof j0.sessionId?j1.sessionId=parseInt(j0.sessionId,10):"number"==typeof j0.sessionId?j1.sessionId=j0.sessionId:"object"===(0,j3.default)(j0.sessionId)&&(j1.sessionId=new j9.LongBits(j0.sessionId.low>>>0,j0.sessionId.high>>>0).toNumber())),null!=j0.request&&(j1.request=String(j0.request)),null!=j0.data&&(j1.data=String(j0.data)),null!=j0.roomId&&(j1.roomId=String(j0.roomId)),null!=j0.advance&&(j1.advance=0|j0.advance),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.sessionId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.sessionId=j1.longs===String?"0":0;j2.request="",j2.data="",j2.roomId="",j2.advance=0;}return null!=j0.sessionId&&j0.hasOwnProperty("sessionId")&&("number"==typeof j0.sessionId?j2.sessionId=j1.longs===String?String(j0.sessionId):j0.sessionId:j2.sessionId=j1.longs===String?j9.Long.prototype.toString.call(j0.sessionId):j1.longs===Number?new j9.LongBits(j0.sessionId.low>>>0,j0.sessionId.high>>>0).toNumber():j0.sessionId),null!=j0.request&&j0.hasOwnProperty("request")&&(j2.request=j0.request),null!=j0.data&&j0.hasOwnProperty("data")&&(j2.data=j0.data),null!=j0.roomId&&j0.hasOwnProperty("roomId")&&(j2.roomId=j0.roomId),null!=j0.advance&&j0.hasOwnProperty("advance")&&(j2.advance=j0.advance),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConfInfo=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.roomId="",j0.prototype.description="",j0.prototype.serverId="",j0.prototype.pin="",j0.prototype.publishers=0,j0.prototype.numPublisher=0,j0.prototype.bitrate=0,j0.prototype.advance=0,j0.prototype.record=0,j0.prototype.permanent=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.roomId),null!=j0.description&&j0.hasOwnProperty("description")&&j1.uint32(18).string(j0.description),null!=j0.serverId&&j0.hasOwnProperty("serverId")&&j1.uint32(26).string(j0.serverId),null!=j0.pin&&j0.hasOwnProperty("pin")&&j1.uint32(34).string(j0.pin),null!=j0.publishers&&j0.hasOwnProperty("publishers")&&j1.uint32(40).int32(j0.publishers),null!=j0.numPublisher&&j0.hasOwnProperty("numPublisher")&&j1.uint32(48).int32(j0.numPublisher),null!=j0.bitrate&&j0.hasOwnProperty("bitrate")&&j1.uint32(56).int32(j0.bitrate),null!=j0.advance&&j0.hasOwnProperty("advance")&&j1.uint32(64).int32(j0.advance),null!=j0.record&&j0.hasOwnProperty("record")&&j1.uint32(72).int32(j0.record),null!=j0.permanent&&j0.hasOwnProperty("permanent")&&j1.uint32(80).int32(j0.permanent),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConfInfo();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.roomId=j0.string();break;case 2:j3.description=j0.string();break;case 3:j3.serverId=j0.string();break;case 4:j3.pin=j0.string();break;case 5:j3.publishers=j0.int32();break;case 6:j3.numPublisher=j0.int32();break;case 7:j3.bitrate=j0.int32();break;case 8:j3.advance=j0.int32();break;case 9:j3.record=j0.int32();break;case 10:j3.permanent=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("roomId"))throw j9.ProtocolError("missing required 'roomId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.roomId)?null!=j0.description&&j0.hasOwnProperty("description")&&!j9.isString(j0.description)?"description: string expected":null!=j0.serverId&&j0.hasOwnProperty("serverId")&&!j9.isString(j0.serverId)?"serverId: string expected":null!=j0.pin&&j0.hasOwnProperty("pin")&&!j9.isString(j0.pin)?"pin: string expected":null!=j0.publishers&&j0.hasOwnProperty("publishers")&&!j9.isInteger(j0.publishers)?"publishers: integer expected":null!=j0.numPublisher&&j0.hasOwnProperty("numPublisher")&&!j9.isInteger(j0.numPublisher)?"numPublisher: integer expected":null!=j0.bitrate&&j0.hasOwnProperty("bitrate")&&!j9.isInteger(j0.bitrate)?"bitrate: integer expected":null!=j0.advance&&j0.hasOwnProperty("advance")&&!j9.isInteger(j0.advance)?"advance: integer expected":null!=j0.record&&j0.hasOwnProperty("record")&&!j9.isInteger(j0.record)?"record: integer expected":null!=j0.permanent&&j0.hasOwnProperty("permanent")&&!j9.isInteger(j0.permanent)?"permanent: integer expected":null:"roomId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.ConfInfo)return j0;var j1=new j10.ConfInfo();return null!=j0.roomId&&(j1.roomId=String(j0.roomId)),null!=j0.description&&(j1.description=String(j0.description)),null!=j0.serverId&&(j1.serverId=String(j0.serverId)),null!=j0.pin&&(j1.pin=String(j0.pin)),null!=j0.publishers&&(j1.publishers=0|j0.publishers),null!=j0.numPublisher&&(j1.numPublisher=0|j0.numPublisher),null!=j0.bitrate&&(j1.bitrate=0|j0.bitrate),null!=j0.advance&&(j1.advance=0|j0.advance),null!=j0.record&&(j1.record=0|j0.record),null!=j0.permanent&&(j1.permanent=0|j0.permanent),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.roomId="",j2.description="",j2.serverId="",j2.pin="",j2.publishers=0,j2.numPublisher=0,j2.bitrate=0,j2.advance=0,j2.record=0,j2.permanent=0),null!=j0.roomId&&j0.hasOwnProperty("roomId")&&(j2.roomId=j0.roomId),null!=j0.description&&j0.hasOwnProperty("description")&&(j2.description=j0.description),null!=j0.serverId&&j0.hasOwnProperty("serverId")&&(j2.serverId=j0.serverId),null!=j0.pin&&j0.hasOwnProperty("pin")&&(j2.pin=j0.pin),null!=j0.publishers&&j0.hasOwnProperty("publishers")&&(j2.publishers=j0.publishers),null!=j0.numPublisher&&j0.hasOwnProperty("numPublisher")&&(j2.numPublisher=j0.numPublisher),null!=j0.bitrate&&j0.hasOwnProperty("bitrate")&&(j2.bitrate=j0.bitrate),null!=j0.advance&&j0.hasOwnProperty("advance")&&(j2.advance=j0.advance),null!=j0.record&&j0.hasOwnProperty("record")&&(j2.record=j0.record),null!=j0.permanent&&j0.hasOwnProperty("permanent")&&(j2.permanent=j0.permanent),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConfInfos=function(){function j0(j0){if(this.info=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.info=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.info&&j0.info.length)for(var j2=0;j2<j0.info.length;++j2)j10.ConfInfo.encode(j0.info[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConfInfos();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.info&&j3.info.length||(j3.info=[]),j3.info.push(j10.ConfInfo.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.info&&j0.hasOwnProperty("info")){if(!Array.isArray(j0.info))return"info: array expected";for(var j1=0;j1<j0.info.length;++j1){var j2=j10.ConfInfo.verify(j0.info[j1]);if(j2)return"info."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ConfInfos)return j0;var j1=new j10.ConfInfos();if(j0.info){if(!Array.isArray(j0.info))throw TypeError(".ConfInfos.info: array expected");j1.info=[];for(var j2=0;j2<j0.info.length;++j2){if("object"!==(0,j3.default)(j0.info[j2]))throw TypeError(".ConfInfos.info: object expected");j1.info[j2]=j10.ConfInfo.fromObject(j0.info[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.info=[]),j0.info&&j0.info.length){j2.info=[];for(var j3=0;j3<j0.info.length;++j3)j2.info[j3]=j10.ConfInfo.toObject(j0.info[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConfStream=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.type="",j0.prototype.mid="",j0.prototype.codec="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.type),j1.uint32(18).string(j0.mid),j1.uint32(26).string(j0.codec),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConfStream();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.type=j0.string();break;case 2:j3.mid=j0.string();break;case 3:j3.codec=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("mid"))throw j9.ProtocolError("missing required 'mid'",{instance:j3});if(!j3.hasOwnProperty("codec"))throw j9.ProtocolError("missing required 'codec'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.type)?j9.isString(j0.mid)?j9.isString(j0.codec)?null:"codec: string expected":"mid: string expected":"type: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.ConfStream)return j0;var j1=new j10.ConfStream();return null!=j0.type&&(j1.type=String(j0.type)),null!=j0.mid&&(j1.mid=String(j0.mid)),null!=j0.codec&&(j1.codec=String(j0.codec)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.type="",j2.mid="",j2.codec=""),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.mid&&j0.hasOwnProperty("mid")&&(j2.mid=j0.mid),null!=j0.codec&&j0.hasOwnProperty("codec")&&(j2.codec=j0.codec),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConfParticipant=function(){function j0(j0){if(this.stream=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.userId="",j0.prototype.publisher=0,j0.prototype.stream=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.userId),j1.uint32(16).int32(j0.publisher),null!=j0.stream&&j0.stream.length)for(var j2=0;j2<j0.stream.length;++j2)j10.ConfStream.encode(j0.stream[j2],j1.uint32(26).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConfParticipant();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.userId=j0.string();break;case 2:j3.publisher=j0.int32();break;case 3:j3.stream&&j3.stream.length||(j3.stream=[]),j3.stream.push(j10.ConfStream.decode(j0,j0.uint32()));break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("userId"))throw j9.ProtocolError("missing required 'userId'",{instance:j3});if(!j3.hasOwnProperty("publisher"))throw j9.ProtocolError("missing required 'publisher'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.userId))return"userId: string expected";if(!j9.isInteger(j0.publisher))return"publisher: integer expected";if(null!=j0.stream&&j0.hasOwnProperty("stream")){if(!Array.isArray(j0.stream))return"stream: array expected";for(var j1=0;j1<j0.stream.length;++j1){var j2=j10.ConfStream.verify(j0.stream[j1]);if(j2)return"stream."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ConfParticipant)return j0;var j1=new j10.ConfParticipant();if(null!=j0.userId&&(j1.userId=String(j0.userId)),null!=j0.publisher&&(j1.publisher=0|j0.publisher),j0.stream){if(!Array.isArray(j0.stream))throw TypeError(".ConfParticipant.stream: array expected");j1.stream=[];for(var j2=0;j2<j0.stream.length;++j2){if("object"!==(0,j3.default)(j0.stream[j2]))throw TypeError(".ConfParticipant.stream: object expected");j1.stream[j2]=j10.ConfStream.fromObject(j0.stream[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.stream=[]),j1.defaults&&(j2.userId="",j2.publisher=0),null!=j0.userId&&j0.hasOwnProperty("userId")&&(j2.userId=j0.userId),null!=j0.publisher&&j0.hasOwnProperty("publisher")&&(j2.publisher=j0.publisher),j0.stream&&j0.stream.length){j2.stream=[];for(var j3=0;j3<j0.stream.length;++j3)j2.stream[j3]=j10.ConfStream.toObject(j0.stream[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConfParticipants=function(){function j0(j0){if(this.participant=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.participant=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.participant&&j0.participant.length)for(var j2=0;j2<j0.participant.length;++j2)j10.ConfParticipant.encode(j0.participant[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConfParticipants();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.participant&&j3.participant.length||(j3.participant=[]),j3.participant.push(j10.ConfParticipant.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.participant&&j0.hasOwnProperty("participant")){if(!Array.isArray(j0.participant))return"participant: array expected";for(var j1=0;j1<j0.participant.length;++j1){var j2=j10.ConfParticipant.verify(j0.participant[j1]);if(j2)return"participant."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.ConfParticipants)return j0;var j1=new j10.ConfParticipants();if(j0.participant){if(!Array.isArray(j0.participant))throw TypeError(".ConfParticipants.participant: array expected");j1.participant=[];for(var j2=0;j2<j0.participant.length;++j2){if("object"!==(0,j3.default)(j0.participant[j2]))throw TypeError(".ConfParticipants.participant: object expected");j1.participant[j2]=j10.ConfParticipant.fromObject(j0.participant[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.participant=[]),j0.participant&&j0.participant.length){j2.participant=[];for(var j3=0;j3<j0.participant.length;++j3)j2.participant[j3]=j10.ConfParticipant.toObject(j0.participant[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ConfRtpForwardReq=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.roomId="",j0.prototype.publisherId="",j0.prototype.host="",j0.prototype.audioPort=0,j0.prototype.audioPt=0,j0.prototype.audioSsrc=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.videoPort=0,j0.prototype.videoPt=0,j0.prototype.videoSsrc=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.roomId),j1.uint32(18).string(j0.publisherId),j1.uint32(26).string(j0.host),null!=j0.audioPort&&j0.hasOwnProperty("audioPort")&&j1.uint32(32).int32(j0.audioPort),null!=j0.audioPt&&j0.hasOwnProperty("audioPt")&&j1.uint32(40).int32(j0.audioPt),null!=j0.audioSsrc&&j0.hasOwnProperty("audioSsrc")&&j1.uint32(48).int64(j0.audioSsrc),null!=j0.videoPort&&j0.hasOwnProperty("videoPort")&&j1.uint32(56).int32(j0.videoPort),null!=j0.videoPt&&j0.hasOwnProperty("videoPt")&&j1.uint32(64).int32(j0.videoPt),null!=j0.videoSsrc&&j0.hasOwnProperty("videoSsrc")&&j1.uint32(72).int64(j0.videoSsrc),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ConfRtpForwardReq();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.roomId=j0.string();break;case 2:j3.publisherId=j0.string();break;case 3:j3.host=j0.string();break;case 4:j3.audioPort=j0.int32();break;case 5:j3.audioPt=j0.int32();break;case 6:j3.audioSsrc=j0.int64();break;case 7:j3.videoPort=j0.int32();break;case 8:j3.videoPt=j0.int32();break;case 9:j3.videoSsrc=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("roomId"))throw j9.ProtocolError("missing required 'roomId'",{instance:j3});if(!j3.hasOwnProperty("publisherId"))throw j9.ProtocolError("missing required 'publisherId'",{instance:j3});if(!j3.hasOwnProperty("host"))throw j9.ProtocolError("missing required 'host'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.roomId)?j9.isString(j0.publisherId)?j9.isString(j0.host)?null!=j0.audioPort&&j0.hasOwnProperty("audioPort")&&!j9.isInteger(j0.audioPort)?"audioPort: integer expected":null!=j0.audioPt&&j0.hasOwnProperty("audioPt")&&!j9.isInteger(j0.audioPt)?"audioPt: integer expected":null!=j0.audioSsrc&&j0.hasOwnProperty("audioSsrc")&&!(j9.isInteger(j0.audioSsrc)||j0.audioSsrc&&j9.isInteger(j0.audioSsrc.low)&&j9.isInteger(j0.audioSsrc.high))?"audioSsrc: integer|Long expected":null!=j0.videoPort&&j0.hasOwnProperty("videoPort")&&!j9.isInteger(j0.videoPort)?"videoPort: integer expected":null!=j0.videoPt&&j0.hasOwnProperty("videoPt")&&!j9.isInteger(j0.videoPt)?"videoPt: integer expected":null!=j0.videoSsrc&&j0.hasOwnProperty("videoSsrc")&&!(j9.isInteger(j0.videoSsrc)||j0.videoSsrc&&j9.isInteger(j0.videoSsrc.low)&&j9.isInteger(j0.videoSsrc.high))?"videoSsrc: integer|Long expected":null:"host: string expected":"publisherId: string expected":"roomId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.ConfRtpForwardReq)return j0;var j1=new j10.ConfRtpForwardReq();return null!=j0.roomId&&(j1.roomId=String(j0.roomId)),null!=j0.publisherId&&(j1.publisherId=String(j0.publisherId)),null!=j0.host&&(j1.host=String(j0.host)),null!=j0.audioPort&&(j1.audioPort=0|j0.audioPort),null!=j0.audioPt&&(j1.audioPt=0|j0.audioPt),null!=j0.audioSsrc&&(j9.Long?(j1.audioSsrc=j9.Long.fromValue(j0.audioSsrc)).unsigned=!1:"string"==typeof j0.audioSsrc?j1.audioSsrc=parseInt(j0.audioSsrc,10):"number"==typeof j0.audioSsrc?j1.audioSsrc=j0.audioSsrc:"object"===(0,j3.default)(j0.audioSsrc)&&(j1.audioSsrc=new j9.LongBits(j0.audioSsrc.low>>>0,j0.audioSsrc.high>>>0).toNumber())),null!=j0.videoPort&&(j1.videoPort=0|j0.videoPort),null!=j0.videoPt&&(j1.videoPt=0|j0.videoPt),null!=j0.videoSsrc&&(j9.Long?(j1.videoSsrc=j9.Long.fromValue(j0.videoSsrc)).unsigned=!1:"string"==typeof j0.videoSsrc?j1.videoSsrc=parseInt(j0.videoSsrc,10):"number"==typeof j0.videoSsrc?j1.videoSsrc=j0.videoSsrc:"object"===(0,j3.default)(j0.videoSsrc)&&(j1.videoSsrc=new j9.LongBits(j0.videoSsrc.low>>>0,j0.videoSsrc.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.roomId="",j2.publisherId="",j2.host="",j2.audioPort=0,j2.audioPt=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.audioSsrc=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.audioSsrc=j1.longs===String?"0":0;if(j2.videoPort=0,j2.videoPt=0,j9.Long){j3=new j9.Long(0,0,!1);j2.videoSsrc=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.videoSsrc=j1.longs===String?"0":0;}return null!=j0.roomId&&j0.hasOwnProperty("roomId")&&(j2.roomId=j0.roomId),null!=j0.publisherId&&j0.hasOwnProperty("publisherId")&&(j2.publisherId=j0.publisherId),null!=j0.host&&j0.hasOwnProperty("host")&&(j2.host=j0.host),null!=j0.audioPort&&j0.hasOwnProperty("audioPort")&&(j2.audioPort=j0.audioPort),null!=j0.audioPt&&j0.hasOwnProperty("audioPt")&&(j2.audioPt=j0.audioPt),null!=j0.audioSsrc&&j0.hasOwnProperty("audioSsrc")&&("number"==typeof j0.audioSsrc?j2.audioSsrc=j1.longs===String?String(j0.audioSsrc):j0.audioSsrc:j2.audioSsrc=j1.longs===String?j9.Long.prototype.toString.call(j0.audioSsrc):j1.longs===Number?new j9.LongBits(j0.audioSsrc.low>>>0,j0.audioSsrc.high>>>0).toNumber():j0.audioSsrc),null!=j0.videoPort&&j0.hasOwnProperty("videoPort")&&(j2.videoPort=j0.videoPort),null!=j0.videoPt&&j0.hasOwnProperty("videoPt")&&(j2.videoPt=j0.videoPt),null!=j0.videoSsrc&&j0.hasOwnProperty("videoSsrc")&&("number"==typeof j0.videoSsrc?j2.videoSsrc=j1.longs===String?String(j0.videoSsrc):j0.videoSsrc:j2.videoSsrc=j1.longs===String?j9.Long.prototype.toString.call(j0.videoSsrc):j1.longs===Number?new j9.LongBits(j0.videoSsrc.low>>>0,j0.videoSsrc.high>>>0).toNumber():j0.videoSsrc),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.RecallMultiCastMessageRequest=function(){function j0(j0){if(this.receiver=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.receiver=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(8).int64(j0.messageId),null!=j0.receiver&&j0.receiver.length)for(var j2=0;j2<j0.receiver.length;++j2)j1.uint32(18).string(j0.receiver[j2]);return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.RecallMultiCastMessageRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.messageId=j0.int64();break;case 2:j3.receiver&&j3.receiver.length||(j3.receiver=[]),j3.receiver.push(j0.string());break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("messageId"))throw j9.ProtocolError("missing required 'messageId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!(j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high)))return"messageId: integer|Long expected";if(null!=j0.receiver&&j0.hasOwnProperty("receiver")){if(!Array.isArray(j0.receiver))return"receiver: array expected";for(var j1=0;j1<j0.receiver.length;++j1)if(!j9.isString(j0.receiver[j1]))return"receiver: string[] expected";}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.RecallMultiCastMessageRequest)return j0;var j1=new j10.RecallMultiCastMessageRequest();if(null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),j0.receiver){if(!Array.isArray(j0.receiver))throw TypeError(".RecallMultiCastMessageRequest.receiver: array expected");j1.receiver=[];for(var j2=0;j2<j0.receiver.length;++j2)j1.receiver[j2]=String(j0.receiver[j2]);}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.receiver=[]),j1.defaults)if(j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;if(null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),j0.receiver&&j0.receiver.length){j2.receiver=[];for(var j4=0;j4<j0.receiver.length;++j4)j2.receiver[j4]=j0.receiver[j4];}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.MomentsMedia=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.mediaUrl="",j0.prototype.thumbUrl="",j0.prototype.width=0,j0.prototype.height=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.mediaUrl),null!=j0.thumbUrl&&j0.hasOwnProperty("thumbUrl")&&j1.uint32(18).string(j0.thumbUrl),null!=j0.width&&j0.hasOwnProperty("width")&&j1.uint32(24).int32(j0.width),null!=j0.height&&j0.hasOwnProperty("height")&&j1.uint32(32).int32(j0.height),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.MomentsMedia();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.mediaUrl=j0.string();break;case 2:j3.thumbUrl=j0.string();break;case 3:j3.width=j0.int32();break;case 4:j3.height=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("mediaUrl"))throw j9.ProtocolError("missing required 'mediaUrl'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.mediaUrl)?null!=j0.thumbUrl&&j0.hasOwnProperty("thumbUrl")&&!j9.isString(j0.thumbUrl)?"thumbUrl: string expected":null!=j0.width&&j0.hasOwnProperty("width")&&!j9.isInteger(j0.width)?"width: integer expected":null!=j0.height&&j0.hasOwnProperty("height")&&!j9.isInteger(j0.height)?"height: integer expected":null:"mediaUrl: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.MomentsMedia)return j0;var j1=new j10.MomentsMedia();return null!=j0.mediaUrl&&(j1.mediaUrl=String(j0.mediaUrl)),null!=j0.thumbUrl&&(j1.thumbUrl=String(j0.thumbUrl)),null!=j0.width&&(j1.width=0|j0.width),null!=j0.height&&(j1.height=0|j0.height),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.mediaUrl="",j2.thumbUrl="",j2.width=0,j2.height=0),null!=j0.mediaUrl&&j0.hasOwnProperty("mediaUrl")&&(j2.mediaUrl=j0.mediaUrl),null!=j0.thumbUrl&&j0.hasOwnProperty("thumbUrl")&&(j2.thumbUrl=j0.thumbUrl),null!=j0.width&&j0.hasOwnProperty("width")&&(j2.width=j0.width),null!=j0.height&&j0.hasOwnProperty("height")&&(j2.height=j0.height),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.MomentsFeed=function(){function j0(j0){if(this.medias=[],this.mentionedUsers=[],this.toUsers=[],this.excludeUsers=[],this.comments=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.feedId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.sender="",j0.prototype.type=0,j0.prototype.text="",j0.prototype.medias=j9.emptyArray,j0.prototype.mentionedUsers=j9.emptyArray,j0.prototype.toUsers=j9.emptyArray,j0.prototype.excludeUsers=j9.emptyArray,j0.prototype.serverTime=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.extra="",j0.prototype.comments=j9.emptyArray,j0.prototype.hasMore=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(8).int64(j0.feedId),j1.uint32(18).string(j0.sender),j1.uint32(24).int32(j0.type),null!=j0.text&&j0.hasOwnProperty("text")&&j1.uint32(34).string(j0.text),null!=j0.medias&&j0.medias.length)for(var j2=0;j2<j0.medias.length;++j2)j10.MomentsMedia.encode(j0.medias[j2],j1.uint32(42).fork()).ldelim();if(null!=j0.mentionedUsers&&j0.mentionedUsers.length)for(j2=0;j2<j0.mentionedUsers.length;++j2)j1.uint32(50).string(j0.mentionedUsers[j2]);if(null!=j0.toUsers&&j0.toUsers.length)for(j2=0;j2<j0.toUsers.length;++j2)j1.uint32(58).string(j0.toUsers[j2]);if(null!=j0.excludeUsers&&j0.excludeUsers.length)for(j2=0;j2<j0.excludeUsers.length;++j2)j1.uint32(66).string(j0.excludeUsers[j2]);if(j1.uint32(72).int64(j0.serverTime),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(82).string(j0.extra),null!=j0.comments&&j0.comments.length)for(j2=0;j2<j0.comments.length;++j2)j10.MomentsComment.encode(j0.comments[j2],j1.uint32(90).fork()).ldelim();return null!=j0.hasMore&&j0.hasOwnProperty("hasMore")&&j1.uint32(96).int32(j0.hasMore),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.MomentsFeed();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.feedId=j0.int64();break;case 2:j3.sender=j0.string();break;case 3:j3.type=j0.int32();break;case 4:j3.text=j0.string();break;case 5:j3.medias&&j3.medias.length||(j3.medias=[]),j3.medias.push(j10.MomentsMedia.decode(j0,j0.uint32()));break;case 6:j3.mentionedUsers&&j3.mentionedUsers.length||(j3.mentionedUsers=[]),j3.mentionedUsers.push(j0.string());break;case 7:j3.toUsers&&j3.toUsers.length||(j3.toUsers=[]),j3.toUsers.push(j0.string());break;case 8:j3.excludeUsers&&j3.excludeUsers.length||(j3.excludeUsers=[]),j3.excludeUsers.push(j0.string());break;case 9:j3.serverTime=j0.int64();break;case 10:j3.extra=j0.string();break;case 11:j3.comments&&j3.comments.length||(j3.comments=[]),j3.comments.push(j10.MomentsComment.decode(j0,j0.uint32()));break;case 12:j3.hasMore=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("feedId"))throw j9.ProtocolError("missing required 'feedId'",{instance:j3});if(!j3.hasOwnProperty("sender"))throw j9.ProtocolError("missing required 'sender'",{instance:j3});if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("serverTime"))throw j9.ProtocolError("missing required 'serverTime'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!(j9.isInteger(j0.feedId)||j0.feedId&&j9.isInteger(j0.feedId.low)&&j9.isInteger(j0.feedId.high)))return"feedId: integer|Long expected";if(!j9.isString(j0.sender))return"sender: string expected";if(!j9.isInteger(j0.type))return"type: integer expected";if(null!=j0.text&&j0.hasOwnProperty("text")&&!j9.isString(j0.text))return"text: string expected";if(null!=j0.medias&&j0.hasOwnProperty("medias")){if(!Array.isArray(j0.medias))return"medias: array expected";for(var j1=0;j1<j0.medias.length;++j1){if(j2=j10.MomentsMedia.verify(j0.medias[j1]))return"medias."+j2;}}if(null!=j0.mentionedUsers&&j0.hasOwnProperty("mentionedUsers")){if(!Array.isArray(j0.mentionedUsers))return"mentionedUsers: array expected";for(j1=0;j1<j0.mentionedUsers.length;++j1)if(!j9.isString(j0.mentionedUsers[j1]))return"mentionedUsers: string[] expected";}if(null!=j0.toUsers&&j0.hasOwnProperty("toUsers")){if(!Array.isArray(j0.toUsers))return"toUsers: array expected";for(j1=0;j1<j0.toUsers.length;++j1)if(!j9.isString(j0.toUsers[j1]))return"toUsers: string[] expected";}if(null!=j0.excludeUsers&&j0.hasOwnProperty("excludeUsers")){if(!Array.isArray(j0.excludeUsers))return"excludeUsers: array expected";for(j1=0;j1<j0.excludeUsers.length;++j1)if(!j9.isString(j0.excludeUsers[j1]))return"excludeUsers: string[] expected";}if(!(j9.isInteger(j0.serverTime)||j0.serverTime&&j9.isInteger(j0.serverTime.low)&&j9.isInteger(j0.serverTime.high)))return"serverTime: integer|Long expected";if(null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra))return"extra: string expected";if(null!=j0.comments&&j0.hasOwnProperty("comments")){if(!Array.isArray(j0.comments))return"comments: array expected";for(j1=0;j1<j0.comments.length;++j1){var j2;if(j2=j10.MomentsComment.verify(j0.comments[j1]))return"comments."+j2;}}return null!=j0.hasMore&&j0.hasOwnProperty("hasMore")&&!j9.isInteger(j0.hasMore)?"hasMore: integer expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.MomentsFeed)return j0;var j1=new j10.MomentsFeed();if(null!=j0.feedId&&(j9.Long?(j1.feedId=j9.Long.fromValue(j0.feedId)).unsigned=!1:"string"==typeof j0.feedId?j1.feedId=parseInt(j0.feedId,10):"number"==typeof j0.feedId?j1.feedId=j0.feedId:"object"===(0,j3.default)(j0.feedId)&&(j1.feedId=new j9.LongBits(j0.feedId.low>>>0,j0.feedId.high>>>0).toNumber())),null!=j0.sender&&(j1.sender=String(j0.sender)),null!=j0.type&&(j1.type=0|j0.type),null!=j0.text&&(j1.text=String(j0.text)),j0.medias){if(!Array.isArray(j0.medias))throw TypeError(".MomentsFeed.medias: array expected");j1.medias=[];for(var j2=0;j2<j0.medias.length;++j2){if("object"!==(0,j3.default)(j0.medias[j2]))throw TypeError(".MomentsFeed.medias: object expected");j1.medias[j2]=j10.MomentsMedia.fromObject(j0.medias[j2]);}}if(j0.mentionedUsers){if(!Array.isArray(j0.mentionedUsers))throw TypeError(".MomentsFeed.mentionedUsers: array expected");j1.mentionedUsers=[];for(j2=0;j2<j0.mentionedUsers.length;++j2)j1.mentionedUsers[j2]=String(j0.mentionedUsers[j2]);}if(j0.toUsers){if(!Array.isArray(j0.toUsers))throw TypeError(".MomentsFeed.toUsers: array expected");j1.toUsers=[];for(j2=0;j2<j0.toUsers.length;++j2)j1.toUsers[j2]=String(j0.toUsers[j2]);}if(j0.excludeUsers){if(!Array.isArray(j0.excludeUsers))throw TypeError(".MomentsFeed.excludeUsers: array expected");j1.excludeUsers=[];for(j2=0;j2<j0.excludeUsers.length;++j2)j1.excludeUsers[j2]=String(j0.excludeUsers[j2]);}if(null!=j0.serverTime&&(j9.Long?(j1.serverTime=j9.Long.fromValue(j0.serverTime)).unsigned=!1:"string"==typeof j0.serverTime?j1.serverTime=parseInt(j0.serverTime,10):"number"==typeof j0.serverTime?j1.serverTime=j0.serverTime:"object"===(0,j3.default)(j0.serverTime)&&(j1.serverTime=new j9.LongBits(j0.serverTime.low>>>0,j0.serverTime.high>>>0).toNumber())),null!=j0.extra&&(j1.extra=String(j0.extra)),j0.comments){if(!Array.isArray(j0.comments))throw TypeError(".MomentsFeed.comments: array expected");j1.comments=[];for(j2=0;j2<j0.comments.length;++j2){if("object"!==(0,j3.default)(j0.comments[j2]))throw TypeError(".MomentsFeed.comments: object expected");j1.comments[j2]=j10.MomentsComment.fromObject(j0.comments[j2]);}}return null!=j0.hasMore&&(j1.hasMore=0|j0.hasMore),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.medias=[],j2.mentionedUsers=[],j2.toUsers=[],j2.excludeUsers=[],j2.comments=[]),j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.feedId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.feedId=j1.longs===String?"0":0;if(j2.sender="",j2.type=0,j2.text="",j9.Long){j3=new j9.Long(0,0,!1);j2.serverTime=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.serverTime=j1.longs===String?"0":0;j2.extra="",j2.hasMore=0;}if(null!=j0.feedId&&j0.hasOwnProperty("feedId")&&("number"==typeof j0.feedId?j2.feedId=j1.longs===String?String(j0.feedId):j0.feedId:j2.feedId=j1.longs===String?j9.Long.prototype.toString.call(j0.feedId):j1.longs===Number?new j9.LongBits(j0.feedId.low>>>0,j0.feedId.high>>>0).toNumber():j0.feedId),null!=j0.sender&&j0.hasOwnProperty("sender")&&(j2.sender=j0.sender),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.text&&j0.hasOwnProperty("text")&&(j2.text=j0.text),j0.medias&&j0.medias.length){j2.medias=[];for(var j4=0;j4<j0.medias.length;++j4)j2.medias[j4]=j10.MomentsMedia.toObject(j0.medias[j4],j1);}if(j0.mentionedUsers&&j0.mentionedUsers.length){j2.mentionedUsers=[];for(j4=0;j4<j0.mentionedUsers.length;++j4)j2.mentionedUsers[j4]=j0.mentionedUsers[j4];}if(j0.toUsers&&j0.toUsers.length){j2.toUsers=[];for(j4=0;j4<j0.toUsers.length;++j4)j2.toUsers[j4]=j0.toUsers[j4];}if(j0.excludeUsers&&j0.excludeUsers.length){j2.excludeUsers=[];for(j4=0;j4<j0.excludeUsers.length;++j4)j2.excludeUsers[j4]=j0.excludeUsers[j4];}if(null!=j0.serverTime&&j0.hasOwnProperty("serverTime")&&("number"==typeof j0.serverTime?j2.serverTime=j1.longs===String?String(j0.serverTime):j0.serverTime:j2.serverTime=j1.longs===String?j9.Long.prototype.toString.call(j0.serverTime):j1.longs===Number?new j9.LongBits(j0.serverTime.low>>>0,j0.serverTime.high>>>0).toNumber():j0.serverTime),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j0.comments&&j0.comments.length){j2.comments=[];for(j4=0;j4<j0.comments.length;++j4)j2.comments[j4]=j10.MomentsComment.toObject(j0.comments[j4],j1);}return null!=j0.hasMore&&j0.hasOwnProperty("hasMore")&&(j2.hasMore=j0.hasMore),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.MomentsFeeds=function(){function j0(j0){if(this.feeds=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.feeds=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.feeds&&j0.feeds.length)for(var j2=0;j2<j0.feeds.length;++j2)j10.MomentsFeed.encode(j0.feeds[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.MomentsFeeds();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.feeds&&j3.feeds.length||(j3.feeds=[]),j3.feeds.push(j10.MomentsFeed.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.feeds&&j0.hasOwnProperty("feeds")){if(!Array.isArray(j0.feeds))return"feeds: array expected";for(var j1=0;j1<j0.feeds.length;++j1){var j2=j10.MomentsFeed.verify(j0.feeds[j1]);if(j2)return"feeds."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.MomentsFeeds)return j0;var j1=new j10.MomentsFeeds();if(j0.feeds){if(!Array.isArray(j0.feeds))throw TypeError(".MomentsFeeds.feeds: array expected");j1.feeds=[];for(var j2=0;j2<j0.feeds.length;++j2){if("object"!==(0,j3.default)(j0.feeds[j2]))throw TypeError(".MomentsFeeds.feeds: object expected");j1.feeds[j2]=j10.MomentsFeed.fromObject(j0.feeds[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.feeds=[]),j0.feeds&&j0.feeds.length){j2.feeds=[];for(var j3=0;j3<j0.feeds.length;++j3)j2.feeds[j3]=j10.MomentsFeed.toObject(j0.feeds[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.MomentsComments=function(){function j0(j0){if(this.comments=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.comments=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.comments&&j0.comments.length)for(var j2=0;j2<j0.comments.length;++j2)j10.MomentsComment.encode(j0.comments[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.MomentsComments();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.comments&&j3.comments.length||(j3.comments=[]),j3.comments.push(j10.MomentsComment.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.comments&&j0.hasOwnProperty("comments")){if(!Array.isArray(j0.comments))return"comments: array expected";for(var j1=0;j1<j0.comments.length;++j1){var j2=j10.MomentsComment.verify(j0.comments[j1]);if(j2)return"comments."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.MomentsComments)return j0;var j1=new j10.MomentsComments();if(j0.comments){if(!Array.isArray(j0.comments))throw TypeError(".MomentsComments.comments: array expected");j1.comments=[];for(var j2=0;j2<j0.comments.length;++j2){if("object"!==(0,j3.default)(j0.comments[j2]))throw TypeError(".MomentsComments.comments: object expected");j1.comments[j2]=j10.MomentsComment.fromObject(j0.comments[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.comments=[]),j0.comments&&j0.comments.length){j2.comments=[];for(var j3=0;j3<j0.comments.length;++j3)j2.comments[j3]=j10.MomentsComment.toObject(j0.comments[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.MomentsComment=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.feedId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.commentId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.replyId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.sender="",j0.prototype.type=0,j0.prototype.text="",j0.prototype.replyTo="",j0.prototype.serverTime=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.extra="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int64(j0.feedId),j1.uint32(16).int64(j0.commentId),null!=j0.replyId&&j0.hasOwnProperty("replyId")&&j1.uint32(24).int64(j0.replyId),j1.uint32(34).string(j0.sender),j1.uint32(40).int32(j0.type),null!=j0.text&&j0.hasOwnProperty("text")&&j1.uint32(50).string(j0.text),null!=j0.replyTo&&j0.hasOwnProperty("replyTo")&&j1.uint32(58).string(j0.replyTo),j1.uint32(64).int64(j0.serverTime),null!=j0.extra&&j0.hasOwnProperty("extra")&&j1.uint32(74).string(j0.extra),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.MomentsComment();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.feedId=j0.int64();break;case 2:j3.commentId=j0.int64();break;case 3:j3.replyId=j0.int64();break;case 4:j3.sender=j0.string();break;case 5:j3.type=j0.int32();break;case 6:j3.text=j0.string();break;case 7:j3.replyTo=j0.string();break;case 8:j3.serverTime=j0.int64();break;case 9:j3.extra=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("feedId"))throw j9.ProtocolError("missing required 'feedId'",{instance:j3});if(!j3.hasOwnProperty("commentId"))throw j9.ProtocolError("missing required 'commentId'",{instance:j3});if(!j3.hasOwnProperty("sender"))throw j9.ProtocolError("missing required 'sender'",{instance:j3});if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("serverTime"))throw j9.ProtocolError("missing required 'serverTime'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.feedId)||j0.feedId&&j9.isInteger(j0.feedId.low)&&j9.isInteger(j0.feedId.high)?j9.isInteger(j0.commentId)||j0.commentId&&j9.isInteger(j0.commentId.low)&&j9.isInteger(j0.commentId.high)?null!=j0.replyId&&j0.hasOwnProperty("replyId")&&!(j9.isInteger(j0.replyId)||j0.replyId&&j9.isInteger(j0.replyId.low)&&j9.isInteger(j0.replyId.high))?"replyId: integer|Long expected":j9.isString(j0.sender)?j9.isInteger(j0.type)?null!=j0.text&&j0.hasOwnProperty("text")&&!j9.isString(j0.text)?"text: string expected":null!=j0.replyTo&&j0.hasOwnProperty("replyTo")&&!j9.isString(j0.replyTo)?"replyTo: string expected":j9.isInteger(j0.serverTime)||j0.serverTime&&j9.isInteger(j0.serverTime.low)&&j9.isInteger(j0.serverTime.high)?null!=j0.extra&&j0.hasOwnProperty("extra")&&!j9.isString(j0.extra)?"extra: string expected":null:"serverTime: integer|Long expected":"type: integer expected":"sender: string expected":"commentId: integer|Long expected":"feedId: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.MomentsComment)return j0;var j1=new j10.MomentsComment();return null!=j0.feedId&&(j9.Long?(j1.feedId=j9.Long.fromValue(j0.feedId)).unsigned=!1:"string"==typeof j0.feedId?j1.feedId=parseInt(j0.feedId,10):"number"==typeof j0.feedId?j1.feedId=j0.feedId:"object"===(0,j3.default)(j0.feedId)&&(j1.feedId=new j9.LongBits(j0.feedId.low>>>0,j0.feedId.high>>>0).toNumber())),null!=j0.commentId&&(j9.Long?(j1.commentId=j9.Long.fromValue(j0.commentId)).unsigned=!1:"string"==typeof j0.commentId?j1.commentId=parseInt(j0.commentId,10):"number"==typeof j0.commentId?j1.commentId=j0.commentId:"object"===(0,j3.default)(j0.commentId)&&(j1.commentId=new j9.LongBits(j0.commentId.low>>>0,j0.commentId.high>>>0).toNumber())),null!=j0.replyId&&(j9.Long?(j1.replyId=j9.Long.fromValue(j0.replyId)).unsigned=!1:"string"==typeof j0.replyId?j1.replyId=parseInt(j0.replyId,10):"number"==typeof j0.replyId?j1.replyId=j0.replyId:"object"===(0,j3.default)(j0.replyId)&&(j1.replyId=new j9.LongBits(j0.replyId.low>>>0,j0.replyId.high>>>0).toNumber())),null!=j0.sender&&(j1.sender=String(j0.sender)),null!=j0.type&&(j1.type=0|j0.type),null!=j0.text&&(j1.text=String(j0.text)),null!=j0.replyTo&&(j1.replyTo=String(j0.replyTo)),null!=j0.serverTime&&(j9.Long?(j1.serverTime=j9.Long.fromValue(j0.serverTime)).unsigned=!1:"string"==typeof j0.serverTime?j1.serverTime=parseInt(j0.serverTime,10):"number"==typeof j0.serverTime?j1.serverTime=j0.serverTime:"object"===(0,j3.default)(j0.serverTime)&&(j1.serverTime=new j9.LongBits(j0.serverTime.low>>>0,j0.serverTime.high>>>0).toNumber())),null!=j0.extra&&(j1.extra=String(j0.extra)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j9.Long){var j3=new j9.Long(0,0,!1);j2.feedId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.feedId=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.commentId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.commentId=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.replyId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.replyId=j1.longs===String?"0":0;if(j2.sender="",j2.type=0,j2.text="",j2.replyTo="",j9.Long){j3=new j9.Long(0,0,!1);j2.serverTime=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.serverTime=j1.longs===String?"0":0;j2.extra="";}return null!=j0.feedId&&j0.hasOwnProperty("feedId")&&("number"==typeof j0.feedId?j2.feedId=j1.longs===String?String(j0.feedId):j0.feedId:j2.feedId=j1.longs===String?j9.Long.prototype.toString.call(j0.feedId):j1.longs===Number?new j9.LongBits(j0.feedId.low>>>0,j0.feedId.high>>>0).toNumber():j0.feedId),null!=j0.commentId&&j0.hasOwnProperty("commentId")&&("number"==typeof j0.commentId?j2.commentId=j1.longs===String?String(j0.commentId):j0.commentId:j2.commentId=j1.longs===String?j9.Long.prototype.toString.call(j0.commentId):j1.longs===Number?new j9.LongBits(j0.commentId.low>>>0,j0.commentId.high>>>0).toNumber():j0.commentId),null!=j0.replyId&&j0.hasOwnProperty("replyId")&&("number"==typeof j0.replyId?j2.replyId=j1.longs===String?String(j0.replyId):j0.replyId:j2.replyId=j1.longs===String?j9.Long.prototype.toString.call(j0.replyId):j1.longs===Number?new j9.LongBits(j0.replyId.low>>>0,j0.replyId.high>>>0).toNumber():j0.replyId),null!=j0.sender&&j0.hasOwnProperty("sender")&&(j2.sender=j0.sender),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.text&&j0.hasOwnProperty("text")&&(j2.text=j0.text),null!=j0.replyTo&&j0.hasOwnProperty("replyTo")&&(j2.replyTo=j0.replyTo),null!=j0.serverTime&&j0.hasOwnProperty("serverTime")&&("number"==typeof j0.serverTime?j2.serverTime=j1.longs===String?String(j0.serverTime):j0.serverTime:j2.serverTime=j1.longs===String?j9.Long.prototype.toString.call(j0.serverTime):j1.longs===Number?new j9.LongBits(j0.serverTime.low>>>0,j0.serverTime.high>>>0).toNumber():j0.serverTime),null!=j0.extra&&j0.hasOwnProperty("extra")&&(j2.extra=j0.extra),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.LockRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.lockId="",j0.prototype.duration=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.lockId),null!=j0.duration&&j0.hasOwnProperty("duration")&&j1.uint32(16).int64(j0.duration),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.LockRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.lockId=j0.string();break;case 2:j3.duration=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("lockId"))throw j9.ProtocolError("missing required 'lockId'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.lockId)?null!=j0.duration&&j0.hasOwnProperty("duration")&&!(j9.isInteger(j0.duration)||j0.duration&&j9.isInteger(j0.duration.low)&&j9.isInteger(j0.duration.high))?"duration: integer|Long expected":null:"lockId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.LockRequest)return j0;var j1=new j10.LockRequest();return null!=j0.lockId&&(j1.lockId=String(j0.lockId)),null!=j0.duration&&(j9.Long?(j1.duration=j9.Long.fromValue(j0.duration)).unsigned=!1:"string"==typeof j0.duration?j1.duration=parseInt(j0.duration,10):"number"==typeof j0.duration?j1.duration=j0.duration:"object"===(0,j3.default)(j0.duration)&&(j1.duration=new j9.LongBits(j0.duration.low>>>0,j0.duration.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.lockId="",j9.Long){var j3=new j9.Long(0,0,!1);j2.duration=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.duration=j1.longs===String?"0":0;return null!=j0.lockId&&j0.hasOwnProperty("lockId")&&(j2.lockId=j0.lockId),null!=j0.duration&&j0.hasOwnProperty("duration")&&("number"==typeof j0.duration?j2.duration=j1.longs===String?String(j0.duration):j0.duration:j2.duration=j1.longs===String?j9.Long.prototype.toString.call(j0.duration):j1.longs===Number?new j9.LongBits(j0.duration.low>>>0,j0.duration.high>>>0).toNumber():j0.duration),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PresenceOnlineState=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.platform=0,j0.prototype.state=0,j0.prototype.lastSeen=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(8).int32(j0.platform),j1.uint32(16).int32(j0.state),null!=j0.lastSeen&&j0.hasOwnProperty("lastSeen")&&j1.uint32(24).int64(j0.lastSeen),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PresenceOnlineState();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.platform=j0.int32();break;case 2:j3.state=j0.int32();break;case 3:j3.lastSeen=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("platform"))throw j9.ProtocolError("missing required 'platform'",{instance:j3});if(!j3.hasOwnProperty("state"))throw j9.ProtocolError("missing required 'state'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isInteger(j0.platform)?j9.isInteger(j0.state)?null!=j0.lastSeen&&j0.hasOwnProperty("lastSeen")&&!(j9.isInteger(j0.lastSeen)||j0.lastSeen&&j9.isInteger(j0.lastSeen.low)&&j9.isInteger(j0.lastSeen.high))?"lastSeen: integer|Long expected":null:"state: integer expected":"platform: integer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.PresenceOnlineState)return j0;var j1=new j10.PresenceOnlineState();return null!=j0.platform&&(j1.platform=0|j0.platform),null!=j0.state&&(j1.state=0|j0.state),null!=j0.lastSeen&&(j9.Long?(j1.lastSeen=j9.Long.fromValue(j0.lastSeen)).unsigned=!1:"string"==typeof j0.lastSeen?j1.lastSeen=parseInt(j0.lastSeen,10):"number"==typeof j0.lastSeen?j1.lastSeen=j0.lastSeen:"object"===(0,j3.default)(j0.lastSeen)&&(j1.lastSeen=new j9.LongBits(j0.lastSeen.low>>>0,j0.lastSeen.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.platform=0,j2.state=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.lastSeen=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.lastSeen=j1.longs===String?"0":0;return null!=j0.platform&&j0.hasOwnProperty("platform")&&(j2.platform=j0.platform),null!=j0.state&&j0.hasOwnProperty("state")&&(j2.state=j0.state),null!=j0.lastSeen&&j0.hasOwnProperty("lastSeen")&&("number"==typeof j0.lastSeen?j2.lastSeen=j1.longs===String?String(j0.lastSeen):j0.lastSeen:j2.lastSeen=j1.longs===String?j9.Long.prototype.toString.call(j0.lastSeen):j1.longs===Number?new j9.LongBits(j0.lastSeen.low>>>0,j0.lastSeen.high>>>0).toNumber():j0.lastSeen),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PresenceOnlineNotify=function(){function j0(j0){if(this.state=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.userId="",j0.prototype.customState=0,j0.prototype.customText="",j0.prototype.state=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(10).string(j0.userId),j1.uint32(16).int32(j0.customState),null!=j0.customText&&j0.hasOwnProperty("customText")&&j1.uint32(26).string(j0.customText),null!=j0.state&&j0.state.length)for(var j2=0;j2<j0.state.length;++j2)j10.PresenceOnlineState.encode(j0.state[j2],j1.uint32(34).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PresenceOnlineNotify();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.userId=j0.string();break;case 2:j3.customState=j0.int32();break;case 3:j3.customText=j0.string();break;case 4:j3.state&&j3.state.length||(j3.state=[]),j3.state.push(j10.PresenceOnlineState.decode(j0,j0.uint32()));break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("userId"))throw j9.ProtocolError("missing required 'userId'",{instance:j3});if(!j3.hasOwnProperty("customState"))throw j9.ProtocolError("missing required 'customState'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isString(j0.userId))return"userId: string expected";if(!j9.isInteger(j0.customState))return"customState: integer expected";if(null!=j0.customText&&j0.hasOwnProperty("customText")&&!j9.isString(j0.customText))return"customText: string expected";if(null!=j0.state&&j0.hasOwnProperty("state")){if(!Array.isArray(j0.state))return"state: array expected";for(var j1=0;j1<j0.state.length;++j1){var j2=j10.PresenceOnlineState.verify(j0.state[j1]);if(j2)return"state."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PresenceOnlineNotify)return j0;var j1=new j10.PresenceOnlineNotify();if(null!=j0.userId&&(j1.userId=String(j0.userId)),null!=j0.customState&&(j1.customState=0|j0.customState),null!=j0.customText&&(j1.customText=String(j0.customText)),j0.state){if(!Array.isArray(j0.state))throw TypeError(".PresenceOnlineNotify.state: array expected");j1.state=[];for(var j2=0;j2<j0.state.length;++j2){if("object"!==(0,j3.default)(j0.state[j2]))throw TypeError(".PresenceOnlineNotify.state: object expected");j1.state[j2]=j10.PresenceOnlineState.fromObject(j0.state[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.state=[]),j1.defaults&&(j2.userId="",j2.customState=0,j2.customText=""),null!=j0.userId&&j0.hasOwnProperty("userId")&&(j2.userId=j0.userId),null!=j0.customState&&j0.hasOwnProperty("customState")&&(j2.customState=j0.customState),null!=j0.customText&&j0.hasOwnProperty("customText")&&(j2.customText=j0.customText),j0.state&&j0.state.length){j2.state=[];for(var j3=0;j3<j0.state.length;++j3)j2.state[j3]=j10.PresenceOnlineState.toObject(j0.state[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PresenceWatchRequest=function(){function j0(j0){if(this.target=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.type=0,j0.prototype.target=j9.emptyArray,j0.prototype.duration=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),j1.uint32(8).int32(j0.type),null!=j0.target&&j0.target.length)for(var j2=0;j2<j0.target.length;++j2)j1.uint32(18).string(j0.target[j2]);return null!=j0.duration&&j0.hasOwnProperty("duration")&&j1.uint32(24).int32(j0.duration),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PresenceWatchRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.type=j0.int32();break;case 2:j3.target&&j3.target.length||(j3.target=[]),j3.target.push(j0.string());break;case 3:j3.duration=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(!j9.isInteger(j0.type))return"type: integer expected";if(null!=j0.target&&j0.hasOwnProperty("target")){if(!Array.isArray(j0.target))return"target: array expected";for(var j1=0;j1<j0.target.length;++j1)if(!j9.isString(j0.target[j1]))return"target: string[] expected";}return null!=j0.duration&&j0.hasOwnProperty("duration")&&!j9.isInteger(j0.duration)?"duration: integer expected":null;},j0.fromObject=function(j0){if(j0 instanceof j10.PresenceWatchRequest)return j0;var j1=new j10.PresenceWatchRequest();if(null!=j0.type&&(j1.type=0|j0.type),j0.target){if(!Array.isArray(j0.target))throw TypeError(".PresenceWatchRequest.target: array expected");j1.target=[];for(var j2=0;j2<j0.target.length;++j2)j1.target[j2]=String(j0.target[j2]);}return null!=j0.duration&&(j1.duration=0|j0.duration),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.target=[]),j1.defaults&&(j2.type=0,j2.duration=0),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),j0.target&&j0.target.length){j2.target=[];for(var j3=0;j3<j0.target.length;++j3)j2.target[j3]=j0.target[j3];}return null!=j0.duration&&j0.hasOwnProperty("duration")&&(j2.duration=j0.duration),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.PresenceWatchResult=function(){function j0(j0){if(this.notify=[],j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.notify=j9.emptyArray,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){if(j1||(j1=j8.create()),null!=j0.notify&&j0.notify.length)for(var j2=0;j2<j0.notify.length;++j2)j10.PresenceOnlineNotify.encode(j0.notify[j2],j1.uint32(10).fork()).ldelim();return j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.PresenceWatchResult();j0.pos<j2;){var j4=j0.uint32();if(j4>>>3==1)j3.notify&&j3.notify.length||(j3.notify=[]),j3.notify.push(j10.PresenceOnlineNotify.decode(j0,j0.uint32()));else j0.skipType(7&j4);}return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";if(null!=j0.notify&&j0.hasOwnProperty("notify")){if(!Array.isArray(j0.notify))return"notify: array expected";for(var j1=0;j1<j0.notify.length;++j1){var j2=j10.PresenceOnlineNotify.verify(j0.notify[j1]);if(j2)return"notify."+j2;}}return null;},j0.fromObject=function(j0){if(j0 instanceof j10.PresenceWatchResult)return j0;var j1=new j10.PresenceWatchResult();if(j0.notify){if(!Array.isArray(j0.notify))throw TypeError(".PresenceWatchResult.notify: array expected");j1.notify=[];for(var j2=0;j2<j0.notify.length;++j2){if("object"!==(0,j3.default)(j0.notify[j2]))throw TypeError(".PresenceWatchResult.notify: object expected");j1.notify[j2]=j10.PresenceOnlineNotify.fromObject(j0.notify[j2]);}}return j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if((j1.arrays||j1.defaults)&&(j2.notify=[]),j0.notify&&j0.notify.length){j2.notify=[];for(var j3=0;j3<j0.notify.length;++j3)j2.notify[j3]=j10.PresenceOnlineNotify.toObject(j0.notify[j3],j1);}return j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.CreateSecretChatRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.userId="",j0.prototype.pubkey="",j0.prototype.targetId="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.userId),j1.uint32(18).string(j0.pubkey),null!=j0.targetId&&j0.hasOwnProperty("targetId")&&j1.uint32(26).string(j0.targetId),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.CreateSecretChatRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.userId=j0.string();break;case 2:j3.pubkey=j0.string();break;case 3:j3.targetId=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("userId"))throw j9.ProtocolError("missing required 'userId'",{instance:j3});if(!j3.hasOwnProperty("pubkey"))throw j9.ProtocolError("missing required 'pubkey'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.userId)?j9.isString(j0.pubkey)?null!=j0.targetId&&j0.hasOwnProperty("targetId")&&!j9.isString(j0.targetId)?"targetId: string expected":null:"pubkey: string expected":"userId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.CreateSecretChatRequest)return j0;var j1=new j10.CreateSecretChatRequest();return null!=j0.userId&&(j1.userId=String(j0.userId)),null!=j0.pubkey&&(j1.pubkey=String(j0.pubkey)),null!=j0.targetId&&(j1.targetId=String(j0.targetId)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.userId="",j2.pubkey="",j2.targetId=""),null!=j0.userId&&j0.hasOwnProperty("userId")&&(j2.userId=j0.userId),null!=j0.pubkey&&j0.hasOwnProperty("pubkey")&&(j2.pubkey=j0.pubkey),null!=j0.targetId&&j0.hasOwnProperty("targetId")&&(j2.targetId=j0.targetId),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.CreateSecretChatResponse=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.targetId="",j0.prototype.line=0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.targetId),j1.uint32(16).int32(j0.line),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.CreateSecretChatResponse();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.targetId=j0.string();break;case 2:j3.line=j0.int32();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("targetId"))throw j9.ProtocolError("missing required 'targetId'",{instance:j3});if(!j3.hasOwnProperty("line"))throw j9.ProtocolError("missing required 'line'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.targetId)?j9.isInteger(j0.line)?null:"line: integer expected":"targetId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.CreateSecretChatResponse)return j0;var j1=new j10.CreateSecretChatResponse();return null!=j0.targetId&&(j1.targetId=String(j0.targetId)),null!=j0.line&&(j1.line=0|j0.line),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.targetId="",j2.line=0),null!=j0.targetId&&j0.hasOwnProperty("targetId")&&(j2.targetId=j0.targetId),null!=j0.line&&j0.hasOwnProperty("line")&&(j2.line=j0.line),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.SecretChatInfo=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.targetId="",j0.prototype.from="",j0.prototype.to="",j0.prototype.state=0,j0.prototype.createDt=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.targetId),j1.uint32(18).string(j0.from),j1.uint32(26).string(j0.to),j1.uint32(32).int32(j0.state),j1.uint32(40).int64(j0.createDt),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.SecretChatInfo();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.targetId=j0.string();break;case 2:j3.from=j0.string();break;case 3:j3.to=j0.string();break;case 4:j3.state=j0.int32();break;case 5:j3.createDt=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("targetId"))throw j9.ProtocolError("missing required 'targetId'",{instance:j3});if(!j3.hasOwnProperty("from"))throw j9.ProtocolError("missing required 'from'",{instance:j3});if(!j3.hasOwnProperty("to"))throw j9.ProtocolError("missing required 'to'",{instance:j3});if(!j3.hasOwnProperty("state"))throw j9.ProtocolError("missing required 'state'",{instance:j3});if(!j3.hasOwnProperty("createDt"))throw j9.ProtocolError("missing required 'createDt'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.targetId)?j9.isString(j0.from)?j9.isString(j0.to)?j9.isInteger(j0.state)?j9.isInteger(j0.createDt)||j0.createDt&&j9.isInteger(j0.createDt.low)&&j9.isInteger(j0.createDt.high)?null:"createDt: integer|Long expected":"state: integer expected":"to: string expected":"from: string expected":"targetId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.SecretChatInfo)return j0;var j1=new j10.SecretChatInfo();return null!=j0.targetId&&(j1.targetId=String(j0.targetId)),null!=j0.from&&(j1.from=String(j0.from)),null!=j0.to&&(j1.to=String(j0.to)),null!=j0.state&&(j1.state=0|j0.state),null!=j0.createDt&&(j9.Long?(j1.createDt=j9.Long.fromValue(j0.createDt)).unsigned=!1:"string"==typeof j0.createDt?j1.createDt=parseInt(j0.createDt,10):"number"==typeof j0.createDt?j1.createDt=j0.createDt:"object"===(0,j3.default)(j0.createDt)&&(j1.createDt=new j9.LongBits(j0.createDt.low>>>0,j0.createDt.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults)if(j2.targetId="",j2.from="",j2.to="",j2.state=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.createDt=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.createDt=j1.longs===String?"0":0;return null!=j0.targetId&&j0.hasOwnProperty("targetId")&&(j2.targetId=j0.targetId),null!=j0.from&&j0.hasOwnProperty("from")&&(j2.from=j0.from),null!=j0.to&&j0.hasOwnProperty("to")&&(j2.to=j0.to),null!=j0.state&&j0.hasOwnProperty("state")&&(j2.state=j0.state),null!=j0.createDt&&j0.hasOwnProperty("createDt")&&("number"==typeof j0.createDt?j2.createDt=j1.longs===String?String(j0.createDt):j0.createDt:j2.createDt=j1.longs===String?j9.Long.prototype.toString.call(j0.createDt):j1.longs===Number?new j9.LongBits(j0.createDt.low>>>0,j0.createDt.high>>>0).toNumber():j0.createDt),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.DeleteSecretChatMessage=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.conversation=null,j0.prototype.messageId=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.serverTimestamp=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j10.Conversation.encode(j0.conversation,j1.uint32(10).fork()).ldelim(),j1.uint32(16).int64(j0.messageId),j1.uint32(24).int64(j0.serverTimestamp),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.DeleteSecretChatMessage();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.conversation=j10.Conversation.decode(j0,j0.uint32());break;case 2:j3.messageId=j0.int64();break;case 3:j3.serverTimestamp=j0.int64();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("conversation"))throw j9.ProtocolError("missing required 'conversation'",{instance:j3});if(!j3.hasOwnProperty("messageId"))throw j9.ProtocolError("missing required 'messageId'",{instance:j3});if(!j3.hasOwnProperty("serverTimestamp"))throw j9.ProtocolError("missing required 'serverTimestamp'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){if("object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0)return"object expected";var j1=j10.Conversation.verify(j0.conversation);return j1?"conversation."+j1:j9.isInteger(j0.messageId)||j0.messageId&&j9.isInteger(j0.messageId.low)&&j9.isInteger(j0.messageId.high)?j9.isInteger(j0.serverTimestamp)||j0.serverTimestamp&&j9.isInteger(j0.serverTimestamp.low)&&j9.isInteger(j0.serverTimestamp.high)?null:"serverTimestamp: integer|Long expected":"messageId: integer|Long expected";},j0.fromObject=function(j0){if(j0 instanceof j10.DeleteSecretChatMessage)return j0;var j1=new j10.DeleteSecretChatMessage();if(null!=j0.conversation){if("object"!==(0,j3.default)(j0.conversation))throw TypeError(".DeleteSecretChatMessage.conversation: object expected");j1.conversation=j10.Conversation.fromObject(j0.conversation);}return null!=j0.messageId&&(j9.Long?(j1.messageId=j9.Long.fromValue(j0.messageId)).unsigned=!1:"string"==typeof j0.messageId?j1.messageId=parseInt(j0.messageId,10):"number"==typeof j0.messageId?j1.messageId=j0.messageId:"object"===(0,j3.default)(j0.messageId)&&(j1.messageId=new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber())),null!=j0.serverTimestamp&&(j9.Long?(j1.serverTimestamp=j9.Long.fromValue(j0.serverTimestamp)).unsigned=!1:"string"==typeof j0.serverTimestamp?j1.serverTimestamp=parseInt(j0.serverTimestamp,10):"number"==typeof j0.serverTimestamp?j1.serverTimestamp=j0.serverTimestamp:"object"===(0,j3.default)(j0.serverTimestamp)&&(j1.serverTimestamp=new j9.LongBits(j0.serverTimestamp.low>>>0,j0.serverTimestamp.high>>>0).toNumber())),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.conversation=null,j9.Long){var j3=new j9.Long(0,0,!1);j2.messageId=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.messageId=j1.longs===String?"0":0;if(j9.Long){j3=new j9.Long(0,0,!1);j2.serverTimestamp=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.serverTimestamp=j1.longs===String?"0":0;}return null!=j0.conversation&&j0.hasOwnProperty("conversation")&&(j2.conversation=j10.Conversation.toObject(j0.conversation,j1)),null!=j0.messageId&&j0.hasOwnProperty("messageId")&&("number"==typeof j0.messageId?j2.messageId=j1.longs===String?String(j0.messageId):j0.messageId:j2.messageId=j1.longs===String?j9.Long.prototype.toString.call(j0.messageId):j1.longs===Number?new j9.LongBits(j0.messageId.low>>>0,j0.messageId.high>>>0).toNumber():j0.messageId),null!=j0.serverTimestamp&&j0.hasOwnProperty("serverTimestamp")&&("number"==typeof j0.serverTimestamp?j2.serverTimestamp=j1.longs===String?String(j0.serverTimestamp):j0.serverTimestamp:j2.serverTimestamp=j1.longs===String?j9.Long.prototype.toString.call(j0.serverTimestamp):j1.longs===Number?new j9.LongBits(j0.serverTimestamp.low>>>0,j0.serverTimestamp.high>>>0).toNumber():j0.serverTimestamp),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.AuthCodeRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.targetId="",j0.prototype.type=0,j0.prototype.host="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.targetId),j1.uint32(16).int32(j0.type),j1.uint32(26).string(j0.host),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.AuthCodeRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.targetId=j0.string();break;case 2:j3.type=j0.int32();break;case 3:j3.host=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("targetId"))throw j9.ProtocolError("missing required 'targetId'",{instance:j3});if(!j3.hasOwnProperty("type"))throw j9.ProtocolError("missing required 'type'",{instance:j3});if(!j3.hasOwnProperty("host"))throw j9.ProtocolError("missing required 'host'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.targetId)?j9.isInteger(j0.type)?j9.isString(j0.host)?null:"host: string expected":"type: integer expected":"targetId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.AuthCodeRequest)return j0;var j1=new j10.AuthCodeRequest();return null!=j0.targetId&&(j1.targetId=String(j0.targetId)),null!=j0.type&&(j1.type=0|j0.type),null!=j0.host&&(j1.host=String(j0.host)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j2.targetId="",j2.type=0,j2.host=""),null!=j0.targetId&&j0.hasOwnProperty("targetId")&&(j2.targetId=j0.targetId),null!=j0.type&&j0.hasOwnProperty("type")&&(j2.type=j0.type),null!=j0.host&&j0.hasOwnProperty("host")&&(j2.host=j0.host),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.ApplicationConfigRequest=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.appId="",j0.prototype.appType=0,j0.prototype.timestamp=j9.Long?j9.Long.fromBits(0,0,!1):0,j0.prototype.nonce="",j0.prototype.signature="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).string(j0.appId),j1.uint32(16).int32(j0.appType),j1.uint32(24).int64(j0.timestamp),j1.uint32(34).string(j0.nonce),j1.uint32(42).string(j0.signature),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.ApplicationConfigRequest();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.appId=j0.string();break;case 2:j3.appType=j0.int32();break;case 3:j3.timestamp=j0.int64();break;case 4:j3.nonce=j0.string();break;case 5:j3.signature=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("appId"))throw j9.ProtocolError("missing required 'appId'",{instance:j3});if(!j3.hasOwnProperty("appType"))throw j9.ProtocolError("missing required 'appType'",{instance:j3});if(!j3.hasOwnProperty("timestamp"))throw j9.ProtocolError("missing required 'timestamp'",{instance:j3});if(!j3.hasOwnProperty("nonce"))throw j9.ProtocolError("missing required 'nonce'",{instance:j3});if(!j3.hasOwnProperty("signature"))throw j9.ProtocolError("missing required 'signature'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j9.isString(j0.appId)?j9.isInteger(j0.appType)?j9.isInteger(j0.timestamp)||j0.timestamp&&j9.isInteger(j0.timestamp.low)&&j9.isInteger(j0.timestamp.high)?j9.isString(j0.nonce)?j9.isString(j0.signature)?null:"signature: string expected":"nonce: string expected":"timestamp: integer|Long expected":"appType: integer expected":"appId: string expected";},j0.fromObject=function(j0){if(j0 instanceof j10.ApplicationConfigRequest)return j0;var j1=new j10.ApplicationConfigRequest();return null!=j0.appId&&(j1.appId=String(j0.appId)),null!=j0.appType&&(j1.appType=0|j0.appType),null!=j0.timestamp&&(j9.Long?(j1.timestamp=j9.Long.fromValue(j0.timestamp)).unsigned=!1:"string"==typeof j0.timestamp?j1.timestamp=parseInt(j0.timestamp,10):"number"==typeof j0.timestamp?j1.timestamp=j0.timestamp:"object"===(0,j3.default)(j0.timestamp)&&(j1.timestamp=new j9.LongBits(j0.timestamp.low>>>0,j0.timestamp.high>>>0).toNumber())),null!=j0.nonce&&(j1.nonce=String(j0.nonce)),null!=j0.signature&&(j1.signature=String(j0.signature)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};if(j1.defaults){if(j2.appId="",j2.appType=0,j9.Long){var j3=new j9.Long(0,0,!1);j2.timestamp=j1.longs===String?j3.toString():j1.longs===Number?j3.toNumber():j3;}else j2.timestamp=j1.longs===String?"0":0;j2.nonce="",j2.signature="";}return null!=j0.appId&&j0.hasOwnProperty("appId")&&(j2.appId=j0.appId),null!=j0.appType&&j0.hasOwnProperty("appType")&&(j2.appType=j0.appType),null!=j0.timestamp&&j0.hasOwnProperty("timestamp")&&("number"==typeof j0.timestamp?j2.timestamp=j1.longs===String?String(j0.timestamp):j0.timestamp:j2.timestamp=j1.longs===String?j9.Long.prototype.toString.call(j0.timestamp):j1.longs===Number?new j9.LongBits(j0.timestamp.low>>>0,j0.timestamp.high>>>0).toNumber():j0.timestamp),null!=j0.nonce&&j0.hasOwnProperty("nonce")&&(j2.nonce=j0.nonce),null!=j0.signature&&j0.hasOwnProperty("signature")&&(j2.signature=j0.signature),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j10.RouteRequestInternal=function(){function j0(j0){if(j0)for(var j1=(0,j4.default)(j0),j2=0;j2<j1.length;++j2)null!=j0[j1[j2]]&&(this[j1[j2]]=j0[j1[j2]]);}return j0.prototype.data=j9.newBuffer([]),j0.prototype.appKey="",j0.prototype.appId="",j0.create=function(j1){return new j0(j1);},j0.encode=function(j0,j1){return j1||(j1=j8.create()),j1.uint32(10).bytes(j0.data),null!=j0.appKey&&j0.hasOwnProperty("appKey")&&j1.uint32(18).string(j0.appKey),null!=j0.appId&&j0.hasOwnProperty("appId")&&j1.uint32(26).string(j0.appId),j1;},j0.encodeDelimited=function(j0,j1){return this.encode(j0,j1).ldelim();},j0.decode=function(j0,j1){j0 instanceof j7||(j0=j7.create(j0));for(var j2=void 0===j1?j0.len:j0.pos+j1,j3=new j10.RouteRequestInternal();j0.pos<j2;){var j4=j0.uint32();switch(j4>>>3){case 1:j3.data=j0.bytes();break;case 2:j3.appKey=j0.string();break;case 3:j3.appId=j0.string();break;default:j0.skipType(7&j4);}}if(!j3.hasOwnProperty("data"))throw j9.ProtocolError("missing required 'data'",{instance:j3});return j3;},j0.decodeDelimited=function(j0){return j0 instanceof j7||(j0=new j7(j0)),this.decode(j0,j0.uint32());},j0.verify=function(j0){return"object"!==(void 0===j0?"undefined":(0,j3.default)(j0))||null===j0?"object expected":j0.data&&"number"==typeof j0.data.length||j9.isString(j0.data)?null!=j0.appKey&&j0.hasOwnProperty("appKey")&&!j9.isString(j0.appKey)?"appKey: string expected":null!=j0.appId&&j0.hasOwnProperty("appId")&&!j9.isString(j0.appId)?"appId: string expected":null:"data: buffer expected";},j0.fromObject=function(j0){if(j0 instanceof j10.RouteRequestInternal)return j0;var j1=new j10.RouteRequestInternal();return null!=j0.data&&("string"==typeof j0.data?j9.base64.decode(j0.data,j1.data=j9.newBuffer(j9.base64.length(j0.data)),0):j0.data.length&&(j1.data=j0.data)),null!=j0.appKey&&(j1.appKey=String(j0.appKey)),null!=j0.appId&&(j1.appId=String(j0.appId)),j1;},j0.toObject=function(j0,j1){j1||(j1={});var j2={};return j1.defaults&&(j1.bytes===String?j2.data="":(j2.data=[],j1.bytes!==Array&&(j2.data=j9.newBuffer(j2.data))),j2.appKey="",j2.appId=""),null!=j0.data&&j0.hasOwnProperty("data")&&(j2.data=j1.bytes===String?j9.base64.encode(j0.data,0,j0.data.length):j1.bytes===Array?Array.prototype.slice.call(j0.data):j0.data),null!=j0.appKey&&j0.hasOwnProperty("appKey")&&(j2.appKey=j0.appKey),null!=j0.appId&&j0.hasOwnProperty("appId")&&(j2.appId=j0.appId),j2;},j0.prototype.toJSON=function(){return this.constructor.toObject(this,j6.util.toJSONOptions);},j0;}(),j0.exports=j10;},function(j0,j1,j2){"use strict";Object.defineProperty(j1,"__esModule",{value:!0});var j3=j37(j2(80)),j4=j37(j2(81)),j5=j37(j2(120)),j6=j37(j2(121)),j7=j37(j2(107)),j8=j37(j2(122)),j9=j37(j2(55)),j10=j37(j2(123)),j11=j37(j2(82)),j12=j37(j2(163)),j13=j37(j2(166)),j14=j37(j2(174)),j15=j37(j2(167)),j16=j37(j2(175)),j17=j37(j2(170)),j18=j37(j2(171)),j19=j37(j2(379)),j20=j37(j2(173)),j21=j37(j2(161)),j22=j37(j2(176)),j23=j37(j2(160)),j24=j2(125),j25=j37(j2(380)),j26=j37(j2(164)),j27=j37(j2(169)),j28=j37(j2(92)),j29=j37(j2(381)),j30=j37(j2(172)),j31=j37(j2(165)),j32=j37(j2(168)),j33=j2(29),j34=j37(j2(382)),j35=j37(j2(383)),j36=j37(j2(162));function j37(j0){return j0&&j0.__esModule?j0:{default:j0};}var j38=function(){function j0(j1){(0,j9.default)(this,j0),this.users=new j8.default(),this.groups=new j8.default(),this.loadingUsers=new j7.default(),this.loadingGroups=new j7.default(),this.loadingGroupMembers=new j7.default(),this.favGroups=[],this.favUsers=[],this.channels=new j8.default(),this.groupMembers=new j8.default(),this.friends=new j8.default(),this.deliveries=new j8.default(),this.readEntries=new j8.default(),this.syncReadEntries=new j8.default(),this.groupHeadEntries=new j8.default(),this.friendRequests=[],this.messages=[],this.settings=[],this.conversationInfos=[],this.chatRoomMessageId=100,this.messageId=100,this.syncReadId=100,this.impl=null,this.impl=j1;}return(0,j10.default)(j0,[{key:"genConversationKey",value:function(j0){return j0.type+"@"+j0.target+"@"+j0.line;}},{key:"getUser",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",j2=this._get(this.users,"u",j0,j30.default);if(j2){var j3=this.getFriendAlias(j0);if(j3&&""!==j3&&(j2.friendAlias=j3),j1.length>0){var j4=this.getGroupMember(j1,j0);j4&&j4.alias&&""!==j4.alias&&(j2.groupAlias=j4.alias);}}else j2=new j18.default(j0);return j2;}},{key:"setUser",value:function(j0){this._set(this.users,"u",j0.uid,j0);}},{key:"getChannelInfo",value:function(j0){var j1=this._get(this.channels,"c",j0,j31.default);return j1||(j1=new j22.default(j0)),j1;}},{key:"setChannelInfo",value:function(j0){j0 instanceof j22.default||this._set(this.channels,"c",j0.channelId,j0);}},{key:"getGroupInfo",value:function(j0){var j1=this._get(this.groups,"g",j0,j32.default);if(j1){var j2=this.getUserSetting(j20.default.GroupRemark,j0);j1.remark=j2?j2.value:void 0;}else j1=new j17.default(j0);return j1;}},{key:"setGroupInfo",value:function(j0){this._set(this.groups,"g",j0.target,j0);}},{key:"getGroupMembers",value:function(j0){var j1=this.groupMembers.get(j0);return j1=(j1=j1||[]).filter(function(j0){return j0.type!==j27.default.Removed;});}},{key:"getGroupMemberIds",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j2=this.getGroupMembers(j0,j1),j3=[];return j2.forEach(function(j0){j0.type!==j27.default.Removed&&j3.push(j0.memberId);}),j3;}},{key:"getGroupMemberMaxDt",value:function(j0){var j1=j11.default.ZERO,j2=this.groupMembers.get(j0);return(j2=j2||[]).forEach(function(j0){j1=(0,j24.gt)(j0.updateDt,j1)?j0.updateDt:j1;}),j1;}},{key:"setGroupMembers",value:function(j0,j1){this.groupMembers.set(j0,j1);}},{key:"setGroupManagers",value:function(j0,j1,j2){var j3=this.groupMembers.get(j0);j3&&j3.forEach(function(j0){j2.indexOf(j0.memberId)>=0&&(j0.type=j1?j27.default.Manager:j27.default.Normal);});}},{key:"removeGroupAndMembers",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(j1){var j2=this.getGroupInfo(j0);j2.memberCount=0,this.setGroupInfo(j2);}else this._delete(this.groups,"g",j0);this.groupMembers.delete(j0);}},{key:"removeGroupMembers",value:function(j0,j1){var j2=this.groupMembers.get(j0);j2&&(j2=j2.filter(function(j0){return-1===j1.indexOf(j0.memberId);}),this.groupMembers.set(j0,j2));}},{key:"removeGroupSettings",value:function(j0){var j1=this;[j20.default.GroupHideNickname,j20.default.FavoriteGroup,j20.default.GroupRemark].forEach(function(j2){j1.removeUserSetting(j2,j0);});}},{key:"updateGroupMembers",value:function(j0,j1){var j2=this.groupMembers.get(j0);if(j2)for(var j3=0;j3<j1.length;j3++){for(var j4=!1,j5=0;j5<j2.length;j5++)j2[j5].memberId===j1[j3].memberId&&(j2[j5]=j1[j3],j4=!0);j4||j2.push(j1[j3]);}else this.groupMembers.set(j0,j1);}},{key:"updateGroupMemberMuteOrAllow",value:function(j0,j1,j2,j3){var j4=this;j1&&j1.forEach(function(j1){var j5=j4.getGroupMember(j0,j1);j5&&(j5.type=j3?j2?j27.default.Allowed:0:j2?j27.default.Muted:0);});}},{key:"updateGroupMemberAlias",value:function(j0,j1,j2){var j3=this.getGroupMember(j0,j1);j3&&(j3.alias=j2);}},{key:"updateGroupMemberExtra",value:function(j0,j1,j2){var j3=this.getGroupMember(j0,j1);j3&&(j3.extra=j2);}},{key:"getGroupMember",value:function(j0,j1){var j2=this.groupMembers.get(j0);if(!j2)return null;var j3=!0,j4=!1,j5=void 0;try{for(var j7,j8=(0,j6.default)(j2);!(j3=(j7=j8.next()).done);j3=!0){var j9=j7.value;if(j1===j9.memberId)return j9;}}catch(j0){j4=!0,j5=j0;}finally{try{!j3&&j8.return&&j8.return();}finally{if(j4)throw j5;}}return null;}},{key:"getFriends",value:function(){var j0=[];return this.friends.forEach(function(j1,j2){if(0===j1.state){var j3=new j29.default();j3.userId=j1.uid,j3.alias=j1.alias,j3.extra=j1.extra,j3.extra=j1.updateDt,j0.push(j3);}}),j0;}},{key:"getFriendIds",value:function(){var j0=[];return this.friends.forEach(function(j1,j2){0===j1.state&&j0.push(j1.uid);}),j0;}},{key:"getBlackList",value:function(){var j0=[];return this.friends.forEach(function(j1,j2){1===j1.blacked&&j0.push(j1.uid);}),j0;}},{key:"isBlackListed",value:function(j0){return 1===this.friends.get(j0).blacked;}},{key:"setBlackList",value:function(j0,j1){this.friends.get(j0).blacked=j1?1:0;}},{key:"isMyFriend",value:function(j0){var j1=this.friends.get(j0);return!(!j1||0!==j1.state);}},{key:"isBlocked",value:function(j0){var j1=this.friends.get(j0);return j1&&1===j1.blacked;}},{key:"insertFriend",value:function(j0){var j1=this.friends.get(j0.uid);(!j1||j0.updateDt.compare(j1.updateDt)>0)&&this.friends.set(j0.uid,(0,j5.default)(new j16.default(),j0));}},{key:"addFavGroup",value:function(j0){this.favGroups.indexOf(j0)>=0||this.favGroups.push(j0);}},{key:"removeFavGroup",value:function(j0){this.favGroups=this.favGroups.filter(function(j1){return j1.target!==j0;});}},{key:"getFavGroups",value:function(){return this.favGroups;}},{key:"isFavGroup",value:function(j0){return this.favGroups.indexOf(j0)>=0;}},{key:"getFavUsers",value:function(){return this.favUsers;}},{key:"isFavUser",value:function(j0){return this.favUsers.indexOf(j0)>=0;}},{key:"getFavGroupInfos",value:function(){var j0=this,j1=[];return this.favGroups.map(function(j2){var j3=j0._get(j0.groups,"g",j2,j32.default);j1.push(j3);}),j1;}},{key:"getFriendAlias",value:function(j0){var j1=this.friends.get(j0),j2=j1?j1.alias:"";return j2.length>0?j2:null;}},{key:"getFriendExtra",value:function(j0){var j1=this.friends.get(j0),j2=j1?j1.extra:"";return j2.length>0?j2:null;}},{key:"getFriendUserInfos",value:function(){var j0=this,j1=[];return this.friends.forEach(function(j2,j3){if(0===j2.state){var j4=j0.getUser(j3);j1.push(j4);}}),j1;}},{key:"getConversationInfo",value:function(j0){var j1=this.conversationInfos.filter(function(j1){return j1.conversation.equal(j0);});return j1&&j1.length>0?j1[0]:null;}},{key:"clearConversationUnreadStatus",value:function(j0){var j1=this.getConversationInfo(j0),j2=0;return j1&&(j2=j1.unreadCount.unread+j1.unreadCount.unreadMention+j1.unreadCount.unreadMentionAll,this.updateConversationUnreadStatus(j0,j1.timestamp)),j2;}},{key:"clearMessageUnreadStatus",value:function(j0){for(var j1=!1,j2=0;j2<this.messages.length;j2++){var j3=this.messages[j2];if(j3.messageId===j0&&[j12.default.Unread,j12.default.Mentioned,j12.default.AllMentioned].indexOf(j3.status)>-1){var j4=this.getConversationInfo(j3.conversation);if(j4){switch(j3.status){case j12.default.Unread:j4.unreadCount.unread-=1;break;case j12.default.Mentioned:j4.unreadCount.unreadMention-=1;break;case j12.default.AllMentioned:j4.unreadCount.unreadMentionAll-=1;}j1=!0;}j3.status=j12.default.Readed;break;}}return j1;}},{key:"updateConversationRead",value:function(j0,j1){var j2=this;this.messages.forEach(function(j3){j3.conversation.equal(j0)&&j3.status===j12.default.Sent&&(0,j24.lte)(j3.timestamp,j1)&&(j3.status=j12.default.Readed,j2.log("--------- mark conversation message read",j0,j1));});}},{key:"getConversationReadMaxDt",value:function(j0){var j1=j11.default.ZERO;return this.messages.forEach(function(j2){j2.conversation.equal(j0)&&(j1=(0,j24.gt)(j2.timestamp,j1)?j2.timestamp:j1);}),j1;}},{key:"getUnreadMsgSenders",value:function(j0){var j1=[];return this.messages.forEach(function(j2){j2.conversation.equal(j0)&&(j2.status!==j12.default.Unread&&j2.status!==j12.default.Mentioned&&j2.status!==j12.default.AllMentioned||-1===j1.indexOf(j2.from)&&j1.push(j2.from));}),j1;}},{key:"clearAllUnreadStatus",value:function(){var j0=this,j1=0;return this.conversationInfos.forEach(function(j2){j1+=j2.unreadCount.unread+j2.unreadCount.unreadMention+j2.unreadCount.unreadMentionAll,j0.updateConversationUnreadStatus(j2.conversation,j2.timestamp);}),j1;}},{key:"updateConversationUnreadStatus",value:function(j0,j1){var j2=this.getConversationMessages(j0),j3=this.getConversationInfo(j0);j3.unreadCount.unread=0,j3.unreadCount.unreadMention=0,j3.unreadCount.unreadMentionAll=0,(0,j24.gte)(j1,j3.timestamp)?j2.forEach(function(j0){(0,j24.gte)(j1,j0.timestamp)&&[j12.default.Unread,j12.default.AllMentioned,j12.default.Mentioned].indexOf(j0.status)>-1&&(j0.status=j12.default.Readed);}):j2.forEach(function(j0){0!==j0.direction&&((0,j24.gt)(j0.timestamp,j1)&&j23.default.getMessageContentPersitFlag(j0.content.type)===j26.default.Persist_And_Count?j0.status===j12.default.Unread?j3.unreadCount.unread+=1:j0.status===j12.default.Mentioned?j3.unreadCount.unreadMention+=1:j0.status===j12.default.AllMentioned&&(j3.unreadCount.unreadMentionAll+=1):[j12.default.Unread,j12.default.AllMentioned,j12.default.Mentioned].indexOf(j0.status)>-1&&(j0.status=j12.default.Readed));});}},{key:"_getConversationInfos",value:function(){return this.conversationInfos;}},{key:"getConversationList",value:function(j0,j1){return this.conversationInfos.filter(function(j2){if(-1===j0.indexOf(j2.conversation.type)||-1===j1.indexOf(j2.conversation.line))return!1;j2.conversation.target,j2.conversation.type;return!0;}).sort(function(j0,j1){return j0.top&&!j1.top?1:!j0.top&&j1.top?-1:j0.top&&j1.top&&j0.top!==j1.top?j0.top>j1.top?1:-1:(0,j24.compare)(j0.timestamp,j1.timestamp);}).reverse();}},{key:"searchFriends",value:function(j0){return this.getFriendUserInfos().filter(function(j1){return j1.displayName.indexOf(j0)>=0;});}},{key:"searchConversation",value:function(j0){var j1=this,j2=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,1,2,3],j3=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,1];return this.conversationInfos.filter(function(j4){if(j2.indexOf(j4.conversation.type)<0||j3.indexOf(j4.conversation.line)<0)return!1;var j5=void 0,j6=void 0;switch(j4.conversation.type){case j15.default.Single:j5=j1.getUser(j4.conversation.target).displayName;break;case j15.default.Group:var j7=j1.getGroupInfo(j4.conversation.target);j5=j7.displayName,j6=j7.remark;}if(j5&&j5.indexOf(j0)>-1||j6&&j6.indexOf(j0)>-1)return!0;var j8=j1.searchConversationMessage(j4.conversation,j0);return j8&&j8.length>0;});}},{key:"searchGroups",value:function(j0){var j1=this,j2=[];if(!j0||!j0.trim())return j2;var j3=this.groups;return j0=j0.toUpperCase(),j3.forEach(function(j3,j4){if(!(0,j24.lt)(j3.memberUpdateDt,0)){var j5=j1.getUserSetting(j20.default.GroupRemark,j4);j3.remark=j5?j5.value:"",(j3.name.toUpperCase().indexOf(j0)>-1||j3.remark&&j3.remark.toUpperCase().indexOf(j0)>-1)&&j2.push(j3);}}),j2.map(function(j0){var j1=new j34.default();return j1.groupInfo=j0,j1.matchType=0,j1;});}},{key:"loadPersistGroups",value:function(){if(!(this.groups.size>0))for(var j0=localStorage.length,j1=0;j1<j0;j1++){var j2=localStorage.key(j1);if(j2.startsWith(this.impl.userId+"-g")){var j3=localStorage.getItem(j2);if(j3&&(j3=this.impl._Utf8ArrayToStr((0,j33.AESDecrypt)(j3,"",!1,!1)))){var j4=(0,j5.default)(new j32.default(),JSON.parse(j3)),j6=this.groups.get(j4.target);j6&&!(0,j24.gt)(j4.updateDt,j6.updateDt)||this.groups.set(j4.target,j4);}}}}},{key:"_findConversationInfoIndex",value:function(j0){for(var j1=0;j1<this.conversationInfos.length;j1++)if(this.conversationInfos[j1].conversation.equal(j0))return j1;return-1;}},{key:"removeConversation",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j2=this._findConversationInfoIndex(j0);j2>-1&&this.conversationInfos.splice(j2,1),j1&&(this.messages=this.messages.filter(function(j1){return!j1.conversation.equal(j0);}));}},{key:"setConversationTop",value:function(j0,j1){var j2=this.getConversationInfo(j0);j2&&(j2.top=j1);}},{key:"setConversationSilent",value:function(j0,j1){var j2=this.getConversationInfo(j0);j2&&(j2.isSilent=j1);}},{key:"setConversationDraft",value:function(j0,j1){var j2=this.getConversationInfo(j0);j2&&(j2.draft=j1);}},{key:"getUnreadCount",value:function(j0,j1){var j2=new j19.default();return this.conversationInfos.forEach(function(j3){j0.indexOf(j3.conversation.type)>-1&&j1.indexOf(j3.conversation.line)>-1&&j3.unreadCount&&(j2.unread+=j3.unreadCount.unread,j2.unreadMention+=j3.unreadCount.unreadMention,j2.unreadMentionAll+=j3.unreadCount.unreadMentionAll);}),j2;}},{key:"getConversationUnreadCount",value:function(j0){var j1=this._findConversationInfoIndex(j0);return j1>-1?this.conversationInfos[j1].unreadCount:null;}},{key:"insertConversationMessages",value:function(j0){var j1;(j1=this.messages).push.apply(j1,(0,j4.default)(j0)),this.updateConversationLastMessage(j0[j0.length-1]);}},{key:"updateConversationLastMessage",value:function(j0){if(!j0.messageId)return!1;var j1=this.conversationInfos.find(function(j1){return j1.conversation.equal(j0.conversation);}),j2=j0.conversation.conversationType+"-"+j0.conversation.line+"-"+j0.conversation.target;if(!j1){var j3=this.getUserSetting(j20.default.Conversation_Sync,j2);if(j3&&j3.value&&j3.value.startsWith("-")&&(0,j24.gte)(-Number(j3.value),j0.timestamp))return this.log("conversation removed, drop conversation message",j0),!1;if([j36.default.DismissGroup_Notification,j36.default.QuitGroup_Notification,j36.default.QuitGroup_Visible_Notification].indexOf(j0.messageContent.type)>=0)return console.log("not gen conversation",j0.messageContent.type),!1;j1=this.genAndSaveDefaultConversationInfo(j0.conversation);}var j4=this.getUserSetting(j20.default.Conversation_Sync,j2),j5=0;return j4&&(j5=Math.abs(Number(j4.value))),(0,j24.gt)(j0.timestamp,j5)&&1===j0.direction&&j23.default.getMessageContentFlag(j0.messageContent.type)===j26.default.Persist_And_Count&&(j0.status===j12.default.Unread?j1.unreadCount.unread+=1:j0.status===j12.default.Mentioned?j1.unreadCount.unreadMention+=1:j0.status===j12.default.AllMentioned&&(j1.unreadCount.unreadMentionAll+=1)),!!(0,j24.gt)(j0.timestamp,j1.timestamp)&&(j1.lastMessage=j0,j1.timestamp=j0.timestamp,!0);}},{key:"getConversationOldestMessage",value:function(j0){var j1=void 0;return this.messages.forEach(function(j2){j2.conversation.equal(j0)&&(j1?(0,j24.gt)(j1.timestamp,j2.timestamp)&&(j1=j2):j1=j2);}),j1;}},{key:"getConversationMessages",value:function(j0){var j1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,j2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],j3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,j4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",j5=null;j1&&(j5=this.getMessageById(j1));var j6=this.messages.filter(function(j1){return j5?j2?j1.conversation.equal(j0)&&(0,j24.lt)(j1.timestamp,j5.timestamp)&&(!j4||0===j1.direction&&(j1.to===j4||""===j1.to)||j1.from===j4):j1.conversation.equal(j0)&&(0,j24.gt)(j1.timestamp,j5.timestamp)&&(!j4||0===j1.direction&&(j1.to===j4||""===j1.to)||j1.from===j4):j1.conversation.equal(j0);});return j6&&j6.length>0&&(j6=j6.sort(function(j0,j1){return(0,j24.compare)(j0.timestamp,j1.timestamp);})),j3>0&&(j6=j2?j6.slice(-j3):j6.slice(0,j3)),j6;}},{key:"getConversationLastReceivedMessage",value:function(j0){var j1=this.messages.filter(function(j1){return j1.conversation.equal(j0)&&1===j1.direction;});return j1&&j1.length>0?(j1=j1.sort(function(j0,j1){return(0,j24.compare)(j0.timestamp,j1.timestamp);}))[j1.length-1]:null;}},{key:"getFirstUnreadMessageId",value:function(j0){var j1=this.messages.filter(function(j1){return j1.conversation.equal(j0)&&1===j1.direction&&[j12.default.Unread,j12.default.Mentioned,j12.default.AllMentioned].indexOf(j1.status)>=0;});return j1&&j1.length>0?(j1=j1.sort(function(j0,j1){return(0,j24.compare)(j0.timestamp,j1.timestamp);}))[0].messageId:0;}},{key:"setLastReceivedMessageUnread",value:function(j0,j1,j2){console.log("setLastReceivedMessageUnread",j0,j1);var j3=this.getConversationLastReceivedMessage(j0);return j3&&j3.status>j12.default.Unread?(j3.status=j12.default.Unread,(0,j24.eq)(j2,0)?j3.timestamp=j3.timestamp.add(501):j3.timestamp=j11.default.fromValue(j2),this.getConversationInfo(j0).unreadCount.unread=1,j3.messageUid):0;}},{key:"getMessagesEx2",value:function(j0,j1,j2,j3){var j4=this.messages.filter(function(j4){var j5=j4.conversation;return!(!(j0.indexOf(j5.conversationType)>=0&&j1.indexOf(j5.line)>=0)||j2!==j12.default.All&&j4.status!==j2)&&(!j3||(j5.conversationType===j15.default.Single?j4.from===j3||j5.target===j3:j4.from===j3||j4.to===j3));});return j4&&j4.length>0?j4.sort(function(j0,j1){return(0,j24.compare)(j0.timestamp,j1.timestamp);}):j4;}},{key:"getMessagesEx",value:function(j0,j1,j2,j3){var j4=this.messages.filter(function(j4){var j5=j4.conversation;return!!(j0.indexOf(j5.conversationType)>=0&&j1.indexOf(j5.line)>=0&&(0===j2.length||j2.length>0&&j2.indexOf(j23.default.getMessageContentType(j4.messageContent))>=0))&&(!j3||(j5.conversationType===j15.default.Single?j4.from===j3||j5.target===j3:j4.from===j3||j4.to===j3));});return j4&&j4.length>0?j4.sort(function(j0,j1){return(0,j24.compare)(j0.timestamp,j1.timestamp);}):j4;}},{key:"getFirstUnreadMessage",value:function(j0){var j1=null;return this.messages.forEach(function(j2){j2.conversation.equal(j0)&&[j12.default.Unread,j12.default.Mentioned,j12.default.AllMentioned].indexOf(j2.status)>-1&&(j1?(0,j24.gt)(j1.timestamp,j2.timestamp)&&(j1=j2):j1=j2);}),j1;}},{key:"clearConversationMessages",value:function(j0,j1){this.messages=this.messages.filter(function(j2){return!j2.conversation.equal(j0)||(0,j24.gt)(j2.timestamp,j1);});var j2=this.getConversationInfo(j0);j2&&j2.lastMessage&&j2.lastMessage.timestamp&&(0,j24.lte)(j2.lastMessage.timestamp,j1)&&(j2.lastMessage=null);}},{key:"clearConversationMessagesBeforeMessageUid",value:function(j0,j1){this.messages=this.messages.filter(function(j2){return!j2.conversation.equal(j0)||(0,j24.gte)(j2.messageUid,j1);});var j2=this.getConversationInfo(j0);j2&&j2.lastMessage&&j2.lastMessage.messageUid&&(0,j24.lte)(j2.lastMessage.messageUid,j1)&&(j2.lastMessage=null);}},{key:"searchMessage",value:function(j0){return this.messages.filter(function(j1){return j1.content&&j1.content.searchableContent&&j1.content.searchableContent.indexOf(j0)>-1;});}},{key:"searchConversationMessage",value:function(j0,j1,j2){return this.getConversationMessages(j0).filter(function(j0){return(!j2||j0.from===j2)&&j0.content&&j0.content.searchableContent&&j0.content.searchableContent.indexOf(j1)>-1;});}},{key:"genChatRoomMessageId",value:function(){return this.chatRoomMessageId++,0-this.chatRoomMessageId;}},{key:"genNormalMessageId",value:function(){return this.messageId++;}},{key:"saveMessage",value:function(j0){var j1=void 0;if(j0.messageUid&&-1!==j0.messageUid&&(j1=this.getMessageByUid(j0.messageUid)))return j0.messageId=j1.messageId,j1.messageContent=j0.messageContent,j1.timestamp=j0.timestamp,this.log("messageUid exist",j0),!1;var j2=this.getUserSetting(j20.default.Conversation_Sync,j0.conversation.conversationType+"-"+j0.conversation.line+"-"+j0.conversation.target),j3=0;return j2&&(j3=Number(j2.value)),1===j0.direction&&(0,j24.gte)(j3,j0.timestamp)&&(j0.status=j12.default.Readed),this.messages.push(j0),!0;}},{key:"updateMessageById",value:function(j0){if(j0.messageId){for(var j1=-1,j2=0;j2<this.messages.length;j2++){if(this.messages[j2].messageId===j0.messageId){j1=j2;break;}}if(-1!==j1){this.messages[j1]=j0;var j3=this.getConversationInfo(j0.conversation);j3&&j3.lastMessage.messageId===j0.messageId&&(j3.lastMessage=j0);}}}},{key:"updateMessageByUid",value:function(j0){if(j0.messageUid){for(var j1=-1,j2=0;j2<this.messages.length;j2++){var j3=this.messages[j2];if((0,j24.eq)(j3.messageUid,j0.messageUid)){j1=j2;break;}}if(-1!==j1){this.messages[j1].messageId&&!j0.messageId&&(j0.messageId=this.messages[j1].messageId),this.messages[j1]=j0;var j4=this.getConversationInfo(j0.conversation);j4&&(0,j24.eq)(j4.lastMessage.messageUid,j0.messageUid)&&(j4.lastMessage=j0);}}}},{key:"deleteMessageById",value:function(j0){for(var j1=void 0,j2=0;j2<this.messages.length;j2++){if(this.messages[j2].messageId===j0){j1=j2;break;}}if(j1){var j3=this.messages.splice(j1,1)[0];return this.onMessageDeleted(j3),!0;}return!1;}},{key:"deleteMessageByUid",value:function(j0){for(var j1=void 0,j2=0;j2<this.messages.length;j2++){if(0===this.messages[j2].messageUid.compare(j0)){j1=j2;break;}}if(j1){var j3=this.messages.splice(j1,1)[0];return this.onMessageDeleted(j3),!0;}return!1;}},{key:"onMessageDeleted",value:function(j0){if(j0){var j1=j0,j2=this.getConversationInfo(j1.conversation),j3=this.getUserSetting(j20.default.Conversation_Sync,j1.conversation.conversationType+"-"+j1.conversation.line+"-"+j1.conversation.target),j4=0;if(j3&&(j4=Number(j3.value)),(0,j24.gt)(j1.timestamp,j4)&&1===j1.direction&&(j1.status===j12.default.Unread?j2.unreadCount.unread-=1:j1.status===j12.default.Mentioned?j2.unreadCount.unreadMention-=1:j1.status===j12.default.AllMentioned&&(j2.unreadCount.unreadMentionAll-=1)),j2.lastMessage&&j2.lastMessage.messageId===j1.messageId){var j5=this.getConversationMessages(j1.conversation);j5&&j5.length>0?j2.lastMessage=j5[j5.length-1]:j2.lastMessage=null;}}}},{key:"deleteFriend",value:function(j0){this.friends.delete(j0);}},{key:"getMessageById",value:function(j0){var j1=this.messages.filter(function(j1){return j1.messageId===j0;});return j1.length>0?j1[0]:null;}},{key:"getCallStartMessage",value:function(j0){var j1=this.messages.filter(function(j1){return 400===j1.messageContent.type&&j1.messageContent.callId===j0;});return j1.length>0?j1[0]:null;}},{key:"getMessageByUid",value:function(j0){var j1=j11.default.fromValue(j0),j2=this.messages.filter(function(j0){return 0===j1.compare(j0.messageUid);});return j2&&j2.length>0?j2[0]:null;}},{key:"setMediaMessagePlayed",value:function(j0){var j1=!1,j2=this.getMessageById(j0);return j2.messageContent instanceof j21.default&&1===j2.direction&&(j2.status=j12.default.Played,j1=!0),j1;}},{key:"updateUserSettings",value:function(j0){var j1=this;j0.sort(function(j0,j1){return(0,j24.compare)(j0.updateDt,j1.updateDt);}),j0.forEach(function(j0){if(j0.updateDt){for(var j2=-1,j3=0;j3<j1.settings.length;j3++){var j4=j1.settings[j3];if(j4.key===j0.key&&j4.scope===j0.scope){j2=j3;break;}}if(j2>=0?""===j0.value?j1.settings.splice(j2,1):j1.settings[j2]=j0:""!==j0.value&&j1.settings.push(j0),j0.scope===j20.default.ConversationSilent||j0.scope===j20.default.ConversationTop||j0.scope===j20.default.Conversation_Sync||j0.scope===j20.default.UserSettingConversationReaded||j0.scope===j20.default.ConversationClearMessage||j0.scope===j20.default.ConversationDraft){var j5=j0.key,j6=j5.indexOf("-"),j7=j5.indexOf("-",j6+1),j8=parseInt(j5.substring(0,j6)),j9=parseInt(j5.substring(j6+1,j7)),j10=j5.substring(j7+1),j11=new j13.default(j8,j10,j9),j12=j1.getConversationInfo(j11);if(!j12){var j14=Number(j0.value);if((j14=j14%1e3<500?j14:j14+(1e3-j14%1e3))<0||j14>0&&new Date().getTime()-j14>=24*(j28.default.CONVERSATION_EXPIRE_TIME?j28.default.CONVERSATION_EXPIRE_TIME:30)*60*60*1e3)return;if(j0.scope===j20.default.ConversationSilent&&"1"===j0.value||j28.default.DISABLE_GENERATE_CONVERSATION_FOR_SILENT_SETTING)return;(j12=j1.genAndSaveDefaultConversationInfo(j11)).timestamp=j0.updateDt;}if(j0.scope===j20.default.ConversationSilent)j12.isSilent="1"===j0.value;else if(j0.scope===j20.default.ConversationTop)j12.top=Number(j0.value);else if(j0.scope===j20.default.Conversation_Sync){var j15=Number(j0.value);j15<0?(0,j24.lte)(j12.timestamp,-j15)&&j1.removeConversation(j11,!0):j1.updateConversationUnreadStatus(j11,j15);}else if(j0.scope===j20.default.UserSettingConversationReaded)j1.updateConversationRead(j11,Number(j0.value));else if(j0.scope===j20.default.ConversationClearMessage){var j16=Number(j0.value);j12&&j16>0&&j1.impl.clearMessages(j11,j16);}else if(j0.scope===j20.default.ConversationDraft){var j17=j0.value.indexOf("@@@");if(j17>0){var j18=j0.value.substring(0,j17);if(!j18||j18===j1.impl.clientId||j1.impl.isGlobalDisableDraftSync||j1.impl.isDisableSyncDraft())return;var j19=j0.value.substring(j17+3).trim();j12&&j12.draft!==j19&&j1.impl.setConversationDraft(j11,j19,!1);}}}else if(j0.scope===j20.default.FavoriteGroup){var j21=j1.favGroups.indexOf(j0.key);"1"===j0.value?j21<0&&j1.favGroups.push(j0.key):j21>=0&&j1.favGroups.splice(j21,1);}else if(j0.scope===j20.default.FavoriteUser){var j22=j1.favUsers.indexOf(j0.key);"1"===j0.value?j22<0&&j1.favUsers.push(j0.key):j22>=0&&j1.favUsers.splice(j22,1);}}else console.log("invalid setting",j0);});}},{key:"genAndSaveDefaultConversationInfo",value:function(j0){var j1=this._findConversationInfoIndex(j0);if(-1!==j1)return this.conversationInfos[j1];var j2=new j14.default();j2.conversation=j0,j2.timestamp=j11.default.ZERO,j2.unreadCount=new j19.default();var j3=j0.conversationType+"-"+j0.line+"-"+j0.target,j4=this.getUserSetting(j20.default.ConversationSilent,j3);j4&&"1"===j4.value&&(j2.isSilent=!0);var j5=this.getUserSetting(j20.default.ConversationTop,j3);return j5&&j5.value&&(j2.top=Number(j5.value)),this.conversationInfos.push(j2),j2;}},{key:"updateDeliveries",value:function(j0){var j1=this;j0.forEach(function(j0){j1.deliveries.set(j0.fromUser,j0.receiveTime);});}},{key:"getUserDelivery",value:function(j0){return this.deliveries.get(j0);}},{key:"getConversationDelivery",value:function(j0){var j1=new j8.default();if(0===j0.type){var j2=this.getUserDelivery(j0.target);j2&&j1.set(j0.target,j2);}else if(1===j0.type){var j3=this.getGroupMemberIds(j0.target);this.deliveries.forEach(function(j0,j2){j3.indexOf(j2)>=0&&j1.set(j2,j0);});}return j1;}},{key:"updateReads",value:function(j0){var j1=this;j0.forEach(function(j0){0===j0.conversation.type&&(j0.conversation.target=j0.fromUser);var j2=j1.genConversationKey(j0.conversation),j3=j1.readEntries.get(j2);j3||(j3=new j8.default(),j1.readEntries.set(j2,j3)),j3.set(j0.fromUser,j0.readTime);});}},{key:"saveSyncReadEntry",value:function(j0,j1,j2,j3,j4){var j5=this.syncReadId++,j6=new j25.default();return j6.id=j5,j6.type=j0,j6.target=j1,j6.line=j2,j6.readDt=j3,j6.senders=j4,this.syncReadEntries.set(j5,j6),j5;}},{key:"deleteSyncReadEntry",value:function(j0){this.syncReadEntries.delete(j0);}},{key:"getSyncReadEntries",value:function(){return this.syncReadEntries;}},{key:"loadSyncReadEntry",value:function(){return this.syncReadEntries.values().next().value;}},{key:"_genSyncReadEntryKey",value:function(j0){return j0.type+"@"+j0.target+"@"+j0.line;}},{key:"getConversationRead",value:function(j0){var j1=this._genSyncReadEntryKey(j0);return this.readEntries.get(j1);}},{key:"getUserSetting",value:function(j0,j1){var j2=this.settings.filter(function(j2){return j2.scope===j0&&j2.key===j1;});return j2.length>0?j2[j2.length-1]:null;}},{key:"getUserSettings",value:function(j0){return this.settings.filter(function(j1){return j1.scope===j0;});}},{key:"removeUserSetting",value:function(j0,j1){this.settings=this.settings.filter(function(j2){return!(j2.scope===j0&&j2.key===j1);});}},{key:"getFriendRequestMaxDt",value:function(){var j0=j11.default.ZERO;return this.friendRequests.forEach(function(j1){j0=(0,j24.gt)(j1.timestamp,j0)?j1.timestamp:j0;}),j0;}},{key:"insertOrReplaceFriendRequest",value:function(j0){for(var j1=-1,j2=0;j2<this.friendRequests.length;j2++){var j3=this.friendRequests[j2];if(j3.direction===j0.direction&&j3.target===j0.target){j1=j2;break;}}j1>=0?this.friendRequests[j1]=j0:this.friendRequests.push(j0);}},{key:"getIncommingFriendRequest",value:function(){return this.friendRequests.filter(function(j0){return 1===j0.direction;});}},{key:"getOutgoingFriendRequest",value:function(){return this.friendRequests.filter(function(j0){return 0===j0.direction;});}},{key:"getOneFriendRequest",value:function(j0,j1){var j2=this.friendRequests.filter(function(j2){return j2.target===j0&&j2.direction===(j1?1:0);});return j2.length>0?j2[0]:null;}},{key:"getUnreadFriendRequestCount",value:function(){var j0=0;return this.friendRequests.forEach(function(j1){1===j1.direction&&0===j1.readStatus&&j0++;}),j0;}},{key:"clearUnreadFriendRequestStatus",value:function(){var j0=0;return this.friendRequests.forEach(function(j1){1===j1.direction&&0===j1.readStatus&&(j1.readStatus=1,j0++);}),j0;}},{key:"updateFriendRequestStatus",value:function(j0,j1){this.friendRequests.forEach(function(j2){j2.target===j0&&1===j2.direction&&(j2.status=j1);});}},{key:"getUnreadFriendRequestMaxDt",value:function(){var j0=j11.default.ZERO;return this.friendRequests.forEach(function(j1){1===j1.direction&&0===j1.readStatus&&(j0=(0,j24.gt)(j1.timestamp,j0)?j1.timestamp:j0);}),j0;}},{key:"getGroupMessageHead",value:function(j0,j1){var j2=this.groupHeadEntries.get(j0+"-"+j1);return j2?j2.head:j11.default.ZERO;}},{key:"setGroupMessageHead",value:function(j0,j1,j2){var j3=j0+"-"+j1,j4=this.groupHeadEntries.get(j3);j4||(j4=new j35.default(),this.groupHeadEntries.set(j3,j4)),j4.target=j0,j4.line=j1,j4.head=j2;}},{key:"setGroupMessageServerHead",value:function(j0,j1,j2){var j3=j0+"-"+j1,j4=this.groupHeadEntries.get(j3);j4||(j4=new j35.default(),this.groupHeadEntries.set(j3,j4)),j4.target=j0,j4.line=j1,j4.serverHead=j2;}},{key:"getGroupMessageHeads",value:function(){var j0=[];return this.groupHeadEntries.forEach(function(j1,j2){(0,j24.gt)(j1.serverHead,j1.head)&&j0.push(j1);}),j0;}},{key:"log",value:function(j0){if(!j28.default.DISABLE_LOG){for(var j1,j2=arguments.length,j3=Array(j2>1?j2-1:0),j4=1;j4<j2;j4++)j3[j4-1]=arguments[j4];(j1=console).log.apply(j1,[j0].concat(j3));}}},{key:"_get",value:function(j0,j1,j2,j3){var j4=j0.get(j2);if(j4)return(0,j5.default)(new j3(),j4);if(j28.default.ENABLE_INFO_PERSISTENCE){var j6=this.impl.userId+"-"+j1+"-"+j2,j7=localStorage.getItem(j6);if(j7&&(j7=this.impl._Utf8ArrayToStr((0,j33.AESDecrypt)(j7,"",!1,!1))))return(0,j5.default)(new j3(),JSON.parse(j7));}return null;}},{key:"_set",value:function(j0,j1,j2,j4){if(j0.set(j2,j4),j28.default.ENABLE_INFO_PERSISTENCE){j4=j4?(0,j3.default)(j4):"";var j5=this.impl.userId+"-"+j1+"-"+j2;j4=(0,j33.AESEncrypt)(j4,"",!1),localStorage.setItem(j5,j4);}}},{key:"_delete",value:function(j0,j1,j2){if(j0.delete(j2),j28.default.ENABLE_INFO_PERSISTENCE){var j3=this.impl.userId+"-"+j1+"-"+j2;localStorage.removeItem(j3);}}}]),j0;}();j1.default=j38;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__379__;},function(j0,j1,j2){"use strict";Object.defineProperty(j1,"__esModule",{value:!0});var j3,j4=j2(55),j5=(j3=j4)&&j3.__esModule?j3:{default:j3};j1.default=function j0(){(0,j5.default)(this,j0);};},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__381__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__382__;},function(j0,j1,j2){"use strict";Object.defineProperty(j1,"__esModule",{value:!0});var j3,j4=j2(55),j5=(j3=j4)&&j3.__esModule?j3:{default:j3};j1.default=function j0(){(0,j5.default)(this,j0),this.line=0,this.head=0,this.serverHead=0;};},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__384__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__385__;},function(j0,j1,j2){"use strict";var j3={};(0,j2(20).assign)(j3,j2(387),j2(390),j2(181)),j0.exports=j3;},function(j0,j1,j2){"use strict";var j3=j2(388),j4=j2(20),j5=j2(179),j6=j2(96),j7=j2(180),j8=Object.prototype.toString;function j9(j0){if(!(this instanceof j9))return new j9(j0);this.options=j4.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},j0||{});var j1=this.options;j1.raw&&j1.windowBits>0?j1.windowBits=-j1.windowBits:j1.gzip&&j1.windowBits>0&&j1.windowBits<16&&(j1.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new j7(),this.strm.avail_out=0;var j2=j3.deflateInit2(this.strm,j1.level,j1.method,j1.windowBits,j1.memLevel,j1.strategy);if(0!==j2)throw new Error(j6[j2]);if(j1.header&&j3.deflateSetHeader(this.strm,j1.header),j1.dictionary){var j10;if(j10="string"==typeof j1.dictionary?j5.string2buf(j1.dictionary):"[object ArrayBuffer]"===j8.call(j1.dictionary)?new Uint8Array(j1.dictionary):j1.dictionary,0!==(j2=j3.deflateSetDictionary(this.strm,j10)))throw new Error(j6[j2]);this._dict_set=!0;}}function j10(j0,j1){var j2=new j9(j1);if(j2.push(j0,!0),j2.err)throw j2.msg||j6[j2.err];return j2.result;}j9.prototype.push=function(j0,j1){var j2,j6,j7=this.strm,j9=this.options.chunkSize;if(this.ended)return!1;j6=j1===~~j1?j1:!0===j1?4:0,"string"==typeof j0?j7.input=j5.string2buf(j0):"[object ArrayBuffer]"===j8.call(j0)?j7.input=new Uint8Array(j0):j7.input=j0,j7.next_in=0,j7.avail_in=j7.input.length;do{if(0===j7.avail_out&&(j7.output=new j4.Buf8(j9),j7.next_out=0,j7.avail_out=j9),1!==(j2=j3.deflate(j7,j6))&&0!==j2)return this.onEnd(j2),this.ended=!0,!1;0!==j7.avail_out&&(0!==j7.avail_in||4!==j6&&2!==j6)||("string"===this.options.to?this.onData(j5.buf2binstring(j4.shrinkBuf(j7.output,j7.next_out))):this.onData(j4.shrinkBuf(j7.output,j7.next_out)));}while((j7.avail_in>0||0===j7.avail_out)&&1!==j2);return 4===j6?(j2=j3.deflateEnd(this.strm),this.onEnd(j2),this.ended=!0,0===j2):2!==j6||(this.onEnd(0),j7.avail_out=0,!0);},j9.prototype.onData=function(j0){this.chunks.push(j0);},j9.prototype.onEnd=function(j0){0===j0&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=j4.flattenChunks(this.chunks)),this.chunks=[],this.err=j0,this.msg=this.strm.msg;},j1.Deflate=j9,j1.deflate=j10,j1.deflateRaw=function(j0,j1){return(j1=j1||{}).raw=!0,j10(j0,j1);},j1.gzip=function(j0,j1){return(j1=j1||{}).gzip=!0,j10(j0,j1);};},function(j0,j1,j2){"use strict";var j3,j4=j2(20),j5=j2(389),j6=j2(177),j7=j2(178),j8=j2(96),j9=-2,j10=258,j11=262,j12=103,j13=113,j14=666;function j15(j0,j1){return j0.msg=j8[j1],j1;}function j16(j0){return(j0<<1)-(j0>4?9:0);}function j17(j0){for(var j1=j0.length;--j1>=0;)j0[j1]=0;}function j18(j0){var j1=j0.state,j2=j1.pending;j2>j0.avail_out&&(j2=j0.avail_out),0!==j2&&(j4.arraySet(j0.output,j1.pending_buf,j1.pending_out,j2,j0.next_out),j0.next_out+=j2,j1.pending_out+=j2,j0.total_out+=j2,j0.avail_out-=j2,j1.pending-=j2,0===j1.pending&&(j1.pending_out=0));}function j19(j0,j1){j5._tr_flush_block(j0,j0.block_start>=0?j0.block_start:-1,j0.strstart-j0.block_start,j1),j0.block_start=j0.strstart,j18(j0.strm);}function j20(j0,j1){j0.pending_buf[j0.pending++]=j1;}function j21(j0,j1){j0.pending_buf[j0.pending++]=j1>>>8&255,j0.pending_buf[j0.pending++]=255&j1;}function j22(j0,j1){var j2,j3,j4=j0.max_chain_length,j5=j0.strstart,j6=j0.prev_length,j7=j0.nice_match,j8=j0.strstart>j0.w_size-j11?j0.strstart-(j0.w_size-j11):0,j9=j0.window,j12=j0.w_mask,j13=j0.prev,j14=j0.strstart+j10,j15=j9[j5+j6-1],j16=j9[j5+j6];j0.prev_length>=j0.good_match&&(j4>>=2),j7>j0.lookahead&&(j7=j0.lookahead);do{if(j9[(j2=j1)+j6]===j16&&j9[j2+j6-1]===j15&&j9[j2]===j9[j5]&&j9[++j2]===j9[j5+1]){j5+=2,j2++;do{}while(j9[++j5]===j9[++j2]&&j9[++j5]===j9[++j2]&&j9[++j5]===j9[++j2]&&j9[++j5]===j9[++j2]&&j9[++j5]===j9[++j2]&&j9[++j5]===j9[++j2]&&j9[++j5]===j9[++j2]&&j9[++j5]===j9[++j2]&&j5<j14);if(j3=j10-(j14-j5),j5=j14-j10,j3>j6){if(j0.match_start=j1,j6=j3,j3>=j7)break;j15=j9[j5+j6-1],j16=j9[j5+j6];}}}while((j1=j13[j1&j12])>j8&&0!=--j4);return j6<=j0.lookahead?j6:j0.lookahead;}function j23(j0){var j1,j2,j3,j5,j8,j9,j10,j12,j13,j14,j15=j0.w_size;do{if(j5=j0.window_size-j0.lookahead-j0.strstart,j0.strstart>=j15+(j15-j11)){j4.arraySet(j0.window,j0.window,j15,j15,0),j0.match_start-=j15,j0.strstart-=j15,j0.block_start-=j15,j1=j2=j0.hash_size;do{j3=j0.head[--j1],j0.head[j1]=j3>=j15?j3-j15:0;}while(--j2);j1=j2=j15;do{j3=j0.prev[--j1],j0.prev[j1]=j3>=j15?j3-j15:0;}while(--j2);j5+=j15;}if(0===j0.strm.avail_in)break;if(j9=j0.strm,j10=j0.window,j12=j0.strstart+j0.lookahead,j13=j5,j14=void 0,(j14=j9.avail_in)>j13&&(j14=j13),j2=0===j14?0:(j9.avail_in-=j14,j4.arraySet(j10,j9.input,j9.next_in,j14,j12),1===j9.state.wrap?j9.adler=j6(j9.adler,j10,j14,j12):2===j9.state.wrap&&(j9.adler=j7(j9.adler,j10,j14,j12)),j9.next_in+=j14,j9.total_in+=j14,j14),j0.lookahead+=j2,j0.lookahead+j0.insert>=3)for(j8=j0.strstart-j0.insert,j0.ins_h=j0.window[j8],j0.ins_h=(j0.ins_h<<j0.hash_shift^j0.window[j8+1])&j0.hash_mask;j0.insert&&(j0.ins_h=(j0.ins_h<<j0.hash_shift^j0.window[j8+3-1])&j0.hash_mask,j0.prev[j8&j0.w_mask]=j0.head[j0.ins_h],j0.head[j0.ins_h]=j8,j8++,j0.insert--,!(j0.lookahead+j0.insert<3)););}while(j0.lookahead<j11&&0!==j0.strm.avail_in);}function j24(j0,j1){for(var j2,j3;;){if(j0.lookahead<j11){if(j23(j0),j0.lookahead<j11&&0===j1)return 1;if(0===j0.lookahead)break;}if(j2=0,j0.lookahead>=3&&(j0.ins_h=(j0.ins_h<<j0.hash_shift^j0.window[j0.strstart+3-1])&j0.hash_mask,j2=j0.prev[j0.strstart&j0.w_mask]=j0.head[j0.ins_h],j0.head[j0.ins_h]=j0.strstart),0!==j2&&j0.strstart-j2<=j0.w_size-j11&&(j0.match_length=j22(j0,j2)),j0.match_length>=3){if(j3=j5._tr_tally(j0,j0.strstart-j0.match_start,j0.match_length-3),j0.lookahead-=j0.match_length,j0.match_length<=j0.max_lazy_match&&j0.lookahead>=3){j0.match_length--;do{j0.strstart++,j0.ins_h=(j0.ins_h<<j0.hash_shift^j0.window[j0.strstart+3-1])&j0.hash_mask,j2=j0.prev[j0.strstart&j0.w_mask]=j0.head[j0.ins_h],j0.head[j0.ins_h]=j0.strstart;}while(0!=--j0.match_length);j0.strstart++;}else j0.strstart+=j0.match_length,j0.match_length=0,j0.ins_h=j0.window[j0.strstart],j0.ins_h=(j0.ins_h<<j0.hash_shift^j0.window[j0.strstart+1])&j0.hash_mask;}else j3=j5._tr_tally(j0,0,j0.window[j0.strstart]),j0.lookahead--,j0.strstart++;if(j3&&(j19(j0,!1),0===j0.strm.avail_out))return 1;}return j0.insert=j0.strstart<2?j0.strstart:2,4===j1?(j19(j0,!0),0===j0.strm.avail_out?3:4):j0.last_lit&&(j19(j0,!1),0===j0.strm.avail_out)?1:2;}function j25(j0,j1){for(var j2,j3,j4;;){if(j0.lookahead<j11){if(j23(j0),j0.lookahead<j11&&0===j1)return 1;if(0===j0.lookahead)break;}if(j2=0,j0.lookahead>=3&&(j0.ins_h=(j0.ins_h<<j0.hash_shift^j0.window[j0.strstart+3-1])&j0.hash_mask,j2=j0.prev[j0.strstart&j0.w_mask]=j0.head[j0.ins_h],j0.head[j0.ins_h]=j0.strstart),j0.prev_length=j0.match_length,j0.prev_match=j0.match_start,j0.match_length=2,0!==j2&&j0.prev_length<j0.max_lazy_match&&j0.strstart-j2<=j0.w_size-j11&&(j0.match_length=j22(j0,j2),j0.match_length<=5&&(1===j0.strategy||3===j0.match_length&&j0.strstart-j0.match_start>4096)&&(j0.match_length=2)),j0.prev_length>=3&&j0.match_length<=j0.prev_length){j4=j0.strstart+j0.lookahead-3,j3=j5._tr_tally(j0,j0.strstart-1-j0.prev_match,j0.prev_length-3),j0.lookahead-=j0.prev_length-1,j0.prev_length-=2;do{++j0.strstart<=j4&&(j0.ins_h=(j0.ins_h<<j0.hash_shift^j0.window[j0.strstart+3-1])&j0.hash_mask,j2=j0.prev[j0.strstart&j0.w_mask]=j0.head[j0.ins_h],j0.head[j0.ins_h]=j0.strstart);}while(0!=--j0.prev_length);if(j0.match_available=0,j0.match_length=2,j0.strstart++,j3&&(j19(j0,!1),0===j0.strm.avail_out))return 1;}else if(j0.match_available){if((j3=j5._tr_tally(j0,0,j0.window[j0.strstart-1]))&&j19(j0,!1),j0.strstart++,j0.lookahead--,0===j0.strm.avail_out)return 1;}else j0.match_available=1,j0.strstart++,j0.lookahead--;}return j0.match_available&&(j3=j5._tr_tally(j0,0,j0.window[j0.strstart-1]),j0.match_available=0),j0.insert=j0.strstart<2?j0.strstart:2,4===j1?(j19(j0,!0),0===j0.strm.avail_out?3:4):j0.last_lit&&(j19(j0,!1),0===j0.strm.avail_out)?1:2;}function j26(j0,j1,j2,j3,j4){this.good_length=j0,this.max_lazy=j1,this.nice_length=j2,this.max_chain=j3,this.func=j4;}function j27(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new j4.Buf16(1146),this.dyn_dtree=new j4.Buf16(122),this.bl_tree=new j4.Buf16(78),j17(this.dyn_ltree),j17(this.dyn_dtree),j17(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new j4.Buf16(16),this.heap=new j4.Buf16(573),j17(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new j4.Buf16(573),j17(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0;}function j28(j0){var j1;return j0&&j0.state?(j0.total_in=j0.total_out=0,j0.data_type=2,(j1=j0.state).pending=0,j1.pending_out=0,j1.wrap<0&&(j1.wrap=-j1.wrap),j1.status=j1.wrap?42:j13,j0.adler=2===j1.wrap?0:1,j1.last_flush=0,j5._tr_init(j1),0):j15(j0,j9);}function j29(j0){var j1,j2=j28(j0);return 0===j2&&((j1=j0.state).window_size=2*j1.w_size,j17(j1.head),j1.max_lazy_match=j3[j1.level].max_lazy,j1.good_match=j3[j1.level].good_length,j1.nice_match=j3[j1.level].nice_length,j1.max_chain_length=j3[j1.level].max_chain,j1.strstart=0,j1.block_start=0,j1.lookahead=0,j1.insert=0,j1.match_length=j1.prev_length=2,j1.match_available=0,j1.ins_h=0),j2;}function j30(j0,j1,j2,j3,j5,j6){if(!j0)return j9;var j7=1;if(-1===j1&&(j1=6),j3<0?(j7=0,j3=-j3):j3>15&&(j7=2,j3-=16),j5<1||j5>9||8!==j2||j3<8||j3>15||j1<0||j1>9||j6<0||j6>4)return j15(j0,j9);8===j3&&(j3=9);var j8=new j27();return j0.state=j8,j8.strm=j0,j8.wrap=j7,j8.gzhead=null,j8.w_bits=j3,j8.w_size=1<<j8.w_bits,j8.w_mask=j8.w_size-1,j8.hash_bits=j5+7,j8.hash_size=1<<j8.hash_bits,j8.hash_mask=j8.hash_size-1,j8.hash_shift=~~((j8.hash_bits+3-1)/3),j8.window=new j4.Buf8(2*j8.w_size),j8.head=new j4.Buf16(j8.hash_size),j8.prev=new j4.Buf16(j8.w_size),j8.lit_bufsize=1<<j5+6,j8.pending_buf_size=4*j8.lit_bufsize,j8.pending_buf=new j4.Buf8(j8.pending_buf_size),j8.d_buf=1*j8.lit_bufsize,j8.l_buf=3*j8.lit_bufsize,j8.level=j1,j8.strategy=j6,j8.method=j2,j29(j0);}j3=[new j26(0,0,0,0,function(j0,j1){var j2=65535;for(j2>j0.pending_buf_size-5&&(j2=j0.pending_buf_size-5);;){if(j0.lookahead<=1){if(j23(j0),0===j0.lookahead&&0===j1)return 1;if(0===j0.lookahead)break;}j0.strstart+=j0.lookahead,j0.lookahead=0;var j3=j0.block_start+j2;if((0===j0.strstart||j0.strstart>=j3)&&(j0.lookahead=j0.strstart-j3,j0.strstart=j3,j19(j0,!1),0===j0.strm.avail_out))return 1;if(j0.strstart-j0.block_start>=j0.w_size-j11&&(j19(j0,!1),0===j0.strm.avail_out))return 1;}return j0.insert=0,4===j1?(j19(j0,!0),0===j0.strm.avail_out?3:4):(j0.strstart>j0.block_start&&(j19(j0,!1),j0.strm.avail_out),1);}),new j26(4,4,8,4,j24),new j26(4,5,16,8,j24),new j26(4,6,32,32,j24),new j26(4,4,16,16,j25),new j26(8,16,32,32,j25),new j26(8,16,128,128,j25),new j26(8,32,128,256,j25),new j26(32,128,258,1024,j25),new j26(32,258,258,4096,j25)],j1.deflateInit=function(j0,j1){return j30(j0,j1,8,15,8,0);},j1.deflateInit2=j30,j1.deflateReset=j29,j1.deflateResetKeep=j28,j1.deflateSetHeader=function(j0,j1){return j0&&j0.state?2!==j0.state.wrap?j9:(j0.state.gzhead=j1,0):j9;},j1.deflate=function(j0,j1){var j2,j4,j6,j8;if(!j0||!j0.state||j1>5||j1<0)return j0?j15(j0,j9):j9;if(j4=j0.state,!j0.output||!j0.input&&0!==j0.avail_in||j4.status===j14&&4!==j1)return j15(j0,0===j0.avail_out?-5:j9);if(j4.strm=j0,j2=j4.last_flush,j4.last_flush=j1,42===j4.status)if(2===j4.wrap)j0.adler=0,j20(j4,31),j20(j4,139),j20(j4,8),j4.gzhead?(j20(j4,(j4.gzhead.text?1:0)+(j4.gzhead.hcrc?2:0)+(j4.gzhead.extra?4:0)+(j4.gzhead.name?8:0)+(j4.gzhead.comment?16:0)),j20(j4,255&j4.gzhead.time),j20(j4,j4.gzhead.time>>8&255),j20(j4,j4.gzhead.time>>16&255),j20(j4,j4.gzhead.time>>24&255),j20(j4,9===j4.level?2:j4.strategy>=2||j4.level<2?4:0),j20(j4,255&j4.gzhead.os),j4.gzhead.extra&&j4.gzhead.extra.length&&(j20(j4,255&j4.gzhead.extra.length),j20(j4,j4.gzhead.extra.length>>8&255)),j4.gzhead.hcrc&&(j0.adler=j7(j0.adler,j4.pending_buf,j4.pending,0)),j4.gzindex=0,j4.status=69):(j20(j4,0),j20(j4,0),j20(j4,0),j20(j4,0),j20(j4,0),j20(j4,9===j4.level?2:j4.strategy>=2||j4.level<2?4:0),j20(j4,3),j4.status=j13);else{var j11=8+(j4.w_bits-8<<4)<<8;j11|=(j4.strategy>=2||j4.level<2?0:j4.level<6?1:6===j4.level?2:3)<<6,0!==j4.strstart&&(j11|=32),j11+=31-j11%31,j4.status=j13,j21(j4,j11),0!==j4.strstart&&(j21(j4,j0.adler>>>16),j21(j4,65535&j0.adler)),j0.adler=1;}if(69===j4.status)if(j4.gzhead.extra){for(j6=j4.pending;j4.gzindex<(65535&j4.gzhead.extra.length)&&(j4.pending!==j4.pending_buf_size||(j4.gzhead.hcrc&&j4.pending>j6&&(j0.adler=j7(j0.adler,j4.pending_buf,j4.pending-j6,j6)),j18(j0),j6=j4.pending,j4.pending!==j4.pending_buf_size));)j20(j4,255&j4.gzhead.extra[j4.gzindex]),j4.gzindex++;j4.gzhead.hcrc&&j4.pending>j6&&(j0.adler=j7(j0.adler,j4.pending_buf,j4.pending-j6,j6)),j4.gzindex===j4.gzhead.extra.length&&(j4.gzindex=0,j4.status=73);}else j4.status=73;if(73===j4.status)if(j4.gzhead.name){j6=j4.pending;do{if(j4.pending===j4.pending_buf_size&&(j4.gzhead.hcrc&&j4.pending>j6&&(j0.adler=j7(j0.adler,j4.pending_buf,j4.pending-j6,j6)),j18(j0),j6=j4.pending,j4.pending===j4.pending_buf_size)){j8=1;break;}j8=j4.gzindex<j4.gzhead.name.length?255&j4.gzhead.name.charCodeAt(j4.gzindex++):0,j20(j4,j8);}while(0!==j8);j4.gzhead.hcrc&&j4.pending>j6&&(j0.adler=j7(j0.adler,j4.pending_buf,j4.pending-j6,j6)),0===j8&&(j4.gzindex=0,j4.status=91);}else j4.status=91;if(91===j4.status)if(j4.gzhead.comment){j6=j4.pending;do{if(j4.pending===j4.pending_buf_size&&(j4.gzhead.hcrc&&j4.pending>j6&&(j0.adler=j7(j0.adler,j4.pending_buf,j4.pending-j6,j6)),j18(j0),j6=j4.pending,j4.pending===j4.pending_buf_size)){j8=1;break;}j8=j4.gzindex<j4.gzhead.comment.length?255&j4.gzhead.comment.charCodeAt(j4.gzindex++):0,j20(j4,j8);}while(0!==j8);j4.gzhead.hcrc&&j4.pending>j6&&(j0.adler=j7(j0.adler,j4.pending_buf,j4.pending-j6,j6)),0===j8&&(j4.status=j12);}else j4.status=j12;if(j4.status===j12&&(j4.gzhead.hcrc?(j4.pending+2>j4.pending_buf_size&&j18(j0),j4.pending+2<=j4.pending_buf_size&&(j20(j4,255&j0.adler),j20(j4,j0.adler>>8&255),j0.adler=0,j4.status=j13)):j4.status=j13),0!==j4.pending){if(j18(j0),0===j0.avail_out)return j4.last_flush=-1,0;}else if(0===j0.avail_in&&j16(j1)<=j16(j2)&&4!==j1)return j15(j0,-5);if(j4.status===j14&&0!==j0.avail_in)return j15(j0,-5);if(0!==j0.avail_in||0!==j4.lookahead||0!==j1&&j4.status!==j14){var j22=2===j4.strategy?function(j0,j1){for(var j2;;){if(0===j0.lookahead&&(j23(j0),0===j0.lookahead)){if(0===j1)return 1;break;}if(j0.match_length=0,j2=j5._tr_tally(j0,0,j0.window[j0.strstart]),j0.lookahead--,j0.strstart++,j2&&(j19(j0,!1),0===j0.strm.avail_out))return 1;}return j0.insert=0,4===j1?(j19(j0,!0),0===j0.strm.avail_out?3:4):j0.last_lit&&(j19(j0,!1),0===j0.strm.avail_out)?1:2;}(j4,j1):3===j4.strategy?function(j0,j1){for(var j2,j3,j4,j6,j7=j0.window;;){if(j0.lookahead<=j10){if(j23(j0),j0.lookahead<=j10&&0===j1)return 1;if(0===j0.lookahead)break;}if(j0.match_length=0,j0.lookahead>=3&&j0.strstart>0&&(j3=j7[j4=j0.strstart-1])===j7[++j4]&&j3===j7[++j4]&&j3===j7[++j4]){j6=j0.strstart+j10;do{}while(j3===j7[++j4]&&j3===j7[++j4]&&j3===j7[++j4]&&j3===j7[++j4]&&j3===j7[++j4]&&j3===j7[++j4]&&j3===j7[++j4]&&j3===j7[++j4]&&j4<j6);j0.match_length=j10-(j6-j4),j0.match_length>j0.lookahead&&(j0.match_length=j0.lookahead);}if(j0.match_length>=3?(j2=j5._tr_tally(j0,1,j0.match_length-3),j0.lookahead-=j0.match_length,j0.strstart+=j0.match_length,j0.match_length=0):(j2=j5._tr_tally(j0,0,j0.window[j0.strstart]),j0.lookahead--,j0.strstart++),j2&&(j19(j0,!1),0===j0.strm.avail_out))return 1;}return j0.insert=0,4===j1?(j19(j0,!0),0===j0.strm.avail_out?3:4):j0.last_lit&&(j19(j0,!1),0===j0.strm.avail_out)?1:2;}(j4,j1):j3[j4.level].func(j4,j1);if(3!==j22&&4!==j22||(j4.status=j14),1===j22||3===j22)return 0===j0.avail_out&&(j4.last_flush=-1),0;if(2===j22&&(1===j1?j5._tr_align(j4):5!==j1&&(j5._tr_stored_block(j4,0,0,!1),3===j1&&(j17(j4.head),0===j4.lookahead&&(j4.strstart=0,j4.block_start=0,j4.insert=0))),j18(j0),0===j0.avail_out))return j4.last_flush=-1,0;}return 4!==j1?0:j4.wrap<=0?1:(2===j4.wrap?(j20(j4,255&j0.adler),j20(j4,j0.adler>>8&255),j20(j4,j0.adler>>16&255),j20(j4,j0.adler>>24&255),j20(j4,255&j0.total_in),j20(j4,j0.total_in>>8&255),j20(j4,j0.total_in>>16&255),j20(j4,j0.total_in>>24&255)):(j21(j4,j0.adler>>>16),j21(j4,65535&j0.adler)),j18(j0),j4.wrap>0&&(j4.wrap=-j4.wrap),0!==j4.pending?0:1);},j1.deflateEnd=function(j0){var j1;return j0&&j0.state?42!==(j1=j0.state.status)&&69!==j1&&73!==j1&&91!==j1&&j1!==j12&&j1!==j13&&j1!==j14?j15(j0,j9):(j0.state=null,j1===j13?j15(j0,-3):0):j9;},j1.deflateSetDictionary=function(j0,j1){var j2,j3,j5,j7,j8,j10,j11,j12,j13=j1.length;if(!j0||!j0.state)return j9;if(2===(j7=(j2=j0.state).wrap)||1===j7&&42!==j2.status||j2.lookahead)return j9;for(1===j7&&(j0.adler=j6(j0.adler,j1,j13,0)),j2.wrap=0,j13>=j2.w_size&&(0===j7&&(j17(j2.head),j2.strstart=0,j2.block_start=0,j2.insert=0),j12=new j4.Buf8(j2.w_size),j4.arraySet(j12,j1,j13-j2.w_size,j2.w_size,0),j1=j12,j13=j2.w_size),j8=j0.avail_in,j10=j0.next_in,j11=j0.input,j0.avail_in=j13,j0.next_in=0,j0.input=j1,j23(j2);j2.lookahead>=3;){j3=j2.strstart,j5=j2.lookahead-2;do{j2.ins_h=(j2.ins_h<<j2.hash_shift^j2.window[j3+3-1])&j2.hash_mask,j2.prev[j3&j2.w_mask]=j2.head[j2.ins_h],j2.head[j2.ins_h]=j3,j3++;}while(--j5);j2.strstart=j3,j2.lookahead=2,j23(j2);}return j2.strstart+=j2.lookahead,j2.block_start=j2.strstart,j2.insert=j2.lookahead,j2.lookahead=0,j2.match_length=j2.prev_length=2,j2.match_available=0,j0.next_in=j10,j0.input=j11,j0.avail_in=j8,j2.wrap=j7,0;},j1.deflateInfo="pako deflate (from Nodeca project)";},function(j0,j1,j2){"use strict";var j3=j2(20);function j4(j0){for(var j1=j0.length;--j1>=0;)j0[j1]=0;}var j5=256,j6=286,j7=30,j8=15,j9=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],j10=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],j11=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],j12=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j13=new Array(576);j4(j13);var j14=new Array(60);j4(j14);var j15=new Array(512);j4(j15);var j16=new Array(256);j4(j16);var j17=new Array(29);j4(j17);var j18,j19,j20,j21=new Array(j7);function j22(j0,j1,j2,j3,j4){this.static_tree=j0,this.extra_bits=j1,this.extra_base=j2,this.elems=j3,this.max_length=j4,this.has_stree=j0&&j0.length;}function j23(j0,j1){this.dyn_tree=j0,this.max_code=0,this.stat_desc=j1;}function j24(j0){return j0<256?j15[j0]:j15[256+(j0>>>7)];}function j25(j0,j1){j0.pending_buf[j0.pending++]=255&j1,j0.pending_buf[j0.pending++]=j1>>>8&255;}function j26(j0,j1,j2){j0.bi_valid>16-j2?(j0.bi_buf|=j1<<j0.bi_valid&65535,j25(j0,j0.bi_buf),j0.bi_buf=j1>>16-j0.bi_valid,j0.bi_valid+=j2-16):(j0.bi_buf|=j1<<j0.bi_valid&65535,j0.bi_valid+=j2);}function j27(j0,j1,j2){j26(j0,j2[2*j1],j2[2*j1+1]);}function j28(j0,j1){var j2=0;do{j2|=1&j0,j0>>>=1,j2<<=1;}while(--j1>0);return j2>>>1;}function j29(j0,j1,j2){var j3,j4,j5=new Array(16),j6=0;for(j3=1;j3<=j8;j3++)j5[j3]=j6=j6+j2[j3-1]<<1;for(j4=0;j4<=j1;j4++){var j7=j0[2*j4+1];0!==j7&&(j0[2*j4]=j28(j5[j7]++,j7));}}function j30(j0){var j1;for(j1=0;j1<j6;j1++)j0.dyn_ltree[2*j1]=0;for(j1=0;j1<j7;j1++)j0.dyn_dtree[2*j1]=0;for(j1=0;j1<19;j1++)j0.bl_tree[2*j1]=0;j0.dyn_ltree[512]=1,j0.opt_len=j0.static_len=0,j0.last_lit=j0.matches=0;}function j31(j0){j0.bi_valid>8?j25(j0,j0.bi_buf):j0.bi_valid>0&&(j0.pending_buf[j0.pending++]=j0.bi_buf),j0.bi_buf=0,j0.bi_valid=0;}function j32(j0,j1,j2,j3){var j4=2*j1,j5=2*j2;return j0[j4]<j0[j5]||j0[j4]===j0[j5]&&j3[j1]<=j3[j2];}function j33(j0,j1,j2){for(var j3=j0.heap[j2],j4=j2<<1;j4<=j0.heap_len&&(j4<j0.heap_len&&j32(j1,j0.heap[j4+1],j0.heap[j4],j0.depth)&&j4++,!j32(j1,j3,j0.heap[j4],j0.depth));)j0.heap[j2]=j0.heap[j4],j2=j4,j4<<=1;j0.heap[j2]=j3;}function j34(j0,j1,j2){var j3,j4,j6,j7,j8=0;if(0!==j0.last_lit)do{j3=j0.pending_buf[j0.d_buf+2*j8]<<8|j0.pending_buf[j0.d_buf+2*j8+1],j4=j0.pending_buf[j0.l_buf+j8],j8++,0===j3?j27(j0,j4,j1):(j27(j0,(j6=j16[j4])+j5+1,j1),0!==(j7=j9[j6])&&j26(j0,j4-=j17[j6],j7),j27(j0,j6=j24(--j3),j2),0!==(j7=j10[j6])&&j26(j0,j3-=j21[j6],j7));}while(j8<j0.last_lit);j27(j0,256,j1);}function j35(j0,j1){var j2,j3,j4,j5=j1.dyn_tree,j6=j1.stat_desc.static_tree,j7=j1.stat_desc.has_stree,j9=j1.stat_desc.elems,j10=-1;for(j0.heap_len=0,j0.heap_max=573,j2=0;j2<j9;j2++)0!==j5[2*j2]?(j0.heap[++j0.heap_len]=j10=j2,j0.depth[j2]=0):j5[2*j2+1]=0;for(;j0.heap_len<2;)j5[2*(j4=j0.heap[++j0.heap_len]=j10<2?++j10:0)]=1,j0.depth[j4]=0,j0.opt_len--,j7&&(j0.static_len-=j6[2*j4+1]);for(j1.max_code=j10,j2=j0.heap_len>>1;j2>=1;j2--)j33(j0,j5,j2);j4=j9;do{j2=j0.heap[1],j0.heap[1]=j0.heap[j0.heap_len--],j33(j0,j5,1),j3=j0.heap[1],j0.heap[--j0.heap_max]=j2,j0.heap[--j0.heap_max]=j3,j5[2*j4]=j5[2*j2]+j5[2*j3],j0.depth[j4]=(j0.depth[j2]>=j0.depth[j3]?j0.depth[j2]:j0.depth[j3])+1,j5[2*j2+1]=j5[2*j3+1]=j4,j0.heap[1]=j4++,j33(j0,j5,1);}while(j0.heap_len>=2);j0.heap[--j0.heap_max]=j0.heap[1],function(j0,j1){var j2,j3,j4,j5,j6,j7,j9=j1.dyn_tree,j10=j1.max_code,j11=j1.stat_desc.static_tree,j12=j1.stat_desc.has_stree,j13=j1.stat_desc.extra_bits,j14=j1.stat_desc.extra_base,j15=j1.stat_desc.max_length,j16=0;for(j5=0;j5<=j8;j5++)j0.bl_count[j5]=0;for(j9[2*j0.heap[j0.heap_max]+1]=0,j2=j0.heap_max+1;j2<573;j2++)(j5=j9[2*j9[2*(j3=j0.heap[j2])+1]+1]+1)>j15&&(j5=j15,j16++),j9[2*j3+1]=j5,j3>j10||(j0.bl_count[j5]++,j6=0,j3>=j14&&(j6=j13[j3-j14]),j7=j9[2*j3],j0.opt_len+=j7*(j5+j6),j12&&(j0.static_len+=j7*(j11[2*j3+1]+j6)));if(0!==j16){do{for(j5=j15-1;0===j0.bl_count[j5];)j5--;j0.bl_count[j5]--,j0.bl_count[j5+1]+=2,j0.bl_count[j15]--,j16-=2;}while(j16>0);for(j5=j15;0!==j5;j5--)for(j3=j0.bl_count[j5];0!==j3;)(j4=j0.heap[--j2])>j10||(j9[2*j4+1]!==j5&&(j0.opt_len+=(j5-j9[2*j4+1])*j9[2*j4],j9[2*j4+1]=j5),j3--);}}(j0,j1),j29(j5,j10,j0.bl_count);}function j36(j0,j1,j2){var j3,j4,j5=-1,j6=j1[1],j7=0,j8=7,j9=4;for(0===j6&&(j8=138,j9=3),j1[2*(j2+1)+1]=65535,j3=0;j3<=j2;j3++)j4=j6,j6=j1[2*(j3+1)+1],++j7<j8&&j4===j6||(j7<j9?j0.bl_tree[2*j4]+=j7:0!==j4?(j4!==j5&&j0.bl_tree[2*j4]++,j0.bl_tree[32]++):j7<=10?j0.bl_tree[34]++:j0.bl_tree[36]++,j7=0,j5=j4,0===j6?(j8=138,j9=3):j4===j6?(j8=6,j9=3):(j8=7,j9=4));}function j37(j0,j1,j2){var j3,j4,j5=-1,j6=j1[1],j7=0,j8=7,j9=4;for(0===j6&&(j8=138,j9=3),j3=0;j3<=j2;j3++)if(j4=j6,j6=j1[2*(j3+1)+1],!(++j7<j8&&j4===j6)){if(j7<j9)do{j27(j0,j4,j0.bl_tree);}while(0!=--j7);else 0!==j4?(j4!==j5&&(j27(j0,j4,j0.bl_tree),j7--),j27(j0,16,j0.bl_tree),j26(j0,j7-3,2)):j7<=10?(j27(j0,17,j0.bl_tree),j26(j0,j7-3,3)):(j27(j0,18,j0.bl_tree),j26(j0,j7-11,7));j7=0,j5=j4,0===j6?(j8=138,j9=3):j4===j6?(j8=6,j9=3):(j8=7,j9=4);}}j4(j21);var j38=!1;function j39(j0,j1,j2,j4){j26(j0,0+(j4?1:0),3),function(j0,j1,j2,j4){j31(j0),j4&&(j25(j0,j2),j25(j0,~j2)),j3.arraySet(j0.pending_buf,j0.window,j1,j2,j0.pending),j0.pending+=j2;}(j0,j1,j2,!0);}j1._tr_init=function(j0){j38||(!function(){var j0,j1,j2,j3,j4,j5=new Array(16);for(j2=0,j3=0;j3<28;j3++)for(j17[j3]=j2,j0=0;j0<1<<j9[j3];j0++)j16[j2++]=j3;for(j16[j2-1]=j3,j4=0,j3=0;j3<16;j3++)for(j21[j3]=j4,j0=0;j0<1<<j10[j3];j0++)j15[j4++]=j3;for(j4>>=7;j3<j7;j3++)for(j21[j3]=j4<<7,j0=0;j0<1<<j10[j3]-7;j0++)j15[256+j4++]=j3;for(j1=0;j1<=j8;j1++)j5[j1]=0;for(j0=0;j0<=143;)j13[2*j0+1]=8,j0++,j5[8]++;for(;j0<=255;)j13[2*j0+1]=9,j0++,j5[9]++;for(;j0<=279;)j13[2*j0+1]=7,j0++,j5[7]++;for(;j0<=287;)j13[2*j0+1]=8,j0++,j5[8]++;for(j29(j13,287,j5),j0=0;j0<j7;j0++)j14[2*j0+1]=5,j14[2*j0]=j28(j0,5);j18=new j22(j13,j9,257,j6,j8),j19=new j22(j14,j10,0,j7,j8),j20=new j22(new Array(0),j11,0,19,7);}(),j38=!0),j0.l_desc=new j23(j0.dyn_ltree,j18),j0.d_desc=new j23(j0.dyn_dtree,j19),j0.bl_desc=new j23(j0.bl_tree,j20),j0.bi_buf=0,j0.bi_valid=0,j30(j0);},j1._tr_stored_block=j39,j1._tr_flush_block=function(j0,j1,j2,j3){var j4,j6,j7=0;j0.level>0?(2===j0.strm.data_type&&(j0.strm.data_type=function(j0){var j1,j2=4093624447;for(j1=0;j1<=31;j1++,j2>>>=1)if(1&j2&&0!==j0.dyn_ltree[2*j1])return 0;if(0!==j0.dyn_ltree[18]||0!==j0.dyn_ltree[20]||0!==j0.dyn_ltree[26])return 1;for(j1=32;j1<j5;j1++)if(0!==j0.dyn_ltree[2*j1])return 1;return 0;}(j0)),j35(j0,j0.l_desc),j35(j0,j0.d_desc),j7=function(j0){var j1;for(j36(j0,j0.dyn_ltree,j0.l_desc.max_code),j36(j0,j0.dyn_dtree,j0.d_desc.max_code),j35(j0,j0.bl_desc),j1=18;j1>=3&&0===j0.bl_tree[2*j12[j1]+1];j1--);return j0.opt_len+=3*(j1+1)+5+5+4,j1;}(j0),j4=j0.opt_len+3+7>>>3,(j6=j0.static_len+3+7>>>3)<=j4&&(j4=j6)):j4=j6=j2+5,j2+4<=j4&&-1!==j1?j39(j0,j1,j2,j3):4===j0.strategy||j6===j4?(j26(j0,2+(j3?1:0),3),j34(j0,j13,j14)):(j26(j0,4+(j3?1:0),3),function(j0,j1,j2,j3){var j4;for(j26(j0,j1-257,5),j26(j0,j2-1,5),j26(j0,j3-4,4),j4=0;j4<j3;j4++)j26(j0,j0.bl_tree[2*j12[j4]+1],3);j37(j0,j0.dyn_ltree,j1-1),j37(j0,j0.dyn_dtree,j2-1);}(j0,j0.l_desc.max_code+1,j0.d_desc.max_code+1,j7+1),j34(j0,j0.dyn_ltree,j0.dyn_dtree)),j30(j0),j3&&j31(j0);},j1._tr_tally=function(j0,j1,j2){return j0.pending_buf[j0.d_buf+2*j0.last_lit]=j1>>>8&255,j0.pending_buf[j0.d_buf+2*j0.last_lit+1]=255&j1,j0.pending_buf[j0.l_buf+j0.last_lit]=255&j2,j0.last_lit++,0===j1?j0.dyn_ltree[2*j2]++:(j0.matches++,j1--,j0.dyn_ltree[2*(j16[j2]+j5+1)]++,j0.dyn_dtree[2*j24(j1)]++),j0.last_lit===j0.lit_bufsize-1;},j1._tr_align=function(j0){j26(j0,2,3),j27(j0,256,j13),function(j0){16===j0.bi_valid?(j25(j0,j0.bi_buf),j0.bi_buf=0,j0.bi_valid=0):j0.bi_valid>=8&&(j0.pending_buf[j0.pending++]=255&j0.bi_buf,j0.bi_buf>>=8,j0.bi_valid-=8);}(j0);};},function(j0,j1,j2){"use strict";var j3=j2(391),j4=j2(20),j5=j2(179),j6=j2(181),j7=j2(96),j8=j2(180),j9=j2(394),j10=Object.prototype.toString;function j11(j0){if(!(this instanceof j11))return new j11(j0);this.options=j4.assign({chunkSize:16384,windowBits:0,to:""},j0||{});var j1=this.options;j1.raw&&j1.windowBits>=0&&j1.windowBits<16&&(j1.windowBits=-j1.windowBits,0===j1.windowBits&&(j1.windowBits=-15)),!(j1.windowBits>=0&&j1.windowBits<16)||j0&&j0.windowBits||(j1.windowBits+=32),j1.windowBits>15&&j1.windowBits<48&&0==(15&j1.windowBits)&&(j1.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new j8(),this.strm.avail_out=0;var j2=j3.inflateInit2(this.strm,j1.windowBits);if(j2!==j6.Z_OK)throw new Error(j7[j2]);if(this.header=new j9(),j3.inflateGetHeader(this.strm,this.header),j1.dictionary&&("string"==typeof j1.dictionary?j1.dictionary=j5.string2buf(j1.dictionary):"[object ArrayBuffer]"===j10.call(j1.dictionary)&&(j1.dictionary=new Uint8Array(j1.dictionary)),j1.raw&&(j2=j3.inflateSetDictionary(this.strm,j1.dictionary))!==j6.Z_OK))throw new Error(j7[j2]);}function j12(j0,j1){var j2=new j11(j1);if(j2.push(j0,!0),j2.err)throw j2.msg||j7[j2.err];return j2.result;}j11.prototype.push=function(j0,j1){var j2,j7,j8,j9,j11,j12=this.strm,j13=this.options.chunkSize,j14=this.options.dictionary,j15=!1;if(this.ended)return!1;j7=j1===~~j1?j1:!0===j1?j6.Z_FINISH:j6.Z_NO_FLUSH,"string"==typeof j0?j12.input=j5.binstring2buf(j0):"[object ArrayBuffer]"===j10.call(j0)?j12.input=new Uint8Array(j0):j12.input=j0,j12.next_in=0,j12.avail_in=j12.input.length;do{if(0===j12.avail_out&&(j12.output=new j4.Buf8(j13),j12.next_out=0,j12.avail_out=j13),(j2=j3.inflate(j12,j6.Z_NO_FLUSH))===j6.Z_NEED_DICT&&j14&&(j2=j3.inflateSetDictionary(this.strm,j14)),j2===j6.Z_BUF_ERROR&&!0===j15&&(j2=j6.Z_OK,j15=!1),j2!==j6.Z_STREAM_END&&j2!==j6.Z_OK)return this.onEnd(j2),this.ended=!0,!1;j12.next_out&&(0!==j12.avail_out&&j2!==j6.Z_STREAM_END&&(0!==j12.avail_in||j7!==j6.Z_FINISH&&j7!==j6.Z_SYNC_FLUSH)||("string"===this.options.to?(j8=j5.utf8border(j12.output,j12.next_out),j9=j12.next_out-j8,j11=j5.buf2string(j12.output,j8),j12.next_out=j9,j12.avail_out=j13-j9,j9&&j4.arraySet(j12.output,j12.output,j8,j9,0),this.onData(j11)):this.onData(j4.shrinkBuf(j12.output,j12.next_out)))),0===j12.avail_in&&0===j12.avail_out&&(j15=!0);}while((j12.avail_in>0||0===j12.avail_out)&&j2!==j6.Z_STREAM_END);return j2===j6.Z_STREAM_END&&(j7=j6.Z_FINISH),j7===j6.Z_FINISH?(j2=j3.inflateEnd(this.strm),this.onEnd(j2),this.ended=!0,j2===j6.Z_OK):j7!==j6.Z_SYNC_FLUSH||(this.onEnd(j6.Z_OK),j12.avail_out=0,!0);},j11.prototype.onData=function(j0){this.chunks.push(j0);},j11.prototype.onEnd=function(j0){j0===j6.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=j4.flattenChunks(this.chunks)),this.chunks=[],this.err=j0,this.msg=this.strm.msg;},j1.Inflate=j11,j1.inflate=j12,j1.inflateRaw=function(j0,j1){return(j1=j1||{}).raw=!0,j12(j0,j1);},j1.ungzip=j12;},function(j0,j1,j2){"use strict";var j3=j2(20),j4=j2(177),j5=j2(178),j6=j2(392),j7=j2(393),j8=-2,j9=12,j10=30;function j11(j0){return(j0>>>24&255)+(j0>>>8&65280)+((65280&j0)<<8)+((255&j0)<<24);}function j12(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new j3.Buf16(320),this.work=new j3.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0;}function j13(j0){var j1;return j0&&j0.state?(j1=j0.state,j0.total_in=j0.total_out=j1.total=0,j0.msg="",j1.wrap&&(j0.adler=1&j1.wrap),j1.mode=1,j1.last=0,j1.havedict=0,j1.dmax=32768,j1.head=null,j1.hold=0,j1.bits=0,j1.lencode=j1.lendyn=new j3.Buf32(852),j1.distcode=j1.distdyn=new j3.Buf32(592),j1.sane=1,j1.back=-1,0):j8;}function j14(j0){var j1;return j0&&j0.state?((j1=j0.state).wsize=0,j1.whave=0,j1.wnext=0,j13(j0)):j8;}function j15(j0,j1){var j2,j3;return j0&&j0.state?(j3=j0.state,j1<0?(j2=0,j1=-j1):(j2=1+(j1>>4),j1<48&&(j1&=15)),j1&&(j1<8||j1>15)?j8:(null!==j3.window&&j3.wbits!==j1&&(j3.window=null),j3.wrap=j2,j3.wbits=j1,j14(j0))):j8;}function j16(j0,j1){var j2,j3;return j0?(j3=new j12(),j0.state=j3,j3.window=null,0!==(j2=j15(j0,j1))&&(j0.state=null),j2):j8;}var j17,j18,j19=!0;function j20(j0){if(j19){var j1;for(j17=new j3.Buf32(512),j18=new j3.Buf32(32),j1=0;j1<144;)j0.lens[j1++]=8;for(;j1<256;)j0.lens[j1++]=9;for(;j1<280;)j0.lens[j1++]=7;for(;j1<288;)j0.lens[j1++]=8;for(j7(1,j0.lens,0,288,j17,0,j0.work,{bits:9}),j1=0;j1<32;)j0.lens[j1++]=5;j7(2,j0.lens,0,32,j18,0,j0.work,{bits:5}),j19=!1;}j0.lencode=j17,j0.lenbits=9,j0.distcode=j18,j0.distbits=5;}function j21(j0,j1,j2,j4){var j5,j6=j0.state;return null===j6.window&&(j6.wsize=1<<j6.wbits,j6.wnext=0,j6.whave=0,j6.window=new j3.Buf8(j6.wsize)),j4>=j6.wsize?(j3.arraySet(j6.window,j1,j2-j6.wsize,j6.wsize,0),j6.wnext=0,j6.whave=j6.wsize):((j5=j6.wsize-j6.wnext)>j4&&(j5=j4),j3.arraySet(j6.window,j1,j2-j4,j5,j6.wnext),(j4-=j5)?(j3.arraySet(j6.window,j1,j2-j4,j4,0),j6.wnext=j4,j6.whave=j6.wsize):(j6.wnext+=j5,j6.wnext===j6.wsize&&(j6.wnext=0),j6.whave<j6.wsize&&(j6.whave+=j5))),0;}j1.inflateReset=j14,j1.inflateReset2=j15,j1.inflateResetKeep=j13,j1.inflateInit=function(j0){return j16(j0,15);},j1.inflateInit2=j16,j1.inflate=function(j0,j1){var j2,j12,j13,j14,j15,j16,j17,j18,j19,j22,j23,j24,j25,j26,j27,j28,j29,j30,j31,j32,j33,j34,j35,j36,j37=0,j38=new j3.Buf8(4),j39=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!j0||!j0.state||!j0.output||!j0.input&&0!==j0.avail_in)return j8;(j2=j0.state).mode===j9&&(j2.mode=13),j15=j0.next_out,j13=j0.output,j17=j0.avail_out,j14=j0.next_in,j12=j0.input,j16=j0.avail_in,j18=j2.hold,j19=j2.bits,j22=j16,j23=j17,j34=0;j0:for(;;)switch(j2.mode){case 1:if(0===j2.wrap){j2.mode=13;break;}for(;j19<16;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if(2&j2.wrap&&35615===j18){j2.check=0,j38[0]=255&j18,j38[1]=j18>>>8&255,j2.check=j5(j2.check,j38,2,0),j18=0,j19=0,j2.mode=2;break;}if(j2.flags=0,j2.head&&(j2.head.done=!1),!(1&j2.wrap)||(((255&j18)<<8)+(j18>>8))%31){j0.msg="incorrect header check",j2.mode=j10;break;}if(8!=(15&j18)){j0.msg="unknown compression method",j2.mode=j10;break;}if(j19-=4,j33=8+(15&(j18>>>=4)),0===j2.wbits)j2.wbits=j33;else if(j33>j2.wbits){j0.msg="invalid window size",j2.mode=j10;break;}j2.dmax=1<<j33,j0.adler=j2.check=1,j2.mode=512&j18?10:j9,j18=0,j19=0;break;case 2:for(;j19<16;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if(j2.flags=j18,8!=(255&j2.flags)){j0.msg="unknown compression method",j2.mode=j10;break;}if(57344&j2.flags){j0.msg="unknown header flags set",j2.mode=j10;break;}j2.head&&(j2.head.text=j18>>8&1),512&j2.flags&&(j38[0]=255&j18,j38[1]=j18>>>8&255,j2.check=j5(j2.check,j38,2,0)),j18=0,j19=0,j2.mode=3;case 3:for(;j19<32;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j2.head&&(j2.head.time=j18),512&j2.flags&&(j38[0]=255&j18,j38[1]=j18>>>8&255,j38[2]=j18>>>16&255,j38[3]=j18>>>24&255,j2.check=j5(j2.check,j38,4,0)),j18=0,j19=0,j2.mode=4;case 4:for(;j19<16;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j2.head&&(j2.head.xflags=255&j18,j2.head.os=j18>>8),512&j2.flags&&(j38[0]=255&j18,j38[1]=j18>>>8&255,j2.check=j5(j2.check,j38,2,0)),j18=0,j19=0,j2.mode=5;case 5:if(1024&j2.flags){for(;j19<16;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j2.length=j18,j2.head&&(j2.head.extra_len=j18),512&j2.flags&&(j38[0]=255&j18,j38[1]=j18>>>8&255,j2.check=j5(j2.check,j38,2,0)),j18=0,j19=0;}else j2.head&&(j2.head.extra=null);j2.mode=6;case 6:if(1024&j2.flags&&((j24=j2.length)>j16&&(j24=j16),j24&&(j2.head&&(j33=j2.head.extra_len-j2.length,j2.head.extra||(j2.head.extra=new Array(j2.head.extra_len)),j3.arraySet(j2.head.extra,j12,j14,j24,j33)),512&j2.flags&&(j2.check=j5(j2.check,j12,j24,j14)),j16-=j24,j14+=j24,j2.length-=j24),j2.length))break j0;j2.length=0,j2.mode=7;case 7:if(2048&j2.flags){if(0===j16)break j0;j24=0;do{j33=j12[j14+j24++],j2.head&&j33&&j2.length<65536&&(j2.head.name+=String.fromCharCode(j33));}while(j33&&j24<j16);if(512&j2.flags&&(j2.check=j5(j2.check,j12,j24,j14)),j16-=j24,j14+=j24,j33)break j0;}else j2.head&&(j2.head.name=null);j2.length=0,j2.mode=8;case 8:if(4096&j2.flags){if(0===j16)break j0;j24=0;do{j33=j12[j14+j24++],j2.head&&j33&&j2.length<65536&&(j2.head.comment+=String.fromCharCode(j33));}while(j33&&j24<j16);if(512&j2.flags&&(j2.check=j5(j2.check,j12,j24,j14)),j16-=j24,j14+=j24,j33)break j0;}else j2.head&&(j2.head.comment=null);j2.mode=9;case 9:if(512&j2.flags){for(;j19<16;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if(j18!==(65535&j2.check)){j0.msg="header crc mismatch",j2.mode=j10;break;}j18=0,j19=0;}j2.head&&(j2.head.hcrc=j2.flags>>9&1,j2.head.done=!0),j0.adler=j2.check=0,j2.mode=j9;break;case 10:for(;j19<32;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j0.adler=j2.check=j11(j18),j18=0,j19=0,j2.mode=11;case 11:if(0===j2.havedict)return j0.next_out=j15,j0.avail_out=j17,j0.next_in=j14,j0.avail_in=j16,j2.hold=j18,j2.bits=j19,2;j0.adler=j2.check=1,j2.mode=j9;case j9:if(5===j1||6===j1)break j0;case 13:if(j2.last){j18>>>=7&j19,j19-=7&j19,j2.mode=27;break;}for(;j19<3;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}switch(j2.last=1&j18,j19-=1,3&(j18>>>=1)){case 0:j2.mode=14;break;case 1:if(j20(j2),j2.mode=20,6===j1){j18>>>=2,j19-=2;break j0;}break;case 2:j2.mode=17;break;case 3:j0.msg="invalid block type",j2.mode=j10;}j18>>>=2,j19-=2;break;case 14:for(j18>>>=7&j19,j19-=7&j19;j19<32;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if((65535&j18)!=(j18>>>16^65535)){j0.msg="invalid stored block lengths",j2.mode=j10;break;}if(j2.length=65535&j18,j18=0,j19=0,j2.mode=15,6===j1)break j0;case 15:j2.mode=16;case 16:if(j24=j2.length){if(j24>j16&&(j24=j16),j24>j17&&(j24=j17),0===j24)break j0;j3.arraySet(j13,j12,j14,j24,j15),j16-=j24,j14+=j24,j17-=j24,j15+=j24,j2.length-=j24;break;}j2.mode=j9;break;case 17:for(;j19<14;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if(j2.nlen=257+(31&j18),j18>>>=5,j19-=5,j2.ndist=1+(31&j18),j18>>>=5,j19-=5,j2.ncode=4+(15&j18),j18>>>=4,j19-=4,j2.nlen>286||j2.ndist>30){j0.msg="too many length or distance symbols",j2.mode=j10;break;}j2.have=0,j2.mode=18;case 18:for(;j2.have<j2.ncode;){for(;j19<3;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j2.lens[j39[j2.have++]]=7&j18,j18>>>=3,j19-=3;}for(;j2.have<19;)j2.lens[j39[j2.have++]]=0;if(j2.lencode=j2.lendyn,j2.lenbits=7,j35={bits:j2.lenbits},j34=j7(0,j2.lens,0,19,j2.lencode,0,j2.work,j35),j2.lenbits=j35.bits,j34){j0.msg="invalid code lengths set",j2.mode=j10;break;}j2.have=0,j2.mode=19;case 19:for(;j2.have<j2.nlen+j2.ndist;){for(;j28=(j37=j2.lencode[j18&(1<<j2.lenbits)-1])>>>16&255,j29=65535&j37,!((j27=j37>>>24)<=j19);){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if(j29<16)j18>>>=j27,j19-=j27,j2.lens[j2.have++]=j29;else{if(16===j29){for(j36=j27+2;j19<j36;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if(j18>>>=j27,j19-=j27,0===j2.have){j0.msg="invalid bit length repeat",j2.mode=j10;break;}j33=j2.lens[j2.have-1],j24=3+(3&j18),j18>>>=2,j19-=2;}else if(17===j29){for(j36=j27+3;j19<j36;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j19-=j27,j33=0,j24=3+(7&(j18>>>=j27)),j18>>>=3,j19-=3;}else{for(j36=j27+7;j19<j36;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j19-=j27,j33=0,j24=11+(127&(j18>>>=j27)),j18>>>=7,j19-=7;}if(j2.have+j24>j2.nlen+j2.ndist){j0.msg="invalid bit length repeat",j2.mode=j10;break;}for(;j24--;)j2.lens[j2.have++]=j33;}}if(j2.mode===j10)break;if(0===j2.lens[256]){j0.msg="invalid code -- missing end-of-block",j2.mode=j10;break;}if(j2.lenbits=9,j35={bits:j2.lenbits},j34=j7(1,j2.lens,0,j2.nlen,j2.lencode,0,j2.work,j35),j2.lenbits=j35.bits,j34){j0.msg="invalid literal/lengths set",j2.mode=j10;break;}if(j2.distbits=6,j2.distcode=j2.distdyn,j35={bits:j2.distbits},j34=j7(2,j2.lens,j2.nlen,j2.ndist,j2.distcode,0,j2.work,j35),j2.distbits=j35.bits,j34){j0.msg="invalid distances set",j2.mode=j10;break;}if(j2.mode=20,6===j1)break j0;case 20:j2.mode=21;case 21:if(j16>=6&&j17>=258){j0.next_out=j15,j0.avail_out=j17,j0.next_in=j14,j0.avail_in=j16,j2.hold=j18,j2.bits=j19,j6(j0,j23),j15=j0.next_out,j13=j0.output,j17=j0.avail_out,j14=j0.next_in,j12=j0.input,j16=j0.avail_in,j18=j2.hold,j19=j2.bits,j2.mode===j9&&(j2.back=-1);break;}for(j2.back=0;j28=(j37=j2.lencode[j18&(1<<j2.lenbits)-1])>>>16&255,j29=65535&j37,!((j27=j37>>>24)<=j19);){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if(j28&&0==(240&j28)){for(j30=j27,j31=j28,j32=j29;j28=(j37=j2.lencode[j32+((j18&(1<<j30+j31)-1)>>j30)])>>>16&255,j29=65535&j37,!(j30+(j27=j37>>>24)<=j19);){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j18>>>=j30,j19-=j30,j2.back+=j30;}if(j18>>>=j27,j19-=j27,j2.back+=j27,j2.length=j29,0===j28){j2.mode=26;break;}if(32&j28){j2.back=-1,j2.mode=j9;break;}if(64&j28){j0.msg="invalid literal/length code",j2.mode=j10;break;}j2.extra=15&j28,j2.mode=22;case 22:if(j2.extra){for(j36=j2.extra;j19<j36;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j2.length+=j18&(1<<j2.extra)-1,j18>>>=j2.extra,j19-=j2.extra,j2.back+=j2.extra;}j2.was=j2.length,j2.mode=23;case 23:for(;j28=(j37=j2.distcode[j18&(1<<j2.distbits)-1])>>>16&255,j29=65535&j37,!((j27=j37>>>24)<=j19);){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if(0==(240&j28)){for(j30=j27,j31=j28,j32=j29;j28=(j37=j2.distcode[j32+((j18&(1<<j30+j31)-1)>>j30)])>>>16&255,j29=65535&j37,!(j30+(j27=j37>>>24)<=j19);){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j18>>>=j30,j19-=j30,j2.back+=j30;}if(j18>>>=j27,j19-=j27,j2.back+=j27,64&j28){j0.msg="invalid distance code",j2.mode=j10;break;}j2.offset=j29,j2.extra=15&j28,j2.mode=24;case 24:if(j2.extra){for(j36=j2.extra;j19<j36;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}j2.offset+=j18&(1<<j2.extra)-1,j18>>>=j2.extra,j19-=j2.extra,j2.back+=j2.extra;}if(j2.offset>j2.dmax){j0.msg="invalid distance too far back",j2.mode=j10;break;}j2.mode=25;case 25:if(0===j17)break j0;if(j24=j23-j17,j2.offset>j24){if((j24=j2.offset-j24)>j2.whave&&j2.sane){j0.msg="invalid distance too far back",j2.mode=j10;break;}j24>j2.wnext?(j24-=j2.wnext,j25=j2.wsize-j24):j25=j2.wnext-j24,j24>j2.length&&(j24=j2.length),j26=j2.window;}else j26=j13,j25=j15-j2.offset,j24=j2.length;j24>j17&&(j24=j17),j17-=j24,j2.length-=j24;do{j13[j15++]=j26[j25++];}while(--j24);0===j2.length&&(j2.mode=21);break;case 26:if(0===j17)break j0;j13[j15++]=j2.length,j17--,j2.mode=21;break;case 27:if(j2.wrap){for(;j19<32;){if(0===j16)break j0;j16--,j18|=j12[j14++]<<j19,j19+=8;}if(j23-=j17,j0.total_out+=j23,j2.total+=j23,j23&&(j0.adler=j2.check=j2.flags?j5(j2.check,j13,j23,j15-j23):j4(j2.check,j13,j23,j15-j23)),j23=j17,(j2.flags?j18:j11(j18))!==j2.check){j0.msg="incorrect data check",j2.mode=j10;break;}j18=0,j19=0;}j2.mode=28;case 28:if(j2.wrap&&j2.flags){for(;j19<32;){if(0===j16)break j0;j16--,j18+=j12[j14++]<<j19,j19+=8;}if(j18!==(4294967295&j2.total)){j0.msg="incorrect length check",j2.mode=j10;break;}j18=0,j19=0;}j2.mode=29;case 29:j34=1;break j0;case j10:j34=-3;break j0;case 31:return-4;default:return j8;}return j0.next_out=j15,j0.avail_out=j17,j0.next_in=j14,j0.avail_in=j16,j2.hold=j18,j2.bits=j19,(j2.wsize||j23!==j0.avail_out&&j2.mode<j10&&(j2.mode<27||4!==j1))&&j21(j0,j0.output,j0.next_out,j23-j0.avail_out)?(j2.mode=31,-4):(j22-=j0.avail_in,j23-=j0.avail_out,j0.total_in+=j22,j0.total_out+=j23,j2.total+=j23,j2.wrap&&j23&&(j0.adler=j2.check=j2.flags?j5(j2.check,j13,j23,j0.next_out-j23):j4(j2.check,j13,j23,j0.next_out-j23)),j0.data_type=j2.bits+(j2.last?64:0)+(j2.mode===j9?128:0)+(20===j2.mode||15===j2.mode?256:0),(0===j22&&0===j23||4===j1)&&0===j34&&(j34=-5),j34);},j1.inflateEnd=function(j0){if(!j0||!j0.state)return j8;var j1=j0.state;return j1.window&&(j1.window=null),j0.state=null,0;},j1.inflateGetHeader=function(j0,j1){var j2;return j0&&j0.state?0==(2&(j2=j0.state).wrap)?j8:(j2.head=j1,j1.done=!1,0):j8;},j1.inflateSetDictionary=function(j0,j1){var j2,j3=j1.length;return j0&&j0.state?0!==(j2=j0.state).wrap&&11!==j2.mode?j8:11===j2.mode&&j4(1,j1,j3,0)!==j2.check?-3:j21(j0,j1,j3,j3)?(j2.mode=31,-4):(j2.havedict=1,0):j8;},j1.inflateInfo="pako inflate (from Nodeca project)";},function(j0,j1,j2){"use strict";j0.exports=function(j0,j1){var j2,j3,j4,j5,j6,j7,j8,j9,j10,j11,j12,j13,j14,j15,j16,j17,j18,j19,j20,j21,j22,j23,j24,j25,j26;j2=j0.state,j3=j0.next_in,j25=j0.input,j4=j3+(j0.avail_in-5),j5=j0.next_out,j26=j0.output,j6=j5-(j1-j0.avail_out),j7=j5+(j0.avail_out-257),j8=j2.dmax,j9=j2.wsize,j10=j2.whave,j11=j2.wnext,j12=j2.window,j13=j2.hold,j14=j2.bits,j15=j2.lencode,j16=j2.distcode,j17=(1<<j2.lenbits)-1,j18=(1<<j2.distbits)-1;j0:do{j14<15&&(j13+=j25[j3++]<<j14,j14+=8,j13+=j25[j3++]<<j14,j14+=8),j19=j15[j13&j17];j1:for(;;){if(j13>>>=j20=j19>>>24,j14-=j20,0===(j20=j19>>>16&255))j26[j5++]=65535&j19;else{if(!(16&j20)){if(0==(64&j20)){j19=j15[(65535&j19)+(j13&(1<<j20)-1)];continue j1;}if(32&j20){j2.mode=12;break j0;}j0.msg="invalid literal/length code",j2.mode=30;break j0;}j21=65535&j19,(j20&=15)&&(j14<j20&&(j13+=j25[j3++]<<j14,j14+=8),j21+=j13&(1<<j20)-1,j13>>>=j20,j14-=j20),j14<15&&(j13+=j25[j3++]<<j14,j14+=8,j13+=j25[j3++]<<j14,j14+=8),j19=j16[j13&j18];j2:for(;;){if(j13>>>=j20=j19>>>24,j14-=j20,!(16&(j20=j19>>>16&255))){if(0==(64&j20)){j19=j16[(65535&j19)+(j13&(1<<j20)-1)];continue j2;}j0.msg="invalid distance code",j2.mode=30;break j0;}if(j22=65535&j19,j14<(j20&=15)&&(j13+=j25[j3++]<<j14,(j14+=8)<j20&&(j13+=j25[j3++]<<j14,j14+=8)),(j22+=j13&(1<<j20)-1)>j8){j0.msg="invalid distance too far back",j2.mode=30;break j0;}if(j13>>>=j20,j14-=j20,j22>(j20=j5-j6)){if((j20=j22-j20)>j10&&j2.sane){j0.msg="invalid distance too far back",j2.mode=30;break j0;}if(j23=0,j24=j12,0===j11){if(j23+=j9-j20,j20<j21){j21-=j20;do{j26[j5++]=j12[j23++];}while(--j20);j23=j5-j22,j24=j26;}}else if(j11<j20){if(j23+=j9+j11-j20,(j20-=j11)<j21){j21-=j20;do{j26[j5++]=j12[j23++];}while(--j20);if(j23=0,j11<j21){j21-=j20=j11;do{j26[j5++]=j12[j23++];}while(--j20);j23=j5-j22,j24=j26;}}}else if(j23+=j11-j20,j20<j21){j21-=j20;do{j26[j5++]=j12[j23++];}while(--j20);j23=j5-j22,j24=j26;}for(;j21>2;)j26[j5++]=j24[j23++],j26[j5++]=j24[j23++],j26[j5++]=j24[j23++],j21-=3;j21&&(j26[j5++]=j24[j23++],j21>1&&(j26[j5++]=j24[j23++]));}else{j23=j5-j22;do{j26[j5++]=j26[j23++],j26[j5++]=j26[j23++],j26[j5++]=j26[j23++],j21-=3;}while(j21>2);j21&&(j26[j5++]=j26[j23++],j21>1&&(j26[j5++]=j26[j23++]));}break;}}break;}}while(j3<j4&&j5<j7);j3-=j21=j14>>3,j13&=(1<<(j14-=j21<<3))-1,j0.next_in=j3,j0.next_out=j5,j0.avail_in=j3<j4?j4-j3+5:5-(j3-j4),j0.avail_out=j5<j7?j7-j5+257:257-(j5-j7),j2.hold=j13,j2.bits=j14;};},function(j0,j1,j2){"use strict";var j3=j2(20),j4=15,j5=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],j6=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],j7=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],j8=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];j0.exports=function(j0,j1,j2,j9,j10,j11,j12,j13){var j14,j15,j16,j17,j18,j19,j20,j21,j22,j23=j13.bits,j24=0,j25=0,j26=0,j27=0,j28=0,j29=0,j30=0,j31=0,j32=0,j33=0,j34=null,j35=0,j36=new j3.Buf16(16),j37=new j3.Buf16(16),j38=null,j39=0;for(j24=0;j24<=j4;j24++)j36[j24]=0;for(j25=0;j25<j9;j25++)j36[j1[j2+j25]]++;for(j28=j23,j27=j4;j27>=1&&0===j36[j27];j27--);if(j28>j27&&(j28=j27),0===j27)return j10[j11++]=20971520,j10[j11++]=20971520,j13.bits=1,0;for(j26=1;j26<j27&&0===j36[j26];j26++);for(j28<j26&&(j28=j26),j31=1,j24=1;j24<=j4;j24++)if(j31<<=1,(j31-=j36[j24])<0)return-1;if(j31>0&&(0===j0||1!==j27))return-1;for(j37[1]=0,j24=1;j24<j4;j24++)j37[j24+1]=j37[j24]+j36[j24];for(j25=0;j25<j9;j25++)0!==j1[j2+j25]&&(j12[j37[j1[j2+j25]]++]=j25);if(0===j0?(j34=j38=j12,j19=19):1===j0?(j34=j5,j35-=257,j38=j6,j39-=257,j19=256):(j34=j7,j38=j8,j19=-1),j33=0,j25=0,j24=j26,j18=j11,j29=j28,j30=0,j16=-1,j17=(j32=1<<j28)-1,1===j0&&j32>852||2===j0&&j32>592)return 1;for(;;){j20=j24-j30,j12[j25]<j19?(j21=0,j22=j12[j25]):j12[j25]>j19?(j21=j38[j39+j12[j25]],j22=j34[j35+j12[j25]]):(j21=96,j22=0),j14=1<<j24-j30,j26=j15=1<<j29;do{j10[j18+(j33>>j30)+(j15-=j14)]=j20<<24|j21<<16|j22|0;}while(0!==j15);for(j14=1<<j24-1;j33&j14;)j14>>=1;if(0!==j14?(j33&=j14-1,j33+=j14):j33=0,j25++,0==--j36[j24]){if(j24===j27)break;j24=j1[j2+j12[j25]];}if(j24>j28&&(j33&j17)!==j16){for(0===j30&&(j30=j28),j18+=j26,j31=1<<(j29=j24-j30);j29+j30<j27&&!((j31-=j36[j29+j30])<=0);)j29++,j31<<=1;if(j32+=1<<j29,1===j0&&j32>852||2===j0&&j32>592)return 1;j10[j16=j33&j17]=j28<<24|j29<<16|j18-j11|0;}}return 0!==j33&&(j10[j18+j33]=j24-j30<<24|64<<16|0),j13.bits=j28,0;};},function(j0,j1,j2){"use strict";j0.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1;};},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__395__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__396__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__397__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__398__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__399__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__400__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__401__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__402__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__403__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__404__;},function(j0,j1){j0.exports=__WEBPACK_EXTERNAL_MODULE__405__;}]);});

/***/ }),

/***/ "./src/wfc/ptt/client/messages/pttSoundMessageContent.js":
/*!***************************************************************!*\
  !*** ./src/wfc/ptt/client/messages/pttSoundMessageContent.js ***!
  \***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PttSoundMessageContent; });
/* harmony import */ var _messages_soundMessageContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../messages/soundMessageContent */ "./src/wfc/messages/soundMessageContent.js");

class PttSoundMessageContent extends _messages_soundMessageContent__WEBPACK_IMPORTED_MODULE_0__["default"] {
  constructor(file, duration) {
    super(file, null, duration);
    this.type = 23;
  }
  digest(message) {
    return "[对讲语音]";
  }
  encode() {
    let payload = super.encode();
    payload.searchableContent = "[对讲语音]";
    return payload;
  }
  decode(payload) {
    super.decode(payload);
  }
}

/***/ }),

/***/ "./src/wfc/ptt/client/pttClient.js":
/*!*****************************************!*\
  !*** ./src/wfc/ptt/client/pttClient.js ***!
  \*****************************************/
/*! exports provided: PttClient, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PttClient", function() { return PttClient; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! events */ "./node_modules/events/events.js");
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _client_wfc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js");
/* harmony import */ var _internal_ptt_min__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../internal/ptt.min */ "./src/wfc/ptt/internal/ptt.min.js");
/* harmony import */ var _internal_ptt_min__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_internal_ptt_min__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pttErrorCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pttErrorCode */ "./src/wfc/ptt/client/pttErrorCode.js");
/* harmony import */ var _model_conversationType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../model/conversationType */ "./src/wfc/model/conversationType.js");
/* harmony import */ var _model_groupMemberType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../model/groupMemberType */ "./src/wfc/model/groupMemberType.js");
/* harmony import */ var _model_nullGroupInfo__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../model/nullGroupInfo */ "./src/wfc/model/nullGroupInfo.js");
/* harmony import */ var _model_modifyGroupInfoType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../model/modifyGroupInfoType */ "./src/wfc/model/modifyGroupInfoType.js");
/* harmony import */ var _client_userSettingScope__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../client/userSettingScope */ "./src/wfc/client/userSettingScope.js");
/* harmony import */ var _pttEventType__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./pttEventType */ "./src/wfc/ptt/client/pttEventType.js");











class PttClient {
  constructor() {
    /**
     * 事件通知，{@link PttEventType}中定义的事件，都会采用本{@link eventEmitter} 通知
     * @type {module:events.internal.EventEmitter}
     */
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "eventEmitter", new events__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]());
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "deltaTime", void 0);
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "conversationPttStatusMap", new Map());
    Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "pttClientImpl", void 0);
  }
  // 初始化
  init() {
    if (this.pttClientImpl) {
      console.warn("already init");
      return;
    }
    this.deltaTime = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getServerDeltaTime();
    this.pttClientImpl = new _internal_ptt_min__WEBPACK_IMPORTED_MODULE_3___default.a(this.eventEmitter);
    this.pttClientImpl.init();
    this._eventTest();
  }
  uninit() {
    if (!this.pttClientImpl) {
      return;
    }
    this.pttClientImpl.end();
    this.pttClientImpl = null;
  }

  /**
   * 请求说话
   * @param conversation
   * @param talkingCallback
   */
  requestTalk(conversation, talkingCallback) {
    console.log("requestTalk", conversation, talkingCallback);
    if (!talkingCallback || !this.pttClientImpl || !conversation) {
      console.error("can not requestTalk, callback is null or not init");
      return;
    }
    if (!PttClient.ENABLE_GLOBAL_PTT) {
      let enabled = this.conversationPttStatusMap.get(this._conversationKey(conversation));
      if (!enabled) {
        talkingCallback.onRequestFail(conversation, _pttErrorCode__WEBPACK_IMPORTED_MODULE_4__["default"].PTT_DISABLED);
        return;
      }
    }
    if (this.pttClientImpl.recordingSession) {
      talkingCallback.onRequestFail(conversation, _pttErrorCode__WEBPACK_IMPORTED_MODULE_4__["default"].TALKING);
      return;
    }
    let maxSpeakerCount = 1;
    if (!PttClient.ENABLE_PRIORITY_MODE) {
      maxSpeakerCount = conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Single ? PttClient.SINGLE_CHAT_MAX_SPEAKER_COUNT : PttClient.GROUP_CHAT_MAX_SPEAKER_COUNT;
    }
    let maxDurationMillis = PttClient.SINGLE_CHAT_MAX_SPEAK_TIME * 1000;
    let sendVoiceMessage = conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Single ? PttClient.SINGLE_CHAT_SEND_VOICE_MESSAGE : PttClient.GROUP_CHAT_SEND_VOICE_MESSAGE;
    if (conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group) {
      maxDurationMillis = PttClient.GROUP_CHAT_MAX_SPEAK_TIME * 1000;
      let groupInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getGroupInfo(conversation.target, false);
      if (!groupInfo || groupInfo instanceof _model_nullGroupInfo__WEBPACK_IMPORTED_MODULE_7__["default"]) {
        console.error("requestTalk failed, groupInfo is null");
        talkingCallback.onRequestFail(conversation, -1);
        return;
      }
      let selfUid = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getUserId();
      let groupMember = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getGroupMember(conversation.target, selfUid);
      if (groupInfo.mute === 1 && groupMember.type !== _model_groupMemberType__WEBPACK_IMPORTED_MODULE_6__["default"].Owner && groupMember.type !== _model_groupMemberType__WEBPACK_IMPORTED_MODULE_6__["default"].Manager) {
        talkingCallback.onRequestFail(conversation, _pttErrorCode__WEBPACK_IMPORTED_MODULE_4__["default"].GROUP_MUTED);
        return;
      } else if (groupMember.type === _model_groupMemberType__WEBPACK_IMPORTED_MODULE_6__["default"].Muted) {
        talkingCallback.onRequestFail(conversation, _pttErrorCode__WEBPACK_IMPORTED_MODULE_4__["default"].GROUP_MEMBER_MUTED);
        return;
      }
      let groupExtra = groupInfo.extra;
      if (groupExtra) {
        try {
          let obj = JSON.parse(groupExtra);
          maxSpeakerCount = !PttClient.ENABLE_PRIORITY_MODE && obj.hasOwnProperty("n") ? obj.n : 1;
          sendVoiceMessage = obj.hasOwnProperty("s") ? obj.s : sendVoiceMessage;
          maxDurationMillis = obj.hasOwnProperty("t") ? obj.t : PttClient.GROUP_CHAT_MAX_SPEAK_TIME;
          maxDurationMillis = maxDurationMillis * 1000;
        } catch (e) {
          console.error("parse groupExtra error", e);
        }
      }
    }
    let talkingMemberCount = this.getTalkingMembers(conversation);
    if (maxSpeakerCount === 1) {
      if (talkingMemberCount === 1) {
        talkingCallback.onRequestFail(conversation, _pttErrorCode__WEBPACK_IMPORTED_MODULE_4__["default"].MAX_SPEAKER);
      } else {
        let priority = talkingCallback.talkingPriority(conversation);
        _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].requireLock("WFPTT_" + conversation.target, 5, () => {
          this.pttClientImpl._startTalk(conversation, maxDurationMillis, sendVoiceMessage, priority, talkingCallback);
        }, err => {
          talkingCallback.onRequestFail(conversation, _pttErrorCode__WEBPACK_IMPORTED_MODULE_4__["default"].OCCUPIED);
        });
      }
    } else if (maxSpeakerCount === 0 || maxSpeakerCount > talkingMemberCount) {
      let priority = talkingCallback.talkingPriority(conversation);
      this.pttClientImpl._startTalk(conversation, maxDurationMillis, sendVoiceMessage, priority, talkingCallback);
    } else {
      talkingCallback.onRequestFail(conversation, _pttErrorCode__WEBPACK_IMPORTED_MODULE_4__["default"].MAX_SPEAKER);
    }
  }

  // 说话结束
  releaseTalk(conversation) {
    if (!this.pttClientImpl) {
      return;
    }
    this.pttClientImpl.stopRecord();
  }

  /**
   * 获取频道允许同时说话人数
   */
  getMaxSpeakCount(conversation) {
    if (conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group) {
      let extra = this._getGroupExtra(conversation.target);
      return extra.hasOwnProperty("n") ? extra.n : PttClient.GROUP_CHAT_MAX_SPEAKER_COUNT;
    } else {
      return PttClient.SINGLE_CHAT_MAX_SPEAKER_COUNT;
    }
  }
  isSendVoiceMessage(conversation) {
    if (conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group) {
      let extra = this._getGroupExtra(conversation.target);
      return extra.hasOwnProperty("s") ? extra.s : PttClient.GROUP_CHAT_SEND_VOICE_MESSAGE;
    } else {
      return PttClient.SINGLE_CHAT_SEND_VOICE_MESSAGE;
    }
  }
  getMaxSpeakTime(conversation) {
    if (conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group) {
      let extra = this._getGroupExtra(conversation.target);
      return extra.hasOwnProperty("t") ? extra.t : PttClient.GROUP_CHAT_MAX_SPEAK_TIME;
    } else {
      return PttClient.SINGLE_CHAT_MAX;
    }
  }
  setSendVoiceMessage(conversation, send, successCB, failCB) {
    if (conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group) {
      let obj = this._getGroupExtra(conversation.target);
      obj["s"] = send;
      this._updateGroupExtra(conversation.target, conversation.line, obj, successCB, failCB);
    } else {
      failCB && failCB(-1);
      console.error("错误，此方法只在群组有效");
    }
  }
  setConversationMaxSpeakTime(conversation, duration, successCB, failCB) {
    if (conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group) {
      let obj = this._getGroupExtra(conversation.target);
      obj["t"] = duration;
      this._updateGroupExtra(conversation.target, conversation.line, obj, successCB, failCB);
    } else {
      failCB && failCB(-1);
      console.error("错误，此方法只在群组有效");
    }
  }
  setConversationMaxSpeakerCount(conversation, count, successCB, failCB) {
    if (conversation.type === _model_conversationType__WEBPACK_IMPORTED_MODULE_5__["default"].Group) {
      let obj = this._getGroupExtra(conversation.target);
      obj["n"] = count;
      this._updateGroupExtra(conversation.target, conversation.line, obj, successCB, failCB);
    } else {
      failCB && failCB(-1);
      console.error("错误，此方法只在群组有效");
    }
  }
  setConversationPttSilent(conversation, silent, successCB, failCB) {
    let key = conversation.target + "-" + conversation.type + "-" + conversation.line;
    _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].setUserSetting(_client_userSettingScope__WEBPACK_IMPORTED_MODULE_9__["default"].PttSilent, key, silent ? "1" : 0, successCB, failCB);
    if (this.pttClientImpl) {
      this.pttClientImpl.setConversationPttSilent(conversation, silent);
    }
  }
  isConversationPttSilent(conversation) {
    let key = conversation.target + "-" + conversation.type + "-" + conversation.line;
    let value = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getUserSetting(_client_userSettingScope__WEBPACK_IMPORTED_MODULE_9__["default"].PttSilent, key);
    return value === "1";
  }
  getTalkingConversation() {
    return this.pttClientImpl.getTalkingConversation();
  }
  getTalkingStartTime() {
    return this.pttClientImpl.getTalkingStartTime();
  }
  getTalkingMembers(conversation) {
    return this.pttClientImpl.getTalkingMembers(conversation);
  }
  getTalkingMemberCount(conversation) {
    return this.pttClientImpl.getTalkingMembers(conversation).length;
  }
  setEnablePtt(conversation, enable) {
    if (!conversation) {
      this.conversationPttStatusMap.set(this._conversationKey(conversation), enable);
    }
  }
  _conversationKey(conversation) {
    return conversation.type + "-" + conversation.target + "-" + conversation.line;
  }
  _getGroupExtra(groupId) {
    let groupInfo = _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].getGroupInfo(groupId, false);
    let obj = {};
    if (!groupInfo || groupInfo instanceof _model_nullGroupInfo__WEBPACK_IMPORTED_MODULE_7__["default"] || !groupInfo.extra) {
      return obj;
    }
    try {
      return JSON.parse(groupInfo.extra);
    } catch (e) {
      console.error("parse group extra error", e);
    }
    return obj;
  }

  // TODO more api
  _updateGroupExtra(groupId, notifyLine, extra, successCB, failCB) {
    extra = !extra ? {} : extra;
    _client_wfc__WEBPACK_IMPORTED_MODULE_2__["default"].modifyGroupInfo(groupId, _model_modifyGroupInfoType__WEBPACK_IMPORTED_MODULE_8__["default"].Modify_Group_Extra, JSON.stringify(extra), [notifyLine], null, successCB, failCB);
  }
  _eventTest() {
    // //某人开始在频道中讲话
    // // function (conversation, userId) {}
    // static userStartTalking = 'userStartTalking'
    //
    // //某人结束在频道中讲话
    // // function (conversation, userId) {}
    // static userEndTalking = 'userEndTalking'
    //
    // //接收到用户自定义数据
    // // function (conversation, userId, data) {}
    // static receiveData = 'receiveData';
    //
    // //用户说话音量大小回调
    // // function (conversation, userId, averageAmplitude) {}
    // static userAmplitudeUpdate = 'userAmplitudeUpdate';
    this.eventEmitter.on(_pttEventType__WEBPACK_IMPORTED_MODULE_10__["default"].userStartTalking, (conversation, userId) => {
      console.log("userStartTalking", conversation, userId);
    });
    this.eventEmitter.on(_pttEventType__WEBPACK_IMPORTED_MODULE_10__["default"].userEndTalking, (conversation, userId) => {
      console.log("userEndTalking", conversation, userId);
    });
    this.eventEmitter.on(_pttEventType__WEBPACK_IMPORTED_MODULE_10__["default"].receiveData, (conversation, userId, data) => {
      console.log("receiveData", conversation, userId, data);
    });
    this.eventEmitter.on(_pttEventType__WEBPACK_IMPORTED_MODULE_10__["default"].userAmplitudeUpdate, (conversation, userId, averageAmplitude) => {
      console.log("userAmplitudeUpdate", conversation, userId, averageAmplitude);
    });
  }
}
/**
 * 只在正常模式下生效
 * 单聊会话里面，最多允许几个人同时说话
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttClient, "SINGLE_CHAT_MAX_SPEAKER_COUNT", 1);
/**
 * 只在正常模式下生效
 * 群会话里面，最多允许几个人同时说话
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttClient, "GROUP_CHAT_MAX_SPEAKER_COUNT", 3);
// 对讲时，是否发送额外的语音消息
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttClient, "SINGLE_CHAT_SEND_VOICE_MESSAGE", true);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttClient, "GROUP_CHAT_SEND_VOICE_MESSAGE", true);
/**
 * 单位是毫秒
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttClient, "SINGLE_CHAT_MAX_SPEAK_TIME", 60);
/**
 * 单位是毫秒
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttClient, "GROUP_CHAT_MAX_SPEAK_TIME", 60);
/**
 * 对讲模式
 * 默认是正常模式
 * 1. 正常模式，用户可以同时播放多路对讲，一个会话里面，可以配置允许多个人同时说话
 * 2. 优先级模式，用户只能播放优先级最高的那路对讲，一个会话里面，只允许一个人说话
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttClient, "ENABLE_PRIORITY_MODE", false);
/**
 * 全局开启对讲功能，为false时，会话需要分别开启 {@link PTTClient#setEnablePtt}
 */
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttClient, "ENABLE_GLOBAL_PTT", true);
//  是否支持双工模式，双工模式下，说话的时候，允许收听其他人的说话。
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttClient, "ENABLE_FULL_DUPLEX", false);
const self = new PttClient();
/* harmony default export */ __webpack_exports__["default"] = (self);

/***/ }),

/***/ "./src/wfc/ptt/client/pttEndReason.js":
/*!********************************************!*\
  !*** ./src/wfc/ptt/client/pttEndReason.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PttEndReason; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

class PttEndReason {}
//用户主动释放
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEndReason, "User_Release", 0);
//讲话超时
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEndReason, "Timeout", 1);
//被抢占
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEndReason, "Take_Over", 2);
//网络错误
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEndReason, "Network_Error", 3);
//频道禁言，只有频道主能讲话
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEndReason, "Channel_Muted", 4);
//成员被禁言
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEndReason, "Member_Muted", 5);
//音频服务错误
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEndReason, "Media_Error", 6);
//不在频道内
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEndReason, "Not_InChannel", 7);
//用户被封禁
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEndReason, "User_Disabled", 8);

/***/ }),

/***/ "./src/wfc/ptt/client/pttErrorCode.js":
/*!********************************************!*\
  !*** ./src/wfc/ptt/client/pttErrorCode.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PttErrorCode; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

class PttErrorCode {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttErrorCode, "UNKNOWN", -1);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttErrorCode, "OCCUPIED", -2);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttErrorCode, "MAX_SPEAKER", -3);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttErrorCode, "GROUP_MUTED", -4);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttErrorCode, "GROUP_MEMBER_MUTED", -5);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttErrorCode, "TALKING", -6);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttErrorCode, "NOT_IN_GROUP", -7);
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttErrorCode, "PTT_DISABLED", -8);
// 没有录音权限等，会触发
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttErrorCode, "RECORDER_ERROR", -9);

/***/ }),

/***/ "./src/wfc/ptt/client/pttEventType.js":
/*!********************************************!*\
  !*** ./src/wfc/ptt/client/pttEventType.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PttEventType; });
/* harmony import */ var _data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");

class PttEventType {}
//某人开始在频道中讲话
// function (conversation, userId) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEventType, "userStartTalking", "userStartTalking");
//某人结束在频道中讲话
// function (conversation, userId) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEventType, "userEndTalking", "userEndTalking");
//接收到用户自定义数据
// function (conversation, userId, data) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEventType, "receiveData", "receiveData");
//用户说话音量大小回调
// function (conversation, userId, averageAmplitude) {}
Object(_data_jenkins_workspace_badp_bcxin_web_5_x_dispatch_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(PttEventType, "userAmplitudeUpdate", "userAmplitudeUpdate");

/***/ }),

/***/ "./src/wfc/ptt/internal/ptt.min.js":
/*!*****************************************!*\
  !*** ./src/wfc/ptt/internal/ptt.min.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

!function(e,r){if(true)module.exports=r(__webpack_require__(/*! ../../client/userSettingScope */ "./src/wfc/client/userSettingScope.js"),__webpack_require__(/*! ../../client/wfc */ "./src/wfc/client/wfc.js"),__webpack_require__(/*! ../../client/wfcEvent */ "./src/wfc/client/wfcEvent.js"),__webpack_require__(/*! ../../messages/messageContent */ "./src/wfc/messages/messageContent.js"),__webpack_require__(/*! ../../messages/persistFlag */ "./src/wfc/messages/persistFlag.js"),__webpack_require__(/*! ../../util/longUtil */ "./src/wfc/util/longUtil.js"),__webpack_require__(/*! ../client/messages/pttSoundMessageContent */ "./src/wfc/ptt/client/messages/pttSoundMessageContent.js"),__webpack_require__(/*! ../client/pttClient */ "./src/wfc/ptt/client/pttClient.js"),__webpack_require__(/*! ../client/pttEndReason */ "./src/wfc/ptt/client/pttEndReason.js"),__webpack_require__(/*! ../client/pttErrorCode */ "./src/wfc/ptt/client/pttErrorCode.js"),__webpack_require__(/*! ../client/pttEventType */ "./src/wfc/ptt/client/pttEventType.js"));else { var n, t; }}(window,(function(e,r,t,n,i,o,s,a,l,u,f){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s="./ptt/internal/pttClientImpl.js")}({"../../client/userSettingScope":function(r,t){r.exports=e},"../../client/wfc":function(e,t){e.exports=r},"../../client/wfcEvent":function(e,r){e.exports=t},"../../messages/messageContent":function(e,r){e.exports=n},"../../messages/persistFlag":function(e,r){e.exports=i},"../../util/longUtil":function(e,r){e.exports=o},"../client/messages/pttSoundMessageContent":function(e,r){e.exports=s},"../client/pttClient":function(e,r){e.exports=a},"../client/pttEndReason":function(e,r){e.exports=l},"../client/pttErrorCode":function(e,r){e.exports=u},"../client/pttEventType":function(e,r){e.exports=f},"./node_modules/babel-runtime/core-js/json/stringify.js":function(e,r,t){e.exports={default:t("./node_modules/core-js/library/fn/json/stringify.js"),__esModule:!0}},"./node_modules/babel-runtime/core-js/map.js":function(e,r,t){e.exports={default:t("./node_modules/core-js/library/fn/map.js"),__esModule:!0}},"./node_modules/core-js/library/fn/json/stringify.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_core.js"),i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},"./node_modules/core-js/library/fn/map.js":function(e,r,t){t("./node_modules/core-js/library/modules/es6.object.to-string.js"),t("./node_modules/core-js/library/modules/es6.string.iterator.js"),t("./node_modules/core-js/library/modules/web.dom.iterable.js"),t("./node_modules/core-js/library/modules/es6.map.js"),t("./node_modules/core-js/library/modules/es7.map.to-json.js"),t("./node_modules/core-js/library/modules/es7.map.of.js"),t("./node_modules/core-js/library/modules/es7.map.from.js"),e.exports=t("./node_modules/core-js/library/modules/_core.js").Map},"./node_modules/core-js/library/modules/_a-function.js":function(e,r){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"./node_modules/core-js/library/modules/_add-to-unscopables.js":function(e,r){e.exports=function(){}},"./node_modules/core-js/library/modules/_an-instance.js":function(e,r){e.exports=function(e,r,t,n){if(!(e instanceof r)||void 0!==n&&n in e)throw TypeError(t+": incorrect invocation!");return e}},"./node_modules/core-js/library/modules/_an-object.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_is-object.js");e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},"./node_modules/core-js/library/modules/_array-from-iterable.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_for-of.js");e.exports=function(e,r){var t=[];return n(e,!1,t.push,t,r),t}},"./node_modules/core-js/library/modules/_array-includes.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_to-iobject.js"),i=t("./node_modules/core-js/library/modules/_to-length.js"),o=t("./node_modules/core-js/library/modules/_to-absolute-index.js");e.exports=function(e){return function(r,t,s){var a,l=n(r),u=i(l.length),f=o(s,u);if(e&&t!=t){for(;u>f;)if((a=l[f++])!=a)return!0}else for(;u>f;f++)if((e||f in l)&&l[f]===t)return e||f||0;return!e&&-1}}},"./node_modules/core-js/library/modules/_array-methods.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_ctx.js"),i=t("./node_modules/core-js/library/modules/_iobject.js"),o=t("./node_modules/core-js/library/modules/_to-object.js"),s=t("./node_modules/core-js/library/modules/_to-length.js"),a=t("./node_modules/core-js/library/modules/_array-species-create.js");e.exports=function(e,r){var t=1==e,l=2==e,u=3==e,f=4==e,c=6==e,d=5==e||c,h=r||a;return function(r,a,m){for(var p,w,b=o(r),v=i(b),y=n(a,m,3),g=s(v.length),k=0,_=t?h(r,g):l?h(r,0):void 0;g>k;k++)if((d||k in v)&&(w=y(p=v[k],k,b),e))if(t)_[k]=w;else if(w)switch(e){case 3:return!0;case 5:return p;case 6:return k;case 2:_.push(p)}else if(f)return!1;return c?-1:u||f?f:_}}},"./node_modules/core-js/library/modules/_array-species-constructor.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_is-object.js"),i=t("./node_modules/core-js/library/modules/_is-array.js"),o=t("./node_modules/core-js/library/modules/_wks.js")("species");e.exports=function(e){var r;return i(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!i(r.prototype)||(r=void 0),n(r)&&null===(r=r[o])&&(r=void 0)),void 0===r?Array:r}},"./node_modules/core-js/library/modules/_array-species-create.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_array-species-constructor.js");e.exports=function(e,r){return new(n(e))(r)}},"./node_modules/core-js/library/modules/_classof.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_cof.js"),i=t("./node_modules/core-js/library/modules/_wks.js")("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var r,t,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,r){try{return e[r]}catch(e){}}(r=Object(e),i))?t:o?n(r):"Object"==(s=n(r))&&"function"==typeof r.callee?"Arguments":s}},"./node_modules/core-js/library/modules/_cof.js":function(e,r){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},"./node_modules/core-js/library/modules/_collection-strong.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_object-dp.js").f,i=t("./node_modules/core-js/library/modules/_object-create.js"),o=t("./node_modules/core-js/library/modules/_redefine-all.js"),s=t("./node_modules/core-js/library/modules/_ctx.js"),a=t("./node_modules/core-js/library/modules/_an-instance.js"),l=t("./node_modules/core-js/library/modules/_for-of.js"),u=t("./node_modules/core-js/library/modules/_iter-define.js"),f=t("./node_modules/core-js/library/modules/_iter-step.js"),c=t("./node_modules/core-js/library/modules/_set-species.js"),d=t("./node_modules/core-js/library/modules/_descriptors.js"),h=t("./node_modules/core-js/library/modules/_meta.js").fastKey,m=t("./node_modules/core-js/library/modules/_validate-collection.js"),p=d?"_s":"size",w=function(e,r){var t,n=h(r);if("F"!==n)return e._i[n];for(t=e._f;t;t=t.n)if(t.k==r)return t};e.exports={getConstructor:function(e,r,t,u){var f=e((function(e,n){a(e,f,r,"_i"),e._t=r,e._i=i(null),e._f=void 0,e._l=void 0,e[p]=0,null!=n&&l(n,t,e[u],e)}));return o(f.prototype,{clear:function(){for(var e=m(this,r),t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[p]=0},delete:function(e){var t=m(this,r),n=w(t,e);if(n){var i=n.n,o=n.p;delete t._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),t._f==n&&(t._f=i),t._l==n&&(t._l=o),t[p]--}return!!n},forEach:function(e){m(this,r);for(var t,n=s(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!w(m(this,r),e)}}),d&&n(f.prototype,"size",{get:function(){return m(this,r)[p]}}),f},def:function(e,r,t){var n,i,o=w(e,r);return o?o.v=t:(e._l=o={i:i=h(r,!0),k:r,v:t,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[p]++,"F"!==i&&(e._i[i]=o)),e},getEntry:w,setStrong:function(e,r,t){u(e,r,(function(e,t){this._t=m(e,r),this._k=t,this._l=void 0}),(function(){for(var e=this._k,r=this._l;r&&r.r;)r=r.p;return this._t&&(this._l=r=r?r.n:this._t._f)?f(0,"keys"==e?r.k:"values"==e?r.v:[r.k,r.v]):(this._t=void 0,f(1))}),t?"entries":"values",!t,!0),c(r)}}},"./node_modules/core-js/library/modules/_collection-to-json.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_classof.js"),i=t("./node_modules/core-js/library/modules/_array-from-iterable.js");e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},"./node_modules/core-js/library/modules/_collection.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_global.js"),i=t("./node_modules/core-js/library/modules/_export.js"),o=t("./node_modules/core-js/library/modules/_meta.js"),s=t("./node_modules/core-js/library/modules/_fails.js"),a=t("./node_modules/core-js/library/modules/_hide.js"),l=t("./node_modules/core-js/library/modules/_redefine-all.js"),u=t("./node_modules/core-js/library/modules/_for-of.js"),f=t("./node_modules/core-js/library/modules/_an-instance.js"),c=t("./node_modules/core-js/library/modules/_is-object.js"),d=t("./node_modules/core-js/library/modules/_set-to-string-tag.js"),h=t("./node_modules/core-js/library/modules/_object-dp.js").f,m=t("./node_modules/core-js/library/modules/_array-methods.js")(0),p=t("./node_modules/core-js/library/modules/_descriptors.js");e.exports=function(e,r,t,w,b,v){var y=n[e],g=y,k=b?"set":"add",_=g&&g.prototype,E={};return p&&"function"==typeof g&&(v||_.forEach&&!s((function(){(new g).entries().next()})))?(g=r((function(r,t){f(r,g,e,"_c"),r._c=new y,null!=t&&u(t,b,r[k],r)})),m("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var r="add"==e||"set"==e;!(e in _)||v&&"clear"==e||a(g.prototype,e,(function(t,n){if(f(this,g,e),!r&&v&&!c(t))return"get"==e&&void 0;var i=this._c[e](0===t?0:t,n);return r?this:i}))})),v||h(g.prototype,"size",{get:function(){return this._c.size}})):(g=w.getConstructor(r,e,b,k),l(g.prototype,t),o.NEED=!0),d(g,e),E[e]=g,i(i.G+i.W+i.F,E),v||w.setStrong(g,e,b),g}},"./node_modules/core-js/library/modules/_core.js":function(e,r){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},"./node_modules/core-js/library/modules/_ctx.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_a-function.js");e.exports=function(e,r,t){if(n(e),void 0===r)return e;switch(t){case 1:return function(t){return e.call(r,t)};case 2:return function(t,n){return e.call(r,t,n)};case 3:return function(t,n,i){return e.call(r,t,n,i)}}return function(){return e.apply(r,arguments)}}},"./node_modules/core-js/library/modules/_defined.js":function(e,r){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},"./node_modules/core-js/library/modules/_descriptors.js":function(e,r,t){e.exports=!t("./node_modules/core-js/library/modules/_fails.js")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/library/modules/_dom-create.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_is-object.js"),i=t("./node_modules/core-js/library/modules/_global.js").document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"./node_modules/core-js/library/modules/_enum-bug-keys.js":function(e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"./node_modules/core-js/library/modules/_export.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_global.js"),i=t("./node_modules/core-js/library/modules/_core.js"),o=t("./node_modules/core-js/library/modules/_ctx.js"),s=t("./node_modules/core-js/library/modules/_hide.js"),a=t("./node_modules/core-js/library/modules/_has.js"),l=function(e,r,t){var u,f,c,d=e&l.F,h=e&l.G,m=e&l.S,p=e&l.P,w=e&l.B,b=e&l.W,v=h?i:i[r]||(i[r]={}),y=v.prototype,g=h?n:m?n[r]:(n[r]||{}).prototype;for(u in h&&(t=r),t)(f=!d&&g&&void 0!==g[u])&&a(v,u)||(c=f?g[u]:t[u],v[u]=h&&"function"!=typeof g[u]?t[u]:w&&f?o(c,n):b&&g[u]==c?function(e){var r=function(r,t,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,t)}return new e(r,t,n)}return e.apply(this,arguments)};return r.prototype=e.prototype,r}(c):p&&"function"==typeof c?o(Function.call,c):c,p&&((v.virtual||(v.virtual={}))[u]=c,e&l.R&&y&&!y[u]&&s(y,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"./node_modules/core-js/library/modules/_fails.js":function(e,r){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js/library/modules/_for-of.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_ctx.js"),i=t("./node_modules/core-js/library/modules/_iter-call.js"),o=t("./node_modules/core-js/library/modules/_is-array-iter.js"),s=t("./node_modules/core-js/library/modules/_an-object.js"),a=t("./node_modules/core-js/library/modules/_to-length.js"),l=t("./node_modules/core-js/library/modules/core.get-iterator-method.js"),u={},f={};(r=e.exports=function(e,r,t,c,d){var h,m,p,w,b=d?function(){return e}:l(e),v=n(t,c,r?2:1),y=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(o(b)){for(h=a(e.length);h>y;y++)if((w=r?v(s(m=e[y])[0],m[1]):v(e[y]))===u||w===f)return w}else for(p=b.call(e);!(m=p.next()).done;)if((w=i(p,v,m.value,r))===u||w===f)return w}).BREAK=u,r.RETURN=f},"./node_modules/core-js/library/modules/_global.js":function(e,r){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},"./node_modules/core-js/library/modules/_has.js":function(e,r){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},"./node_modules/core-js/library/modules/_hide.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_object-dp.js"),i=t("./node_modules/core-js/library/modules/_property-desc.js");e.exports=t("./node_modules/core-js/library/modules/_descriptors.js")?function(e,r,t){return n.f(e,r,i(1,t))}:function(e,r,t){return e[r]=t,e}},"./node_modules/core-js/library/modules/_html.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_global.js").document;e.exports=n&&n.documentElement},"./node_modules/core-js/library/modules/_ie8-dom-define.js":function(e,r,t){e.exports=!t("./node_modules/core-js/library/modules/_descriptors.js")&&!t("./node_modules/core-js/library/modules/_fails.js")((function(){return 7!=Object.defineProperty(t("./node_modules/core-js/library/modules/_dom-create.js")("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/library/modules/_iobject.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_cof.js");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},"./node_modules/core-js/library/modules/_is-array-iter.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_iterators.js"),i=t("./node_modules/core-js/library/modules/_wks.js")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},"./node_modules/core-js/library/modules/_is-array.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_cof.js");e.exports=Array.isArray||function(e){return"Array"==n(e)}},"./node_modules/core-js/library/modules/_is-object.js":function(e,r){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"./node_modules/core-js/library/modules/_iter-call.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_an-object.js");e.exports=function(e,r,t,i){try{return i?r(n(t)[0],t[1]):r(t)}catch(r){var o=e.return;throw void 0!==o&&n(o.call(e)),r}}},"./node_modules/core-js/library/modules/_iter-create.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_object-create.js"),i=t("./node_modules/core-js/library/modules/_property-desc.js"),o=t("./node_modules/core-js/library/modules/_set-to-string-tag.js"),s={};t("./node_modules/core-js/library/modules/_hide.js")(s,t("./node_modules/core-js/library/modules/_wks.js")("iterator"),(function(){return this})),e.exports=function(e,r,t){e.prototype=n(s,{next:i(1,t)}),o(e,r+" Iterator")}},"./node_modules/core-js/library/modules/_iter-define.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_library.js"),i=t("./node_modules/core-js/library/modules/_export.js"),o=t("./node_modules/core-js/library/modules/_redefine.js"),s=t("./node_modules/core-js/library/modules/_hide.js"),a=t("./node_modules/core-js/library/modules/_iterators.js"),l=t("./node_modules/core-js/library/modules/_iter-create.js"),u=t("./node_modules/core-js/library/modules/_set-to-string-tag.js"),f=t("./node_modules/core-js/library/modules/_object-gpo.js"),c=t("./node_modules/core-js/library/modules/_wks.js")("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,r,t,m,p,w,b){l(t,r,m);var v,y,g,k=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new t(this,e)}}return function(){return new t(this,e)}},_=r+" Iterator",E="values"==p,j=!1,S=e.prototype,A=S[c]||S["@@iterator"]||p&&S[p],R=A||k(p),M=p?E?k("entries"):R:void 0,D="Array"==r&&S.entries||A;if(D&&(g=f(D.call(new e)))!==Object.prototype&&g.next&&(u(g,_,!0),n||"function"==typeof g[c]||s(g,c,h)),E&&A&&"values"!==A.name&&(j=!0,R=function(){return A.call(this)}),n&&!b||!d&&!j&&S[c]||s(S,c,R),a[r]=R,a[_]=h,p)if(v={values:E?R:k("values"),keys:w?R:k("keys"),entries:M},b)for(y in v)y in S||o(S,y,v[y]);else i(i.P+i.F*(d||j),r,v);return v}},"./node_modules/core-js/library/modules/_iter-step.js":function(e,r){e.exports=function(e,r){return{value:r,done:!!e}}},"./node_modules/core-js/library/modules/_iterators.js":function(e,r){e.exports={}},"./node_modules/core-js/library/modules/_library.js":function(e,r){e.exports=!0},"./node_modules/core-js/library/modules/_meta.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_uid.js")("meta"),i=t("./node_modules/core-js/library/modules/_is-object.js"),o=t("./node_modules/core-js/library/modules/_has.js"),s=t("./node_modules/core-js/library/modules/_object-dp.js").f,a=0,l=Object.isExtensible||function(){return!0},u=!t("./node_modules/core-js/library/modules/_fails.js")((function(){return l(Object.preventExtensions({}))})),f=function(e){s(e,n,{value:{i:"O"+ ++a,w:{}}})},c=e.exports={KEY:n,NEED:!1,fastKey:function(e,r){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!l(e))return"F";if(!r)return"E";f(e)}return e[n].i},getWeak:function(e,r){if(!o(e,n)){if(!l(e))return!0;if(!r)return!1;f(e)}return e[n].w},onFreeze:function(e){return u&&c.NEED&&l(e)&&!o(e,n)&&f(e),e}}},"./node_modules/core-js/library/modules/_object-create.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_an-object.js"),i=t("./node_modules/core-js/library/modules/_object-dps.js"),o=t("./node_modules/core-js/library/modules/_enum-bug-keys.js"),s=t("./node_modules/core-js/library/modules/_shared-key.js")("IE_PROTO"),a=function(){},l=function(){var e,r=t("./node_modules/core-js/library/modules/_dom-create.js")("iframe"),n=o.length;for(r.style.display="none",t("./node_modules/core-js/library/modules/_html.js").appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;n--;)delete l.prototype[o[n]];return l()};e.exports=Object.create||function(e,r){var t;return null!==e?(a.prototype=n(e),t=new a,a.prototype=null,t[s]=e):t=l(),void 0===r?t:i(t,r)}},"./node_modules/core-js/library/modules/_object-dp.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_an-object.js"),i=t("./node_modules/core-js/library/modules/_ie8-dom-define.js"),o=t("./node_modules/core-js/library/modules/_to-primitive.js"),s=Object.defineProperty;r.f=t("./node_modules/core-js/library/modules/_descriptors.js")?Object.defineProperty:function(e,r,t){if(n(e),r=o(r,!0),n(t),i)try{return s(e,r,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[r]=t.value),e}},"./node_modules/core-js/library/modules/_object-dps.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_object-dp.js"),i=t("./node_modules/core-js/library/modules/_an-object.js"),o=t("./node_modules/core-js/library/modules/_object-keys.js");e.exports=t("./node_modules/core-js/library/modules/_descriptors.js")?Object.defineProperties:function(e,r){i(e);for(var t,s=o(r),a=s.length,l=0;a>l;)n.f(e,t=s[l++],r[t]);return e}},"./node_modules/core-js/library/modules/_object-gpo.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_has.js"),i=t("./node_modules/core-js/library/modules/_to-object.js"),o=t("./node_modules/core-js/library/modules/_shared-key.js")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"./node_modules/core-js/library/modules/_object-keys-internal.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_has.js"),i=t("./node_modules/core-js/library/modules/_to-iobject.js"),o=t("./node_modules/core-js/library/modules/_array-includes.js")(!1),s=t("./node_modules/core-js/library/modules/_shared-key.js")("IE_PROTO");e.exports=function(e,r){var t,a=i(e),l=0,u=[];for(t in a)t!=s&&n(a,t)&&u.push(t);for(;r.length>l;)n(a,t=r[l++])&&(~o(u,t)||u.push(t));return u}},"./node_modules/core-js/library/modules/_object-keys.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_object-keys-internal.js"),i=t("./node_modules/core-js/library/modules/_enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,i)}},"./node_modules/core-js/library/modules/_property-desc.js":function(e,r){e.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},"./node_modules/core-js/library/modules/_redefine-all.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_hide.js");e.exports=function(e,r,t){for(var i in r)t&&e[i]?e[i]=r[i]:n(e,i,r[i]);return e}},"./node_modules/core-js/library/modules/_redefine.js":function(e,r,t){e.exports=t("./node_modules/core-js/library/modules/_hide.js")},"./node_modules/core-js/library/modules/_set-collection-from.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_export.js"),i=t("./node_modules/core-js/library/modules/_a-function.js"),o=t("./node_modules/core-js/library/modules/_ctx.js"),s=t("./node_modules/core-js/library/modules/_for-of.js");e.exports=function(e){n(n.S,e,{from:function(e){var r,t,n,a,l=arguments[1];return i(this),(r=void 0!==l)&&i(l),null==e?new this:(t=[],r?(n=0,a=o(l,arguments[2],2),s(e,!1,(function(e){t.push(a(e,n++))}))):s(e,!1,t.push,t),new this(t))}})}},"./node_modules/core-js/library/modules/_set-collection-of.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_export.js");e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,r=new Array(e);e--;)r[e]=arguments[e];return new this(r)}})}},"./node_modules/core-js/library/modules/_set-species.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_global.js"),i=t("./node_modules/core-js/library/modules/_core.js"),o=t("./node_modules/core-js/library/modules/_object-dp.js"),s=t("./node_modules/core-js/library/modules/_descriptors.js"),a=t("./node_modules/core-js/library/modules/_wks.js")("species");e.exports=function(e){var r="function"==typeof i[e]?i[e]:n[e];s&&r&&!r[a]&&o.f(r,a,{configurable:!0,get:function(){return this}})}},"./node_modules/core-js/library/modules/_set-to-string-tag.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_object-dp.js").f,i=t("./node_modules/core-js/library/modules/_has.js"),o=t("./node_modules/core-js/library/modules/_wks.js")("toStringTag");e.exports=function(e,r,t){e&&!i(e=t?e:e.prototype,o)&&n(e,o,{configurable:!0,value:r})}},"./node_modules/core-js/library/modules/_shared-key.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_shared.js")("keys"),i=t("./node_modules/core-js/library/modules/_uid.js");e.exports=function(e){return n[e]||(n[e]=i(e))}},"./node_modules/core-js/library/modules/_shared.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_core.js"),i=t("./node_modules/core-js/library/modules/_global.js"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,r){return o[e]||(o[e]=void 0!==r?r:{})})("versions",[]).push({version:n.version,mode:t("./node_modules/core-js/library/modules/_library.js")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/library/modules/_string-at.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_to-integer.js"),i=t("./node_modules/core-js/library/modules/_defined.js");e.exports=function(e){return function(r,t){var o,s,a=String(i(r)),l=n(t),u=a.length;return l<0||l>=u?e?"":void 0:(o=a.charCodeAt(l))<55296||o>56319||l+1===u||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):s-56320+(o-55296<<10)+65536}}},"./node_modules/core-js/library/modules/_to-absolute-index.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_to-integer.js"),i=Math.max,o=Math.min;e.exports=function(e,r){return(e=n(e))<0?i(e+r,0):o(e,r)}},"./node_modules/core-js/library/modules/_to-integer.js":function(e,r){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},"./node_modules/core-js/library/modules/_to-iobject.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_iobject.js"),i=t("./node_modules/core-js/library/modules/_defined.js");e.exports=function(e){return n(i(e))}},"./node_modules/core-js/library/modules/_to-length.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_to-integer.js"),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},"./node_modules/core-js/library/modules/_to-object.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_defined.js");e.exports=function(e){return Object(n(e))}},"./node_modules/core-js/library/modules/_to-primitive.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_is-object.js");e.exports=function(e,r){if(!n(e))return e;var t,i;if(r&&"function"==typeof(t=e.toString)&&!n(i=t.call(e)))return i;if("function"==typeof(t=e.valueOf)&&!n(i=t.call(e)))return i;if(!r&&"function"==typeof(t=e.toString)&&!n(i=t.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/library/modules/_uid.js":function(e,r){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},"./node_modules/core-js/library/modules/_validate-collection.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_is-object.js");e.exports=function(e,r){if(!n(e)||e._t!==r)throw TypeError("Incompatible receiver, "+r+" required!");return e}},"./node_modules/core-js/library/modules/_wks.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_shared.js")("wks"),i=t("./node_modules/core-js/library/modules/_uid.js"),o=t("./node_modules/core-js/library/modules/_global.js").Symbol,s="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=n},"./node_modules/core-js/library/modules/core.get-iterator-method.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_classof.js"),i=t("./node_modules/core-js/library/modules/_wks.js")("iterator"),o=t("./node_modules/core-js/library/modules/_iterators.js");e.exports=t("./node_modules/core-js/library/modules/_core.js").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},"./node_modules/core-js/library/modules/es6.array.iterator.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_add-to-unscopables.js"),i=t("./node_modules/core-js/library/modules/_iter-step.js"),o=t("./node_modules/core-js/library/modules/_iterators.js"),s=t("./node_modules/core-js/library/modules/_to-iobject.js");e.exports=t("./node_modules/core-js/library/modules/_iter-define.js")(Array,"Array",(function(e,r){this._t=s(e),this._i=0,this._k=r}),(function(){var e=this._t,r=this._k,t=this._i++;return!e||t>=e.length?(this._t=void 0,i(1)):i(0,"keys"==r?t:"values"==r?e[t]:[t,e[t]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},"./node_modules/core-js/library/modules/es6.map.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_collection-strong.js"),i=t("./node_modules/core-js/library/modules/_validate-collection.js");e.exports=t("./node_modules/core-js/library/modules/_collection.js")("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var r=n.getEntry(i(this,"Map"),e);return r&&r.v},set:function(e,r){return n.def(i(this,"Map"),0===e?0:e,r)}},n,!0)},"./node_modules/core-js/library/modules/es6.object.to-string.js":function(e,r){},"./node_modules/core-js/library/modules/es6.string.iterator.js":function(e,r,t){"use strict";var n=t("./node_modules/core-js/library/modules/_string-at.js")(!0);t("./node_modules/core-js/library/modules/_iter-define.js")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,r=this._t,t=this._i;return t>=r.length?{value:void 0,done:!0}:(e=n(r,t),this._i+=e.length,{value:e,done:!1})}))},"./node_modules/core-js/library/modules/es7.map.from.js":function(e,r,t){t("./node_modules/core-js/library/modules/_set-collection-from.js")("Map")},"./node_modules/core-js/library/modules/es7.map.of.js":function(e,r,t){t("./node_modules/core-js/library/modules/_set-collection-of.js")("Map")},"./node_modules/core-js/library/modules/es7.map.to-json.js":function(e,r,t){var n=t("./node_modules/core-js/library/modules/_export.js");n(n.P+n.R,"Map",{toJSON:t("./node_modules/core-js/library/modules/_collection-to-json.js")("Map")})},"./node_modules/core-js/library/modules/web.dom.iterable.js":function(e,r,t){t("./node_modules/core-js/library/modules/es6.array.iterator.js");for(var n=t("./node_modules/core-js/library/modules/_global.js"),i=t("./node_modules/core-js/library/modules/_hide.js"),o=t("./node_modules/core-js/library/modules/_iterators.js"),s=t("./node_modules/core-js/library/modules/_wks.js")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var u=a[l],f=n[u],c=f&&f.prototype;c&&!c[s]&&i(c,s,u),o[u]=o.Array}},"./node_modules/webpack/buildin/global.js":function(e,r){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},"./ptt/internal/BenzAMRRecorder.min.js":function(e,r,t){(function(r){e.exports=function(){function e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function t(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r||"undefined"!=typeof self&&self;var i={exports:{}};!function(e,r){e.exports=function(){var e=function(){var e,r=0,t=[],n=[];function i(r){e=r.sampleRate}function o(e){var i=l(function(e,r){for(var t=e.length+r.length,n=new Float32Array(t),i=0,o=0;i<t;)n[i++]=e[o],n[i++]=r[o],o++;return n}(s(t,r),s(n,r))),o=new Blob([i],{type:e});self.postMessage({type:"blob",data:o})}function s(e,r){for(var t=new Float32Array(r),n=0,i=0;i<e.length;i++)t.set(e[i],n),n+=e[i].length;return t}function a(e,r,t){for(var n=0;n<t.length;n++)e.setUint8(r+n,t.charCodeAt(n))}function l(r){var t=new ArrayBuffer(44+2*r.length),n=new DataView(t);return a(n,0,"RIFF"),n.setUint32(4,36+2*r.length,!0),a(n,8,"WAVE"),a(n,12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,2,!0),n.setUint32(24,e,!0),n.setUint32(28,4*e,!0),n.setUint16(32,4,!0),n.setUint16(34,16,!0),a(n,36,"data"),n.setUint32(40,2*r.length,!0),function(e,r,t){for(var n=0;n<t.length;n++,r+=2){var i=Math.max(-1,Math.min(1,t[n]));e.setInt16(r,i<0?32768*i:32767*i,!0)}}(n,44,r),n}self.onmessage=function(e){switch(e.data.command){case"init":i(e.data.config);break;case"record":!function(e){t.push(e[0]),n.push(e[1]),r+=e[0].length}(e.data.buffer);break;case"exportWAV":o(e.data.type);break;case"getBuffer":!function(){var e=[];e.push(s(t,r)),e.push(s(n,r)),self.postMessage({type:"buffer",data:e})}();break;case"clear":r=0,t=[],n=[]}}}.toString().replace(/^\s*function.*?\(\)\s*{/,"").replace(/}\s*$/,""),r=function(r,t){var n=t||{},i=n.bufferLen||4096;this.context=r.context,this.node=(this.context.createScriptProcessor||this.context.createJavaScriptNode).call(this.context,i,2,2);var o=new Worker((window.URL||window.webkitURL).createObjectURL(new Blob([e],{type:"text/javascript"})));o.onmessage=function(e){"blob"===e.data.type?a(e.data.data):s(e.data.data)},o.postMessage({command:"init",config:{sampleRate:this.context.sampleRate}});var s,a,l=!1;this.node.onaudioprocess=function(e){l&&o.postMessage({command:"record",buffer:[e.inputBuffer.getChannelData(0),e.inputBuffer.getChannelData(1)]})},this.configure=function(e){for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r])},this.record=function(){l=!0},this.stop=function(){l=!1},this.clear=function(){o.postMessage({command:"clear"})},this.getBuffer=function(e){s=e||n.callback,o.postMessage({command:"getBuffer"})},this.exportWAV=function(e,r){if(a=e||n.callback,r=r||n.type||"audio/wav",!a)throw new Error("Callback not set");o.postMessage({command:"exportWAV",type:r})},this.release=function(){this.stop(),this.clear(),this.configure=this.record=this.stop=this.clear=this.getBuffer=this.exportWAV=function(){},r.disconnect(this.node),this.node.onaudioprocess=null,this.node.disconnect(),o.terminate()},r.connect(this.node),this.node.connect(this.context.destination)};return r.forceDownload=function(e,r){var t=(window.URL||window.webkitURL).createObjectURL(e),n=window.document.createElement("a");n.href=t,n.download=r||"output.wav";var i=document.createEvent("Event");i.initEvent("click",!0,!0),n.dispatchEvent(i)},r}()}(i);var o=i.exports,s=window.AudioContext||window.webkitAudioContext||window.mozAudioContext,a=null,l=!0;s||(l=!1,console.warn("Web Audio API is Unsupported."));var u=function(){function r(){e(this,r),this.o=null,this.u=null,this.k=null,this.p=!1,this.g=null}return n(r,[{key:"playPcm",value:function(e,r,t,n,i){a&&"closed"!==a.state||(a=new s),"interrupted"!==a.state&&"suspended"!==a.state||a.resume(),r=r||8e3,this.stopPcm();var o,l=n&&n>.001?e.slice(r*n):e;if(!l.length)return t();this.g=a.createBufferSource();try{o=a.createBuffer(1,l.length,r)}catch(e){r<11025?(o=a.createBuffer(1,l.length,4*r),this.g.playbackRate.value=.25):(o=a.createBuffer(1,l.length,2*r),this.g.playbackRate.value=.5)}if(o.copyToChannel?o.copyToChannel(l,0,0):o.getChannelData(0).set(l),i){for(var u=0,f=0;f<l.length;f++)u+=Math.abs(32767*l[f]);i(Math.ceil(u/l.length))}this.g.buffer=o,this.g.loop=!1,this.g.connect(a.destination),this.g.onended=t,this.g.start()}},{key:"stopPcm",value:function(){this.g&&(this.g.stop(),this.g=null)}},{key:"stopPcmSilently",value:function(){this.g.onended=null,this.stopPcm()}},{key:"initRecorder",value:function(){var e=this;return new Promise((function(r,t){var n=function(t){e.o=t,e.u=a.createMediaStreamSource(t),e.k=new o(e.u),e.p=!1,r()},i=function(e){t(e)};e.k?r():window.navigator.mediaDevices&&window.navigator.mediaDevices.getUserMedia?window.navigator.mediaDevices.getUserMedia({audio:!0}).then(n).catch(i):window.navigator.getUserMedia?window.navigator.getUserMedia({audio:!0},n,i):i()}))}},{key:"isRecording",value:function(){return this.k&&this.p}},{key:"startRecord",value:function(){this.k&&(this.k.clear(),this.k.record(),this.p=!0)}},{key:"stopRecord",value:function(){this.k&&(this.k.stop(),this.p=!1)}},{key:"generateRecordSamples",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(t){e.k&&(e.k.getBuffer((function(e){t(e[0])})),r&&e.k.clear())}))}},{key:"releaseRecord",value:function(){this.o&&this.o.getTracks&&(this.o.getTracks().forEach((function(e){e.stop()})),this.o=null),this.k&&(this.k.release(),this.k=null)}}],[{key:"isPlaySupported",value:function(){return l}},{key:"isRecordSupported",value:function(){return!!(window.navigator.mediaDevices&&window.navigator.mediaDevices.getUserMedia||window.navigator.getUserMedia)}},{key:"getCtxSampleRate",value:function(){return a&&a.sampleRate||0}},{key:"getCtxTime",value:function(){return a&&a.currentTime||0}},{key:"decodeAudioArrayBufferByContext",value:function(e){return new Promise((function(r,t){a.decodeAudioData(e,(function(e){var t=e.numberOfChannels,n=new Float32Array(e.length);switch(t){default:case 1:n=e.getChannelData(0);break;case 2:for(var i=e.getChannelData(0),o=e.getChannelData(1),s=0,a=n.length;s<a;s++)n[s]=.5*(i[s]+o[s]);break;case 4:for(var l=e.getChannelData(0),u=e.getChannelData(1),f=e.getChannelData(2),c=e.getChannelData(3),d=0,h=n.length;d<h;d++)n[d]=.25*(l[d]+u[d]+f[d]+c[d]);break;case 6:for(var m=e.getChannelData(0),p=e.getChannelData(1),w=e.getChannelData(2),b=e.getChannelData(4),v=e.getChannelData(5),y=0,g=n.length;y<g;y++)n[y]=.7071*(m[y]+p[y])+w[y]+.5*(b[y]+v[y])}r(n)}),t)}))}}]),r}(),f=function(){var e=function(){var e,r={toWAV:function(e){var r=this.A(e);if(!r)return null;var t=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),n=new Uint8Array(t.length+this.WAV_HEADER_SIZE),i=0,o=function(e){var r=new Uint8Array(2);new Int16Array(r.buffer)[0]=e,n.set(r,i),i+=2},s=function(e){var r=new Uint8Array(4);new Int32Array(r.buffer)[0]=e,n.set(r,i),i+=4},a=function(e){var r=new TextEncoder("utf-8").encode(e);n.set(r,i),i+=r.length};return a("RIFF"),s(36+t.length),a("WAVEfmt "),s(16),o(1),o(1),s(8e3),s(16e3),o(2),o(16),a("data"),s(t.length),n.set(t,i),n},decode:function(e,r=!0){var t=this.A(e,r);if(!t)return null;for(var n=new Float32Array(t.length),i=0;i<n.length;i++)n[i]=t[i]/32768;return n},A:function(r,t=!0){if(t&&String.fromCharCode.apply(null,r.subarray(0,this.AMR_HEADER.length))!==this.AMR_HEADER)return console.log("no header"),null;var n=this.Decoder_Interface_init();if(!n)return null;var i=new Int16Array(Math.floor(r.length/6*this.PCM_BUFFER_COUNT)),o=e.S(this.AMR_BUFFER_COUNT),s=new Uint8Array(e.HEAPU8.buffer,o,this.AMR_BUFFER_COUNT);o=e.S(2*this.PCM_BUFFER_COUNT);for(var a=new Int16Array(e.HEAPU8.buffer,o,this.PCM_BUFFER_COUNT),l=t?6:0,u=0;l+1<r.length&&u+1<i.length;){var f=this.SIZES[r[l]>>3&15];if(l+f+1>r.length)break;if(s.set(r.subarray(l,l+f+1)),this.Decoder_Interface_Decode(n,s.byteOffset,a.byteOffset,0),u+this.PCM_BUFFER_COUNT>i.length){var c=new Int16Array(2*i.length);c.set(i.subarray(0,u)),i=c}i.set(a,u),u+=this.PCM_BUFFER_COUNT,l+=f+1}return e.R(s.byteOffset),e.R(a.byteOffset),this.Decoder_Interface_exit(n),i.subarray(0,u)},encode:function(r,t,n){if(t<8e3)return console.error("pcmSampleRate should not be less than 8000."),null;void 0===n&&(n=this.Mode.MR795);var i=this.Encoder_Interface_init();if(!i)return null;var o=e.S(2*this.PCM_BUFFER_COUNT),s=new Int16Array(e.HEAPU8.buffer,o,this.PCM_BUFFER_COUNT);o=e.S(this.AMR_BUFFER_COUNT);for(var a=new Uint8Array(e.HEAPU8.buffer,o,this.AMR_BUFFER_COUNT),l=t/8e3,u=Math.floor(r.length/l),f=new Int16Array(u),c=0;c<u;c++)f[c]=32767*r[Math.floor(c*l)];var d=this.SIZES[n]+1,h=new Uint8Array(Math.ceil(u/this.PCM_BUFFER_COUNT*d)+this.AMR_HEADER.length);h.set(new TextEncoder("utf-8").encode(this.AMR_HEADER));for(var m=0,p=this.AMR_HEADER.length;m+this.PCM_BUFFER_COUNT<f.length&&p+d<h.length;){s.set(f.subarray(m,m+this.PCM_BUFFER_COUNT));var w=this.Encoder_Interface_Encode(i,n,s.byteOffset,a.byteOffset,0);if(w!=d){console.error([w,d]);break}h.set(a.subarray(0,w),p),m+=this.PCM_BUFFER_COUNT,p+=w}return e.R(s.byteOffset),e.R(a.byteOffset),this.Encoder_Interface_exit(i),h.subarray(0,p)},Decoder_Interface_init:function(){return console.warn("Decoder_Interface_init not initialized."),0},Decoder_Interface_exit:function(e){console.warn("Decoder_Interface_exit not initialized.")},Decoder_Interface_Decode:function(e,r,t,n){console.warn("Decoder_Interface_Decode not initialized.")},Encoder_Interface_init:function(e){return console.warn("Encoder_Interface_init not initialized."),0},Encoder_Interface_exit:function(e){console.warn("Encoder_Interface_exit not initialized.")},Encoder_Interface_Encode:function(e,r,t,n,i){console.warn("Encoder_Interface_Encode not initialized.")},Mode:{MR475:0,MR515:1,MR59:2,MR67:3,MR74:4,MR795:5,MR102:6,MR122:7,MRDTX:8},SIZES:[12,13,15,17,19,20,26,31,5,6,5,5,0,0,0,0],AMR_BUFFER_COUNT:32,PCM_BUFFER_COUNT:160,AMR_HEADER:"#!AMR\n",WAV_HEADER_SIZE:44};(e={canvas:{},print:function(e){console.log(e)},_:function(){return r.Decoder_Interface_init=e.M,r.Decoder_Interface_exit=e.D,r.Decoder_Interface_Decode=e.O,r.Encoder_Interface_init=e.T,r.Encoder_Interface_exit=e.N,r.Encoder_Interface_Encode=e.I,0}})||(e=(void 0!==e?e:null)||{});var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);var i="object"==typeof window,o="function"==typeof importScripts,s=!1,a=!i&&!s&&!o;if(a)e.print||(e.print=print),"undefined"!=typeof printErr&&(e.printErr=printErr),"undefined"!=typeof read?e.read=read:e.read=function(){throw"no read() available (jsc?)"},e.readBinary=function(e){if("function"==typeof readbuffer)return new Uint8Array(readbuffer(e));var r=read(e,"binary");return b("object"==typeof r),r},"undefined"!=typeof scriptArgs?e.arguments=scriptArgs:void 0!==arguments&&(e.arguments=arguments);else{if(!i&&!o)throw"Unknown runtime environment. Where are we?";if(e.read=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},void 0!==arguments&&(e.arguments=arguments),"undefined"!=typeof console)e.print||(e.print=function(e){console.log(e)}),e.printErr||(e.printErr=function(e){console.log(e)});else{var l=!1;e.print||(e.print=l&&"undefined"!=typeof dump?function(e){dump(e)}:function(e){})}o&&(e.load=importScripts),void 0===e.setWindowTitle&&(e.setWindowTitle=function(e){document.title=e})}function u(e){eval.call(null,e)}for(var n in!e.load&&e.read&&(e.load=function(r){u(e.read(r))}),e.print||(e.print=function(){}),e.printErr||(e.printErr=e.print),e.arguments||(e.arguments=[]),e.thisProgram||(e.thisProgram="./this.program"),e.print=e.print,e.printErr=e.printErr,e.preRun=[],e.postRun=[],t)t.hasOwnProperty(n)&&(e[n]=t[n]);var f={setTempRet0:function(e){h=e},getTempRet0:function(){return h},stackSave:function(){return se},stackRestore:function(e){se=e},getNativeTypeSize:function(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":case"float":return 4;case"i64":case"double":return 8;default:if("*"===e[e.length-1])return f.QUANTUM_SIZE;if("i"===e[0]){var r=parseInt(e.substr(1));return b(r%8==0),r/8}return 0}},getNativeFieldSize:function(e){return Math.max(f.getNativeTypeSize(e),f.QUANTUM_SIZE)},STACK_ALIGN:16,prepVararg:function(e,r){return"double"===r||"i64"===r?7&e&&(b(4==(7&e)),e+=4):b(0==(3&e)),e},getAlignSize:function(e,r,t){return t||"i64"!=e&&"double"!=e?e?Math.min(r||(e?f.getNativeFieldSize(e):0),f.QUANTUM_SIZE):Math.min(r,8):8},dynCall:function(r,t,n){return n&&n.length?(n.splice||(n=Array.prototype.slice.call(n)),n.splice(0,0,t),e["dynCall_"+r].apply(null,n)):e["dynCall_"+r].call(null,t)},functionPointers:[],addFunction:function(e){for(var r=0;r<f.functionPointers.length;r++)if(!f.functionPointers[r])return f.functionPointers[r]=e,2*(1+r);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},removeFunction:function(e){f.functionPointers[(e-2)/2]=null},warnOnce:function(r){f.warnOnce.shown||(f.warnOnce.shown={}),f.warnOnce.shown[r]||(f.warnOnce.shown[r]=1,e.printErr(r))},funcWrappers:{},getFuncWrapper:function(e,r){b(r),f.funcWrappers[r]||(f.funcWrappers[r]={});var t=f.funcWrappers[r];return t[e]||(t[e]=function(){return f.dynCall(r,e,arguments)}),t[e]},getCompilerSetting:function(e){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"},stackAlloc:function(e){var r=se;return se=15+(se=se+e|0)&-16,r},staticAlloc:function(e){var r=ne;return ne=15+(ne=ne+e|0)&-16,r},dynamicAlloc:function(e){var r=le;return(le=15+(le=le+e|0)&-16)>=de&&!ue()?(le=r,0):r},alignMemory:function(e,r){return Math.ceil(e/(r||16))*(r||16)},makeBigInt:function(e,r,t){return t?+(e>>>0)+4294967296*+(r>>>0):+(e>>>0)+4294967296*+(0|r)},GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};e.Runtime=f;var c,d,h,m,p,w=!1;function b(e,r){e||gr("Assertion failed: "+r)}function v(r){var t=e["_"+r];if(!t)try{t=[eval][0]("_"+r)}catch(e){}return b(t,"Cannot call unknown function "+r+" (perhaps LLVM optimizations or closure removed it?)"),t}function y(e,r,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":G[e>>0]=r;break;case"i16":K[e>>1]=r;break;case"i32":Z[e>>2]=r;break;case"i64":d=[r>>>0,(c=r,+xe(c)>=1?c>0?(0|Be(+Ie(c/4294967296),4294967295))>>>0:~~+Fe((c-+(~~c>>>0))/4294967296)>>>0:0)],Z[e>>2]=d[0],Z[e+4>>2]=d[1];break;case"float":Q[e>>2]=r;break;case"double":ee[e>>3]=r;break;default:gr("invalid type for setValue: "+t)}}function g(e,r,t){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":return G[e>>0];case"i16":return K[e>>1];case"i32":case"i64":return Z[e>>2];case"float":return Q[e>>2];case"double":return ee[e>>3];default:gr("invalid type for setValue: "+r)}return null}!function(){var e={stackSave:function(){f.stackSave()},stackRestore:function(){f.stackRestore()},arrayToC:function(e){var r=f.stackAlloc(e.length);return Le(e,r),r},stringToC:function(e){var r=0;return null!=e&&0!==e&&Ce(e,r=f.stackAlloc(1+(e.length<<2))),r}},r={string:e.stringToC,array:e.arrayToC};p=function(e,t,n,i,o){var s=v(e),a=[],l=0;if(i)for(var u=0;u<i.length;u++){var c=r[n[u]];c?(0===l&&(l=f.stackSave()),a[u]=c(i[u])):a[u]=i[u]}var d=s.apply(null,a);if("string"===t&&(d=M(d)),0!==l){if(o&&o.async)return void EmterpreterAsync.asyncFinalizers.push((function(){f.stackRestore(l)}));f.stackRestore(l)}return d};var t=/^function\s\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;function n(e){var r=e.toString().match(t);return r?{arguments:(r=r.slice(1))[0],body:r[1],returnValue:r[2]}:{}}var i={};for(var o in e)e.hasOwnProperty(o)&&(i[o]=n(e[o]));m=function(e,r,t){t=t||[];var o=v(e),s=t.every((function(e){return"number"===e})),a="string"!==r;if(a&&s)return o;var l=t.map((function(e,r){return"$"+r})),u="(function("+l.join(",")+") {",f=t.length;if(!s){u+="var stack = "+i.stackSave.body+";";for(var c=0;c<f;c++){var d=l[c],h=t[c];if("number"!==h){var m=i[h+"ToC"];u+="var "+m.arguments+" = "+d+";",u+=m.body+";",u+=d+"="+m.returnValue+";"}}}return u+="var ret = "+n((function(){return o})).returnValue+"("+l.join(",")+");",a||(u+="ret = "+n((function(){return M})).returnValue+"(ret);"),s||(u+=i.stackRestore.body.replace("()","(stack)")+";"),u+="return ret})",[eval][0](u)}}(),e.ccall=p,e.cwrap=m,e.setValue=y,e.getValue=g;var k=0,_=1,E=2,j=3,S=4;function A(e,r,t,n){var i,o;"number"==typeof e?(i=!0,o=e):(i=!1,o=e.length);var s,a="string"==typeof r?r:null;if(s=t==S?n:[mr,f.stackAlloc,f.staticAlloc,f.dynamicAlloc][void 0===t?E:t](Math.max(o,a?1:r.length)),i){var l;for(n=s,b(0==(3&s)),l=s+(-4&o);n<l;n+=4)Z[n>>2]=0;for(l=s+o;n<l;)G[n++>>0]=0;return s}if("i8"===a)return e.subarray||e.slice?X.set(e,s):X.set(new Uint8Array(e),s),s;for(var u,c,d,h=0;h<o;){var m=e[h];"function"==typeof m&&(m=f.getFunctionIndex(m)),0!==(u=a||r[h])?("i64"==u&&(u="i32"),y(s+h,m,u),d!==u&&(c=f.getNativeTypeSize(u),d=u),h+=c):h++}return s}function R(e){return ie?We.called&&ge?mr(e):f.dynamicAlloc(e):f.staticAlloc(e)}function M(r,t){if(0===t||!r)return"";for(var n,i=0,o=0;i|=n=X[r+o>>0],(0!=n||t)&&(o++,!t||o!=t););t||(t=o);var s="";if(i<128){for(var a,l=1024;t>0;)a=String.fromCharCode.apply(String,X.subarray(r,r+Math.min(t,l))),s=s?s+a:a,r+=l,t-=l;return s}return e.UTF8ToString(r)}function D(e){for(var r="";;){var t=G[e++>>0];if(!t)return r;r+=String.fromCharCode(t)}}function P(e,r){return Ne(e,r,!1)}function T(e,r){for(var t,n,i,o,s,a="";;){if(!(t=e[r++]))return a;if(128&t)if(n=63&e[r++],192!=(224&t))if(i=63&e[r++],224==(240&t)?t=(15&t)<<12|n<<6|i:(o=63&e[r++],240==(248&t)?t=(7&t)<<18|n<<12|i<<6|o:(s=63&e[r++],t=248==(252&t)?(3&t)<<24|n<<18|i<<12|o<<6|s:(1&t)<<30|n<<24|i<<18|o<<12|s<<6|63&e[r++])),t<65536)a+=String.fromCharCode(t);else{var l=t-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}else a+=String.fromCharCode((31&t)<<6|n);else a+=String.fromCharCode(t)}}function O(e){return T(X,e)}function C(e,r,t,n){if(!(n>0))return 0;for(var i=t,o=t+n-1,s=0;s<e.length;++s){var a=e.charCodeAt(s);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++s)),a<=127){if(t>=o)break;r[t++]=a}else if(a<=2047){if(t+1>=o)break;r[t++]=192|a>>6,r[t++]=128|63&a}else if(a<=65535){if(t+2>=o)break;r[t++]=224|a>>12,r[t++]=128|a>>6&63,r[t++]=128|63&a}else if(a<=2097151){if(t+3>=o)break;r[t++]=240|a>>18,r[t++]=128|a>>12&63,r[t++]=128|a>>6&63,r[t++]=128|63&a}else if(a<=67108863){if(t+4>=o)break;r[t++]=248|a>>24,r[t++]=128|a>>18&63,r[t++]=128|a>>12&63,r[t++]=128|a>>6&63,r[t++]=128|63&a}else{if(t+5>=o)break;r[t++]=252|a>>30,r[t++]=128|a>>24&63,r[t++]=128|a>>18&63,r[t++]=128|a>>12&63,r[t++]=128|a>>6&63,r[t++]=128|63&a}}return r[t]=0,t-i}function L(e,r,t){return C(e,X,r,t)}function N(e){for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++t)),n<=127?++r:r+=n<=2047?2:n<=65535?3:n<=2097151?4:n<=67108863?5:6}return r}function x(e){for(var r=0,t="";;){var n=K[e+2*r>>1];if(0==n)return t;++r,t+=String.fromCharCode(n)}}function F(e,r,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,i=(t-=2)<2*e.length?t/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);K[r>>1]=s,r+=2}return K[r>>1]=0,r-n}function I(e){return 2*e.length}function B(e){for(var r=0,t="";;){var n=Z[e+4*r>>2];if(0==n)return t;if(++r,n>=65536){var i=n-65536;t+=String.fromCharCode(55296|i>>10,56320|1023&i)}else t+=String.fromCharCode(n)}}function U(e,r,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,i=n+t-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),Z[r>>2]=s,(r+=4)+4>i)break}return Z[r>>2]=0,r-n}function z(e){for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r}function q(r){var t=!!e.___cxa_demangle;if(t)try{var n=mr(r.length);Ce(r.substr(1),n);var i=mr(4),o=e.___cxa_demangle(n,0,0,i);if(0===g(i,"i32")&&o)return M(o)}catch(e){}finally{n&&fr(n),i&&fr(i),o&&fr(o)}var s=3,a={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},l=[],u=!0,c=r;try{if("Object._main"==r||"_main"==r)return"main()";if("number"==typeof r&&(r=M(r)),"_"!==r[0])return r;if("_"!==r[1])return r;if("Z"!==r[2])return r;switch(r[3]){case"n":return"operator new()";case"d":return"operator delete()"}c=function e(t,n,i){n=n||1/0;var o,f="",c=[];if("N"===r[s]){if(o=function(){s++,"K"===r[s]&&s++;for(var e=[];"E"!==r[s];)if("S"!==r[s])if("C"!==r[s]){var t=parseInt(r.substr(s)),n=t.toString().length;if(!t||!n){s--;break}var i=r.substr(s+n,t);e.push(i),l.push(i),s+=n+t}else e.push(e[e.length-1]),s+=2;else{s++;var o=r.indexOf("_",s),a=r.substring(s,o)||0;e.push(l[a]||"?"),s=o+1}return s++,e}().join("::"),0==--n)return t?[o]:o}else if(("K"===r[s]||u&&"L"===r[s])&&s++,p=parseInt(r.substr(s))){var d=p.toString().length;o=r.substr(s+d,p),s+=d+p}if(u=!1,"I"===r[s]){s++;var h=e(!0);f+=e(!0,1,!0)[0]+" "+o+"<"+h.join(", ")+">"}else f=o;e:for(;s<r.length&&n-- >0;){var m=r[s++];if(m in a)c.push(a[m]);else switch(m){case"P":c.push(e(!0,1,!0)[0]+"*");break;case"R":c.push(e(!0,1,!0)[0]+"&");break;case"L":s++;var p=r.indexOf("E",s)-s;c.push(r.substr(s,p)),s+=p+2;break;case"A":if(p=parseInt(r.substr(s)),s+=p.toString().length,"_"!==r[s])throw"?";s++,c.push(e(!0,1,!0)[0]+" ["+p+"]");break;case"E":break e;default:f+="?"+m;break e}}return i||1!==c.length||"void"!==c[0]||(c=[]),t?(f&&c.push(f+"?"),c):f+"("+c.join(", ")+")"}()}catch(e){c+="?"}return c.indexOf("?")>=0&&!t&&f.warnOnce("warning: a problem occurred in builtin C++ name demangling; build with  -s DEMANGLE_SUPPORT=1  to link in libcxxabi demangling"),c}function V(e){return e.replace(/__Z[\w\d_]+/g,(function(e){var r=q(e);return e===r?e:e+" ["+r+"]"}))}function H(){var e=new Error;if(!e.stack){try{throw new Error(0)}catch(r){e=r}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function W(){return V(H())}e.ALLOC_NORMAL=k,e.ALLOC_STACK=_,e.ALLOC_STATIC=E,e.ALLOC_DYNAMIC=j,e.ALLOC_NONE=S,e.allocate=A,e.getMemory=R,e.Pointer_stringify=M,e.AsciiToString=D,e.stringToAscii=P,e.UTF8ArrayToString=T,e.UTF8ToString=O,e.stringToUTF8Array=C,e.stringToUTF8=L,e.lengthBytesUTF8=N,e.UTF16ToString=x,e.stringToUTF16=F,e.lengthBytesUTF16=I,e.UTF32ToString=B,e.stringToUTF32=U,e.lengthBytesUTF32=z,e.stackTrace=W;var Y,G,X,K,J,Z,$,Q,ee,re=4096;function te(e){return e%4096>0&&(e+=4096-e%4096),e}var ne=0,ie=!1,oe=0,se=0,ae=0,le=0;function ue(){gr("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+de+", (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.")}for(var fe,ce=e.TOTAL_STACK||65536,de=e.TOTAL_MEMORY||524288,he=65536;he<de||he<2*ce;)he<16777216?he*=2:he+=16777216;function me(e){for(;e.length>0;){var r=e.shift();if("function"!=typeof r){var t=r.func;"number"==typeof t?void 0===r.arg?f.dynCall("v",t):f.dynCall("vi",t,[r.arg]):t(void 0===r.arg?null:r.arg)}else r()}}he!==de&&(e.printErr("increasing TOTAL_MEMORY to "+he+" to be compliant with the asm.js spec (and given that TOTAL_STACK="+ce+")"),de=he),b("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"JS engine does not provide full typed array support"),fe=new ArrayBuffer(de),G=new Int8Array(fe),K=new Int16Array(fe),Z=new Int32Array(fe),X=new Uint8Array(fe),J=new Uint16Array(fe),$=new Uint32Array(fe),Q=new Float32Array(fe),ee=new Float64Array(fe),Z[0]=255,b(255===X[0]&&0===X[3],"Typed arrays 2 must be run on a little-endian system"),e.HEAP=Y,e.buffer=fe,e.HEAP8=G,e.HEAP16=K,e.HEAP32=Z,e.HEAPU8=X,e.HEAPU16=J,e.HEAPU32=$,e.HEAPF32=Q,e.HEAPF64=ee;var pe=[],we=[],be=[],ve=[],ye=[],ge=!1;function ke(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)Ae(e.preRun.shift());me(pe)}function _e(){ge||(ge=!0,me(we))}function Ee(){me(be)}function je(){me(ve)}function Se(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)Pe(e.postRun.shift());me(ye)}function Ae(e){pe.unshift(e)}function Re(e){we.unshift(e)}function Me(e){be.unshift(e)}function De(e){ve.unshift(e)}function Pe(e){ye.unshift(e)}function Te(e,r,t){var n=t>0?t:N(e)+1,i=new Array(n),o=C(e,i,0,i.length);return r&&(i.length=o),i}function Oe(e){for(var r=[],t=0;t<e.length;t++){var n=e[t];n>255&&(n&=255),r.push(String.fromCharCode(n))}return r.join("")}function Ce(e,r,t){for(var n=Te(e,t),i=0;i<n.length;){var o=n[i];G[r+i>>0]=o,i+=1}}function Le(e,r){for(var t=0;t<e.length;t++)G[r++>>0]=e[t]}function Ne(e,r,t){for(var n=0;n<e.length;++n)G[r++>>0]=e.charCodeAt(n);t||(G[r>>0]=0)}e.addOnPreRun=Ae,e.addOnInit=Re,e.addOnPreMain=Me,e.addOnExit=De,e.addOnPostRun=Pe,e.intArrayFromString=Te,e.intArrayToString=Oe,e.writeStringToMemory=Ce,e.writeArrayToMemory=Le,e.writeAsciiToMemory=Ne,Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,r){var t=65535&e,n=65535&r;return t*n+((e>>>16)*n+t*(r>>>16)<<16)|0}),Math.imul=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var r=0;r<32;r++)if(e&1<<31-r)return r;return 32}),Math.clz32=Math.clz32;var xe=Math.abs,Fe=Math.ceil,Ie=Math.floor,Be=Math.min,Ue=0,ze=null;function qe(r){Ue++,e.monitorRunDependencies&&e.monitorRunDependencies(Ue)}function Ve(r){if(Ue--,e.monitorRunDependencies&&e.monitorRunDependencies(Ue),0==Ue&&ze){var t=ze;ze=null,t()}}e.addRunDependency=qe,e.removeRunDependency=Ve,e.preloadedImages={},e.preloadedAudios={},ne=31784,we.push(),A([154,14,0,0,188,14,0,0,226,14,0,0,8,15,0,0,46,15,0,0,84,15,0,0,130,15,0,0,208,15,0,0,66,16,0,0,108,16,0,0,42,17,0,0,248,17,0,0,228,18,0,0,240,19,0,0,24,21,0,0,86,22,0,0,238,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,13,0,15,0,17,0,19,0,20,0,26,0,31,0,5,0,6,0,5,0,5,0,0,0,0,0,0,0,0,0,1,252,146,252,36,253,182,253,72,254,218,254,108,255,0,0,0,0,32,78,32,78,32,78,32,78,32,78,80,70,0,64,0,32,0,0,0,0,255,127,112,125,112,125,112,125,112,125,112,125,153,89,255,127,112,125,112,125,102,102,102,38,153,25,153,25,154,89,185,62,232,43,188,30,132,21,16,15,139,10,97,7,42,5,157,3,0,96,0,72,0,54,128,40,96,30,200,22,22,17,209,12,157,9,54,7,102,70,184,38,75,21,182,11,113,6,139,3,243,1,18,1,151,0,83,0,154,89,185,62,232,43,188,30,132,21,16,15,139,10,97,7,42,5,157,3,44,3,128,0,30,2,140,0,57,11,111,4,218,8,74,13,19,8,51,2,133,49,135,2,36,16,6,7,225,21,165,20,9,30,118,1,151,14,185,1,160,42,78,10,31,46,190,9,10,80,29,3,98,20,163,2,68,26,162,32,162,20,160,6,208,5,172,1,250,22,196,1,212,20,232,15,255,13,244,4,165,9,133,3,22,62,237,3,134,58,199,12,91,40,250,18,51,14,229,7,36,10,67,3,72,48,28,19,174,47,168,6,120,52,68,6,158,35,37,9,128,15,2,6,103,21,208,38,211,14,161,1,79,5,158,1,56,14,33,6,59,31,213,13,141,44,133,2,104,33,123,2,216,15,97,5,224,64,236,23,156,44,188,2,215,7,95,2,127,48,42,6,111,43,46,18,112,53,172,6,214,46,205,4,60,31,129,28,175,51,83,22,124,9,135,4,25,8,149,7,74,24,233,23,218,13,12,7,221,34,10,7,231,33,44,6,111,54,248,13,1,52,93,24,254,23,106,4,106,23,198,6,61,55,54,18,7,44,249,12,194,47,15,6,107,54,199,11,217,19,224,40,228,36,50,26,153,6,171,2,156,5,26,5,44,28,93,15,242,15,153,10,113,30,192,2,222,58,34,3,155,24,92,20,241,16,237,20,20,26,29,2,174,23,114,2,83,53,116,14,234,44,104,9,28,63,204,2,145,47,239,2,129,31,225,44,170,24,208,8,114,17,240,1,125,28,11,2,229,39,249,14,202,32,221,11,211,32,198,3,148,55,88,7,255,33,33,21,11,64,255,18,252,28,187,7,201,23,206,4,155,36,46,17,222,56,35,13,247,52,57,11,107,51,185,5,158,21,142,6,82,51,179,57,170,28,88,2,38,5,36,2,156,16,211,13,60,39,60,9,91,41,110,2,32,51,157,2,46,55,198,13,175,19,56,38,234,59,107,2,43,12,78,2,58,64,197,11,182,60,72,16,177,60,75,6,45,60,204,4,151,62,83,36,110,29,112,19,198,7,189,4,183,44,133,4,224,48,143,21,3,37,84,10,36,30,242,7,224,51,191,8,139,62,229,19,130,31,105,26,99,39,133,5,138,19,43,9,235,48,87,23,22,59,83,11,88,71,241,8,211,61,223,9,137,63,14,40,59,57,55,44,5,7,81,1,43,12,141,1,182,13,112,11,240,17,110,10,95,29,116,2,151,44,144,2,58,23,131,9,144,25,199,28,46,32,61,3,160,15,95,3,48,39,188,9,185,62,223,13,28,71,30,4,215,23,174,5,252,22,220,30,64,73,140,13,72,7,32,2,238,35,171,2,103,45,64,16,242,17,108,6,86,12,133,4,81,62,0,10,61,48,149,14,12,68,140,20,218,23,212,7,101,11,206,6,83,64,137,20,147,65,144,6,53,67,223,6,165,18,159,12,218,28,147,23,6,56,28,39,195,15,186,1,98,16,202,1,254,35,194,8,3,29,121,16,60,50,33,3,178,43,57,3,104,49,36,8,156,50,154,25,33,37,228,3,229,25,217,3,41,41,198,9,185,59,142,19,58,49,7,8,124,60,117,6,66,63,9,27,151,55,158,22,66,10,60,3,239,21,150,6,95,53,146,22,84,14,18,6,49,44,73,10,42,38,179,5,179,54,125,18,25,62,147,24,134,24,78,7,230,30,237,8,82,66,219,17,192,64,9,15,144,59,7,9,151,62,172,12,123,56,144,69,71,46,203,10,189,7,127,5,120,5,108,3,239,16,219,13,39,17,114,16,29,21,168,2,53,68,13,3,101,25,254,19,155,31,253,29,187,28,26,3,141,32,158,4,193,58,88,12,80,58,223,11,197,79,112,3,209,56,84,3,49,48,116,57,248,26,128,7,129,16,165,3,26,32,63,4,163,41,244,15,98,39,181,17,175,10,72,3,177,80,57,4,71,65,78,23,1,62,226,17,119,42,14,10,189,14,142,4,183,56,204,15,219,80,67,10,115,59,174,10,170,59,138,8,113,24,154,12,69,51,24,76,28,28,162,3,158,9,82,6,163,17,20,12,28,54,181,16,220,40,65,3,187,67,42,3,251,65,241,8,186,60,25,32,35,53,148,6,125,12,42,7,76,62,4,11,196,61,207,20,110,66,134,9,148,65,46,5,55,61,220,31,206,45,108,33,178,14,5,8,91,37,37,5,249,52,134,26,195,47,144,7,244,31,222,13,231,51,242,6,171,63,199,25,163,63,78,30,73,33,247,9,57,28,85,10,93,71,65,29,245,65,200,8,218,69,68,11,113,67,0,13,201,36,194,78,34,43,128,32,6,5,108,2,151,5,71,2,105,23,241,8,138,15,42,14,24,20,240,2,97,52,62,3,177,21,44,11,244,45,20,23,241,41,48,2,70,21,52,2,9,52,192,11,170,46,99,14,175,77,30,3,97,38,216,2,95,53,44,34,223,28,237,11,211,9,10,3,162,23,65,3,69,25,210,19,113,32,159,9,253,23,73,7,204,59,238,4,72,56,195,17,95,53,163,17,65,12,167,11,175,9,235,4,240,58,39,18,22,60,47,10,156,56,88,9,174,48,233,9,115,29,133,11,109,50,28,47,92,21,172,2,69,12,210,2,217,19,250,4,188,49,104,16,198,59,169,2,139,30,80,2,134,25,229,7,94,64,33,34,52,52,114,3,21,21,131,3,64,57,130,8,149,57,131,16,190,55,18,5,105,54,237,7,117,60,58,29,199,61,220,17,217,9,221,7,198,19,12,7,39,20,182,25,218,27,13,14,168,42,75,6,209,45,172,6,7,66,127,13,140,63,240,25,90,36,239,3,153,36,58,8,238,74,173,19,153,48,173,16,47,62,52,5,253,59,184,13,122,46,61,55,229,62,198,26,218,7,225,2,195,14,93,3,190,44,64,11,236,13,212,13,97,35,217,4,103,48,128,3,98,33,21,18,41,45,144,22,193,31,77,2,26,32,76,2,40,73,171,14,173,50,77,12,113,61,246,2,250,64,242,2,118,59,130,43,255,61,160,8,65,18,98,2,234,39,166,2,153,59,50,16,97,22,255,12,185,32,134,6,150,77,17,9,90,60,135,21,230,54,105,21,96,22,72,11,156,29,66,5,48,56,205,20,108,63,110,15,14,59,160,14,202,59,155,5,5,57,230,15,13,48,80,61,193,29,163,6,122,8,116,3,107,17,215,17,174,70,234,12,198,49,47,3,78,58,139,3,168,58,185,16,158,60,176,32,74,70,63,4,54,9,97,3,153,63,203,14,63,61,244,17,228,63,254,5,200,64,162,8,193,65,225,37,57,62,161,17,205,12,61,4,171,37,139,8,197,46,180,23,239,35,110,17,251,34,93,6,49,40,246,11,97,64,35,20,106,60,154,27,110,53,239,9,153,20,229,8,106,65,69,24,15,65,80,13,80,79,35,13,0,73,193,7,92,55,67,50,50,59,87,61,121,17,252,3,145,6,118,3,215,16,205,16,248,34,73,14,5,23,123,4,127,45,172,5,14,62,179,8,230,17,244,25,17,27,181,4,76,24,31,3,127,48,81,13,96,62,37,15,147,77,61,8,217,37,93,8,150,57,126,34,144,56,39,10,25,7,214,4,91,30,45,3,135,74,58,17,178,21,16,8,103,14,28,11,27,68,208,8,57,65,134,17,71,63,12,21,92,31,203,10,77,13,71,8,18,68,101,21,130,53,226,10,167,77,160,10,138,35,40,15,252,70,225,18,184,67,175,47,252,19,228,3,71,19,220,3,160,38,9,12,126,23,251,20,9,62,131,6,213,32,159,4,239,58,62,9,65,77,90,27,187,46,26,6,111,28,104,4,219,65,252,5,146,61,5,21,116,57,17,8,137,78,107,8,6,67,53,32,247,69,174,24,91,21,224,5,4,16,14,10,13,68,154,26,41,22,72,11,252,64,54,13,15,35,39,7,191,78,129,18,94,76,126,28,2,26,221,10,208,44,249,12,197,75,190,19,190,73,114,18,55,64,69,9,206,79,34,17,89,44,158,103,73,45,252,11,50,11,30,6,244,19,46,4,142,37,51,19,75,19,208,13,117,29,110,3,237,80,83,3,26,27,43,17,159,65,53,30,153,39,251,3,117,38,196,3,134,60,115,15,99,60,102,13,175,73,214,3,152,78,195,3,236,65,87,50,254,55,104,16,199,25,196,4,6,36,46,3,46,66,14,20,29,22,34,19,112,21,6,7,34,79,122,15,109,66,34,24,9,70,41,23,149,36,92,13,50,29,179,7,81,76,57,20,59,74,190,11,70,64,204,14,198,62,63,9,216,33,183,10,229,36,246,102,104,42,7,5,227,13,241,3,230,21,38,14,253,75,136,21,165,48,29,3,154,80,143,3,67,60,250,11,141,66,35,40,195,73,73,10,73,15,244,4,63,76,43,13,132,70,110,20,91,75,142,6,52,76,100,12,152,70,2,42,241,64,189,26,62,12,250,8,117,42,133,9,220,60,1,27,53,49,53,13,108,43,225,12,122,65,120,9,165,73,59,26,19,67,159,38,199,49,45,10,233,34,68,12,89,74,84,30,171,71,40,15,251,79,98,14,146,76,52,13,244,50,173,75,30,41,84,90,1,0,3,0,0,0,1,0,2,0,4,0,82,120,26,113,81,106,240,99,241,93,78,88,2,83,7,78,89,73,242,68,51,115,174,103,80,93,251,83,149,75,6,68,56,61,25,55,150,49,161,44,205,76,21,46,166,27,151,16,244,9,249,5,149,3,38,2,74,1,198,0,249,79,26,80,59,80,92,80,125,80,164,80,197,80,236,80,13,81,52,81,85,81,124,81,157,81,196,81,236,81,19,82,58,82,97,82,137,82,176,82,215,82,255,82,38,83,84,83,123,83,169,83,208,83,254,83,38,84,84,84,129,84,175,84,221,84,11,85,57,85,103,85,149,85,201,85,247,85,43,86,89,86,142,86,194,86,247,86,43,87,95,87,148,87,200,87,3,88,56,88,115,88,174,88,233,88,36,89,95,89,154,89,219,89,22,90,88,90,153,90,212,90,28,91,94,91,159,91,231,91,48,92,113,92,192,92,8,93,80,93,159,93,237,93,60,94,138,94,224,94,46,95,131,95,217,95,52,96,138,96,229,96,72,97,163,97,6,98,104,98,209,98,51,99,156,99,11,100,123,100,234,100,96,101,214,101,76,102,201,102,76,103,207,103,82,104,220,104,108,105,252,105,147,106,48,107,205,107,113,108,27,109,204,109,125,110,59,111,249,111,197,112,150,113,111,114,84,115,64,116,50,117,50,118,63,119,88,120,225,122,255,127,255,127,255,127,255,127,255,127,255,127,255,127,225,122,88,120,63,119,50,118,50,117,64,116,84,115,111,114,150,113,197,112,249,111,59,111,125,110,204,109,27,109,113,108,205,107,48,107,147,106,252,105,108,105,220,104,82,104,207,103,76,103,201,102,76,102,214,101,96,101,234,100,123,100,11,100,156,99,51,99,209,98,104,98,6,98,163,97,72,97,229,96,138,96,52,96,217,95,131,95,46,95,224,94,138,94,60,94,237,93,159,93,80,93,8,93,192,92,113,92,48,92,231,91,159,91,94,91,28,91,212,90,153,90,88,90,22,90,219,89,154,89,95,89,36,89,233,88,174,88,115,88,56,88,3,88,200,87,148,87,95,87,43,87,247,86,194,86,142,86,89,86,43,86,247,85,201,85,149,85,103,85,57,85,11,85,221,84,175,84,129,84,84,84,38,84,254,83,208,83,169,83,123,83,84,83,38,83,255,82,215,82,176,82,137,82,97,82,58,82,19,82,236,81,196,81,157,81,124,81,85,81,52,81,13,81,236,80,197,80,164,80,125,80,92,80,59,80,26,80,249,79,210,79,177,79,145,79,112,79,13,0,14,0,16,0,18,0,20,0,21,0,27,0,32,0,6,0,7,0,6,0,6,0,0,0,0,0,0,0,1,0,13,0,14,0,16,0,18,0,19,0,21,0,26,0,31,0,6,0,6,0,6,0,6,0,0,0,0,0,0,0,1,0,79,115,156,110,74,97,126,77,72,54,9,31,195,10,153,251,125,242,48,239,127,240,173,244,231,249,176,254,22,2,202,3,255,3,55,3,4,2,220,0,0,0,125,255,62,255,41,255,0,0,216,127,107,127,182,126,187,125,123,124,248,122,53,121,53,119,250,116,137,114,128,46,128,67,0,120,0,101,128,94,64,113,64,95,192,28,64,76,192,57,84,0,1,0,254,255,2,0,5,0,10,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,5,0,10,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,10,0,19,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,5,0,9,0,20,0,94,0,0,0,253,255,3,0,3,0,6,0,5,0,9,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,19,0,19,0,19,0,19,0,23,0,39,0,57,0,5,0,8,0,8,0,7,0,8,0,7,0,2,0,8,0,4,0,7,0,2,0,4,0,7,0,2,0,8,0,4,0,7,0,2,0,8,0,8,0,7,0,8,0,7,0,2,0,6,0,4,0,7,0,2,0,6,0,4,0,7,0,2,0,6,0,4,0,7,0,2,0,6,0,8,0,9,0,9,0,8,0,9,0,2,0,6,0,4,0,9,0,2,0,6,0,8,0,9,0,2,0,6,0,4,0,9,0,2,0,6,0,8,0,9,0,9,0,8,0,11,0,3,0,7,0,4,0,11,0,3,0,7,0,8,0,11,0,3,0,7,0,4,0,11,0,3,0,7,0,8,0,9,0,9,0,8,0,13,0,4,0,7,0,5,0,13,0,4,0,7,0,8,0,13,0,4,0,7,0,5,0,13,0,4,0,7,0,9,0,9,0,9,0,8,0,13,0,4,0,4,0,5,0,6,0,13,0,4,0,4,0,5,0,8,0,13,0,4,0,4,0,5,0,6,0,13,0,4,0,4,0,5,0,8,0,9,0,9,0,8,0,1,0,1,0,1,0,1,0,10,0,10,0,7,0,7,0,5,0,1,0,1,0,1,0,1,0,10,0,10,0,7,0,7,0,8,0,1,0,1,0,1,0,1,0,10,0,10,0,7,0,7,0,5,0,1,0,1,0,1,0,1,0,10,0,10,0,7,0,7,0,7,0,8,0,9,0,8,0,6,0,9,0,4,0,4,0,4,0,4,0,4,0,4,0,3,0,3,0,3,0,3,0,3,0,5,0,6,0,4,0,4,0,4,0,4,0,4,0,4,0,3,0,3,0,3,0,3,0,3,0,5,0,9,0,4,0,4,0,4,0,4,0,4,0,4,0,3,0,3,0,3,0,3,0,3,0,5,0,6,0,4,0,4,0,4,0,4,0,4,0,4,0,3,0,3,0,3,0,3,0,3,0,5,0,3,0,8,0,9,0,9,0,6,0,95,0,103,0,118,0,134,0,148,0,159,0,204,0,244,0,39,0,43,0,38,0,37,0,0,0,0,0,0,0,0,0,0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0,12,0,13,0,14,0,15,0,23,0,24,0,25,0,26,0,27,0,28,0,48,0,49,0,61,0,62,0,82,0,83,0,47,0,46,0,45,0,44,0,81,0,80,0,79,0,78,0,17,0,18,0,20,0,22,0,77,0,76,0,75,0,74,0,29,0,30,0,43,0,42,0,41,0,40,0,38,0,39,0,16,0,19,0,21,0,50,0,51,0,59,0,60,0,63,0,64,0,72,0,73,0,84,0,85,0,93,0,94,0,32,0,33,0,35,0,36,0,53,0,54,0,56,0,57,0,66,0,67,0,69,0,70,0,87,0,88,0,90,0,91,0,34,0,55,0,68,0,89,0,37,0,58,0,71,0,92,0,31,0,52,0,65,0,86,0,7,0,6,0,5,0,4,0,3,0,2,0,1,0,0,0,15,0,14,0,13,0,12,0,11,0,10,0,9,0,8,0,23,0,24,0,25,0,26,0,27,0,46,0,65,0,84,0,45,0,44,0,43,0,64,0,63,0,62,0,83,0,82,0,81,0,102,0,101,0,100,0,42,0,61,0,80,0,99,0,28,0,47,0,66,0,85,0,18,0,41,0,60,0,79,0,98,0,29,0,48,0,67,0,17,0,20,0,22,0,40,0,59,0,78,0,97,0,21,0,30,0,49,0,68,0,86,0,19,0,16,0,87,0,39,0,38,0,58,0,57,0,77,0,35,0,54,0,73,0,92,0,76,0,96,0,95,0,36,0,55,0,74,0,93,0,32,0,51,0,33,0,52,0,70,0,71,0,89,0,90,0,31,0,50,0,69,0,88,0,37,0,56,0,75,0,94,0,34,0,53,0,72,0,91,0,0,0,1,0,4,0,5,0,3,0,6,0,7,0,2,0,13,0,15,0,8,0,9,0,11,0,12,0,14,0,10,0,16,0,28,0,74,0,29,0,75,0,27,0,73,0,26,0,72,0,30,0,76,0,51,0,97,0,50,0,71,0,96,0,117,0,31,0,77,0,52,0,98,0,49,0,70,0,95,0,116,0,53,0,99,0,32,0,78,0,33,0,79,0,48,0,69,0,94,0,115,0,47,0,68,0,93,0,114,0,46,0,67,0,92,0,113,0,19,0,21,0,23,0,22,0,18,0,17,0,20,0,24,0,111,0,43,0,89,0,110,0,64,0,65,0,44,0,90,0,25,0,45,0,66,0,91,0,112,0,54,0,100,0,40,0,61,0,86,0,107,0,39,0,60,0,85,0,106,0,36,0,57,0,82,0,103,0,35,0,56,0,81,0,102,0,34,0,55,0,80,0,101,0,42,0,63,0,88,0,109,0,41,0,62,0,87,0,108,0,38,0,59,0,84,0,105,0,37,0,58,0,83,0,104,0,0,0,1,0,4,0,3,0,5,0,6,0,13,0,7,0,2,0,8,0,9,0,11,0,15,0,12,0,14,0,10,0,28,0,82,0,29,0,83,0,27,0,81,0,26,0,80,0,30,0,84,0,16,0,55,0,109,0,56,0,110,0,31,0,85,0,57,0,111,0,48,0,73,0,102,0,127,0,32,0,86,0,51,0,76,0,105,0,130,0,52,0,77,0,106,0,131,0,58,0,112,0,33,0,87,0,19,0,23,0,53,0,78,0,107,0,132,0,21,0,22,0,18,0,17,0,20,0,24,0,25,0,50,0,75,0,104,0,129,0,47,0,72,0,101,0,126,0,54,0,79,0,108,0,133,0,46,0,71,0,100,0,125,0,128,0,103,0,74,0,49,0,45,0,70,0,99,0,124,0,42,0,67,0,96,0,121,0,39,0,64,0,93,0,118,0,38,0,63,0,92,0,117,0,35,0,60,0,89,0,114,0,34,0,59,0,88,0,113,0,44,0,69,0,98,0,123,0,43,0,68,0,97,0,122,0,41,0,66,0,95,0,120,0,40,0,65,0,94,0,119,0,37,0,62,0,91,0,116,0,36,0,61,0,90,0,115,0,0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0,12,0,13,0,14,0,15,0,16,0,26,0,87,0,27,0,88,0,28,0,89,0,29,0,90,0,30,0,91,0,51,0,80,0,112,0,141,0,52,0,81,0,113,0,142,0,54,0,83,0,115,0,144,0,55,0,84,0,116,0,145,0,58,0,119,0,59,0,120,0,21,0,22,0,23,0,17,0,18,0,19,0,31,0,60,0,92,0,121,0,56,0,85,0,117,0,146,0,20,0,24,0,25,0,50,0,79,0,111,0,140,0,57,0,86,0,118,0,147,0,49,0,78,0,110,0,139,0,48,0,77,0,53,0,82,0,114,0,143,0,109,0,138,0,47,0,76,0,108,0,137,0,32,0,33,0,61,0,62,0,93,0,94,0,122,0,123,0,41,0,42,0,43,0,44,0,45,0,46,0,70,0,71,0,72,0,73,0,74,0,75,0,102,0,103,0,104,0,105,0,106,0,107,0,131,0,132,0,133,0,134,0,135,0,136,0,34,0,63,0,95,0,124,0,35,0,64,0,96,0,125,0,36,0,65,0,97,0,126,0,37,0,66,0,98,0,127,0,38,0,67,0,99,0,128,0,39,0,68,0,100,0,129,0,40,0,69,0,101,0,130,0,8,0,7,0,6,0,5,0,4,0,3,0,2,0,14,0,16,0,9,0,10,0,12,0,13,0,15,0,11,0,17,0,20,0,22,0,24,0,23,0,19,0,18,0,21,0,56,0,88,0,122,0,154,0,57,0,89,0,123,0,155,0,58,0,90,0,124,0,156,0,52,0,84,0,118,0,150,0,53,0,85,0,119,0,151,0,27,0,93,0,28,0,94,0,29,0,95,0,30,0,96,0,31,0,97,0,61,0,127,0,62,0,128,0,63,0,129,0,59,0,91,0,125,0,157,0,32,0,98,0,64,0,130,0,1,0,0,0,25,0,26,0,33,0,99,0,34,0,100,0,65,0,131,0,66,0,132,0,54,0,86,0,120,0,152,0,60,0,92,0,126,0,158,0,55,0,87,0,121,0,153,0,117,0,116,0,115,0,46,0,78,0,112,0,144,0,43,0,75,0,109,0,141,0,40,0,72,0,106,0,138,0,36,0,68,0,102,0,134,0,114,0,149,0,148,0,147,0,146,0,83,0,82,0,81,0,80,0,51,0,50,0,49,0,48,0,47,0,45,0,44,0,42,0,39,0,35,0,79,0,77,0,76,0,74,0,71,0,67,0,113,0,111,0,110,0,108,0,105,0,101,0,145,0,143,0,142,0,140,0,137,0,133,0,41,0,73,0,107,0,139,0,37,0,69,0,103,0,135,0,38,0,70,0,104,0,136,0,7,0,6,0,5,0,4,0,3,0,2,0,1,0,0,0,16,0,15,0,14,0,13,0,12,0,11,0,10,0,9,0,8,0,26,0,27,0,28,0,29,0,30,0,31,0,115,0,116,0,117,0,118,0,119,0,120,0,72,0,73,0,161,0,162,0,65,0,68,0,69,0,108,0,111,0,112,0,154,0,157,0,158,0,197,0,200,0,201,0,32,0,33,0,121,0,122,0,74,0,75,0,163,0,164,0,66,0,109,0,155,0,198,0,19,0,23,0,21,0,22,0,18,0,17,0,20,0,24,0,25,0,37,0,36,0,35,0,34,0,80,0,79,0,78,0,77,0,126,0,125,0,124,0,123,0,169,0,168,0,167,0,166,0,70,0,67,0,71,0,113,0,110,0,114,0,159,0,156,0,160,0,202,0,199,0,203,0,76,0,165,0,81,0,82,0,92,0,91,0,93,0,83,0,95,0,85,0,84,0,94,0,101,0,102,0,96,0,104,0,86,0,103,0,87,0,97,0,127,0,128,0,138,0,137,0,139,0,129,0,141,0,131,0,130,0,140,0,147,0,148,0,142,0,150,0,132,0,149,0,133,0,143,0,170,0,171,0,181,0,180,0,182,0,172,0,184,0,174,0,173,0,183,0,190,0,191,0,185,0,193,0,175,0,192,0,176,0,186,0,38,0,39,0,49,0,48,0,50,0,40,0,52,0,42,0,41,0,51,0,58,0,59,0,53,0,61,0,43,0,60,0,44,0,54,0,194,0,179,0,189,0,196,0,177,0,195,0,178,0,187,0,188,0,151,0,136,0,146,0,153,0,134,0,152,0,135,0,144,0,145,0,105,0,90,0,100,0,107,0,88,0,106,0,89,0,98,0,99,0,62,0,47,0,57,0,64,0,45,0,63,0,46,0,55,0,56,0,0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0,12,0,13,0,14,0,23,0,15,0,16,0,17,0,18,0,19,0,20,0,21,0,22,0,24,0,25,0,26,0,27,0,28,0,38,0,141,0,39,0,142,0,40,0,143,0,41,0,144,0,42,0,145,0,43,0,146,0,44,0,147,0,45,0,148,0,46,0,149,0,47,0,97,0,150,0,200,0,48,0,98,0,151,0,201,0,49,0,99,0,152,0,202,0,86,0,136,0,189,0,239,0,87,0,137,0,190,0,240,0,88,0,138,0,191,0,241,0,91,0,194,0,92,0,195,0,93,0,196,0,94,0,197,0,95,0,198,0,29,0,30,0,31,0,32,0,33,0,34,0,35,0,50,0,100,0,153,0,203,0,89,0,139,0,192,0,242,0,51,0,101,0,154,0,204,0,55,0,105,0,158,0,208,0,90,0,140,0,193,0,243,0,59,0,109,0,162,0,212,0,63,0,113,0,166,0,216,0,67,0,117,0,170,0,220,0,36,0,37,0,54,0,53,0,52,0,58,0,57,0,56,0,62,0,61,0,60,0,66,0,65,0,64,0,70,0,69,0,68,0,104,0,103,0,102,0,108,0,107,0,106,0,112,0,111,0,110,0,116,0,115,0,114,0,120,0,119,0,118,0,157,0,156,0,155,0,161,0,160,0,159,0,165,0,164,0,163,0,169,0,168,0,167,0,173,0,172,0,171,0,207,0,206,0,205,0,211,0,210,0,209,0,215,0,214,0,213,0,219,0,218,0,217,0,223,0,222,0,221,0,73,0,72,0,71,0,76,0,75,0,74,0,79,0,78,0,77,0,82,0,81,0,80,0,85,0,84,0,83,0,123,0,122,0,121,0,126,0,125,0,124,0,129,0,128,0,127,0,132,0,131,0,130,0,135,0,134,0,133,0,176,0,175,0,174,0,179,0,178,0,177,0,182,0,181,0,180,0,185,0,184,0,183,0,188,0,187,0,186,0,226,0,225,0,224,0,229,0,228,0,227,0,232,0,231,0,230,0,235,0,234,0,233,0,238,0,237,0,236,0,96,0,199,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,3,0,1,0,3,0,2,0,4,0,1,0,4,0,1,0,4,0,0,0,205,12,156,25,0,32,102,38,205,44,0,48,51,51,102,54,154,57,205,60,0,64,51,67,102,70,154,73,205,76,159,0,64,241,53,167,206,0,190,242,52,176,12,1,67,244,88,185,93,1,201,245,133,194,163,1,215,246,223,200,226,1,166,247,189,205,42,2,116,248,147,210,125,2,66,249,109,215,221,2,18,250,77,220,74,3,222,250,30,225,201,3,174,251,0,230,90,4,124,252,216,234,1,5,74,253,179,239,193,5,25,254,141,244,158,6,231,254,104,249,156,7,181,255,67,254,193,8,133,0,33,3,17,10,83,1,252,7,147,11,33,2,213,12,80,13,240,2,178,17,79,15,190,3,140,22,155,17,141,4,104,27,63,20,91,5,67,32,72,23,41,6,29,37,199,26,248,6,249,41,203,30,199,7,212,46,105,35,149,8,175,51,185,40,100,9,138,56,222,48,113,10,224,62,135,63,244,11,253,71,150,82,120,13,27,81,93,107,252,14,57,90,93,107,252,14,57,90,0,0,1,0,3,0,2,0,6,0,4,0,5,0,7,0,0,0,1,0,3,0,2,0,5,0,6,0,4,0,7,0,248,127,211,127,76,127,108,126,51,125,163,123,188,121,127,119,239,116,12,114,217,110,89,107,141,103,121,99,31,95,130,90,166,85,141,80,60,75,182,69,0,64,28,58,15,52,223,45,141,39,32,33,156,26,6,20,97,13,178,6,0,0,78,249,159,242,250,235,100,229,224,222,115,216,33,210,241,203,228,197,0,192,74,186,196,180,115,175,90,170,126,165,225,160,135,156,115,152,167,148,39,145,244,141,17,139,129,136,68,134,93,132,205,130,148,129,180,128,45,128,8,128,255,127,46,124,174,120,118,117,125,114,186,111,41,109,194,106,131,104,102,102,105,100,137,98,194,96,19,95,122,93,245,91,130,90,33,89,207,87,139,86,85,85,44,84,15,83,252,81,244,80,246,79,1,79,20,78,48,77,83,76,126,75,175,74,231,73,37,73,104,72,178,71,0,71,84,70,173,69,10,69,107,68,209,67,59,67,168,66,25,66,142,65,6,65,130,64,0,64,0,0,175,5,50,11,140,16,192,21,207,26,188,31,136,36,53,41,196,45,55,50,143,54,206,58,245,62,4,67,252,70,223,74,174,78,105,82,17,86,167,89,44,93,159,96,3,100,87,103,155,106,209,109,250,112,20,116,33,119,34,122,23,125,255,127,255,127,217,127,98,127,157,126,138,125,42,124,125,122,133,120,66,118,182,115,227,112,202,109,110,106,208,102,242,98,215,94,130,90,246,85,52,81,64,76,29,71,206,65,87,60,186,54,252,48,31,43,40,37,26,31,249,24,200,18,140,12,72,6,0,0,184,249,116,243,56,237,7,231,230,224,216,218,225,212,4,207,70,201,169,195,50,190,227,184,192,179,204,174,10,170,126,165,41,161,14,157,48,153,146,149,54,146,29,143,74,140,190,137,123,135,131,133,214,131,118,130,99,129,158,128,39,128,0,128,249,150,148,221,53,235,27,241,93,244,116,246,223,247,237,248,184,249,86,250,214,250,61,251,148,251,221,251,26,252,78,252,123,252,163,252,197,252,227,252,252,252,18,253,38,253,55,253,69,253,81,253,91,253,100,253,106,253,111,253,114,253,116,253,116,253,114,253,111,253,106,253,100,253,91,253,81,253,69,253,55,253,38,253,18,253,252,252,227,252,197,252,163,252,123,252,78,252,26,252,221,251,148,251,61,251,214,250,86,250,184,249,237,248,223,247,116,246,93,244,27,241,53,235,148,221,249,150,48,117,144,101,8,82,152,58,64,31,0,0,192,224,104,197,248,173,112,154,153,104,33,3,201,9,85,253,154,250,70,2,92,2,6,251,183,13,250,232,182,17,13,254,108,248,195,11,62,236,238,21,58,248,219,251,77,250,90,17,68,253,41,235,1,18,196,1,179,253,232,242,137,11,243,4,68,251,226,245,195,6,86,14,133,238,49,252,39,17,23,246,181,3,173,250,45,252,102,22,66,118,247,14,60,240,156,11,232,251,22,252,173,9,29,244,255,10,73,247,217,6,181,249,178,6,17,249,7,6,16,252,173,1,87,255,216,1,16,251,128,8,110,245,219,9,171,249,88,1,58,3,7,250,188,6,135,249,165,6,241,247,84,10,12,244,81,11,70,248,45,2,12,3,167,250,74,3,143,2,98,57,254,44,244,4,55,245,217,233,90,29,221,255,9,245,32,244,215,18,136,11,24,223,201,14,175,5,131,8,67,222,115,31,201,247,82,250,9,3,84,4,175,246,206,8,149,254,94,253,201,247,158,23,207,233,48,4,51,12,62,236,192,20,231,246,112,241,12,27,207,240,163,2,17,249,29,0,161,39,66,118,247,14,60,240,156,11,232,251,22,252,173,9,29,244,255,10,73,247,217,6,181,249,178,6,17,249,7,6,16,252,173,1,87,255,216,1,16,251,128,8,110,245,219,9,171,249,88,1,58,3,7,250,188,6,135,249,165,6,241,247,84,10,12,244,81,11,70,248,45,2,12,3,167,250,74,3,143,2,0,64,103,65,213,66,76,68,203,69,82,71,226,72,122,74,28,76,199,77,123,79,56,81,255,82,209,84,172,86,146,88,130,90,126,92,132,94,150,96,180,98,221,100,18,103,84,105,162,107,254,109,102,112,221,114,96,117,242,119,147,122,66,125,255,127,3,115,186,110,119,98,225,79,109,57,245,33,71,12,184,250,206,238,23,233,38,233,191,237,33,245,96,253,187,4,232,9,58,12,175,11,211,8,146,4,0,0,23,252,140,249,180,248,126,249,133,251,48,254,218,0,244,2,36,4,75,4,136,3,38,2,135,0,11,255,254,253,134,253,166,253,61,254,25,255,0,0,191,0,52,1,84,1,40,1,198,0,78,0,220,255,136,255,93,255,91,255,124,255,177,255,237,255,34,0,73,0,91,0,89,0,70,0,38,0,0,0,254,254,194,254,73,254,134,253,112,253,251,252,57,253,10,254,244,254,63,255,254,255,125,0,122,0,217,255,247,255,105,0,129,0,27,1,116,1,63,2,235,254,188,254,59,255,25,254,67,254,150,254,220,254,229,255,177,0,31,2,86,1,5,2,4,2,130,0,27,0,152,255,136,255,116,255,182,255,200,255,204,253,81,252,16,250,59,252,210,252,242,253,190,254,254,255,159,0,145,2,200,254,228,254,126,254,171,253,19,254,242,253,94,254,27,255,105,0,193,1,211,253,154,252,205,251,105,252,74,252,16,253,59,253,196,254,62,0,230,1,198,254,65,255,53,255,182,254,96,255,153,255,205,255,131,0,82,1,3,2,10,6,224,8,194,14,112,21,60,27,190,32,63,39,221,43,222,49,146,53,84,37,17,42,27,49,236,51,45,56,131,45,92,41,39,38,145,33,84,25,6,0,82,0,125,255,154,0,200,255,33,253,183,0,191,255,247,254,9,0,46,255,151,254,113,0,206,2,25,7,242,3,190,4,37,6,89,3,53,5,228,8,59,3,32,6,141,7,205,2,197,7,158,8,70,3,148,4,31,7,209,2,232,3,106,8,30,1,220,1,229,5,9,255,237,253,230,0,147,0,174,255,57,2,26,0,79,255,80,252,229,255,239,254,180,2,92,255,248,254,73,255,224,0,22,3,15,4,131,3,178,3,89,2,229,1,3,3,126,4,12,2,165,2,135,3,116,255,119,1,10,3,154,1,164,2,173,1,45,1,18,2,241,3,207,2,134,2,38,0,226,0,111,1,40,0,145,0,211,255,7,254,34,1,121,0,135,255,46,1,127,0,166,0,132,255,129,254,68,252,154,254,57,254,47,252,203,2,110,3,126,3,210,3,155,3,211,0,221,1,16,1,64,0,188,0,178,255,17,0,113,255,191,255,38,0,131,2,74,2,109,2,122,255,86,254,117,253,91,1,33,2,4,11,164,4,166,10,138,9,142,0,176,255,199,6,27,1,130,0,205,1,250,254,113,254,135,251,101,254,155,0,174,1,73,1,119,1,11,3,53,0,30,255,117,255,127,255,20,255,146,6,29,1,232,2,47,5,226,2,185,2,128,6,56,1,153,1,10,1,69,1,208,2,135,0,1,0,221,0,197,1,8,0,203,0,145,0,43,1,128,2,248,2,29,0,212,1,126,2,103,0,173,1,123,1,164,1,186,3,164,3,46,5,186,4,234,4,192,2,244,3,128,4,90,255,68,254,246,254,196,254,126,255,136,254,191,0,127,4,112,7,16,255,225,253,20,251,144,255,12,1,183,4,70,0,38,4,47,6,22,1,80,5,38,6,254,254,240,254,0,253,19,0,51,2,192,8,253,255,247,254,135,0,217,254,177,253,124,254,140,0,98,1,50,255,252,254,8,254,229,252,79,254,50,253,217,250,109,0,75,1,194,3,83,254,169,255,140,2,216,254,170,1,251,3,17,255,7,3,83,3,233,1,54,5,49,4,178,254,180,254,25,0,31,2,182,4,15,7,70,1,61,0,215,2,66,2,81,3,125,5,48,255,235,254,73,1,104,255,64,0,157,2,78,254,90,253,41,253,58,254,185,255,251,0,93,2,224,1,254,0,30,254,11,0,228,3,223,254,139,1,230,1,210,2,25,4,160,5,226,255,196,254,238,252,150,255,141,255,149,253,93,3,194,5,132,5,31,4,86,5,160,4,44,3,213,4,157,3,42,0,5,255,192,253,86,1,141,0,58,254,88,255,176,255,79,5,170,254,112,253,29,249,100,0,53,3,213,2,222,3,235,2,32,3,76,1,184,1,56,2,151,2,123,1,84,3,112,0,165,0,143,254,85,2,142,3,26,1,248,255,66,3,1,5,160,254,60,2,183,2,206,1,198,8,14,7,89,1,190,0,94,5,160,1,147,3,118,8,168,0,174,255,24,1,252,253,66,254,72,3,47,0,21,2,44,0,150,254,57,253,137,251,22,0,193,0,192,5,171,255,233,0,21,7,194,255,67,2,224,5,38,2,176,3,213,6,211,2,138,2,124,4,204,3,116,3,115,5,87,254,131,2,0,0,232,3,184,3,74,4,249,0,166,5,160,2,178,254,169,255,124,8,214,253,90,7,112,10,140,0,34,7,61,7,152,3,213,6,30,10,52,4,141,7,246,7,119,255,69,254,237,249,245,4,150,4,212,1,19,254,134,255,241,5,61,254,9,4,190,4,226,1,159,6,94,4,47,3,137,2,128,1,66,254,76,253,107,0,193,254,163,253,138,255,49,255,7,254,13,2,44,254,244,255,176,10,75,0,142,7,25,5,112,3,54,9,219,8,5,5,39,6,212,7,208,255,208,254,94,251,77,254,51,254,5,255,146,254,108,254,221,253,223,254,163,253,171,253,230,253,214,252,91,255,136,255,3,0,100,1,127,2,217,4,222,5,96,0,177,0,238,2,77,254,183,253,106,251,156,254,109,0,177,255,27,254,32,1,213,7,9,0,92,4,219,2,112,3,86,8,178,3,247,254,49,6,41,4,133,4,186,4,75,3,14,254,100,253,175,1,118,1,65,1,27,255,160,5,53,8,101,5,193,1,205,1,131,4,151,255,39,0,128,254,249,254,111,1,182,0,141,254,108,253,5,3,68,255,127,4,203,3,53,5,96,6,155,5,6,3,243,4,197,4,30,254,192,252,47,250,19,255,46,255,92,3,122,3,79,6,40,4,216,1,38,4,168,4,185,0,53,4,221,3,200,253,32,252,88,249,63,254,122,252,5,248,114,255,135,254,54,254,46,255,214,253,251,251,245,255,109,4,217,8,183,254,93,253,131,252,6,255,145,2,163,4,7,2,230,5,243,6,8,2,27,2,123,5,15,2,141,5,22,5,205,253,153,252,32,251,109,255,49,254,111,3,180,255,30,9,24,11,51,2,13,10,81,9,120,2,134,7,104,11,207,2,231,7,48,7,223,253,45,253,84,4,129,0,131,255,116,3,137,5,96,6,157,3,162,255,30,6,215,6,171,254,253,5,15,6,79,2,139,1,238,254,180,255,213,3,15,11,153,0,169,11,52,7,8,4,5,10,189,10,228,5,16,11,87,7,23,3,175,4,26,2,66,255,59,254,209,5,234,254,220,253,134,4,11,255,149,7,252,7,0,4,24,6,114,6,0,2,253,0,210,1,194,255,189,254,127,4,39,254,136,254,251,1,79,254,100,5,114,8,131,3,151,7,165,5,134,0,192,2,184,1,204,1,13,2,228,255,62,254,23,1,58,5,0,0,203,3,252,0,67,254,141,253,33,252,164,254,166,253,112,250,142,1,200,2,120,6,149,255,58,1,78,255,93,0,178,8,190,8,6,2,81,3,144,2,50,254,57,253,65,254,174,0,222,255,167,4,137,255,42,0,237,3,140,254,18,1,246,2,12,4,48,9,46,7,163,2,188,6,218,5,174,1,6,5,85,8,127,255,73,254,0,0,139,254,32,3,96,8,6,0,51,6,174,9,222,1,84,2,80,8,84,254,32,253,225,5,129,1,178,0,212,3,139,0,193,1,201,4,242,253,182,252,42,252,145,0,18,6,218,4,111,2,168,5,144,2,93,1,248,3,202,5,31,0,232,254,159,1,196,254,212,2,105,6,104,1,34,4,44,2,76,254,154,254,177,4,157,254,99,4,147,7,145,1,48,6,200,8,241,253,12,252,99,1,233,0,238,0,185,8,218,253,127,252,129,253,147,254,11,254,165,7,133,1,68,7,85,6,162,0,108,4,240,4,19,255,150,4,110,5,128,253,101,254,116,0,28,255,158,6,250,8,103,6,138,8,219,8,50,2,249,4,98,10,67,1,82,1,238,6,66,2,83,4,84,3,22,0,82,2,166,3,113,255,206,2,190,1,50,0,71,0,247,255,174,254,70,253,129,250,102,0,118,255,204,252,202,254,43,254,133,251,158,1,67,0,245,254,36,4,46,3,161,5,12,6,80,5,248,4,218,6,103,7,125,6,227,7,85,8,28,7,16,7,14,9,53,7,132,2,163,255,198,1,90,3,73,1,120,255,233,1,254,254,128,255,58,255,23,253,215,255,204,255,247,254,39,252,90,1,137,0,223,1,51,249,20,253,84,253,117,251,67,249,145,254,129,252,135,251,240,252,24,254,78,252,56,252,171,255,122,254,43,253,215,0,172,254,85,255,252,3,148,3,177,7,52,2,179,0,234,2,150,2,209,3,198,6,119,3,110,2,146,3,171,3,88,3,141,4,53,1,176,2,35,3,149,3,161,0,58,2,118,0,236,255,229,254,208,252,214,255,204,0,52,251,187,254,50,254,61,252,54,255,113,255,36,252,28,254,151,254,66,253,46,252,35,254,210,254,234,252,92,251,156,255,238,252,192,251,226,251,77,252,108,249,54,255,181,252,242,252,241,251,158,250,123,252,144,253,146,255,171,255,100,1,213,0,246,255,19,254,108,1,6,3,169,1,54,3,223,1,173,255,45,2,8,2,32,252,232,249,196,253,165,253,27,253,230,255,10,254,130,253,121,252,209,0,50,1,147,0,196,254,175,253,172,253,171,255,45,255,31,255,106,252,239,253,117,0,233,0,73,254,30,253,77,4,239,2,121,2,177,5,180,6,231,5,229,6,177,5,142,3,98,4,132,4,81,3,74,5,100,3,214,1,153,252,130,251,252,248,153,252,163,252,32,252,138,255,155,0,212,0,229,251,175,252,162,253,163,251,199,248,66,245,5,252,109,250,179,248,114,1,72,255,98,254,191,3,237,1,104,0,190,3,15,4,31,2,154,0,141,2,201,0,225,4,251,1,150,0,151,2,247,1,230,0,111,2,9,3,163,2,147,2,88,0,146,255,75,3,244,0,224,0,126,1,29,2,46,1,212,2,177,1,154,2,142,4,222,2,85,1,118,255,20,0,115,254,97,251,88,254,210,255,191,254,160,254,132,255,53,5,253,3,56,4,6,1,110,1,211,2,154,3,27,1,217,253,31,0,132,253,157,253,79,253,71,253,97,254,72,252,245,252,55,255,207,250,170,253,153,254,71,252,251,250,166,0,237,1,49,1,221,0,78,3,191,2],"i8",S,f.GLOBAL_BASE),A([98,2,72,3,168,3,6,3,45,253,212,250,19,251,155,254,255,251,148,250,184,251,160,250,147,254,120,250,167,248,160,253,250,248,65,249,94,253,223,253,107,251,65,253,166,2,18,3,148,0,133,255,184,2,8,5,132,2,94,1,246,255,158,1,102,2,15,0,137,0,88,1,45,255,210,252,24,250,205,252,121,254,94,252,180,253,47,0,177,253,126,252,115,252,183,251,93,255,8,251,113,251,99,255,72,250,11,250,123,254,6,251,92,251,144,253,159,2,213,0,198,1,124,0,238,254,243,253,39,253,16,254,104,255,192,250,122,0,135,0,167,244,179,253,118,254,64,249,185,1,206,255,196,5,136,3,19,3,60,1,236,0,72,254,165,254,217,0,157,1,113,252,107,252,121,0,57,254,92,252,202,0,164,255,47,254,137,254,232,1,134,1,218,1,108,3,217,2,60,1,233,248,224,250,99,253,87,0,194,3,176,1,51,2,7,255,222,251,250,0,29,1,81,4,117,4,171,1,184,2,242,251,128,249,210,249,76,252,90,1,160,0,203,254,240,254,166,252,158,2,112,2,226,4,80,252,104,254,102,253,162,253,192,254,128,254,20,254,230,0,65,0,78,1,206,255,240,255,240,255,78,253,139,250,255,6,180,6,119,5,174,9,15,8,124,5,221,4,191,5,146,5,130,254,243,251,254,255,173,0,114,254,121,4,211,5,232,7,9,7,4,3,250,4,226,5,149,5,199,6,209,7,55,4,194,4,249,4,126,251,197,248,207,250,216,252,147,251,184,251,61,254,247,251,70,249,65,0,66,2,172,255,60,250,126,246,14,249,3,253,170,250,18,254,38,255,174,253,93,252,81,1,20,255,50,2,53,9,102,10,146,7,209,5,252,4,106,3,189,0,102,1,118,1,17,250,23,247,214,246,57,252,9,251,209,247,140,253,92,251,250,249,125,6,19,4,34,2,53,2,37,4,220,2,192,255,188,252,78,254,76,254,160,255,203,0,54,4,192,4,100,6,139,3,254,5,218,3,70,1,197,3,77,3,142,0,172,255,197,0,214,1,75,9,34,6,109,4,214,1,190,4,139,1,96,5,176,4,101,4,18,4,92,1,225,253,46,251,136,254,41,255,75,255,225,1,101,248,171,249,46,255,18,253,95,251,134,1,29,0,113,254,27,0,52,3,212,4,243,2,183,2,211,3,153,1,82,255,173,4,11,4,144,3,76,5,54,7,32,252,99,250,228,1,51,250,92,249,208,0,100,254,180,4,152,5,241,254,128,3,120,4,96,254,241,6,154,5,96,249,172,245,52,255,3,249,241,249,9,4,136,249,233,249,23,5,27,251,203,249,57,4,99,253,185,251,190,255,86,253,64,1,167,254,147,2,49,1,45,4,244,250,220,252,237,255,157,249,245,250,29,0,109,249,15,254,71,0,225,254,249,255,156,255,18,254,62,252,19,255,84,3,89,7,204,6,63,251,149,250,227,0,108,253,46,1,117,1,96,0,63,4,233,4,206,251,123,249,160,0,229,1,28,8,6,7,90,252,36,255,40,2,172,253,156,253,237,0,80,1,184,6,111,3,131,2,117,2,178,1,243,4,10,2,97,6,15,0,244,0,71,254,195,5,205,2,184,0,27,7,54,6,173,6,220,3,5,1,169,3,45,8,41,9,240,5,91,8,66,7,70,6,191,253,189,253,77,251,68,252,135,0,24,254,48,254,51,0,174,254,139,253,164,254,45,253,122,4,25,8,162,5,144,8,186,5,143,3,92,250,220,249,26,247,120,5,198,2,17,5,55,5,121,2,160,3,154,5,146,8,34,10,118,9,156,8,89,7,214,3,194,8,62,7,124,1,24,3,121,4,193,255,229,253,158,1,4,255,60,252,198,254,19,251,85,253,244,252,193,252,242,253,19,252,126,249,145,251,88,254,181,249,60,254,213,254,244,4,24,4,130,2,123,4,85,3,88,3,93,253,176,254,139,0,220,8,63,5,138,5,29,0,0,3,29,3,56,251,167,1,52,2,218,250,198,251,245,0,234,250,212,252,61,2,238,250,175,249,134,2,56,252,66,3,211,2,225,3,116,6,235,7,65,255,207,252,176,1,150,2,60,0,198,0,114,2,229,3,50,5,112,6,171,7,9,5,195,249,163,255,211,255,192,251,37,0,172,255,117,6,47,10,33,9,41,4,248,7,73,9,115,4,22,9,70,8,91,3,101,1,230,5,152,2,203,4,75,4,223,1,80,5,144,3,105,7,218,6,227,7,144,4,117,7,248,6,143,1,34,0,0,1,175,253,208,254,227,251,35,2,158,6,127,5,135,2,157,255,171,254,212,5,111,6,166,4,38,0,124,253,44,255,139,1,78,3,222,0,64,253,3,253,52,253,44,253,84,248,12,245,106,255,35,1,174,255,209,4,179,5,239,3,116,255,101,255,153,0,183,1,41,1,32,6,7,250,102,254,132,253,0,6,199,1,19,255,208,250,117,255,252,254,19,2,42,2,100,3,13,1,240,4,94,2,23,255,115,3,207,1,230,2,88,2,136,255,183,255,165,1,212,0,73,254,198,255,36,3,250,250,39,251,216,2,38,1,22,254,50,0,177,253,119,252,26,251,42,0,81,253,147,0,231,255,17,1,84,2,201,254,189,4,89,2,14,253,81,3,72,2,173,1,95,2,75,2,166,253,90,255,205,1,228,252,201,252,9,3,100,5,142,3,219,6,119,0,137,5,204,3,37,255,144,252,196,249,231,251,14,252,182,1,55,253,157,250,78,0,0,0,65,254,101,251,144,251,217,250,219,249,200,8,231,6,29,5,178,3,47,6,152,5,126,4,226,1,180,1,43,254,172,251,106,2,65,254,58,252,64,4,28,251,21,250,142,255,176,251,40,248,189,253,210,0,101,2,241,1,73,248,99,250,130,2,11,251,168,252,243,3,146,249,95,251,39,4,237,249,96,253,180,4,100,249,166,251,111,2,45,252,210,250,3,251,27,2,109,255,126,3,182,250,127,252,78,254,120,3,219,1,172,1,153,0,128,254,82,1,44,250,1,254,103,1,50,252,165,251,42,254,105,0,218,253,165,2,87,252,135,251,109,3,124,1,252,254,210,0,149,6,156,3,232,4,239,6,166,4,71,4,139,5,119,2,21,2,115,2,43,1,165,254,101,254,234,253,135,2,118,253,29,0,173,253,134,254,169,250,27,6,122,5,97,4,185,5,65,4,130,5,136,2,208,247,190,251,250,255,55,1,62,255,155,252,129,253,193,252,160,1,118,251,56,251,69,5,33,251,83,252,21,7,111,247,61,248,197,1,149,253,169,250,68,252,186,249,76,248,29,250,105,251,223,251,176,251,135,254,89,2,201,0,84,7,57,3,118,1,82,254,213,250,29,0,139,250,31,251,205,250,17,252,32,250,192,3,135,250,39,248,197,0,157,250,99,248,20,255,203,251,123,0,166,1,103,2,245,4,34,2,206,254,246,5,136,3,170,4,252,6,153,4,142,253,140,252,10,250,199,0,254,2,224,5,215,251,94,3,197,0,246,251,19,249,137,252,224,252,145,0,87,2,146,251,249,253,114,2,75,251,122,248,244,1,114,252,239,251,141,250,60,250,225,249,55,252,245,253,74,3,34,0,2,7,134,2,94,3,73,251,160,248,22,252,178,255,247,255,96,253,20,4,247,2,80,0,168,253,115,4,251,3,57,0,208,7,142,5,191,252,134,5,97,4,78,251,94,6,236,4,51,254,140,5,220,4,1,6,207,3,253,0,229,254,68,1,153,254,87,2,61,255,106,0,76,2,62,0,181,253,11,253,133,2,205,0,51,0,177,4,246,2,71,251,161,2,122,254,144,253,45,6,173,3,105,255,255,3,223,2,4,11,21,5,178,2,210,254,12,2,157,255,124,252,204,249,91,251,60,4,251,0,238,0,222,7,0,7,242,3,221,4,97,6,205,6,53,251,252,249,72,251,147,253,200,1,147,255,40,0,191,255,20,3,219,252,69,253,186,250,185,253,136,3,64,3,223,252,20,2,82,2,180,7,128,5,71,5,103,251,168,248,190,247,251,252,56,2,180,3,9,252,55,4,236,4,169,251,226,1,126,255,242,6,20,4,12,3,45,250,245,0,144,3,196,254,139,251,107,252,232,253,94,250,214,246,239,252,246,249,60,248,45,248,1,1,141,3,199,248,135,253,71,251,254,249,130,248,226,251,70,6,191,8,40,6,201,253,36,250,248,249,1,251,195,0,89,5,207,252,37,1,195,4,243,253,118,2,173,4,94,249,135,246,208,248,209,254,219,2,235,2,111,251,5,255,13,1,74,252,181,255,148,6,98,251,59,254,237,3,193,249,73,2,122,1,229,247,197,253,85,254,239,253,121,251,109,251,229,254,51,255,204,253,228,252,222,4,205,2,229,8,159,3,27,2,58,254,47,2,184,1,51,253,180,5,79,6,250,251,28,4,74,6,111,251,118,255,79,3,226,0,39,0,156,253,29,251,150,255,39,253,117,253,200,3,22,5,54,253,132,253,191,6,97,1,45,4,154,1,226,252,100,255,75,4,194,253,150,3,190,1,226,250,244,3,210,1,128,5,55,6,253,2,149,5,100,5,221,6,157,7,164,7,74,9,42,6,255,7,100,8,148,3,98,0,249,255,101,7,138,5,93,8,92,1,125,5,43,6,152,0,110,4,9,7,245,254,154,0,115,5,114,251,213,1,30,4,138,251,107,254,207,251,195,250,40,247,211,249,148,254,101,3,170,6,118,251,37,2,14,6,55,251,116,248,126,249,51,250,71,248,249,247,65,249,118,252,158,255,151,248,233,0,212,5,124,3,108,0,181,254,64,249,110,251,92,249,220,251,188,7,254,6,210,251,51,249,139,248,245,255,3,6,37,5,192,249,94,0,241,1,165,1,187,1,59,255,214,249,163,254,30,252,169,253,229,253,116,4,59,252,117,250,127,255,195,250,175,0,65,254,137,254,31,5,7,8,141,254,118,253,205,254,207,251,93,2,109,1,247,247,143,255,174,1,140,2,146,3,199,3,12,252,206,249,237,246,225,5,224,4,47,2,6,1,26,254,111,254,65,249,62,5,10,6,50,0,56,0,176,1,182,254,119,0,164,253,19,250,200,251,214,252,178,3,103,4,31,4,136,250,89,249,80,249,10,251,64,253,219,250,39,3,29,7,119,4,200,10,70,6,123,8,96,4,153,1,106,255,109,255,148,1,191,3,135,9,119,7,141,8,118,252,115,255,158,252,120,252,114,255,54,254,211,253,60,253,113,249,194,252,105,250,209,249,206,248,190,250,194,251,188,249,240,254,147,3,84,251,4,3,32,4,130,253,46,251,151,248,12,254,175,255,202,252,247,250,179,249,33,253,139,255,17,3,168,0,190,251,109,4,154,3,184,251,22,253,104,5,31,1,221,253,217,251,160,250,103,247,76,251,128,247,222,249,35,249,25,250,63,247,253,252,55,249,75,4,62,3,204,249,212,2,219,4,250,249,181,2,37,3,102,249,16,255,129,6,92,249,252,255,100,253,101,8,48,3,18,4,206,252,207,248,22,0,4,253,5,254,193,1,129,251,151,253,33,1,181,252,196,249,16,255,242,1,22,255,111,253,16,253,224,1,142,6,193,254,31,254,193,0,213,252,171,0,137,255,176,247,54,255,176,252,181,6,116,4,164,6,67,0,239,255,66,0,244,255,102,249,187,253,152,255,240,254,204,251,94,251,203,248,136,254,140,251,98,252,92,254,198,255,253,254,112,253,146,251,215,253,252,6,203,4,199,1,129,0,206,1,185,1,16,255,240,253,72,3,2,2,130,0,181,255,90,4,111,2,153,0,216,0,44,4,52,2,250,255,236,254,95,4,215,2,190,0,188,255,192,2,50,1,119,0,248,254,73,1,61,0,156,255,156,0,108,1,123,0,183,0,48,255,85,255,133,255,220,0,191,255,206,254,194,255,146,1,17,0,108,253,86,252,246,254,0,0,129,1,235,0,20,1,29,1,64,1,12,1,176,254,56,255,44,253,17,0,172,255,125,1,224,253,173,1,238,1,7,2,139,255,32,1,48,1,73,1,131,2,157,0,189,2,252,1,176,4,113,2,28,3,96,2,230,3,165,1,236,1,120,2,180,4,12,3,190,1,132,0,233,4,76,3,35,2,193,1,61,3,146,2,29,2,214,1,108,4,234,4,150,3,127,2,35,2,51,0,167,1,23,1,9,0,136,1,83,0,94,0,30,2,31,2,229,0,109,255,58,255,129,0,194,0,71,255,161,252,215,250,210,254,30,0,171,253,139,253,237,255,114,0,124,252,199,251,210,1,97,1,53,250,219,249,15,0,113,255,84,249,245,247,17,253,196,0,172,248,237,247,126,253,254,254,225,246,66,250,62,254,204,253,184,253,70,255,152,252,98,254,243,248,36,252,155,251,226,250,42,253,151,251,28,0,169,0,241,251,160,252,50,253,10,255,228,1,36,0,23,255,207,255,9,1,67,0,33,1,211,1,178,0,31,2,42,3,28,2,84,0,26,1,160,2,191,2,49,252,247,252,129,0,31,1,86,252,29,255,187,3,83,2,175,249,223,254,68,3,137,2,201,248,41,255,82,4,206,2,14,248,195,251,138,2,184,1,203,247,239,253,139,3,63,2,37,248,176,254,158,2,204,0,171,246,76,253,104,1,137,0,148,247,100,247,247,255,24,1,246,254,119,0,39,0,193,0,78,0,197,255,136,255,226,0,49,252,166,252,243,252,185,251,149,253,99,254,61,254,182,252,64,251,215,250,211,252,141,252,160,250,177,249,118,254,84,254,31,253,167,251,219,253,234,252,144,252,49,252,57,252,126,253,39,252,138,252,7,251,175,250,39,254,220,252,135,250,129,250,160,0,247,254,105,252,237,254,8,255,6,255,50,253,132,254,97,0,153,255,137,254,27,255,97,254,63,255,121,255,213,253,116,2,105,1,119,0,216,0,67,2,108,1,135,1,209,0,122,2,10,2,102,255,108,255,14,2,133,1,170,0,33,0,105,0,11,1,64,0,124,1,33,250,24,252,226,255,143,254,210,251,58,0,135,2,223,0,16,250,221,254,109,2,51,1,5,250,156,0,250,2,148,1,19,248,141,0,222,2,243,1,199,248,118,253,50,1,0,2,69,255,152,255,197,255,182,1,134,0,26,255,156,0,70,255,195,255,252,254,240,255,10,0,199,253,253,255,91,254,215,254,67,249,247,253,166,254,178,0,174,250,197,255,212,255,157,0,158,247,51,254,42,254,163,254,134,247,255,255,143,254,135,255,213,249,139,254,124,252,9,252,163,251,177,253,155,253,240,252,207,253,122,0,181,255,63,254,252,255,85,255,133,255,140,254,192,0,168,0,180,255,124,255,252,0,149,255,84,1,210,0,136,1,253,1,16,1,181,0,147,255,145,0,218,0,119,0,96,254,249,254,229,1,9,1,75,255,248,255,226,254,226,0,12,255,38,255,69,0,222,254,98,255,191,0,255,255,192,255,176,253,166,255,213,0,160,255,255,0,179,1,178,0,176,255,143,254,238,255,223,255,176,255,214,255,159,1,140,0,34,255,119,4,139,2,137,2,73,1,255,2,44,2,249,0,235,0,180,3,157,1,186,1,23,1,141,0,83,1,100,1,45,2,42,254,86,255,99,0,237,0,199,253,224,252,96,1,53,2,26,1,217,1,214,1,76,1,57,255,78,253,252,250,107,252,63,255,86,254,224,252,158,251,230,255,141,254,22,254,63,255,125,2,83,2,7,2,74,1,152,1,141,255,79,0,12,0,221,1,87,0,153,255,136,254,102,253,165,254,235,254,221,254,2,254,31,254,169,0,41,1,195,252,30,253,51,255,85,255,192,254,228,253,72,1,27,1,165,252,66,252,186,1,254,255,44,2,174,2,130,0,56,0,103,5,244,3,243,2,171,1,100,2,229,2,116,2,41,2,173,254,228,252,134,0,21,1,135,253,195,251,254,255,10,255,144,252,245,251,185,249,216,251,30,252,38,254,142,251,24,254,98,254,229,252,73,0,50,255,248,255,117,255,183,1,204,0,80,255,190,253,23,0,131,0,243,254,11,253,65,255,245,0,147,255,174,254,112,0,60,1,120,0,106,254,138,255,99,2,76,255,70,255,123,253,115,0,83,255,34,0,250,253,23,254,105,255,61,0,185,253,180,252,220,0,118,255,87,253,4,252,135,1,239,255,170,253,191,254,157,0,217,254,129,0,155,0,98,252,149,252,37,252,29,1,241,0,173,255,131,255,131,255,108,2,85,2,176,1,92,0,137,1,78,0,153,1,61,0,119,254,29,253,99,254,20,253,83,0,54,0,105,1,27,0,196,251,130,0,175,254,74,253,227,249,41,1,62,1,237,255,175,248,36,0,51,0,195,254,237,246,10,255,231,0,172,255,254,246,241,252,40,0,77,255,71,247,94,252,38,254,50,254,14,253,170,255,224,254,142,253,149,246,57,254,193,255,171,0,181,251,186,251,230,255,113,255,87,251,57,254,106,254,131,254,163,253,46,255,160,255,205,255,188,253,36,254,236,254,241,255,85,251,134,253,77,251,143,252,134,254,35,255,99,253,72,252,82,2,178,0,109,254,92,253,251,2,71,1,89,2,34,1,172,0,44,1,203,0,157,0,200,255,176,254,100,1,24,0,28,255,216,254,253,254,227,255,70,255,7,1,160,1,14,0,159,254,117,1,244,255,40,255,1,1,96,0,174,0,57,0,10,250,152,253,70,252,13,254,15,254,104,255,179,254,125,0,105,0,200,0,179,0,159,255,181,254,32,255,253,2,185,2,248,2,0,1,45,1,59,0,199,1,171,255,204,0,32,1,254,253,240,0,251,0,147,255,0,1,161,1,222,255,99,254,101,0,174,1,128,1,156,0,225,255,246,255,206,0,170,1,77,2,145,0,143,0,71,0,40,3,138,3,77,1,93,1,218,3,170,3,77,2,75,1,20,5,56,3,187,0,253,1,38,4,141,2,123,1,210,1,182,5,169,3,145,1,18,1,19,3,93,3,9,1,2,0,97,2,41,2,28,0,49,1,158,3,84,1,106,0,130,1,241,0,245,254,109,255,225,0,78,255,234,253,91,1,246,1,125,253,131,254,141,1,30,0,117,253,35,253,77,254,142,1,105,254,42,253,28,254,8,255,235,252,110,252,74,254,36,254,14,254,122,254,75,0,217,254,60,252,178,253,162,253,150,0,135,255,207,255,101,255,178,255,167,3,38,2,133,1,38,0,191,254,127,0,168,1,59,1,227,254,143,255,27,1,3,1,146,2,203,0,66,1,230,1,135,3,249,1,236,2,161,1,99,2,167,1,43,2,0,2,239,0,173,255,190,253,237,255,173,254,37,253,93,1,13,0,90,252,137,250,142,255,152,254,107,0,180,2,182,0,90,0,37,251,254,249,241,249,43,253,200,253,121,252,173,250,243,253,251,253,171,252,163,252,20,252,88,255,78,253,189,252,63,0,119,255,212,253,221,253,144,0,226,254,207,252,229,1,63,1,109,255,104,254,14,2,246,0,165,254,78,254,41,1,228,255,222,254,41,254,170,251,251,250,52,254,153,254,36,252,230,252,67,5,19,5,178,2,11,2,192,4,44,4,70,4,245,2,57,3,116,4,240,2,238,1,228,4,85,5,171,4,130,3,9,2,29,4,20,2,176,1,178,254,40,255,199,254,249,254,96,255,52,0,40,254,101,255,127,0,136,0,132,254,44,0,83,3,154,1,94,255,23,254,123,0,1,255,228,252,101,253,66,4,149,3,21,3,237,1,117,5,173,4,46,2,202,0,205,255,138,255,170,254,67,253,83,0,108,0,214,255,71,254,61,0,95,0,31,1,0,1,229,255,89,0,12,2,19,2,95,1,227,0,80,2,33,2,185,2,155,0,92,255,51,1,126,2,18,1,23,254,206,255,242,2,240,0,90,255,132,255,140,255,189,253,68,251,193,255,190,0,217,254,240,251,240,250,147,0,136,254,79,255,143,255,73,3,217,4,27,4,156,2,2,0,37,1,39,2,48,1,184,251,71,252,8,255,120,1,18,253,59,252,87,0,4,2,237,254,252,253,177,2,135,1,133,254,125,253,108,3,82,2,122,254,11,252,123,253,61,2,149,255,200,253,79,253,198,252,255,251,229,255,184,254,53,255,93,3,237,2,36,2,233,0,132,249,237,251,195,1,108,0,108,253,148,253,174,1,236,0,21,0,116,254,122,251,137,253,92,5,18,5,199,3,65,2,101,4,101,4,77,2,198,1,189,254,159,252,45,254,153,0,44,254,69,253,220,252,3,254,120,254,50,253,52,255,221,255,165,253,187,251,201,253,94,255,7,254,20,252,154,255,94,1,219,0,224,0,167,1,252,0,139,1,79,2,96,2,107,1,22,253,160,255,117,1,172,0,171,0,39,1,202,2,83,1,233,0,77,0,107,0,21,1,157,0,153,0,13,254,156,254,11,6,49,4,64,2,238,1,220,254,173,254,8,254,176,253,121,252,184,255,149,253,31,254,198,249,163,251,201,253,2,255,231,252,5,254,204,253,221,254,20,254,236,253,246,1,48,2,130,254,171,1,88,2,230,0,29,255,221,1,251,0,75,0,29,1,74,3,45,3,220,1,226,250,203,250,186,0,121,1,181,253,107,252,131,2,125,1,94,251,215,253,155,1,82,0,153,251,204,252,82,255,228,253,164,253,119,0,31,2,205,0,132,254,145,2,141,3,55,2,112,0,214,254,138,254,114,0,167,252,5,255,56,0,159,0,145,1,89,1,222,255,116,255,145,255,161,253,41,0,102,2,99,1,142,255,179,255,218,1,66,2,56,0,170,5,156,3,74,4,140,5,229,2,144,1,246,0,22,0,76,2,57,1,135,255,71,1,63,3,216,1,142,251,160,253,88,3,40,2,39,251,208,251,126,2,88,2,154,254,254,0,179,254,209,254,122,253,227,2,102,1,74,0,202,4,135,6,197,4,81,3,193,8,88,6,215,3,124,2,49,7,197,5,237,2,128,1,94,1,7,1,87,0,128,0,146,248,83,252,112,255,192,255,58,249,1,255,32,1,225,255,172,245,42,251,110,1,235,0,149,249,188,251,192,250,208,254,227,253,205,251,164,251,123,0,102,251,4,255,208,252,76,255,8,252,21,2,53,2,233,0,25,254,82,254,68,255,78,1,99,3,212,4,22,2,171,0,202,249,185,249,123,2,118,2,108,247,54,1,156,3,156,1,202,246,184,254,188,3,17,2,177,245,135,254,118,2,22,1,214,245,61,1,31,3,43,1,154,246,133,0,84,1,31,0,148,247,68,250,131,0,125,0,96,251,22,254,117,255,46,0,24,253,191,1,123,3,52,2,67,0,61,254,134,2,92,2,215,253,83,254,148,252,140,1,162,0,190,255,25,5,147,3,223,1,67,2,64,4,26,3,194,1,22,1,54,2,68,1,223,251,102,255,148,0,79,255,15,246,168,0,46,4,80,2,209,246,214,255,51,3,89,1,216,246,61,253,209,2,250,0,129,247,39,250,203,254,122,0,178,255,183,255,120,0,173,0,252,255,6,1,249,254,251,254,81,254,192,255,107,254,36,253,207,245,116,0,173,255,63,255,11,250,80,252,35,254,43,253,4,254,51,1,170,0,172,0,64,3,161,1,64,3,174,2,31,255,177,0,126,3,50,3,30,254,123,254,255,4,15,4,129,254,201,0,162,254,40,0,218,2,123,2,226,0,14,2,247,1,206,1,82,1,142,1,23,2,202,2,40,0,230,254,202,5,191,5,61,4,219,2,25,6,48,4,141,3,181,2,139,5,2,5,121,3,111,3,129,4,216,2,162,4,72,3,30,255,106,4,181,3,177,2,18,254,38,252,236,249,128,255,200,253,47,253,55,253,230,255,61,1,12,2,70,0,135,0,107,254,159,252,26,249,116,253,82,255,223,252,117,3,5,3,103,255,165,255,75,4,239,2,6,254,131,251,85,3,134,2,241,0,14,3,7,2,27,2,61,7,164,6,77,4,172,2,31,251,50,250,48,254,188,0,131,252,127,250,224,250,171,254,121,255,182,1,81,255,18,0,87,4,208,3,63,1,208,0,106,250,24,249,83,0,202,1,238,253,24,252,51,1,129,0,184,252,241,255,227,255,156,254,113,252,100,252,133,251,14,255,137,255,240,253,127,0,123,255,7,253,3,253,190,0,173,255,197,254,127,3,10,2,231,0,34,255,102,0,193,255,84,254,60,1,187,2,123,1,70,0,25,0,204,2,58,1,148,255,251,1,106,3,54,2,238,0,108,0,173,3,7,2,195,0,169,1,196,255,85,254,1,1,139,0,153,255,138,253,190,1,78,1,114,1,156,1,48,0,84,255,78,253,229,254,45,2,187,0,226,254,158,0,227,1,140,0,14,1,168,254,137,253,156,3,67,2,140,255,132,0,142,0,210,1,188,255,192,255,230,0,111,255,210,254,226,253,221,252,112,252,250,3,225,2,251,252,247,3,118,2,41,1,220,245,95,0,189,1,80,1,182,247,235,1,254,1,191,0,27,251,161,0,254,255,188,254,86,250,135,253,56,253,151,255,182,252,2,255,101,254,100,0,128,253,222,254,242,3,251,2,118,253,57,1,145,4,218,2,140,0,249,1,6,4,254,2,4,3,31,1,43,4,55,3,239,1,237,2,49,1,67,1,92,255,206,1,78,0,143,1,170,254,150,252,69,0,85,2,240,255,108,2,109,2,81,1,118,255,68,254,247,254,218,0,84,0,62,254,185,3,154,2,34,255,221,252,29,2,92,2,103,252,160,250,244,0,116,0,183,252,45,253,118,2,76,2,140,0,151,2,38,1,112,1,167,3,22,4,113,3,247,2,210,6,184,5,148,3,116,2,180,1,195,3,25,1,1,0,137,255,74,0,30,2,213,0,1,0,201,253,45,1,241,0,4,1,179,1,222,0,140,1,168,3,189,3,84,4,191,2,254,1,250,1,40,3,222,1,89,2,182,2,192,3,108,2,204,3,229,2,212,3,88,2,66,3,205,2,255,2,172,2,131,2,204,3,167,3,126,2,245,1,149,2,208,2,83,3,151,255,136,253,209,254,139,255,83,254,130,0,21,3,186,1,246,253,68,255,192,2,117,1,9,253,42,0,46,3,11,2,237,253,143,251,117,1,66,2,86,253,77,251,57,254,29,1,117,251,215,249,182,251,44,0,81,0,174,255,200,2,107,1,221,1,246,0,186,3,110,2,68,6,86,6,253,4,123,3,129,5,91,3,156,3,124,3,6,3,17,4,179,3,118,4,40,0,222,253,181,255,32,1,152,253,150,255,71,253,230,255,87,255,96,255,133,252,29,253,233,254,128,254,251,251,162,254,245,6,28,5,22,4,48,3,44,6,253,5,192,5,154,4,225,5,52,4,192,4,131,3,122,3,136,3,52,2,142,2,152,3,180,2,253,3,88,3,19,254,132,0,177,0,249,1,71,0,195,0,228,255,97,0,200,1,95,1,92,255,88,0,183,1,22,1,216,255,94,1,115,5,181,3,234,0,161,255,219,252,40,254,38,0,93,255,111,1,158,255,233,1,11,2,1,4,154,4,188,4,138,3,63,1,34,5,46,3,205,1,133,255,225,253,220,252,191,1,20,253,188,254,127,252,153,251,31,253,11,254,235,252,55,253,203,2,9,3,215,4,154,3,157,7,147,7,88,5,97,3,218,2,112,3,246,2,132,1,153,252,198,1,17,0,5,255,131,254,214,252,209,249,239,0,247,253,58,252,232,252,3,1,134,252,178,250,254,252,183,255,166,0,93,1,44,255,67,1,184,252,211,254,217,1,179,1,89,253,48,254,216,2,95,1,100,255,57,255,155,2,176,1,29,0,4,255,159,1,224,1,37,253,133,254,145,0,47,2,240,253,137,253,122,251,97,255,189,1,17,1,123,0,127,2,117,1,130,255,32,3,56,2,84,0,94,255,208,2,200,2,194,252,232,253,71,255,222,0,152,1,196,1,245,1,3,3,127,252,181,250,189,255,186,1,232,252,130,250,54,2,90,2,167,0,186,254,253,1,74,1,161,255,142,253,38,253,168,254,132,6,193,4,11,3,199,1,36,5,60,3,72,2,207,2,148,1,225,255,245,3,21,3,89,0,107,0,123,3,37,2,103,3,45,6,149,3,159,2,98,3,199,5,9,5,86,3,135,1,44,4,98,4,44,3,78,0,206,253,89,1,51,2,173,1,153,255,161,1,19,3,134,255,75,254,155,1,20,3,111,252,95,254,90,2,242,2,30,255,240,255,151,0,248,2,68,253,118,0,152,255,242,255,152,251,48,0,28,1,137,1,122,254,93,254,129,253,140,255,114,252,50,1,60,1,243,255,183,4,216,3,53,3,157,2,85,251,75,253,140,0,43,255,140,252,96,254,57,255,210,253,152,253,245,0,108,254,104,253,6,1,56,0,151,253,44,253,171,255,21,254,192,254,112,253,198,253,193,252,127,255,240,253,30,250,193,255,145,254,127,254,154,254,191,254,4,0,51,0,146,254,42,255,63,1,255,1,146,0,159,2,239,255,221,254,146,255,208,1,117,255,16,254,54,255,220,0,200,254,137,253,108,253,183,255,113,253,204,252,106,253,115,253,248,250,167,252,82,254,71,252,65,252,248,254,207,255,44,254,184,255,131,254,162,254,205,253,63,255,105,254,55,0,104,254,221,252,11,0,203,254,137,2,188,0,58,255,0,254,205,1,177,255,54,254,218,250,249,254,122,255,245,253,135,249,77,254,17,254,3,253,57,0,165,254,98,254,178,1,139,251,14,255,104,253,167,252,34,0,188,255,61,253,174,254,163,1,163,0,226,255,250,254,57,254,235,252,106,250,47,253,238,3,152,2,13,1,25,0,107,2,4,1,183,0,96,0,56,252,178,250,124,254,135,0,75,253,67,3,200,1,154,0,81,4,191,2,57,2,107,1,89,6,46,5,217,3,236,2,36,255,219,0,76,0,48,255,81,250,130,249,49,0,149,0,60,252,84,255,16,253,176,254,113,2,209,0,6,255,190,255,7,252,186,252,254,255,61,1,136,247,51,250,118,255,123,0,172,248,205,247,247,253,85,0,57,252,146,254,73,253,143,252,103,252,13,252,5,253,75,252,132,255,0,255,160,254,108,253,178,0,207,1,98,1,48,1,48,249,177,253,230,254,79,0,55,247,175,0,99,3,243,1,118,255,76,255,75,255,235,255,13,247,39,251,52,254,248,253,253,252,195,1,246,255,204,254,15,1,191,255,4,0,214,0,233,254,77,254,213,255,164,254,98,253,35,0,191,255,45,255,38,3,23,2,85,0,41,1,57,0,239,0,210,2,237,1,225,0,149,2,72,3,35,2,228,253,136,254,14,0,93,1,213,1,209,2,75,1,162,0,224,253,16,253,194,255,246,255,142,1,168,255,212,2,189,2,237,255,235,253,162,255,89,2,136,0,185,255,87,253,21,253,90,255,168,254,5,1,206,255,161,0,204,255,229,1,81,1,117,249,50,0,190,0,163,255,22,247,25,255,62,255,174,255,161,255,173,253,102,255,128,0,126,3,245,1,76,2,201,1,167,254,206,0,122,0,110,0,137,253,29,255,199,253,3,0,152,1,239,0,141,1,226,0,59,255,254,255,128,0,235,1,1,5,136,3,36,1,215,0,26,2,50,1,3,1,253,1,91,253,233,251,13,0,65,1,89,253,180,253,154,254,44,255,210,253,243,0,134,2,223,1,230,1,86,1,122,2,20,2,107,0,34,3,75,1,136,0,144,255,114,254,249,251,226,254,186,254,63,253,32,1,16,1,19,5,120,4,154,4,92,3,89,254,121,0,127,254,108,255,217,254,210,254,190,252,205,252,16,0,232,255,55,255,36,254,43,2,91,0,11,255,38,1,218,255,133,254,62,252,59,251,89,251,18,250,239,254,117,254,122,254,11,252,123,253,61,2,205,248,250,251,249,1,212,1,232,2,179,3,97,2,237,1,79,253,108,251,140,253,121,255,254,251,195,0,155,1,196,0,46,6,123,4,63,2,81,1,41,251,247,252,120,253,114,255,83,2,57,3,199,3,223,2,74,251,54,252,175,255,170,254,23,253,13,0,184,255,119,1,198,1,19,0,127,5,153,3,145,249,84,255,93,3,50,2,160,3,1,6,39,4,228,2,88,246,72,252,8,1,82,0,10,254,59,252,202,250,123,0,99,3,212,4,22,2,171,0,240,246,52,254,12,3,107,1,90,251,151,253,252,0,195,255,82,255,34,0,243,3,20,3,227,246,247,0,167,1,153,0,240,255,157,254,6,1,193,1,216,249,207,251,224,253,141,254,153,253,207,254,27,4,37,3,175,2,16,2,6,0,74,255,167,3,107,3,234,3,41,3,199,0,1,1,126,0,76,0,184,253,142,251,87,2,44,2,175,251,145,250,201,249,249,253,47,252,211,250,108,0,91,1,46,253,49,252,109,1,101,0,111,255,169,2,249,0,103,255,0,0,178,254,198,253,159,0,156,1,29,1,176,254,151,253,71,252,58,252,119,3,177,2,29,251,84,0,71,255,114,254,176,253,177,1,20,4,141,2,85,0,73,1,216,255,105,1,79,254,63,253,210,1,62,2,102,255,142,2,80,2,34,1,89,255,72,0,93,1,175,0,162,2,41,1,209,3,208,2,211,4,180,4,245,2,232,1,112,254,243,254,26,2,116,1,186,250,149,250,86,251,165,255,238,4,108,3,7,3,188,2,169,253,218,255,82,254,46,253,184,7,94,6,223,3,96,2,111,0,20,1,30,255,160,255,77,252,124,254,245,255,249,255,209,254,237,253,185,252,82,1,198,6,174,6,125,5,245,3,252,253,169,252,123,253,210,0,80,253,96,254,1,2,230,0,202,252,131,253,134,251,192,254,72,252,110,253,74,253,183,0,142,255,145,253,50,3,162,2,65,255,52,255,219,2,123,2,51,0,197,4,115,3,64,2,70,252,81,254,58,3,86,2,170,254,13,253,124,252,105,254,154,251,158,254,50,255,0,254,221,253,214,252,155,254,148,253,66,0,3,2,183,255,102,254,152,252,79,252,92,250,53,251,191,0,239,255,224,253,25,255,252,249,224,253,123,252,138,252,134,252,242,249,19,246,205,252,54,252,175,0,198,252,46,251,6,253,169,253,234,255,122,2,213,252,37,252,122,252,189,254,203,0,26,0,129,254,21,255,243,252,113,254,238,4,138,3,92,252,137,250,156,250,144,253,93,0,87,0,98,254,229,253,77,253,37,0,121,2,254,1,125,254,36,254,206,250,143,1,66,0,7,1,105,254,207,255,177,254,95,254,17,4,73,7,245,252,191,251,96,250,22,253,166,252,64,3,187,253,9,253,141,254,95,253,6,254,40,8,208,253,134,253,101,251,15,1,241,0,14,0,74,254,12,255,115,254,207,1,178,4,23,4,162,253,227,252,98,250,205,255,189,254,225,1,32,255,184,253,241,253,238,1,113,3,170,2,79,254,206,254,22,252,42,2,147,2,222,0,171,0,96,255,159,254,169,2,6,7,29,6,172,252,99,251,97,249,176,254,102,253,114,0,187,253,12,253,24,253,61,255,119,1,241,1,47,254,220,252,182,251,154,0,26,1,125,255,206,255,65,255,49,253,67,1,220,2,6,6,46,253,205,252,132,250,105,0,6,255,185,0,78,255,10,254,26,253,65,1,254,1,87,4,189,254,201,253,58,252,127,0,228,1,82,1,96,255,52,0,174,254,220,2,87,5,18,6,142,253,222,252,96,249,226,254,182,253,164,2,73,253,169,254,142,254,22,254,39,1,101,7,138,253,194,253,10,252,176,255,133,2,187,255,250,255,194,254,148,254,14,3,170,5,14,4,199,254,35,253,141,250,120,0,60,0,221,1,248,254,183,253,133,255,199,2,221,4,121,2,165,255,157,254,8,252,3,3,246,2,5,1,253,0,81,0,38,254,162,3,167,8,184,6,216,252,181,251,123,248,208,253,242,252,169,0,220,252,206,251,68,255,142,253,201,255,125,5,74,253,52,253,86,251,108,253,98,1,73,1,254,253,201,255,225,253,110,1,9,4,158,4,110,253,65,252,179,250,201,255,72,255,93,0,163,253,226,254,106,253,148,1,193,1,59,3,226,254,162,254,17,251,116,2,50,1,227,0,240,255,147,0,145,253,186,0,155,3,98,8,94,253,134,252,186,249,69,254,28,255,83,1,143,254,234,252,103,254,231,0,86,0,189,5,64,254,187,253,219,251,82,2,194,1,79,255,132,255,86,255,65,254,159,2,135,4,124,5,36,254,101,253,25,250,179,255,118,255,204,2,79,255,140,254,131,254,195,1,166,3,147,3,6,255,80,254,202,252,16,1,60,3,190,1,26,0,19,0,225,255,186,2,156,6,120,8,122,253,47,252,124,248,77,255,39,254,12,1,133,254,23,253,77,253,11,0,127,0,9,4,24,254,107,252,199,252,61,0,67,1,135,0,147,0,111,255,82,253,173,2,18,3,146,6,6,254,176,252,239,250,35,0,90,0,222,0,233,255,166,254,98,253,199,1,79,2,7,5,53,255,175,253,194,251,140,2,96,1,181,1,39,0,63,0,55,254,73,3,241,4,57,8,248,253,142,252,208,249,184,254,57,253,141,5,172,253,170,254,186,255,209,0,173,0,136,7,89,254,170,253,103,252,165,1,93,2,218,255,254,255,11,255,129,255,128,3,177,7,111,4,133,254,250,253,213,249,173,0,118,0,241,2,201,255,131,254,204,255,217,3,253,3,241,2,254,255,221,254,133,252,241,2,224,3,167,1,8,1,131,0,60,255,127,3,226,8,239,9,133,253,192,251,61,246,239,253,42,252,14,2,4,253,194,252,220,253,76,254,60,1,87,2,93,253,84,252,22,253,199,255,236,0,245,255,55,255,175,255,226,252,16,0,77,3,22,6,31,253,39,252,68,251,44,254,17,0,34,1,233,254,184,253,68,253,183,0,54,3,193,2,247,254,20,254,93,251,165,1,152,0,212,1,122,254,166,0,244,254,39,0,14,6,76,7,133,253,58,252,221,249,59,254,20,254,142,3,228,254,253,251,181,255,75,255,123,255,60,7,67,254,144,253,106,251,164,1,111,1,207,255,123,254,44,255,87,255,195,2,49,4,184,4,229,253,58,253,87,250,83,0,93,255,228,1,20,255,225,253,157,254,82,1,151,4,46,3,10,255,203,254,66,252,94,2,248,2,60,0,166,0,248,255,93,255,206,254,57,7,3,10,21,253,255,251,9,249,93,254,66,254,209,0,50,253,202,253,234,253,6,254,181,2,89,3,49,254,71,253,198,251,69,1,175,1,50,255,241,255,248,255,5,253,33,2,151,3,238,5,157,253,241,252,223,250,0,1,201,255,208,0,91,255,164,254,106,253,65,1,168,2,162,3,186,254,83,254,73,252,228,1,190,1,58,2,59,255,72,0,183,255,141,3,175,5,205,6,205,253,31,253,74,248,132,255,96,254,206,2,34,254,108,254,198,254,240,255,190,1,100,6,217,253,231,253,18,253,198,255,126,2,214,0,55,0,71,255,241,254,124,4,21,5,188,4,29,254,97,253,16,251,117,0,29,1,31,2,52,255,121,254,145,255,1,2,2,6,86,3,142,255,66,255,46,252,109,3,83,2,208,1,4,1,4,1,201,254,236,2,235,8,168,8,251,253,79,252,133,247,186,254,60,253,122,1,212,252,77,253,24,255,208,253,175,2,129,5,36,253,78,253,188,252,153,254,133,2,130,1,247,254,62,0,90,253,145,0,108,6,184,4,213,253,36,252,47,251,178,255,14,0,114,0,185,254,154,254,23,254,136,1,165,2,185,2,55,255,20,255,140,251,181,2,193,1,178,0,13,255,0,1,79,254,99,2,105,5,152,9,156,253,123,252,72,250,205,254,239,255,243,1,197,254,101,253,2,255,0,1,172,1,183,5,26,254,90,254,224,251,143,2,114,1,18,0,154,255,71,255,236,254,243,2,42,6,55,5,24,254,165,253,118,250,182,0,163,255,102,3,183,255,54,254,164,254,67,3,94,3,189,3,230,254,179,254,22,253,35,2,71,3,172,1,17,1,167,255,13,0,172,3,172,6,16,10,94,254,196,251,34,249,212,255,154,254,3,1,15,254,125,253,208,253,99,0,45,2,193,3,91,254,2,253,107,252,39,1,70,1,184,0,175,0,15,0,142,253,20,2,110,3,189,7,69,254,0,253,5,251,221,0,156,0,12,1,39,0,149,254,7,254,183,2,4,3,116,4,94,255,53,254,112,252,197,2,188,1,146,2,25,0,47,1,200,254,244,4,130,5,179,6,215,254,2,253,212,248,249,254,148,255,46,4,106,254,243,255,127,255,57,0,182,1,174,10,138,254,25,254,189,252,48,1,184,2,164,0,104,0,21,255,5,0,75,6,108,7,119,5,27,255,186,253,211,250,149,1,192,0,49,3,169,255,74,254,111,0,4,4,175,4,225,3,68,0,81,255,90,252,9,4,93,4,195,1,222,1,200,0,8,255,79,8,136,10,250,7,189,252,213,250,173,247,225,252,76,253,210,1,212,252,248,251,43,254,146,253,32,1,152,3,67,253,183,252,210,251,101,254,0,2,8,0,122,254,165,255,24,253,226,255,19,4,137,4,202,252,132,251,124,251,218,254,210,255,110,0,101,254,138,254,90,253,214,0,19,2,156,2,106,254,92,254,86,251,231,1,232,0,47,1,194,254,91,0,40,254,123,0,208,4,141,9,46,253,72,252,41,250,30,253,93,253,52,5,225,253,162,253,45,255,161,255,158,255,228,5,219,253,254,253,87,251,217,1,211,0,73,0,224,254,144,255,123,254,25,2,52,5,234,4,201,253,13,253,247,249,71,0,229,254,120,2,86,255,31,254,19,254,169,2,234,3,49,3,156,254,181,254,147,252,163,1,194,2,90,1,241,0,222,255,186,254,121,1,158,7,91,7,41,253,205,251,167,249,23,255,225,253,116,0,244,253,218,252,183,253,183,255,222,1,217,2,224,254,99,252,137,251,173,0,191,1,204,255,68,0,27,255,162,253,193,1,17,2,5,7,177,253,149,252,173,250,183,0,112,255,68,1,153,255,60,254,102,253,111,2,232,1,152,4,18,255,1,254,20,252,70,1,40,2,202,1,136,0,108,0,193,254,114,2,63,5,91,7,22,254,122,253,62,249,70,255,63,254,216,3,30,253,180,255,86,255,218,253,243,2,0,10,16,254,2,254,77,252,210,0,182,2,204,255,84,0,190,254,57,255,66,4,89,6,200,4,136,254,165,253,140,250,87,1,74,0,120,2,81,255,10,254,224,255,204,3,52,5,222,2,52,0,217,254,167,251,41,4,150,3,160,0,137,1,107,0,115,254,190,4,89,10,205,6,136,253,79,251,157,248,49,253,235,254,97,1,117,253,144,252,134,255,45,255,209,0,58,5,206,253,54,253,221,251,48,255,132,1,159,0,192,254,195,255,217,253,37,1,68,4,163,5,120,253,159,252,27,251,207,255,113,255,49,1,111,254,29,255,183,253,49,2,20,2,159,3,139,255,69,254,92,251,251,1,180,1,36,1,177,255,233,0,54,254,159,2,1,4,92,9,135,253,182,252,11,250,204,254,226,254,128,2,139,254,147,253,105,254,162,1,253,0,25,5,197,254,187,253,143,251,60,2,173,2,231,254,61,0,188,255,141,254,223,3,77,4,218,5,19,254,85,253,174,250,209,255,164,0,192,2,0,255,198,254,244,254,119,2,181,3,28,4,138,255,164,254,191,252,68,0,156,4,56,2,152,0,117,0,34,0,89,4,110,7,191,8,167,253,65,252,86,249,113,255,23,254,224,1,180,254,113,253,194,253,54,0,97,1,168,4,50,254,116,253,228,252,150,0,37,2,112,0,195,0,145,255,253,253,167,2,84,4,111,6,210,253,19,253,63,251,247,255,16,1,85,1,203,255,247,254,233,253,233,1,75,3,18,5,136,255,30,254,248,251,120,2,31,2,152,1,179,0,50,1,242,253,100,4,184,5,196,8,95,254,238,252,230,249,32,255,128,254,84,5,135,254,53,254,231,255,129,1,233,1,126,8,180,254,117,253,195,252,32,2,41,2,61,0,22,0,143,255,167,255,104,4,189,6,244,5,40,255,139,254,139,249,161,0,60,1,140,3,91,255,34,255,189,255,82,5,151,4,21,3,73,0,4,255,1,253,226,2,164,3,104,2,106,1,246,0,130,255,19,3,94,10,211,11,77,253,174,251,114,247,203,253,180,253,12,2,178,253,45,252,22,254,249,254,141,1,214,3,191,253,187,252,79,252,234,255,179,1,207,255,66,255,138,255,139,253,168,255,216,4,233,5,132,253,229,251,5,252,221,254,189,0,3,1,255,254,42,254,139,253,145,0,177,3,126,3,186,254,148,254,186,251,31,2,4,1,118,2,54,255,189,0,47,255,101,1,99,5,43,8,199,253,205,251,87,250,54,253,17,255,151,3,92,254,63,253,172,255,147,255,142,255,103,9,99,254,239,253,103,251,226,1,112,1,131,0,70,255,184,255,125,255,93,3,231,4,196,4,157,253,110,253,195,250,227,0,135,255,119,2,80,255,23,254,38,255,233,2,151,4,189,3,191,254,108,255,88,252,159,2,198,3,216,0,84,1,253,255,113,255,213,1,56,7,133,9,39,253,63,252,109,249,43,255,2,255,65,1,1,254,74,254,247,253,130,255,213,2,135,3,172,254,83,253,248,251,60,1,224,1,20,0,23,0,167,255,217,253,97,1,27,4,253,6,224,253,11,253,172,250,42,1,231,255,180,1,156,255,120,254,249,253,211,1,242,2,54,4,46,255,114,254,202,251,108,2,146,2,118,2],"i8",S,f.GLOBAL_BASE+10240),A([33,0,147,0,78,255,153,3,151,6,129,7,187,254,240,253,70,248,2,0,227,254,142,3,141,254,22,254,26,255,0,0,85,2,218,7,16,254,117,254,190,252,37,0,177,3,245,0,181,0,96,255,112,255,201,5,93,5,77,5,157,254,167,253,10,251,42,1,66,1,160,2,63,255,176,254,77,0,65,4,253,5,154,3,177,0,217,255,155,251,228,3,13,3,24,2,200,1,110,1,80,254,135,5,136,9,231,8,46,254,10,253,235,246,209,254,3,254,131,1,41,253,211,253,66,0,111,255,131,2,224,4,224,253,92,253,108,252,31,255,94,3,76,2,104,255,40,0,235,253,167,1,143,5,22,6,196,253,181,252,135,251,128,255,85,0,205,1,18,255,255,254,184,253,93,2,236,2,93,3,24,0,54,255,127,250,29,3,231,1,47,1,75,255,108,1,74,255,104,2,98,5,126,11,18,254,172,252,95,250,220,254,61,0,44,3,172,255,45,253,74,255,43,2,20,2,226,5,147,254,19,254,223,251,54,3,76,2,11,0,242,255,238,255,26,255,233,3,121,5,171,5,38,254,199,253,244,250,46,1,62,0,38,4,186,255,136,254,34,255,214,3,206,3,125,4,60,255,22,255,229,252,223,1,74,4,243,1,106,1,58,0,70,0,123,4,21,8,41,11,25,254,146,252,224,248,73,0,224,254,92,1,154,254,12,254,4,254,199,0,209,2,218,4,178,255,71,253,229,252,105,1,24,2,196,0,118,1,110,0,33,253,79,3,27,4,104,7,146,254,55,253,98,251,59,1,64,1,173,1,72,0,41,255,62,254,247,2,118,3,83,5,226,255,84,254,190,252,93,3,115,2,28,3,118,0,212,1,233,254,75,5,91,7,101,7,68,255,126,253,180,249,63,0,81,255,174,4,94,254,45,255,51,0,158,1,75,2,41,10,22,255,211,253,166,252,168,1,121,3,222,0,136,0,155,255,83,0,133,5,230,8,103,5,172,255,67,254,147,250,158,1,57,1,21,4,29,0,169,254,65,0,16,6,111,6,212,3,183,0,165,255,195,252,249,4,133,5,104,1,41,2,16,1,149,255,51,6,77,12,43,10,104,5,29,8,92,13,244,19,86,26,186,31,135,38,84,43,170,49,133,53,61,254,215,251,239,253,231,250,62,254,12,253,15,254,161,252,128,254,149,253,99,254,99,253,195,254,230,253,181,254,212,253,98,254,4,254,88,254,134,254,238,254,188,254,78,254,154,253,30,255,12,254,24,255,254,253,249,254,135,254,214,254,102,254,105,255,58,253,82,255,206,252,107,255,100,254,100,255,83,254,224,254,50,254,70,255,53,255,86,255,210,254,65,255,191,254,125,255,109,255,215,254,117,254,28,255,42,255,11,255,64,255,189,255,196,254,185,255,185,254,152,255,51,255,162,255,73,255,113,255,218,255,63,255,161,255,16,0,180,255,132,255,8,255,23,0,19,255,24,0,12,255,18,0,120,255,44,0,145,255,223,255,232,255,231,255,0,0,149,0,19,0,23,0,113,255,158,0,87,255,174,0,75,255,133,0,201,255,165,0,230,255,111,0,84,0,98,0,75,0,87,0,183,0,141,255,245,255,248,255,130,0,11,0,170,0,254,0,77,0,205,0,17,0,183,0,112,0,6,1,194,0,202,0,31,1,95,0,189,0,214,255,151,255,234,0,179,0,39,0,186,0,163,0,89,1,76,1,199,0,43,1,161,0,202,255,29,1,178,255,25,1,123,255,141,0,74,255,111,0,249,0,85,1,15,1,108,1,93,0,147,1,75,0,135,1,92,0,254,1,118,255,220,0,71,255,227,255,222,255,105,1,141,255,64,1,3,0,42,2,99,0,30,1,218,0,79,2,11,255,150,1,244,254,197,1,0,0,68,2,25,0,94,2,19,1,20,2,148,0,194,1,183,255,227,2,227,254,6,2,224,254,94,0,53,255,162,2,116,255,182,255,205,0,202,2,142,255,43,1,176,0,155,3,182,0,45,2,240,0,193,2,240,255,1,2,229,1,81,2,37,1,128,1,195,1,105,2,218,255,50,0,51,2,17,2,47,1,209,0,203,1,107,1,177,1,196,1,194,1,198,1,111,1,94,2,221,1,229,2,176,1,97,1,112,1,11,1,105,1,204,2,17,1,71,2,197,1,166,0,254,1,172,0,201,0,117,2,18,1,191,0,56,2,127,2,46,1,42,1,122,2,131,1,131,2,94,1,75,2,48,2,100,2,53,2,88,2,20,3,231,1,160,2,0,2,247,3,65,1,77,1,101,1,86,3,131,255,157,1,218,1,200,2,17,0,105,255,52,2,29,1,14,1,15,255,203,3,121,3,233,1,220,0,254,1,128,3,37,2,156,3,71,1,57,3,34,1,143,3,28,2,84,4,158,0,37,3,199,0,189,3,255,1,218,2,100,0,106,3,13,0,23,3,179,1,120,2,164,2,204,3,249,0,132,3,211,1,194,4,13,3,50,4,73,2,17,3,233,255,157,2,11,1,19,4,107,2,60,4,103,2,121,4,110,2,137,3,148,3,25,4,80,0,75,1,72,2,51,4,89,0,127,2,220,3,193,3,2,3,208,2,30,3,187,2,236,1,191,1,131,3,115,2,15,1,164,4,213,2,53,5,87,0,91,2,64,3,67,6,104,2,103,4,122,3,225,5,232,3,132,4,98,3,241,3,227,3,59,3,125,4,90,3,49,3,170,5,5,3,40,5,244,1,109,5,56,1,129,4,236,255,60,4,64,0,3,5,2,0,148,4,143,1,77,7,2,2,170,6,246,1,100,6,118,3,242,5,160,1,88,2,107,4,70,5,251,4,110,5,121,3,3,7,146,3,230,6,227,0,159,4,226,4,34,7,249,1,62,7,151,3,49,9,57,255,175,1,152,0,199,6,43,255,228,255,136,1,54,5,103,255,204,255,210,3,127,4,189,254,112,254,45,3,167,6,120,255,84,0,169,5,223,7,181,254,113,255,119,255,168,4,0,255,22,2,99,255,7,4,205,254,73,254,30,2,219,2,183,254,92,254,159,255,104,2,150,254,88,255,190,254,110,1,9,255,146,255,45,255,89,0,60,255,203,254,20,0,59,0,148,254,49,254,226,254,89,0,176,254,175,0,80,254,141,0,133,254,66,255,78,254,60,255,177,255,150,0,234,254,29,255,232,254,166,0,213,253,90,254,101,255,29,2,146,254,54,0,227,255,173,255,211,254,250,252,186,0,116,2,115,254,248,254,242,0,37,1,59,255,183,253,124,0,154,1,53,0,123,255,10,0,84,1,198,253,215,251,65,0,66,254,68,0,19,254,127,1,169,3,155,254,57,253,153,254,6,255,91,253,212,251,36,1,230,255,107,1,6,0,95,2,33,5,129,255,246,255,233,5,94,7,201,2,204,3,189,5,133,8,163,5,224,7,161,249,192,249,252,248,14,247,253,251,22,249,180,251,23,248,3,251,148,250,169,250,2,250,77,252,75,250,52,252,12,250,25,252,58,251,4,252,108,251,209,252,37,252,32,252,165,250,64,251,18,252,247,250,186,251,24,253,12,251,13,253,243,250,162,252,101,252,119,252,40,252,90,253,229,251,83,253,230,251,193,251,39,252,218,251,89,253,35,252,127,253,153,251,48,252,6,253,114,253,134,252,218,252,191,252,189,251,62,253,139,253,147,253,218,252,128,253,212,252,249,252,134,253,245,252,225,253,28,252,203,253,205,251,188,253,222,253,157,253,196,253,149,253,8,253,222,254,145,252,242,253,201,252,50,254,229,252,3,255,215,253,97,254,179,253,73,254,235,253,172,254,76,253,89,252,7,254,252,252,66,253,149,251,249,254,206,254,53,252,29,254,67,254,182,255,213,253,220,253,154,253,127,255,75,253,22,255,116,254,10,255,37,254,6,255,247,254,108,254,136,254,254,253,95,254,2,254,212,254,199,254,178,254,104,253,49,254,210,252,126,254,64,253,175,254,153,253,22,255,55,255,23,255,17,255,89,255,201,253,53,255,149,253,109,255,97,254,141,255,160,254,90,255,18,253,85,255,7,253,242,254,145,252,248,254,121,252,145,254,24,253,43,0,37,254,14,0,115,253,43,0,98,253,11,0,64,254,197,255,247,253,130,255,137,255,101,255,155,253,214,255,161,252,229,255,93,252,136,0,29,254,183,0,44,254,55,0,214,254,55,0,208,254,57,1,159,253,57,1,48,253,66,1,89,255,100,0,227,253,253,255,137,255,145,255,69,255,233,0,20,255,4,1,22,255,26,0,91,255,134,0,211,255,216,255,219,253,104,1,53,255,122,1,124,254,194,1,129,254,19,1,20,0,182,0,153,255,246,0,145,255,175,1,37,0,206,1,110,255,231,1,99,255,228,254,197,255,247,1,72,255,24,0,53,0,253,255,54,0,122,0,3,1,77,1,66,0,228,1,104,0,180,1,68,0,195,0,116,0,190,0,206,0,13,1,247,255,226,1,96,1,126,1,29,1,143,1,21,1,196,1,0,1,69,0,186,0,13,0,41,1,243,255,3,1,161,255,30,0,56,0,138,1,196,0,169,1,205,0,200,1,25,1,65,2,15,0,191,0,119,1,34,1,151,1,64,2,200,255,227,0,32,2,149,1,0,0,37,2,164,255,16,2,27,255,95,1,11,255,82,1,150,254,179,1,167,0,15,2,181,255,46,1,91,0,56,3,129,0,87,2,240,1,167,2,186,0,237,2,153,0,225,2,231,254,88,2,164,254,103,2,20,255,1,3,41,0,113,3,38,0,122,3,36,255,73,3,155,254,115,3,119,254,135,3,134,253,218,1,68,254,82,3,81,255,166,2,19,254,242,0,249,253,17,3,54,253,70,2,227,253,110,1,225,253,178,1,171,253,244,1,3,253,222,0,66,253,149,3,25,253,194,3,155,252,245,1,125,252,36,2,133,254,200,0,77,254,157,0,205,252,214,0,163,252,157,0,154,253,40,0,136,253,94,0,141,252,202,255,27,253,4,2,11,254,42,1,154,253,85,255,154,252,95,255,159,252,233,255,206,252,93,0,9,252,245,254,106,253,153,254,219,253,2,0,70,254,135,255,135,254,0,0,29,255,33,0,98,254,130,255,127,255,212,0,90,252,34,0,198,251,230,254,161,251,244,254,58,253,199,252,92,254,65,255,204,251,96,252,107,252,163,255,140,253,154,254,97,0,7,0,50,255,119,254,155,255,24,0,53,255,38,0,88,255,83,0,169,253,89,254,233,254,170,1,68,253,118,0,181,255,206,0,43,252,95,253,88,253,161,1,145,254,37,0,233,254,218,1,127,255,194,254,63,1,40,1,142,253,217,255,87,1,90,2,72,253,217,255,209,254,172,3,104,0,233,0,132,254,137,0,220,255,13,1,181,255,42,255,120,0,43,0,239,253,35,254,203,1,164,0,54,255,27,255,207,255,89,255,97,2,24,3,98,0,36,255,147,3,148,0,37,1,27,1,101,3,91,0,63,2,138,1,70,1,178,255,205,2,67,0,109,1,189,254,104,2,220,255,219,2,27,0,107,2,238,0,120,2,17,1,192,1,99,0,33,3,220,1,101,3,17,1,173,2,64,0,21,3,72,0,253,3,217,0,25,3,203,1,222,2,104,1,134,2,224,1,104,1,66,1,173,1,208,1,126,2,174,1,244,2,107,1,232,3,148,1,171,2,16,2,90,2,103,2,143,2,157,1,178,3,175,2,169,3,90,2,136,3,92,2,43,2,225,2,18,3,150,2,211,1,142,2,106,1,77,2,161,3,198,2,242,1,222,1,159,1,164,1,181,2,115,3,45,3,171,2,13,3,157,3,145,3,171,3,214,2,220,2,235,1,85,3,19,2,180,3,222,2,195,3,59,1,40,3,249,2,243,2,120,4,248,2,143,2,52,4,58,3,33,4,67,4,70,3,235,3,40,3,23,4,109,4,147,2,77,4,224,3,26,4,50,4,51,4,203,3,182,2,202,4,30,4,59,2,73,3,116,3,124,5,99,5,72,4,56,4,93,3,207,4,223,2,4,5,248,2,248,4,223,3,87,5,29,4,233,4,188,2,26,4,22,2,220,3,197,1,240,4,87,2,116,4,167,2,85,6,47,3,104,5,9,2,37,5,137,1,28,6,37,3,168,5,174,2,44,4,136,2,107,3,51,1,59,4,105,1,23,4,61,1,137,5,196,3,163,2,59,2,128,4,79,0,90,4,209,255,250,5,55,1,185,6,58,1,142,4,177,2,2,2,162,255,93,1,26,1,132,5,72,1,1,4,231,1,191,255,57,0,37,3,202,3,36,0,62,0,1,3,249,254,23,3,166,254,125,2,187,2,119,255,108,2,22,2,29,2,33,253,194,0,199,2,44,1,244,254,161,252,158,3,1,3,60,253,84,254,250,1,174,0,132,252,138,253,179,1,35,2,101,250,254,254,109,2,215,1,6,252,168,250,119,254,9,2,104,252,82,253,231,255,20,0,42,252,124,251,84,1,9,0,234,249,145,251,160,254,48,0,213,249,110,254,137,252,6,0,124,251,136,252,220,253,160,254,149,249,112,251,97,255,98,2,24,248,61,252,31,255,193,0,136,249,88,248,11,255,19,254,60,252,112,249,88,252,133,253,237,250,48,249,148,250,164,253,252,249,189,252,139,250,121,255,204,249,222,254,122,249,56,253,37,248,160,249,129,249,229,255,46,247,213,252,123,251,184,0,15,251,189,0,169,250,74,2,37,248,201,0,234,252,200,2,70,251,3,0,247,251,40,3,29,251,62,3,145,255,123,2,156,249,191,1,49,254,75,252,67,254,96,252,8,254,118,251,11,254,69,251,144,0,161,254,140,254,228,251,229,254,221,251,233,254,157,251,193,253,98,250,181,253,178,249,89,252,40,252,229,0,178,2,103,252,49,253,109,254,82,5,83,253,47,254,106,3,141,1,3,254,210,255,61,1,54,5,27,254,200,1,45,3,183,1,101,254,83,1,130,3,43,4,87,254,46,0,161,5,241,1,115,252,224,252,185,5,22,4,2,255,191,254,150,5,141,4,68,0,94,1,10,4,154,2,114,1,11,0,31,5,22,3,143,0,232,0,17,4,26,6,142,255,151,2,80,6,54,4,198,1,67,2,251,4,16,4,180,255,141,3,240,2,43,4,153,0,0,2,92,1,190,4,102,2,129,1,51,7,40,3,13,1,10,4,203,0,62,4,140,2,249,3,247,6,106,4,173,1,47,5,131,1,104,5,207,255,159,4,184,255,191,4,96,254,233,3,32,2,213,6,160,254,199,4,10,254,175,4,179,253,57,2,29,255,94,6,114,255,42,6,26,255,179,6,54,253,8,5,186,252,118,5,107,4,77,5,48,255,208,4,181,1,197,3,95,252,50,3,43,3,130,5,91,3,227,5,164,0,188,4,107,5,1,7,228,1,82,7,200,1,15,8,228,3,146,4,46,5,122,5,36,5,80,5,111,4,238,4,210,4,82,6,81,5,232,6,141,5,203,4,48,6,67,5,86,3,160,2,149,6,30,6,115,4,246,4,224,7,33,7,237,6,45,6,252,5,180,5,207,5,178,3,123,6,253,3,208,6,188,4,112,5,209,3,236,6,137,4,34,7,140,4,182,6,149,5,181,7,55,6,161,4,96,3,84,8,37,4,7,7,46,3,46,7,245,2,56,8,35,5,6,8,234,4,65,8,147,3,27,9,162,3,187,5,123,4,30,10,159,5,197,8,208,6,42,8,84,6,54,9,174,5,106,10,226,5,84,7,45,7,22,8,183,7,203,6,41,6,170,2,9,5,48,6,253,7,174,5,50,8,194,9,212,7,151,10,18,8,214,2,52,6,196,10,32,9,228,0,79,3,152,9,123,6,36,0,45,1,150,7,165,7,66,254,160,255,106,8,116,5,253,5,77,4,14,0,96,2,101,252,36,253,103,5,190,7,65,5,184,3,88,253,65,1,1,5,244,4,198,249,109,1,173,3,178,3,55,249,202,252,70,9,227,10,29,7,228,10,236,248,29,247,169,248,23,246,152,249,200,248,97,249,44,248,60,251,136,248,59,251,198,247,233,249,204,249,219,249,236,249,85,251,177,249,56,251,65,249,177,250,129,251,176,249,100,248,6,251,145,250,231,250,133,250,185,249,101,251,116,249,225,250,93,250,58,250,169,250,126,252,24,251,221,251,205,250,146,251,42,252,147,251,131,251,32,250,200,251,228,250,4,252,97,251,44,252,50,250,57,252,41,250,36,252,102,252,233,251,203,251,186,252,101,251,166,252,58,251,149,251,239,251,216,251,1,253,152,252,123,251,67,253,144,252,62,253,118,252,250,252,8,252,190,253,200,251,223,252,58,250,177,253,169,251,176,253,134,251,55,253,148,250,128,253,160,250,171,253,221,251,96,254,121,252,82,253,192,252,107,253,60,253,68,254,156,252,22,254,103,252,138,254,248,252,149,253,110,251,183,253,219,253,255,252,229,252,77,254,109,253,238,253,27,253,14,254,187,252,155,254,171,253,233,254,153,252,13,255,137,252,230,254,103,253,232,254,101,253,91,255,208,253,118,254,121,252,150,254,102,254,64,254,185,253,103,254,194,253,199,254,155,254,131,253,220,253,198,253,76,254,128,252,8,254,130,254,11,253,198,255,31,254,91,255,150,253,65,255,138,254,22,255,130,254,34,255,85,253,231,255,32,254,94,254,153,254,38,253,159,254,188,254,99,255,80,254,190,254,118,254,209,254,228,254,152,255,167,253,223,254,212,253,60,255,180,253,106,255,109,253,160,253,39,254,232,255,188,255,64,254,38,254,248,255,6,254,211,255,20,253,72,255,180,252,4,255,123,252,165,255,184,253,159,255,116,253,138,0,4,253,125,255,90,253,244,255,98,253,165,0,253,254,253,255,184,252,149,255,115,252,37,0,32,252,44,0,170,252,97,254,185,252,13,0,23,252,241,254,254,251,203,254,226,252,34,254,192,252,24,254,81,252,168,0,168,251,125,254,95,251,155,255,97,251,216,255,83,252,196,254,250,251,254,252,236,251,143,253,199,251,230,253,56,251,213,254,224,250,76,254,83,251,105,253,113,251,95,255,64,251,78,253,43,251,193,252,104,250,48,253,133,250,19,254,126,252,28,253,102,252,223,252,178,251,110,254,213,249,60,252,219,251,130,253,11,251,98,250,37,250,90,252,34,250,129,252,194,249,204,253,69,249,51,253,162,253,171,253,114,251,195,251,167,250,44,254,102,248,43,250,210,248,71,252,116,248,93,252,37,250,68,255,157,249,91,254,79,250,174,254,88,250,234,255,106,248,90,254,42,248,7,255,16,254,142,255,138,248,13,253,247,250,174,0,85,250,147,255,30,254,255,254,59,251,4,254,175,249,151,0,98,249,208,0,114,253,107,0,141,249,29,0,139,251,23,1,65,251,50,1,52,251,6,254,38,253,81,255,44,251,155,255,55,252,39,2,154,252,22,1,201,252,59,1,205,253,120,1,229,251,228,0,5,254,24,1,169,253,25,1,10,253,253,0,207,254,123,1,13,253,122,255,157,253,148,2,200,252,24,2,207,252,134,2,99,254,49,0,171,254,177,0,59,254,14,2,30,254,77,2,185,255,83,1,111,253,8,1,12,255,39,1,19,255,59,1,125,254,57,2,6,254,247,255,135,254,14,0,96,255,149,2,40,255,40,0,204,254,210,255,95,0,214,0,14,255,167,0,170,255,192,0,200,255,27,0,180,255,31,0,36,0,53,1,150,255,74,255,143,255,74,0,71,254,234,255,23,0,139,0,81,0,245,255,44,0,15,0,169,255,119,255,138,255,49,255,98,255,198,255,16,1,164,255,100,255,71,254,8,0,120,255,128,0,35,255,101,0,38,255,40,0,59,255,180,255,56,254,9,0,67,254,33,0,89,254,226,0,60,0,73,0,34,255,156,0,113,254,24,1,194,254,245,0,171,254,166,0,13,254,83,1,66,255,71,1,37,255,69,1,119,255,167,255,172,253,100,0,141,253,144,0,91,253,231,1,28,0,252,0,121,254,214,0,215,255,26,1,228,255,99,0,226,254,75,1,49,0,203,1,124,254,53,2,143,254,180,1,28,0,80,1,247,255,141,1,89,255,106,2,34,0,84,2,239,255,49,2,116,255,43,1,79,0,10,2,125,0,203,0,2,0,244,0,32,1,255,0,211,0,175,0,82,0,84,2,187,0,5,2,108,0,125,1,255,0,109,1,41,1,241,1,96,1,71,1,174,255,25,0,210,0,115,1,245,0,5,1,3,0,33,2,193,1,140,0,38,1,44,0,39,1,212,0,91,1,244,0,238,1,75,1,16,2,201,0,51,1,93,1,155,1,101,2,28,1,102,2,157,1,208,1,66,1,112,2,141,1,97,0,200,0,96,255,128,1,149,0,106,1,239,1,13,2,13,1,73,2,33,0,235,1,135,255,177,1,171,1,99,2,242,1,4,2,171,0,187,1,241,1,154,2,184,1,19,1,54,2,63,2,146,0,127,2,155,0,158,2,223,255,173,0,212,0,184,2,90,255,89,2,65,255,183,2,23,254,247,1,175,0,230,2,214,0,220,1,116,1,59,4,66,2,18,2,74,2,9,3,169,1,106,3,59,1,73,3,118,1,80,3,91,255,53,2,35,0,223,3,217,255,38,4,73,1,200,2,18,3,72,3,133,2,27,3,149,2,164,2,59,2,150,3,120,2,55,4,161,2,49,3,62,1,132,1,106,3,244,3,52,2,80,3,112,3,108,2,45,2,223,1,159,2,197,1,180,2,212,1,72,3,130,2,76,3,133,2,250,1,172,1,129,3,55,2,69,3,131,1,194,3,243,1,179,2,49,2,171,3,158,3,15,3,40,1,22,3,12,1,4,4,18,2,106,3,73,1,36,2,143,0,163,2,35,1,247,1,66,0,17,4,103,1,18,3,97,0,37,3,33,0,69,3,214,1,255,1,49,0,68,4,71,1,150,4,67,1,3,0,242,0,104,3,218,1,177,2,173,1,49,5,166,2,18,4,108,2,85,4,152,2,65,1,193,0,121,3,182,3,129,4,106,3,125,3,123,2,109,3,94,3,180,3,145,3,13,5,153,2,40,5,127,2,229,3,25,3,122,5,6,4,152,4,244,3,86,4,191,3,130,5,157,3,123,5,147,3,31,2,94,3,92,4,198,4,67,3,166,4,67,3,166,4,191,3,124,4,123,4,96,5,20,5,169,4,135,5,207,4,55,5,61,5,234,2,68,4,175,6,3,5,109,5,49,4,54,5,30,6,129,4,195,5,109,6,113,4,33,7,196,4,32,4,102,5,241,5,194,6,96,6,9,6,84,6,6,6,87,3,60,6,97,3,131,6,181,2,117,3,180,6,239,5,143,4,16,5,161,8,224,6,160,7,213,5,228,7,202,5,254,5,74,7,158,6,216,7,30,6,236,2,225,6,57,3,38,1,112,5,60,4,10,8,109,2,35,5,109,1,7,5,198,0,4,4,232,1,128,5,249,0,147,1,246,3,25,6,68,1,107,1,109,6,20,4,193,0,111,1,242,7,67,7,5,255,67,2,238,2,226,3,13,255,30,0,45,5,111,3,228,255,87,255,112,2,149,3,59,254,159,0,186,0,90,5,154,253,6,0,25,2,136,1,162,255,221,254,13,3,229,0,128,255,214,254,245,0,235,1,67,253,120,253,204,3,21,3,11,254,128,253,178,0,255,0,147,254,122,254,1,255,61,1,66,252,218,254,65,255,228,0,249,252,65,254,157,0,19,255,111,253,48,253,105,254,92,0,139,255,157,253,78,1,26,255,89,253,196,251,112,255,195,254,123,252,163,252,30,253,152,254,171,255,41,253,166,255,237,252,100,0,234,255,121,254,249,254,200,255,183,255,175,254,14,253,5,0,67,255,62,253,144,253,89,0,168,254,121,255,167,251,159,254,19,255,84,253,145,251,237,254,178,251,243,254,77,251,152,0,145,0,46,253,48,251,49,0,80,0,32,251,248,252,8,255,135,1,36,253,221,253,213,1,218,0,1,255,160,252,69,0,110,1,90,255,27,254,80,253,191,0,68,251,84,251,86,255,87,255,228,250,161,249,65,1,214,1,117,250,37,251,192,255,16,1,175,250,8,255,236,1,53,2,47,253,159,253,195,0,229,1,195,253,123,255,171,1,202,0,85,255,138,255,199,0,63,2,2,0,225,255,182,2,243,2,170,250,217,255,40,2,45,2,23,254,15,1,168,2,25,2,13,0,59,254,87,3,186,3,123,255,204,255,175,255,226,2,111,251,125,2,31,4,35,4,161,255,164,2,235,4,57,4,233,1,49,1,63,254,186,3,234,253,228,3,55,252,98,3,222,251,35,4,242,250,106,2,120,250,105,2,54,254,86,5,97,255,29,7,250,252,240,253,242,255,86,4,78,251,123,252,252,252,177,1,24,251,25,251,13,252,210,254,166,253,183,253,9,253,174,249,8,253,243,249,184,252,127,248,208,252,229,253,23,249,69,247,29,255,220,255,14,248,217,248,197,247,154,251,89,246,232,248,66,250,252,0,115,245,97,254,197,253,45,254,229,5,18,6,132,8,183,7,22,9,228,7,191,248,111,249,191,248,37,249,248,247,130,251,170,247,138,249,173,249,181,251,88,249,149,251,191,250,184,249,177,250,154,249,198,250,243,250,211,250,15,251,128,249,143,249,49,250,173,252,190,250,216,248,123,250,116,247,254,250,87,253,7,249,143,249,58,252,198,251,97,251,116,249,226,251,207,251,138,251,122,251,73,251,24,253,6,251,27,252,90,252,153,250,97,252,120,250,14,252,231,250,241,252,69,252,231,251,124,252,31,252,207,252,31,253,201,252,52,252,91,251,30,253,186,251,30,253,126,251,240,252,223,252,214,252,238,252,132,252,248,253,24,252,206,252,124,253,59,252,191,253,142,252,227,253,74,253,97,253,107,252,173,253,126,253,122,253,153,253,68,252,147,253,99,252,253,253,41,253,29,254,209,252,27,254,184,252,190,253,72,254,55,253,190,253,187,254,111,253,98,253,126,254,198,253,71,254,102,253,254,253,237,252,120,254,239,253,246,253,59,254,25,254,89,254,152,253,183,253,151,253,99,255,106,253,244,254,88,253,164,254,190,254,189,254,136,253,68,254,208,254,82,254,180,254,54,254,235,254,44,254,109,253,231,252,193,254,132,253,29,255,214,253,139,254,165,254,178,254,46,255,56,254,64,255,238,253,14,255,40,255,58,255,146,254,142,254,174,254,95,255,103,254,20,253,149,255,132,254,218,254,125,253,33,255,103,253,22,255,27,253,115,255,16,254,126,255,2,254,117,255,185,254,84,255,207,254,206,254,188,253,92,255,249,254,250,254,84,255,189,255,110,254,31,0,146,254,246,255,76,254,170,255,241,253,71,0,135,254,234,255,159,253,244,255,90,253,189,255,193,254,63,0,65,255,35,0,75,255,217,255,14,255,126,0,89,255,116,255,224,253,155,0,215,254,174,0,215,254,38,0,248,255,117,0,132,254,197,0,60,254,240,0,246,253,223,0,153,255,110,0,69,255,87,0,101,255,169,0,209,255,157,0,26,0,173,255,156,255,128,0,80,0,209,0,194,255,6,0,7,0,22,0,5,0,62,1,236,255,248,0,211,255,56,255,193,255,156,0,187,255,250,0,73,255,113,1,130,255,143,255,180,255,114,255,134,255,192,255,2,255,225,255,35,0,79,255,185,255,249,255,171,0,93,0,27,0,108,0,212,0,182,254,47,255,133,255,186,255,233,254,95,0,160,255,20,0,68,255,195,255,198,254,87,0,212,254,178,255,158,254,122,255,11,0,122,0,116,255,122,0,237,254,152,0,219,254,140,0,174,255,138,0,191,254,145,255,32,254,100,255,153,254,76,0,2,255,216,255,133,253,160,255,246,253,79,0,5,254,8,0,244,254,47,1,229,253,68,0,66,254,61,0,246,253,50,1,111,0,189,0,77,254,122,0,133,254,166,0,197,253,114,254,136,253,182,255,21,253,161,255,57,254,194,0,72,252,83,0,226,252,192,0,13,253,192,0,243,252,94,255,149,253,234,0,105,253,215,254,24,254,147,255,60,252,124,255,186,252,188,255,181,252,58,0,168,251,170,255,219,252,213,254,80,252,3,255,246,252,206,255,59,252,219,253,160,254,158,255,32,252,169,254,163,251,197,254,163,251,205,254,125,251,138,254,131,253,26,255,114,251,213,255,237,250,156,255,99,252,119,254,6,251,168,253,79,253,126,255,57,250,200,254,215,250,2,255,72,250,70,254,244,250,155,253,19,251,9,254,35,250,144,254,214,250,26,0,104,250,190,255,49,249,95,255,148,249,45,254,32,249,220,253,143,250,200,253,236,249,153,252,41,250,246,251,149,250,197,253,131,248,240,253,9,249,133,255,151,248,25,255,250,247,189,254,252,247,118,252,72,248,201,253,131,248,148,253,1,248,35,252,203,251,142,254,17,248,64,253,205,246,19,253,76,245,191,251,139,248,159,0,36,248,248,0,142,253,133,255,221,246,62,252,99,253,104,254,157,250,106,251,60,254,148,254,236,251,33,253,124,255,183,0,172,249,16,253,221,253,205,254,247,252,19,251,158,255,41,0,144,252,189,251,255,254,97,0,190,249,215,248,31,0,230,255,124,253,207,253,76,255,222,253,127,254,185,251,102,254,222,252,98,254,197,252,55,254,54,252,22,254,171,251,41,255,108,252,112,255,87,252,19,254,11,251,251,253,29,250,181,0,101,0,180,254,135,252,188,252,87,252,209,253,83,254,139,253,221,253,73,255,175,254,223,253,174,255,6,255,226,254,5,0,124,255,164,254,4,255,219,254,40,254,98,255,100,0,227,255,197,0,20,255,88,254,163,252,43,255,116,255,249,255,85,254,69,254,187,0,159,255,84,253,32,253,219,254,2,1,144,254,104,255,106,255,136,1,159,253,175,0,114,255,43,1,118,255,152,0,137,255,73,1,26,254,204,255,37,1,198,0,73,255,117,0,175,0,75,1,198,255,238,254,231,0,44,1,224,254,74,1,207,254,116,1,145,255,153,1,247,255,167,1,83,0,0,1,67,0,111,1,237,255,248,0,91,0,113,0,221,255,150,1,65,255,154,0,238,0,40,1,5,0,197,0,141,0,221,0,57,1,198,0,211,0,165,1,244,0,78,1,88,0,170,1,13,255,198,1,202,0,40,2,251,255,147,1,35,1,185,0,219,0,45,1,251,0,138,0,128,0,69,0,197,0,32,1,116,255,195,255,188,0,105,1,197,0,86,2,186,1,17,1,34,1,143,0,216,1,226,1,157,0,114,1,159,1,65,1,116,1,129,1,146,1,40,2,155,0,24,0,38,2,7,1,245,255,21,0,104,1,227,0,147,0,2,255,168,1,97,0,110,1,243,255,119,1,141,0,193,1,232,0,140,1,251,1,218,1,16,1,189,2,68,1,106,1,209,255,75,2,148,0,31,2,69,0,144,1,205,255,49,2,59,0,220,0,246,255,96,1,147,0,206,0,211,0,141,2,185,0,51,2,41,1,53,2,28,1,82,2,121,0,254,2,192,0,142,1,118,0,130,2,178,1,233,0,8,1,225,1,211,1,129,0,91,255,187,2,239,0,90,0,26,0,86,1,218,1,201,255,27,0,132,1,94,0,84,255,0,0,213,2,123,1,196,255,81,1,114,1,209,1,95,0,63,1,38,3,83,2,78,0,4,1,241,1,83,3,210,0,48,2,202,1,62,2,48,254,202,0,241,1,113,2,54,255,152,0,48,0,200,2,236,255,54,2,100,0,203,2,199,1,212,1,155,1,93,2,63,1,134,2,195,0,103,2,145,1,26,2,168,2,227,2,201,0,155,2,178,1,186,3,198,1,169,1,134,2,235,1,94,2,169,2,160,1,252,1,241,1,54,3,170,1,47,3,148,2,135,2,116,2,204,2,185,2,210,1,106,2,201,1,173,2,204,1,109,1,53,1,209,2,55,2,68,3,89,2,97,2,44,1,57,3,203,1,175,3,175,2,169,2,21,2,147,3,86,2,79,2,243,0,108,3,195,1,106,3,164,1,18,3,61,1,220,2,220,0,154,3,61,1,84,4,111,1,19,2,210,1,4,4,137,2,29,4,103,2,10,4,41,2,61,3,90,2,253,3,31,3,159,3,35,3,110,3,251,2,31,3,240,1,93,5,5,3,73,2,2,3,35,3,162,3,75,4,25,3,198,4,94,3,185,4,127,3,1,4,215,2,4,3,77,3,148,4,91,4,99,3,253,3,62,3,245,3,73,3,142,3,250,1,191,2,215,4,53,4,108,2,51,3,172,4,59,4,131,4,57,4,118,4,139,3,11,6,97,4,29,5,136,2,63,5,100,2,204,5,220,3,199,5,169,3,217,3,48,5,187,3,61,5,173,1,142,3,73,3,58,5,52,2,155,4,156,1,132,4,147,5,40,5,154,5,50,5,128,2,248,2,190,6,130,5,190,0,43,2,49,4,237,3,170,1,1,1,71,3,212,3,235,0,231,0,240,5,143,4,109,0,37,1,246,3,33,6,49,1,142,0,124,4,27,2,221,254,148,255,189,4,204,3,22,0,40,255,155,2,60,3,30,254,182,1,197,1,151,5,187,253,90,254,21,3,131,1,154,254,58,254,174,0,12,3,220,255,140,254,134,1,122,255,139,253,160,0,206,254,239,2,22,251,181,254,177,0,10,2,8,255,62,2,5,255,127,2,237,253,151,1,172,253,138,1,93,254,21,3,151,253,33,3,38,252,143,1,167,252,215,2,249,255,6,2,65,253,54,1,137,251,232,255,22,252,31,1,64,252,107,1,237,250,56,1,2,250,245,0,235,249,49,1,28,0,153,0,165,252,81,255,223,255,76,1,138,250,102,255,212,0,154,1,175,253,59,255,188,251,64,253,120,252,191,255,26,1,111,1,106,252,82,253,89,1,93,0,254,254,155,254,184,2,132,2,75,253,228,255,192,1,237,1,239,254,193,0,15,2,34,2,13,255,255,253,128,1,120,255,17,1,159,254,0,2,114,255,25,2,58,255,173,3,238,2,83,0,248,0,66,2,93,3,200,255,80,2,74,3,44,0,124,3,24,0,33,0,122,3,240,255,214,3,63,3,118,5,255,5,106,7,180,6,96,5,156,7,185,5,22,252,95,252,184,251,77,251,127,253,93,252,164,253,63,252,245,252,95,253,189,252,236,252,96,254,104,253,54,254,2,253,116,253,247,253,106,253,17,254,1,252,3,254,1,252,84,254,68,254,216,253,144,254,63,254,33,254,45,255,226,251,121,252,196,254,7,255,199,253,177,253,199,253,237,254,227,253,65,255,52,253,68,255,182,252,248,254,179,254,8,255,194,254,28,255,237,254,1,0,201,253,28,255,141,255,35,255,18,255,138,254,59,255,5,254,34,255,189,253,254,254,80,254,195,255,12,255,167,254,2,0,174,254,39,0,41,255,87,255,198,255,0,0,200,255,250,255,53,255,125,255,1,0,70,255,251,255,45,255,6,0,132,254,11,0,94,254,140,255,131,0,122,255,113,0,89,0,252,255,71,0,254,255,237,255,64,255,6,1,24,0,189,0,151,0,123,255,147,255,186,0,103,255,166,0,37,255,37,0,139,0,193,0,171,0,81,1,124,0,158,0,195,255,141,0,226,0,243,255,190,0,231,0,34,0,98,1,109,0,60,1,201,0,244,0,164,0,74,1,171,255,134,1,172,255,254,0,71,1,1,1,79,1,235,1,147,0,220,1,105,0,54,0,77,0,181,1,114,1,165,1,58,1,193,1,86,1,73,1,126,0,161,2,36,1,59,2,132,1,243,0,193,0,141,2,64,1,109,2,24,1,194,0,124,1,5,2,69,2,45,0,67,1,111,0,166,1,233,1,139,1,222,2,22,2,110,2,34,2,230,1,246,1,62,1,60,2,189,0,38,2,129,1,166,1,99,255,153,0,131,255,126,1,59,255,130,1,249,254,78,1,228,0,185,2,68,255,1,0,51,0,41,1,5,254,213,0,136,254,141,1,232,255,255,0,221,253,89,0,10,254,162,255,131,1,179,0,148,253,68,0,84,253,112,0,126,253,162,254,252,254,172,0,74,254,188,254,8,1,136,2,60,252,252,255,159,251,7,0,122,255,134,0,147,251,206,254,143,0,96,0,92,254,15,254,59,251,162,254,9,250,83,253,95,255,72,0,105,3,179,2,220,2,27,1,153,3,97,1,78,1,219,1,71,4,53,3,96,3,12,2,75,3,241,1,202,2,199,2,20,3,238,2,52,4,202,2,180,4,241,2,65,2,150,2,124,245,170,192,38,3,44,7,95,251,33,228,37,12,28,4,40,248,202,208,85,16,107,5,192,249,99,218,69,9,145,5,232,249,78,219,176,12,193,7,210,251,214,230,35,7,16,9,184,252,64,236,173,3,242,12,199,254,163,248,47,9,161,11,41,254,234,244,32,14,116,9,247,252,183,237,123,13,24,12,98,254,70,246,139,11,205,16,72,0,178,1,56,7,148,17,139,0,68,3,44,15,40,21,157,1,180,9,163,4,42,28,67,3,166,19,11,12,40,35,139,4,90,27,216,28,115,3,37,247,177,202,74,23,226,5,58,250,60,221,35,20,86,8,61,252,88,233,8,31,217,7,228,251,65,231,107,25,202,8,139,252,49,235,246,29,192,10,180,253,47,242,64,23,200,11,60,254,92,245,34,19,180,14,131,255,17,253,77,27,4,14,60,255,103,251,238,31,138,15,213,255,252,254,176,23,52,17,107,0,133,2,29,30,223,19,64,1,136,7,147,21,133,23,57,2,98,13,89,30,214,27,50,3,62,19,172,23,2,31,209,3,253,22,218,21,223,44,243,5,212,35,85,41,76,5,159,249,153,217,89,35,61,6,145,250,68,223,66,38,243,7,247,251,180,231,242,34,111,9,244,252,164,237,56,40,24,10,87,253,253,239,191,36,174,10,171,253,245,241,252,33,146,12,156,254,160,247,29,38,67,13,235,254,123,249,193,39,52,15,181,255,58,254,210,35,176,17,148,0,123,3,168,39,140,19,40,1,245,6,154,35,103,22,241,1,177,11,4,41,122,24,116,2,198,14,126,39,207,29,151,3,158,21,140,34,23,34,93,4,72,26,252,34,208,48,112,6,193,38,124,50,208,3,185,247,47,206,171,44,219,6,28,251,141,226,106,47,24,9,189,252,96,236,124,44,64,9,214,252,248,236,204,41,248,11,83,254,236,245,44,48,45,11,238,253,136,243,202,45,255,12,205,254,200,248,6,44,116,14,106,255,120,252,109,42,61,17,110,0,151,2,50,47,181,17,150,0,134,3,19,44,85,20,98,1,84,8,184,46,161,24,125,2,253,14,159,43,110,29,132,3,44,21,96,47,137,32,25,4,168,24,217,42,25,42,149,5,156,33,60,40,224,67,87,8,53,50,75,54,145,6,220,250,15,225,36,49,253,7,254,251,221,231,209,51,135,9,2,253,254,237,209,54,173,11,47,254,14,245,140,52,26,12,99,254,78,246,108,48,74,14,89,255,18,252,198,52,196,14,137,255,55,253,80,50,176,16,62,0,118,1,221,52,253,18,253,0,243,5,123,49,81,21,168,1,248,9,30,54,218,23,78,2,223,13,231,50,83,25,166,2,244,15,245,52,41,30,169,3,7,22,157,50,95,36,189,4,136,28,146,53,31,45,252,5,5,36,47,49,102,59,146,7,147,45,9,59,4,6,91,250,4,222,224,58,29,9,192,252,113,236,191,56,207,9,45,253,0,239,100,57,127,12,147,254,107,247,22,60,232,13,49,255,33,251,53,55,120,15,206,255,212,254,254,58,140,16,50,0,42,1,252,55,216,18,242,0,174,5,254,57,75,21,166,1,238,9,202,59,195,23,72,2,190,13,249,55,232,26,0,3,15,18,212,58,9,30,162,3,226,21,70,56,210,36,207,4,245,28,27,60,13,38,0,5,26,30,232,57,191,55,52,7,94,43,32,53,107,97,109,10,195,62,12,64,177,7,198,251,139,230,177,65,16,11,223,253,45,243,97,61,27,11,229,253,80,243,232,62,8,13,209,254,223,248,0,64,123,15,207,255,218,254,44,66,227,17,165,0,224,3,95,61,247,17,171,0,6,4,94,63,72,21,165,1,233,9,192,65,238,24,143,2,105,15,129,61,229,27,53,3,80,19,198,63,45,29,120,3,223,20,227,64,176,33,76,4,222,25,132,66,178,40,99,5,111,32,33,62,41,46,29,6,207,36,238,65,98,57,95,7,96,44,131,64,134,81,102,9,147,56,222,70,35,8,25,252,131,232,201,75,106,12,137,254,47,247,100,68,98,13,248,254,203,249,86,78,187,15,231,255,105,255,149,70,153,16,54,0,70,1,8,74,202,19,58,1,98,7,47,69,26,21,153,1,157,9,123,77,48,24,98,2,92,14,30,70,102,27,27,3,176,18,70,83,197,30,198,3,184,22,246,69,73,36,186,4,115,28,200,74,74,36,186,4,116,28,37,80,117,44,230,5,129,35,155,70,149,56,74,7,226,43,31,78,218,69,129,8,52,51,154,73,252,127,0,12,62,72,61,42,81,112,63,11,181,67,0,80,225,10,198,253,153,242,153,73,194,25,191,2,139,16,81,24,245,28,108,3,156,20,51,67,204,40,103,5,133,32,122,84,245,4,61,249,74,215,143,82,71,17,113,0,171,2,40,44,20,6,106,250,95,222,61,74,20,50,150,6,164,39,215,67,194,9,37,253,210,238,194,69,225,18,244,0,192,5,10,39,194,9,37,253,210,238,122,68,184,30,196,3,170,22,174,55,92,7,133,251,5,229,20,62,81,12,125,254,233,246,61,26,10,7,67,251,121,227,10,71,225,78,53,9,109,55,102,70,215,11,67,254,138,245,71,65,225,22,16,2,109,12,143,34,174,15,226,255,76,255,20,62,10,35,134,4,60,27,102,70,112,5,198,249,129,218,71,65,0,16,0,0,0,0,0,32,143,2,108,245,79,192,133,59,102,54,16,7,132,42,174,55,40,12,106,254,116,246,10,55,61,18,193,0,141,4,30,21,143,10,154,253,143,241,122,52,153,25,182,2,84,16,163,48,133,3,67,247,100,203,163,48,102,10,131,253,7,241,184,14,143,2,108,245,79,192,153,57,215,91,22,10,183,60,225,74,153,9,13,253,62,238,184,78,215,19,62,1,121,7,225,26,0,16,0,0,0,0,0,80,112,33,65,4,156,25,204,76,225,2,26,246,105,196,61,74,163,16,58,0,91,1,184,30,40,8,29,252,151,232,204,44,0,48,87,6,43,38,20,62,194,5,26,250,126,220,112,61,20,18,180,0,62,4,215,35,153,5,240,249,131,219,184,62,92,27,25,3,164,18,235,57,225,2,26,246,105,196,225,58,204,8,140,252,55,235,215,19,204,4,12,249,38,214,215,51,174,67,83,8,27,50,163,64,30,9,193,252,118,236,225,58,184,22,6,2,46,12,92,15,102,14,100,255,86,252,174,55,153,33,72,4,198,25,235,65,10,3,106,246,74,198,225,58,225,14,149,255,122,253,174,23,102,2,12,245,17,190,122,36,40,36,180,4,83,28,215,51,225,6,33,251,172,226,215,51,194,13,33,255,193,250,153,9,174,7,196,251,127,230,204,44,153,21,187,1,108,10,245,40,225,2,26,246,105,196,112,45,122,12,145,254,92,247,194,5,10,3,106,246,74,198,0,64,248,65,226,67,190,69,142,71,82,73,12,75,188,76,98,78,0,80,150,81,35,83,170,84,42,86,163,87,22,89,130,90,234,91,76,93,168,94,0,96,83,97,161,98,236,99,49,101,115,102,177,103,235,104,34,106,85,107,132,108,177,109,218,110,0,112,35,113,67,114,97,115,123,116,147,117,169,118,188,119,204,120,218,121,230,122,239,123,247,124,252,125,255,126,255,127,255,127,61,10,63,10,69,10,78,10,91,10,108,10,129,10,153,10,181,10,212,10,248,10,31,11,74,11,120,11,170,11,224,11,25,12,86,12,151,12,219,12,35,13,110,13,189,13,15,14,101,14,190,14,27,15,123,15,223,15,70,16,176,16,30,17,143,17,3,18,123,18,245,18,115,19,244,19,120,20,0,21,138,21,23,22,168,22,59,23,209,23,106,24,6,25,165,25,70,26,234,26,145,27,59,28,231,28,149,29,70,30,250,30,176,31,104,32,35,33,224,33,159,34,97,35,36,36,234,36,178,37,124,38,71,39,21,40,228,40,181,41,136,42,93,43,51,44,11,45,228,45,191,46,155,47,121,48,88,49,56,50,26,51,252,51,224,52,196,53,170,54,145,55,120,56,96,57,73,58,51,59,29,60,8,61,243,61,223,62,203,63,184,64,165,65,146,66,127,67,108,68,90,69,71,70,52,71,33,72,14,73,251,73,231,74,211,75,191,76,170,77,149,78,126,79,104,80,80,81,56,82,31,83,5,84,234,84,207,85,178,86,148,87,116,88,84,89,50,90,15,91,235,91,197,92,157,93,117,94,74,95,30,96,240,96,192,97,143,98,91,99,38,100,239,100,181,101,122,102,60,103,253,103,187,104,119,105,48,106,232,106,156,107,79,108,255,108,172,109,87,110,255,110,165,111,71,112,231,112,133,113,31,114,183,114,75,115,221,115,108,116,248,116,129,117,6,118,137,118,8,119,133,119,254,119,116,120,230,120,86,121,194,121,42,122,144,122,242,122,80,123,171,123,3,124,87,124,167,124,244,124,62,125,132,125,198,125,5,126,64,126,120,126,172,126,220,126,9,127,49,127,87,127,120,127,150,127,176,127,199,127,217,127,232,127,243,127,251,127,255,127,255,127,229,127,153,127,25,127,103,126,129,125],"i8",S,f.GLOBAL_BASE+20480),A([106,124,33,123,167,121,252,119,34,118,24,116,223,113,122,111,231,108,41,106,65,103,47,100,245,96,149,93,15,90,101,86,153,82,171,78,158,74,116,70,45,66,204,61,82,57,193,52,27,48,98,43,151,38,189,33,213,28,226,23,230,18,226,13,216,8,203,3,61,10,64,10,73,10,88,10,108,10,135,10,167,10,205,10,249,10,43,11,99,11,160,11,227,11,44,12,122,12,207,12,40,13,136,13,237,13,87,14,199,14,60,15,183,15,55,16,189,16,71,17,215,17,108,18,6,19,165,19,73,20,242,20,159,21,82,22,9,23,196,23,133,24,73,25,18,26,224,26,177,27,135,28,97,29,62,30,32,31,5,32,238,32,219,33,203,34,191,35,182,36,176,37,174,38,174,39,177,40,184,41,193,42,204,43,218,44,235,45,254,46,19,48,42,49,67,50,94,51,123,52,154,53,186,54,219,55,254,56,34,58,71,59,109,60,148,61,188,62,228,63,13,65,54,66,96,67,138,68,180,69,221,70,7,72,48,73,89,74,130,75,169,76,208,77,246,78,27,80,63,81,98,82,132,83,164,84,194,85,223,86,250,87,19,89,43,90,64,91,83,92,99,93,113,94,125,95,134,96,140,97,143,98,144,99,141,100,135,101,126,102,114,103,98,104,79,105,56,106,30,107,255,107,221,108,183,109,140,110,94,111,43,112,244,112,185,113,121,114,53,115,236,115,158,116,76,117,245,117,153,118,55,119,209,119,102,120,246,120,129,121,6,122,134,122,1,123,118,123,230,123,81,124,182,124,21,125,111,125,195,125,17,126,90,126,157,126,219,126,18,127,68,127,112,127,150,127,183,127,209,127,230,127,244,127,253,127,255,127,255,127,244,127,208,127,149,127,66,127,215,126,85,126,188,125,12,125,69,124,104,123,117,122,108,121,78,120,28,119,213,117,122,116,13,115,140,113,250,111,87,110,162,108,222,106,11,105,40,103,57,101,60,99,51,97,30,95,255,92,215,90,165,88,108,86,44,84,229,81,154,79,74,77,247,74,161,72,74,70,243,67,156,65,71,63,244,60,164,58,88,56,18,54,209,51,152,49,103,47,62,45,31,43,11,41,2,39,5,37,21,35,51,33,95,31,155,29,231,27,67,26,177,24,49,23,195,21,105,20,34,19,239,17,209,16,201,15,214,14,249,13,50,13,130,12,232,11,102,11,252,10,169,10,109,10,73,10,61,10,61,10,63,10,67,10,74,10,84,10,96,10,111,10,129,10,150,10,174,10,200,10,229,10,5,11,39,11,77,11,117,11,159,11,205,11,253,11,48,12,101,12,157,12,216,12,22,13,86,13,153,13,222,13,38,14,113,14,190,14,13,15,96,15,181,15,12,16,102,16,194,16,33,17,130,17,230,17,76,18,180,18,31,19,140,19,252,19,110,20,226,20,88,21,209,21,76,22,201,22,72,23,202,23,77,24,211,24,91,25,229,25,113,26,254,26,142,27,32,28,180,28,74,29,225,29,123,30,22,31,179,31,82,32,242,32,149,33,57,34,222,34,133,35,46,36,216,36,132,37,50,38,224,38,145,39,66,40,245,40,169,41,95,42,22,43,206,43,135,44,66,45,253,45,186,46,120,47,54,48,246,48,183,49,120,50,59,51,254,51,194,52,135,53,77,54,19,55,218,55,161,56,106,57,50,58,252,58,197,59,144,60,90,61,37,62,240,62,188,63,136,64,84,65,32,66,236,66,185,67,133,68,82,69,30,70,235,70,183,71,132,72,80,73,28,74,231,74,179,75,126,76,73,77,19,78,221,78,166,79,111,80,56,81,0,82,199,82,142,83,84,84,25,85,221,85,161,86,100,87,38,88,231,88,167,89,103,90,37,91,226,91,158,92,89,93,19,94,204,94,131,95,57,96,238,96,162,97,84,98,5,99,181,99,99,100,15,101,186,101,100,102,12,103,178,103,87,104,250,104,155,105,59,106,217,106,117,107,16,108,168,108,63,109,211,109,102,110,247,110,134,111,19,112,158,112,39,113,174,113,50,114,181,114,53,115,179,115,47,116,169,116,33,117,150,117,9,118,122,118,232,118,84,119,190,119,37,120,138,120,236,120,76,121,170,121,5,122,94,122,180,122,7,123,88,123,167,123,242,123,60,124,130,124,198,124,8,125,71,125,131,125,188,125,243,125,39,126,89,126,136,126,180,126,221,126,4,127,40,127,73,127,103,127,131,127,156,127,178,127,197,127,214,127,228,127,239,127,247,127,253,127,255,127,255,127,97,125,160,117,15,105,48,88,181,67,116,44,98,19,68,101,99,111,100,101,114,0,101,110,99,111,100,101,114,0],"i8",S,f.GLOBAL_BASE+30720);var He=f.alignMemory(A(12,"i8",E),8);function We(e){var r=We;r.called||(le=te(le),r.called=!0,b(f.dynamicAlloc),r.alloc=f.dynamicAlloc,f.dynamicAlloc=function(){gr("cannot dynamically allocate, sbrk now has control")});var t=le;return 0==e||r.alloc(e)?t:-1>>>0}function Ye(r){return e.___errno_location&&(Z[e.___errno_location()>>2]=r),r}b(He%8==0);var Ge={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};function Xe(e){switch(e){case 30:return re;case 85:return he/re;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==typeof navigator&&navigator.hardwareConcurrency||1}return Ye(Ge.EINVAL),-1}function Ke(e,r,t){return X.set(X.subarray(r,r+t),e),e}function Je(){e.abort()}e.L=pr,e.F=cr,e.P=hr;var Ze={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can   access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"},$e={ttys:[],init:function(){},shutdown:function(){},register:function(e,r){$e.ttys[e]={input:[],output:[],ops:r},tr.registerDevice(e,$e.stream_ops)},stream_ops:{open:function(e){var r=$e.ttys[e.node.rdev];if(!r)throw new tr.ErrnoError(Ge.ENODEV);e.tty=r,e.seekable=!1},close:function(e){e.tty.ops.flush(e.tty)},flush:function(e){e.tty.ops.flush(e.tty)},read:function(e,r,t,n,i){if(!e.tty||!e.tty.ops.get_char)throw new tr.ErrnoError(Ge.ENXIO);for(var o=0,s=0;s<n;s++){var a;try{a=e.tty.ops.get_char(e.tty)}catch(e){throw new tr.ErrnoError(Ge.EIO)}if(void 0===a&&0===o)throw new tr.ErrnoError(Ge.EAGAIN);if(null==a)break;o++,r[t+s]=a}return o&&(e.node.timestamp=Date.now()),o},write:function(e,r,t,n,i){if(!e.tty||!e.tty.ops.put_char)throw new tr.ErrnoError(Ge.ENXIO);for(var o=0;o<n;o++)try{e.tty.ops.put_char(e.tty,r[t+o])}catch(e){throw new tr.ErrnoError(Ge.EIO)}return n&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:function(e){if(!e.input.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(r=window.prompt("Input: "))&&(r+="\n"):"function"==typeof readline&&null!==(r=readline())&&(r+="\n"),!r)return null;e.input=Te(r,!0)}return e.input.shift()},put_char:function(r,t){null===t||10===t?(e.print(T(r.output,0)),r.output=[]):0!=t&&r.output.push(t)},flush:function(r){r.output&&r.output.length>0&&(e.print(T(r.output,0)),r.output=[])}},default_tty1_ops:{put_char:function(r,t){null===t||10===t?(e.printErr(T(r.output,0)),r.output=[]):0!=t&&r.output.push(t)},flush:function(r){r.output&&r.output.length>0&&(e.printErr(T(r.output,0)),r.output=[])}}},Qe={ops_table:null,mount:function(e){return Qe.createNode(null,"/",16895,0)},createNode:function(e,r,t,n){if(tr.isBlkdev(t)||tr.isFIFO(t))throw new tr.ErrnoError(Ge.EPERM);Qe.ops_table||(Qe.ops_table={dir:{node:{getattr:Qe.node_ops.getattr,setattr:Qe.node_ops.setattr,lookup:Qe.node_ops.lookup,mknod:Qe.node_ops.mknod,rename:Qe.node_ops.rename,unlink:Qe.node_ops.unlink,rmdir:Qe.node_ops.rmdir,readdir:Qe.node_ops.readdir,symlink:Qe.node_ops.symlink},stream:{llseek:Qe.stream_ops.llseek}},file:{node:{getattr:Qe.node_ops.getattr,setattr:Qe.node_ops.setattr},stream:{llseek:Qe.stream_ops.llseek,read:Qe.stream_ops.read,write:Qe.stream_ops.write,allocate:Qe.stream_ops.allocate,mmap:Qe.stream_ops.mmap,msync:Qe.stream_ops.msync}},link:{node:{getattr:Qe.node_ops.getattr,setattr:Qe.node_ops.setattr,readlink:Qe.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Qe.node_ops.getattr,setattr:Qe.node_ops.setattr},stream:tr.chrdev_stream_ops}});var i=tr.createNode(e,r,t,n);return tr.isDir(i.mode)?(i.node_ops=Qe.ops_table.dir.node,i.stream_ops=Qe.ops_table.dir.stream,i.contents={}):tr.isFile(i.mode)?(i.node_ops=Qe.ops_table.file.node,i.stream_ops=Qe.ops_table.file.stream,i.usedBytes=0,i.contents=null):tr.isLink(i.mode)?(i.node_ops=Qe.ops_table.link.node,i.stream_ops=Qe.ops_table.link.stream):tr.isChrdev(i.mode)&&(i.node_ops=Qe.ops_table.chrdev.node,i.stream_ops=Qe.ops_table.chrdev.stream),i.timestamp=Date.now(),e&&(e.contents[r]=i),i},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var r=[],t=0;t<e.usedBytes;++t)r.push(e.contents[t]);return r}return e.contents},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array},expandFileStorage:function(e,r){if(e.contents&&e.contents.subarray&&r>e.contents.length&&(e.contents=Qe.getFileDataAsRegularArray(e),e.usedBytes=e.contents.length),!e.contents||e.contents.subarray){var t=e.contents?e.contents.buffer.byteLength:0;if(t>=r)return;r=Math.max(r,t*(t<1048576?2:1.125)|0),0!=t&&(r=Math.max(r,256));var n=e.contents;return e.contents=new Uint8Array(r),void(e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0))}for(!e.contents&&r>0&&(e.contents=[]);e.contents.length<r;)e.contents.push(0)},resizeFileStorage:function(e,r){if(e.usedBytes!=r){if(0==r)return e.contents=null,void(e.usedBytes=0);if(!e.contents||e.contents.subarray){var t=e.contents;return e.contents=new Uint8Array(new ArrayBuffer(r)),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),void(e.usedBytes=r)}if(e.contents||(e.contents=[]),e.contents.length>r)e.contents.length=r;else for(;e.contents.length<r;)e.contents.push(0);e.usedBytes=r}},node_ops:{getattr:function(e){var r={};return r.dev=tr.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,tr.isDir(e.mode)?r.size=4096:tr.isFile(e.mode)?r.size=e.usedBytes:tr.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr:function(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&Qe.resizeFileStorage(e,r.size)},lookup:function(e,r){throw tr.genericErrors[Ge.ENOENT]},mknod:function(e,r,t,n){return Qe.createNode(e,r,t,n)},rename:function(e,r,t){if(tr.isDir(e.mode)){var n;try{n=tr.lookupNode(r,t)}catch(e){}if(n)for(var i in n.contents)throw new tr.ErrnoError(Ge.ENOTEMPTY)}delete e.parent.contents[e.name],e.name=t,r.contents[t]=e,e.parent=r},unlink:function(e,r){delete e.contents[r]},rmdir:function(e,r){var t=tr.lookupNode(e,r);for(var n in t.contents)throw new tr.ErrnoError(Ge.ENOTEMPTY);delete e.contents[r]},readdir:function(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink:function(e,r,t){var n=Qe.createNode(e,r,41471,0);return n.link=t,n},readlink:function(e){if(!tr.isLink(e.mode))throw new tr.ErrnoError(Ge.EINVAL);return e.link}},stream_ops:{read:function(e,r,t,n,i){var o=e.node.contents;if(i>=e.node.usedBytes)return 0;var s=Math.min(e.node.usedBytes-i,n);if(b(s>=0),s>8&&o.subarray)r.set(o.subarray(i,i+s),t);else for(var a=0;a<s;a++)r[t+a]=o[i+a];return s},write:function(e,r,t,n,i,o){if(!n)return 0;var s=e.node;if(s.timestamp=Date.now(),r.subarray&&(!s.contents||s.contents.subarray)){if(o)return s.contents=r.subarray(t,t+n),s.usedBytes=n,n;if(0===s.usedBytes&&0===i)return s.contents=new Uint8Array(r.subarray(t,t+n)),s.usedBytes=n,n;if(i+n<=s.usedBytes)return s.contents.set(r.subarray(t,t+n),i),n}if(Qe.expandFileStorage(s,i+n),s.contents.subarray&&r.subarray)s.contents.set(r.subarray(t,t+n),i);else for(var a=0;a<n;a++)s.contents[i+a]=r[t+a];return s.usedBytes=Math.max(s.usedBytes,i+n),n},llseek:function(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&tr.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new tr.ErrnoError(Ge.EINVAL);return n},allocate:function(e,r,t){Qe.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap:function(e,r,t,n,i,o,s){if(!tr.isFile(e.node.mode))throw new tr.ErrnoError(Ge.ENODEV);var a,l,u=e.node.contents;if(2&s||u.buffer!==r&&u.buffer!==r.buffer){if((i>0||i+n<e.node.usedBytes)&&(u=u.subarray?u.subarray(i,i+n):Array.prototype.slice.call(u,i,i+n)),l=!0,!(a=mr(n)))throw new tr.ErrnoError(Ge.ENOMEM);r.set(u,a)}else l=!1,a=u.byteOffset;return{ptr:a,allocated:l}},msync:function(e,r,t,n,i){if(!tr.isFile(e.node.mode))throw new tr.ErrnoError(Ge.ENODEV);return 2&i||Qe.stream_ops.write(e,r,0,n,t,!1),0}}},er={dbs:{},indexedDB:function(){if("undefined"!=typeof indexedDB)return indexedDB;var e=null;return"object"==typeof window&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),b(e,"IDBFS used, but indexedDB not supported"),e},DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function(e){return Qe.mount.apply(null,arguments)},syncfs:function(e,r,t){er.getLocalSet(e,(function(n,i){if(n)return t(n);er.getRemoteSet(e,(function(e,n){if(e)return t(e);var o=r?n:i,s=r?i:n;er.reconcile(o,s,t)}))}))},getDB:function(e,r){var t,n=er.dbs[e];if(n)return r(null,n);try{t=er.indexedDB().open(e,er.DB_VERSION)}catch(e){return r(e)}t.onupgradeneeded=function(e){var r,t=e.target.result,n=e.target.transaction;(r=t.objectStoreNames.contains(er.DB_STORE_NAME)?n.objectStore(er.DB_STORE_NAME):t.createObjectStore(er.DB_STORE_NAME)).indexNames.contains("timestamp")||r.createIndex("timestamp","timestamp",{unique:!1})},t.onsuccess=function(){n=t.result,er.dbs[e]=n,r(null,n)},t.onerror=function(e){r(this.error),e.preventDefault()}},getLocalSet:function(e,r){var t={};function n(e){return"."!==e&&".."!==e}function i(e){return function(r){return nr.join2(e,r)}}for(var o=tr.readdir(e.mountpoint).filter(n).map(i(e.mountpoint));o.length;){var s,a=o.pop();try{s=tr.stat(a)}catch(e){return r(e)}tr.isDir(s.mode)&&o.push.apply(o,tr.readdir(a).filter(n).map(i(a))),t[a]={timestamp:s.mtime}}return r(null,{type:"local",entries:t})},getRemoteSet:function(e,r){var t={};er.getDB(e.mountpoint,(function(e,n){if(e)return r(e);var i=n.transaction([er.DB_STORE_NAME],"readonly");i.onerror=function(e){r(this.error),e.preventDefault()},i.objectStore(er.DB_STORE_NAME).index("timestamp").openKeyCursor().onsuccess=function(e){var i=e.target.result;if(!i)return r(null,{type:"remote",db:n,entries:t});t[i.primaryKey]={timestamp:i.key},i.continue()}}))},loadLocalEntry:function(e,r){var t,n;try{n=tr.lookupPath(e).node,t=tr.stat(e)}catch(e){return r(e)}return tr.isDir(t.mode)?r(null,{timestamp:t.mtime,mode:t.mode}):tr.isFile(t.mode)?(n.contents=Qe.getFileDataAsTypedArray(n),r(null,{timestamp:t.mtime,mode:t.mode,contents:n.contents})):r(new Error("node type not supported"))},storeLocalEntry:function(e,r,t){try{if(tr.isDir(r.mode))tr.mkdir(e,r.mode);else{if(!tr.isFile(r.mode))return t(new Error("node type not supported"));tr.writeFile(e,r.contents,{encoding:"binary",canOwn:!0})}tr.chmod(e,r.mode),tr.utime(e,r.timestamp,r.timestamp)}catch(e){return t(e)}t(null)},removeLocalEntry:function(e,r){try{tr.lookupPath(e);var t=tr.stat(e);tr.isDir(t.mode)?tr.rmdir(e):tr.isFile(t.mode)&&tr.unlink(e)}catch(e){return r(e)}r(null)},loadRemoteEntry:function(e,r,t){var n=e.get(r);n.onsuccess=function(e){t(null,e.target.result)},n.onerror=function(e){t(this.error),e.preventDefault()}},storeRemoteEntry:function(e,r,t,n){var i=e.put(t,r);i.onsuccess=function(){n(null)},i.onerror=function(e){n(this.error),e.preventDefault()}},removeRemoteEntry:function(e,r,t){var n=e.delete(r);n.onsuccess=function(){t(null)},n.onerror=function(e){t(this.error),e.preventDefault()}},reconcile:function(e,r,t){var n=0,i=[];Object.keys(e.entries).forEach((function(t){var o=e.entries[t],s=r.entries[t];(!s||o.timestamp>s.timestamp)&&(i.push(t),n++)}));var o=[];if(Object.keys(r.entries).forEach((function(t){r.entries[t],e.entries[t]||(o.push(t),n++)})),!n)return t(null);var s=0,a=("remote"===e.type?e.db:r.db).transaction([er.DB_STORE_NAME],"readwrite"),l=a.objectStore(er.DB_STORE_NAME);function u(e){return e?u.errored?void 0:(u.errored=!0,t(e)):++s>=n?t(null):void 0}a.onerror=function(e){u(this.error),e.preventDefault()},i.sort().forEach((function(e){"local"===r.type?er.loadRemoteEntry(l,e,(function(r,t){if(r)return u(r);er.storeLocalEntry(e,t,u)})):er.loadLocalEntry(e,(function(r,t){if(r)return u(r);er.storeRemoteEntry(l,e,t,u)}))})),o.sort().reverse().forEach((function(e){"local"===r.type?er.removeLocalEntry(e,u):er.removeRemoteEntry(l,e,u)}))}},rr={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function(e){b(o),rr.reader||(rr.reader=new FileReaderSync);var r=rr.createNode(null,"/",rr.DIR_MODE,0),t={};function n(e){for(var n=e.split("/"),i=r,o=0;o<n.length-1;o++){var s=n.slice(0,o+1).join("/");t[s]||(t[s]=rr.createNode(i,s,rr.DIR_MODE,0)),i=t[s]}return i}function i(e){var r=e.split("/");return r[r.length-1]}return Array.prototype.forEach.call(e.opts.files||[],(function(e){rr.createNode(n(e.name),i(e.name),rr.FILE_MODE,0,e,e.lastModifiedDate)})),(e.opts.blobs||[]).forEach((function(e){rr.createNode(n(e.name),i(e.name),rr.FILE_MODE,0,e.data)})),(e.opts.packages||[]).forEach((function(e){e.metadata.files.forEach((function(r){var t=r.filename.substr(1);rr.createNode(n(t),i(t),rr.FILE_MODE,0,e.blob.slice(r.start,r.end))}))})),r},createNode:function(e,r,t,n,i,o){var s=tr.createNode(e,r,t);return s.mode=t,s.node_ops=rr.node_ops,s.stream_ops=rr.stream_ops,s.timestamp=(o||new Date).getTime(),b(rr.FILE_MODE!==rr.DIR_MODE),t===rr.FILE_MODE?(s.size=i.size,s.contents=i):(s.size=4096,s.contents={}),e&&(e.contents[r]=s),s},node_ops:{getattr:function(e){return{dev:1,ino:void 0,mode:e.mode,nlink:1,uid:0,gid:0,rdev:void 0,size:e.size,atime:new Date(e.timestamp),mtime:new Date(e.timestamp),ctime:new Date(e.timestamp),blksize:4096,blocks:Math.ceil(e.size/4096)}},setattr:function(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp)},lookup:function(e,r){throw new tr.ErrnoError(Ge.ENOENT)},mknod:function(e,r,t,n){throw new tr.ErrnoError(Ge.EPERM)},rename:function(e,r,t){throw new tr.ErrnoError(Ge.EPERM)},unlink:function(e,r){throw new tr.ErrnoError(Ge.EPERM)},rmdir:function(e,r){throw new tr.ErrnoError(Ge.EPERM)},readdir:function(e){throw new tr.ErrnoError(Ge.EPERM)},symlink:function(e,r,t){throw new tr.ErrnoError(Ge.EPERM)},readlink:function(e){throw new tr.ErrnoError(Ge.EPERM)}},stream_ops:{read:function(e,r,t,n,i){if(i>=e.node.size)return 0;var o=e.node.contents.slice(i,i+n),s=rr.reader.readAsArrayBuffer(o);return r.set(new Uint8Array(s),t),o.size},write:function(e,r,t,n,i){throw new tr.ErrnoError(Ge.EIO)},llseek:function(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&tr.isFile(e.node.mode)&&(n+=e.node.size),n<0)throw new tr.ErrnoError(Ge.EINVAL);return n}}};A(1,"i32*",E),A(1,"i32*",E),A(1,"i32*",E);var tr={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,handleFSError:function(e){if(!(e instanceof tr.ErrnoError))throw e+" : "+W();return Ye(e.errno)},lookupPath:function(e,r){if(r=r||{},!(e=nr.resolve(tr.cwd(),e)))return{path:"",node:null};var t={follow_mount:!0,recurse_count:0};for(var n in t)void 0===r[n]&&(r[n]=t[n]);if(r.recurse_count>8)throw new tr.ErrnoError(Ge.ELOOP);for(var i=nr.normalizeArray(e.split("/").filter((function(e){return!!e})),!1),o=tr.root,s="/",a=0;a<i.length;a++){var l=a===i.length-1;if(l&&r.parent)break;if(o=tr.lookupNode(o,i[a]),s=nr.join2(s,i[a]),tr.isMountpoint(o)&&(!l||l&&r.follow_mount)&&(o=o.mounted.root),!l||r.follow)for(var u=0;tr.isLink(o.mode);){var f=tr.readlink(s);if(s=nr.resolve(nr.dirname(s),f),o=tr.lookupPath(s,{recurse_count:r.recurse_count}).node,u++>40)throw new tr.ErrnoError(Ge.ELOOP)}}return{path:s,node:o}},getPath:function(e){for(var r;;){if(tr.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?t+"/"+r:t+r:t}r=r?e.name+"/"+r:e.name,e=e.parent}},hashName:function(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%tr.nameTable.length},hashAddNode:function(e){var r=tr.hashName(e.parent.id,e.name);e.name_next=tr.nameTable[r],tr.nameTable[r]=e},hashRemoveNode:function(e){var r=tr.hashName(e.parent.id,e.name);if(tr.nameTable[r]===e)tr.nameTable[r]=e.name_next;else for(var t=tr.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode:function(e,r){var t=tr.mayLookup(e);if(t)throw new tr.ErrnoError(t,e);for(var n=tr.hashName(e.id,r),i=tr.nameTable[n];i;i=i.name_next){var o=i.name;if(i.parent.id===e.id&&o===r)return i}return tr.lookup(e,r)},createNode:function(e,r,t,n){tr.FSNode||(tr.FSNode=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=tr.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},tr.FSNode.prototype={},Object.defineProperties(tr.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tr.isDir(this.mode)}},isDevice:{get:function(){return tr.isChrdev(this.mode)}}}));var i=new tr.FSNode(e,r,t,n);return tr.hashAddNode(i),i},destroyNode:function(e){tr.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return 49152==(49152&e)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(e){var r=tr.flagModes[e];if(void 0===r)throw new Error("Unknown file open mode: "+e);return r},flagsToPermissionString:function(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:function(e,r){return tr.ignorePermissions||(-1===r.indexOf("r")||292&e.mode)&&(-1===r.indexOf("w")||146&e.mode)&&(-1===r.indexOf("x")||73&e.mode)?0:Ge.EACCES},mayLookup:function(e){return tr.nodePermissions(e,"x")||(e.node_ops.lookup?0:Ge.EACCES)},mayCreate:function(e,r){try{return tr.lookupNode(e,r),Ge.EEXIST}catch(e){}return tr.nodePermissions(e,"wx")},mayDelete:function(e,r,t){var n;try{n=tr.lookupNode(e,r)}catch(e){return e.errno}var i=tr.nodePermissions(e,"wx");if(i)return i;if(t){if(!tr.isDir(n.mode))return Ge.ENOTDIR;if(tr.isRoot(n)||tr.getPath(n)===tr.cwd())return Ge.EBUSY}else if(tr.isDir(n.mode))return Ge.EISDIR;return 0},mayOpen:function(e,r){return e?tr.isLink(e.mode)?Ge.ELOOP:tr.isDir(e.mode)&&(0!=(2097155&r)||512&r)?Ge.EISDIR:tr.nodePermissions(e,tr.flagsToPermissionString(r)):Ge.ENOENT},MAX_OPEN_FDS:4096,nextfd:function(e,r){e=e||0,r=r||tr.MAX_OPEN_FDS;for(var t=e;t<=r;t++)if(!tr.streams[t])return t;throw new tr.ErrnoError(Ge.EMFILE)},getStream:function(e){return tr.streams[e]},createStream:function(e,r,t){tr.FSStream||(tr.FSStream=function(){},tr.FSStream.prototype={},Object.defineProperties(tr.FSStream.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var n=new tr.FSStream;for(var i in e)n[i]=e[i];e=n;var o=tr.nextfd(r,t);return e.fd=o,tr.streams[o]=e,e},closeStream:function(e){tr.streams[e]=null},chrdev_stream_ops:{open:function(e){var r=tr.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new tr.ErrnoError(Ge.ESPIPE)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,r){return e<<8|r},registerDevice:function(e,r){tr.devices[e]={stream_ops:r}},getDevice:function(e){return tr.devices[e]},getMounts:function(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs:function(e,r){"function"==typeof e&&(r=e,e=!1);var t=tr.getMounts(tr.root.mount),n=0;function i(e){if(e)return i.errored?void 0:(i.errored=!0,r(e));++n>=t.length&&r(null)}t.forEach((function(r){if(!r.type.syncfs)return i(null);r.type.syncfs(r,e,i)}))},mount:function(e,r,t){var n,i="/"===t,o=!t;if(i&&tr.root)throw new tr.ErrnoError(Ge.EBUSY);if(!i&&!o){var s=tr.lookupPath(t,{follow_mount:!1});if(t=s.path,n=s.node,tr.isMountpoint(n))throw new tr.ErrnoError(Ge.EBUSY);if(!tr.isDir(n.mode))throw new tr.ErrnoError(Ge.ENOTDIR)}var a={type:e,opts:r,mountpoint:t,mounts:[]},l=e.mount(a);return l.mount=a,a.root=l,i?tr.root=l:n&&(n.mounted=a,n.mount&&n.mount.mounts.push(a)),l},unmount:function(e){var r=tr.lookupPath(e,{follow_mount:!1});if(!tr.isMountpoint(r.node))throw new tr.ErrnoError(Ge.EINVAL);var t=r.node,n=t.mounted,i=tr.getMounts(n);Object.keys(tr.nameTable).forEach((function(e){for(var r=tr.nameTable[e];r;){var t=r.name_next;-1!==i.indexOf(r.mount)&&tr.destroyNode(r),r=t}})),t.mounted=null;var o=t.mount.mounts.indexOf(n);b(-1!==o),t.mount.mounts.splice(o,1)},lookup:function(e,r){return e.node_ops.lookup(e,r)},mknod:function(e,r,t){var n=tr.lookupPath(e,{parent:!0}).node,i=nr.basename(e);if(!i||"."===i||".."===i)throw new tr.ErrnoError(Ge.EINVAL);var o=tr.mayCreate(n,i);if(o)throw new tr.ErrnoError(o);if(!n.node_ops.mknod)throw new tr.ErrnoError(Ge.EPERM);return n.node_ops.mknod(n,i,r,t)},create:function(e,r){return r=void 0!==r?r:438,r&=4095,r|=32768,tr.mknod(e,r,0)},mkdir:function(e,r){return r=void 0!==r?r:511,r&=1023,r|=16384,tr.mknod(e,r,0)},mkdev:function(e,r,t){return void 0===t&&(t=r,r=438),r|=8192,tr.mknod(e,r,t)},symlink:function(e,r){if(!nr.resolve(e))throw new tr.ErrnoError(Ge.ENOENT);var t=tr.lookupPath(r,{parent:!0}).node;if(!t)throw new tr.ErrnoError(Ge.ENOENT);var n=nr.basename(r),i=tr.mayCreate(t,n);if(i)throw new tr.ErrnoError(i);if(!t.node_ops.symlink)throw new tr.ErrnoError(Ge.EPERM);return t.node_ops.symlink(t,n,e)},rename:function(e,r){var t,n,i=nr.dirname(e),o=nr.dirname(r),s=nr.basename(e),a=nr.basename(r);try{t=tr.lookupPath(e,{parent:!0}).node,n=tr.lookupPath(r,{parent:!0}).node}catch(e){throw new tr.ErrnoError(Ge.EBUSY)}if(!t||!n)throw new tr.ErrnoError(Ge.ENOENT);if(t.mount!==n.mount)throw new tr.ErrnoError(Ge.EXDEV);var l,u=tr.lookupNode(t,s),f=nr.relative(e,o);if("."!==f.charAt(0))throw new tr.ErrnoError(Ge.EINVAL);if("."!==(f=nr.relative(r,i)).charAt(0))throw new tr.ErrnoError(Ge.ENOTEMPTY);try{l=tr.lookupNode(n,a)}catch(e){}if(u!==l){var c=tr.isDir(u.mode),d=tr.mayDelete(t,s,c);if(d)throw new tr.ErrnoError(d);if(d=l?tr.mayDelete(n,a,c):tr.mayCreate(n,a))throw new tr.ErrnoError(d);if(!t.node_ops.rename)throw new tr.ErrnoError(Ge.EPERM);if(tr.isMountpoint(u)||l&&tr.isMountpoint(l))throw new tr.ErrnoError(Ge.EBUSY);if(n!==t&&(d=tr.nodePermissions(t,"w")))throw new tr.ErrnoError(d);try{tr.trackingDelegate.willMovePath&&tr.trackingDelegate.willMovePath(e,r)}catch(t){console.log("FS.trackingDelegate['willMovePath']('"+e+"', '"+r+"') threw an exception: "+t.message)}tr.hashRemoveNode(u);try{t.node_ops.rename(u,n,a)}catch(e){throw e}finally{tr.hashAddNode(u)}try{tr.trackingDelegate.onMovePath&&tr.trackingDelegate.onMovePath(e,r)}catch(t){console.log("FS.trackingDelegate['onMovePath']('"+e+"', '"+r+"') threw an exception: "+t.message)}}},rmdir:function(e){var r=tr.lookupPath(e,{parent:!0}).node,t=nr.basename(e),n=tr.lookupNode(r,t),i=tr.mayDelete(r,t,!0);if(i)throw new tr.ErrnoError(i);if(!r.node_ops.rmdir)throw new tr.ErrnoError(Ge.EPERM);if(tr.isMountpoint(n))throw new tr.ErrnoError(Ge.EBUSY);try{tr.trackingDelegate.willDeletePath&&tr.trackingDelegate.willDeletePath(e)}catch(r){console.log("FS.trackingDelegate['willDeletePath']('"+e+"') threw an exception: "+r.message)}r.node_ops.rmdir(r,t),tr.destroyNode(n);try{tr.trackingDelegate.onDeletePath&&tr.trackingDelegate.onDeletePath(e)}catch(r){console.log("FS.trackingDelegate['onDeletePath']('"+e+"') threw an exception: "+r.message)}},readdir:function(e){var r=tr.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new tr.ErrnoError(Ge.ENOTDIR);return r.node_ops.readdir(r)},unlink:function(e){var r=tr.lookupPath(e,{parent:!0}).node,t=nr.basename(e),n=tr.lookupNode(r,t),i=tr.mayDelete(r,t,!1);if(i)throw i===Ge.EISDIR&&(i=Ge.EPERM),new tr.ErrnoError(i);if(!r.node_ops.unlink)throw new tr.ErrnoError(Ge.EPERM);if(tr.isMountpoint(n))throw new tr.ErrnoError(Ge.EBUSY);try{tr.trackingDelegate.willDeletePath&&tr.trackingDelegate.willDeletePath(e)}catch(r){console.log("FS.trackingDelegate['willDeletePath']('"+e+"') threw an exception: "+r.message)}r.node_ops.unlink(r,t),tr.destroyNode(n);try{tr.trackingDelegate.onDeletePath&&tr.trackingDelegate.onDeletePath(e)}catch(r){console.log("FS.trackingDelegate['onDeletePath']('"+e+"') threw an exception: "+r.message)}},readlink:function(e){var r=tr.lookupPath(e).node;if(!r)throw new tr.ErrnoError(Ge.ENOENT);if(!r.node_ops.readlink)throw new tr.ErrnoError(Ge.EINVAL);return nr.resolve(tr.getPath(r.parent),r.node_ops.readlink(r))},stat:function(e,r){var t=tr.lookupPath(e,{follow:!r}).node;if(!t)throw new tr.ErrnoError(Ge.ENOENT);if(!t.node_ops.getattr)throw new tr.ErrnoError(Ge.EPERM);return t.node_ops.getattr(t)},lstat:function(e){return tr.stat(e,!0)},chmod:function(e,r,t){var n;if(!(n="string"==typeof e?tr.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new tr.ErrnoError(Ge.EPERM);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod:function(e,r){tr.chmod(e,r,!0)},fchmod:function(e,r){var t=tr.getStream(e);if(!t)throw new tr.ErrnoError(Ge.EBADF);tr.chmod(t.node,r)},chown:function(e,r,t,n){var i;if(!(i="string"==typeof e?tr.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new tr.ErrnoError(Ge.EPERM);i.node_ops.setattr(i,{timestamp:Date.now()})},lchown:function(e,r,t){tr.chown(e,r,t,!0)},fchown:function(e,r,t){var n=tr.getStream(e);if(!n)throw new tr.ErrnoError(Ge.EBADF);tr.chown(n.node,r,t)},truncate:function(e,r){if(r<0)throw new tr.ErrnoError(Ge.EINVAL);var t;if(!(t="string"==typeof e?tr.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new tr.ErrnoError(Ge.EPERM);if(tr.isDir(t.mode))throw new tr.ErrnoError(Ge.EISDIR);if(!tr.isFile(t.mode))throw new tr.ErrnoError(Ge.EINVAL);var n=tr.nodePermissions(t,"w");if(n)throw new tr.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate:function(e,r){var t=tr.getStream(e);if(!t)throw new tr.ErrnoError(Ge.EBADF);if(0==(2097155&t.flags))throw new tr.ErrnoError(Ge.EINVAL);tr.truncate(t.node,r)},utime:function(e,r,t){var n=tr.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open:function(r,t,n,i,o){if(""===r)throw new tr.ErrnoError(Ge.ENOENT);var s;if(n=void 0===n?438:n,n=64&(t="string"==typeof t?tr.modeStringToFlags(t):t)?4095&n|32768:0,"object"==typeof r)s=r;else{r=nr.normalize(r);try{s=tr.lookupPath(r,{follow:!(131072&t)}).node}catch(e){}}var a=!1;if(64&t)if(s){if(128&t)throw new tr.ErrnoError(Ge.EEXIST)}else s=tr.mknod(r,n,0),a=!0;if(!s)throw new tr.ErrnoError(Ge.ENOENT);if(tr.isChrdev(s.mode)&&(t&=-513),65536&t&&!tr.isDir(s.mode))throw new tr.ErrnoError(Ge.ENOTDIR);if(!a){var l=tr.mayOpen(s,t);if(l)throw new tr.ErrnoError(l)}512&t&&tr.truncate(s,0),t&=-641;var u=tr.createStream({node:s,path:tr.getPath(s),flags:t,seekable:!0,position:0,stream_ops:s.stream_ops,ungotten:[],error:!1},i,o);u.stream_ops.open&&u.stream_ops.open(u),!e.logReadFiles||1&t||(tr.readFiles||(tr.readFiles={}),r in tr.readFiles||(tr.readFiles[r]=1,e.printErr("read file: "+r)));try{if(tr.trackingDelegate.onOpenFile){var f=0;1!=(2097155&t)&&(f|=tr.tracking.openFlags.READ),0!=(2097155&t)&&(f|=tr.tracking.openFlags.WRITE),tr.trackingDelegate.onOpenFile(r,f)}}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+r+"', flags) threw an exception: "+e.message)}return u},close:function(e){e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{tr.closeStream(e.fd)}},llseek:function(e,r,t){if(!e.seekable||!e.stream_ops.llseek)throw new tr.ErrnoError(Ge.ESPIPE);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read:function(e,r,t,n,i){if(n<0||i<0)throw new tr.ErrnoError(Ge.EINVAL);if(1==(2097155&e.flags))throw new tr.ErrnoError(Ge.EBADF);if(tr.isDir(e.node.mode))throw new tr.ErrnoError(Ge.EISDIR);if(!e.stream_ops.read)throw new tr.ErrnoError(Ge.EINVAL);var o=!0;if(void 0===i)i=e.position,o=!1;else if(!e.seekable)throw new tr.ErrnoError(Ge.ESPIPE);var s=e.stream_ops.read(e,r,t,n,i);return o||(e.position+=s),s},write:function(e,r,t,n,i,o){if(n<0||i<0)throw new tr.ErrnoError(Ge.EINVAL);if(0==(2097155&e.flags))throw new tr.ErrnoError(Ge.EBADF);if(tr.isDir(e.node.mode))throw new tr.ErrnoError(Ge.EISDIR);if(!e.stream_ops.write)throw new tr.ErrnoError(Ge.EINVAL);1024&e.flags&&tr.llseek(e,0,2);var s=!0;if(void 0===i)i=e.position,s=!1;else if(!e.seekable)throw new tr.ErrnoError(Ge.ESPIPE);var a=e.stream_ops.write(e,r,t,n,i,o);s||(e.position+=a);try{e.path&&tr.trackingDelegate.onWriteToFile&&tr.trackingDelegate.onWriteToFile(e.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return a},allocate:function(e,r,t){if(r<0||t<=0)throw new tr.ErrnoError(Ge.EINVAL);if(0==(2097155&e.flags))throw new tr.ErrnoError(Ge.EBADF);if(!tr.isFile(e.node.mode)&&!tr.isDir(node.mode))throw new tr.ErrnoError(Ge.ENODEV);if(!e.stream_ops.allocate)throw new tr.ErrnoError(Ge.EOPNOTSUPP);e.stream_ops.allocate(e,r,t)},mmap:function(e,r,t,n,i,o,s){if(1==(2097155&e.flags))throw new tr.ErrnoError(Ge.EACCES);if(!e.stream_ops.mmap)throw new tr.ErrnoError(Ge.ENODEV);return e.stream_ops.mmap(e,r,t,n,i,o,s)},msync:function(e,r,t,n,i){return e&&e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,i):0},munmap:function(e){return 0},ioctl:function(e,r,t){if(!e.stream_ops.ioctl)throw new tr.ErrnoError(Ge.ENOTTY);return e.stream_ops.ioctl(e,r,t)},readFile:function(e,r){if((r=r||{}).flags=r.flags||"r",r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error('Invalid encoding type "'+r.encoding+'"');var t,n=tr.open(e,r.flags),i=tr.stat(e).size,o=new Uint8Array(i);return tr.read(n,o,0,i,0),"utf8"===r.encoding?t=T(o,0):"binary"===r.encoding&&(t=o),tr.close(n),t},writeFile:function(e,r,t){if((t=t||{}).flags=t.flags||"w",t.encoding=t.encoding||"utf8","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'+t.encoding+'"');var n=tr.open(e,t.flags,t.mode);if("utf8"===t.encoding){var i=new Uint8Array(N(r)+1),o=C(r,i,0,i.length);tr.write(n,i,0,o,0,t.canOwn)}else"binary"===t.encoding&&tr.write(n,r,0,r.length,0,t.canOwn);tr.close(n)},cwd:function(){return tr.currentPath},chdir:function(e){var r=tr.lookupPath(e,{follow:!0});if(!tr.isDir(r.node.mode))throw new tr.ErrnoError(Ge.ENOTDIR);var t=tr.nodePermissions(r.node,"x");if(t)throw new tr.ErrnoError(t);tr.currentPath=r.path},createDefaultDirectories:function(){tr.mkdir("/tmp"),tr.mkdir("/home"),tr.mkdir("/home/web_user")},createDefaultDevices:function(){var e;if(tr.mkdir("/dev"),tr.registerDevice(tr.makedev(1,3),{read:function(){return 0},write:function(e,r,t,n,i){return n}}),tr.mkdev("/dev/null",tr.makedev(1,3)),$e.register(tr.makedev(5,0),$e.default_tty_ops),$e.register(tr.makedev(6,0),$e.default_tty1_ops),tr.mkdev("/dev/tty",tr.makedev(5,0)),tr.mkdev("/dev/tty1",tr.makedev(6,0)),"undefined"!=typeof crypto){var r=new Uint8Array(1);e=function(){return crypto.getRandomValues(r),r[0]}}else e=function(){return 256*Math.random()|0};tr.createDevice("/dev","random",e),tr.createDevice("/dev","urandom",e),tr.mkdir("/dev/shm"),tr.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){tr.mkdir("/proc"),tr.mkdir("/proc/self"),tr.mkdir("/proc/self/fd"),tr.mount({mount:function(){var e=tr.createNode("/proc/self","fd",16895,73);return e.node_ops={lookup:function(e,r){var t=+r,n=tr.getStream(t);if(!n)throw new tr.ErrnoError(Ge.EBADF);var i={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}}};return i.parent=i,i}},e}},{},"/proc/self/fd")},createStandardStreams:function(){e.stdin?tr.createDevice("/dev","stdin",e.stdin):tr.symlink("/dev/tty","/dev/stdin"),e.stdout?tr.createDevice("/dev","stdout",null,e.stdout):tr.symlink("/dev/tty","/dev/stdout"),e.stderr?tr.createDevice("/dev","stderr",null,e.stderr):tr.symlink("/dev/tty1","/dev/stderr");var r=tr.open("/dev/stdin","r");b(0===r.fd,"invalid handle for stdin ("+r.fd+")");var t=tr.open("/dev/stdout","w");b(1===t.fd,"invalid handle for stdout ("+t.fd+")");var n=tr.open("/dev/stderr","w");b(2===n.fd,"invalid handle for stderr ("+n.fd+")")},ensureErrnoError:function(){tr.ErrnoError||(tr.ErrnoError=function(e,r){this.node=r,this.setErrno=function(e){for(var r in this.errno=e,Ge)if(Ge[r]===e){this.code=r;break}},this.setErrno(e),this.message=Ze[e]},tr.ErrnoError.prototype=new Error,tr.ErrnoError.prototype.constructor=tr.ErrnoError,[Ge.ENOENT].forEach((function(e){tr.genericErrors[e]=new tr.ErrnoError(e),tr.genericErrors[e].stack="<generic error, no stack>"})))},staticInit:function(){tr.ensureErrnoError(),tr.nameTable=new Array(4096),tr.mount(Qe,{},"/"),tr.createDefaultDirectories(),tr.createDefaultDevices(),tr.createSpecialDirectories(),tr.filesystems={MEMFS:Qe,IDBFS:er,NODEFS:{},WORKERFS:rr}},init:function(r,t,n){b(!tr.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),tr.init.initialized=!0,tr.ensureErrnoError(),e.stdin=r||e.stdin,e.stdout=t||e.stdout,e.stderr=n||e.stderr,tr.createStandardStreams()},quit:function(){tr.init.initialized=!1;var r=e.C;r&&r(0);for(var t=0;t<tr.streams.length;t++){var n=tr.streams[t];n&&tr.close(n)}},getMode:function(e,r){var t=0;return e&&(t|=365),r&&(t|=146),t},joinPath:function(e,r){var t=nr.join.apply(null,e);return r&&"/"==t[0]&&(t=t.substr(1)),t},absolutePath:function(e,r){return nr.resolve(r,e)},standardizePath:function(e){return nr.normalize(e)},findObject:function(e,r){var t=tr.analyzePath(e,r);return t.exists?t.object:(Ye(t.error),null)},analyzePath:function(e,r){try{e=(n=tr.lookupPath(e,{follow:!r})).path}catch(e){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=tr.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=nr.basename(e),n=tr.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(e){t.error=e.errno}return t},createFolder:function(e,r,t,n){var i=nr.join2("string"==typeof e?e:tr.getPath(e),r),o=tr.getMode(t,n);return tr.mkdir(i,o)},createPath:function(e,r,t,n){e="string"==typeof e?e:tr.getPath(e);for(var i=r.split("/").reverse();i.length;){var o=i.pop();if(o){var s=nr.join2(e,o);try{tr.mkdir(s)}catch(e){}e=s}}return s},createFile:function(e,r,t,n,i){var o=nr.join2("string"==typeof e?e:tr.getPath(e),r),s=tr.getMode(n,i);return tr.create(o,s)},createDataFile:function(e,r,t,n,i,o){var s=r?nr.join2("string"==typeof e?e:tr.getPath(e),r):e,a=tr.getMode(n,i),l=tr.create(s,a);if(t){if("string"==typeof t){for(var u=new Array(t.length),f=0,c=t.length;f<c;++f)u[f]=t.charCodeAt(f);t=u}tr.chmod(l,146|a);var d=tr.open(l,"w");tr.write(d,t,0,t.length,0,o),tr.close(d),tr.chmod(l,a)}return l},createDevice:function(e,r,t,n){var i=nr.join2("string"==typeof e?e:tr.getPath(e),r),o=tr.getMode(!!t,!!n);tr.createDevice.major||(tr.createDevice.major=64);var s=tr.makedev(tr.createDevice.major++,0);return tr.registerDevice(s,{open:function(e){e.seekable=!1},close:function(e){n&&n.buffer&&n.buffer.length&&n(10)},read:function(e,r,n,i,o){for(var s=0,a=0;a<i;a++){var l;try{l=t()}catch(e){throw new tr.ErrnoError(Ge.EIO)}if(void 0===l&&0===s)throw new tr.ErrnoError(Ge.EAGAIN);if(null==l)break;s++,r[n+a]=l}return s&&(e.node.timestamp=Date.now()),s},write:function(e,r,t,i,o){for(var s=0;s<i;s++)try{n(r[t+s])}catch(e){throw new tr.ErrnoError(Ge.EIO)}return i&&(e.node.timestamp=Date.now()),s}}),tr.mkdev(i,o,s)},createLink:function(e,r,t,n,i){var o=nr.join2("string"==typeof e?e:tr.getPath(e),r);return tr.symlink(t,o)},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;var t=!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!e.read)throw new Error("Cannot load without read() or XMLHttpRequest.");try{r.contents=Te(e.read(r.url),!0),r.usedBytes=r.contents.length}catch(e){t=!1}return t||Ye(Ge.EIO),t},createLazyFile:function(e,r,t,n,i){function s(){this.lengthKnown=!1,this.chunks=[]}if(s.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},s.prototype.setDataGetter=function(e){this.getter=e},s.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),i=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,o=1048576;i||(o=n);var s=this;s.setDataGetter((function(e){var r=e*o,i=(e+1)*o-1;if(i=Math.min(i,n-1),void 0===s.chunks[e]&&(s.chunks[e]=function(e,r){if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",t,!1),n!==o&&i.setRequestHeader("Range","bytes="+e+"-"+r),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+t+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):Te(i.responseText||"",!0)}(r,i)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),this.B=n,this.U=o,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!o)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a=new s;Object.defineProperty(a,"length",{get:function(){return this.lengthKnown||this.cacheLength(),this.B}}),Object.defineProperty(a,"chunkSize",{get:function(){return this.lengthKnown||this.cacheLength(),this.U}});var l={isDevice:!1,contents:a}}else l={isDevice:!1,url:t};var u=tr.createFile(e,r,l,n,i);l.contents?u.contents=l.contents:l.url&&(u.contents=null,u.url=l.url),Object.defineProperty(u,"usedBytes",{get:function(){return this.contents.length}});var f={};return Object.keys(u.stream_ops).forEach((function(e){var r=u.stream_ops[e];f[e]=function(){if(!tr.forceLoadFile(u))throw new tr.ErrnoError(Ge.EIO);return r.apply(null,arguments)}})),f.read=function(e,r,t,n,i){if(!tr.forceLoadFile(u))throw new tr.ErrnoError(Ge.EIO);var o=e.node.contents;if(i>=o.length)return 0;var s=Math.min(o.length-i,n);if(b(s>=0),o.slice)for(var a=0;a<s;a++)r[t+a]=o[i+a];else for(a=0;a<s;a++)r[t+a]=o.get(i+a);return s},u.stream_ops=f,u},createPreloadedFile:function(r,t,n,i,o,s,a,l,u,f){sr.init();var c=t?nr.resolve(nr.join2(r,t)):r;function d(n){function d(e){f&&f(),l||tr.createDataFile(r,t,e,i,o,u),s&&s(),Ve()}var h=!1;e.preloadPlugins.forEach((function(e){h||e.canHandle(c)&&(e.handle(n,c,d,(function(){a&&a(),Ve()})),h=!0)})),h||d(n)}qe(),"string"==typeof n?sr.asyncLoad(n,(function(e){d(e)}),a):d(n)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(e,r,t){r=r||function(){},t=t||function(){};var n=tr.indexedDB();try{var i=n.open(tr.DB_NAME(),tr.DB_VERSION)}catch(e){return t(e)}i.onupgradeneeded=function(){console.log("creating db"),i.result.createObjectStore(tr.DB_STORE_NAME)},i.onsuccess=function(){var n=i.result.transaction([tr.DB_STORE_NAME],"readwrite"),o=n.objectStore(tr.DB_STORE_NAME),s=0,a=0,l=e.length;function u(){0==a?r():t()}e.forEach((function(e){var r=o.put(tr.analyzePath(e).object.contents,e);r.onsuccess=function(){++s+a==l&&u()},r.onerror=function(){a++,s+a==l&&u()}})),n.onerror=t},i.onerror=t},loadFilesFromDB:function(e,r,t){r=r||function(){},t=t||function(){};var n=tr.indexedDB();try{var i=n.open(tr.DB_NAME(),tr.DB_VERSION)}catch(e){return t(e)}i.onupgradeneeded=t,i.onsuccess=function(){var n=i.result;try{var o=n.transaction([tr.DB_STORE_NAME],"readonly")}catch(e){return void t(e)}var s=o.objectStore(tr.DB_STORE_NAME),a=0,l=0,u=e.length;function f(){0==l?r():t()}e.forEach((function(e){var r=s.get(e);r.onsuccess=function(){tr.analyzePath(e).exists&&tr.unlink(e),tr.createDataFile(nr.dirname(e),nr.basename(e),r.result,!0,!0,!0),++a+l==u&&f()},r.onerror=function(){l++,a+l==u&&f()}})),o.onerror=t},i.onerror=t}},nr={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,r){for(var t=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t--;t)e.unshift("..");return e},normalize:function(e){var r="/"===e.charAt(0),t="/"===e.substr(-1);return(e=nr.normalizeArray(e.split("/").filter((function(e){return!!e})),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:function(e){var r=nr.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:function(e){if("/"===e)return"/";var r=e.lastIndexOf("/");return-1===r?e:e.substr(r+1)},extname:function(e){return nr.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return nr.normalize(e.join("/"))},join2:function(e,r){return nr.normalize(e+"/"+r)},resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:tr.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r="/"===n.charAt(0)}return(r?"/":"")+(e=nr.normalizeArray(e.split("/").filter((function(e){return!!e})),!r).join("/"))||"."},relative:function(e,r){function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=nr.resolve(e).substr(1),r=nr.resolve(r).substr(1);for(var n=t(e.split("/")),i=t(r.split("/")),o=Math.min(n.length,i.length),s=o,a=0;a<o;a++)if(n[a]!==i[a]){s=a;break}var l=[];for(a=s;a<n.length;a++)l.push("..");return(l=l.concat(i.slice(s))).join("/")}};function ir(e,r){if(sr.mainLoop.timingMode=e,sr.mainLoop.timingValue=r,!sr.mainLoop.func)return 1;if(0==e)sr.mainLoop.scheduler=function(){setTimeout(sr.mainLoop.runner,r)},sr.mainLoop.method="timeout";else if(1==e)sr.mainLoop.scheduler=function(){sr.requestAnimationFrame(sr.mainLoop.runner)},sr.mainLoop.method="rAF";else if(2==e){if(!window.setImmediate){var t=[],n="__emcc";window.addEventListener("message",(function(e){e.source===window&&e.data===n&&(e.stopPropagation(),t.shift()())}),!0),window.setImmediate=function(e){t.push(e),window.postMessage(n,"*")}}sr.mainLoop.scheduler=function(){window.setImmediate(sr.mainLoop.runner)},sr.mainLoop.method="immediate"}return 0}function or(r,t,n,i,o){e.noExitRuntime=!0,b(!sr.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),sr.mainLoop.func=r,sr.mainLoop.arg=i;var s=sr.mainLoop.currentlyRunningMainloop;if(sr.mainLoop.runner=function(){if(!w){if(sr.mainLoop.queue.length>0){var t=Date.now(),n=sr.mainLoop.queue.shift();if(n.func(n.arg),sr.mainLoop.remainingBlockers){var o=sr.mainLoop.remainingBlockers,a=o%1==0?o-1:Math.floor(o);n.counted?sr.mainLoop.remainingBlockers=a:(a+=.5,sr.mainLoop.remainingBlockers=(8*o+a)/9)}return console.log('main loop blocker "'+n.name+'" took '+(Date.now()-t)+" ms"),sr.mainLoop.updateStatus(),void setTimeout(sr.mainLoop.runner,0)}s<sr.mainLoop.currentlyRunningMainloop||(sr.mainLoop.currentFrameNumber=sr.mainLoop.currentFrameNumber+1|0,1==sr.mainLoop.timingMode&&sr.mainLoop.timingValue>1&&sr.mainLoop.currentFrameNumber%sr.mainLoop.timingValue!=0?sr.mainLoop.scheduler():("timeout"===sr.mainLoop.method&&e.ctx&&(e.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),sr.mainLoop.method=""),sr.mainLoop.runIter((function(){void 0!==i?f.dynCall("vi",r,[i]):f.dynCall("v",r)})),s<sr.mainLoop.currentlyRunningMainloop||("object"==typeof SDL&&SDL.audio&&SDL.audio.queueNewAudioData&&SDL.audio.queueNewAudioData(),sr.mainLoop.scheduler())))}},o||(t&&t>0?ir(0,1e3/t):ir(1,1),sr.mainLoop.scheduler()),n)throw"SimulateInfiniteLoop"}var sr={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function(){sr.mainLoop.scheduler=null,sr.mainLoop.currentlyRunningMainloop++},resume:function(){sr.mainLoop.currentlyRunningMainloop++;var e=sr.mainLoop.timingMode,r=sr.mainLoop.timingValue,t=sr.mainLoop.func;sr.mainLoop.func=null,or(t,0,!1,sr.mainLoop.arg,!0),ir(e,r),sr.mainLoop.scheduler()},updateStatus:function(){if(e.setStatus){var r=e.statusMessage||"Please wait...",t=sr.mainLoop.remainingBlockers,n=sr.mainLoop.expectedBlockers;t?t<n?e.setStatus(r+" ("+(n-t)+"/"+n+")"):e.setStatus(r):e.setStatus("")}},runIter:function(r){if(!w){if(e.preMainLoop&&!1===e.preMainLoop())return;try{r()}catch(r){if(r instanceof wr)return;throw r&&"object"==typeof r&&r.stack&&e.printErr("exception thrown: "+[r,r.stack]),r}e.postMainLoop&&e.postMainLoop()}}},isFullScreen:!1,pointerLock:!1,moduleContextCreatedCallbacks:[],workers:[],init:function(){if(e.preloadPlugins||(e.preloadPlugins=[]),!sr.initted){sr.initted=!0;try{new Blob,sr.hasBlobConstructor=!0}catch(e){sr.hasBlobConstructor=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}sr.BlobBuilder="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:sr.hasBlobConstructor?null:console.log("warning: no BlobBuilder"),sr.URLObject="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,e.noImageDecoding||void 0!==sr.URLObject||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),e.noImageDecoding=!0);var r={canHandle:function(r){return!e.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(r)},handle:function(r,t,n,i){var o=null;if(sr.hasBlobConstructor)try{(o=new Blob([r],{type:sr.getMimetype(t)})).size!==r.length&&(o=new Blob([new Uint8Array(r).buffer],{type:sr.getMimetype(t)}))}catch(e){f.warnOnce("Blob constructor present but fails: "+e+"; falling back to blob builder")}if(!o){var s=new sr.BlobBuilder;s.append(new Uint8Array(r).buffer),o=s.getBlob()}var a=sr.URLObject.createObjectURL(o),l=new Image;l.onload=function(){b(l.complete,"Image "+t+" could not be decoded");var i=document.createElement("canvas");i.width=l.width,i.height=l.height,i.getContext("2d").drawImage(l,0,0),e.preloadedImages[t]=i,sr.URLObject.revokeObjectURL(a),n&&n(r)},l.onerror=function(e){console.log("Image "+a+" could not be decoded"),i&&i()},l.src=a}};e.preloadPlugins.push(r);var t={canHandle:function(r){return!e.noAudioDecoding&&r.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(r,t,n,i){var o=!1;function s(i){o||(o=!0,e.preloadedAudios[t]=i,n&&n(r))}function a(){o||(o=!0,e.preloadedAudios[t]=new Audio,i&&i())}if(!sr.hasBlobConstructor)return a();try{var l=new Blob([r],{type:sr.getMimetype(t)})}catch(e){return a()}var u=sr.URLObject.createObjectURL(l),f=new Audio;f.addEventListener("canplaythrough",(function(){s(f)}),!1),f.onerror=function(e){o||(console.log("warning: browser could not fully decode audio "+t+", trying slower base64 approach"),f.src="data:audio/x-"+t.substr(-3)+";base64,"+function(e){for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="",n=0,i=0,o=0;o<e.length;o++)for(n=n<<8|e[o],i+=8;i>=6;){var s=n>>i-6&63;i-=6,t+=r[s]}return 2==i?(t+=r[(3&n)<<4],t+="=="):4==i&&(t+=r[(15&n)<<2],t+="="),t}(r),s(f))},f.src=u,sr.safeSetTimeout((function(){s(f)}),1e4)}};e.preloadPlugins.push(t);var n=e.canvas;n&&(n.requestPointerLock=n.requestPointerLock||n.mozRequestPointerLock||n.webkitRequestPointerLock||n.msRequestPointerLock||function(){},n.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},n.exitPointerLock=n.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",i,!1),document.addEventListener("mozpointerlockchange",i,!1),document.addEventListener("webkitpointerlockchange",i,!1),document.addEventListener("mspointerlockchange",i,!1),e.elementPointerLock&&n.addEventListener("click",(function(e){!sr.pointerLock&&n.requestPointerLock&&(n.requestPointerLock(),e.preventDefault())}),!1))}function i(){sr.pointerLock=document.pointerLockElement===n||document.mozPointerLockElement===n||document.webkitPointerLockElement===n||document.msPointerLockElement===n}},createContext:function(r,t,n,i){if(t&&e.ctx&&r==e.canvas)return e.ctx;var o,s;if(t){var a={antialias:!1,alpha:!1};if(i)for(var l in i)a[l]=i[l];(s=GL.createContext(r,a))&&(o=GL.getContext(s).GLctx),r.style.backgroundColor="black"}else o=r.getContext("2d");return o?(n&&(t||b("undefined"==typeof GLctx,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),e.ctx=o,t&&GL.makeContextCurrent(s),e.useWebGL=t,sr.moduleContextCreatedCallbacks.forEach((function(e){e()})),sr.init()),o):null},destroyContext:function(e,r,t){},fullScreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullScreen:function(r,t,n){sr.lockPointer=r,sr.resizeCanvas=t,sr.vrDevice=n,void 0===sr.lockPointer&&(sr.lockPointer=!0),void 0===sr.resizeCanvas&&(sr.resizeCanvas=!1),void 0===sr.vrDevice&&(sr.vrDevice=null);var i=e.canvas;function o(){sr.isFullScreen=!1;var r=i.parentNode;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===r?(i.cancelFullScreen=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen||function(){},i.cancelFullScreen=i.cancelFullScreen.bind(document),sr.lockPointer&&i.requestPointerLock(),sr.isFullScreen=!0,sr.resizeCanvas&&sr.setFullScreenCanvasSize()):(r.parentNode.insertBefore(i,r),r.parentNode.removeChild(r),sr.resizeCanvas&&sr.setWindowedCanvasSize()),e.onFullScreen&&e.onFullScreen(sr.isFullScreen),sr.updateCanvasDimensions(i)}sr.fullScreenHandlersInstalled||(sr.fullScreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",o,!1),document.addEventListener("mozfullscreenchange",o,!1),document.addEventListener("webkitfullscreenchange",o,!1),document.addEventListener("MSFullscreenChange",o,!1));var s=document.createElement("div");i.parentNode.insertBefore(s,i),s.appendChild(i),s.requestFullScreen=s.requestFullScreen||s.mozRequestFullScreen||s.msRequestFullscreen||(s.webkitRequestFullScreen?function(){s.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),n?s.requestFullScreen({vrDisplay:n}):s.requestFullScreen()},nextRAF:0,fakeRequestAnimationFrame:function(e){var r=Date.now();if(0===sr.nextRAF)sr.nextRAF=r+1e3/60;else for(;r+2>=sr.nextRAF;)sr.nextRAF+=1e3/60;var t=Math.max(sr.nextRAF-r,0);setTimeout(e,t)},requestAnimationFrame:function(e){"undefined"==typeof window?sr.fakeRequestAnimationFrame(e):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||sr.fakeRequestAnimationFrame),window.requestAnimationFrame(e))},safeCallback:function(e){return function(){if(!w)return e.apply(null,arguments)}},allowAsyncCallbacks:!0,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function(){sr.allowAsyncCallbacks=!1},resumeAsyncCallbacks:function(){if(sr.allowAsyncCallbacks=!0,sr.queuedAsyncCallbacks.length>0){var e=sr.queuedAsyncCallbacks;sr.queuedAsyncCallbacks=[],e.forEach((function(e){e()}))}},safeRequestAnimationFrame:function(e){return sr.requestAnimationFrame((function(){w||(sr.allowAsyncCallbacks?e():sr.queuedAsyncCallbacks.push(e))}))},safeSetTimeout:function(r,t){return e.noExitRuntime=!0,setTimeout((function(){w||(sr.allowAsyncCallbacks?r():sr.queuedAsyncCallbacks.push(r))}),t)},safeSetInterval:function(r,t){return e.noExitRuntime=!0,setInterval((function(){w||sr.allowAsyncCallbacks&&r()}),t)},getMimetype:function(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]},getUserMedia:function(e){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},getMovementX:function(e){return e.movementX||e.mozMovementX||e.webkitMovementX||0},getMovementY:function(e){return e.movementY||e.mozMovementY||e.webkitMovementY||0},getMouseWheelDelta:function(e){var r=0;switch(e.type){case"DOMMouseScroll":r=e.detail;break;case"mousewheel":r=e.wheelDelta;break;case"wheel":r=e.deltaY;break;default:throw"unrecognized mouse wheel event: "+e.type}return r},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function(r){if(sr.pointerLock)"mousemove"!=r.type&&"mozMovementX"in r?sr.mouseMovementX=sr.mouseMovementY=0:(sr.mouseMovementX=sr.getMovementX(r),sr.mouseMovementY=sr.getMovementY(r)),"undefined"!=typeof SDL?(sr.mouseX=SDL.mouseX+sr.mouseMovementX,sr.mouseY=SDL.mouseY+sr.mouseMovementY):(sr.mouseX+=sr.mouseMovementX,sr.mouseY+=sr.mouseMovementY);else{var t=e.canvas.getBoundingClientRect(),n=e.canvas.width,i=e.canvas.height,o=void 0!==window.scrollX?window.scrollX:window.pageXOffset,s=void 0!==window.scrollY?window.scrollY:window.pageYOffset;if("touchstart"===r.type||"touchend"===r.type||"touchmove"===r.type){var a=r.touch;if(void 0===a)return;var l=a.pageX-(o+t.left),u=a.pageY-(s+t.top),f={x:l*=n/t.width,y:u*=i/t.height};if("touchstart"===r.type)sr.lastTouches[a.identifier]=f,sr.touches[a.identifier]=f;else if("touchend"===r.type||"touchmove"===r.type){var c=sr.touches[a.identifier];c||(c=f),sr.lastTouches[a.identifier]=c,sr.touches[a.identifier]=f}return}var d=r.pageX-(o+t.left),h=r.pageY-(s+t.top);d*=n/t.width,h*=i/t.height,sr.mouseMovementX=d-sr.mouseX,sr.mouseMovementY=h-sr.mouseY,sr.mouseX=d,sr.mouseY=h}},xhrLoad:function(e,r,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)},asyncLoad:function(e,r,t,n){sr.xhrLoad(e,(function(t){b(t,'Loading data file "'+e+'" failed (no arrayBuffer).'),r(new Uint8Array(t)),n||Ve()}),(function(r){if(!t)throw'Loading data file "'+e+'" failed.';t()})),n||qe()},resizeListeners:[],updateResizeListeners:function(){var r=e.canvas;sr.resizeListeners.forEach((function(e){e(r.width,r.height)}))},setCanvasSize:function(r,t,n){var i=e.canvas;sr.updateCanvasDimensions(i,r,t),n||sr.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:function(){if("undefined"!=typeof SDL){var e=$[SDL.screen+0*f.QUANTUM_SIZE>>2];e|=8388608,Z[SDL.screen+0*f.QUANTUM_SIZE>>2]=e}sr.updateResizeListeners()},setWindowedCanvasSize:function(){if("undefined"!=typeof SDL){var e=$[SDL.screen+0*f.QUANTUM_SIZE>>2];e&=-8388609,Z[SDL.screen+0*f.QUANTUM_SIZE>>2]=e}sr.updateResizeListeners()},updateCanvasDimensions:function(r,t,n){t&&n?(r.widthNative=t,r.heightNative=n):(t=r.widthNative,n=r.heightNative);var i=t,o=n;if(e.forcedAspectRatio&&e.forcedAspectRatio>0&&(i/o<e.forcedAspectRatio?i=Math.round(o*e.forcedAspectRatio):o=Math.round(i/e.forcedAspectRatio)),(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===r.parentNode&&"undefined"!=typeof screen){var s=Math.min(screen.width/i,screen.height/o);i=Math.round(i*s),o=Math.round(o*s)}sr.resizeCanvas?(r.width!=i&&(r.width=i),r.height!=o&&(r.height=o),void 0!==r.style&&(r.style.removeProperty("width"),r.style.removeProperty("height"))):(r.width!=t&&(r.width=t),r.height!=n&&(r.height=n),void 0!==r.style&&(i!=t||o!=n?(r.style.setProperty("width",i+"px","important"),r.style.setProperty("height",o+"px","important")):(r.style.removeProperty("width"),r.style.removeProperty("height"))))},wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function(){var e=sr.nextWgetRequestHandle;return sr.nextWgetRequestHandle++,e}};function ar(e){var r=Date.now()/1e3|0;return e&&(Z[e>>2]=r),r}function lr(){return 0}e.requestFullScreen=function(e,r,t){sr.requestFullScreen(e,r,t)},e.requestAnimationFrame=function(e){sr.requestAnimationFrame(e)},e.setCanvasSize=function(e,r,t){sr.setCanvasSize(e,r,t)},e.pauseMainLoop=function(){sr.mainLoop.pause()},e.resumeMainLoop=function(){sr.mainLoop.resume()},e.getUserMedia=function(){sr.getUserMedia()},e.createContext=function(e,r,t,n){return sr.createContext(e,r,t,n)},tr.staticInit(),we.unshift((function(){e.noFSInit||tr.init.initialized||tr.init()})),be.push((function(){tr.ignorePermissions=!1})),ve.push((function(){tr.quit()})),e.FS_createFolder=tr.createFolder,e.FS_createPath=tr.createPath,e.FS_createDataFile=tr.createDataFile,e.FS_createPreloadedFile=tr.createPreloadedFile,e.FS_createLazyFile=tr.createLazyFile,e.FS_createLink=tr.createLink,e.FS_createDevice=tr.createDevice,e.FS_unlink=tr.unlink,we.unshift((function(){})),ve.push((function(){})),oe=se=f.alignMemory(ne),ie=!0,ae=oe+ce,b((le=f.alignMemory(ae))<de,"TOTAL_MEMORY not big enough for stack"),e.asmGlobalArg={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:1/0},e.asmLibraryArg={abort:gr,assert:b,H:Xe,W:lr,q:Je,___setErrNo:Ye,G:We,X:ar,V:ir,K:Ke,Y:or,STACKTOP:se,STACK_MAX:ae,tempDoublePtr:He,ABORT:w};var ur=function(e,r,t){"use asm";var n=new e.Int8Array(t);var i=new e.Int16Array(t);var o=new e.Int32Array(t);var s=new e.Uint8Array(t);var a=new e.Uint16Array(t);var l=new e.Uint32Array(t);var u=new e.Float32Array(t);var f=new e.Float64Array(t);var c=r.STACKTOP|0;var d=r.STACK_MAX|0;var h=r.tempDoublePtr|0;var m=r.ABORT|0;var p=0;var w=0;var b=0;var v=0;var y=e.NaN,g=e.Infinity;var k=0,_=0,E=0,j=0,S=0.0,A=0,R=0,M=0,D=0.0;var P=0;var T=0;var O=0;var C=0;var L=0;var N=0;var x=0;var F=0;var I=0;var B=0;var U=e.Math.floor;var z=e.Math.abs;var q=e.Math.sqrt;var V=e.Math.pow;var H=e.Math.cos;var W=e.Math.sin;var Y=e.Math.tan;var G=e.Math.acos;var X=e.Math.asin;var K=e.Math.atan;var J=e.Math.atan2;var Z=e.Math.exp;var $=e.Math.log;var Q=e.Math.ceil;var ee=e.Math.imul;var re=e.Math.min;var te=e.Math.clz32;var ne=r.abort;var ie=r.assert;var oe=r.H;var se=r.W;var ae=r.q;var le=r.___setErrNo;var ue=r.G;var fe=r.X;var ce=r.V;var de=r.K;var he=r.Y;var me=0.0;function pe(e){e=e|0;var r=0;r=c;c=c+e|0;c=c+15&-16;return r|0}function we(){return c|0}function be(e){e=e|0;c=e}function ve(e,r){e=e|0;r=r|0;c=e;d=r}function ye(e,r){e=e|0;r=r|0;if(!p){p=e;w=r}}function ge(e){e|0;n[h>>0]=n[e>>0];n[h+1>>0]=n[e+1>>0];n[h+2>>0]=n[e+2>>0];n[h+3>>0]=n[e+3>>0]}function ke(e){e|0;n[h>>0]=n[e>>0];n[h+1>>0]=n[e+1>>0];n[h+2>>0]=n[e+2>>0];n[h+3>>0]=n[e+3>>0];n[h+4>>0]=n[e+4>>0];n[h+5>>0]=n[e+5>>0];n[h+6>>0]=n[e+6>>0];n[h+7>>0]=n[e+7>>0]}function _e(e){e=e|0;P=e}function Ee(){return P|0}function je(){var e=0,r=0;r=c;c=c+16|0;e=r;o[e>>2]=0;Or(e,31756)|0;c=r;return o[e>>2]|0}function Se(e){e=e|0;var r=0,t=0;r=c;c=c+16|0;t=r;o[t>>2]=e;Cr(t);c=r;return}function Ae(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;Ce(e,(n|0)==0?(s[r>>0]|0)>>>3&15:15,r+1|0,t,2)|0;return}function Re(e){e=e|0;var r=0;r=Bi(8)|0;xr(r,r+4|0,e)|0;return r|0}function Me(e){e=e|0;Fr(e,e+4|0);Ui(e);return}function De(e,r,t,i,a){e=e|0;r=r|0;t=t|0;i=i|0;a=a|0;var l=0;a=c;c=c+16|0;l=a;o[l>>2]=r;t=(Ir(o[e>>2]|0,o[e+4>>2]|0,r,t,i,l,3)|0)<<16>>16;n[i>>0]=s[i>>0]|0|4;c=a;return t|0}function Pe(e){e=e|0;if(!e)e=-1;else{i[e>>1]=4096;e=0}return e|0}function Te(e,r,t,n,s,a){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;var l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0;d=o[a>>2]|0;w=s<<16>>16>0;if(w){l=0;u=0;do{c=i[t+(l<<1)>>1]|0;c=ee(c,c)|0;if((c|0)!=1073741824){f=(c<<1)+u|0;if((c^u|0)>0&(f^u|0)<0){o[a>>2]=1;u=(u>>>31)+2147483647|0}else u=f}else{o[a>>2]=1;u=2147483647}l=l+1|0}while((l&65535)<<16>>16!=s<<16>>16);if((u|0)==2147483647){o[a>>2]=d;c=0;f=0;do{u=i[t+(c<<1)>>1]>>2;u=ee(u,u)|0;if((u|0)!=1073741824){l=(u<<1)+f|0;if((u^f|0)>0&(l^f|0)<0){o[a>>2]=1;f=(f>>>31)+2147483647|0}else f=l}else{o[a>>2]=1;f=2147483647}c=c+1|0}while((c&65535)<<16>>16!=s<<16>>16)}else p=8}else{u=0;p=8}if((p|0)==8)f=u>>4;if(!f){i[e>>1]=0;return}m=((yi(f)|0)&65535)+65535|0;u=m<<16>>16;if((m&65535)<<16>>16>0){l=f<<u;if((l>>u|0)==(f|0))f=l;else f=f>>31^2147483647}else{u=0-u<<16;if((u|0)<2031616)f=f>>(u>>16);else f=0}h=Oi(f,a)|0;l=o[a>>2]|0;if(w){u=0;f=0;do{d=i[r+(u<<1)>>1]|0;d=ee(d,d)|0;if((d|0)!=1073741824){c=(d<<1)+f|0;if((d^f|0)>0&(c^f|0)<0){o[a>>2]=1;f=(f>>>31)+2147483647|0}else f=c}else{o[a>>2]=1;f=2147483647}u=u+1|0}while((u&65535)<<16>>16!=s<<16>>16);if((f|0)==2147483647){o[a>>2]=l;d=0;f=0;do{c=i[r+(d<<1)>>1]>>2;c=ee(c,c)|0;if((c|0)!=1073741824){u=(c<<1)+f|0;if((c^f|0)>0&(u^f|0)<0){o[a>>2]=1;f=(f>>>31)+2147483647|0}else f=u}else{o[a>>2]=1;f=2147483647}d=d+1|0}while((d&65535)<<16>>16!=s<<16>>16)}else p=29}else{f=0;p=29}if((p|0)==29)f=f>>4;if(!f)c=0;else{u=(yi(f)|0)<<16>>16;l=m-u|0;c=l&65535;f=(Kn(h,Oi(f<<u,a)|0)|0)<<16>>16;u=f<<7;l=l<<16>>16;if(c<<16>>16>0)l=c<<16>>16<31?u>>l:0;else{p=0-l<<16>>16;l=u<<p;l=(l>>p|0)==(u|0)?l:f>>24^2147483647}c=(ee(((si(l,a)|0)<<9)+32768>>16,32767-(n&65535)<<16>>16)|0)>>>15<<16>>16}l=i[e>>1]|0;if(w){f=n<<16>>16;u=0;while(1){n=((ee(l<<16>>16,f)|0)>>>15&65535)+c|0;l=n&65535;i[t>>1]=(ee(i[t>>1]|0,n<<16>>16)|0)>>>12;u=u+1<<16>>16;if(u<<16>>16>=s<<16>>16)break;else t=t+2|0}}i[e>>1]=l;return}function Oe(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0,a=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0;l=o[n>>2]|0;s=t<<16>>16>0;if(s){u=0;a=0;do{c=i[r+(u<<1)>>1]|0;c=ee(c,c)|0;if((c|0)!=1073741824){f=(c<<1)+a|0;if((c^a|0)>0&(f^a|0)<0){o[n>>2]=1;a=(a>>>31)+2147483647|0}else a=f}else{o[n>>2]=1;a=2147483647}u=u+1|0}while((u&65535)<<16>>16!=t<<16>>16);if((a|0)==2147483647){o[n>>2]=l;c=0;l=0;do{f=i[r+(c<<1)>>1]>>2;f=ee(f,f)|0;if((f|0)!=1073741824){u=(f<<1)+l|0;if((f^l|0)>0&(u^l|0)<0){o[n>>2]=1;l=(l>>>31)+2147483647|0}else l=u}else{o[n>>2]=1;l=2147483647}c=c+1|0}while((c&65535)<<16>>16!=t<<16>>16)}else m=8}else{a=0;m=8}if((m|0)==8)l=a>>4;if(!l)return;h=((yi(l)|0)&65535)+65535|0;f=h<<16>>16;if((h&65535)<<16>>16>0){u=l<<f;if((u>>f|0)==(l|0))l=u;else l=l>>31^2147483647}else{f=0-f<<16;if((f|0)<2031616)l=l>>(f>>16);else l=0}d=Oi(l,n)|0;l=o[n>>2]|0;if(s){u=0;a=0;do{c=i[e+(u<<1)>>1]|0;c=ee(c,c)|0;if((c|0)!=1073741824){f=(c<<1)+a|0;if((c^a|0)>0&(f^a|0)<0){o[n>>2]=1;a=(a>>>31)+2147483647|0}else a=f}else{o[n>>2]=1;a=2147483647}u=u+1|0}while((u&65535)<<16>>16!=t<<16>>16);if((a|0)==2147483647){o[n>>2]=l;l=0;u=0;do{c=i[e+(l<<1)>>1]>>2;c=ee(c,c)|0;if((c|0)!=1073741824){f=(c<<1)+u|0;if((c^u|0)>0&(f^u|0)<0){o[n>>2]=1;u=(u>>>31)+2147483647|0}else u=f}else{o[n>>2]=1;u=2147483647}l=l+1|0}while((l&65535)<<16>>16!=t<<16>>16)}else m=28}else{a=0;m=28}if((m|0)==28)u=a>>4;if(!u)s=0;else{c=yi(u)|0;f=c<<16>>16;if(c<<16>>16>0){l=u<<f;if((l>>f|0)==(u|0))u=l;else u=u>>31^2147483647}else{f=0-f<<16;if((f|0)<2031616)u=u>>(f>>16);else u=0}l=h-(c&65535)|0;f=l&65535;a=(Kn(d,Oi(u,n)|0)|0)<<16>>16;s=a<<7;l=l<<16>>16;if(f<<16>>16>0)s=f<<16>>16<31?s>>l:0;else{h=0-l<<16>>16;e=s<<h;s=(e>>h|0)==(s|0)?e:a>>24^2147483647}s=si(s,n)|0;if((s|0)>4194303)s=2147483647;else s=(s|0)<-4194304?-2147483648:s<<9;s=Oi(s,n)|0}a=(t&65535)+65535&65535;if(a<<16>>16<=-1)return;c=s<<16>>16;f=t+-1<<16>>16<<16>>16;while(1){l=r+(f<<1)|0;s=ee(i[l>>1]|0,c)|0;do{if((s|0)!=1073741824){u=s<<1;if((u|0)<=268435455)if((u|0)<-268435456){i[l>>1]=-32768;break}else{i[l>>1]=s>>>12;break}else m=52}else{o[n>>2]=1;m=52}}while(0);if((m|0)==52){m=0;i[l>>1]=32767}a=a+-1<<16>>16;if(a<<16>>16<=-1)break;else f=f+-1|0}return}function Ce(e,r,t,n,s){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;var a=0,l=0,u=0,f=0;f=c;c=c+496|0;u=f;l=(s|0)==2;do{if(!(l&1|(s|0)==4)){if(s){e=-1;c=f;return e|0}l=i[t>>1]|0;r=t+490|0;s=t+2|0;a=0;while(1){i[u+(a<<1)>>1]=i[s>>1]|0;a=a+1|0;if((a|0)==244)break;else s=s+2|0}a=l<<16>>16;if(l<<16>>16==7){s=492;r=o[e+1760>>2]|0;break}else{s=492;r=i[r>>1]|0;break}}else{a=e+1168|0;if(l){Nr(r,t,u,a);a=604}else{vr(r,t,u,a);a=3436}s=i[a+(r<<1)>>1]|0;do{if(r>>>0>=8){if((r|0)==8){r=i[u+76>>1]<<2|(i[u+74>>1]<<1|i[u+72>>1]);a=(i[u+70>>1]|0)==0?4:5;break}if(r>>>0<15){e=-1;c=f;return e|0}else{r=o[e+1760>>2]|0;a=7;break}}else a=0}while(0);if(s<<16>>16==-1){e=-1;c=f;return e|0}}}while(0);Lr(e,r,u,a,n);o[e+1760>>2]=r;e=s;c=f;return e|0}function Le(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0;y=c;c=c+48|0;b=y+20|0;v=y;s=b;n=s+20|0;do{i[s>>1]=i[e>>1]|0;s=s+2|0;e=e+2|0}while((s|0)<(n|0));e=i[b+18>>1]|0;w=(e&65535)-((e&65535)>>>15&65535)|0;e:do{if(((w<<16>>31^w)&65535)<<16>>16<=4095){n=9;w=9;while(1){e=e<<16>>16;e=(e<<19>>19|0)==(e|0)?e<<3:e>>>15^32767;p=r+(n<<1)|0;i[p>>1]=e;e=e<<16>>16;e=ee(e,e)|0;if((e|0)==1073741824){o[t>>2]=1;s=2147483647}else s=e<<1;e=2147483647-s|0;if((e&s|0)<0){o[t>>2]=1;e=2147483647}h=yi(e)|0;m=15-(h&65535)&65535;l=h<<16>>16;if(h<<16>>16>0){s=e<<l;if((s>>l|0)!=(e|0))s=e>>31^2147483647}else{s=0-l<<16;if((s|0)<2031616)s=e>>(s>>16);else s=0}s=Kn(16384,Oi(s,t)|0)|0;do{if(w<<16>>16>0){h=n+-1|0;u=s<<16>>16;f=w<<16>>16;d=0;while(1){n=a[b+(d<<1)>>1]|0;e=n<<16;l=ee(i[b+(h-d<<1)>>1]|0,i[p>>1]|0)|0;if((l|0)==1073741824){o[t>>2]=1;s=2147483647}else s=l<<1;l=e-s|0;if(((l^e)&(s^e)|0)<0){o[t>>2]=1;l=(n>>>15)+2147483647|0}l=ee((Oi(l,t)|0)<<16>>16,u)|0;if((l|0)==1073741824){o[t>>2]=1;l=2147483647}else l=l<<1;l=fi(l,m,t)|0;s=l-(l>>>31)|0;if((s>>31^s|0)>32767){l=24;break}i[v+(d<<1)>>1]=l;d=d+1|0;if((f|0)<=(d|0)){l=26;break}}if((l|0)==24){l=0;s=r;n=s+20|0;do{i[s>>1]=0;s=s+2|0}while((s|0)<(n|0));e=10}else if((l|0)==26){l=0;if(w<<16>>16>0)e=w;else{l=28;break}}s=e+-1<<16>>16;Hi(b|0,v|0,((s&65535)<<1)+2|0)|0;n=s<<16>>16}else l=28}while(0);if((l|0)==28){e=w+-1<<16>>16;if(e<<16>>16>-1){n=e<<16>>16;s=32767}else break}e=i[b+(n<<1)>>1]|0;w=(e&65535)-((e&65535)>>>15&65535)|0;if(((w<<16>>31^w)&65535)<<16>>16>4095)break e;else w=s}c=y;return}}while(0);s=r;n=s+20|0;do{i[s>>1]=0;s=s+2|0}while((s|0)<(n|0));c=y;return}function Ne(e,r){e=e|0;r=r|0;var t=0,n=0,i=0,s=0,a=0;if(r<<16>>16<=0){e=0;return e|0}n=o[e>>2]|0;i=0;t=0;do{a=n&1;t=a|t<<1&131070;s=n>>1;n=(a|0)==(n>>>28&1|0)?s:s|1073741824;i=i+1<<16>>16}while(i<<16>>16<r<<16>>16);o[e>>2]=n;a=t&65535;return a|0}function xe(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,a=0,l=0,u=0,f=0;s=r;n=s+80|0;do{i[s>>1]=0;s=s+2|0}while((s|0)<(n|0));n=0;s=o[e>>2]|0;do{f=s&1;u=s>>1;u=(f|0)==(s>>>28&1|0)?u:u|1073741824;a=u&1;l=u>>1;o[e>>2]=(a|0)==(u>>>28&1|0)?l:l|1073741824;a=Gn((ee(f<<1|a,1310720)|0)>>>17&65535,n,t)|0;f=o[e>>2]|0;l=f&1;u=f>>1;s=(l|0)==(f>>>28&1|0)?u:u|1073741824;o[e>>2]=s;i[r+(a<<16>>16<<1)>>1]=((l&65535)<<13&65535)+-4096<<16>>16;n=n+1<<16>>16}while(n<<16>>16<10);return}function Fe(e,r,t,n,s,l){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;var u=0,f=0;u=i[e>>1]|0;if((u*31821|0)==1073741824){o[l>>2]=1;f=1073741823}else f=u*63642>>1;u=f+13849|0;if((f|0)>-1&(u^f|0)<0){o[l>>2]=1;u=(f>>>31)+2147483647|0}i[e>>1]=u;if(r<<16>>16<=0)return;f=0;u=s+((u&127)<<1)|0;while(1){i[n+(f<<1)>>1]=(-65536<<i[t+(f<<1)>>1]>>>16^65535)&a[u>>1];f=f+1|0;if((f&65535)<<16>>16==r<<16>>16)break;else u=u+2|0}return}function Ie(e){e=e|0;var r=0;if(!e){r=-1;return r|0}r=e+122|0;do{i[e>>1]=0;e=e+2|0}while((e|0)<(r|0));r=0;return r|0}function Be(e,r,t,n,s){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;var l=0,u=0,f=0,c=0,d=0,h=0,m=0;f=159;u=0;while(1){d=i[t+(f<<1)>>1]|0;d=ee(d,d)|0;d=(d|0)==1073741824?2147483647:d<<1;l=d+u|0;if((d^u|0)>-1&(l^u|0)<0){o[s>>2]=1;u=(u>>>31)+2147483647|0}else u=l;if((f|0)>0)f=f+-1|0;else{f=u;break}}s=f>>>14&65535;u=32767;l=59;while(1){d=i[e+(l<<1)>>1]|0;u=d<<16>>16<u<<16>>16?d:u;if((l|0)>0)l=l+-1|0;else break}d=(f|0)>536870911?32767:s;s=u<<16>>16;l=s<<20>>16;f=u<<16>>16>0?32767:-32768;t=55;u=i[e>>1]|0;while(1){c=i[e+(t<<1)>>1]|0;u=u<<16>>16<c<<16>>16?c:u;if((t|0)>1)t=t+-1|0;else break}t=i[e+80>>1]|0;c=i[e+82>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+84>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+86>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+88>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+90>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+92>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+94>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+96>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+98>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+100>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+102>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+104>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+106>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+108>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+110>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+112>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+114>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=i[e+116>>1]|0;t=t<<16>>16<c<<16>>16?c:t;c=e+118|0;m=i[c>>1]|0;do{if((d+-21&65535)<17557&u<<16>>16>20?(d<<16>>16|0)<(((s<<4|0)==(l|0)?l:f)|0)?1:(t<<16>>16<m<<16>>16?m:t)<<16>>16<1953:0){u=e+120|0;l=i[u>>1]|0;if(l<<16>>16>29){i[u>>1]=30;t=u;f=1;break}else{f=(l&65535)+1&65535;i[u>>1]=f;t=u;f=f<<16>>16>1&1;break}}else h=14}while(0);if((h|0)==14){t=e+120|0;i[t>>1]=0;f=0}u=0;do{m=u;u=u+1|0;i[e+(m<<1)>>1]=i[e+(u<<1)>>1]|0}while((u|0)!=59);i[c>>1]=d;u=i[t>>1]|0;u=u<<16>>16>15?16383:u<<16>>16>8?15565:13926;l=ri(r+8|0,5)|0;if((i[t>>1]|0)>20){if(((ri(r,9)|0)<<16>>16|0)>(u|0))h=20}else if((l<<16>>16|0)>(u|0))h=20;if((h|0)==20){i[n>>1]=0;return f|0}l=(a[n>>1]|0)+1&65535;if(l<<16>>16>10){i[n>>1]=10;return f|0}else{i[n>>1]=l;return f|0}return 0}function Ue(e){e=e|0;var r=0;if(!e){r=-1;return r|0}r=e+18|0;do{i[e>>1]=0;e=e+2|0}while((e|0)<(r|0));r=0;return r|0}function ze(e,r,t,n,s,l,u,f,c,d,h,m){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;c=c|0;d=d|0;h=h|0;m=m|0;var p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0;j=e+2|0;i[e>>1]=i[j>>1]|0;S=e+4|0;i[j>>1]=i[S>>1]|0;A=e+6|0;i[S>>1]=i[A>>1]|0;R=e+8|0;i[A>>1]=i[R>>1]|0;M=e+10|0;i[R>>1]=i[M>>1]|0;D=e+12|0;i[M>>1]=i[D>>1]|0;i[D>>1]=t;y=0;E=0;do{p=s+(E<<1)|0;b=xi(i[p>>1]|0,i[n+(E<<1)>>1]|0,m)|0;b=(b&65535)-((b&65535)>>>15&65535)|0;b=b<<16>>31^b;_=((gi(b&65535)|0)&65535)+65535|0;w=_<<16>>16;if((_&65535)<<16>>16<0){v=0-w<<16;if((v|0)<983040)g=b<<16>>16>>(v>>16)&65535;else g=0}else{v=b<<16>>16;b=v<<w;if((b<<16>>16>>w|0)==(v|0))g=b&65535;else g=(v>>>15^32767)&65535}k=gi(i[p>>1]|0)|0;b=i[p>>1]|0;w=k<<16>>16;if(k<<16>>16<0){v=0-w<<16;if((v|0)<983040)v=b<<16>>16>>(v>>16)&65535;else v=0}else{v=b<<16>>16;b=v<<w;if((b<<16>>16>>w|0)==(v|0))v=b&65535;else v=(v>>>15^32767)&65535}w=Kn(g,v)|0;v=(_&65535)+2-(k&65535)|0;b=v&65535;do{if(v&32768){if(b<<16>>16!=-32768){_=0-v|0;v=_<<16>>16;if((_&65535)<<16>>16<0){v=0-v<<16;if((v|0)>=983040){v=0;break}v=w<<16>>16>>(v>>16)&65535;break}}else v=32767;b=w<<16>>16;w=b<<v;if((w<<16>>16>>v|0)==(b|0))v=w&65535;else v=(b>>>15^32767)&65535}else v=Ci(w,b,m)|0}while(0);y=Gn(y,v,m)|0;E=E+1|0}while((E|0)!=10);v=y&65535;b=y<<16>>16>5325;y=e+14|0;if(b){s=(a[y>>1]|0)+1&65535;i[y>>1]=s;if(s<<16>>16>10)i[e+16>>1]=0}else i[y>>1]=0;switch(r|0){case 0:case 1:case 2:case 3:case 6:break;default:{D=e+16|0;m=t;t=i[D>>1]|0;t=t&65535;t=t+1|0;t=t&65535;i[D>>1]=t;return m|0}}g=(u|l)<<16>>16==0;k=d<<16>>16==0;_=r>>>0<3;y=v+(_&((k|(g&(f<<16>>16==0|c<<16>>16==0)|h<<16>>16<2))^1)?61030:62259)&65535;y=y<<16>>16>0?y:0;if(y<<16>>16<=2048){y=y<<16>>16;if((y<<18>>18|0)==(y|0))c=y<<2;else c=y>>>15^32767}else c=8192;f=e+16|0;h=b|(i[f>>1]|0)<40;y=i[S>>1]|0;if((y*6554|0)==1073741824){o[m>>2]=1;b=2147483647}else b=y*13108|0;y=i[A>>1]|0;v=y*6554|0;if((v|0)!=1073741824){y=(y*13108|0)+b|0;if((v^b|0)>0&(y^b|0)<0){o[m>>2]=1;y=(b>>>31)+2147483647|0}}else{o[m>>2]=1;y=2147483647}v=i[R>>1]|0;b=v*6554|0;if((b|0)!=1073741824){v=(v*13108|0)+y|0;if((b^y|0)>0&(v^y|0)<0){o[m>>2]=1;v=(y>>>31)+2147483647|0}}else{o[m>>2]=1;v=2147483647}y=i[M>>1]|0;b=y*6554|0;if((b|0)!=1073741824){y=(y*13108|0)+v|0;if((b^v|0)>0&(y^v|0)<0){o[m>>2]=1;b=(v>>>31)+2147483647|0}else b=y}else{o[m>>2]=1;b=2147483647}y=i[D>>1]|0;v=y*6554|0;if((v|0)!=1073741824){y=(y*13108|0)+b|0;if((v^b|0)>0&(y^b|0)<0){o[m>>2]=1;y=(b>>>31)+2147483647|0}}else{o[m>>2]=1;y=2147483647}b=Oi(y,m)|0;if(_&((g|k)^1)){y=i[e>>1]|0;if((y*4681|0)==1073741824){o[m>>2]=1;b=2147483647}else b=y*9362|0;y=i[j>>1]|0;v=y*4681|0;if((v|0)!=1073741824){y=(y*9362|0)+b|0;if((v^b|0)>0&(y^b|0)<0){o[m>>2]=1;b=(b>>>31)+2147483647|0}else b=y}else{o[m>>2]=1;b=2147483647}y=i[S>>1]|0;v=y*4681|0;if((v|0)!=1073741824){y=(y*9362|0)+b|0;if((v^b|0)>0&(y^b|0)<0){o[m>>2]=1;b=(b>>>31)+2147483647|0}else b=y}else{o[m>>2]=1;b=2147483647}y=i[A>>1]|0;v=y*4681|0;if((v|0)!=1073741824){y=(y*9362|0)+b|0;if((v^b|0)>0&(y^b|0)<0){o[m>>2]=1;y=(b>>>31)+2147483647|0}}else{o[m>>2]=1;y=2147483647}v=i[R>>1]|0;b=v*4681|0;if((b|0)!=1073741824){v=(v*9362|0)+y|0;if((b^y|0)>0&(v^y|0)<0){o[m>>2]=1;y=(y>>>31)+2147483647|0}else y=v}else{o[m>>2]=1;y=2147483647}v=i[M>>1]|0;b=v*4681|0;if((b|0)!=1073741824){v=(v*9362|0)+y|0;if((b^y|0)>0&(v^y|0)<0){o[m>>2]=1;v=(y>>>31)+2147483647|0}}else{o[m>>2]=1;v=2147483647}b=i[D>>1]|0;p=b*4681|0;if((p|0)!=1073741824){w=(b*9362|0)+v|0;if((p^v|0)>0&(w^v|0)<0){o[m>>2]=1;w=(v>>>31)+2147483647|0}}else{o[m>>2]=1;w=2147483647}b=Oi(w,m)|0}y=h?8192:c<<16>>16;p=ee(y,t<<16>>16)|0;if((p|0)==1073741824){o[m>>2]=1;v=2147483647}else v=p<<1;b=b<<16>>16;w=b<<13;if((w|0)!=1073741824){p=v+(b<<14)|0;if((v^w|0)>0&(p^v|0)<0){o[m>>2]=1;v=(v>>>31)+2147483647|0}else v=p}else{o[m>>2]=1;v=2147483647}p=ee(b,y)|0;if((p|0)==1073741824){o[m>>2]=1;w=2147483647}else w=p<<1;p=v-w|0;if(((p^v)&(w^v)|0)<0){o[m>>2]=1;p=(v>>>31)+2147483647|0}D=p<<2;t=f;m=Oi((D>>2|0)==(p|0)?D:p>>31^2147483647,m)|0;D=i[t>>1]|0;D=D&65535;D=D+1|0;D=D&65535;i[t>>1]=D;return m|0}function qe(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,o=0,s=0,l=0;n=r;o=n+80|0;do{i[n>>1]=0;n=n+2|0}while((n|0)<(o|0));n=0;do{l=i[e+(n<<1)>>1]|0;o=((l&8)<<10&65535^8192)+-4096<<16>>16;s=n<<16;l=((i[t+((l&7)<<1)>>1]|0)*327680|0)+s>>16;i[r+(l<<1)>>1]=o;s=((i[t+((a[e+(n+5<<1)>>1]&7)<<1)>>1]|0)*327680|0)+s>>16;if((s|0)<(l|0))o=0-(o&65535)&65535;l=r+(s<<1)|0;i[l>>1]=(a[l>>1]|0)+(o&65535);n=n+1|0}while((n|0)!=5);return}function Ve(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,o=0,s=0;o=r<<16>>16;n=(o<<1&2|1)+((o>>>1&7)*5|0)|0;r=o>>>4&3;r=((o>>>6&7)*5|0)+((r|0)==3?4:r)|0;o=t;s=o+80|0;do{i[o>>1]=0;o=o+2|0}while((o|0)<(s|0));e=e<<16>>16;i[t+(n<<1)>>1]=(0-(e&1)&16383)+57344;i[t+(r<<1)>>1]=(0-(e>>>1&1)&16383)+57344;return}function He(e,r,t,n,o,s){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;var l=0,u=0;s=t<<16>>16;u=s>>>3;e=e<<16>>16;e=((e<<17>>17|0)==(e|0)?e<<1:e>>>15^32767)+(u&8)<<16;u=(a[n+(e+65536>>16<<1)>>1]|0)+((u&7)*5|0)|0;t=r<<16>>16;l=(0-(t&1)&16383)+57344&65535;e=o+((a[n+(e>>16<<1)>>1]|0)+((s&7)*5|0)<<16>>16<<1)|0;r=o;s=r+80|0;do{i[r>>1]=0;r=r+2|0}while((r|0)<(s|0));i[e>>1]=l;i[o+(u<<16>>16<<1)>>1]=(0-(t>>>1&1)&16383)+57344;return}function We(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,o=0,s=0,a=0;r=r<<16>>16;n=(r&7)*5|0;o=(r>>>2&2|1)+((r>>>4&7)*5|0)|0;r=(r>>>6&2)+2+((r>>>8&7)*5|0)|0;s=t;a=s+80|0;do{i[s>>1]=0;s=s+2|0}while((s|0)<(a|0));e=e<<16>>16;i[t+(n<<1)>>1]=(0-(e&1)&16383)+57344;i[t+(o<<1)>>1]=(0-(e>>>1&1)&16383)+57344;i[t+(r<<1)>>1]=(0-(e>>>2&1)&16383)+57344;return}function Ye(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0;r=r<<16>>16;a=i[t+((r&7)<<1)>>1]|0;l=i[t+((r>>>3&7)<<1)>>1]|0;s=i[t+((r>>>6&7)<<1)>>1]|0;t=(r>>>9&1)+3+((i[t+((r>>>10&7)<<1)>>1]|0)*5|0)|0;r=n;o=r+80|0;do{i[r>>1]=0;r=r+2|0}while((r|0)<(o|0));e=e<<16>>16;i[n+(a*327680>>16<<1)>>1]=(0-(e&1)&16383)+57344;i[n+((l*327680|0)+65536>>16<<1)>>1]=(0-(e>>>1&1)&16383)+57344;i[n+((s*327680|0)+131072>>16<<1)>>1]=(0-(e>>>2&1)&16383)+57344;i[n+(t<<16>>16<<1)>>1]=(0-(e>>>3&1)&16383)+57344;return}function Ge(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0;w=c;c=c+32|0;p=w+16|0;m=w;l=r;s=l+80|0;do{i[l>>1]=0;l=l+2|0}while((l|0)<(s|0));s=i[e>>1]|0;i[p>>1]=s;i[p+2>>1]=i[e+2>>1]|0;i[p+4>>1]=i[e+4>>1]|0;i[p+6>>1]=i[e+6>>1]|0;d=i[e+8>>1]|0;Xe(d>>>3&65535,d&7,0,4,1,m,t);d=i[e+10>>1]|0;Xe(d>>>3&65535,d&7,2,6,5,m,t);d=i[e+12>>1]|0;n=d>>2;do{if((n*25|0)!=1073741824){l=(ee(n,1638400)|0)+786432>>21;n=l*6554>>15;if((n|0)>32767){o[t>>2]=1;u=1;f=1;e=163835;h=6;break}e=(n<<16>>16)*5|0;u=n&1;if((e|0)==1073741824){o[t>>2]=1;f=0;e=65535}else{f=0;h=6}}else{o[t>>2]=1;u=0;n=0;f=0;l=0;e=0;h=6}}while(0);if((h|0)==6)e=e&65535;h=l-e|0;u=u<<16>>16==0?h:4-h|0;h=u<<16>>16;i[m+6>>1]=Gn(((u<<17>>17|0)==(h|0)?u<<1:h>>>15^32767)&65535,d&1,t)|0;if(f){o[t>>2]=1;n=32767}h=n<<16>>16;i[m+14>>1]=((n<<17>>17|0)==(h|0)?n<<1:h>>>15^32767)+(d>>>1&1);n=0;while(1){s=s<<16>>16==0?8191:-8191;h=(i[m+(n<<1)>>1]<<2)+n<<16;l=h>>16;if((h|0)<2621440)i[r+(l<<1)>>1]=s;u=(i[m+(n+4<<1)>>1]<<2)+n<<16;e=u>>16;if((e|0)<(l|0))s=0-(s&65535)&65535;if((u|0)<2621440){h=r+(e<<1)|0;i[h>>1]=(a[h>>1]|0)+(s&65535)}n=n+1|0;if((n|0)==4)break;s=i[p+(n<<1)>>1]|0}c=w;return}function Xe(e,r,t,n,s,a,l){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;var u=0,f=0,c=0,d=0,h=0,m=0,p=0;f=e<<16>>16>124?124:e;e=(f<<16>>16)*1311>>15;p=(e|0)>32767;if(!p){u=e<<16>>16;if((u*25|0)==1073741824){o[l>>2]=1;u=1073741823}else m=4}else{o[l>>2]=1;u=32767;m=4}if((m|0)==4)u=(u*50|0)>>>1;d=(f&65535)-u|0;u=(d<<16>>16)*6554>>15;h=(u|0)>32767;if(!h){f=u<<16>>16;if((f*5|0)==1073741824){o[l>>2]=1;c=1073741823}else m=9}else{o[l>>2]=1;f=32767;m=9}if((m|0)==9)c=(f*10|0)>>>1;d=d-c|0;m=d<<16>>16;f=r<<16>>16;c=f>>2;f=f-(c<<2)|0;i[a+(t<<16>>16<<1)>>1]=((d<<17>>17|0)==(m|0)?d<<1:m>>>15^32767)+(f&1);if(h){o[l>>2]=1;u=32767}t=u<<16>>16;i[a+(n<<16>>16<<1)>>1]=((u<<17>>17|0)==(t|0)?u<<1:t>>>15^32767)+(f<<16>>17);if(p){o[l>>2]=1;e=32767}n=e<<16>>16;i[a+(s<<16>>16<<1)>>1]=Gn(c&65535,((e<<17>>17|0)==(n|0)?e<<1:n>>>15^32767)&65535,l)|0;return}function Ke(e){e=e|0;var r=0,t=0,n=0,s=0;if(!e){s=-1;return s|0}ei(e+1168|0);i[e+460>>1]=40;o[e+1164>>2]=0;r=e+646|0;t=e+1216|0;n=e+462|0;s=n+22|0;do{i[n>>1]=0;n=n+2|0}while((n|0)<(s|0));sr(r,o[t>>2]|0)|0;pr(e+686|0)|0;cr(e+700|0)|0;Ue(e+608|0)|0;gr(e+626|0,o[t>>2]|0)|0;Ie(e+484|0)|0;_r(e+730|0)|0;ar(e+748|0)|0;Jn(e+714|0)|0;Je(e,0)|0;s=0;return s|0}function Je(e,r){e=e|0;r=r|0;var t=0,n=0;if(!e){e=-1;return e|0}o[e+388>>2]=e+308;Yi(e|0,0,308)|0;r=(r|0)!=8;if(r){t=e+412|0;n=t+20|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));i[e+392>>1]=3e4;i[e+394>>1]=26e3;i[e+396>>1]=21e3;i[e+398>>1]=15e3;i[e+400>>1]=8e3;i[e+402>>1]=0;i[e+404>>1]=-8e3;i[e+406>>1]=-15e3;i[e+408>>1]=-21e3;i[e+410>>1]=-26e3}i[e+432>>1]=0;i[e+434>>1]=40;o[e+1164>>2]=0;i[e+436>>1]=0;i[e+438>>1]=0;i[e+440>>1]=0;i[e+460>>1]=40;i[e+462>>1]=0;i[e+464>>1]=0;if(r){t=e+442|0;n=t+18|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));t=e+466|0;n=t+18|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));Ue(e+608|0)|0;n=e+1216|0;gr(e+626|0,o[n>>2]|0)|0;sr(e+646|0,o[n>>2]|0)|0;pr(e+686|0)|0;cr(e+700|0)|0;Jn(e+714|0)|0}else{t=e+466|0;n=t+18|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));Ue(e+608|0)|0;sr(e+646|0,o[e+1216>>2]|0)|0;pr(e+686|0)|0;cr(e+700|0)|0}Ie(e+484|0)|0;i[e+606>>1]=21845;_r(e+730|0)|0;if(!r){e=0;return e|0}ar(e+748|0)|0;e=0;return e|0}function Ze(e,r,t,s,l,u){e=e|0;r=r|0;t=t|0;s=s|0;l=l|0;u=u|0;var f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0,G=0,X=0,K=0,J=0,Z=0,$=0,Q=0,re=0,te=0,ne=0,ie=0,oe=0,se=0,ae=0,le=0,ue=0,fe=0,ce=0,de=0,he=0,me=0,pe=0,we=0,be=0,ve=0,ye=0,ge=0,ke=0,_e=0,Ee=0,je=0,Se=0,Ae=0,Re=0,Me=0,De=0,Pe=0,Te=0,Ce=0,Le=0,Ne=0,xe=0,Ie=0,Ue=0,Xe=0,Ke=0,Ze=0,ir=0,sr=0,ar=0,cr=0,pr=0,vr=0,gr=0,_r=0,Ar=0,Rr=0;Rr=c;c=c+336|0;b=Rr+236|0;w=Rr+216|0;_r=Rr+112|0;gr=Rr+12|0;sr=Rr+256|0;cr=Rr+136|0;ar=Rr+32|0;Ze=Rr+8|0;ir=Rr+6|0;vr=Rr+4|0;pr=Rr+2|0;Ar=Rr;xe=e+1164|0;Ie=e+748|0;Ue=fr(Ie,s,xe)|0;if(Ue){Je(e,8)|0;lr(Ie,e+412|0,e+646|0,e+714|0,e+608|0,Ue,r,t,e+1168|0,l,u,xe);Ar=e+666|0;wi(Ar,e+392|0,10,xe);kr(e+626|0,Ar,xe);Ar=e+1156|0;o[Ar>>2]=Ue;c=Rr;return}switch(s|0){case 1:{f=1;E=6;break}case 2:case 7:{Fe(e+606|0,i[(o[e+1256>>2]|0)+(r<<1)>>1]|0,o[(o[e+1260>>2]|0)+(r<<2)>>2]|0,t,o[e+1276>>2]|0,xe);E=9;break}case 3:{E=9;break}default:{f=0;E=6}}do{if((E|0)==6){s=e+440|0;if((i[s>>1]|0)==6){i[s>>1]=5;Le=0;Ne=0;break}else{i[s>>1]=0;Le=0;Ne=0;break}}else if((E|0)==9){s=e+440|0;Le=(a[s>>1]|0)+1&65535;i[s>>1]=Le<<16>>16>6?6:Le;Le=1;Ne=1;f=0}}while(0);De=e+1156|0;switch(o[De>>2]|0){case 1:{i[s>>1]=5;i[e+436>>1]=0;break}case 2:{i[s>>1]=5;i[e+436>>1]=1;break}default:{}}h=e+646|0;Pe=e+666|0;d=_r;m=Pe;p=d+20|0;do{n[d>>0]=n[m>>0]|0;d=d+1|0;m=m+1|0}while((d|0)<(p|0));Te=(r|0)!=7;Ce=e+1168|0;if(Te){nr(h,r,Ne,t,Ce,b,xe);d=e+392|0;ii(d,b,u,xe);t=t+6|0}else{or(h,Ne,t,Ce,w,b,xe);d=e+392|0;ti(d,w,b,u,xe);t=t+10|0}m=b;p=d+20|0;do{i[d>>1]=i[m>>1]|0;d=d+2|0;m=m+2|0}while((d|0)<(p|0));Me=r>>>0>1;R=r>>>0<4&1;Re=(r|0)==5;Ae=Re?10:5;Re=Re?19:9;P=e+434|0;T=143-Re&65535;O=e+460|0;C=e+462|0;L=e+464|0;M=r>>>0>2;N=e+388|0;x=(r|0)==0;F=r>>>0<2;I=e+1244|0;B=e+432|0;U=r>>>0<6;z=e+1168|0;q=(r|0)==6;V=Ne<<16>>16==0;H=e+714|0;W=e+686|0;Y=e+436|0;G=e+700|0;X=(r|0)==7;K=e+482|0;J=r>>>0<3;Z=e+608|0;$=e+626|0;Q=e+438|0;re=r>>>0<7;te=e+730|0;D=Le^1;ne=f<<16>>16!=0;Se=ne?Ne^1:0;ie=e+442|0;oe=e+458|0;se=e+412|0;ae=e+80|0;le=e+1236|0;ue=e+1240|0;fe=e+468|0;ce=e+466|0;de=e+470|0;he=e+472|0;me=e+474|0;pe=e+476|0;we=e+478|0;be=e+480|0;ve=e+444|0;ye=e+446|0;ge=e+448|0;ke=e+450|0;_e=e+452|0;Ee=e+454|0;je=e+456|0;j=0;S=0;v=0;y=0;A=-1;while(1){A=(A<<16>>16)+1|0;p=A&65535;S=1-(S<<16>>16)|0;k=S&65535;w=Me&v<<16>>16==80?0:v;g=t+2|0;b=i[t>>1]|0;e:do{if(Te){_=i[P>>1]|0;d=(_&65535)-Ae&65535;d=d<<16>>16<20?20:d;m=(d&65535)+Re&65535;h=m<<16>>16>143;Qe(b,h?T:d,h?143:m,w,_,Ze,ir,R,xe);w=i[Ze>>1]|0;i[O>>1]=w;if(Le){b=i[P>>1]|0;if(b<<16>>16<143){b=(b&65535)+1&65535;i[P>>1]=b}i[Ze>>1]=b;i[ir>>1]=0;if((i[C>>1]|0)!=0?!(M|(i[L>>1]|0)<5):0){i[Ze>>1]=w;b=w;w=0}else w=0}else{b=w;w=i[ir>>1]|0}_i(o[N>>2]|0,b,w,40,1,xe);if(F){w=t+6|0;He(p,i[t+4>>1]|0,i[g>>1]|0,o[I>>2]|0,sr,xe);t=i[B>>1]|0;_=t<<16>>16;b=_<<1;if((b|0)==(_<<17>>16|0)){m=x;break}m=x;b=t<<16>>16>0?32767:-32768;break}switch(r|0){case 2:{w=t+6|0;Ve(i[t+4>>1]|0,i[g>>1]|0,sr);t=i[B>>1]|0;_=t<<16>>16;b=_<<1;if((b|0)==(_<<17>>16|0)){m=x;break e}m=x;b=t<<16>>16>0?32767:-32768;break e}case 3:{w=t+6|0;We(i[t+4>>1]|0,i[g>>1]|0,sr);t=i[B>>1]|0;_=t<<16>>16;b=_<<1;if((b|0)==(_<<17>>16|0)){m=x;break e}m=x;b=t<<16>>16>0?32767:-32768;break e}default:{if(U){w=t+6|0;Ye(i[t+4>>1]|0,i[g>>1]|0,o[z>>2]|0,sr);t=i[B>>1]|0;_=t<<16>>16;b=_<<1;if((b|0)==(_<<17>>16|0)){m=x;break e}m=x;b=t<<16>>16>0?32767:-32768;break e}if(!q){m=x;E=44;break e}Ge(g,sr,xe);b=t+16|0;t=i[B>>1]|0;_=t<<16>>16;p=_<<1;if((p|0)==(_<<17>>16|0)){w=b;m=x;b=p;break e}w=b;m=x;b=t<<16>>16>0?32767:-32768;break e}}}else{er(b,18,143,w,Ze,ir,xe);if(V?w<<16>>16==0|b<<16>>16<61:0){b=i[Ze>>1]|0;w=i[ir>>1]|0}else{i[O>>1]=i[Ze>>1]|0;b=i[P>>1]|0;i[Ze>>1]=b;i[ir>>1]=0;w=0}_i(o[N>>2]|0,b,w,40,0,xe);m=0;E=44}}while(0);if((E|0)==44){E=0;if(Le)mr(W,i[s>>1]|0,vr,xe);else i[vr>>1]=tr(r,i[g>>1]|0,o[ue>>2]|0)|0;wr(W,Ne,i[Y>>1]|0,vr,xe);qe(t+4|0,sr,o[z>>2]|0);b=t+24|0;t=i[vr>>1]|0;_=t<<16>>16;p=_<<1;if((p|0)==(_<<17>>16|0)){w=b;b=p}else{w=b;b=t<<16>>16>0?32767:-32768}}t=i[Ze>>1]|0;e:do{if(t<<16>>16<40){d=b<<16>>16;h=t;b=t<<16>>16;while(1){p=sr+(b<<1)|0;t=(ee(i[sr+(b-(h<<16>>16)<<1)>>1]|0,d)|0)>>15;if((t|0)>32767){o[xe>>2]=1;t=32767}_=t&65535;i[Ar>>1]=_;i[p>>1]=Gn(i[p>>1]|0,_,xe)|0;b=b+1|0;if((b&65535)<<16>>16==40)break e;h=i[Ze>>1]|0}}}while(0);e:do{if(m){m=(S&65535|0)==0;if(m){t=w;p=y}else{t=w+2|0;p=i[w>>1]|0}if(V)$e(H,r,p,sr,k,vr,pr,Ce,xe);else{mr(W,i[s>>1]|0,vr,xe);dr(G,H,i[s>>1]|0,pr,xe)}wr(W,Ne,i[Y>>1]|0,vr,xe);hr(G,Ne,i[Y>>1]|0,pr,xe);w=i[vr>>1]|0;b=w<<16>>16>13017?13017:w;if(m)E=80;else _=p}else{t=w+2|0;b=i[w>>1]|0;switch(r|0){case 1:case 2:case 3:case 4:case 6:{if(V)$e(H,r,b,sr,k,vr,pr,Ce,xe);else{mr(W,i[s>>1]|0,vr,xe);dr(G,H,i[s>>1]|0,pr,xe)}wr(W,Ne,i[Y>>1]|0,vr,xe);hr(G,Ne,i[Y>>1]|0,pr,xe);w=i[vr>>1]|0;b=w<<16>>16>13017?13017:w;if(!q){p=y;E=80;break e}if((i[P>>1]|0)<=45){p=y;E=80;break e}p=y;b=b<<16>>16>>>2&65535;E=80;break e}case 5:{if(Le)mr(W,i[s>>1]|0,vr,xe);else i[vr>>1]=tr(5,b,o[ue>>2]|0)|0;wr(W,Ne,i[Y>>1]|0,vr,xe);if(V)rr(H,5,i[t>>1]|0,sr,o[le>>2]|0,pr,xe);else dr(G,H,i[s>>1]|0,pr,xe);hr(G,Ne,i[Y>>1]|0,pr,xe);b=i[vr>>1]|0;t=w+4|0;w=b;p=y;b=b<<16>>16>13017?13017:b;E=80;break e}default:{if(V)rr(H,r,b,sr,o[le>>2]|0,pr,xe);else dr(G,H,i[s>>1]|0,pr,xe);hr(G,Ne,i[Y>>1]|0,pr,xe);b=i[vr>>1]|0;w=b;p=y;E=80;break e}}}}while(0);if((E|0)==80){E=0;i[B>>1]=w<<16>>16>13017?13017:w;_=p}b=b<<16>>16;b=(b<<17>>17|0)==(b|0)?b<<1:b>>>15^32767;k=(b&65535)<<16>>16>16384;e:do{if(k){g=b<<16>>16;if(X)w=0;else{w=0;while(1){b=(ee(i[(o[N>>2]|0)+(w<<1)>>1]|0,g)|0)>>15;if((b|0)>32767){o[xe>>2]=1;b=32767}i[Ar>>1]=b;b=ee(i[vr>>1]|0,b<<16>>16)|0;if((b|0)==1073741824){o[xe>>2]=1;b=2147483647}else b=b<<1;i[cr+(w<<1)>>1]=Oi(b,xe)|0;w=w+1|0;if((w|0)==40)break e}}do{b=(ee(i[(o[N>>2]|0)+(w<<1)>>1]|0,g)|0)>>15;if((b|0)>32767){o[xe>>2]=1;b=32767}i[Ar>>1]=b;b=ee(i[vr>>1]|0,b<<16>>16)|0;if((b|0)!=1073741824){b=b<<1;if((b|0)<0)b=~((b^-2)>>1);else E=88}else{o[xe>>2]=1;b=2147483647;E=88}if((E|0)==88){E=0;b=b>>1}i[cr+(w<<1)>>1]=Oi(b,xe)|0;w=w+1|0}while((w|0)!=40)}}while(0);if(V){i[ce>>1]=i[fe>>1]|0;i[fe>>1]=i[de>>1]|0;i[de>>1]=i[he>>1]|0;i[he>>1]=i[me>>1]|0;i[me>>1]=i[pe>>1]|0;i[pe>>1]=i[we>>1]|0;i[we>>1]=i[be>>1]|0;i[be>>1]=i[K>>1]|0;i[K>>1]=i[vr>>1]|0}if((Le|(i[Y>>1]|0)!=0?J&(i[C>>1]|0)!=0:0)?(Xe=i[vr>>1]|0,Xe<<16>>16>12288):0){E=(((Xe<<16>>16)+118784|0)>>>1)+12288&65535;i[vr>>1]=E<<16>>16>14745?14745:E}yr(_r,Pe,v,gr,xe);b=ze(Z,r,i[pr>>1]|0,gr,$,Ne,i[Y>>1]|0,f,i[Q>>1]|0,i[C>>1]|0,i[L>>1]|0,xe)|0;switch(r|0){case 0:case 1:case 2:case 3:case 6:{p=i[vr>>1]|0;g=1;break}default:{b=i[pr>>1]|0;p=i[vr>>1]|0;if(re)g=1;else{w=p<<16>>16;if(p<<16>>16<0)w=~((w^-2)>>1);else w=w>>>1;p=w&65535;g=2}}}d=p<<16>>16;v=g&65535;w=o[N>>2]|0;y=0;do{w=w+(y<<1)|0;i[ar+(y<<1)>>1]=i[w>>1]|0;w=ee(i[w>>1]|0,d)|0;if((w|0)==1073741824){o[xe>>2]=1;h=2147483647}else h=w<<1;m=ee(i[pr>>1]|0,i[sr+(y<<1)>>1]|0)|0;if((m|0)!=1073741824){w=(m<<1)+h|0;if((m^h|0)>0&(w^h|0)<0){o[xe>>2]=1;w=(h>>>31)+2147483647|0}}else{o[xe>>2]=1;w=2147483647}E=w<<v;E=Oi((E>>v|0)==(w|0)?E:w>>31^2147483647,xe)|0;w=o[N>>2]|0;i[w+(y<<1)>>1]=E;y=y+1|0}while((y|0)!=40);jr(te);if((J?(i[L>>1]|0)>3:0)?!((i[C>>1]|0)==0|D):0)Er(te);Sr(te,r,ar,b,i[vr>>1]|0,sr,p,g,Ce,xe);b=0;m=0;do{w=i[ar+(m<<1)>>1]|0;w=ee(w,w)|0;if((w|0)!=1073741824){p=(w<<1)+b|0;if((w^b|0)>0&(p^b|0)<0){o[xe>>2]=1;b=(b>>>31)+2147483647|0}else b=p}else{o[xe>>2]=1;b=2147483647}m=m+1|0}while((m|0)!=40);if((b|0)<0)b=~((b^-2)>>1);else b=b>>1;b=Ni(b,Ar,xe)|0;p=((i[Ar>>1]|0)>>>1)+15|0;w=p&65535;p=p<<16>>16;if(w<<16>>16>0)if(w<<16>>16<31){b=b>>p;E=135}else{b=0;E=137}else{g=0-p<<16>>16;E=b<<g;b=(E>>g|0)==(b|0)?E:b>>31^2147483647;E=135}if((E|0)==135){E=0;if((b|0)<0)b=~((b^-4)>>2);else E=137}if((E|0)==137){E=0;b=b>>>2}b=b&65535;do{if(J?(Ke=i[L>>1]|0,Ke<<16>>16>5):0)if(i[C>>1]|0)if((i[s>>1]|0)<4){if(ne){if(!(Le|(i[Q>>1]|0)!=0))E=145}else if(!Le)E=145;if((E|0)==145?(0,(i[Y>>1]|0)==0):0){E=147;break}br(ar,b,ie,Ke,i[Y>>1]|0,Se,xe)|0;E=147}else E=147;else E=151;else E=147}while(0);do{if((E|0)==147){E=0;if(i[C>>1]|0){if(!Le?(i[Y>>1]|0)==0:0){E=151;break}if((i[s>>1]|0)>=4)E=151}else E=151}}while(0);if((E|0)==151){E=0;i[ie>>1]=i[ve>>1]|0;i[ve>>1]=i[ye>>1]|0;i[ye>>1]=i[ge>>1]|0;i[ge>>1]=i[ke>>1]|0;i[ke>>1]=i[_e>>1]|0;i[_e>>1]=i[Ee>>1]|0;i[Ee>>1]=i[je>>1]|0;i[je>>1]=i[oe>>1]|0;i[oe>>1]=b}if(k){b=0;do{k=cr+(b<<1)|0;i[k>>1]=Gn(i[k>>1]|0,i[ar+(b<<1)>>1]|0,xe)|0;b=b+1|0}while((b|0)!=40);Oe(ar,cr,40,xe);o[xe>>2]=0;Fi(u,cr,l+(j<<1)|0,40,se,0)}else{o[xe>>2]=0;Fi(u,ar,l+(j<<1)|0,40,se,0)}if(!(o[xe>>2]|0))Wi(se|0,l+(j+30<<1)|0,20)|0;else{p=193;while(1){w=e+(p<<1)|0;k=i[w>>1]|0;b=k<<16>>16;if(k<<16>>16<0)b=~((b^-4)>>2);else b=b>>>2;i[w>>1]=b;if((p|0)>0)p=p+-1|0;else{p=39;break}}while(1){w=ar+(p<<1)|0;k=i[w>>1]|0;b=k<<16>>16;if(k<<16>>16<0)b=~((b^-4)>>2);else b=b>>>2;i[w>>1]=b;if((p|0)>0)p=p+-1|0;else break}Fi(u,ar,l+(j<<1)|0,40,se,1)}Wi(e|0,ae|0,308)|0;i[P>>1]=i[Ze>>1]|0;b=j+40|0;v=b&65535;if(v<<16>>16>=160)break;else{j=b<<16>>16;u=u+22|0;y=_}}i[C>>1]=Be(e+484|0,e+466|0,l,L,xe)|0;ur(Ie,Pe,l,xe);i[Y>>1]=Ne;i[Q>>1]=f;kr(e+626|0,Pe,xe);Ar=De;o[Ar>>2]=Ue;c=Rr;return}function $e(e,r,t,n,s,l,u,f,d){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;var h=0,m=0,p=0,w=0,b=0;b=c;c=c+16|0;p=b+2|0;w=b;t=t<<16>>16;t=(t<<18>>18|0)==(t|0)?t<<2:t>>>15^32767;switch(r|0){case 3:case 4:case 6:{m=t<<16>>16;t=o[f+84>>2]|0;i[l>>1]=i[t+(m<<1)>>1]|0;f=i[t+(m+1<<1)>>1]|0;h=i[t+(m+3<<1)>>1]|0;l=i[t+(m+2<<1)>>1]|0;break}case 0:{f=(t&65535)+(s<<16>>16<<1^2)|0;f=(f&65535)<<16>>16>1022?1022:f<<16>>16;i[l>>1]=i[782+(f<<1)>>1]|0;l=i[782+(f+1<<1)>>1]|0;ai(l<<16>>16,w,p,d);i[w>>1]=(a[w>>1]|0)+65524;f=Li(i[p>>1]|0,5,d)|0;m=i[w>>1]|0;m=Gn(f,((m<<26>>26|0)==(m|0)?m<<10:m>>>15^32767)&65535,d)|0;f=i[p>>1]|0;t=i[w>>1]|0;if((t*24660|0)==1073741824){o[d>>2]=1;s=2147483647}else s=t*49320|0;h=(f<<16>>16)*24660>>15;t=s+(h<<1)|0;if((s^h|0)>0&(t^s|0)<0){o[d>>2]=1;t=(s>>>31)+2147483647|0}h=t<<13;f=l;h=Oi((h>>13|0)==(t|0)?h:t>>31^2147483647,d)|0;l=m;break}default:{m=t<<16>>16;t=o[f+80>>2]|0;i[l>>1]=i[t+(m<<1)>>1]|0;f=i[t+(m+1<<1)>>1]|0;h=i[t+(m+3<<1)>>1]|0;l=i[t+(m+2<<1)>>1]|0}}Zn(e,r,n,w,p,0,0,d);s=ee((ki(14,i[p>>1]|0,d)|0)<<16>>16,f<<16>>16)|0;if((s|0)==1073741824){o[d>>2]=1;t=2147483647}else t=s<<1;f=10-(a[w>>1]|0)|0;s=f&65535;f=f<<16>>16;if(s<<16>>16>0){w=s<<16>>16<31?t>>f:0;w=w>>>16;w=w&65535;i[u>>1]=w;$n(e,l,h);c=b;return}else{d=0-f<<16>>16;w=t<<d;w=(w>>d|0)==(t|0)?w:t>>31^2147483647;w=w>>>16;w=w&65535;i[u>>1]=w;$n(e,l,h);c=b;return}}function Qe(e,r,t,n,s,a,l,u,f){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;f=f|0;if(!(n<<16>>16)){u=e<<16>>16;if(e<<16>>16>=197){i[a>>1]=u+65424;i[l>>1]=0;return}s=((u<<16)+131072>>16)*10923>>15;if((s|0)>32767){o[f>>2]=1;s=32767}e=(s&65535)+19|0;i[a>>1]=e;i[l>>1]=u+58-((e*196608|0)>>>16);return}if(!(u<<16>>16)){f=e<<16>>16<<16;e=((f+131072>>16)*21846|0)+-65536>>16;i[a>>1]=e+(r&65535);i[l>>1]=((f+-131072|0)>>>16)-((e*196608|0)>>>16);return}if((xi(s,r,f)|0)<<16>>16>5)s=(r&65535)+5&65535;u=t<<16>>16;u=(u-(s&65535)&65535)<<16>>16>4?u+65532&65535:s;s=e<<16>>16;if(e<<16>>16<4){i[a>>1]=((((u&65535)<<16)+-327680|0)>>>16)+s;i[l>>1]=0;return}s=s<<16;if(e<<16>>16<12){f=(((s+-327680>>16)*10923|0)>>>15<<16)+-65536|0;e=f>>16;i[a>>1]=(u&65535)+e;i[l>>1]=((s+-589824|0)>>>16)-(f>>>15)-e;return}else{i[a>>1]=((s+-786432+((u&65535)<<16)|0)>>>16)+1;i[l>>1]=0;return}}function er(e,r,t,n,o,s,l){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;l=l|0;if(n<<16>>16){l=(a[o>>1]|0)+65531|0;l=(l<<16>>16|0)<(r<<16>>16|0)?r:l&65535;t=t<<16>>16;r=e<<16>>16<<16;e=((r+327680>>16)*10924|0)+-65536>>16;i[o>>1]=(((((l&65535)<<16)+589824>>16|0)>(t|0)?t+65527&65535:l)&65535)+e;i[s>>1]=((r+-196608|0)>>>16)-((e*393216|0)>>>16);return}n=e<<16>>16;if(e<<16>>16<463){e=((((n<<16)+327680>>16)*10924|0)>>>16)+17|0;i[o>>1]=e;i[s>>1]=n+105-((e*393216|0)>>>16);return}else{i[o>>1]=n+65168;i[s>>1]=0;return}}function rr(e,r,t,n,s,a,l){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;var u=0,f=0,d=0,h=0;h=c;c=c+16|0;f=h+6|0;u=h+4|0;Zn(e,r,n,f,u,h+2|0,h,l);d=(t&31)*3|0;n=s+(d<<1)|0;if(!((xi(r&65535,7,l)|0)<<16>>16)){f=ki(i[f>>1]|0,i[u>>1]|0,l)|0;u=f<<16>>16;u=(ee(((f<<20>>20|0)==(u|0)?f<<4:u>>>15^32767)<<16>>16,i[n>>1]|0)|0)>>15;if((u|0)>32767){o[l>>2]=1;u=32767}n=u<<16;t=n>>16;if((u<<17>>17|0)==(t|0))u=n>>15;else u=t>>>15^32767}else{t=ki(14,i[u>>1]|0,l)|0;t=ee(t<<16>>16,i[n>>1]|0)|0;if((t|0)==1073741824){o[l>>2]=1;n=2147483647}else n=t<<1;t=xi(9,i[f>>1]|0,l)|0;u=t<<16>>16;if(t<<16>>16>0)u=t<<16>>16<31?n>>u:0;else{l=0-u<<16>>16;u=n<<l;u=(u>>l|0)==(n|0)?u:n>>31^2147483647}u=u>>>16}i[a>>1]=u;$n(e,i[s+(d+1<<1)>>1]|0,i[s+(d+2<<1)>>1]|0);c=h;return}function tr(e,r,t){e=e|0;r=r|0;t=t|0;r=i[t+(r<<16>>16<<1)>>1]|0;if((e|0)!=7){e=r;return e|0}e=r&65532;return e|0}function nr(e,r,t,s,a,l,u){e=e|0;r=r|0;t=t|0;s=s|0;a=a|0;l=l|0;u=u|0;var f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0;k=c;c=c+48|0;b=k+20|0;g=k;y=o[a+44>>2]|0;v=o[a+64>>2]|0;f=o[a+4>>2]|0;w=o[a+12>>2]|0;h=o[a+20>>2]|0;d=o[a+56>>2]|0;if(!(t<<16>>16)){m=r>>>0<2;if(m){t=765;p=508;h=o[a+52>>2]|0}else{a=(r|0)==5;t=a?1533:765;p=2044;f=a?d:f}d=i[s>>1]|0;t=((d*196608>>16|0)>(t&65535|0)?t:d*3&65535)<<16>>16;d=i[f+(t<<1)>>1]|0;i[b>>1]=d;i[b+2>>1]=i[f+(t+1<<1)>>1]|0;i[b+4>>1]=i[f+(t+2<<1)>>1]|0;t=i[s+2>>1]|0;if(m)t=t<<16>>16<<1&65535;m=(t<<16>>16)*196608|0;m=(m|0)>100466688?1533:m>>16;i[b+6>>1]=i[w+(m<<1)>>1]|0;i[b+8>>1]=i[w+(m+1<<1)>>1]|0;i[b+10>>1]=i[w+(m+2<<1)>>1]|0;s=i[s+4>>1]|0;s=((s<<18>>16|0)>(p&65535|0)?p:s<<2&65535)<<16>>16;i[b+12>>1]=i[h+(s<<1)>>1]|0;i[b+14>>1]=i[h+((s|1)<<1)>>1]|0;i[b+16>>1]=i[h+((s|2)<<1)>>1]|0;i[b+18>>1]=i[h+((s|3)<<1)>>1]|0;if((r|0)==8){t=0;while(1){v=e+(t<<1)|0;i[g+(t<<1)>>1]=Gn(d,Gn(i[y+(t<<1)>>1]|0,i[v>>1]|0,u)|0,u)|0;i[v>>1]=d;t=t+1|0;if((t|0)==10)break;d=i[b+(t<<1)>>1]|0}Pi(g,205,10,u);f=e+20|0;d=g;t=f+20|0;do{n[f>>0]=n[d>>0]|0;f=f+1|0;d=d+1|0}while((f|0)<(t|0));wi(g,l,10,u);c=k;return}else f=0;do{d=e+(f<<1)|0;t=(ee(i[v+(f<<1)>>1]|0,i[d>>1]|0)|0)>>15;if((t|0)>32767){o[u>>2]=1;t=32767}s=Gn(i[y+(f<<1)>>1]|0,t&65535,u)|0;r=i[b+(f<<1)>>1]|0;i[g+(f<<1)>>1]=Gn(r,s,u)|0;i[d>>1]=r;f=f+1|0}while((f|0)!=10);Pi(g,205,10,u);f=e+20|0;d=g;t=f+20|0;do{n[f>>0]=n[d>>0]|0;f=f+1|0;d=d+1|0}while((f|0)<(t|0));wi(g,l,10,u);c=k;return}else{f=0;do{t=(i[e+20+(f<<1)>>1]|0)*29491>>15;if((t|0)>32767){o[u>>2]=1;t=32767}d=(i[y+(f<<1)>>1]|0)*3277>>15;if((d|0)>32767){o[u>>2]=1;d=32767}i[g+(f<<1)>>1]=Gn(d&65535,t&65535,u)|0;f=f+1|0}while((f|0)!=10);if((r|0)==8){f=0;do{v=e+(f<<1)|0;b=Gn(i[y+(f<<1)>>1]|0,i[v>>1]|0,u)|0;i[v>>1]=xi(i[g+(f<<1)>>1]|0,b,u)|0;f=f+1|0}while((f|0)!=10);Pi(g,205,10,u);f=e+20|0;d=g;t=f+20|0;do{n[f>>0]=n[d>>0]|0;f=f+1|0;d=d+1|0}while((f|0)<(t|0));wi(g,l,10,u);c=k;return}else f=0;do{d=e+(f<<1)|0;t=(ee(i[v+(f<<1)>>1]|0,i[d>>1]|0)|0)>>15;if((t|0)>32767){o[u>>2]=1;t=32767}b=Gn(i[y+(f<<1)>>1]|0,t&65535,u)|0;i[d>>1]=xi(i[g+(f<<1)>>1]|0,b,u)|0;f=f+1|0}while((f|0)!=10);Pi(g,205,10,u);f=e+20|0;d=g;t=f+20|0;do{n[f>>0]=n[d>>0]|0;f=f+1|0;d=d+1|0}while((f|0)<(t|0));wi(g,l,10,u);c=k;return}}function ir(e,r,t){e=e|0;r=r|0;t=t|0;Wi(e|0,t+((r<<16>>16)*10<<1)|0,20)|0;return}function or(e,r,t,s,a,l,u){e=e|0;r=r|0;t=t|0;s=s|0;a=a|0;l=l|0;u=u|0;var f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0;k=c;c=c+80|0;w=k+60|0;b=k+40|0;y=k+20|0;g=k;v=o[s+48>>2]|0;h=o[s+24>>2]|0;m=o[s+28>>2]|0;p=o[s+32>>2]|0;if(r<<16>>16){f=0;do{w=v+(f<<1)|0;t=Gn(((i[w>>1]|0)*1639|0)>>>15&65535,((i[e+20+(f<<1)>>1]|0)*31128|0)>>>15&65535,u)|0;i[y+(f<<1)>>1]=t;i[g+(f<<1)>>1]=t;b=e+(f<<1)|0;i[b>>1]=xi(t,Gn(i[w>>1]|0,((i[b>>1]|0)*21299|0)>>>15&65535,u)|0,u)|0;f=f+1|0}while((f|0)!=10);Pi(y,205,10,u);Pi(g,205,10,u);f=e+20|0;s=g;r=f+20|0;do{n[f>>0]=n[s>>0]|0;f=f+1|0;s=s+1|0}while((f|0)<(r|0));wi(y,a,10,u);wi(g,l,10,u);c=k;return}r=o[s+16>>2]|0;s=o[s+8>>2]|0;d=i[t>>1]|0;d=((d<<18>>18|0)==(d|0)?d<<2:d>>>15^32767)<<16>>16;i[w>>1]=i[s+(d<<1)>>1]|0;i[w+2>>1]=i[s+(d+1<<1)>>1]|0;i[b>>1]=i[s+(d+2<<1)>>1]|0;i[b+2>>1]=i[s+(d+3<<1)>>1]|0;d=i[t+2>>1]|0;d=((d<<18>>18|0)==(d|0)?d<<2:d>>>15^32767)<<16>>16;i[w+4>>1]=i[r+(d<<1)>>1]|0;i[w+6>>1]=i[r+(d+1<<1)>>1]|0;i[b+4>>1]=i[r+(d+2<<1)>>1]|0;i[b+6>>1]=i[r+(d+3<<1)>>1]|0;d=i[t+4>>1]|0;s=d<<16>>16;if(d<<16>>16<0)r=~((s^-2)>>1);else r=s>>>1;d=r<<16>>16;d=((r<<18>>18|0)==(d|0)?r<<2:d>>>15^32767)<<16>>16;f=h+(d+1<<1)|0;r=i[h+(d<<1)>>1]|0;if(!(s&1)){i[w+8>>1]=r;i[w+10>>1]=i[f>>1]|0;i[b+8>>1]=i[h+(d+2<<1)>>1]|0;i[b+10>>1]=i[h+(d+3<<1)>>1]|0}else{if(r<<16>>16==-32768)r=32767;else r=0-(r&65535)&65535;i[w+8>>1]=r;r=i[f>>1]|0;if(r<<16>>16==-32768)r=32767;else r=0-(r&65535)&65535;i[w+10>>1]=r;r=i[h+(d+2<<1)>>1]|0;if(r<<16>>16==-32768)r=32767;else r=0-(r&65535)&65535;i[b+8>>1]=r;r=i[h+(d+3<<1)>>1]|0;if(r<<16>>16==-32768)r=32767;else r=0-(r&65535)&65535;i[b+10>>1]=r}f=i[t+6>>1]|0;f=((f<<18>>18|0)==(f|0)?f<<2:f>>>15^32767)<<16>>16;i[w+12>>1]=i[m+(f<<1)>>1]|0;i[w+14>>1]=i[m+(f+1<<1)>>1]|0;i[b+12>>1]=i[m+(f+2<<1)>>1]|0;i[b+14>>1]=i[m+(f+3<<1)>>1]|0;f=i[t+8>>1]|0;f=((f<<18>>18|0)==(f|0)?f<<2:f>>>15^32767)<<16>>16;i[w+16>>1]=i[p+(f<<1)>>1]|0;i[w+18>>1]=i[p+(f+1<<1)>>1]|0;i[b+16>>1]=i[p+(f+2<<1)>>1]|0;i[b+18>>1]=i[p+(f+3<<1)>>1]|0;f=0;do{s=e+(f<<1)|0;r=(i[s>>1]|0)*21299>>15;if((r|0)>32767){o[u>>2]=1;r=32767}p=Gn(i[v+(f<<1)>>1]|0,r&65535,u)|0;i[y+(f<<1)>>1]=Gn(i[w+(f<<1)>>1]|0,p,u)|0;t=i[b+(f<<1)>>1]|0;i[g+(f<<1)>>1]=Gn(t,p,u)|0;i[s>>1]=t;f=f+1|0}while((f|0)!=10);Pi(y,205,10,u);Pi(g,205,10,u);f=e+20|0;s=g;r=f+20|0;do{n[f>>0]=n[s>>0]|0;f=f+1|0;s=s+1|0}while((f|0)<(r|0));wi(y,a,10,u);wi(g,l,10,u);c=k;return}function sr(e,r){e=e|0;r=r|0;var t=0,n=0;if(!e){n=-1;return n|0}t=e;n=t+20|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));Wi(e+20|0,r|0,20)|0;n=0;return n|0}function ar(e){e=e|0;var r=0,t=0,s=0,a=0,l=0;if(!e){l=-1;return l|0}i[e>>1]=0;i[e+2>>1]=8192;r=e+4|0;i[r>>1]=3500;i[e+6>>1]=3500;o[e+8>>2]=1887529304;i[e+12>>1]=3e4;i[e+14>>1]=26e3;i[e+16>>1]=21e3;i[e+18>>1]=15e3;i[e+20>>1]=8e3;i[e+22>>1]=0;i[e+24>>1]=-8e3;i[e+26>>1]=-15e3;i[e+28>>1]=-21e3;i[e+30>>1]=-26e3;i[e+32>>1]=3e4;i[e+34>>1]=26e3;i[e+36>>1]=21e3;i[e+38>>1]=15e3;i[e+40>>1]=8e3;i[e+42>>1]=0;i[e+44>>1]=-8e3;i[e+46>>1]=-15e3;i[e+48>>1]=-21e3;i[e+50>>1]=-26e3;i[e+212>>1]=0;i[e+374>>1]=0;i[e+392>>1]=0;t=e+52|0;i[t>>1]=1384;i[e+54>>1]=2077;i[e+56>>1]=3420;i[e+58>>1]=5108;i[e+60>>1]=6742;i[e+62>>1]=8122;i[e+64>>1]=9863;i[e+66>>1]=11092;i[e+68>>1]=12714;i[e+70>>1]=13701;s=e+72|0;a=t;l=s+20|0;do{n[s>>0]=n[a>>0]|0;s=s+1|0;a=a+1|0}while((s|0)<(l|0));s=e+92|0;a=t;l=s+20|0;do{n[s>>0]=n[a>>0]|0;s=s+1|0;a=a+1|0}while((s|0)<(l|0));s=e+112|0;a=t;l=s+20|0;do{n[s>>0]=n[a>>0]|0;s=s+1|0;a=a+1|0}while((s|0)<(l|0));s=e+132|0;a=t;l=s+20|0;do{n[s>>0]=n[a>>0]|0;s=s+1|0;a=a+1|0}while((s|0)<(l|0));s=e+152|0;a=t;l=s+20|0;do{n[s>>0]=n[a>>0]|0;s=s+1|0;a=a+1|0}while((s|0)<(l|0));s=e+172|0;a=t;l=s+20|0;do{n[s>>0]=n[a>>0]|0;s=s+1|0;a=a+1|0}while((s|0)<(l|0));s=e+192|0;a=t;l=s+20|0;do{n[s>>0]=n[a>>0]|0;s=s+1|0;a=a+1|0}while((s|0)<(l|0));Yi(e+214|0,0,160)|0;i[e+376>>1]=3500;i[e+378>>1]=3500;l=i[r>>1]|0;i[e+380>>1]=l;i[e+382>>1]=l;i[e+384>>1]=l;i[e+386>>1]=l;i[e+388>>1]=l;i[e+390>>1]=l;i[e+394>>1]=0;i[e+396>>1]=7;i[e+398>>1]=32767;i[e+400>>1]=0;i[e+402>>1]=0;i[e+404>>1]=0;o[e+408>>2]=1;i[e+412>>1]=0;l=0;return l|0}function lr(e,r,t,s,l,u,f,d,h,m,p,w){e=e|0;r=r|0;t=t|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;p=p|0;w=w|0;var b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0,G=0,X=0,K=0,J=0,Z=0;Z=c;c=c+304|0;q=Z+192|0;B=Z+168|0;H=Z+148|0;X=Z+216|0;W=Z+146|0;Y=Z+144|0;U=Z+124|0;z=Z+104|0;V=Z+84|0;G=Z+60|0;F=Z+40|0;x=Z;J=e+404|0;K=e+400|0;if((i[J>>1]|0)!=0?(i[K>>1]|0)!=0:0){N=e+394|0;i[N>>1]=i[636+(f<<1)>>1]|0;S=i[e+212>>1]|0;j=S+10|0;Wi(e+52+(((j&65535|0)==80?0:j<<16>>16)<<1)|0,e+52+(S<<1)|0,20)|0;S=i[e+392>>1]|0;j=S+1|0;i[e+376+(((j&65535|0)==8?0:j<<16>>16)<<1)>>1]=i[e+376+(S<<1)>>1]|0;j=e+4|0;i[j>>1]=0;S=x+36|0;A=x+32|0;R=x+28|0;M=x+24|0;D=x+20|0;P=x+16|0;T=x+12|0;O=x+8|0;C=x+4|0;L=e+52|0;y=x;I=y+40|0;do{o[y>>2]=0;y=y+4|0}while((y|0)<(I|0));v=0;b=7;while(1){I=i[e+376+(b<<1)>>1]|0;E=I<<16>>16;if(I<<16>>16<0)E=~((E^-8)>>3);else E=E>>>3;v=Gn(v,E&65535,w)|0;i[j>>1]=v;k=b*10|0;y=9;while(1){g=x+(y<<2)|0;_=o[g>>2]|0;I=i[e+52+(y+k<<1)>>1]|0;E=I+_|0;if((I^_|0)>-1&(E^_|0)<0){o[w>>2]=1;E=(_>>>31)+2147483647|0}o[g>>2]=E;if((y|0)>0)y=y+-1|0;else break}if((b|0)<=0)break;else b=b+-1|0}i[F+18>>1]=(o[S>>2]|0)>>>3;i[F+16>>1]=(o[A>>2]|0)>>>3;i[F+14>>1]=(o[R>>2]|0)>>>3;i[F+12>>1]=(o[M>>2]|0)>>>3;i[F+10>>1]=(o[D>>2]|0)>>>3;i[F+8>>1]=(o[P>>2]|0)>>>3;i[F+6>>1]=(o[T>>2]|0)>>>3;i[F+4>>1]=(o[O>>2]|0)>>>3;i[F+2>>1]=(o[C>>2]|0)>>>3;i[F>>1]=(o[x>>2]|0)>>>3;wi(F,e+12|0,10,w);i[j>>1]=xi(i[j>>1]|0,i[N>>1]|0,w)|0;Hi(e+214|0,L|0,160)|0;F=9;while(1){I=i[e+214+(F+70<<1)>>1]|0;g=I<<16>>16;x=i[e+214+(F+60<<1)>>1]|0;y=(x<<16>>16)+g|0;if((x^I)<<16>>16>-1&(y^g|0)<0){o[w>>2]=1;y=(g>>>31)+2147483647|0}I=i[e+214+(F+50<<1)>>1]|0;g=I+y|0;if((I^y|0)>-1&(g^y|0)<0){o[w>>2]=1;g=(y>>>31)+2147483647|0}I=i[e+214+(F+40<<1)>>1]|0;y=I+g|0;if((I^g|0)>-1&(y^g|0)<0){o[w>>2]=1;y=(g>>>31)+2147483647|0}I=i[e+214+(F+30<<1)>>1]|0;g=I+y|0;if((I^y|0)>-1&(g^y|0)<0){o[w>>2]=1;g=(y>>>31)+2147483647|0}I=i[e+214+(F+20<<1)>>1]|0;y=I+g|0;if((I^g|0)>-1&(y^g|0)<0){o[w>>2]=1;y=(g>>>31)+2147483647|0}I=i[e+214+(F+10<<1)>>1]|0;g=I+y|0;if((I^y|0)>-1&(g^y|0)<0){o[w>>2]=1;y=(y>>>31)+2147483647|0}else y=g;I=i[e+214+(F<<1)>>1]|0;g=I+y|0;if((I^y|0)>-1&(g^y|0)<0){o[w>>2]=1;g=(y>>>31)+2147483647|0}if((g|0)<0)g=~((g^-8)>>3);else g=g>>>3;E=g&65535;k=i[654+(F<<1)>>1]|0;_=7;while(1){b=e+214+((_*10|0)+F<<1)|0;g=xi(i[b>>1]|0,E,w)|0;i[b>>1]=g;g=(ee(k,g<<16>>16)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[b>>1]=g;v=(g&65535)-(g>>>15&1)|0;v=v<<16>>31^v;y=v&65535;if(y<<16>>16>655)y=(((v<<16>>16)+261489|0)>>>2)+655&65535;y=y<<16>>16>1310?1310:y;if(!(g&32768))g=y;else g=0-(y&65535)&65535;i[b>>1]=g;if((_|0)>0)_=_+-1|0;else break}if((F|0)>0)F=F+-1|0;else break}}if(i[K>>1]|0){E=e+32|0;_=e+12|0;y=E;k=_;I=y+20|0;do{n[y>>0]=n[k>>0]|0;y=y+1|0;k=k+1|0}while((y|0)<(I|0));k=e+4|0;v=i[k>>1]|0;b=e+6|0;i[b>>1]=v;do{if(i[e+402>>1]|0){y=i[e>>1]|0;i[e>>1]=0;y=y<<16>>16<32?y:32;I=y<<16>>16;g=I<<10;if((g|0)!=(I<<26>>16|0)){o[w>>2]=1;g=y<<16>>16>0?32767:-32768}if(y<<16>>16>1)g=Kn(1024,g&65535)|0;else g=16384;i[e+2>>1]=g;ir(t,i[d>>1]|0,o[h+60>>2]|0);nr(t,8,0,d+2|0,h,_,w);y=t;I=y+20|0;do{n[y>>0]=0;y=y+1|0}while((y|0)<(I|0));v=i[d+8>>1]|0;v=v<<16>>16==0?-32768:((v+64&65535)>127?v<<16>>16>0?32767:32768:v<<16>>16<<9)+60416&65535;i[k>>1]=v;if((i[e+412>>1]|0)!=0?(o[e+408>>2]|0)!=0:0)break;y=E;k=_;I=y+20|0;do{n[y>>0]=n[k>>0]|0;y=y+1|0;k=k+1|0}while((y|0)<(I|0));i[b>>1]=v}}while(0);y=v<<16>>16;if(v<<16>>16<0)y=~((y^-2)>>1);else y=y>>>1;y=y+56536|0;g=y<<16;if((g|0)>0)y=0;else y=(g|0)<-946077696?-14436:y&65535;i[s>>1]=y;i[s+2>>1]=y;i[s+4>>1]=y;i[s+6>>1]=y;d=((y<<16>>16)*5443|0)>>>15&65535;i[s+8>>1]=d;i[s+10>>1]=d;i[s+12>>1]=d;i[s+14>>1]=d}y=((i[636+(f<<1)>>1]|0)*104864|0)>>>15<<16;if((y|0)<0)y=~((y>>16^-32)>>5);else y=y>>21;f=e+394|0;i[f>>1]=Gn(((i[f>>1]|0)*29491|0)>>>15&65535,y&65535,w)|0;s=(a[e>>1]<<16)+65536|0;y=s>>16;h=e+2|0;y=(ee(((s<<10>>26|0)==(y|0)?s>>>6:y>>>15^32767)<<16>>16,i[h>>1]|0)|0)>>15;if((y|0)>32767){o[w>>2]=1;y=32767}v=y&65535;if(v<<16>>16<=1024)if(v<<16>>16<-2048)_=-32768;else _=y<<4&65535;else _=16384;d=e+4|0;E=_<<16>>16;g=ee(i[d>>1]|0,E)|0;if((g|0)==1073741824){o[w>>2]=1;F=2147483647}else F=g<<1;g=(ee(i[e+30>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}j=g&65535;i[q+18>>1]=j;g=(ee(i[e+28>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[q+16>>1]=g;g=(ee(i[e+26>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[q+14>>1]=g;g=(ee(i[e+24>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[q+12>>1]=g;g=(ee(i[e+22>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[q+10>>1]=g;g=(ee(i[e+20>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[q+8>>1]=g;g=(ee(i[e+18>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[q+6>>1]=g;g=(ee(i[e+16>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[q+4>>1]=g;g=(ee(i[e+14>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[q+2>>1]=g;g=(ee(i[e+12>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[q>>1]=g;s=e+6|0;E=16384-(_&65535)<<16>>16;g=ee(i[s>>1]|0,E)|0;if((g|0)!=1073741824){y=(g<<1)+F|0;if((g^F|0)>0&(y^F|0)<0){o[w>>2]=1;x=(F>>>31)+2147483647|0}else x=y}else{o[w>>2]=1;x=2147483647}y=j;k=9;while(1){v=q+(k<<1)|0;g=(ee(i[e+32+(k<<1)>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}y=Gn(y,g&65535,w)|0;i[v>>1]=y;I=y<<16>>16;g=I<<1;if((g|0)!=(I<<17>>16|0)){o[w>>2]=1;g=y<<16>>16>0?32767:-32768}i[v>>1]=g;g=k+-1|0;if((k|0)<=0)break;y=i[q+(g<<1)>>1]|0;k=g}F=e+374|0;g=((a[F>>1]<<16)+-161021952>>16)*9830>>15;if((g|0)>32767){o[w>>2]=1;g=32767}g=4096-(g&65535)|0;y=g<<16;if((y|0)>268369920)E=32767;else E=(y|0)<0?0:g<<19>>16;N=e+8|0;g=Ne(N,3)|0;bi(q,U,10,w);y=z;k=U;I=y+20|0;do{i[y>>1]=i[k>>1]|0;y=y+2|0;k=k+2|0}while((y|0)<(I|0));y=(g<<16>>16)*10|0;k=9;while(1){v=z+(k<<1)|0;b=i[v>>1]|0;g=(ee(i[e+214+(k+y<<1)>>1]|0,E)|0)>>15;if((g|0)>32767){o[w>>2]=1;g=32767}i[v>>1]=Gn(b,g&65535,w)|0;if((k|0)>0)k=k+-1|0;else break}Pi(U,205,10,w);Pi(z,205,10,w);y=t+20|0;k=U;I=y+20|0;do{n[y>>0]=n[k>>0]|0;y=y+1|0;k=k+1|0}while((y|0)<(I|0));wi(U,q,10,w);wi(z,V,10,w);ci(q,B,w);ci(V,G,w);y=p;k=B;I=y+22|0;do{n[y>>0]=n[k>>0]|0;y=y+1|0;k=k+1|0}while((y|0)<(I|0));y=p+22|0;k=B;I=y+22|0;do{n[y>>0]=n[k>>0]|0;y=y+1|0;k=k+1|0}while((y|0)<(I|0));y=p+44|0;k=B;I=y+22|0;do{n[y>>0]=n[k>>0]|0;y=y+1|0;k=k+1|0}while((y|0)<(I|0));y=p+66|0;k=B;I=y+22|0;do{n[y>>0]=n[k>>0]|0;y=y+1|0;k=k+1|0}while((y|0)<(I|0));Le(B+2|0,H,w);g=0;y=32767;do{v=i[H+(g<<1)>>1]|0;v=ee(v,v)|0;if(v>>>0<1073741824)v=32767-(v>>>15)|0;else{o[w>>2]=1;v=0}y=(ee(v<<16>>16,y<<16>>16)|0)>>15;if((y|0)>32767){o[w>>2]=1;y=32767}g=g+1|0}while((g|0)!=10);ai(y<<16>>16,W,Y,w);y=(a[W>>1]<<16)+-983040|0;v=y>>16;v=Ci(xi(0,Gn(((y<<12>>28|0)==(v|0)?y>>>4:v>>>15^32767)&65535,Ci(i[Y>>1]|0,3,w)|0,w)|0,w)|0,1,w)|0;y=(i[F>>1]|0)*29491>>15;if((y|0)>32767){o[w>>2]=1;y=32767}g=v<<16>>16;v=g*3277>>15;if((v|0)>32767){o[w>>2]=1;v=32767}i[F>>1]=Gn(y&65535,v&65535,w)|0;v=x>>10;b=v+262144|0;if((v|0)>-1&(b^v|0)<0){o[w>>2]=1;b=(v>>>31)+2147483647|0}Y=g<<4;v=b-Y|0;if(((v^b)&(b^Y)|0)<0){o[w>>2]=1;b=(b>>>31)+2147483647|0}else b=v;Y=i[f>>1]<<5;v=Y+b|0;if((Y^b|0)>-1&(v^b|0)<0){o[w>>2]=1;v=(b>>>31)+2147483647|0}g=(ki(v>>>16&65535,v>>>1&32767,w)|0)<<16>>16;xe(N,X,w);b=39;while(1){y=X+(b<<1)|0;v=(ee(i[y>>1]|0,g)|0)>>15;if((v|0)>32767){o[w>>2]=1;v=32767}i[y>>1]=v;if((b|0)>0)b=b+-1|0;else break}Fi(G,X,m,40,r,1);xe(N,X,w);b=39;while(1){y=X+(b<<1)|0;v=(ee(i[y>>1]|0,g)|0)>>15;if((v|0)>32767){o[w>>2]=1;v=32767}i[y>>1]=v;if((b|0)>0)b=b+-1|0;else break}Fi(G,X,m+80|0,40,r,1);xe(N,X,w);b=39;while(1){y=X+(b<<1)|0;v=(ee(i[y>>1]|0,g)|0)>>15;if((v|0)>32767){o[w>>2]=1;v=32767}i[y>>1]=v;if((b|0)>0)b=b+-1|0;else break}Fi(G,X,m+160|0,40,r,1);xe(N,X,w);y=39;while(1){b=X+(y<<1)|0;v=(ee(i[b>>1]|0,g)|0)>>15;if((v|0)>32767){o[w>>2]=1;v=32767}i[b>>1]=v;if((y|0)>0)y=y+-1|0;else break}Fi(G,X,m+240|0,40,r,1);i[l+14>>1]=20;i[l+16>>1]=0;if((u|0)==2){v=i[e>>1]|0;v=v<<16>>16>32?32:v<<16>>16<1?8:v;m=v<<16>>16;b=m<<10;if((b|0)!=(m<<26>>16|0)){o[w>>2]=1;b=v<<16>>16>0?32767:-32768}i[h>>1]=Kn(1024,b&65535)|0;i[e>>1]=0;y=e+32|0;k=e+12|0;I=y+20|0;do{n[y>>0]=n[k>>0]|0;y=y+1|0;k=k+1|0}while((y|0)<(I|0));w=i[d>>1]|0;i[s>>1]=w;i[d>>1]=(w&65535)+65280}if(!(i[K>>1]|0)){c=Z;return}do{if(!(i[e+402>>1]|0)){if(i[J>>1]|0)break;c=Z;return}}while(0);i[e>>1]=0;i[e+412>>1]=1;c=Z;return}function ur(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0,l=0,u=0,f=0,d=0,h=0;d=c;c=c+16|0;u=d+2|0;f=d;i[f>>1]=0;l=e+212|0;s=(a[l>>1]|0)+10|0;s=(s&65535|0)==80?0:s&65535;i[l>>1]=s;Wi(e+52+(s<<16>>16<<1)|0,r|0,20)|0;s=0;l=159;while(1){h=i[t+(l<<1)>>1]|0;h=ee(h,h)|0;h=(h|0)==1073741824?2147483647:h<<1;r=h+s|0;if((h^s|0)>-1&(r^s|0)<0){o[n>>2]=1;s=(s>>>31)+2147483647|0}else s=r;if((l|0)>0)l=l+-1|0;else break}ai(s,u,f,n);s=i[u>>1]|0;h=s<<16>>16;r=h<<10;if((r|0)!=(h<<26>>16|0)){o[n>>2]=1;r=s<<16>>16>0?32767:-32768}i[u>>1]=r;h=i[f>>1]|0;s=h<<16>>16;if(h<<16>>16<0)s=~((s^-32)>>5);else s=s>>>5;f=e+392|0;h=(a[f>>1]|0)+1|0;h=(h&65535|0)==8?0:h&65535;i[f>>1]=h;i[e+376+(h<<16>>16<<1)>>1]=s+57015+r;c=d;return}function fr(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,l=0,u=0,f=0,c=0,d=0,h=0;c=(r|0)==4;d=(r|0)==5;h=(r|0)==6;n=o[e+408>>2]|0;e:do{if((r+-4|0)>>>0<3)f=4;else{if((n+-1|0)>>>0<2)switch(r|0){case 2:case 3:case 7:{f=4;break e}default:{}}i[e>>1]=0;u=0}}while(0);if((f|0)==4){e:do{if((n|0)==2){switch(r|0){case 2:case 4:case 6:case 7:break;default:{s=1;break e}}s=2}else s=1}while(0);u=(a[e>>1]|0)+1&65535;i[e>>1]=u;u=(r|0)!=5&u<<16>>16>50?2:s}l=e+398|0;if(d&(i[e+412>>1]|0)==0){i[l>>1]=0;s=0}else s=i[l>>1]|0;s=Gn(s,1,t)|0;i[l>>1]=s;t=e+404|0;i[t>>1]=0;e:do{switch(r|0){case 2:case 4:case 5:case 6:case 7:{if(!((r|0)==7&(u|0)==0)){if(s<<16>>16>30){i[t>>1]=1;i[l>>1]=0;i[e+396>>1]=0;break e}s=e+396|0;n=i[s>>1]|0;if(!(n<<16>>16)){i[l>>1]=0;break e}else{i[s>>1]=(n&65535)+65535;break e}}else f=14;break}default:f=14}}while(0);if((f|0)==14)i[e+396>>1]=7;if(!u)return u|0;s=e+400|0;i[s>>1]=0;n=e+402|0;i[n>>1]=0;if(c){i[s>>1]=1;return u|0}if(d){i[s>>1]=1;i[n>>1]=1;return u|0}if(!h)return u|0;i[s>>1]=1;i[t>>1]=0;return u|0}function cr(e){e=e|0;if(!e){e=-1;return e|0}i[e>>1]=1;i[e+2>>1]=1;i[e+4>>1]=1;i[e+6>>1]=1;i[e+8>>1]=1;i[e+10>>1]=0;i[e+12>>1]=1;e=0;return e|0}function dr(e,r,t,n,s){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;var a=0,l=0,u=0,f=0;f=c;c=c+16|0;u=f+2|0;l=f;a=ri(e,5)|0;e=e+10|0;if((xi(a,i[e>>1]|0,s)|0)<<16>>16>0)a=i[e>>1]|0;a=(ee(i[674+(t<<16>>16<<1)>>1]|0,a<<16>>16)|0)>>15;if((a|0)>32767){o[s>>2]=1;a=32767}i[n>>1]=a;Qn(r,u,l,s);$n(r,i[u>>1]|0,i[l>>1]|0);c=f;return}function hr(e,r,t,n,o){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;if(!(r<<16>>16)){if(t<<16>>16){r=e+12|0;if((xi(i[n>>1]|0,i[r>>1]|0,o)|0)<<16>>16>0)i[n>>1]=i[r>>1]|0}else r=e+12|0;i[r>>1]=i[n>>1]|0}i[e+10>>1]=i[n>>1]|0;o=e+2|0;i[e>>1]=i[o>>1]|0;t=e+4|0;i[o>>1]=i[t>>1]|0;o=e+6|0;i[t>>1]=i[o>>1]|0;e=e+8|0;i[o>>1]=i[e>>1]|0;i[e>>1]=i[n>>1]|0;return}function mr(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0;s=ri(e,5)|0;e=e+10|0;if((xi(s,i[e>>1]|0,n)|0)<<16>>16>0)s=i[e>>1]|0;s=(ee(i[688+(r<<16>>16<<1)>>1]|0,s<<16>>16)|0)>>15;if((s|0)<=32767){n=s;n=n&65535;i[t>>1]=n;return}o[n>>2]=1;n=32767;n=n&65535;i[t>>1]=n;return}function pr(e){e=e|0;if(!e){e=-1;return e|0}i[e>>1]=1640;i[e+2>>1]=1640;i[e+4>>1]=1640;i[e+6>>1]=1640;i[e+8>>1]=1640;i[e+10>>1]=0;i[e+12>>1]=16384;e=0;return e|0}function wr(e,r,t,n,o){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;if(!(r<<16>>16)){if(t<<16>>16){r=e+12|0;if((xi(i[n>>1]|0,i[r>>1]|0,o)|0)<<16>>16>0)i[n>>1]=i[r>>1]|0}else r=e+12|0;i[r>>1]=i[n>>1]|0}n=i[n>>1]|0;r=e+10|0;i[r>>1]=n;if((xi(n,16384,o)|0)<<16>>16>0){i[r>>1]=16384;r=16384}else r=i[r>>1]|0;o=e+2|0;i[e>>1]=i[o>>1]|0;n=e+4|0;i[o>>1]=i[n>>1]|0;o=e+6|0;i[n>>1]=i[o>>1]|0;e=e+8|0;i[o>>1]=i[e>>1]|0;i[e>>1]=r;return}function br(e,r,t,n,s,a,l){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;var u=0,f=0,c=0;f=ri(t,9)|0;c=i[t+16>>1]|0;u=c<<16>>16;t=(u+(i[t+14>>1]|0)|0)>>>1;t=(u|0)<(t<<16>>16|0)?c:t&65535;if(!(r<<16>>16>5?f<<16>>16>r<<16>>16:0))return 0;u=t<<16>>16;u=((u<<18>>18|0)==(u|0)?u<<2:u>>>15^32767)&65535;if(!(n<<16>>16>6&s<<16>>16==0))u=xi(u,t,l)|0;f=f<<16>>16>u<<16>>16?u:f;c=gi(r)|0;u=c<<16>>16;if(c<<16>>16<0){t=0-u<<16;if((t|0)<983040)u=r<<16>>16>>(t>>16)&65535;else u=0}else{t=r<<16>>16;s=t<<u;if((s<<16>>16>>u|0)==(t|0))u=s&65535;else u=(t>>>15^32767)&65535}n=ee((Kn(16383,u)|0)<<16>>16,f<<16>>16)|0;if((n|0)==1073741824){o[l>>2]=1;s=2147483647}else s=n<<1;n=xi(20,c,l)|0;u=n<<16>>16;if(n<<16>>16>0)n=n<<16>>16<31?s>>u:0;else{r=0-u<<16>>16;n=s<<r;n=(n>>r|0)==(s|0)?n:s>>31^2147483647}n=(n|0)>32767?32767:n&65535;n=a<<16>>16!=0&n<<16>>16>3072?3072:n<<16>>16;t=0;do{s=e+(t<<1)|0;u=ee(i[s>>1]|0,n)|0;if((u|0)==1073741824){o[l>>2]=1;u=2147483647}else u=u<<1;i[s>>1]=u>>>11;t=t+1|0}while((t|0)!=40);return 0}function vr(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var a=0,l=0,u=0,f=0;a=o[n+104>>2]|0;l=o[n+96>>2]|0;if(e>>>0>=8){i[t>>1]=(s[r>>0]|0)>>>4&1;i[t+2>>1]=(s[r>>0]|0)>>>5&1;i[t+4>>1]=(s[r>>0]|0)>>>6&1;i[t+6>>1]=(s[r>>0]|0)>>>7&255;a=a+(e<<1)|0;if((i[a>>1]|0)>1){e=1;n=1;l=4}else return;while(1){u=r+e|0;e=l|1;i[t+(l<<16>>16<<1)>>1]=s[u>>0]&1;i[t+(e<<16>>16<<1)>>1]=(s[u>>0]|0)>>>1&1;f=l|3;i[t+(e+1<<16>>16<<16>>16<<1)>>1]=(s[u>>0]|0)>>>2&1;i[t+(f<<16>>16<<1)>>1]=(s[u>>0]|0)>>>3&1;i[t+(f+1<<16>>16<<16>>16<<1)>>1]=(s[u>>0]|0)>>>4&1;i[t+(f+2<<16>>16<<16>>16<<1)>>1]=(s[u>>0]|0)>>>5&1;i[t+(f+3<<16>>16<<16>>16<<1)>>1]=(s[u>>0]|0)>>>6&1;i[t+(f+4<<16>>16<<16>>16<<1)>>1]=(s[u>>0]|0)>>>7&255;n=n+1<<16>>16;if(n<<16>>16<(i[a>>1]|0)){e=n<<16>>16;l=l+8<<16>>16}else break}return}f=o[(o[n+100>>2]|0)+(e<<2)>>2]|0;i[t+(i[f>>1]<<1)>>1]=(s[r>>0]|0)>>>4&1;i[t+(i[f+2>>1]<<1)>>1]=(s[r>>0]|0)>>>5&1;i[t+(i[f+4>>1]<<1)>>1]=(s[r>>0]|0)>>>6&1;i[t+(i[f+6>>1]<<1)>>1]=(s[r>>0]|0)>>>7&255;u=a+(e<<1)|0;if((i[u>>1]|0)<=1)return;n=l+(e<<1)|0;a=1;e=1;l=4;while(1){a=r+a|0;l=l<<16>>16;if((l|0)<(i[n>>1]|0)){i[t+(i[f+(l<<1)>>1]<<1)>>1]=s[a>>0]&1;l=l+1|0;if((l|0)<(i[n>>1]|0)){i[t+(i[f+(l<<1)>>1]<<1)>>1]=(s[a>>0]|0)>>>1&1;l=l+1|0;if((l|0)<(i[n>>1]|0)){i[t+(i[f+(l<<1)>>1]<<1)>>1]=(s[a>>0]|0)>>>2&1;l=l+1|0;if((l|0)<(i[n>>1]|0)){i[t+(i[f+(l<<1)>>1]<<1)>>1]=(s[a>>0]|0)>>>3&1;l=l+1|0;if((l|0)<(i[n>>1]|0)){i[t+(i[f+(l<<1)>>1]<<1)>>1]=(s[a>>0]|0)>>>4&1;l=l+1|0;if((l|0)<(i[n>>1]|0)){i[t+(i[f+(l<<1)>>1]<<1)>>1]=(s[a>>0]|0)>>>5&1;l=l+1|0;if((l|0)<(i[n>>1]|0)){i[t+(i[f+(l<<1)>>1]<<1)>>1]=(s[a>>0]|0)>>>6&1;l=l+1|0;if((l|0)<(i[n>>1]|0)){i[t+(i[f+(l<<1)>>1]<<1)>>1]=(s[a>>0]|0)>>>7&1;l=l+1|0}}}}}}}}e=e+1<<16>>16;if(e<<16>>16<(i[u>>1]|0))a=e<<16>>16;else break}return}function yr(e,r,t,n,o){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;var s=0,a=0,l=0,u=0;switch(t<<16>>16){case 0:{u=9;while(1){l=i[e+(u<<1)>>1]|0;t=l<<16>>16;if(l<<16>>16<0)t=~((t^-4)>>2);else t=t>>>2;a=i[r+(u<<1)>>1]|0;s=a<<16>>16;if(a<<16>>16<0)a=~((s^-4)>>2);else a=s>>>2;i[n+(u<<1)>>1]=Gn((l&65535)-t&65535,a&65535,o)|0;if((u|0)>0)u=u+-1|0;else break}return}case 40:{a=9;while(1){o=i[e+(a<<1)>>1]|0;t=o<<16>>16;if(o<<16>>16<0)s=~((t^-2)>>1);else s=t>>>1;o=i[r+(a<<1)>>1]|0;t=o<<16>>16;if(o<<16>>16<0)t=~((t^-2)>>1);else t=t>>>1;i[n+(a<<1)>>1]=t+s;if((a|0)>0)a=a+-1|0;else break}return}case 80:{u=9;while(1){l=i[e+(u<<1)>>1]|0;t=l<<16>>16;if(l<<16>>16<0)l=~((t^-4)>>2);else l=t>>>2;t=i[r+(u<<1)>>1]|0;s=t<<16>>16;if(t<<16>>16<0)a=~((s^-4)>>2);else a=s>>>2;i[n+(u<<1)>>1]=Gn(l&65535,(t&65535)-a&65535,o)|0;if((u|0)>0)u=u+-1|0;else break}return}case 120:{i[n+18>>1]=i[r+18>>1]|0;i[n+16>>1]=i[r+16>>1]|0;i[n+14>>1]=i[r+14>>1]|0;i[n+12>>1]=i[r+12>>1]|0;i[n+10>>1]=i[r+10>>1]|0;i[n+8>>1]=i[r+8>>1]|0;i[n+6>>1]=i[r+6>>1]|0;i[n+4>>1]=i[r+4>>1]|0;i[n+2>>1]=i[r+2>>1]|0;i[n>>1]=i[r>>1]|0;return}default:return}}function gr(e,r){e=e|0;r=r|0;if(!e){e=-1;return e|0}Wi(e|0,r|0,20)|0;e=0;return e|0}function kr(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,a=0,l=0,u=0,f=0,c=0;c=0;do{f=e+(c<<1)|0;n=i[f>>1]|0;l=n&65535;u=l<<16;n=n<<16>>16;if((n*5243|0)==1073741824){o[t>>2]=1;a=2147483647}else a=n*10486|0;s=u-a|0;if(((s^u)&(a^u)|0)<0){o[t>>2]=1;a=(l>>>15)+2147483647|0}else a=s;n=i[r+(c<<1)>>1]|0;s=n*5243|0;if((s|0)!=1073741824){n=(n*10486|0)+a|0;if((s^a|0)>0&(n^a|0)<0){o[t>>2]=1;n=(a>>>31)+2147483647|0}}else{o[t>>2]=1;n=2147483647}i[f>>1]=Oi(n,t)|0;c=c+1|0}while((c|0)!=10);return}function _r(e){e=e|0;var r=0;if(!e){r=-1;return r|0}r=e+18|0;do{i[e>>1]=0;e=e+2|0}while((e|0)<(r|0));r=0;return r|0}function Er(e){e=e|0;i[e+14>>1]=1;return}function jr(e){e=e|0;i[e+14>>1]=0;return}function Sr(e,r,t,n,s,a,l,u,f,d){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;f=f|0;d=d|0;var h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0;M=c;c=c+160|0;S=M+80|0;A=M;k=o[f+120>>2]|0;_=o[f+124>>2]|0;E=o[f+128>>2]|0;g=o[f+132>>2]|0;m=e+6|0;y=e+8|0;i[y>>1]=i[m>>1]|0;b=e+4|0;i[m>>1]=i[b>>1]|0;v=e+2|0;i[b>>1]=i[v>>1]|0;i[v>>1]=i[e>>1]|0;i[e>>1]=s;f=s<<16>>16<14746?s<<16>>16>9830&1:2;h=e+12|0;s=i[h>>1]|0;p=s<<15;do{if((p|0)<=536870911)if((p|0)<-536870912){o[d>>2]=1;s=-2147483648;break}else{s=s<<17;break}else{o[d>>2]=1;s=2147483647}}while(0);j=n<<16>>16;w=e+16|0;if((Oi(s,d)|0)<<16>>16>=n<<16>>16){p=i[w>>1]|0;if(p<<16>>16>0){p=(p&65535)+65535&65535;i[w>>1]=p}if(!(p<<16>>16)){s=(i[e>>1]|0)<9830;s=(i[v>>1]|0)<9830?s?2:1:s&1;if((i[b>>1]|0)<9830)s=(s&65535)+1&65535;if((i[m>>1]|0)<9830)s=(s&65535)+1&65535;if((i[y>>1]|0)<9830)s=(s&65535)+1&65535;p=0;f=s<<16>>16>2?0:f}}else{i[w>>1]=2;p=2}v=f<<16>>16;y=e+10|0;v=(p<<16>>16==0?(v|0)>((i[y>>1]|0)+1|0):0)?v+65535&65535:f;e=(i[e+14>>1]|0)==1?0:n<<16>>16<10?2:v<<16>>16<2&p<<16>>16>0?(v&65535)+1&65535:v;i[y>>1]=e;i[h>>1]=n;switch(r|0){case 4:case 6:case 7:break;default:if(e<<16>>16<2){p=0;f=0;m=a;h=S;while(1){if(!(i[m>>1]|0))s=0;else{f=f<<16>>16;i[A+(f<<1)>>1]=p;s=i[m>>1]|0;f=f+1&65535}i[h>>1]=s;i[m>>1]=0;p=p+1<<16>>16;if(p<<16>>16>=40){y=f;break}else{m=m+2|0;h=h+2|0}}v=e<<16>>16==0;v=(r|0)==5?v?k:_:v?E:g;if(y<<16>>16>0){b=0;do{w=i[A+(b<<1)>>1]|0;f=w<<16>>16;e=i[S+(f<<1)>>1]|0;if(w<<16>>16<40){p=e<<16>>16;m=39-w&65535;h=w;f=a+(f<<1)|0;s=v;while(1){r=(ee(i[s>>1]|0,p)|0)>>>15&65535;i[f>>1]=Gn(i[f>>1]|0,r,d)|0;h=h+1<<16>>16;if(h<<16>>16>=40)break;else{f=f+2|0;s=s+2|0}}if(w<<16>>16>0){f=v+(m+1<<1)|0;R=36}}else{f=v;R=36}if((R|0)==36){R=0;s=e<<16>>16;p=0;m=a;while(1){r=(ee(i[f>>1]|0,s)|0)>>>15&65535;i[m>>1]=Gn(i[m>>1]|0,r,d)|0;p=p+1<<16>>16;if(p<<16>>16>=w<<16>>16)break;else{m=m+2|0;f=f+2|0}}}b=b+1|0}while((b&65535)<<16>>16!=y<<16>>16)}}}b=l<<16>>16;v=j<<1;s=u<<16>>16;h=0-s<<16;f=h>>16;if(u<<16>>16>0){p=0;m=t;while(1){e=ee(i[t+(p<<1)>>1]|0,b)|0;if((e|0)==1073741824){o[d>>2]=1;h=2147483647}else h=e<<1;u=ee(v,i[a>>1]|0)|0;e=u+h|0;if((u^h|0)>-1&(e^h|0)<0){o[d>>2]=1;e=(h>>>31)+2147483647|0}u=e<<s;i[m>>1]=Oi((u>>s|0)==(e|0)?u:e>>31^2147483647,d)|0;p=p+1|0;if((p|0)==40)break;else{a=a+2|0;m=m+2|0}}c=M;return}if((h|0)<2031616){p=0;m=t;while(1){e=ee(i[t+(p<<1)>>1]|0,b)|0;if((e|0)==1073741824){o[d>>2]=1;h=2147483647}else h=e<<1;u=ee(v,i[a>>1]|0)|0;e=u+h|0;if((u^h|0)>-1&(e^h|0)<0){o[d>>2]=1;e=(h>>>31)+2147483647|0}i[m>>1]=Oi(e>>f,d)|0;p=p+1|0;if((p|0)==40)break;else{a=a+2|0;m=m+2|0}}c=M;return}else{m=0;h=t;while(1){e=ee(i[t+(m<<1)>>1]|0,b)|0;if((e|0)==1073741824){o[d>>2]=1;e=2147483647}else e=e<<1;u=ee(v,i[a>>1]|0)|0;if((u^e|0)>-1&(u+e^e|0)<0)o[d>>2]=1;i[h>>1]=Oi(0,d)|0;m=m+1|0;if((m|0)==40)break;else{a=a+2|0;h=h+2|0}}c=M;return}}function Ar(e){e=e|0;if(!e){e=-1;return e|0}i[e>>1]=0;i[e+2>>1]=0;i[e+4>>1]=0;i[e+6>>1]=0;i[e+8>>1]=0;i[e+10>>1]=0;e=0;return e|0}function Rr(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0,b=0;if(t<<16>>16<=0)return;o=e+10|0;u=e+8|0;c=e+4|0;d=e+6|0;h=e+2|0;s=i[c>>1]|0;a=i[d>>1]|0;l=i[e>>1]|0;f=i[h>>1]|0;m=0;while(1){p=i[o>>1]|0;w=i[u>>1]|0;i[o>>1]=w;b=i[r>>1]|0;i[u>>1]=b;p=((b<<16>>16)*7699|0)+((ee(l<<16>>16,-7667)|0)+(((s<<16>>16)*15836|0)+((a<<16>>16)*15836>>15))+((ee(f<<16>>16,-7667)|0)>>15))+(ee(w<<16>>16,-15398)|0)+((p<<16>>16)*7699|0)|0;w=p<<3;p=(w>>3|0)==(p|0)?w:p>>31^2147483647;w=p<<1;i[r>>1]=Oi((w>>1|0)==(p|0)?w:p>>31^2147483647,n)|0;l=i[c>>1]|0;i[e>>1]=l;f=i[d>>1]|0;i[h>>1]=f;s=p>>>16&65535;i[c>>1]=s;a=(p>>>1)-(p>>16<<15)&65535;i[d>>1]=a;m=m+1<<16>>16;if(m<<16>>16>=t<<16>>16)break;else r=r+2|0}return}function Mr(e){e=e|0;if(!e)e=-1;else{i[e>>1]=0;e=0}return e|0}function Dr(e,r,t,n,s){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;var a=0,l=0,u=0,f=0;u=n<<16>>16;a=r+(u+-1<<1)|0;u=u+-2|0;f=i[a>>1]|0;if(n<<16>>16<2)n=t<<16>>16;else{n=t<<16>>16;l=0;r=r+(u<<1)|0;while(1){t=(ee(i[r>>1]|0,n)|0)>>15;if((t|0)>32767){o[s>>2]=1;t=32767}i[a>>1]=xi(i[a>>1]|0,t&65535,s)|0;a=a+-2|0;l=l+1<<16>>16;if((l<<16>>16|0)>(u|0))break;else r=r+-2|0}}n=(ee(i[e>>1]|0,n)|0)>>15;if((n|0)<=32767){u=n;u=u&65535;l=i[a>>1]|0;s=xi(l,u,s)|0;i[a>>1]=s;i[e>>1]=f;return}o[s>>2]=1;u=32767;u=u&65535;l=i[a>>1]|0;s=xi(l,u,s)|0;i[a>>1]=s;i[e>>1]=f;return}function Pr(e){e=e|0;var r=0,t=0,n=0;if(!e){n=-1;return n|0}Yi(e+104|0,0,340)|0;r=e+102|0;t=e;n=t+100|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));Pe(r)|0;Mr(e+100|0)|0;n=0;return n|0}function Tr(e,r,t,s,a){e=e|0;r=r|0;t=t|0;s=s|0;a=a|0;var l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0;_=c;c=c+96|0;v=_+22|0;y=_;g=_+44|0;Wi(e+124|0,t|0,320)|0;m=g+22|0;p=e+100|0;w=e+80|0;b=e+102|0;if((r&-2|0)==6){h=0;while(1){Ii(s,702,v);Ii(s,722,y);d=e+104+(h+10<<1)|0;Ti(v,d,e,40);u=g;l=v;r=u+22|0;do{i[u>>1]=i[l>>1]|0;u=u+2|0;l=l+2|0}while((u|0)<(r|0));u=m;r=u+22|0;do{i[u>>1]=0;u=u+2|0}while((u|0)<(r|0));Fi(y,g,g,22,m,0);r=0;u=21;do{l=i[g+(u<<16>>16<<1)>>1]|0;l=ee(l,l)|0;if((l|0)==1073741824){k=7;break}f=l<<1;l=f+r|0;if((f^r|0)>-1&(l^r|0)<0){o[a>>2]=1;r=(r>>>31)+2147483647|0}else r=l;u=u+-1<<16>>16}while(u<<16>>16>-1);if((k|0)==7){k=0;o[a>>2]=1}f=r>>>16&65535;l=20;r=0;u=20;while(1){l=ee(i[g+(l+1<<1)>>1]|0,i[g+(l<<1)>>1]|0)|0;if((l|0)==1073741824){k=13;break}E=l<<1;l=E+r|0;if((E^r|0)>-1&(l^r|0)<0){o[a>>2]=1;r=(r>>>31)+2147483647|0}else r=l;l=(u&65535)+-1<<16>>16;if(l<<16>>16>-1){l=l<<16>>16;u=u+-1|0}else break}if((k|0)==13){k=0;o[a>>2]=1}r=r>>16;if((r|0)<1)r=0;else r=Kn((r*26214|0)>>>15&65535,f)|0;Dr(p,e,r,40,a);r=t+(h<<1)|0;Fi(y,e,r,40,w,1);Te(b,d,r,29491,40,a);r=(h<<16)+2621440|0;if((r|0)<10485760){h=r>>16;s=s+22|0}else break}u=e+104|0;l=e+424|0;r=u+20|0;do{n[u>>0]=n[l>>0]|0;u=u+1|0;l=l+1|0}while((u|0)<(r|0));c=_;return}else{h=0;while(1){Ii(s,742,v);Ii(s,762,y);d=e+104+(h+10<<1)|0;Ti(v,d,e,40);u=g;l=v;r=u+22|0;do{i[u>>1]=i[l>>1]|0;u=u+2|0;l=l+2|0}while((u|0)<(r|0));u=m;r=u+22|0;do{i[u>>1]=0;u=u+2|0}while((u|0)<(r|0));Fi(y,g,g,22,m,0);r=0;u=21;do{l=i[g+(u<<16>>16<<1)>>1]|0;l=ee(l,l)|0;if((l|0)==1073741824){k=22;break}E=l<<1;l=E+r|0;if((E^r|0)>-1&(l^r|0)<0){o[a>>2]=1;r=(r>>>31)+2147483647|0}else r=l;u=u+-1<<16>>16}while(u<<16>>16>-1);if((k|0)==22){k=0;o[a>>2]=1}f=r>>>16&65535;l=20;r=0;u=20;while(1){l=ee(i[g+(l+1<<1)>>1]|0,i[g+(l<<1)>>1]|0)|0;if((l|0)==1073741824){k=28;break}E=l<<1;l=E+r|0;if((E^r|0)>-1&(l^r|0)<0){o[a>>2]=1;r=(r>>>31)+2147483647|0}else r=l;l=(u&65535)+-1<<16>>16;if(l<<16>>16>-1){l=l<<16>>16;u=u+-1|0}else break}if((k|0)==28){k=0;o[a>>2]=1}r=r>>16;if((r|0)<1)r=0;else r=Kn((r*26214|0)>>>15&65535,f)|0;Dr(p,e,r,40,a);r=t+(h<<1)|0;Fi(y,e,r,40,w,1);Te(b,d,r,29491,40,a);r=(h<<16)+2621440|0;if((r|0)<10485760){h=r>>16;s=s+22|0}else break}u=e+104|0;l=e+424|0;r=u+20|0;do{n[u>>0]=n[l>>0]|0;u=u+1|0;l=l+1|0}while((u|0)<(r|0));c=_;return}}function Or(e,r){e=e|0;r=r|0;var t=0,n=0;if(!e){e=-1;return e|0}o[e>>2]=0;t=Bi(1764)|0;if(!t){e=-1;return e|0}if((Ke(t)|0)<<16>>16==0?(n=t+1748|0,(Ar(n)|0)<<16>>16==0):0){Je(t,0)|0;Pr(t+1304|0)|0;Ar(n)|0;o[t+1760>>2]=0;o[e>>2]=t;e=0;return e|0}r=o[t>>2]|0;if(!r){e=-1;return e|0}Ui(r);o[t>>2]=0;e=-1;return e|0}function Cr(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function Lr(e,r,t,n,s){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;var l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0;k=c;c=c+208|0;g=k+88|0;y=k;v=e+1164|0;l=o[e+1256>>2]|0;if((n+-5|0)>>>0<2){b=l+16|0;if((i[b>>1]|0)>0){w=o[(o[e+1260>>2]|0)+32>>2]|0;p=0;l=0;while(1){m=w+(p<<1)|0;d=i[m>>1]|0;if(d<<16>>16>0){f=t;h=0;u=0;while(1){u=a[f>>1]|u<<1&131070;h=h+1<<16>>16;if(h<<16>>16>=d<<16>>16)break;else f=f+2|0}u=u&65535}else u=0;i[g+(p<<1)>>1]=u;l=l+1<<16>>16;if(l<<16>>16<(i[b>>1]|0)){t=t+(i[m>>1]<<1)|0;p=l<<16>>16}else break}}}else{w=l+(r<<1)|0;if((i[w>>1]|0)>0){b=o[(o[e+1260>>2]|0)+(r<<2)>>2]|0;m=0;l=0;while(1){p=b+(m<<1)|0;d=i[p>>1]|0;if(d<<16>>16>0){f=t;h=0;u=0;while(1){u=a[f>>1]|u<<1&131070;h=h+1<<16>>16;if(h<<16>>16>=d<<16>>16)break;else f=f+2|0}u=u&65535}else u=0;i[g+(m<<1)>>1]=u;l=l+1<<16>>16;if(l<<16>>16<(i[w>>1]|0)){t=t+(i[p>>1]<<1)|0;m=l<<16>>16}else break}}}Ze(e,r,g,n,s,y);Tr(e+1304|0,r,s,y,v);Rr(e+1748|0,s,160,v);l=0;do{e=s+(l<<1)|0;i[e>>1]=a[e>>1]&65528;l=l+1|0}while((l|0)!=160);c=k;return}function Nr(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var l=0,u=0,f=0;u=o[n+100>>2]|0;f=(a[(o[n+96>>2]|0)+(e<<1)>>1]|0)+65535|0;n=f&65535;l=n<<16>>16>-1;if(e>>>0<8){if(!l)return;u=o[u+(e<<2)>>2]|0;l=f<<16>>16;while(1){i[t+(i[u+(l<<1)>>1]<<1)>>1]=(s[r+(l>>3)>>0]|0)>>>(l&7^7)&1;n=n+-1<<16>>16;if(n<<16>>16>-1)l=n<<16>>16;else break}return}else{if(!l)return;l=f<<16>>16;while(1){i[t+(l<<1)>>1]=(s[r+(l>>3)>>0]|0)>>>(l&7^7)&1;n=n+-1<<16>>16;if(n<<16>>16>-1)l=n<<16>>16;else break}return}}function xr(e,r,t){e=e|0;r=r|0;t=t|0;e=Sn(e,t,31764)|0;return((_n(r)|0|e)<<16>>16!=0)<<31>>31|0}function Fr(e,r){e=e|0;r=r|0;An(e);En(r);return}function Ir(e,r,t,s,l,u,f){e=e|0;r=r|0;t=t|0;s=s|0;l=l|0;u=u|0;f=f|0;var d=0,h=0,m=0,p=0,w=0;w=c;c=c+512|0;d=w+8|0;h=w+4|0;m=w;o[m>>2]=0;p=f<<16>>16==3;if(!((f&65535)<2|p&1)){if(f<<16>>16!=2){l=-1;c=w;return l|0}Rn(e,t,s,d+2|0,m);e=o[m>>2]|0;o[u>>2]=e;jn(r,e,h);r=o[h>>2]|0;i[d>>1]=r;i[d+490>>1]=(r|0)==3?-1:t&65535;n[l>>0]=r;r=1;do{d=d+1|0;n[l+r>>0]=n[d>>0]|0;r=r+1|0}while((r|0)!=492);d=492;c=w;return d|0}Rn(e,t,s,d,m);jn(r,o[m>>2]|0,h);s=o[h>>2]|0;if((s|0)!=3){r=o[m>>2]|0;o[u>>2]=r;if((r|0)==8){switch(s|0){case 1:{i[d+70>>1]=0;break}case 2:{m=d+70|0;i[m>>1]=a[m>>1]|0|1;break}default:{}}i[d+72>>1]=t&1;i[d+74>>1]=t>>>1&1;i[d+76>>1]=t>>>2&1;r=8}}else{o[u>>2]=15;r=15}if(p){_t(r,d,l,(o[e+4>>2]|0)+2392|0);l=i[3404+(o[u>>2]<<16>>16<<1)>>1]|0;c=w;return l|0}switch(f<<16>>16){case 0:{kt(r,d,l,(o[e+4>>2]|0)+2392|0);l=i[3404+(o[u>>2]<<16>>16<<1)>>1]|0;c=w;return l|0}case 1:{gt(r,d,l,(o[e+4>>2]|0)+2392|0);l=i[3436+(o[u>>2]<<16>>16<<1)>>1]|0;c=w;return l|0}default:{l=-1;c=w;return l|0}}return 0}function Br(e,r,t,n,o,s){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;var a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0;j=c;c=c+480|0;E=j;s=240;f=o;u=e;l=E;a=0;while(1){_=((ee(i[f>>1]|0,i[u>>1]|0)|0)+16384|0)>>>15;i[l>>1]=_;_=_<<16;a=(ee(_>>15,_>>16)|0)+a|0;if((a|0)<0){d=4;break}s=s+-1|0;if(!((s&65535)<<16>>16)){s=0;break}else{f=f+2|0;u=u+2|0;l=l+2|0}}if((d|0)==4){a=s&65535;l=240-s|0;if(!(a<<16>>16))s=0;else{f=a;u=o+(l<<1)|0;s=e+(l<<1)|0;a=E+(l<<1)|0;while(1){i[a>>1]=((ee(i[u>>1]|0,i[s>>1]|0)|0)+16384|0)>>>15;f=f+-1<<16>>16;if(!(f<<16>>16)){s=0;break}else{u=u+2|0;s=s+2|0;a=a+2|0}}}do{u=s&65535;s=120;l=E;a=0;while(1){_=(i[l>>1]|0)>>>2;g=l+2|0;i[l>>1]=_;_=_<<16>>16;_=ee(_,_)|0;k=(i[g>>1]|0)>>>2;i[g>>1]=k;k=k<<16>>16;a=((ee(k,k)|0)+_<<1)+a|0;s=s+-1<<16>>16;if(!(s<<16>>16))break;else l=l+4|0}s=u+4|0}while((a|0)<1)}_=a+1|0;k=(yi(_)|0)<<16>>16;_=_<<k;i[t>>1]=_>>>16;i[n>>1]=(_>>>1)-(_>>16<<15);_=E+478|0;f=r<<16>>16;if(r<<16>>16<=0){E=k-s|0;E=E&65535;c=j;return E|0}b=E+476|0;v=k+1|0;y=239-f|0;g=E+(236-f<<1)|0;r=f;t=t+(f<<1)|0;n=n+(f<<1)|0;while(1){d=ee((y>>>1)+65535&65535,-2)|0;u=E+(d+236<<1)|0;d=g+(d<<1)|0;o=240-r|0;w=o+-1|0;l=E+(w<<1)|0;e=w>>>1&65535;o=E+(o+-2<<1)|0;f=ee(i[_>>1]|0,i[l>>1]|0)|0;if(!(e<<16>>16)){d=o;u=b}else{p=b;m=_;while(1){a=l+-4|0;h=m+-4|0;f=(ee(i[p>>1]|0,i[o>>1]|0)|0)+f|0;e=e+-1<<16>>16;f=(ee(i[h>>1]|0,i[a>>1]|0)|0)+f|0;if(!(e<<16>>16))break;else{o=l+-6|0;p=m+-6|0;l=a;m=h}}}if(w&1)f=(ee(i[u>>1]|0,i[d>>1]|0)|0)+f|0;w=f<<v;i[t>>1]=w>>>16;i[n>>1]=(w>>>1)-(w>>16<<15);if((r&65535)+-1<<16>>16<<16>>16>0){y=y+1|0;g=g+2|0;r=r+-1|0;t=t+-2|0;n=n+-2|0}else break}E=k-s|0;E=E&65535;c=j;return E|0}function Ur(e,r,t,n,o,s,l,u){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;l=l|0;u=u|0;var f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0;P=c;c=c+3440|0;D=P+3420|0;S=P+3400|0;A=P+3224|0;M=P;E=P+3320|0;R=P+3240|0;j=P+24|0;ft(t,e,E,2,u);kn(E,r,R,A,5,S,5,u);lt(t,R,j,u);yn(10,5,5,E,j,S,A,M,u);r=n;u=r+80|0;do{i[r>>1]=0;r=r+2|0}while((r|0)<(u|0));i[s>>1]=65535;i[s+2>>1]=65535;i[s+4>>1]=65535;i[s+6>>1]=65535;i[s+8>>1]=65535;p=0;w=M;b=D;do{e=i[w>>1]|0;w=w+2|0;f=(e*6554|0)>>>15;d=f<<16>>16;r=n+(e<<1)|0;u=i[r>>1]|0;if((i[R+(e<<1)>>1]|0)>0){i[r>>1]=u+4096;i[b>>1]=8192;h=f}else{i[r>>1]=u+61440;i[b>>1]=-8192;h=d+8|0}b=b+2|0;m=h&65535;r=e-(f<<2)-d<<16>>16;f=s+(r<<1)|0;u=i[f>>1]|0;e=u<<16>>16;do{if(u<<16>>16>=0){d=h<<16>>16;if(!((d^e)&8)){r=s+(r+5<<1)|0;if((e|0)>(d|0)){i[r>>1]=u;i[f>>1]=m;break}else{i[r>>1]=m;break}}else{r=s+(r+5<<1)|0;if((e&7)>>>0>(d&7)>>>0){i[r>>1]=m;break}else{i[r>>1]=u;i[f>>1]=m;break}}}else i[f>>1]=m}while(0);p=p+1<<16>>16}while(p<<16>>16<10);b=D+2|0;p=D+4|0;h=D+6|0;d=D+8|0;f=D+10|0;r=D+12|0;u=D+14|0;e=D+16|0;v=D+18|0;y=40;g=t+(0-(i[M>>1]|0)<<1)|0;k=t+(0-(i[M+2>>1]|0)<<1)|0;_=t+(0-(i[M+4>>1]|0)<<1)|0;E=t+(0-(i[M+6>>1]|0)<<1)|0;j=t+(0-(i[M+8>>1]|0)<<1)|0;S=t+(0-(i[M+10>>1]|0)<<1)|0;A=t+(0-(i[M+12>>1]|0)<<1)|0;R=t+(0-(i[M+14>>1]|0)<<1)|0;n=t+(0-(i[M+16>>1]|0)<<1)|0;w=t+(0-(i[M+18>>1]|0)<<1)|0;m=o;while(1){x=(ee(i[D>>1]|0,i[g>>1]|0)|0)>>7;N=(ee(i[b>>1]|0,i[k>>1]|0)|0)>>7;L=(ee(i[p>>1]|0,i[_>>1]|0)|0)>>7;C=(ee(i[h>>1]|0,i[E>>1]|0)|0)>>7;O=(ee(i[d>>1]|0,i[j>>1]|0)|0)>>7;T=(ee(i[f>>1]|0,i[S>>1]|0)|0)>>7;M=(ee(i[r>>1]|0,i[A>>1]|0)|0)>>7;t=(ee(i[u>>1]|0,i[R>>1]|0)|0)>>>7;o=(ee(i[e>>1]|0,i[n>>1]|0)|0)>>>7;i[m>>1]=(x+128+N+L+C+O+T+M+t+o+((ee(i[v>>1]|0,i[w>>1]|0)|0)>>>7)|0)>>>8;y=y+-1<<16>>16;if(!(y<<16>>16))break;else{g=g+2|0;k=k+2|0;_=_+2|0;E=E+2|0;j=j+2|0;S=S+2|0;A=A+2|0;R=R+2|0;n=n+2|0;w=w+2|0;m=m+2|0}}r=0;do{u=s+(r<<1)|0;e=i[u>>1]|0;if((r|0)<5)e=(a[l+((e&7)<<1)>>1]|e&8)&65535;else e=i[l+((e&7)<<1)>>1]|0;i[u>>1]=e;r=r+1|0}while((r|0)!=10);c=P;return}function zr(e,r,t,n,s,a,l,u){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;var f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0;B=c;c=c+3456|0;L=B+3448|0;O=B+3360|0;P=B+3368|0;p=B+3280|0;C=B+3200|0;T=B;x=(n&65535)<<17;I=t<<16>>16;N=t<<16>>16<40;if(N){n=x>>16;t=I;do{d=(ee(i[r+(t-I<<1)>>1]|0,n)|0)>>15;if((d|0)>32767){o[u>>2]=1;d=32767}D=r+(t<<1)|0;i[D>>1]=Gn(i[D>>1]|0,d&65535,u)|0;t=t+1|0}while((t&65535)<<16>>16!=40)}ft(r,e,P,1,u);gn(P,C,p,8);lt(r,C,T,u);D=O+2|0;i[O>>1]=0;i[D>>1]=1;e=1;d=0;m=1;p=0;h=-1;do{R=i[2830+(p<<1)>>1]|0;M=R<<16>>16;A=0;do{j=i[2834+(A<<1)>>1]|0;S=j<<16>>16;E=e;k=M;g=m;_=R;y=h;while(1){f=i[P+(k<<1)>>1]|0;b=i[T+(k*80|0)+(k<<1)>>1]|0;t=S;m=1;v=j;e=j;h=-1;while(1){n=Gn(f,i[P+(t<<1)>>1]|0,u)|0;n=n<<16>>16;n=(ee(n,n)|0)>>>15;w=(i[T+(k*80|0)+(t<<1)>>1]<<15)+32768+((i[T+(t*80|0)+(t<<1)>>1]|0)+b<<14)|0;if(((ee(n<<16>>16,m<<16>>16)|0)-(ee(w>>16,h<<16>>16)|0)<<1|0)>0){m=w>>>16&65535;e=v;h=n&65535}w=t+5|0;v=w&65535;if(v<<16>>16>=40)break;else t=w<<16>>16}if(((ee(h<<16>>16,g<<16>>16)|0)-(ee(m<<16>>16,y<<16>>16)|0)<<1|0)>0){i[O>>1]=_;i[D>>1]=e;d=_}else{e=E;m=g;h=y}w=k+5|0;_=w&65535;if(_<<16>>16>=40)break;else{E=e;k=w<<16>>16;g=m;y=h}}A=A+1|0}while((A|0)!=4);p=p+1|0}while((p|0)!=2);b=e;v=d;n=s;t=n+80|0;do{i[n>>1]=0;n=n+2|0}while((n|0)<(t|0));m=v;t=0;w=0;n=0;while(1){d=m<<16>>16;f=i[C+(d<<1)>>1]|0;e=(d*6554|0)>>>15;m=e<<16;p=m>>15;h=d-(p+(e<<3)<<16>>17)|0;switch(h<<16>>16|0){case 0:{p=m>>10;e=1;break}case 1:{if(!((t&65535)<<16>>16))e=0;else{p=e<<22>>16|16;e=1}break}case 2:{p=e<<22>>16|32;e=1;break}case 3:{p=e<<17>>16|1;e=0;break}case 4:{p=e<<22>>16|48;e=1;break}default:{p=e;e=h&65535}}p=p&65535;h=s+(d<<1)|0;if(f<<16>>16>0){i[h>>1]=8191;i[L+(t<<1)>>1]=32767;d=e<<16>>16;if(e<<16>>16<0){d=0-d<<16;if((d|0)<983040)d=1>>>(d>>16)&65535;else d=0}else{T=1<<d;d=(T<<16>>16>>d|0)==1?T&65535:32767}n=Gn(n,d,u)|0}else{i[h>>1]=-8192;i[L+(t<<1)>>1]=-32768}d=Gn(w,p,u)|0;t=t+1|0;if((t|0)==2){w=d;break}m=i[O+(t<<1)>>1]|0;w=d}i[l>>1]=n;p=L+2|0;m=i[L>>1]|0;e=0;h=r+(0-(v<<16>>16)<<1)|0;d=r+(0-(b<<16>>16)<<1)|0;do{n=ee(i[h>>1]|0,m)|0;h=h+2|0;if((n|0)!=1073741824?(F=n<<1,!((n|0)>0&(F|0)<0)):0)f=F;else{o[u>>2]=1;f=2147483647}t=ee(i[p>>1]|0,i[d>>1]|0)|0;d=d+2|0;if((t|0)!=1073741824){n=(t<<1)+f|0;if((t^f|0)>0&(n^f|0)<0){o[u>>2]=1;n=(f>>>31)+2147483647|0}}else{o[u>>2]=1;n=2147483647}i[a+(e<<1)>>1]=Oi(n,u)|0;e=e+1|0}while((e|0)!=40);if(!N){c=B;return w|0}t=x>>16;n=I;do{f=(ee(i[s+(n-I<<1)>>1]|0,t)|0)>>15;if((f|0)>32767){o[u>>2]=1;f=32767}a=s+(n<<1)|0;i[a>>1]=Gn(i[a>>1]|0,f&65535,u)|0;n=n+1|0}while((n&65535)<<16>>16!=40);c=B;return w|0}function qr(e,r,t,n,s,a,l,u,f,d){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;f=f|0;d=d|0;var h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0;E=c;c=c+3456|0;b=E+3360|0;v=E+3368|0;y=E+3280|0;g=E+3200|0;k=E;_=s<<16>>16;p=_<<1;if((p|0)==(_<<17>>16|0))w=p;else{o[d>>2]=1;w=s<<16>>16>0?32767:-32768}_=n<<16>>16;h=n<<16>>16<40;if(h){s=w<<16>>16;m=_;do{n=t+(m<<1)|0;p=(ee(i[t+(m-_<<1)>>1]|0,s)|0)>>15;if((p|0)>32767){o[d>>2]=1;p=32767}i[n>>1]=Gn(i[n>>1]|0,p&65535,d)|0;m=m+1|0}while((m&65535)<<16>>16!=40)}ft(t,r,v,1,d);gn(v,g,y,8);lt(t,g,k,d);Vr(e,v,k,f,b);p=Hr(e,b,g,a,t,l,u,d)|0;if(!h){c=E;return p|0}m=w<<16>>16;s=_;do{n=a+(s<<1)|0;h=(ee(i[a+(s-_<<1)>>1]|0,m)|0)>>15;if((h|0)>32767){o[d>>2]=1;h=32767}i[n>>1]=Gn(i[n>>1]|0,h&65535,d)|0;s=s+1|0}while((s&65535)<<16>>16!=40);c=E;return p|0}function Vr(e,r,t,n,o){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;var s=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0;E=o+2|0;i[o>>1]=0;i[E>>1]=1;k=e<<16>>16<<1;s=1;_=0;e=-1;do{g=(_<<3)+k<<16>>16;f=i[n+(g<<1)>>1]|0;g=i[n+((g|1)<<1)>>1]|0;l=f<<16>>16;e:do{if(f<<16>>16<40){y=g<<16>>16;if(g<<16>>16<40)v=s;else while(1){if((e<<16>>16|0)<(0-(s<<16>>16)|0)){i[o>>1]=f;i[E>>1]=g;u=1;e=-1}else u=s;s=l+5|0;f=s&65535;if(f<<16>>16>=40){s=u;break e}else{l=s<<16>>16;s=u}}while(1){w=i[t+(l*80|0)+(l<<1)>>1]|0;p=a[r+(l<<1)>>1]|0;m=y;s=1;b=g;u=g;c=-1;while(1){h=(a[r+(m<<1)>>1]|0)+p<<16>>16;h=(ee(h,h)|0)>>>15;d=(i[t+(l*80|0)+(m<<1)>>1]<<15)+32768+((i[t+(m*80|0)+(m<<1)>>1]|0)+w<<14)|0;if(((ee(h<<16>>16,s<<16>>16)|0)-(ee(d>>16,c<<16>>16)|0)<<1|0)>0){s=d>>>16&65535;u=b;c=h&65535}d=m+5|0;b=d&65535;if(b<<16>>16>=40)break;else m=d<<16>>16}if(((ee(c<<16>>16,v<<16>>16)|0)-(ee(s<<16>>16,e<<16>>16)|0)<<1|0)>0){i[o>>1]=f;i[E>>1]=u;e=c}else s=v;l=l+5|0;f=l&65535;if(f<<16>>16>=40)break;else{l=l<<16>>16;v=s}}}}while(0);_=_+1|0}while((_|0)!=2);return}function Hr(e,r,t,n,s,a,l,u){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;var f=0,c=0,d=0,h=0,m=0,p=0;f=n;c=f+80|0;do{i[f>>1]=0;f=f+2|0}while((f|0)<(c|0));f=i[r>>1]|0;m=(f*6554|0)>>>15;c=m<<16>>16;h=(748250>>>((f+(ee(c,-5)|0)<<16>>16)+((e<<16>>16)*5|0)|0)&1|0)==0;d=(i[t+(f<<1)>>1]|0)>0;p=d?32767:-32768;i[n+(f<<1)>>1]=d?8191:-8192;f=r+2|0;e=i[f>>1]|0;n=n+(e<<1)|0;if((i[t+(e<<1)>>1]|0)>0){i[n>>1]=8191;t=32767;n=(d&1|2)&65535}else{i[n>>1]=-8192;t=-32768;n=d&1}m=((e*6554|0)>>>15<<3)+(h?m:c+64|0)&65535;i[l>>1]=n;h=0;d=s+(0-(i[r>>1]|0)<<1)|0;n=s+(0-(i[f>>1]|0)<<1)|0;do{f=ee(p,i[d>>1]|0)|0;d=d+2|0;if((f|0)==1073741824){o[u>>2]=1;e=2147483647}else e=f<<1;c=ee(t,i[n>>1]|0)|0;n=n+2|0;if((c|0)!=1073741824){f=(c<<1)+e|0;if((c^e|0)>0&(f^e|0)<0){o[u>>2]=1;f=(e>>>31)+2147483647|0}}else{o[u>>2]=1;f=2147483647}i[a+(h<<1)>>1]=Oi(f,u)|0;h=h+1|0}while((h|0)!=40);return m|0}function Wr(e,r,t,n,s,l,u,f){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;var d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0;Y=c;c=c+3440|0;I=Y+3360|0;B=Y+3280|0;z=Y+3200|0;U=Y;V=(n&65535)<<17;W=t<<16>>16;q=t<<16>>16<40;if(q){t=V>>16;d=W;do{n=(ee(i[r+(d-W<<1)>>1]|0,t)|0)>>15;if((n|0)>32767){o[f>>2]=1;n=32767}F=r+(d<<1)|0;i[F>>1]=Gn(i[F>>1]|0,n&65535,f)|0;d=d+1|0}while((d&65535)<<16>>16!=40)}ft(r,e,I,1,f);gn(I,z,B,6);lt(r,z,U,f);F=1;h=2;m=1;n=0;d=1;e=-1;p=1;while(1){x=2;v=2;while(1){C=0;L=0;N=p;O=v;while(1){if(L<<16>>16<40){M=N<<16>>16;D=N<<16>>16<40;P=O<<16>>16;T=O<<16>>16<40;A=L<<16>>16;R=L;while(1){if((i[B+(A<<1)>>1]|0)>-1){E=i[U+(A*80|0)+(A<<1)>>1]|0;if(D){j=a[I+(A<<1)>>1]|0;_=M;b=1;S=N;t=N;v=0;w=-1;while(1){g=(a[I+(_<<1)>>1]|0)+j|0;k=g<<16>>16;k=(ee(k,k)|0)>>>15;y=(i[U+(A*80|0)+(_<<1)>>1]<<15)+32768+((i[U+(_*80|0)+(_<<1)>>1]|0)+E<<14)|0;if(((ee(k<<16>>16,b<<16>>16)|0)-(ee(y>>16,w<<16>>16)|0)<<1|0)>0){b=y>>>16&65535;t=S;v=g&65535;w=k&65535}y=_+5|0;S=y&65535;if(S<<16>>16>=40)break;else _=y<<16>>16}}else{b=1;t=N;v=0}if(T){j=v&65535;S=t<<16>>16;_=(b<<16>>16<<14)+32768|0;k=P;v=1;E=O;w=O;b=-1;while(1){g=(a[I+(k<<1)>>1]|0)+j<<16>>16;g=(ee(g,g)|0)>>>15;y=_+(i[U+(k*80|0)+(k<<1)>>1]<<12)+((i[U+(A*80|0)+(k<<1)>>1]|0)+(i[U+(S*80|0)+(k<<1)>>1]|0)<<13)|0;if(((ee(g<<16>>16,v<<16>>16)|0)-(ee(y>>16,b<<16>>16)|0)<<1|0)>0){v=y>>>16&65535;w=E;b=g&65535}y=k+5|0;E=y&65535;if(E<<16>>16>=40){_=v;k=b;break}else k=y<<16>>16}}else{_=1;w=O;k=-1}v=ee(k<<16>>16,d<<16>>16)|0;if((v|0)==1073741824){o[f>>2]=1;y=2147483647}else y=v<<1;v=ee(_<<16>>16,e<<16>>16)|0;if((v|0)==1073741824){o[f>>2]=1;b=2147483647}else b=v<<1;v=y-b|0;if(((v^y)&(b^y)|0)<0){o[f>>2]=1;v=(y>>>31)+2147483647|0}S=(v|0)>0;h=S?w:h;m=S?t:m;n=S?R:n;d=S?_:d;e=S?k:e}v=A+5|0;R=v&65535;if(R<<16>>16>=40)break;else A=v<<16>>16}}C=C+1<<16>>16;if(C<<16>>16>=3)break;else{T=O;O=N;N=L;L=T}}t=x+2|0;v=t&65535;if(v<<16>>16>=5)break;else x=t&65535}t=F+2|0;p=t&65535;if(p<<16>>16<4)F=t&65535;else{v=h;h=m;break}}t=s;d=t+80|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(d|0));k=n<<16>>16;e=i[z+(k<<1)>>1]|0;n=(k*6554|0)>>>15;t=n<<16;d=k-(((t>>16)*327680|0)>>>16)|0;switch(d<<16>>16|0){case 1:{n=t>>12;break}case 2:{n=t>>8;d=2;break}case 3:{n=n<<20>>16|8;d=1;break}case 4:{n=n<<24>>16|128;d=2;break}default:{}}t=s+(k<<1)|0;if(e<<16>>16>0){i[t>>1]=8191;S=32767;m=65536<<(d<<16>>16)>>>16&65535}else{i[t>>1]=-8192;S=-32768;m=0}y=h<<16>>16;h=i[z+(y<<1)>>1]|0;t=(y*6554|0)>>>15;d=t<<16;e=y-(((d>>16)*327680|0)>>>16)|0;switch(e<<16>>16|0){case 1:{t=d>>12;break}case 2:{t=d>>8;e=2;break}case 3:{t=t<<20>>16|8;e=1;break}case 4:{t=t<<24>>16|128;e=2;break}default:{}}d=s+(y<<1)|0;if(h<<16>>16>0){i[d>>1]=8191;g=32767;m=(65536<<(e<<16>>16)>>>16)+(m&65535)&65535}else{i[d>>1]=-8192;g=-32768}p=t+n|0;b=v<<16>>16;h=i[z+(b<<1)>>1]|0;n=(b*6554|0)>>>15;t=n<<16;d=b-(((t>>16)*327680|0)>>>16)|0;switch(d<<16>>16|0){case 1:{t=t>>12;break}case 2:{t=t>>8;d=2;break}case 3:{t=n<<20>>16|8;d=1;break}case 4:{t=n<<24>>16|128;d=2;break}default:t=n}n=s+(b<<1)|0;if(h<<16>>16>0){i[n>>1]=8191;v=32767;n=(65536<<(d<<16>>16)>>>16)+(m&65535)&65535}else{i[n>>1]=-8192;v=-32768;n=m}w=p+t|0;i[u>>1]=n;m=0;p=r+(0-k<<1)|0;e=r+(0-y<<1)|0;h=r+(0-b<<1)|0;do{n=ee(i[p>>1]|0,S)|0;p=p+2|0;if((n|0)!=1073741824?(H=n<<1,!((n|0)>0&(H|0)<0)):0)d=H;else{o[f>>2]=1;d=2147483647}n=ee(i[e>>1]|0,g)|0;e=e+2|0;if((n|0)!=1073741824){t=(n<<1)+d|0;if((n^d|0)>0&(t^d|0)<0){o[f>>2]=1;t=(d>>>31)+2147483647|0}}else{o[f>>2]=1;t=2147483647}d=ee(i[h>>1]|0,v)|0;h=h+2|0;if((d|0)!=1073741824){n=(d<<1)+t|0;if((d^t|0)>0&(n^t|0)<0){o[f>>2]=1;n=(t>>>31)+2147483647|0}}else{o[f>>2]=1;n=2147483647}i[l+(m<<1)>>1]=Oi(n,f)|0;m=m+1|0}while((m|0)!=40);n=w&65535;if(!q){c=Y;return n|0}d=V>>16;t=W;do{e=(ee(i[s+(t-W<<1)>>1]|0,d)|0)>>15;if((e|0)>32767){o[f>>2]=1;e=32767}l=s+(t<<1)|0;i[l>>1]=Gn(i[l>>1]|0,e&65535,f)|0;t=t+1|0}while((t&65535)<<16>>16!=40);c=Y;return n|0}function Yr(e,r,t,n,s,l,u,f,d){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;var h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0,G=0,X=0,K=0,J=0,Z=0,$=0,Q=0,re=0,te=0,ne=0;ne=c;c=c+3456|0;Z=ne+3448|0;K=ne+3360|0;Y=ne+3368|0;G=ne+3280|0;J=ne+3200|0;X=ne;Q=(n&65535)<<17;te=t<<16>>16;$=t<<16>>16<40;if($){t=Q>>16;h=te;do{n=(ee(i[r+(h-te<<1)>>1]|0,t)|0)>>15;if((n|0)>32767){o[d>>2]=1;n=32767}W=r+(h<<1)|0;i[W>>1]=Gn(i[W>>1]|0,n&65535,d)|0;h=h+1|0}while((h&65535)<<16>>16!=40)}ft(r,e,Y,1,d);gn(Y,J,G,4);lt(r,J,X,d);V=K+2|0;i[K>>1]=0;H=K+4|0;i[V>>1]=1;W=K+6|0;i[H>>1]=2;i[W>>1]=3;b=3;p=2;m=1;n=0;t=1;h=-1;w=3;do{I=0;B=0;U=w;z=1;q=2;while(1){if(B<<16>>16<40){O=z<<16>>16;C=z<<16>>16<40;L=q<<16>>16;N=q<<16>>16<40;x=U<<16>>16;F=U<<16>>16<40;T=B<<16>>16;P=p;M=m;R=t;D=B;while(1){if((i[G+(T<<1)>>1]|0)>-1){y=i[X+(T*80|0)+(T<<1)>>1]|0;if(C){v=a[Y+(T<<1)>>1]|0;g=O;S=1;p=z;m=z;E=0;j=-1;while(1){_=(a[Y+(g<<1)>>1]|0)+v|0;k=_<<16>>16;k=(ee(k,k)|0)>>>15;A=(i[X+(T*80|0)+(g<<1)>>1]<<15)+32768+((i[X+(g*80|0)+(g<<1)>>1]|0)+y<<14)|0;if(((ee(k<<16>>16,S<<16>>16)|0)-(ee(A>>16,j<<16>>16)|0)<<1|0)>0){S=A>>>16&65535;m=p;E=_&65535;j=k&65535}A=g+5|0;p=A&65535;if(p<<16>>16>=40)break;else g=A<<16>>16}}else{S=1;m=z;E=0}if(N){t=E&65535;e=m<<16>>16;y=(S<<16>>16<<14)+32768|0;g=L;A=1;v=q;p=q;j=0;E=-1;while(1){_=(a[Y+(g<<1)>>1]|0)+t|0;k=_<<16>>16;k=(ee(k,k)|0)>>>15;S=y+(i[X+(g*80|0)+(g<<1)>>1]<<12)+((i[X+(T*80|0)+(g<<1)>>1]|0)+(i[X+(e*80|0)+(g<<1)>>1]|0)<<13)|0;if(((ee(k<<16>>16,A<<16>>16)|0)-(ee(S>>16,E<<16>>16)|0)<<1|0)>0){A=S>>>16&65535;p=v;j=_&65535;E=k&65535}S=g+5|0;v=S&65535;if(v<<16>>16>=40)break;else g=S<<16>>16}}else{A=1;p=q;j=0}if(F){y=j&65535;v=p<<16>>16;e=m<<16>>16;k=(A&65535)<<16|32768;_=x;t=1;g=U;S=U;A=-1;while(1){E=(a[Y+(_<<1)>>1]|0)+y<<16>>16;E=(ee(E,E)|0)>>>15;j=(i[X+(_*80|0)+(_<<1)>>1]<<12)+k+((i[X+(e*80|0)+(_<<1)>>1]|0)+(i[X+(v*80|0)+(_<<1)>>1]|0)+(i[X+(T*80|0)+(_<<1)>>1]|0)<<13)|0;if(((ee(E<<16>>16,t<<16>>16)|0)-(ee(j>>16,A<<16>>16)|0)<<1|0)>0){t=j>>>16&65535;S=g;A=E&65535}j=_+5|0;g=j&65535;if(g<<16>>16>=40)break;else _=j<<16>>16}}else{t=1;S=U;A=-1}if(((ee(A<<16>>16,R<<16>>16)|0)-(ee(t<<16>>16,h<<16>>16)|0)<<1|0)>0){i[K>>1]=D;i[V>>1]=m;i[H>>1]=p;i[W>>1]=S;b=S;n=D;h=A}else{p=P;m=M;t=R}}else{p=P;m=M;t=R}_=T+5|0;D=_&65535;if(D<<16>>16>=40)break;else{T=_<<16>>16;P=p;M=m;R=t}}}I=I+1<<16>>16;if(I<<16>>16>=4)break;else{x=q;F=U;q=z;z=B;U=x;B=F}}w=w+1<<16>>16}while(w<<16>>16<5);A=b;S=p;j=m;E=n;n=s;t=n+80|0;do{i[n>>1]=0;n=n+2|0}while((n|0)<(t|0));e=E;t=0;h=0;n=0;while(1){p=e<<16>>16;w=i[J+(p<<1)>>1]|0;e=p*13108>>16;m=p-((e*327680|0)>>>16)|0;e=i[f+(e<<1)>>1]|0;switch(m<<16>>16|0){case 1:{b=e<<16>>16<<3&65535;break}case 2:{b=e<<16>>16<<6&65535;break}case 3:{b=e<<16>>16<<10&65535;break}case 4:{b=((e&65535)<<10|512)&65535;m=3;break}default:b=e}e=s+(p<<1)|0;if(w<<16>>16>0){i[e>>1]=8191;e=32767;n=(65536<<(m<<16>>16)>>>16)+(n&65535)&65535}else{i[e>>1]=-8192;e=-32768}i[Z+(t<<1)>>1]=e;h=(b&65535)+(h&65535)|0;t=t+1|0;if((t|0)==4){_=h;break}e=i[K+(t<<1)>>1]|0}i[u>>1]=n;y=Z+2|0;g=Z+4|0;k=Z+6|0;e=i[Z>>1]|0;v=0;m=r+(0-(E<<16>>16)<<1)|0;p=r+(0-(j<<16>>16)<<1)|0;w=r+(0-(S<<16>>16)<<1)|0;b=r+(0-(A<<16>>16)<<1)|0;do{n=ee(i[m>>1]|0,e)|0;m=m+2|0;if((n|0)!=1073741824?(re=n<<1,!((n|0)>0&(re|0)<0)):0)h=re;else{o[d>>2]=1;h=2147483647}n=ee(i[y>>1]|0,i[p>>1]|0)|0;p=p+2|0;if((n|0)!=1073741824){t=(n<<1)+h|0;if((n^h|0)>0&(t^h|0)<0){o[d>>2]=1;t=(h>>>31)+2147483647|0}}else{o[d>>2]=1;t=2147483647}n=ee(i[g>>1]|0,i[w>>1]|0)|0;w=w+2|0;if((n|0)!=1073741824){h=(n<<1)+t|0;if((n^t|0)>0&(h^t|0)<0){o[d>>2]=1;h=(t>>>31)+2147483647|0}}else{o[d>>2]=1;h=2147483647}t=ee(i[k>>1]|0,i[b>>1]|0)|0;b=b+2|0;if((t|0)!=1073741824){n=(t<<1)+h|0;if((t^h|0)>0&(n^h|0)<0){o[d>>2]=1;n=(h>>>31)+2147483647|0}}else{o[d>>2]=1;n=2147483647}i[l+(v<<1)>>1]=Oi(n,d)|0;v=v+1|0}while((v|0)!=40);n=_&65535;if(((te<<16)+-2621440|0)>-1|$^1){c=ne;return n|0}h=Q>>16;t=te;do{e=(ee(i[s+(t-te<<1)>>1]|0,h)|0)>>15;if((e|0)>32767){o[d>>2]=1;e=32767}l=s+(t<<1)|0;i[l>>1]=Gn(i[l>>1]|0,e&65535,d)|0;t=t+1|0}while((t&65535)<<16>>16!=40);c=ne;return n|0}function Gr(e,r,t,n,s,l,u){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;var f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0;F=c;c=c+3440|0;y=F+3424|0;O=F+3408|0;C=F+3240|0;g=F+3224|0;P=F+3328|0;v=F+3248|0;T=F+24|0;x=F+16|0;N=F;ut(t,e,P,2,4,4,u);kn(P,r,v,C,4,O,4,u);lt(t,v,T,u);yn(8,4,4,P,T,O,C,g,u);r=n;e=r+80|0;do{i[r>>1]=0;r=r+2|0}while((r|0)<(e|0));i[N>>1]=-1;i[x>>1]=-1;M=N+2|0;i[M>>1]=-1;D=x+2|0;i[D>>1]=-1;P=N+4|0;i[P>>1]=-1;T=x+4|0;i[T>>1]=-1;C=N+6|0;i[C>>1]=-1;O=x+6|0;i[O>>1]=-1;w=0;do{m=i[g+(w<<1)>>1]|0;r=m>>>2;d=r&65535;e=m&3;h=(i[v+(m<<1)>>1]|0)>0;m=n+(m<<1)|0;b=h&1^1;i[m>>1]=(a[m>>1]|0)+(h?8191:57345);i[y+(w<<1)>>1]=h?32767:-32768;h=N+(e<<1)|0;m=i[h>>1]|0;do{if(m<<16>>16>=0){p=x+(e<<1)|0;f=(m<<16>>16|0)<=(r<<16>>16|0);r=N+((e|4)<<1)|0;if((b&65535|0)==(a[p>>1]&1|0))if(f){i[r>>1]=d;break}else{i[r>>1]=m;i[h>>1]=d;i[p>>1]=b;break}else if(f){i[r>>1]=m;i[h>>1]=d;i[p>>1]=b;break}else{i[r>>1]=d;break}}else{i[h>>1]=d;i[x+(e<<1)>>1]=b}}while(0);w=w+1|0}while((w|0)!=8);k=y+2|0;_=y+4|0;E=y+6|0;j=y+8|0;S=y+10|0;A=y+12|0;R=y+14|0;y=i[y>>1]|0;w=0;p=t+(0-(i[g>>1]|0)<<1)|0;m=t+(0-(i[g+2>>1]|0)<<1)|0;h=t+(0-(i[g+4>>1]|0)<<1)|0;d=t+(0-(i[g+6>>1]|0)<<1)|0;r=t+(0-(i[g+8>>1]|0)<<1)|0;e=t+(0-(i[g+10>>1]|0)<<1)|0;f=t+(0-(i[g+12>>1]|0)<<1)|0;t=t+(0-(i[g+14>>1]|0)<<1)|0;do{b=ee(i[p>>1]|0,y)|0;p=p+2|0;if((b|0)!=1073741824?(L=b<<1,!((b|0)>0&(L|0)<0)):0)b=L;else{o[u>>2]=1;b=2147483647}v=ee(i[k>>1]|0,i[m>>1]|0)|0;m=m+2|0;if((v|0)!=1073741824){n=(v<<1)+b|0;if((v^b|0)>0&(n^b|0)<0){o[u>>2]=1;b=(b>>>31)+2147483647|0}else b=n}else{o[u>>2]=1;b=2147483647}v=ee(i[_>>1]|0,i[h>>1]|0)|0;h=h+2|0;if((v|0)!=1073741824){n=(v<<1)+b|0;if((v^b|0)>0&(n^b|0)<0){o[u>>2]=1;n=(b>>>31)+2147483647|0}}else{o[u>>2]=1;n=2147483647}v=ee(i[E>>1]|0,i[d>>1]|0)|0;d=d+2|0;if((v|0)!=1073741824){b=(v<<1)+n|0;if((v^n|0)>0&(b^n|0)<0){o[u>>2]=1;b=(n>>>31)+2147483647|0}}else{o[u>>2]=1;b=2147483647}v=ee(i[j>>1]|0,i[r>>1]|0)|0;r=r+2|0;if((v|0)!=1073741824){n=(v<<1)+b|0;if((v^b|0)>0&(n^b|0)<0){o[u>>2]=1;n=(b>>>31)+2147483647|0}}else{o[u>>2]=1;n=2147483647}v=ee(i[S>>1]|0,i[e>>1]|0)|0;e=e+2|0;if((v|0)!=1073741824){b=(v<<1)+n|0;if((v^n|0)>0&(b^n|0)<0){o[u>>2]=1;b=(n>>>31)+2147483647|0}}else{o[u>>2]=1;b=2147483647}v=ee(i[A>>1]|0,i[f>>1]|0)|0;f=f+2|0;if((v|0)!=1073741824){n=(v<<1)+b|0;if((v^b|0)>0&(n^b|0)<0){o[u>>2]=1;n=(b>>>31)+2147483647|0}}else{o[u>>2]=1;n=2147483647}v=ee(i[R>>1]|0,i[t>>1]|0)|0;t=t+2|0;if((v|0)!=1073741824){b=(v<<1)+n|0;if((v^n|0)>0&(b^n|0)<0){o[u>>2]=1;b=(n>>>31)+2147483647|0}}else{o[u>>2]=1;b=2147483647}i[s+(w<<1)>>1]=Oi(b,u)|0;w=w+1|0}while((w|0)!=40);i[l>>1]=i[x>>1]|0;i[l+2>>1]=i[D>>1]|0;i[l+4>>1]=i[T>>1]|0;i[l+6>>1]=i[O>>1]|0;e=i[N>>1]|0;r=i[N+8>>1]|0;f=i[M>>1]|0;i[l+8>>1]=r<<1&2|e&1|f<<2&4|(((r>>1)*327680|0)+(e>>>1<<16)+(ee(f>>1,1638400)|0)|0)>>>13&65528;f=i[P>>1]|0;e=i[N+12>>1]|0;r=i[N+10>>1]|0;i[l+10>>1]=e<<1&2|f&1|r<<2&4|(((e>>1)*327680|0)+(f>>>1<<16)+(ee(r>>1,1638400)|0)|0)>>>13&65528;r=i[N+14>>1]|0;f=i[C>>1]|0;e=f<<16>>16>>>1;if(!(r&2)){s=e;u=r<<16>>16;x=u>>1;x=x*327680|0;s=s<<16;x=s+x|0;x=x<<5;x=x>>16;x=x|12;x=x*2622|0;x=x>>>16;s=f&65535;s=s&1;u=u<<17;u=u&131072;x=x<<18;u=x|u;u=u>>>16;s=u|s;s=s&65535;l=l+12|0;i[l>>1]=s;c=F;return}s=4-(e<<16>>16)|0;u=r<<16>>16;x=u>>1;x=x*327680|0;s=s<<16;x=s+x|0;x=x<<5;x=x>>16;x=x|12;x=x*2622|0;x=x>>>16;s=f&65535;s=s&1;u=u<<17;u=u&131072;x=x<<18;u=x|u;u=u>>>16;s=u|s;s=s&65535;l=l+12|0;i[l>>1]=s;c=F;return}function Xr(e,r,t,n,s){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;var a=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0;b=t<<16>>16;a=0-b|0;t=s+(a<<2)|0;s=((b-(n<<16>>16)|0)>>>2)+1&65535;if(s<<16>>16<=0)return;b=r<<16>>16>>>1&65535;if(!(b<<16>>16)){while(1){o[t>>2]=0;o[t+4>>2]=0;o[t+8>>2]=0;o[t+12>>2]=0;if(s<<16>>16>1){t=t+16|0;s=s+-1<<16>>16}else break}return}w=e+(a<<1)|0;while(1){c=w+4|0;h=i[c>>1]|0;u=i[w>>1]|0;d=h;f=b;m=e;p=w;w=w+8|0;l=0;a=0;n=0;r=0;while(1){y=i[m>>1]|0;v=(ee(u<<16>>16,y)|0)+l|0;l=i[p+2>>1]|0;a=(ee(l,y)|0)+a|0;u=(ee(d<<16>>16,y)|0)+n|0;n=i[p+6>>1]|0;d=(ee(n,y)|0)+r|0;r=i[m+2>>1]|0;l=v+(ee(r,l)|0)|0;a=a+(ee(h<<16>>16,r)|0)|0;c=c+4|0;n=u+(ee(r,n)|0)|0;u=i[c>>1]|0;r=d+(ee(u<<16>>16,r)|0)|0;f=f+-1<<16>>16;if(!(f<<16>>16))break;y=h;d=u;h=i[p+8>>1]|0;m=m+4|0;p=p+4|0;u=y}o[t>>2]=l<<1;o[t+4>>2]=a<<1;o[t+8>>2]=n<<1;o[t+12>>2]=r<<1;if(s<<16>>16<=1)break;else{t=t+16|0;s=s+-1<<16>>16}}return}function Kr(e,r,t,n,s,l,u,f,d){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;var h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0;j=c;c=c+16|0;_=j+2|0;E=j;do{if(s<<16>>16>0){v=n<<16>>16;g=0;p=0;n=0;m=0;y=0;while(1){h=i[e+(g<<1)>>1]|0;w=h<<16>>16;p=(ee(w,w)|0)+p|0;w=i[r+(g<<1)>>1]|0;n=(ee(w,w)|0)+n|0;m=(ee(i[t+(g<<1)>>1]|0,w)|0)+m|0;w=ee(w,v)|0;if((w|0)==1073741824){o[d>>2]=1;b=2147483647}else b=w<<1;w=b<<1;w=(xi(h,Oi((w>>1|0)==(b|0)?w:b>>31^2147483647,d)|0,d)|0)<<16>>16;w=ee(w,w)|0;if((w|0)!=1073741824){h=(w<<1)+y|0;if((w^y|0)>0&(h^y|0)<0){o[d>>2]=1;h=(y>>>31)+2147483647|0}}else{o[d>>2]=1;h=2147483647}g=g+1|0;if((g&65535)<<16>>16==s<<16>>16){y=h;break}else y=h}p=p<<1;n=n<<1;m=m<<1;if((p|0)>=0){if((p|0)<400){h=y;k=14;break}}else{o[d>>2]=1;p=2147483647}b=yi(p)|0;w=b<<16>>16;if(b<<16>>16>0){h=p<<w;if((h>>w|0)!=(p|0))h=p>>31^2147483647}else{h=0-w<<16;if((h|0)<2031616)h=p>>(h>>16);else h=0}i[l>>1]=h>>>16;p=n;v=m;h=y;n=15-(b&65535)&65535}else{n=0;m=0;h=0;k=14}}while(0);if((k|0)==14){i[l>>1]=0;p=n;v=m;n=-15}i[u>>1]=n;if((p|0)<0){o[d>>2]=1;p=2147483647}w=yi(p)|0;m=w<<16>>16;if(w<<16>>16>0){n=p<<m;if((n>>m|0)!=(p|0))n=p>>31^2147483647}else{n=0-m<<16;if((n|0)<2031616)n=p>>(n>>16);else n=0}i[l+2>>1]=n>>>16;i[u+2>>1]=15-(w&65535);p=yi(v)|0;m=p<<16>>16;if(p<<16>>16>0){n=v<<m;if((n>>m|0)!=(v|0))n=v>>31^2147483647}else{n=0-m<<16;if((n|0)<2031616)n=v>>(n>>16);else n=0}i[l+4>>1]=n>>>16;i[u+4>>1]=2-(p&65535);p=yi(h)|0;n=p<<16>>16;if(p<<16>>16>0){m=h<<n;if((m>>n|0)!=(h|0))m=h>>31^2147483647}else{n=0-n<<16;if((n|0)<2031616)m=h>>(n>>16);else m=0}n=m>>>16&65535;h=15-(p&65535)&65535;i[l+6>>1]=n;i[u+6>>1]=h;if((m>>16|0)<=0){d=0;i[f>>1]=d;c=j;return}m=i[l>>1]|0;if(!(m<<16>>16)){d=0;i[f>>1]=d;c=j;return}n=Kn(Ci(m,1,d)|0,n)|0;n=(n&65535)<<16;m=((xi(h,i[u>>1]|0,d)|0)&65535)+3|0;h=m&65535;m=m<<16>>16;if(h<<16>>16>0)h=h<<16>>16<31?n>>m:0;else{u=0-m<<16>>16;h=n<<u;h=(h>>u|0)==(n|0)?h:n>>31^2147483647}ai(h,_,E,d);E=Ft((a[_>>1]|0)+65509&65535,i[E>>1]|0,d)|0;_=E<<13;d=Oi((_>>13|0)==(E|0)?_:E>>31^2147483647,d)|0;i[f>>1]=d;c=j;return}function Jr(e,r,t,n,s,l,u,f,d,h,m){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;var p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0;j=c;c=c+80|0;k=j;i[u>>1]=i[l>>1]|0;i[f>>1]=i[l+2>>1]|0;b=i[l+4>>1]|0;if(b<<16>>16==-32768)b=32767;else b=0-(b&65535)&65535;i[u+2>>1]=b;i[f+2>>1]=(a[l+6>>1]|0)+1;switch(e|0){case 0:case 5:{g=0;w=0;p=0;y=0;break}default:{g=0;w=1;p=1;y=1}}while(1){v=(i[s+(g<<1)>>1]|0)>>>3;i[k+(g<<1)>>1]=v;v=v<<16>>16;b=ee(v,v)|0;if((b|0)!=1073741824){l=(b<<1)+w|0;if((b^w|0)>0&(l^w|0)<0){o[m>>2]=1;w=(w>>>31)+2147483647|0}else w=l}else{o[m>>2]=1;w=2147483647}b=ee(i[r+(g<<1)>>1]|0,v)|0;if((b|0)!=1073741824){l=(b<<1)+p|0;if((b^p|0)>0&(l^p|0)<0){o[m>>2]=1;p=(p>>>31)+2147483647|0}else p=l}else{o[m>>2]=1;p=2147483647}b=ee(i[n+(g<<1)>>1]|0,v)|0;if((b|0)!=1073741824){l=(b<<1)+y|0;if((b^y|0)>0&(l^y|0)<0){o[m>>2]=1;l=(y>>>31)+2147483647|0}}else{o[m>>2]=1;l=2147483647}g=g+1|0;if((g|0)==40){n=l;v=p;break}else y=l}p=yi(w)|0;l=p<<16>>16;if(p<<16>>16>0){b=w<<l;if((b>>l|0)!=(w|0))b=w>>31^2147483647}else{b=0-l<<16;if((b|0)<2031616)b=w>>(b>>16);else b=0}s=u+4|0;i[s>>1]=b>>>16;r=f+4|0;i[r>>1]=-3-(p&65535);w=yi(v)|0;l=w<<16>>16;if(w<<16>>16>0){b=v<<l;if((b>>l|0)!=(v|0))b=v>>31^2147483647}else{b=0-l<<16;if((b|0)<2031616)b=v>>(b>>16);else b=0}l=b>>>16;i[u+6>>1]=(l|0)==32768?32767:0-l&65535;i[f+6>>1]=7-(w&65535);w=yi(n)|0;l=w<<16>>16;if(w<<16>>16>0){b=n<<l;if((b>>l|0)!=(n|0))b=n>>31^2147483647}else{b=0-l<<16;if((b|0)<2031616)b=n>>(b>>16);else b=0}i[u+8>>1]=b>>>16;i[f+8>>1]=7-(w&65535);switch(e|0){case 0:case 5:{b=0;p=0;break}default:{c=j;return}}do{p=(ee(i[k+(b<<1)>>1]|0,i[t+(b<<1)>>1]|0)|0)+p|0;b=b+1|0}while((b|0)!=40);l=p<<1;b=yi(l)|0;w=b<<16>>16;if(b<<16>>16>0){p=l<<w;if((p>>w|0)==(l|0)){_=p;E=40}else{_=l>>31^2147483647;E=40}}else{p=0-w<<16;if((p|0)<2031616){_=l>>(p>>16);E=40}}if((E|0)==40?(_>>16|0)>=1:0){m=Ci(_>>>16&65535,1,m)|0;i[d>>1]=Kn(m,i[s>>1]|0)|0;i[h>>1]=65528-(b&65535)-(a[r>>1]|0);c=j;return}i[d>>1]=0;i[h>>1]=0;c=j;return}function Zr(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0,a=0,l=0;a=0;s=0;do{l=i[e+(a<<1)>>1]|0;s=(ee(l,l)|0)+s|0;a=a+1|0}while((a|0)!=40);if((s|0)<0){o[n>>2]=1;s=2147483647}n=yi(s)|0;e=n<<16>>16;if(n<<16>>16>0){a=s<<e;if((a>>e|0)==(s|0))s=a;else s=s>>31^2147483647}else{e=0-e<<16;if((e|0)<2031616)s=s>>(e>>16);else s=0}i[t>>1]=s>>>16;i[r>>1]=16-(n&65535);return}function $r(e,r,t,n,s,a,l,u,f,d,h,m,p){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;p=p|0;var w=0,b=0,v=0,y=0;b=c;c=c+16|0;w=b;if(d>>>0<2){l=qr(h,e,r,t,n,l,u,w,o[m+76>>2]|0,p)|0;p=o[f>>2]|0;i[p>>1]=l;l=i[w>>1]|0;o[f>>2]=p+4;i[p+2>>1]=l;c=b;return}switch(d|0){case 2:{l=zr(e,r,t,n,l,u,w,p)|0;p=o[f>>2]|0;i[p>>1]=l;l=i[w>>1]|0;o[f>>2]=p+4;i[p+2>>1]=l;c=b;return}case 3:{l=Wr(e,r,t,n,l,u,w,p)|0;p=o[f>>2]|0;i[p>>1]=l;l=i[w>>1]|0;o[f>>2]=p+4;i[p+2>>1]=l;c=b;return}default:{if((d&-2|0)==4){l=Yr(e,r,t,n,l,u,w,o[m+36>>2]|0,p)|0;p=o[f>>2]|0;i[p>>1]=l;l=i[w>>1]|0;o[f>>2]=p+4;i[p+2>>1]=l;c=b;return}if((d|0)!=6){h=s<<16>>16;h=(h<<17>>17|0)==(h|0)?h<<1:h>>>15^32767;s=t<<16>>16<40;if(!s){Ur(e,a,r,l,u,o[f>>2]|0,o[m+36>>2]|0,p);o[f>>2]=(o[f>>2]|0)+20;c=b;return}w=t<<16>>16;d=h<<16>>16;n=w;do{y=(ee(i[r+(n-w<<1)>>1]|0,d)|0)>>>15&65535;v=r+(n<<1)|0;i[v>>1]=Gn(i[v>>1]|0,y,p)|0;n=n+1|0}while((n&65535)<<16>>16!=40);Ur(e,a,r,l,u,o[f>>2]|0,o[m+36>>2]|0,p);o[f>>2]=(o[f>>2]|0)+20;if(!s){c=b;return}s=t<<16>>16;d=h<<16>>16;w=s;do{n=(ee(i[l+(w-s<<1)>>1]|0,d)|0)>>15;if((n|0)>32767){o[p>>2]=1;n=32767}y=l+(w<<1)|0;i[y>>1]=Gn(i[y>>1]|0,n&65535,p)|0;w=w+1|0}while((w&65535)<<16>>16!=40);c=b;return}m=n<<16>>16;m=(m<<17>>17|0)==(m|0)?m<<1:m>>>15^32767;h=t<<16>>16<40;if(!h){Gr(e,a,r,l,u,o[f>>2]|0,p);o[f>>2]=(o[f>>2]|0)+14;c=b;return}w=t<<16>>16;d=m<<16>>16;n=w;do{s=(ee(i[r+(n-w<<1)>>1]|0,d)|0)>>15;if((s|0)>32767){o[p>>2]=1;s=32767}y=r+(n<<1)|0;i[y>>1]=Gn(i[y>>1]|0,s&65535,p)|0;n=n+1|0}while((n&65535)<<16>>16!=40);Gr(e,a,r,l,u,o[f>>2]|0,p);o[f>>2]=(o[f>>2]|0)+14;if(!h){c=b;return}s=t<<16>>16;d=m<<16>>16;w=s;do{n=(ee(i[l+(w-s<<1)>>1]|0,d)|0)>>15;if((n|0)>32767){o[p>>2]=1;n=32767}y=l+(w<<1)|0;i[y>>1]=Gn(i[y>>1]|0,n&65535,p)|0;w=w+1|0}while((w&65535)<<16>>16!=40);c=b;return}}}function Qr(e){e=e|0;var r=0;if(!e){e=-1;return e|0}o[e>>2]=0;r=Bi(4)|0;if(!r){e=-1;return e|0}if(!((Kt(r)|0)<<16>>16)){Jt(o[r>>2]|0)|0;o[e>>2]=r;e=0;return e|0}else{Zt(r);Ui(r);e=-1;return e|0}return 0}function et(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Zt(r);Ui(o[e>>2]|0);o[e>>2]=0;return}function rt(e){e=e|0;if(!e){e=-1;return e|0}Jt(o[e>>2]|0)|0;e=0;return e|0}function tt(e,r,t,n,s,l,u,f,d,h,m,p,w,b,v,y,g,k,_,E){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;p=p|0;w=w|0;b=b|0;v=v|0;y=y|0;g=g|0;k=k|0;_=_|0;E=E|0;var j=0,S=0,A=0,R=0;S=c;c=c+16|0;R=S+2|0;A=S;i[w>>1]=$t(o[e>>2]|0,t,s,u,d,l,40,n,b,A,R,E)|0;e=i[R>>1]|0;n=o[g>>2]|0;o[g>>2]=n+2;i[n>>1]=e;_i(u,i[w>>1]|0,i[b>>1]|0,40,i[A>>1]|0,E);at(u,l,p,40);i[v>>1]=Ot(t,d,p,y,40,E)|0;i[k>>1]=32767;if(h<<16>>16!=0?(j=i[v>>1]|0,j<<16>>16>15565):0)j=Ln(r,j,E)|0;else j=0;if(t>>>0<2){R=i[v>>1]|0;i[v>>1]=R<<16>>16>13926?13926:R;if(j<<16>>16)i[k>>1]=15565}else{if(j<<16>>16){i[k>>1]=15565;i[v>>1]=15565}if((t|0)==7){A=bn(7,i[k>>1]|0,v,0,0,_,E)|0;R=o[g>>2]|0;o[g>>2]=R+2;i[R>>1]=A}}w=i[v>>1]|0;j=0;while(1){A=ee(i[p>>1]|0,w)|0;i[m>>1]=(a[d>>1]|0)-(A>>>14);A=(ee(i[u>>1]|0,w)|0)>>>14;R=f+(j<<1)|0;i[R>>1]=(a[R>>1]|0)-A;j=j+1|0;if((j|0)==40)break;else{u=u+2|0;d=d+2|0;m=m+2|0;p=p+2|0}}c=S;return}function nt(e,r){e=e|0;r=r|0;var t=0,n=0,i=0,s=0;s=c;c=c+16|0;i=s;if(!e){e=-1;c=s;return e|0}o[e>>2]=0;t=Bi(2532)|0;o[i>>2]=t;if(!t){e=-1;c=s;return e|0}ei(t+2392|0);o[t+2188>>2]=0;o[(o[i>>2]|0)+2192>>2]=0;o[(o[i>>2]|0)+2196>>2]=0;o[(o[i>>2]|0)+2200>>2]=0;o[(o[i>>2]|0)+2204>>2]=0;o[(o[i>>2]|0)+2208>>2]=0;o[(o[i>>2]|0)+2212>>2]=0;o[(o[i>>2]|0)+2220>>2]=0;n=o[i>>2]|0;o[n+2216>>2]=r;o[n+2528>>2]=0;t=n;if((((((((Qr(n+2196|0)|0)<<16>>16==0?(di(n+2192|0)|0)<<16>>16==0:0)?(Rt(n+2200|0)|0)<<16>>16==0:0)?(rn(n+2204|0)|0)<<16>>16==0:0)?(Pn(n+2208|0)|0)<<16>>16==0:0)?(xn(n+2212|0)|0)<<16>>16==0:0)?(dt(n+2220|0,o[n+2432>>2]|0)|0)<<16>>16==0:0)?(Ht(n+2188|0)|0)<<16>>16==0:0){ot(n)|0;o[e>>2]=t;e=0;c=s;return e|0}it(i);e=-1;c=s;return e|0}function it(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Wt(r+2188|0);mi((o[e>>2]|0)+2192|0);Mt((o[e>>2]|0)+2200|0);et((o[e>>2]|0)+2196|0);nn((o[e>>2]|0)+2204|0);On((o[e>>2]|0)+2208|0);In((o[e>>2]|0)+2212|0);mt((o[e>>2]|0)+2220|0);Ui(o[e>>2]|0);o[e>>2]=0;return}function ot(e){e=e|0;var r=0,t=0,n=0,s=0;if(!e){s=-1;return s|0}o[e+652>>2]=e+320;o[e+640>>2]=e+240;o[e+644>>2]=e+160;o[e+648>>2]=e+80;o[e+1264>>2]=e+942;o[e+1912>>2]=e+1590;n=e+1938|0;o[e+2020>>2]=n;o[e+2384>>2]=e+2304;r=e+2028|0;o[e+2024>>2]=e+2108;o[e+2528>>2]=0;Yi(e|0,0,640)|0;Yi(e+1282|0,0,308)|0;Yi(e+656|0,0,286)|0;t=e+2224|0;s=n+80|0;do{i[n>>1]=0;n=n+2|0}while((n|0)<(s|0));n=r;s=n+80|0;do{i[n>>1]=0;n=n+2|0}while((n|0)<(s|0));r=e+1268|0;n=t;s=n+80|0;do{i[n>>1]=0;n=n+2|0}while((n|0)<(s|0));i[r>>1]=40;i[e+1270>>1]=40;i[e+1272>>1]=40;i[e+1274>>1]=40;i[e+1276>>1]=40;Yt(o[e+2188>>2]|0)|0;hi(o[e+2192>>2]|0)|0;rt(o[e+2196>>2]|0)|0;Dt(o[e+2200>>2]|0)|0;tn(o[e+2204>>2]|0)|0;Tn(o[e+2208>>2]|0)|0;Fn(o[e+2212>>2]|0)|0;ht(o[e+2220>>2]|0,o[e+2432>>2]|0)|0;i[e+2388>>1]=0;s=0;return s|0}function st(e,r,t,n,s,a){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;var l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0,G=0,X=0,K=0,J=0,Z=0,$=0,Q=0,ee=0,re=0,te=0,ne=0,ie=0,oe=0,se=0,ae=0,le=0,ue=0,fe=0,ce=0,de=0,he=0,me=0,pe=0,we=0;we=c;c=c+1184|0;W=we;h=we+1096|0;m=we+1008|0;f=we+904|0;fe=we+928|0;ce=we+824|0;K=we+744|0;he=we+664|0;me=we+584|0;Z=we+328|0;ae=we+504|0;le=we+424|0;de=we+344|0;pe=we+248|0;J=we+168|0;ne=we+88|0;oe=we+68|0;se=we+48|0;ie=we+28|0;ue=we+24|0;re=we+22|0;Q=we+20|0;X=we+16|0;Y=we+12|0;G=we+10|0;ee=we+8|0;$=we+6|0;te=we+4|0;o[W>>2]=n;H=e+2528|0;l=e+652|0;Hi(o[l>>2]|0,t|0,320)|0;o[s>>2]=r;d=e+2216|0;if(!(o[d>>2]|0)){t=e+2220|0;n=0}else{n=Vn(o[e+2212>>2]|0,o[l>>2]|0,H)|0;V=e+2220|0;t=V;n=bt(o[V>>2]|0,n,s,H)|0}V=e+2392|0;Gt(o[e+2188>>2]|0,r,o[e+644>>2]|0,o[e+648>>2]|0,h,V,H);u=e+2192|0;pi(o[u>>2]|0,r,o[s>>2]|0,h,m,f,W,H);wt(o[t>>2]|0,f,o[l>>2]|0,H);if((o[s>>2]|0)==8){pt(o[t>>2]|0,n,o[(o[u>>2]|0)+40>>2]|0,(o[e+2200>>2]|0)+32|0,W,H);Yi(e+1282|0,0,308)|0;l=e+2244|0;w=l+20|0;do{i[l>>1]=0;l=l+2|0}while((l|0)<(w|0));l=e+2284|0;w=l+20|0;do{i[l>>1]=0;l=l+2|0}while((l|0)<(w|0));l=o[e+2020>>2]|0;w=l+80|0;do{i[l>>1]=0;l=l+2|0}while((l|0)<(w|0));l=e+2028|0;w=l+80|0;do{i[l>>1]=0;l=l+2|0}while((l|0)<(w|0));hi(o[u>>2]|0)|0;l=o[u>>2]|0;t=f;w=l+20|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));l=(o[u>>2]|0)+20|0;t=f;w=l+20|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));rt(o[e+2196>>2]|0)|0;i[e+2388>>1]=0;q=0}else q=Cn(o[e+2208>>2]|0,o[u>>2]|0,H)|0;B=e+640|0;u=e+2264|0;l=e+1264|0;t=e+2204|0;n=e+2212|0;U=e+1268|0;z=e+1278|0;sn(r,2842,2862,2882,h,0,o[B>>2]|0,u,o[l>>2]|0,H);if(r>>>0>1){Xt(o[t>>2]|0,o[n>>2]|0,r,o[l>>2]|0,X,U,z,0,o[d>>2]|0,H);sn(r,2842,2862,2882,h,80,o[B>>2]|0,u,o[l>>2]|0,H);Xt(o[t>>2]|0,o[n>>2]|0,r,(o[l>>2]|0)+160|0,X+2|0,U,z,1,o[d>>2]|0,H)}else{sn(r,2842,2862,2882,h,80,o[B>>2]|0,u,o[l>>2]|0,H);Xt(o[t>>2]|0,o[n>>2]|0,r,o[l>>2]|0,X,U,z,1,o[d>>2]|0,H);i[X+2>>1]=i[X>>1]|0}if(o[d>>2]|0)qn(o[n>>2]|0,X,H);if((o[s>>2]|0)==8){me=e+656|0;pe=e+976|0;Hi(me|0,pe|0,286)|0;pe=e+320|0;Hi(e|0,pe|0,320)|0;c=we;return 0}S=e+2224|0;A=e+2244|0;R=e+2284|0;M=e+2388|0;D=e+2020|0;P=e+1916|0;T=e+1912|0;O=e+2024|0;C=e+2384|0;L=e+2196|0;N=e+2208|0;x=e+2464|0;F=e+2200|0;I=e+2224|0;_=e+2244|0;E=e+1270|0;j=e+1280|0;k=0;d=0;f=0;v=0;y=0;u=0;g=-1;while(1){p=g;g=g+1<<16>>16;v=1-(v<<16>>16)|0;n=v&65535;b=(v&65535|0)!=0;t=o[s>>2]|0;l=(t|0)==0;do{if(b)if(l){l=oe;t=S;w=l+20|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));l=se;t=A;w=l+20|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));l=ie;t=R;w=l+20|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));i[ue>>1]=i[M>>1]|0;r=(o[B>>2]|0)+(k<<1)|0;l=20;break}else{r=(o[B>>2]|0)+(k<<1)|0;l=19;break}else{r=(o[B>>2]|0)+(k<<1)|0;if(l)l=20;else l=19}}while(0);if((l|0)==19)Mn(t,2842,2862,2882,h,m,r,R,_,o[D>>2]|0,P,(o[T>>2]|0)+(k<<1)|0,o[O>>2]|0,fe,ae,o[C>>2]|0);else if((l|0)==20?(0,Mn(0,2842,2862,2882,h,m,r,R,se,o[D>>2]|0,P,(o[T>>2]|0)+(k<<1)|0,o[O>>2]|0,fe,ae,o[C>>2]|0),b):0){l=ne;t=o[O>>2]|0;w=l+80|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0))}l=le;t=ae;w=l+80|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));tt(o[L>>2]|0,o[N>>2]|0,o[s>>2]|0,y,X,o[O>>2]|0,(o[T>>2]|0)+(k<<1)|0,le,fe,q,ce,he,Y,G,ee,Z,W,te,o[x>>2]|0,H);switch(p<<16>>16){case-1:{if((i[z>>1]|0)>0)i[E>>1]=i[Y>>1]|0;break}case 2:{if((i[j>>1]|0)>0)i[U>>1]=i[Y>>1]|0;break}default:{}}$r(ce,o[O>>2]|0,i[Y>>1]|0,i[M>>1]|0,i[ee>>1]|0,le,K,me,W,o[s>>2]|0,g,V,H);Pt(o[F>>2]|0,o[s>>2]|0,ae,(o[T>>2]|0)+(k<<1)|0,K,fe,ce,he,me,Z,n,i[te>>1]|0,re,Q,ee,$,W,V,H);Nn(o[N>>2]|0,i[ee>>1]|0,H);r=o[s>>2]|0;do{if(!r)if(b){l=de;t=fe;w=l+80|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));l=pe;t=me;w=l+80|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));l=J;t=K;w=l+80|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));f=i[Y>>1]|0;d=i[G>>1]|0;Dn(o[B>>2]|0,0,y,i[ee>>1]|0,i[$>>1]|0,m,a,fe,K,he,me,oe,R,se,o[T>>2]|0,M,H);i[M>>1]=i[ue>>1]|0;u=y;break}else{l=R;t=ie;w=l+20|0;do{i[l>>1]=i[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(w|0));b=u<<16>>16;_i((o[T>>2]|0)+(b<<1)|0,f,d,40,1,H);at((o[T>>2]|0)+(b<<1)|0,ne,he,40);Dn(o[B>>2]|0,o[s>>2]|0,u,i[re>>1]|0,i[Q>>1]|0,m+-22|0,a,de,J,he,pe,I,R,_,o[T>>2]|0,ue,H);Mn(o[s>>2]|0,2842,2862,2882,h,m,(o[B>>2]|0)+(k<<1)|0,R,_,o[D>>2]|0,P,(o[T>>2]|0)+(k<<1)|0,o[O>>2]|0,fe,ae,o[C>>2]|0);_i((o[T>>2]|0)+(k<<1)|0,i[Y>>1]|0,i[G>>1]|0,40,1,H);at((o[T>>2]|0)+(k<<1)|0,o[O>>2]|0,he,40);Dn(o[B>>2]|0,o[s>>2]|0,y,i[ee>>1]|0,i[$>>1]|0,m,a,fe,K,he,me,I,R,_,o[T>>2]|0,M,H);break}else Dn(o[B>>2]|0,r,y,i[ee>>1]|0,i[$>>1]|0,m,a,fe,K,he,me,I,R,_,o[T>>2]|0,M,H)}while(0);r=k+40|0;y=r&65535;if(y<<16>>16>=160)break;else{k=r<<16>>16;h=h+22|0;m=m+22|0}}Hi(e+1282|0,e+1602|0,308)|0;me=e+656|0;pe=e+976|0;Hi(me|0,pe|0,286)|0;pe=e+320|0;Hi(e|0,pe|0,320)|0;c=we;return 0}function at(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0;m=n<<16>>16;if(n<<16>>16>1)h=1;else return;while(1){o=i[e>>1]|0;l=r+(h+-1<<1)|0;n=ee(i[r+(h<<1)>>1]|0,o)|0;f=i[l>>1]|0;o=ee(f<<16>>16,o)|0;a=(h+131071|0)>>>1;u=a&65535;s=i[e+2>>1]|0;if(!(u<<16>>16)){r=l;a=f}else{c=(a<<1)+131070&131070;d=h-c|0;a=e;do{w=(ee(f<<16>>16,s)|0)+n|0;p=a;a=a+4|0;n=i[l+-2>>1]|0;s=(ee(n,s)|0)+o|0;o=i[a>>1]|0;l=l+-4|0;n=w+(ee(o,n)|0)|0;f=i[l>>1]|0;o=s+(ee(f<<16>>16,o)|0)|0;u=u+-1<<16>>16;s=i[p+6>>1]|0}while(u<<16>>16!=0);a=r+(d+-3<<1)|0;e=e+(c+2<<1)|0;r=a;a=i[a>>1]|0}n=(ee(a<<16>>16,s)|0)+n|0;i[t>>1]=o>>>12;i[t+2>>1]=n>>>12;n=(h<<16)+131072>>16;if((n|0)<(m|0)){t=t+4|0;e=e+(1-h<<1)|0;h=n}else break}return}function lt(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0;S=c;c=c+80|0;j=S;a=20;s=e;o=1;while(1){E=i[s>>1]|0;E=(ee(E,E)|0)+o|0;o=i[s+2>>1]|0;o=E+(ee(o,o)|0)|0;a=a+-1<<16>>16;if(!(a<<16>>16))break;else s=s+4|0}o=o<<1;if((o|0)<0){s=20;o=e;n=j;while(1){i[n>>1]=(i[o>>1]|0)>>>1;i[n+2>>1]=(i[o+2>>1]|0)>>>1;s=s+-1<<16>>16;if(!(s<<16>>16)){E=j;break}else{o=o+4|0;n=n+4|0}}}else{o=si(o>>1,n)|0;if((o|0)<16777215)o=((o>>9)*32440|0)>>>15<<16>>16;else o=32440;a=20;s=e;n=j;while(1){i[n>>1]=((ee(i[s>>1]|0,o)|0)+32|0)>>>6;i[n+2>>1]=((ee(i[s+2>>1]|0,o)|0)+32|0)>>>6;a=a+-1<<16>>16;if(!(a<<16>>16)){E=j;break}else{s=s+4|0;n=n+4|0}}}a=20;s=E;n=t+3198|0;o=0;while(1){_=i[s>>1]|0;_=(ee(_,_)|0)+o|0;i[n>>1]=(_+16384|0)>>>15;k=i[s+2>>1]|0;o=(ee(k,k)|0)+_|0;i[n+-82>>1]=(o+16384|0)>>>15;a=a+-1<<16>>16;if(!(a<<16>>16))break;else{s=s+4|0;n=n+-164|0}}_=r+78|0;k=1;while(1){o=39-k|0;e=t+3120+(o<<1)|0;n=t+(o*80|0)+78|0;o=r+(o<<1)|0;u=j+(k<<1)|0;s=65575-k|0;l=s&65535;a=i[E>>1]|0;if(!(l<<16>>16)){l=_;s=0}else{b=s+65535&65535;y=b*41|0;g=(ee(k,-40)|0)-y|0;v=0-k|0;y=v-y|0;v=v-b|0;w=k+b|0;p=i[u>>1]|0;h=E;m=_;f=t+((38-k|0)*80|0)+78|0;s=0;d=0;while(1){u=u+2|0;s=(ee(p<<16>>16,a)|0)+s|0;h=h+2|0;p=i[u>>1]|0;d=(ee(p<<16>>16,a)|0)+d|0;R=o;o=o+-2|0;a=i[o>>1]|0;A=i[m>>1]<<1;R=(ee((ee(A,i[R>>1]|0)|0)>>16,(s<<1)+32768>>16)|0)>>>15&65535;i[n>>1]=R;i[e>>1]=R;a=(ee((ee(A,a)|0)>>16,(d<<1)+32768>>16)|0)>>>15&65535;i[e+-2>>1]=a;i[f>>1]=a;l=l+-1<<16>>16;a=i[h>>1]|0;if(!(l<<16>>16))break;else{m=m+-2|0;e=e+-82|0;n=n+-82|0;f=f+-82|0}}u=j+(w+1<<1)|0;l=r+(38-b<<1)|0;o=r+(v+38<<1)|0;e=t+3040+(y+38<<1)|0;n=t+3040+(g+38<<1)|0}R=(ee(i[u>>1]|0,a)|0)+s|0;R=(ee((R<<1)+32768>>16,(ee(i[l>>1]<<1,i[o>>1]|0)|0)>>16)|0)>>>15&65535;i[e>>1]=R;i[n>>1]=R;n=(k<<16)+131072|0;if((n|0)<2621440)k=n>>16;else break}c=S;return}function ut(e,r,t,n,s,a,l){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;var u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0;b=c;c=c+160|0;w=b;if(s<<16>>16>0){m=a&65535;p=0;u=5;do{if((p|0)<40){h=p;d=p&65535;a=0;while(1){if(d<<16>>16<40){d=d<<16>>16;f=0;do{f=(ee(i[e+(d-h<<1)>>1]|0,i[r+(d<<1)>>1]|0)|0)+f|0;d=d+1|0}while((d&65535)<<16>>16!=40)}else f=0;f=f<<1;o[w+(h<<2)>>2]=f;f=Nt(f)|0;a=(f|0)>(a|0)?f:a;f=h+m|0;d=f&65535;if(d<<16>>16>=40)break;else h=f<<16>>16}}else a=0;u=(a>>1)+u|0;p=p+1|0}while((p&65535)<<16>>16!=s<<16>>16)}else u=5;n=((yi(u)|0)&65535)-(n&65535)|0;a=n<<16>>16;f=0-a<<16;u=(f|0)<2031616;f=f>>16;if((n&65535)<<16>>16>0)if(u){u=0;do{n=o[w+(u<<2)>>2]|0;r=n<<a;i[t+(u<<1)>>1]=Oi((r>>a|0)==(n|0)?r:n>>31^2147483647,l)|0;u=u+1|0}while((u|0)!=40);c=b;return}else{u=0;do{n=o[w+(u<<2)>>2]|0;r=n<<a;i[t+(u<<1)>>1]=Oi((r>>a|0)==(n|0)?r:n>>31^2147483647,l)|0;u=u+1|0}while((u|0)!=40);c=b;return}else if(u){u=0;do{i[t+(u<<1)>>1]=Oi(o[w+(u<<2)>>2]>>f,l)|0;u=u+1|0}while((u|0)!=40);c=b;return}else{u=0;do{i[t+(u<<1)>>1]=Oi(0,l)|0;u=u+1|0}while((u|0)!=40);c=b;return}}function ft(e,r,t,n,s){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;var a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0;S=c;c=c+160|0;j=S;k=e+2|0;_=i[e>>1]|0;E=0;s=5;do{g=E;u=0;while(1){h=r+(g<<1)|0;y=40-g|0;a=(y+131071|0)>>>1&65535;f=r+(g+1<<1)|0;l=ee(i[h>>1]<<1,_)|0;if(!(a<<16>>16))a=k;else{v=131111-g+131070&131070;b=g+v|0;w=k;p=e;m=h;while(1){d=m+4|0;h=p+4|0;l=(ee(i[f>>1]<<1,i[w>>1]|0)|0)+l|0;a=a+-1<<16>>16;l=(ee(i[d>>1]<<1,i[h>>1]|0)|0)+l|0;if(!(a<<16>>16))break;else{f=m+6|0;w=p+6|0;p=h;m=d}}f=r+(b+3<<1)|0;a=e+(v+3<<1)|0}if(!(y&1))l=(ee(i[f>>1]<<1,i[a>>1]|0)|0)+l|0;o[j+(g<<2)>>2]=l;l=(l|0)<0?0-l|0:l;u=(l|0)>(u|0)?l:u;l=g+5|0;if((l&65535)<<16>>16<40)g=l<<16>>16;else break}s=(u>>1)+s|0;E=E+1|0}while((E|0)!=5);n=((yi(s)|0)&65535)-(n&65535)|0;l=n<<16>>16;s=0-l<<16;u=s>>16;if((n&65535)<<16>>16>0){a=20;s=j;while(1){j=o[s>>2]|0;n=j<<l;i[t>>1]=(((n>>l|0)==(j|0)?n:j>>31^2147483647)+32768|0)>>>16;j=o[s+4>>2]|0;n=j<<l;i[t+2>>1]=(((n>>l|0)==(j|0)?n:j>>31^2147483647)+32768|0)>>>16;a=a+-1<<16>>16;if(!(a<<16>>16))break;else{t=t+4|0;s=s+8|0}}c=S;return}if((s|0)<2031616){a=20;s=j;while(1){i[t>>1]=((o[s>>2]>>u)+32768|0)>>>16;i[t+2>>1]=((o[s+4>>2]>>u)+32768|0)>>>16;a=a+-1<<16>>16;if(!(a<<16>>16))break;else{t=t+4|0;s=s+8|0}}c=S;return}else{i[t>>1]=0;j=t+4|0;i[t+2>>1]=0;i[j>>1]=0;n=j+4|0;i[j+2>>1]=0;i[n>>1]=0;j=n+4|0;i[n+2>>1]=0;i[j>>1]=0;n=j+4|0;i[j+2>>1]=0;i[n>>1]=0;j=n+4|0;i[n+2>>1]=0;i[j>>1]=0;n=j+4|0;i[j+2>>1]=0;i[n>>1]=0;j=n+4|0;i[n+2>>1]=0;i[j>>1]=0;n=j+4|0;i[j+2>>1]=0;i[n>>1]=0;j=n+4|0;i[n+2>>1]=0;i[j>>1]=0;n=j+4|0;i[j+2>>1]=0;i[n>>1]=0;j=n+4|0;i[n+2>>1]=0;i[j>>1]=0;n=j+4|0;i[j+2>>1]=0;i[n>>1]=0;j=n+4|0;i[n+2>>1]=0;i[j>>1]=0;n=j+4|0;i[j+2>>1]=0;i[n>>1]=0;j=n+4|0;i[n+2>>1]=0;i[j>>1]=0;n=j+4|0;i[j+2>>1]=0;i[n>>1]=0;j=n+4|0;i[n+2>>1]=0;i[j>>1]=0;n=j+4|0;i[j+2>>1]=0;i[n>>1]=0;j=n+4|0;i[n+2>>1]=0;i[j>>1]=0;i[j+2>>1]=0;c=S;return}}function ct(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var i=0,s=0,a=0;a=(Kn(16383,r)|0)<<16>>16;r=ee(a,r<<16>>16)|0;if((r|0)==1073741824){o[n>>2]=1;i=2147483647}else i=r<<1;s=(ee(a,t<<16>>16)|0)>>15;r=i+(s<<1)|0;if((i^s|0)>0&(r^i|0)<0){o[n>>2]=1;r=(i>>>31)+2147483647|0}i=2147483647-r|0;t=i>>16;r=ee(t,a)|0;if((r|0)==1073741824){o[n>>2]=1;s=2147483647}else s=r<<1;a=(ee((i>>>1)-(t<<15)<<16>>16,a)|0)>>15;r=s+(a<<1)|0;if((s^a|0)>0&(r^s|0)<0){o[n>>2]=1;r=(s>>>31)+2147483647|0}s=r>>16;a=e>>16;t=ee(s,a)|0;t=(t|0)==1073741824?2147483647:t<<1;i=(ee((r>>>1)-(s<<15)<<16>>16,a)|0)>>15;n=(i<<1)+t|0;n=(i^t|0)>0&(n^t|0)<0?(t>>>31)+2147483647|0:n;a=(ee(s,(e>>>1)-(a<<15)<<16>>16)|0)>>15;e=n+(a<<1)|0;e=(n^a|0)>0&(e^n|0)<0?(n>>>31)+2147483647|0:e;n=e<<2;return((n>>2|0)==(e|0)?n:e>>31^2147483647)|0}function dt(e,r){e=e|0;r=r|0;var t=0,n=0,s=0,a=0;if(!e){a=-1;return a|0}o[e>>2]=0;t=Bi(192)|0;if(!t){a=-1;return a|0}n=t+176|0;i[n>>1]=0;i[n+2>>1]=0;i[n+4>>1]=0;i[n+6>>1]=0;i[n+8>>1]=0;i[n+10>>1]=0;n=t;s=r;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));n=t+20|0;s=r;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));n=t+40|0;s=r;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));n=t+60|0;s=r;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));n=t+80|0;s=r;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));n=t+100|0;s=r;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));n=t+120|0;s=r;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));n=t+140|0;s=r;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));n=t+160|0;a=n+20|0;do{i[n>>1]=0;n=n+2|0}while((n|0)<(a|0));i[t+188>>1]=7;i[t+190>>1]=32767;o[e>>2]=t;a=0;return a|0}function ht(e,r){e=e|0;r=r|0;var t=0,n=0,o=0;if(!e){o=-1;return o|0}t=e+176|0;i[t>>1]=0;i[t+2>>1]=0;i[t+4>>1]=0;i[t+6>>1]=0;i[t+8>>1]=0;i[t+10>>1]=0;t=e;n=r;o=t+20|0;do{i[t>>1]=i[n>>1]|0;t=t+2|0;n=n+2|0}while((t|0)<(o|0));t=e+20|0;n=r;o=t+20|0;do{i[t>>1]=i[n>>1]|0;t=t+2|0;n=n+2|0}while((t|0)<(o|0));t=e+40|0;n=r;o=t+20|0;do{i[t>>1]=i[n>>1]|0;t=t+2|0;n=n+2|0}while((t|0)<(o|0));t=e+60|0;n=r;o=t+20|0;do{i[t>>1]=i[n>>1]|0;t=t+2|0;n=n+2|0}while((t|0)<(o|0));t=e+80|0;n=r;o=t+20|0;do{i[t>>1]=i[n>>1]|0;t=t+2|0;n=n+2|0}while((t|0)<(o|0));t=e+100|0;n=r;o=t+20|0;do{i[t>>1]=i[n>>1]|0;t=t+2|0;n=n+2|0}while((t|0)<(o|0));t=e+120|0;n=r;o=t+20|0;do{i[t>>1]=i[n>>1]|0;t=t+2|0;n=n+2|0}while((t|0)<(o|0));t=e+140|0;n=r;o=t+20|0;do{i[t>>1]=i[n>>1]|0;t=t+2|0;n=n+2|0}while((t|0)<(o|0));t=e+160|0;o=t+20|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(o|0));i[e+188>>1]=7;i[e+190>>1]=32767;o=1;return o|0}function mt(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function pt(e,r,t,n,s,a){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;var l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0;M=c;c=c+112|0;S=M+80|0;A=M+60|0;R=M+40|0;j=M;if(r<<16>>16==0?(l=e+178|0,(i[l>>1]|0)!=0):0){R=e+180|0;a=e+182|0;t=l;R=i[R>>1]|0;n=o[s>>2]|0;A=n+2|0;i[n>>1]=R;a=i[a>>1]|0;R=n+4|0;i[A>>1]=a;A=e+184|0;A=i[A>>1]|0;a=n+6|0;i[R>>1]=A;R=e+186|0;R=i[R>>1]|0;e=n+8|0;i[a>>1]=R;t=i[t>>1]|0;n=n+10|0;o[s>>2]=n;i[e>>1]=t;c=M;return}v=j+36|0;y=j+32|0;g=j+28|0;k=j+24|0;_=j+20|0;E=j+16|0;p=j+12|0;w=j+8|0;b=j+4|0;r=j;l=r+40|0;do{o[r>>2]=0;r=r+4|0}while((r|0)<(l|0));m=7;r=0;while(1){h=i[e+160+(m<<1)>>1]|0;l=h<<16>>16;if(h<<16>>16<0)l=~((l^-4)>>2);else l=l>>>2;r=Gn(r,l&65535,a)|0;f=m*10|0;h=9;while(1){d=j+(h<<2)|0;u=o[d>>2]|0;D=i[e+(h+f<<1)>>1]|0;l=D+u|0;if((D^u|0)>-1&(l^u|0)<0){o[a>>2]=1;l=(u>>>31)+2147483647|0}o[d>>2]=l;if((h|0)>0)h=h+-1|0;else break}if((m|0)>0)m=m+-1|0;else break}l=r<<16>>16;if(r<<16>>16<0)l=~((l^-2)>>1);else l=l>>>1;i[A+18>>1]=(o[v>>2]|0)>>>3;i[A+16>>1]=(o[y>>2]|0)>>>3;i[A+14>>1]=(o[g>>2]|0)>>>3;i[A+12>>1]=(o[k>>2]|0)>>>3;i[A+10>>1]=(o[_>>2]|0)>>>3;i[A+8>>1]=(o[E>>2]|0)>>>3;i[A+6>>1]=(o[p>>2]|0)>>>3;i[A+4>>1]=(o[w>>2]|0)>>>3;i[A+2>>1]=(o[b>>2]|0)>>>3;i[A>>1]=(o[j>>2]|0)>>>3;r=e+178|0;l=(((l<<16)+167772160|0)>>>16)+128|0;i[r>>1]=l;l=l<<16;if((l|0)<0)l=~((l>>16^-256)>>8);else l=l>>24;i[r>>1]=l;if((l|0)<=63){if((l|0)<0){i[r>>1]=0;l=0}}else{i[r>>1]=63;l=63}D=xi(l<<8&65535,11560,a)|0;D=D<<16>>16>0?0:D<<16>>16<-14436?-14436:D;i[n>>1]=D;i[n+2>>1]=D;i[n+4>>1]=D;i[n+6>>1]=D;D=((D<<16>>16)*5443|0)>>>15&65535;i[n+8>>1]=D;i[n+10>>1]=D;i[n+12>>1]=D;i[n+14>>1]=D;bi(A,S,10,a);Pi(S,205,10,a);wi(S,A,10,a);n=e+182|0;D=e+180|0;Ei(t,8,A,R,n,D,a);a=n;n=r;D=i[D>>1]|0;t=o[s>>2]|0;R=t+2|0;i[t>>1]=D;a=i[a>>1]|0;D=t+4|0;i[R>>1]=a;R=e+184|0;R=i[R>>1]|0;a=t+6|0;i[D>>1]=R;e=e+186|0;e=i[e>>1]|0;D=t+8|0;i[a>>1]=e;e=i[n>>1]|0;t=t+10|0;o[s>>2]=t;i[D>>1]=e;c=M;return}function wt(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0,l=0,u=0,f=0,d=0,h=0;h=c;c=c+16|0;u=h+2|0;d=h;f=e+176|0;l=(a[f>>1]|0)+1|0;l=(l&65535|0)==8?0:l&65535;i[f>>1]=l;l=e+((l<<16>>16)*10<<1)|0;s=l+20|0;do{i[l>>1]=i[r>>1]|0;l=l+2|0;r=r+2|0}while((l|0)<(s|0));r=0;s=160;while(1){l=i[t>>1]|0;r=(ee(l<<1,l)|0)+r|0;if((r|0)<0){r=2147483647;break}s=s+-1<<16>>16;if(!(s<<16>>16))break;else t=t+2|0}ai(r,u,d,n);r=i[u>>1]|0;u=r<<16>>16;t=u<<10;if((t|0)!=(u<<26>>16|0)){o[n>>2]=1;t=r<<16>>16>0?32767:-32768}i[e+160+(i[f>>1]<<1)>>1]=(((i[d>>1]|0)>>>5)+t<<16)+-558432256>>17;c=h;return}function bt(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0,a=0,l=0;a=e+190|0;l=Gn(i[a>>1]|0,1,n)|0;i[a>>1]=l;s=e+188|0;do{if(!(r<<16>>16)){e=i[s>>1]|0;if(!(e<<16>>16)){i[a>>1]=0;o[t>>2]=8;e=1;break}a=(e&65535)+65535&65535;i[s>>1]=a;if((Gn(l,a,n)|0)<<16>>16<30){o[t>>2]=8;e=0}else e=0}else{i[s>>1]=7;e=0}}while(0);return e|0}function vt(e,r,t,n,i,o,s,a){e=e|0;r=r|0;t=t|0;n=n|0;i=i|0;o=o|0;s=s|0;a=a|0;if(!(o<<16>>16)){o=e<<16>>16;if(((o<<16)+-5570560|0)<65536){r=(o*3|0)+-58+(r<<16>>16)|0;r=r&65535;return r|0}else{r=o+112|0;r=r&65535;return r|0}}if(!(s<<16>>16)){a=(e&65535)-(n&65535)<<16;r=(r<<16>>16)+2+(a>>15)+(a>>16)|0;r=r&65535;return r|0}n=n<<16>>16;n=(((t&65535)-n<<16)+-327680|0)>0?n+5&65535:t;i=i<<16>>16;t=e<<16>>16;n=(((i-(n&65535)<<16)+-262144|0)>0?i+65532&65535:n)<<16>>16;i=n*196608|0;e=i+-393216>>16;o=((r&65535)<<16)+(t*196608|0)>>16;if(!(e-o&32768)){r=t+5-n|0;r=r&65535;return r|0}if((i+196608>>16|0)>(o|0)){r=o+3-e|0;r=r&65535;return r|0}else{r=t+11-n|0;r=r&65535;return r|0}return 0}function yt(e,r,t,n,i){e=e|0;r=r|0;t=t|0;n=n|0;i=i|0;i=e<<16>>16;do{if(!(n<<16>>16))if(e<<16>>16<95){i=((i*393216|0)+-6881280>>16)+(r<<16>>16)|0;break}else{i=i+368|0;break}else i=((((i-(t&65535)|0)*393216|0)+196608|0)>>>16)+(r&65535)|0}while(0);return i&65535|0}function gt(e,r,t,s){e=e|0;r=r|0;t=t|0;s=s|0;var l=0,u=0,f=0,c=0,d=0,h=0;l=o[s+96>>2]|0;if(e>>>0<8){d=(o[s+100>>2]|0)+(e<<2)|0;c=o[d>>2]|0;n[t>>0]=i[r+(i[c>>1]<<1)>>1]<<4|e|i[r+(i[c+2>>1]<<1)>>1]<<5|i[r+(i[c+4>>1]<<1)>>1]<<6|i[r+(i[c+6>>1]<<1)>>1]<<7;c=l+(e<<1)|0;s=i[c>>1]|0;if((s+-7|0)>4){l=4;f=4;e=1;while(1){h=i[r+(i[(o[d>>2]|0)+(l<<1)>>1]<<1)>>1]|0;s=t+(e<<16>>16)|0;n[s>>0]=h;h=a[r+(i[(o[d>>2]|0)+((f|1)<<16>>16<<1)>>1]<<1)>>1]<<1|h&65535;n[s>>0]=h;h=a[r+(i[(o[d>>2]|0)+((f|2)<<16>>16<<1)>>1]<<1)>>1]<<2|h;n[s>>0]=h;h=a[r+(i[(o[d>>2]|0)+((f|3)<<16>>16<<1)>>1]<<1)>>1]<<3|h;n[s>>0]=h;h=a[r+(i[(o[d>>2]|0)+(f+4<<16>>16<<16>>16<<1)>>1]<<1)>>1]<<4|h;n[s>>0]=h;h=a[r+(i[(o[d>>2]|0)+(f+5<<16>>16<<16>>16<<1)>>1]<<1)>>1]<<5|h;n[s>>0]=h;h=a[r+(i[(o[d>>2]|0)+(f+6<<16>>16<<16>>16<<1)>>1]<<1)>>1]<<6|h;n[s>>0]=h;u=f+8<<16>>16;e=e+1<<16>>16;n[s>>0]=a[r+(i[(o[d>>2]|0)+(f+7<<16>>16<<16>>16<<1)>>1]<<1)>>1]<<7|h;l=u<<16>>16;s=i[c>>1]|0;if((l|0)>=(s+-7|0))break;else f=u}}else{u=4;e=1}c=s+4&7;if(!c)return;l=t+(e<<16>>16)|0;n[l>>0]=0;s=0;f=0;e=0;while(1){f=(a[r+(i[(o[d>>2]|0)+(u<<16>>16<<1)>>1]<<1)>>1]&255)<<s|f&255;n[l>>0]=f;e=e+1<<16>>16;s=e<<16>>16;if((s|0)>=(c|0))break;else u=u+1<<16>>16}return}if((e|0)==15){n[t>>0]=15;return}n[t>>0]=i[r>>1]<<4|e|i[r+2>>1]<<5|i[r+4>>1]<<6|i[r+6>>1]<<7;s=l+(e<<1)|0;e=i[s>>1]|0;l=((e&65535)<<16)+262144>>16;d=l&-8;f=(d+524281|0)>>>3&65535;if(f<<16>>16>0){l=((l&-8)+524281|0)>>>3;c=((l<<3)+524280&524280)+12|0;u=1;e=r+8|0;while(1){n[t+(u<<16>>16)>>0]=a[e+2>>1]<<1|a[e>>1]|a[e+4>>1]<<2|a[e+6>>1]<<3|a[e+8>>1]<<4|a[e+10>>1]<<5|a[e+12>>1]<<6|a[e+14>>1]<<7;if(f<<16>>16>1){f=f+-1<<16>>16;u=u+1<<16>>16;e=e+16|0}else break}e=i[s>>1]|0;u=(l<<16)+65536>>16}else{c=4;u=1}e=(0-d|4)+(e&65535)<<16;f=e>>16;if(!f)return;u=t+u|0;n[u>>0]=0;if((e|0)>0){e=0;l=0;s=0}else return;do{l=l&255|i[r+(c+e<<1)>>1]<<e;n[u>>0]=l;s=s+1<<16>>16;e=s<<16>>16}while((e|0)<(f|0));return}function kt(e,r,t,s){e=e|0;r=r|0;t=t|0;s=s|0;var l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0;m=o[s+100>>2]|0;h=o[s+96>>2]|0;n[t>>0]=e&15;h=h+(e<<1)|0;l=i[h>>1]|0;if(e>>>0>=8){c=((l&65535)<<16)+-458752|0;if((c|0)>0){d=1;f=r;while(1){r=f+16|0;s=d+1<<16>>16;n[t+(d<<16>>16)>>0]=a[f+14>>1]|a[f+12>>1]<<1|((a[f+2>>1]<<6|a[f>>1]<<7|a[f+4>>1]<<5|a[f+6>>1]<<4)&240|a[f+8>>1]<<3|a[f+10>>1]<<2)&252;c=c+-524288&-65536;if((c|0)<=0)break;else{d=s;f=r}}l=i[h>>1]|0}else s=1;d=l&7;l=t+(s<<16>>16)|0;n[l>>0]=0;if(!d)return;else{u=0;f=0;c=0;s=r}while(1){f=f&255|i[s>>1]<<7-u;n[l>>0]=f;c=c+1<<16>>16;u=c<<16>>16;if((u|0)>=(d|0))break;else s=s+2|0}return}f=l<<16>>16;if(l<<16>>16>7){l=m+(e<<2)|0;s=0;d=0;u=1;while(1){p=a[r+(i[(o[l>>2]|0)+(s<<1)>>1]<<1)>>1]<<7;f=t+(u<<16>>16)|0;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|1)<<16>>16<<1)>>1]<<1)>>1]<<6|p;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|2)<<16>>16<<1)>>1]<<1)>>1]<<5|p;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|3)<<16>>16<<1)>>1]<<1)>>1]<<4|p;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|4)<<16>>16<<1)>>1]<<1)>>1]<<3|p&240;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|5)<<16>>16<<1)>>1]<<1)>>1]<<2|p;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|6)<<16>>16<<1)>>1]<<1)>>1]<<1|p;n[f>>0]=p;c=d+8<<16>>16;u=u+1<<16>>16;n[f>>0]=p&254|a[r+(i[(o[l>>2]|0)+((d|7)<<16>>16<<1)>>1]<<1)>>1];s=c<<16>>16;f=i[h>>1]|0;if((s|0)>=(f+-7|0))break;else d=c}}else{c=0;u=1}h=f&7;d=t+(u<<16>>16)|0;n[d>>0]=0;if(!h)return;u=m+(e<<2)|0;l=0;s=0;f=0;while(1){s=(a[r+(i[(o[u>>2]|0)+(c<<16>>16<<1)>>1]<<1)>>1]&255)<<7-l|s&255;n[d>>0]=s;f=f+1<<16>>16;l=f<<16>>16;if((l|0)>=(h|0))break;else c=c+1<<16>>16}return}function _t(e,r,t,s){e=e|0;r=r|0;t=t|0;s=s|0;var l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0;m=o[s+100>>2]|0;h=o[s+96>>2]|0;n[t>>0]=e<<3;h=h+(e<<1)|0;l=i[h>>1]|0;if(e>>>0>=8){c=((l&65535)<<16)+-458752|0;if((c|0)>0){d=1;f=r;while(1){r=f+16|0;s=d+1<<16>>16;n[t+(d<<16>>16)>>0]=a[f+14>>1]|a[f+12>>1]<<1|((a[f+2>>1]<<6|a[f>>1]<<7|a[f+4>>1]<<5|a[f+6>>1]<<4)&240|a[f+8>>1]<<3|a[f+10>>1]<<2)&252;c=c+-524288&-65536;if((c|0)<=0)break;else{d=s;f=r}}l=i[h>>1]|0}else s=1;d=l&7;l=t+(s<<16>>16)|0;n[l>>0]=0;if(!d)return;else{u=0;f=0;c=0;s=r}while(1){f=f&255|i[s>>1]<<7-u;n[l>>0]=f;c=c+1<<16>>16;u=c<<16>>16;if((u|0)>=(d|0))break;else s=s+2|0}return}f=l<<16>>16;if(l<<16>>16>7){l=m+(e<<2)|0;s=0;d=0;u=1;while(1){p=a[r+(i[(o[l>>2]|0)+(s<<1)>>1]<<1)>>1]<<7;f=t+(u<<16>>16)|0;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|1)<<16>>16<<1)>>1]<<1)>>1]<<6|p;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|2)<<16>>16<<1)>>1]<<1)>>1]<<5|p;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|3)<<16>>16<<1)>>1]<<1)>>1]<<4|p;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|4)<<16>>16<<1)>>1]<<1)>>1]<<3|p&240;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|5)<<16>>16<<1)>>1]<<1)>>1]<<2|p;n[f>>0]=p;p=a[r+(i[(o[l>>2]|0)+((d|6)<<16>>16<<1)>>1]<<1)>>1]<<1|p;n[f>>0]=p;c=d+8<<16>>16;u=u+1<<16>>16;n[f>>0]=p&254|a[r+(i[(o[l>>2]|0)+((d|7)<<16>>16<<1)>>1]<<1)>>1];s=c<<16>>16;f=i[h>>1]|0;if((s|0)>=(f+-7|0))break;else d=c}}else{c=0;u=1}h=f&7;d=t+(u<<16>>16)|0;n[d>>0]=0;if(!h)return;u=m+(e<<2)|0;l=0;s=0;f=0;while(1){s=(a[r+(i[(o[u>>2]|0)+(c<<16>>16<<1)>>1]<<1)>>1]&255)<<7-l|s&255;n[d>>0]=s;f=f+1<<16>>16;l=f<<16>>16;if((l|0)>=(h|0))break;else c=c+1<<16>>16}return}function Et(e){e=e|0;var r=0;if(!e){e=-1;return e|0}o[e>>2]=0;r=Bi(16)|0;if(!r){e=-1;return e|0}i[r>>1]=0;i[r+2>>1]=0;i[r+4>>1]=0;i[r+6>>1]=0;i[r+8>>1]=0;i[r+10>>1]=0;i[r+12>>1]=0;i[r+14>>1]=0;o[e>>2]=r;e=0;return e|0}function jt(e){e=e|0;if(!e){e=-1;return e|0}i[e>>1]=0;i[e+2>>1]=0;i[e+4>>1]=0;i[e+6>>1]=0;i[e+8>>1]=0;i[e+10>>1]=0;i[e+12>>1]=0;i[e+14>>1]=0;e=0;return e|0}function St(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function At(e,r,t,n,s){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;var a=0,l=0,u=0,f=0,c=0;u=r<<16>>16<2722?0:r<<16>>16<5444?1:2;l=Li(t,1,s)|0;c=e+4|0;if(!(t<<16>>16>200?l<<16>>16>(i[c>>1]|0):0)){l=i[e>>1]|0;if(l<<16>>16){a=l+-1<<16>>16;i[e>>1]=a;a=a<<16>>16!=0;f=5}}else{i[e>>1]=8;a=1;f=5}if((f|0)==5)if((u&65535)<2&a)u=(u&65535)+1&65535;f=e+6|0;i[f>>1]=r;a=ri(f,5)|0;if(!(u<<16>>16!=0|a<<16>>16>5443))if(a<<16>>16<0)a=16384;else{a=a<<16>>16;a=(((a<<18>>18|0)==(a|0)?a<<2:a>>>15^32767)<<16>>16)*24660>>15;if((a|0)>32767){o[s>>2]=1;a=32767}a=16384-a&65535}else a=0;l=e+2|0;if(!(i[l>>1]|0))a=Ci(a,1,s)|0;i[n>>1]=a;i[l>>1]=a;i[c>>1]=t;n=e+12|0;i[e+14>>1]=i[n>>1]|0;t=e+10|0;i[n>>1]=i[t>>1]|0;e=e+8|0;i[t>>1]=i[e>>1]|0;i[e>>1]=i[f>>1]|0;return}function Rt(e){e=e|0;var r=0,t=0,n=0,s=0,a=0,l=0;if(!e){e=-1;return e|0}o[e>>2]=0;r=Bi(68)|0;n=r;if(!r){e=-1;return e|0}o[r+28>>2]=0;s=r+64|0;o[s>>2]=0;a=r+32|0;if(((Jn(a)|0)<<16>>16==0?(l=r+48|0,(Jn(l)|0)<<16>>16==0):0)?(Et(s)|0)<<16>>16==0:0){t=r+32|0;do{i[r>>1]=0;r=r+2|0}while((r|0)<(t|0));Jn(a)|0;Jn(l)|0;jt(o[s>>2]|0)|0;o[e>>2]=n;e=0;return e|0}St(s);Ui(r);e=-1;return e|0}function Mt(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;St(r+64|0);Ui(o[e>>2]|0);o[e>>2]=0;return}function Dt(e){e=e|0;var r=0,t=0,n=0;if(!e){n=-1;return n|0}r=e+32|0;t=e;n=t+32|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));Jn(r)|0;Jn(e+48|0)|0;jt(o[e+64>>2]|0)|0;n=0;return n|0}function Pt(e,r,t,n,s,l,u,f,d,h,m,p,w,b,v,y,g,k,_){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;p=p|0;w=w|0;b=b|0;v=v|0;y=y|0;g=g|0;k=k|0;_=_|0;var E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0;C=c;c=c+48|0;j=C+34|0;A=C+32|0;M=C+30|0;R=C+28|0;S=C+18|0;E=C+8|0;D=C+6|0;P=C+4|0;T=C+2|0;O=C;if(r){m=e+32|0;Zn(m,r,s,j,A,D,P,_);do{if((r|0)!=7){Jr(r,l,u,f,d,h,S,E,O,T,_);if((r|0)==5){pn(o[e+64>>2]|0,t,n,s,S,E,i[D>>1]|0,i[P>>1]|0,i[j>>1]|0,i[A>>1]|0,40,i[O>>1]|0,i[T>>1]|0,p,v,y,M,R,g,k,_);break}else{e=vn(r,i[j>>1]|0,i[A>>1]|0,S,E,p,v,y,M,R,k,_)|0;l=o[g>>2]|0;o[g>>2]=l+2;i[l>>1]=e;break}}else{i[y>>1]=Tt(u,d,_)|0;e=wn(7,i[j>>1]|0,i[A>>1]|0,y,M,R,o[k+68>>2]|0,_)|0;l=o[g>>2]|0;o[g>>2]=l+2;i[l>>1]=e}}while(0);$n(m,i[M>>1]|0,i[R>>1]|0);c=C;return}if(!(m<<16>>16)){Zn(e+48|0,0,s,j,A,D,P,_);Jr(0,l,u,f,d,h,S,E,O,T,_);Zr(l,D,P,_);l=hn(e+32|0,i[e>>1]|0,i[e+2>>1]|0,e+8|0,e+18|0,i[e+4>>1]|0,i[e+6>>1]|0,s,i[j>>1]|0,i[A>>1]|0,E,S,i[D>>1]|0,i[P>>1]|0,p,w,b,v,y,_)|0;i[o[e+28>>2]>>1]=l;c=C;return}m=o[g>>2]|0;o[g>>2]=m+2;o[e+28>>2]=m;m=e+48|0;t=e+32|0;w=t;w=a[w>>1]|a[w+2>>1]<<16;t=t+4|0;t=a[t>>1]|a[t+2>>1]<<16;g=m;b=g;i[b>>1]=w;i[b+2>>1]=w>>>16;g=g+4|0;i[g>>1]=t;i[g+2>>1]=t>>>16;g=e+40|0;t=g;t=a[t>>1]|a[t+2>>1]<<16;g=g+4|0;g=a[g>>1]|a[g+2>>1]<<16;b=e+56|0;w=b;i[w>>1]=t;i[w+2>>1]=t>>>16;b=b+4|0;i[b>>1]=g;i[b+2>>1]=g>>>16;b=e+2|0;Zn(m,0,s,e,b,D,P,_);Jr(0,l,u,f,d,h,e+18|0,e+8|0,O,T,_);f=(a[T>>1]|0)+1|0;g=i[O>>1]|0;w=f<<16>>16;if((f&65535)<<16>>16<0){k=0-w<<16;if((k|0)<983040)k=g<<16>>16>>(k>>16)&65535;else k=0}else{g=g<<16>>16;k=g<<w;if((k<<16>>16>>w|0)==(g|0))k=k&65535;else k=(g>>>15^32767)&65535}i[y>>1]=k;Zr(l,e+4|0,e+6|0,_);dn(m,i[e>>1]|0,i[b>>1]|0,i[T>>1]|0,i[O>>1]|0,_);c=C;return}function Tt(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,o=0,s=0;o=10;t=e;n=r;e=0;while(1){e=(ee(i[n>>1]>>1,i[t>>1]|0)|0)+e|0;e=e+(ee(i[n+2>>1]>>1,i[t+2>>1]|0)|0)|0;e=e+(ee(i[n+4>>1]>>1,i[t+4>>1]|0)|0)|0;e=e+(ee(i[n+6>>1]>>1,i[t+6>>1]|0)|0)|0;o=o+-1<<16>>16;if(!(o<<16>>16))break;else{t=t+8|0;n=n+8|0}}t=e<<1;o=yi(t|1)|0;s=o<<16>>16;t=(o<<16>>16<17?t>>17-s:t<<s+-17)&65535;if(t<<16>>16<1){r=0;return r|0}else{o=20;n=r;e=0}while(1){r=i[n>>1]>>1;r=((ee(r,r)|0)>>>2)+e|0;e=i[n+2>>1]>>1;e=r+((ee(e,e)|0)>>>2)|0;o=o+-1<<16>>16;if(!(o<<16>>16))break;else n=n+4|0}e=e<<3;o=yi(e)|0;r=o<<16>>16;t=Kn(t,(o<<16>>16<16?e>>16-r:e<<r+-16)&65535)|0;r=(s<<16)+327680-(r<<16)|0;e=r>>16;if((r|0)>65536)e=t<<16>>16>>e+-1;else e=t<<16>>16<<1-e;r=e&65535;return r|0}function Ot(e,r,t,n,s,a){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;var l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0,b=0;o[a>>2]=0;d=s<<16>>16;f=d>>>2&65535;m=f<<16>>16==0;if(m)u=0;else{c=f;l=t;u=0;while(1){p=i[l>>1]|0;p=(ee(p,p)|0)+u|0;u=i[l+2>>1]|0;u=p+(ee(u,u)|0)|0;p=i[l+4>>1]|0;p=u+(ee(p,p)|0)|0;u=i[l+6>>1]|0;u=p+(ee(u,u)|0)|0;c=c+-1<<16>>16;if(!(c<<16>>16))break;else l=l+8|0}}if(!((u>>>31^1)&(u|0)<1073741824)){u=d>>>1&65535;if(!(u<<16>>16))u=1;else{l=u;c=t;u=0;while(1){p=i[c>>1]>>2;p=(ee(p,p)|0)+u|0;u=i[c+2>>1]>>2;u=p+(ee(u,u)|0)|0;l=l+-1<<16>>16;if(!(l<<16>>16))break;else c=c+4|0}u=u<<1|1}p=(yi(u)|0)<<16>>16;h=p+65532&65535;p=Oi(u<<p,a)|0}else{d=u<<1|1;p=yi(d)|0;h=p;p=Oi(d<<(p<<16>>16),a)|0}o[a>>2]=0;do{if(!(s<<16>>16)){u=1;w=14}else{d=s;c=r;u=t;s=0;while(1){b=ee(i[u>>1]|0,i[c>>1]|0)|0;l=b+s|0;if((b^s|0)>0&(l^s|0)<0)break;d=d+-1<<16>>16;if(!(d<<16>>16)){w=13;break}else{c=c+2|0;u=u+2|0;s=l}}if((w|0)==13){u=l<<1|1;w=14;break}o[a>>2]=1;if(m)u=1;else{u=r;l=0;while(1){l=(ee(i[t>>1]>>2,i[u>>1]|0)|0)+l|0;l=l+(ee(i[t+2>>1]>>2,i[u+2>>1]|0)|0)|0;l=l+(ee(i[t+4>>1]>>2,i[u+4>>1]|0)|0)|0;l=l+(ee(i[t+6>>1]>>2,i[u+6>>1]|0)|0)|0;f=f+-1<<16>>16;if(!(f<<16>>16))break;else{u=u+8|0;t=t+8|0}}u=l<<1|1}t=(yi(u)|0)<<16>>16;l=t+65532&65535;t=Oi(u<<t,a)|0}}while(0);if((w|0)==14){t=yi(u)|0;l=t;t=Oi(u<<(t<<16>>16),a)|0}i[n>>1]=p;u=h<<16>>16;i[n+2>>1]=15-u;i[n+4>>1]=t;l=l<<16>>16;i[n+6>>1]=15-l;if(t<<16>>16<4){b=0;return b|0}l=Ci(Kn(t<<16>>16>>>1&65535,p)|0,l-u&65535,a)|0;l=l<<16>>16>19661?19661:l;if((e|0)!=7){b=l;return b|0}b=l&65532;return b|0}function Ct(e,r,t,n,s,a,l){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;var u=0,f=0,c=0,d=0,h=0,m=0;f=(n&65535)+65535&65535;if(f<<16>>16>s<<16>>16){h=n+-1<<16>>16<<16>>16;n=-2147483648;while(1){c=o[e+(0-h<<2)>>2]|0;u=c<<1;c=(u>>1|0)==(c|0)?u:c>>31^2147483647;u=o[e+(~h<<2)>>2]|0;d=c-u|0;if(((d^c)&(c^u)|0)<0){o[l>>2]=1;d=(c>>>31)+2147483647|0}c=o[e+(1-h<<2)>>2]|0;u=d-c|0;if(((u^d)&(c^d)|0)<0){o[l>>2]=1;u=(d>>>31)+2147483647|0}d=Nt(u)|0;n=(d|0)<(n|0)?n:d;f=f+-1<<16>>16;if(f<<16>>16<=s<<16>>16){s=n;break}else h=h+-1|0}}else s=-2147483648;e=t<<16>>16>0;if(e){n=0;u=r;f=0;while(1){d=i[u>>1]|0;d=ee(d,d)|0;if((d|0)!=1073741824){c=(d<<1)+f|0;if((d^f|0)>0&(c^f|0)<0){o[l>>2]=1;f=(f>>>31)+2147483647|0}else f=c}else{o[l>>2]=1;f=2147483647}n=n+1<<16>>16;if(n<<16>>16>=t<<16>>16)break;else u=u+2|0}if(e){e=0;h=r;n=r+-2|0;u=0;while(1){d=ee(i[n>>1]|0,i[h>>1]|0)|0;if((d|0)!=1073741824){c=(d<<1)+u|0;if((d^u|0)>0&(c^u|0)<0){o[l>>2]=1;u=(u>>>31)+2147483647|0}else u=c}else{o[l>>2]=1;u=2147483647}e=e+1<<16>>16;if(e<<16>>16>=t<<16>>16)break;else{h=h+2|0;n=n+2|0}}}else u=0}else{f=0;u=0}n=f<<1;n=(n>>1|0)==(f|0)?n:f>>31^2147483647;t=u<<1;t=(t>>1|0)==(u|0)?t:u>>31^2147483647;f=n-t|0;if(((f^n)&(t^n)|0)<0){o[l>>2]=1;f=(n>>>31)+2147483647|0}e=Nt(f)|0;h=((yi(s)|0)&65535)+65535|0;f=h<<16>>16;if((h&65535)<<16>>16>0){n=s<<f;if((n>>f|0)!=(s|0))n=s>>31^2147483647}else{f=0-f<<16;if((f|0)<2031616)n=s>>(f>>16);else n=0}d=yi(e)|0;u=d<<16>>16;if(d<<16>>16>0){f=e<<u;if((f>>u|0)==(e|0))m=33;else{f=e>>31^2147483647;m=33}}else{f=0-u<<16;if((f|0)<2031616){f=e>>(f>>16);m=33}else c=0}if((m|0)==33)if(f>>>0>65535)c=Kn(n>>>16&65535,f>>>16&65535)|0;else c=0;f=d&65535;m=(h&65535)-f|0;n=m&65535;if(!(m&32768)){l=Ci(c,n,l)|0;i[a>>1]=l;return 0}if(n<<16>>16!=-32768){l=f-h|0;u=l<<16>>16;if((l&65535)<<16>>16<0){u=0-u<<16;if((u|0)>=983040){l=0;i[a>>1]=l;return 0}l=c<<16>>16>>(u>>16)&65535;i[a>>1]=l;return 0}}else u=32767;n=c<<16>>16;f=n<<u;if((f<<16>>16>>u|0)==(n|0)){l=f&65535;i[a>>1]=l;return 0}l=(n>>>15^32767)&65535;i[a>>1]=l;return 0}function Lt(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;if(t<<16>>16)r=r<<16>>16<<1&65535;if(r<<16>>16<0){e=e+-2|0;r=(r&65535)+6&65535}t=r<<16>>16;n=6-t<<16>>16;r=(ee(i[3468+(t<<1)>>1]|0,i[e>>1]|0)|0)+16384|0;r=r+(ee(i[3468+(n<<1)>>1]|0,i[e+2>>1]|0)|0)|0;r=r+(ee(i[3468+(t+6<<1)>>1]|0,i[e+-2>>1]|0)|0)|0;r=r+(ee(i[3468+(n+6<<1)>>1]|0,i[e+4>>1]|0)|0)|0;r=(ee(i[3468+(t+12<<1)>>1]|0,i[e+-4>>1]|0)|0)+r|0;r=r+(ee(i[3468+(n+12<<1)>>1]|0,i[e+6>>1]|0)|0)|0;t=r+(ee(i[3468+(t+18<<1)>>1]|0,i[e+-6>>1]|0)|0)|0;return(t+(ee(i[3468+(n+18<<1)>>1]|0,i[e+8>>1]|0)|0)|0)>>>15&65535|0}function Nt(e){e=e|0;e=e-(e>>>31)|0;return e>>31^e|0}function xt(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0,u=0;if(!(e<<16>>16))return;else{o=3518;s=3538;n=t}while(1){n=n+2|0;r=r+2|0;u=i[r>>1]|0;l=i[o>>1]|0;t=ee(l,u)|0;t=(t|0)==1073741824?2147483647:t<<1;u=(ee(i[s>>1]|0,u)|0)>>15;a=(u<<1)+t|0;a=(t^u|0)>0&(a^t|0)<0?(t>>>31)+2147483647|0:a;l=(ee(l,i[n>>1]|0)|0)>>15;t=a+(l<<1)|0;t=(a^l|0)>0&(t^a|0)<0?(a>>>31)+2147483647|0:t;i[r>>1]=t>>>16;i[n>>1]=(t>>>1)-(t>>16<<15);e=e+-1<<16>>16;if(!(e<<16>>16))break;else{o=o+2|0;s=s+2|0}}return}function Ft(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,i=0;n=e&65535;i=n<<16;r=r<<16>>16;e=(r<<1)+i|0;if(!((r^i|0)>0&(e^i|0)<0)){i=e;return i|0}o[t>>2]=1;i=(n>>>15)+2147483647|0;return i|0}function It(e){e=e|0;var r=0,t=0,n=0;if(!e){n=-1;return n|0}o[e>>2]=0;r=Bi(22)|0;if(!r){n=-1;return n|0}i[r>>1]=4096;t=r+2|0;n=t+20|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));o[e>>2]=r;n=0;return n|0}function Bt(e){e=e|0;var r=0;if(!e){r=-1;return r|0}i[e>>1]=4096;e=e+2|0;r=e+20|0;do{i[e>>1]=0;e=e+2|0}while((e|0)<(r|0));r=0;return r|0}function Ut(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function zt(e,r,t,n,o,s){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;var l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0;x=c;c=c+96|0;L=x+66|0;N=x+44|0;C=x+22|0;u=x;D=r+2|0;O=t+2|0;T=(i[O>>1]<<1)+(a[D>>1]<<16)|0;l=Nt(T)|0;l=ct(l,i[r>>1]|0,i[t>>1]|0,s)|0;if((T|0)>0)l=Vt(l)|0;R=l>>16;i[o>>1]=Oi(l,s)|0;k=l>>20;P=L+2|0;i[P>>1]=k;T=N+2|0;i[T>>1]=(l>>>5)-(k<<15);k=ee(R,R)|0;k=(k|0)==1073741824?2147483647:k<<1;R=(ee((l>>>1)-(R<<15)<<16>>16,R)|0)>>15;M=R<<1;A=M+k|0;A=(R^k|0)>0&(A^k|0)<0?(k>>>31)+2147483647|0:A;M=A+M|0;M=2147483647-(Nt((A^R|0)>0&(M^A|0)<0?(A>>>31)+2147483647|0:M)|0)|0;A=M>>16;R=i[r>>1]|0;k=ee(A,R)|0;k=(k|0)==1073741824?2147483647:k<<1;R=(ee((M>>>1)-(A<<15)<<16>>16,R)|0)>>15;M=(R<<1)+k|0;M=(R^k|0)>0&(M^k|0)<0?(k>>>31)+2147483647|0:M;A=(ee(i[t>>1]|0,A)|0)>>15;k=M+(A<<1)|0;k=(M^A|0)>0&(k^M|0)<0?(M>>>31)+2147483647|0:k;M=yi(k)|0;k=k<<(M<<16>>16);A=C+2|0;R=u+2|0;f=k;k=(k>>>1)-(k>>16<<15)|0;_=u+4|0;E=C+4|0;j=2;S=2;while(1){g=f>>>16;l=g&65535;b=k&65535;v=S+-1|0;h=L+(v<<1)|0;y=N+(v<<1)|0;w=1;p=h;m=y;d=D;u=O;f=0;while(1){F=i[d>>1]|0;I=((ee(i[m>>1]|0,F)|0)>>15)+f|0;f=i[p>>1]|0;f=I+(ee(f,F)|0)+((ee(f,i[u>>1]|0)|0)>>15)|0;w=w+1<<16>>16;if((w<<16>>16|0)>=(S|0))break;else{p=p+-2|0;m=m+-2|0;d=d+2|0;u=u+2|0}}I=(a[r+(S<<1)>>1]<<16)+(f<<5)+(i[t+(S<<1)>>1]<<1)|0;f=ct(Nt(I)|0,l,b,s)|0;if((I|0)>0)f=Vt(f)|0;u=M<<16>>16;if(M<<16>>16>0){l=f<<u;if((l>>u|0)!=(f|0))l=f>>31^2147483647}else{u=0-u<<16;if((u|0)<2031616)l=f>>(u>>16);else l=0}w=l>>16;if((S|0)<5)i[o+(v<<1)>>1]=(l+32768|0)>>>16;I=(l>>>16)-(l>>>31)|0;if(((I<<16>>31^I)&65535)<<16>>16>32750){l=16;break}m=(l>>>1)-(w<<15)<<16>>16;p=1;f=y;u=A;d=R;while(1){F=(ee(i[f>>1]|0,w)|0)>>15;y=i[h>>1]|0;I=(ee(y,m)|0)>>15;y=ee(y,w)|0;I=y+F+(i[N+(p<<1)>>1]|0)+(i[L+(p<<1)>>1]<<15)+I|0;i[u>>1]=I>>>15;i[d>>1]=I&32767;p=p+1|0;if((p&65535)<<16>>16==j<<16>>16)break;else{h=h+-2|0;f=f+-2|0;u=u+2|0;d=d+2|0}}i[E>>1]=l>>20;i[_>>1]=(l>>>5)-(i[C+(S<<1)>>1]<<15);F=ee(w,w)|0;F=(F|0)==1073741824?2147483647:F<<1;l=(ee(m,w)|0)>>15;I=l<<1;u=I+F|0;u=(l^F|0)>0&(u^F|0)<0?(F>>>31)+2147483647|0:u;I=u+I|0;I=2147483647-(Nt((u^l|0)>0&(I^u|0)<0?(u>>>31)+2147483647|0:I)|0)|0;u=I>>16;l=g<<16>>16;l=((ee(u,k<<16>>16)|0)>>15)+(ee(u,l)|0)+((ee((I>>>1)-(u<<15)<<16>>16,l)|0)>>15)<<1;u=(yi(l)|0)<<16>>16;l=l<<u;I=S<<1;Hi(P|0,A|0,I|0)|0;Hi(T|0,R|0,I|0)|0;S=S+1|0;if((S|0)>=11){l=20;break}else{M=u+(M&65535)&65535;f=l;k=(l>>1)-(l>>16<<15)|0;_=_+2|0;E=E+2|0;j=j+1<<16>>16}}if((l|0)==16){l=n+22|0;do{i[n>>1]=i[e>>1]|0;n=n+2|0;e=e+2|0}while((n|0)<(l|0));I=o;F=I;i[F>>1]=0;i[F+2>>1]=0>>>16;I=I+4|0;i[I>>1]=0;i[I+2>>1]=0>>>16;c=x;return 0}else if((l|0)==20){i[n>>1]=4096;I=((i[T>>1]|0)+8192+(i[P>>1]<<15)|0)>>>14&65535;i[n+2>>1]=I;i[e+2>>1]=I;I=((i[N+4>>1]|0)+8192+(i[L+4>>1]<<15)|0)>>>14&65535;i[n+4>>1]=I;i[e+4>>1]=I;I=((i[N+6>>1]|0)+8192+(i[L+6>>1]<<15)|0)>>>14&65535;i[n+6>>1]=I;i[e+6>>1]=I;I=((i[N+8>>1]|0)+8192+(i[L+8>>1]<<15)|0)>>>14&65535;i[n+8>>1]=I;i[e+8>>1]=I;I=((i[N+10>>1]|0)+8192+(i[L+10>>1]<<15)|0)>>>14&65535;i[n+10>>1]=I;i[e+10>>1]=I;I=((i[N+12>>1]|0)+8192+(i[L+12>>1]<<15)|0)>>>14&65535;i[n+12>>1]=I;i[e+12>>1]=I;I=((i[N+14>>1]|0)+8192+(i[L+14>>1]<<15)|0)>>>14&65535;i[n+14>>1]=I;i[e+14>>1]=I;I=((i[N+16>>1]|0)+8192+(i[L+16>>1]<<15)|0)>>>14&65535;i[n+16>>1]=I;i[e+16>>1]=I;I=((i[N+18>>1]|0)+8192+(i[L+18>>1]<<15)|0)>>>14&65535;i[n+18>>1]=I;i[e+18>>1]=I;I=((i[N+20>>1]|0)+8192+(i[L+20>>1]<<15)|0)>>>14&65535;i[n+20>>1]=I;i[e+20>>1]=I;c=x;return 0}return 0}function qt(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;n=e>>16;i[r>>1]=n;i[t>>1]=(e>>>1)-(n<<15);return}function Vt(e){e=e|0;return((e|0)==-2147483648?2147483647:0-e|0)|0}function Ht(e){e=e|0;var r=0;if(!e){e=-1;return e|0}o[e>>2]=0;r=Bi(4)|0;if(!r){e=-1;return e|0}o[r>>2]=0;if(!((It(r)|0)<<16>>16)){Bt(o[r>>2]|0)|0;o[e>>2]=r;e=0;return e|0}else{Ut(r);Ui(r);e=-1;return e|0}return 0}function Wt(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ut(r);Ui(o[e>>2]|0);o[e>>2]=0;return}function Yt(e){e=e|0;if(!e){e=-1;return e|0}Bt(o[e>>2]|0)|0;e=0;return e|0}function Gt(e,r,t,n,i,s,a){e=e|0;r=r|0;t=t|0;n=n|0;i=i|0;s=s|0;a=a|0;var l=0,u=0,f=0,d=0;d=c;c=c+64|0;f=d+48|0;u=d+22|0;l=d;if((r|0)==7){t=o[s+116>>2]|0;Br(n,10,l,u,o[s+112>>2]|0,a)|0;xt(10,l,u,a);zt(o[e>>2]|0,l,u,i+22|0,f,a)|0;Br(n,10,l,u,t,a)|0;xt(10,l,u,a);zt(o[e>>2]|0,l,u,i+66|0,f,a)|0;c=d;return}else{Br(t,10,l,u,o[s+108>>2]|0,a)|0;xt(10,l,u,a);zt(o[e>>2]|0,l,u,i+66|0,f,a)|0;c=d;return}}function Xt(e,r,t,n,o,s,a,l,u,f){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;a=a|0;l=l|0;u=u|0;f=f|0;if((t|0)==6){i[o>>1]=on(e,r,n,20,143,80,s,a,l,u,f)|0;return}i[a>>1]=0;i[a+2>>1]=0;if(t>>>0<2){i[o>>1]=Qt(r,t,n,20,143,160,l,u,f)|0;return}if(t>>>0<6){i[o>>1]=Qt(r,t,n,20,143,80,l,u,f)|0;return}else{i[o>>1]=Qt(r,t,n,18,143,80,l,u,f)|0;return}}function Kt(e){e=e|0;var r=0;if((e|0)!=0?(o[e>>2]=0,r=Bi(2)|0,(r|0)!=0):0){i[r>>1]=0;o[e>>2]=r;r=0}else r=-1;return r|0}function Jt(e){e=e|0;if(!e)e=-1;else{i[e>>1]=0;e=0}return e|0}function Zt(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function $t(e,r,t,n,o,s,l,u,f,d,h,m){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;var p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0;Y=c;c=c+240|0;g=Y+160|0;k=Y+80|0;U=Y;B=i[3558+(r*18|0)>>1]|0;W=i[3558+(r*18|0)+2>>1]|0;p=i[3558+(r*18|0)+4>>1]|0;z=i[3558+(r*18|0)+6>>1]|0;v=i[3558+(r*18|0)+12>>1]|0;b=i[3558+(r*18|0)+14>>1]|0;w=i[3558+(r*18|0)+16>>1]|0;e:do{switch(u<<16>>16){case 0:case 80:if(r>>>0<2&u<<16>>16==80){q=(a[e>>1]|0)-(v&65535)|0;q=(q<<16>>16|0)<(w<<16>>16|0)?w:q&65535;I=b<<16>>16;V=(q&65535)+I&65535;H=V<<16>>16>143;q=H?143-I&65535:q;V=H?143:V;H=1;break e}else{q=(a[t+((u<<16>>16!=0&1)<<1)>>1]|0)-(a[3558+(r*18|0)+8>>1]|0)|0;q=(q<<16>>16|0)<(w<<16>>16|0)?w:q&65535;I=i[3558+(r*18|0)+10>>1]|0;V=(q&65535)+I&65535;H=V<<16>>16>143;q=H?143-I&65535:q;V=H?143:V;H=0;break e}default:{q=(a[e>>1]|0)-(v&65535)|0;q=(q<<16>>16|0)<(w<<16>>16|0)?w:q&65535;I=b<<16>>16;V=(q&65535)+I&65535;H=V<<16>>16>143;q=H?143-I&65535:q;V=H?143:V;H=1}}}while(0);F=q&65535;u=F+65532|0;y=u&65535;x=(V&65535)+4&65535;I=u<<16>>16;u=0-(u&65535)|0;v=u&65535;at(n+(u<<16>>16<<1)|0,s,g,l);u=l<<16>>16;R=u>>>1&65535;_=R<<16>>16==0;if(_)l=1;else{l=R;w=g;t=k;b=0;while(1){N=i[w>>1]|0;i[t>>1]=N>>>2;N=(ee(N,N)|0)+b|0;b=i[w+2>>1]|0;i[t+2>>1]=b>>>2;b=N+(ee(b,b)|0)|0;l=l+-1<<16>>16;if(!(l<<16>>16))break;else{w=w+4|0;t=t+4|0}}l=(b|0)<33554433}N=l?0:2;A=l?g:k;E=l?g:k;e:do{if(y<<16>>16<=x<<16>>16){j=u+-1|0;O=A+(j<<1)|0;C=s+(j<<1)|0;L=A+(u+-2<<1)|0;D=j>>>1;P=D&65535;S=P<<16>>16==0;T=l?12:14;D=(D<<1)+131070&131070;t=u+-3-D|0;M=A+(t<<1)|0;D=A+(u+-4-D<<1)|0;s=s+(t<<1)|0;if(!_){_=I;while(1){k=R;g=E;w=o;b=0;l=0;while(1){k=k+-1<<16>>16;u=i[g>>1]|0;b=(ee(u,i[w>>1]|0)|0)+b|0;u=(ee(u,u)|0)+l|0;l=i[g+2>>1]|0;b=b+(ee(l,i[w+2>>1]|0)|0)|0;l=u+(ee(l,l)|0)|0;if(!(k<<16>>16))break;else{g=g+4|0;w=w+4|0}}g=si(l<<1,m)|0;l=g>>16;w=b<<1>>16;k=ee(l,w)|0;k=(k|0)==1073741824?2147483647:k<<1;w=(ee((g>>>1)-(l<<15)<<16>>16,w)|0)>>15;g=(w<<1)+k|0;g=(w^k|0)>0&(g^k|0)<0?(k>>>31)+2147483647|0:g;l=(ee(l,b&32767)|0)>>15;k=g+(l<<1)|0;i[U+(_-I<<1)>>1]=(g^l|0)>0&(k^g|0)<0?(g>>>31)+65535|0:k;if(y<<16>>16!=x<<16>>16){v=v+-1<<16>>16;k=i[n+(v<<16>>16<<1)>>1]|0;if(S){g=j;l=L;b=C;w=O}else{g=P;l=L;b=C;w=O;while(1){_=(ee(i[b>>1]|0,k)|0)>>T;i[w>>1]=_+(a[l>>1]|0);_=(ee(i[b+-2>>1]|0,k)|0)>>T;i[w+-2>>1]=_+(a[l+-2>>1]|0);g=g+-1<<16>>16;if(!(g<<16>>16)){g=t;l=D;b=s;w=M;break}else{l=l+-4|0;b=b+-4|0;w=w+-4|0}}}_=(ee(i[b>>1]|0,k)|0)>>T;i[w>>1]=_+(a[l>>1]|0);i[A+(g+-1<<1)>>1]=k>>N}y=y+1<<16>>16;if(y<<16>>16>x<<16>>16)break e;else _=y<<16>>16}}if(S){l=A+(u+-2<<1)|0;b=I;while(1){si(0,m)|0;i[U+(b-I<<1)>>1]=0;if(y<<16>>16!=x<<16>>16){v=v+-1<<16>>16;o=i[n+(v<<16>>16<<1)>>1]|0;P=(ee(i[C>>1]|0,o)|0)>>T;i[O>>1]=P+(a[L>>1]|0);i[l>>1]=o>>N}y=y+1<<16>>16;if(y<<16>>16>x<<16>>16)break e;else b=y<<16>>16}}g=A+(t+-1<<1)|0;l=I;while(1){si(0,m)|0;i[U+(l-I<<1)>>1]=0;if(y<<16>>16!=x<<16>>16){v=v+-1<<16>>16;l=i[n+(v<<16>>16<<1)>>1]|0;b=P;w=L;t=C;u=O;while(1){o=(ee(i[t>>1]|0,l)|0)>>T;i[u>>1]=o+(a[w>>1]|0);o=(ee(i[t+-2>>1]|0,l)|0)>>T;i[u+-2>>1]=o+(a[w+-2>>1]|0);b=b+-1<<16>>16;if(!(b<<16>>16))break;else{w=w+-4|0;t=t+-4|0;u=u+-4|0}}o=(ee(i[s>>1]|0,l)|0)>>T;i[M>>1]=o+(a[D>>1]|0);i[g>>1]=l>>N}y=y+1<<16>>16;if(y<<16>>16>x<<16>>16)break;else l=y<<16>>16}}}while(0);y=q<<16>>16;t=F+1&65535;if(t<<16>>16>V<<16>>16)s=q;else{v=q;u=i[U+(y-I<<1)>>1]|0;while(1){b=i[U+((t<<16>>16)-I<<1)>>1]|0;w=b<<16>>16<u<<16>>16;v=w?v:t;t=t+1<<16>>16;if(t<<16>>16>V<<16>>16){s=v;break}else u=w?u:b}}e:do{if(!(H<<16>>16==0?s<<16>>16>B<<16>>16:0)){if(!(r>>>0<4&H<<16>>16!=0)){v=U+((s<<16>>16)-I<<1)|0;b=Lt(v,p,W,m)|0;t=(p&65535)+1&65535;if(t<<16>>16<=z<<16>>16)while(1){w=Lt(v,t,W,m)|0;u=w<<16>>16>b<<16>>16;p=u?t:p;t=t+1<<16>>16;if(t<<16>>16>z<<16>>16)break;else b=u?w:b}if((r+-7|0)>>>0<2){z=p<<16>>16==-3;t=(z<<31>>31)+s<<16>>16;p=z?3:p;break}switch(p<<16>>16){case-2:{t=s+-1<<16>>16;p=1;break e}case 2:{t=s+1<<16>>16;p=-1;break e}default:{t=s;break e}}}B=i[e>>1]|0;B=((B<<16>>16)-y|0)>5?y+5&65535:B;u=V<<16>>16;B=(u-(B<<16>>16)|0)>4?u+65532&65535:B;u=s<<16>>16;t=B<<16>>16;if((u|0)==(t+-1|0)?1:s<<16>>16==B<<16>>16){v=U+(u-I<<1)|0;u=Lt(v,p,W,m)|0;t=(p&65535)+1&65535;if(t<<16>>16<=z<<16>>16)while(1){b=Lt(v,t,W,m)|0;w=b<<16>>16>u<<16>>16;p=w?t:p;t=t+1<<16>>16;if(t<<16>>16>z<<16>>16)break;else u=w?b:u}if((r+-7|0)>>>0<2){z=p<<16>>16==-3;t=(z<<31>>31)+s<<16>>16;p=z?3:p;break}switch(p<<16>>16){case-2:{t=s+-1<<16>>16;p=1;break e}case 2:{t=s+1<<16>>16;p=-1;break e}default:{t=s;break e}}}if((u|0)==(t+-2|0)){t=U+(u-I<<1)|0;u=Lt(t,0,W,m)|0;if((r|0)!=8){p=0;v=1;while(1){b=Lt(t,v,W,m)|0;w=b<<16>>16>u<<16>>16;p=w?v:p;v=v+1<<16>>16;if(v<<16>>16>z<<16>>16)break;else u=w?b:u}if((r+-7|0)>>>0>=2)switch(p<<16>>16){case-2:{t=s+-1<<16>>16;p=1;break e}case 2:{t=s+1<<16>>16;p=-1;break e}default:{t=s;break e}}}else p=0;z=p<<16>>16==-3;t=(z<<31>>31)+s<<16>>16;p=z?3:p;break}if((u|0)==(t+1|0)){v=U+(u-I<<1)|0;t=Lt(v,p,W,m)|0;u=(p&65535)+1&65535;if(u<<16>>16<=0)while(1){w=Lt(v,u,W,m)|0;b=w<<16>>16>t<<16>>16;p=b?u:p;u=u+1<<16>>16;if(u<<16>>16>0)break;else t=b?w:t}if((r+-7|0)>>>0<2){z=p<<16>>16==-3;t=(z<<31>>31)+s<<16>>16;p=z?3:p;break}switch(p<<16>>16){case-2:{t=s+-1<<16>>16;p=1;break e}case 2:{t=s+1<<16>>16;p=-1;break e}default:{t=s;break e}}}else{t=s;p=0}}else{t=s;p=0}}while(0);if((r+-7|0)>>>0>1){z=e;e=vt(t,p,i[e>>1]|0,q,V,H,r>>>0<4&1,m)|0;i[h>>1]=e;i[z>>1]=t;i[d>>1]=W;i[f>>1]=p;c=Y;return t|0}else{m=yt(t,p,q,H,m)|0;i[h>>1]=m;i[e>>1]=t;i[d>>1]=W;i[f>>1]=p;c=Y;return t|0}return 0}function Qt(e,r,t,n,s,a,l,u,f){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;f=f|0;var d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0;D=c;c=c+1200|0;R=D+1188|0;A=D+580|0;M=D+578|0;S=D+576|0;k=D;E=D+582|0;j=(u|0)!=0;do{if(j)if(r>>>0<2){zn(e,1,f);break}else{zn(e,0,f);break}}while(0);_=s<<16>>16;m=0-_|0;h=t+(m<<1)|0;m=m&65535;v=a<<16>>16;do{if(m<<16>>16<a<<16>>16){b=m;w=h;m=0;while(1){y=i[w>>1]|0;m=(ee(y<<1,y)|0)+m|0;if((m|0)<0)break;b=b+1<<16>>16;if(b<<16>>16>=a<<16>>16){g=14;break}else w=w+2|0}if((g|0)==14){if((m|0)<1048576){g=15;break}Hi(E|0,h|0,v+_<<1|0)|0;y=0;break}d=v+_|0;p=d>>>1;b=p&65535;if(!(b<<16>>16))m=E;else{y=((p<<1)+131070&131070)+2|0;v=y-_|0;w=E;while(1){i[w>>1]=(i[h>>1]|0)>>>3;i[w+2>>1]=(i[h+2>>1]|0)>>>3;b=b+-1<<16>>16;if(!(b<<16>>16))break;else{h=h+4|0;w=w+4|0}}h=t+(v<<1)|0;m=E+(y<<1)|0}if(!(d&1))y=3;else{i[m>>1]=(i[h>>1]|0)>>>3;y=3}}else g=15}while(0);if((g|0)==15){y=v+_|0;m=y>>>1;p=m&65535;if(!(p<<16>>16))m=E;else{v=((m<<1)+131070&131070)+2|0;w=v-_|0;b=E;while(1){i[b>>1]=i[h>>1]<<3;i[b+2>>1]=i[h+2>>1]<<3;p=p+-1<<16>>16;if(!(p<<16>>16))break;else{h=h+4|0;b=b+4|0}}h=t+(w<<1)|0;m=E+(v<<1)|0}if(!(y&1))y=-3;else{i[m>>1]=i[h>>1]<<3;y=-3}}v=k+(_<<2)|0;w=E+(_<<1)|0;Xr(w,a,s,n,v);d=(r|0)==7&1;m=n<<16>>16;h=m<<2;if((h|0)!=(m<<18>>16|0)){o[f>>2]=1;h=n<<16>>16>0?32767:-32768}b=en(e,v,w,y,d,a,s,h&65535,R,u,f)|0;m=m<<1;p=en(e,v,w,y,d,a,h+65535&65535,m&65535,A,u,f)|0;m=en(e,v,w,y,d,a,m+65535&65535,n,M,u,f)|0;if(l<<16>>16==1&j){Ct(v,w,a,s,n,S,f)|0;Bn(e,i[S>>1]|0)}h=i[R>>1]|0;d=i[A>>1]|0;if(((h<<16>>16)*55706>>16|0)>=(d<<16>>16|0)){A=h;R=b;A=A<<16>>16;A=A*55706|0;A=A>>16;M=i[M>>1]|0;M=M<<16>>16;M=(A|0)<(M|0);M=M?m:R;c=D;return M|0}i[R>>1]=d;A=d;R=p;A=A<<16>>16;A=A*55706|0;A=A>>16;M=i[M>>1]|0;M=M<<16>>16;M=(A|0)<(M|0);M=M?m:R;c=D;return M|0}function en(e,r,t,n,s,a,l,u,f,c,d){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;f=f|0;c=c|0;d=d|0;var h=0,m=0,p=0,w=0,b=0;if(l<<16>>16<u<<16>>16){u=-2147483648;p=l}else{p=l;h=-2147483648;m=r+(0-(l<<16>>16)<<2)|0;r=l;while(1){l=o[m>>2]|0;b=(l|0)<(h|0);r=b?r:p;h=b?h:l;p=p+-1<<16>>16;if(p<<16>>16<u<<16>>16){u=h;p=r;break}else m=m+4|0}}r=a<<16>>16>>>2&65535;if(!(r<<16>>16))r=0;else{h=r;l=t+(0-(p<<16>>16)<<1)|0;r=0;while(1){b=i[l>>1]|0;b=(ee(b,b)|0)+r|0;r=i[l+2>>1]|0;r=b+(ee(r,r)|0)|0;b=i[l+4>>1]|0;b=r+(ee(b,b)|0)|0;r=i[l+6>>1]|0;r=b+(ee(r,r)|0)|0;h=h+-1<<16>>16;if(!(h<<16>>16))break;else l=l+8|0}r=r<<1}if(c)Un(e,u,r,d);r=si(r,d)|0;l=s<<16>>16!=0;if(l)r=(r|0)>1073741823?2147483647:r<<1;s=u>>16;e=r>>16;d=ee(e,s)|0;d=(d|0)==1073741824?2147483647:d<<1;r=(ee((r>>>1)-(e<<15)<<16>>16,s)|0)>>15;b=(r<<1)+d|0;b=(r^d|0)>0&(b^d|0)<0?(d>>>31)+2147483647|0:b;s=(ee(e,(u>>>1)-(s<<15)<<16>>16)|0)>>15;r=b+(s<<1)|0;r=(b^s|0)>0&(r^b|0)<0?(b>>>31)+2147483647|0:r;if(!l){i[f>>1]=r;return p|0}l=n<<16>>16;if(n<<16>>16>0)if(n<<16>>16<31){l=r>>l;w=16}else l=0;else{w=0-l<<16>>16;l=r<<w;l=(l>>w|0)==(r|0)?l:r>>31^2147483647;w=16}if((w|0)==16){if((l|0)>65535){i[f>>1]=32767;return p|0}if((l|0)<-65536){i[f>>1]=-32768;return p|0}}i[f>>1]=l>>>1;return p|0}function rn(e){e=e|0;var r=0;if(!e){e=-1;return e|0}o[e>>2]=0;r=Bi(6)|0;if(!r){e=-1;return e|0}i[r>>1]=40;i[r+2>>1]=0;i[r+4>>1]=0;o[e>>2]=r;e=0;return e|0}function tn(e){e=e|0;if(!e){e=-1;return e|0}i[e>>1]=40;i[e+2>>1]=0;i[e+4>>1]=0;e=0;return e|0}function nn(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function on(e,r,t,n,s,a,l,u,f,d,h){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;var m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0;T=c;c=c+1200|0;_=T+1186|0;E=T+1184|0;P=T+1182|0;k=T;S=T+576|0;j=s<<16>>16;D=S+(j<<1)|0;m=(0-j&65535)<<16>>16<a<<16>>16;if(m){v=0-s<<16>>16<<16>>16;p=0;do{b=i[t+(v<<1)>>1]|0;b=ee(b,b)|0;if((b|0)!=1073741824){w=(b<<1)+p|0;if((b^p|0)>0&(w^p|0)<0){o[h>>2]=1;p=(p>>>31)+2147483647|0}else p=w}else{o[h>>2]=1;p=2147483647}v=v+1|0}while((v&65535)<<16>>16!=a<<16>>16)}else p=0;if((2147483646-p&p|0)>=0)if((p|0)==2147483647){if(m){p=0-s<<16>>16<<16>>16;do{i[S+(p+j<<1)>>1]=Ci(i[t+(p<<1)>>1]|0,3,h)|0;p=p+1|0}while((p&65535)<<16>>16!=a<<16>>16)}}else y=14;else{o[h>>2]=1;y=14}do{if((y|0)==14){if((1048575-p&p|0)<0){o[h>>2]=1;p=(p>>>31)+2147483647|0}else p=p+-1048576|0;if((p|0)>=0){if(!m)break;M=0-s<<16>>16<<16>>16;Hi(S+(j+M<<1)|0,t+(M<<1)|0,(((a+s<<16>>16)+-1&65535)<<1)+2|0)|0;break}if(m){p=0-s<<16>>16<<16>>16;do{M=i[t+(p<<1)>>1]|0;i[S+(p+j<<1)>>1]=(M<<19>>19|0)==(M|0)?M<<3:M>>>15^32767;p=p+1|0}while((p&65535)<<16>>16!=a<<16>>16)}}}while(0);R=k+(j<<2)|0;Xr(D,a,s,n,R);v=i[e>>1]|0;M=e+4|0;A=u+(f<<16>>16<<1)|0;e:do{if(s<<16>>16<n<<16>>16)g=s;else{if((i[M>>1]|0)<=0){t=s;u=-2147483648;b=s;y=3402;while(1){qt(o[k+(j-(t<<16>>16)<<2)>>2]|0,_,E,h);w=i[E>>1]|0;p=i[y>>1]|0;v=ee(p,i[_>>1]|0)|0;if((v|0)==1073741824){o[h>>2]=1;m=2147483647}else m=v<<1;g=(ee(p,w<<16>>16)|0)>>15;v=m+(g<<1)|0;if((m^g|0)>0&(v^m|0)<0){o[h>>2]=1;v=(m>>>31)+2147483647|0}w=(v|0)<(u|0);b=w?b:t;t=t+-1<<16>>16;if(t<<16>>16<n<<16>>16){g=b;break e}else{u=w?u:v;y=y+-2|0}}}u=s;m=-2147483648;b=s;g=2902+(j+123-(v<<16>>16)<<1)|0;t=3402;while(1){qt(o[k+(j-(u<<16>>16)<<2)>>2]|0,_,E,h);y=i[E>>1]|0;w=i[t>>1]|0;v=ee(w,i[_>>1]|0)|0;if((v|0)==1073741824){o[h>>2]=1;p=2147483647}else p=v<<1;y=(ee(w,y<<16>>16)|0)>>15;v=p+(y<<1)|0;if((p^y|0)>0&(v^p|0)<0){o[h>>2]=1;v=(p>>>31)+2147483647|0}qt(v,_,E,h);y=i[E>>1]|0;w=i[g>>1]|0;v=ee(w,i[_>>1]|0)|0;if((v|0)==1073741824){o[h>>2]=1;p=2147483647}else p=v<<1;y=(ee(w,y<<16>>16)|0)>>15;v=p+(y<<1)|0;if((p^y|0)>0&(v^p|0)<0){o[h>>2]=1;v=(p>>>31)+2147483647|0}w=(v|0)<(m|0);b=w?b:u;u=u+-1<<16>>16;if(u<<16>>16<n<<16>>16){g=b;break}else{m=w?m:v;g=g+-2|0;t=t+-2|0}}}}while(0);if(a<<16>>16>0){u=0;t=D;y=S+(j-(g<<16>>16)<<1)|0;b=0;p=0;while(1){v=i[y>>1]|0;w=ee(v,i[t>>1]|0)|0;if((w|0)!=1073741824){m=(w<<1)+b|0;if((w^b|0)>0&(m^b|0)<0){o[h>>2]=1;b=(b>>>31)+2147483647|0}else b=m}else{o[h>>2]=1;b=2147483647}m=ee(v,v)|0;if((m|0)!=1073741824){w=(m<<1)+p|0;if((m^p|0)>0&(w^p|0)<0){o[h>>2]=1;p=(p>>>31)+2147483647|0}else p=w}else{o[h>>2]=1;p=2147483647}u=u+1<<16>>16;if(u<<16>>16>=a<<16>>16)break;else{t=t+2|0;y=y+2|0}}}else{b=0;p=0}w=(d|0)==0;if(!w){zn(r,0,h);Un(r,b,p,h)}m=(Oi(p,h)|0)<<16>>16;if((m*13107|0)==1073741824){o[h>>2]=1;p=2147483647}else p=m*26214|0;m=b-p|0;if(((m^b)&(p^b)|0)<0){o[h>>2]=1;m=(b>>>31)+2147483647|0}d=Oi(m,h)|0;i[A>>1]=d;if(d<<16>>16>0){m=l+6|0;i[l+8>>1]=i[m>>1]|0;d=l+4|0;i[m>>1]=i[d>>1]|0;m=l+2|0;i[d>>1]=i[m>>1]|0;i[m>>1]=i[l>>1]|0;i[l>>1]=g;i[e>>1]=ri(l,5)|0;i[e+2>>1]=32767;m=32767}else{i[e>>1]=g;e=e+2|0;m=((i[e>>1]|0)*29491|0)>>>15&65535;i[e>>1]=m}i[M>>1]=((xi(m,9830,h)|0)&65535)>>>15^1;if(w){c=T;return g|0}if((xi(f,1,h)|0)<<16>>16){c=T;return g|0}Ct(R,D,a,s,n,P,h)|0;Bn(r,i[P>>1]|0);c=T;return g|0}function sn(e,r,t,n,i,o,s,a,l,u){e=e|0;r=r|0;t=t|0;n=n|0;i=i|0;o=o|0;s=s|0;a=a|0;l=l|0;u=u|0;var f=0,d=0;u=c;c=c+48|0;d=u+22|0;f=u;r=e>>>0<6?r:t;t=o<<16>>16>0?22:0;e=i+(t<<1)|0;Ii(e,r,d);Ii(e,n,f);e=o<<16>>16;o=l+(e<<1)|0;Ti(d,s+(e<<1)|0,o,40);Fi(f,o,o,40,a,1);t=i+(((t<<16)+720896|0)>>>16<<1)|0;Ii(t,r,d);Ii(t,n,f);e=(e<<16)+2621440>>16;l=l+(e<<1)|0;Ti(d,s+(e<<1)|0,l,40);Fi(f,l,l,40,a,1);c=u;return}function an(e){e=e|0;var r=0;if(!e){e=-1;return e|0}o[e>>2]=0;r=Bi(12)|0;if(!r){e=-1;return e|0}i[r>>1]=0;i[r+2>>1]=0;i[r+4>>1]=0;i[r+6>>1]=0;i[r+8>>1]=0;i[r+10>>1]=0;o[e>>2]=r;e=0;return e|0}function ln(e){e=e|0;if(!e){e=-1;return e|0}i[e>>1]=0;i[e+2>>1]=0;i[e+4>>1]=0;i[e+6>>1]=0;i[e+8>>1]=0;i[e+10>>1]=0;e=0;return e|0}function un(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function fn(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,o=0,s=0,a=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0;d=e+10|0;o=i[d>>1]|0;h=e+8|0;n=i[h>>1]|0;if(!(t<<16>>16)){e=n;c=o;i[d>>1]=c;i[h>>1]=e;return}l=e+4|0;u=e+6|0;f=e+2|0;a=i[u>>1]|0;c=i[l>>1]|0;s=t;t=o;while(1){m=(ee(i[e>>1]|0,-3733)|0)+(((c<<16>>16)*7807|0)+((a<<16>>16)*7807>>15))|0;i[e>>1]=c;m=m+((ee(i[f>>1]|0,-3733)|0)>>15)|0;i[f>>1]=a;m=((t<<16>>16)*1899|0)+m+(ee(n<<16>>16,-3798)|0)|0;t=i[r>>1]|0;m=m+((t<<16>>16)*1899|0)|0;i[r>>1]=(m+2048|0)>>>12;o=m>>>12;c=o&65535;i[l>>1]=c;a=(m<<3)-(o<<15)&65535;i[u>>1]=a;s=s+-1<<16>>16;if(!(s<<16>>16))break;else{m=n;r=r+2|0;n=t;t=m}}i[d>>1]=n;i[h>>1]=t;return}function cn(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0,a=0,l=0,u=0;s=i[(o[n+88>>2]|0)+(e<<1)>>1]|0;if(!(s<<16>>16))return;u=t;l=o[(o[n+92>>2]|0)+(e<<2)>>2]|0;while(1){t=i[l>>1]|0;if(!(t<<16>>16))t=0;else{e=i[r>>1]|0;a=t;n=u+((t<<16>>16)+-1<<1)|0;while(1){t=e<<16>>16;i[n>>1]=t&1;a=a+-1<<16>>16;if(!(a<<16>>16))break;else{e=t>>>1&65535;n=n+-2|0}}t=i[l>>1]|0}r=r+2|0;s=s+-1<<16>>16;if(!(s<<16>>16))break;else{u=u+(t<<16>>16<<1)|0;l=l+2|0}}return}function dn(e,r,t,n,s,l){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;var u=0,f=0,d=0,h=0,m=0;m=c;c=c+16|0;d=m+2|0;h=m;u=s<<16>>16;if(s<<16>>16<1){l=-5443;h=-32768;$n(e,h,l);c=m;return}f=ki(14,t,l)|0;if((u|0)<(f<<16>>16|0))t=n;else{t=(n&65535)+1&65535;s=u>>>1&65535}n=Kn(s,f&65535)|0;i[h>>1]=n;ai(n<<16>>16,d,h,l);i[d>>1]=((((t&65535)-(r&65535)<<16)+-65536|0)>>>16)+(a[d>>1]|0);n=Li(i[h>>1]|0,5,l)|0;u=i[d>>1]|0;n=((u&65535)<<10)+(n&65535)&65535;if(n<<16>>16>18284){l=3037;h=18284;$n(e,h,l);c=m;return}s=i[h>>1]|0;u=u<<16>>16;if((u*24660|0)==1073741824){o[l>>2]=1;t=2147483647}else t=u*49320|0;h=(s<<16>>16)*24660>>15;u=t+(h<<1)|0;if((t^h|0)>0&(u^t|0)<0){o[l>>2]=1;u=(t>>>31)+2147483647|0}h=u<<13;l=Oi((h>>13|0)==(u|0)?h:u>>31^2147483647,l)|0;h=n;$n(e,h,l);c=m;return}function hn(e,r,t,n,s,l,u,f,d,h,m,p,w,b,v,y,g,k,_,E){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;p=p|0;w=w|0;b=b|0;v=v|0;y=y|0;g=g|0;k=k|0;_=_|0;E=E|0;var j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0,G=0,X=0,K=0,J=0,Z=0,$=0,Q=0,re=0,te=0,ne=0,ie=0,oe=0,se=0,ae=0;ae=c;c=c+80|0;ne=ae+66|0;ie=ae+64|0;oe=ae+62|0;se=ae+60|0;U=ae+40|0;z=ae+20|0;I=ae;i[ne>>1]=r;i[ie>>1]=d;i[oe>>1]=h;F=ki(14,t,E)|0;te=F&65535;i[se>>1]=te;B=ki(14,h,E)|0;x=(a[n>>1]|0)+65523|0;i[I>>1]=x;P=(a[n+2>>1]|0)+65522|0;T=I+2|0;i[T>>1]=P;O=((r&65535)<<16)+-720896|0;R=O>>16;O=(O>>>15)+15+(a[n+4>>1]|0)|0;C=I+4|0;i[C>>1]=O;L=(a[n+6>>1]|0)+R|0;N=I+6|0;i[N>>1]=L;R=R+1+(a[n+8>>1]|0)|0;M=I+8|0;i[M>>1]=R;j=(a[m>>1]|0)+65523&65535;i[I+10>>1]=j;D=(a[m+2>>1]|0)+65522&65535;i[I+12>>1]=D;S=((d&65535)<<16)+-720896|0;n=S>>16;S=(S>>>15)+15+(a[m+4>>1]|0)&65535;i[I+14>>1]=S;A=(a[m+6>>1]|0)+n&65535;i[I+16>>1]=A;n=n+1+(a[m+8>>1]|0)&65535;i[I+18>>1]=n;Q=(l&65535)-(w&65535)<<16;d=Q>>16;if((Q|0)>0){h=u;t=b<<16>>16>>d&65535}else{h=u<<16>>16>>0-d&65535;t=b}if((Li(t,1,E)|0)<<16>>16>h<<16>>16)t=1;else t=(((h<<16>>16)+3>>2|0)>(t<<16>>16|0))<<31>>31;m=x+t&65535;i[I>>1]=m;Q=P+t&65535;i[T>>1]=Q;$=O+t&65535;i[C>>1]=$;Z=L+t&65535;i[N>>1]=Z;J=R+t&65535;i[M>>1]=J;d=n<<16>>16>m<<16>>16?n:m;d=A<<16>>16>d<<16>>16?A:d;d=S<<16>>16>d<<16>>16?S:d;d=D<<16>>16>d<<16>>16?D:d;d=j<<16>>16>d<<16>>16?j:d;d=J<<16>>16>d<<16>>16?J:d;d=Z<<16>>16>d<<16>>16?Z:d;d=$<<16>>16>d<<16>>16?$:d;d=(Q<<16>>16>d<<16>>16?Q:d)+1&65535;n=0;while(1){t=d-(m&65535)|0;m=t&65535;h=a[s>>1]<<16;t=t<<16>>16;if(m<<16>>16>0)m=m<<16>>16<31?h>>t:0;else{Q=0-t<<16>>16;m=h<<Q;m=(m>>Q|0)==(h|0)?m:h>>31^2147483647}Q=m>>16;i[U+(n<<1)>>1]=Q;i[z+(n<<1)>>1]=(m>>>1)-(Q<<15);n=n+1|0;if((n|0)==5){t=5;h=p;break}m=i[I+(n<<1)>>1]|0;s=s+2|0}while(1){n=d-(j&65535)|0;j=n&65535;m=a[h>>1]<<16;n=n<<16>>16;if(j<<16>>16>0)m=j<<16>>16<31?m>>n:0;else{$=0-n<<16>>16;Q=m<<$;m=(Q>>$|0)==(m|0)?Q:m>>31^2147483647}Q=m>>16;i[U+(t<<1)>>1]=Q;i[z+(t<<1)>>1]=(m>>>1)-(Q<<15);m=t+1|0;if((m&65535)<<16>>16==10)break;j=i[I+(m<<1)>>1]|0;t=m;h=h+2|0}q=F<<16>>16;V=i[U>>1]|0;H=i[z>>1]|0;W=i[U+2>>1]|0;Y=i[z+2>>1]|0;G=i[U+4>>1]|0;X=i[z+4>>1]|0;K=i[U+6>>1]|0;J=i[z+6>>1]|0;Z=i[U+8>>1]|0;$=i[z+8>>1]|0;Q=v&65535;w=B<<16>>16;l=i[U+10>>1]|0;A=i[z+10>>1]|0;S=i[U+12>>1]|0;s=i[z+12>>1]|0;t=i[U+14>>1]|0;h=i[z+14>>1]|0;n=i[U+16>>1]|0;j=i[z+16>>1]|0;R=i[U+18>>1]|0;z=i[z+18>>1]|0;d=2147483647;U=0;m=0;M=782;do{I=i[M>>1]|0;L=(ee(q,i[M+2>>1]|0)|0)>>>15<<16;p=L>>16;O=I<<1;x=(ee(O,I)|0)>>16;b=ee(x,V)|0;if((b|0)==1073741824){o[E>>2]=1;N=2147483647}else N=b<<1;B=(ee(H,x)|0)>>15;b=N+(B<<1)|0;if((N^B|0)>0&(b^N|0)<0){o[E>>2]=1;b=(N>>>31)+2147483647|0}x=ee(W,I)|0;if((x|0)==1073741824){o[E>>2]=1;N=2147483647}else N=x<<1;B=(ee(Y,I)|0)>>15;x=N+(B<<1)|0;if((N^B|0)>0&(x^N|0)<0){o[E>>2]=1;x=(N>>>31)+2147483647|0}L=(ee(L>>15,p)|0)>>16;N=ee(G,L)|0;if((N|0)==1073741824){o[E>>2]=1;C=2147483647}else C=N<<1;B=(ee(X,L)|0)>>15;N=C+(B<<1)|0;if((C^B|0)>0&(N^C|0)<0){o[E>>2]=1;N=(C>>>31)+2147483647|0}L=ee(K,p)|0;if((L|0)==1073741824){o[E>>2]=1;C=2147483647}else C=L<<1;B=(ee(J,p)|0)>>15;L=C+(B<<1)|0;if((C^B|0)>0&(L^C|0)<0){o[E>>2]=1;B=(C>>>31)+2147483647|0}else B=L;C=(ee(O,p)|0)>>16;L=ee(Z,C)|0;if((L|0)==1073741824){o[E>>2]=1;O=2147483647}else O=L<<1;F=(ee($,C)|0)>>15;L=O+(F<<1)|0;if((O^F|0)>0&(L^O|0)<0){o[E>>2]=1;L=(O>>>31)+2147483647|0}C=i[M+4>>1]|0;O=i[M+6>>1]|0;M=M+8|0;if((I-Q&65535)<<16>>16<1?(re=C<<16>>16,C<<16>>16<=v<<16>>16):0){P=(ee(O<<16>>16,w)|0)>>>15<<16;I=P>>16;D=re<<1;O=(ee(D,re)|0)>>16;C=ee(l,O)|0;if((C|0)==1073741824){o[E>>2]=1;T=2147483647}else T=C<<1;F=(ee(A,O)|0)>>15;C=T+(F<<1)|0;if((T^F|0)>0&(C^T|0)<0){o[E>>2]=1;C=(T>>>31)+2147483647|0}O=ee(S,re)|0;if((O|0)==1073741824){o[E>>2]=1;T=2147483647}else T=O<<1;F=(ee(s,re)|0)>>15;O=T+(F<<1)|0;if((T^F|0)>0&(O^T|0)<0){o[E>>2]=1;F=(T>>>31)+2147483647|0}else F=O;T=(ee(P>>15,I)|0)>>16;O=ee(t,T)|0;if((O|0)==1073741824){o[E>>2]=1;P=2147483647}else P=O<<1;p=(ee(h,T)|0)>>15;O=P+(p<<1)|0;if((P^p|0)>0&(O^P|0)<0){o[E>>2]=1;p=(P>>>31)+2147483647|0}else p=O;O=ee(n,I)|0;if((O|0)==1073741824){o[E>>2]=1;T=2147483647}else T=O<<1;P=(ee(j,I)|0)>>15;O=T+(P<<1)|0;if((T^P|0)>0&(O^T|0)<0){o[E>>2]=1;u=(T>>>31)+2147483647|0}else u=O;T=(ee(D,I)|0)>>16;O=ee(R,T)|0;if((O|0)==1073741824){o[E>>2]=1;P=2147483647}else P=O<<1;I=(ee(z,T)|0)>>15;O=P+(I<<1)|0;if((P^I|0)>0&(O^P|0)<0){o[E>>2]=1;O=(P>>>31)+2147483647|0}I=x+b+N+B+L+C+F+p+u+O|0;B=(I|0)<(d|0);d=B?I:d;m=B?U:m}U=U+1<<16>>16}while(U<<16>>16<256);v=(m&65535)<<18>>16;mn(e,782+(v<<1)|0,te,r,y,g,E);Zn(e,0,f,ie,oe,ne,se,E);f=(ki(14,i[oe>>1]|0,E)|0)&65535;mn(e,782+((v|2)<<1)|0,f,i[ie>>1]|0,k,_,E);c=ae;return m|0}function mn(e,r,t,n,s,l,u){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;var f=0,d=0,h=0,m=0;m=c;c=c+16|0;d=m+2|0;h=m;i[s>>1]=i[r>>1]|0;f=i[r+2>>1]|0;t=ee(t<<16>>16<<1,f)|0;s=10-(n&65535)|0;r=s&65535;s=s<<16>>16;if(r<<16>>16>0)r=r<<16>>16<31?t>>s:0;else{s=0-s<<16>>16;r=t<<s;r=(r>>s|0)==(t|0)?r:t>>31^2147483647}i[l>>1]=r>>>16;ai(f,d,h,u);i[d>>1]=(a[d>>1]|0)+65524;s=Li(i[h>>1]|0,5,u)|0;n=i[d>>1]|0;s=((n&65535)<<10)+(s&65535)&65535;t=i[h>>1]|0;n=n<<16>>16;if((n*24660|0)==1073741824){o[u>>2]=1;r=2147483647}else r=n*49320|0;h=(t<<16>>16)*24660>>15;n=r+(h<<1)|0;if(!((r^h|0)>0&(n^r|0)<0)){u=n;u=u<<13;u=u+32768|0;u=u>>>16;u=u&65535;$n(e,s,u);c=m;return}o[u>>2]=1;u=(r>>>31)+2147483647|0;u=u<<13;u=u+32768|0;u=u>>>16;u=u&65535;$n(e,s,u);c=m;return}function pn(e,r,t,n,s,l,u,f,d,h,m,p,w,b,v,y,g,k,_,E,j){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;p=p|0;w=w|0;b=b|0;v=v|0;y=y|0;g=g|0;k=k|0;_=_|0;E=E|0;j=j|0;var S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0,G=0,X=0,K=0,J=0,Z=0,$=0,Q=0,re=0,te=0,ne=0,ie=0,oe=0,se=0,ae=0,le=0,ue=0,fe=0,ce=0;ce=c;c=c+80|0;le=ce+72|0;ue=ce+70|0;fe=ce+68|0;se=ce+66|0;ae=ce+56|0;Z=ce+24|0;J=ce+12|0;X=ce+48|0;K=ce+40|0;V=ce+34|0;W=ce+22|0;z=ce+6|0;q=ce;bn(5,b,v,z,q,o[E+72>>2]|0,j)|0;R=ki(14,h,j)|0;H=E+68|0;U=o[H>>2]|0;G=d<<16>>16;Y=G+65526|0;b=(a[l>>1]|0)+65523&65535;i[ae>>1]=b;E=(a[l+2>>1]|0)+65522&65535;i[ae+2>>1]=E;ne=Y<<16>>16;ie=((Y<<17>>17|0)==(ne|0)?Y<<1:ne>>>15^32767)+15+(a[l+4>>1]|0)&65535;i[ae+4>>1]=ie;oe=(a[l+6>>1]|0)+ne&65535;i[ae+6>>1]=oe;l=ne+1+(a[l+8>>1]|0)&65535;i[ae+8>>1]=l;E=E<<16>>16>b<<16>>16?E:b;E=ie<<16>>16>E<<16>>16?ie:E;E=oe<<16>>16>E<<16>>16?oe:E;E=(Gn(l<<16>>16>E<<16>>16?l:E,1,j)|0)&65535;l=b;b=0;while(1){h=E-(l&65535)|0;l=h&65535;A=a[s+(b<<1)>>1]<<16;h=h<<16>>16;if(l<<16>>16>0)h=l<<16>>16<31?A>>h:0;else{oe=0-h<<16>>16;h=A<<oe;h=(h>>oe|0)==(A|0)?h:A>>31^2147483647}qt(h,Z+(b<<1)|0,J+(b<<1)|0,j);h=b+1|0;if((h|0)==5)break;l=i[ae+(h<<1)>>1]|0;b=h}I=Z+2|0;B=J+2|0;oe=R<<16>>16;$=Z+4|0;Q=J+4|0;re=Z+6|0;te=J+6|0;ne=Z+8|0;ie=J+8|0;P=0;l=2147483647;s=0;h=0;while(1){F=i[z+(s<<1)>>1]|0;R=ee(F,F)|0;if(R>>>0>1073741823){o[j>>2]=1;R=32767}else R=R>>>15;E=i[J>>1]|0;A=R<<16>>16;R=ee(A,i[Z>>1]|0)|0;if((R|0)==1073741824){o[j>>2]=1;b=2147483647}else b=R<<1;x=(ee(E<<16>>16,A)|0)>>15;R=b+(x<<1)|0;if((b^x|0)>0&(R^b|0)<0){o[j>>2]=1;R=(b>>>31)+2147483647|0}E=i[B>>1]|0;A=ee(i[I>>1]|0,F)|0;if((A|0)!=1073741824){b=(A<<1)+R|0;if((A^R|0)>0&(b^R|0)<0){o[j>>2]=1;b=(R>>>31)+2147483647|0}}else{o[j>>2]=1;b=2147483647}R=(ee(E<<16>>16,F)|0)>>15;if((R|0)>32767){o[j>>2]=1;R=32767}x=R<<16;R=(x>>15)+b|0;if((x>>16^b|0)>0&(R^b|0)<0){o[j>>2]=1;x=(b>>>31)+2147483647|0}else x=R;L=(x>>>31)+2147483647|0;N=s&65535;R=P;O=0;C=U;do{A=(ee(i[C>>1]|0,oe)|0)>>15;C=C+6|0;if((A|0)>32767){o[j>>2]=1;A=32767}T=A<<16>>16;A=ee(T,T)|0;if((A|0)==1073741824){o[j>>2]=1;D=2147483647}else D=A<<1;qt(D,le,ue,j);A=ee(T,F)|0;if((A|0)==1073741824){o[j>>2]=1;D=2147483647}else D=A<<1;qt(D,fe,se,j);b=i[Q>>1]|0;M=i[ue>>1]|0;A=i[$>>1]|0;E=i[le>>1]|0;P=ee(E,A)|0;if((P|0)!=1073741824){D=(P<<1)+x|0;if((P^x|0)>0&(D^x|0)<0){o[j>>2]=1;D=L}}else{o[j>>2]=1;D=2147483647}P=(ee(M<<16>>16,A)|0)>>15;if((P|0)>32767){o[j>>2]=1;P=32767}M=P<<16;P=(M>>15)+D|0;if((M>>16^D|0)>0&(P^D|0)<0){o[j>>2]=1;P=(D>>>31)+2147483647|0}D=(ee(E,b<<16>>16)|0)>>15;if((D|0)>32767){o[j>>2]=1;D=32767}M=D<<16;D=(M>>15)+P|0;if((M>>16^P|0)>0&(D^P|0)<0){o[j>>2]=1;D=(P>>>31)+2147483647|0}A=i[te>>1]|0;P=ee(i[re>>1]|0,T)|0;if((P|0)!=1073741824){M=(P<<1)+D|0;if((P^D|0)>0&(M^D|0)<0){o[j>>2]=1;M=(D>>>31)+2147483647|0}}else{o[j>>2]=1;M=2147483647}A=(ee(A<<16>>16,T)|0)>>15;if((A|0)>32767){o[j>>2]=1;A=32767}T=A<<16;A=(T>>15)+M|0;if((T>>16^M|0)>0&(A^M|0)<0){o[j>>2]=1;A=(M>>>31)+2147483647|0}E=i[ie>>1]|0;M=i[se>>1]|0;b=i[ne>>1]|0;S=i[fe>>1]|0;P=ee(S,b)|0;do{if((P|0)==1073741824){o[j>>2]=1;P=2147483647}else{D=(P<<1)+A|0;if(!((P^A|0)>0&(D^A|0)<0)){P=D;break}o[j>>2]=1;P=(A>>>31)+2147483647|0}}while(0);D=(ee(M<<16>>16,b)|0)>>15;if((D|0)>32767){o[j>>2]=1;D=32767}T=D<<16;D=(T>>15)+P|0;if((T>>16^P|0)>0&(D^P|0)<0){o[j>>2]=1;D=(P>>>31)+2147483647|0}A=(ee(S,E<<16>>16)|0)>>15;if((A|0)>32767){o[j>>2]=1;A=32767}T=A<<16;A=(T>>15)+D|0;if((T>>16^D|0)>0&(A^D|0)<0){o[j>>2]=1;A=(D>>>31)+2147483647|0}T=(A|0)<(l|0);R=T?O:R;h=T?N:h;l=T?A:l;O=O+1<<16>>16}while(O<<16>>16<32);s=s+1|0;if((s|0)==3){A=R;s=h;break}else P=R}B=(A<<16>>16)*3|0;l=i[U+(B<<1)>>1]|0;i[g>>1]=i[U+(B+1<<1)>>1]|0;i[k>>1]=i[U+(B+2<<1)>>1]|0;l=ee(l<<16>>16,oe)|0;if((l|0)==1073741824){o[j>>2]=1;R=2147483647}else R=l<<1;B=9-G|0;U=B&65535;B=B<<16>>16;I=U<<16>>16>0;if(I)R=U<<16>>16<31?R>>B:0;else{x=0-B<<16>>16;F=R<<x;R=(F>>x|0)==(R|0)?F:R>>31^2147483647}i[y>>1]=R>>>16;F=s<<16>>16;z=i[z+(F<<1)>>1]|0;i[v>>1]=z;q=i[q+(F<<1)>>1]|0;Kr(r,t,n,z,m,X,K,V,j);At(e,i[V>>1]|0,i[y>>1]|0,W,j);if(!((i[X>>1]|0)!=0&(i[W>>1]|0)>0)){j=A;g=o[_>>2]|0;y=g+2|0;i[g>>1]=q;g=g+4|0;o[_>>2]=g;i[y>>1]=j;c=ce;return}T=X+6|0;i[T>>1]=f;D=K+6|0;i[D>>1]=u;d=((xi(w,d,j)|0)&65535)+10|0;E=d<<16>>16;if((d&65535)<<16>>16<0){h=0-E<<16;if((h|0)<983040)p=p<<16>>16>>(h>>16)&65535;else p=0}else{h=p<<16>>16;b=h<<E;if((b<<16>>16>>E|0)==(h|0))p=b&65535;else p=(h>>>15^32767)&65535}l=i[v>>1]|0;R=i[W>>1]|0;H=o[H>>2]|0;b=i[y>>1]|0;W=10-G|0;E=W<<16>>16;if((W&65535)<<16>>16<0){h=0-E<<16;if((h|0)<983040)f=b<<16>>16>>(h>>16)&65535;else f=0}else{h=b<<16>>16;b=h<<E;if((b<<16>>16>>E|0)==(h|0))f=b&65535;else f=(h>>>15^32767)&65535}s=l<<16>>16;h=ee(s,s)|0;if(h>>>0>1073741823){o[j>>2]=1;l=32767}else l=h>>>15;A=Gn(32767-(R&65535)&65535,1,j)|0;R=R<<16>>16;h=ee(i[X+2>>1]|0,R)|0;if((h|0)==1073741824){o[j>>2]=1;h=2147483647}else h=h<<1;W=h<<1;h=ee(((W>>1|0)==(h|0)?W:h>>31^2147418112)>>16,l<<16>>16)|0;if((h|0)==1073741824){o[j>>2]=1;P=2147483647}else P=h<<1;M=(a[K+2>>1]|0)+65521|0;E=M&65535;h=ee(i[X+4>>1]|0,R)|0;if((h|0)==1073741824){o[j>>2]=1;l=2147483647}else l=h<<1;h=l<<1;h=(ee(((h>>1|0)==(l|0)?h:l>>31^2147418112)>>16,s)|0)>>15;if((h|0)>32767){o[j>>2]=1;h=32767}i[$>>1]=h;l=Y&65535;i[le>>1]=l;l=Gn(i[K+4>>1]|0,l,j)|0;h=ee(i[T>>1]|0,R)|0;if((h|0)==1073741824){o[j>>2]=1;h=2147483647}else h=h<<1;S=h<<1;i[re>>1]=((S>>1|0)==(h|0)?S:h>>31^2147418112)>>>16;S=((G<<17>>17|0)==(G|0)?G<<1:G>>>15^32767)+65529&65535;i[le>>1]=S;S=Gn(i[D>>1]|0,S,j)|0;h=(ee(i[T>>1]|0,A<<16>>16)|0)>>15;if((h|0)>32767){o[j>>2]=1;h=32767}i[ne>>1]=h;A=Gn(S,1,j)|0;b=ee(i[X>>1]|0,R)|0;if((b|0)==1073741824){o[j>>2]=1;h=2147483647}else h=b<<1;D=Ni(h,le,j)|0;s=(a[le>>1]|0)+47|0;i[le>>1]=s;s=(a[K>>1]|0)-(s&65535)|0;R=s+31&65535;R=E<<16>>16>R<<16>>16?E:R;R=l<<16>>16>R<<16>>16?l:R;R=S<<16>>16>R<<16>>16?S:R;R=(A<<16>>16>R<<16>>16?A:R)<<16>>16;b=R-(M&65535)|0;h=b&65535;b=b<<16>>16;if(h<<16>>16>0)x=h<<16>>16<31?P>>b:0;else{K=0-b<<16>>16;x=P<<K;x=(x>>K|0)==(P|0)?x:P>>31^2147483647}E=R-(l&65535)|0;h=E&65535;b=a[$>>1]<<16;E=E<<16>>16;if(h<<16>>16>0)b=h<<16>>16<31?b>>E:0;else{X=0-E<<16>>16;K=b<<X;b=(K>>X|0)==(b|0)?K:b>>31^2147483647}qt(b,$,Q,j);S=R-(S&65535)|0;b=S&65535;E=a[re>>1]<<16;S=S<<16>>16;if(b<<16>>16>0)b=b<<16>>16<31?E>>S:0;else{K=0-S<<16>>16;b=E<<K;b=(b>>K|0)==(E|0)?b:E>>31^2147483647}qt(b,re,te,j);S=R-(A&65535)|0;b=S&65535;E=a[ne>>1]<<16;S=S<<16>>16;if(b<<16>>16>0)b=b<<16>>16<31?E>>S:0;else{K=0-S<<16>>16;b=E<<K;b=(b>>K|0)==(E|0)?b:E>>31^2147483647}qt(b,ne,ie,j);S=R+65505|0;i[le>>1]=S;S=S-(s&65535)|0;b=Ci(S&65535,1,j)|0;E=b<<16>>16;if(b<<16>>16>0)E=b<<16>>16<31?D>>E:0;else{K=0-E<<16>>16;E=D<<K;E=(E>>K|0)==(D|0)?E:D>>31^2147483647}do{if(!(S&1))P=E;else{qt(E,Z,J,j);b=i[J>>1]|0;E=i[Z>>1]|0;if((E*23170|0)==1073741824){o[j>>2]=1;S=2147483647}else S=E*46340|0;Z=(b<<16>>16)*23170>>15;E=S+(Z<<1)|0;if(!((S^Z|0)>0&(E^S|0)<0)){P=E;break}o[j>>2]=1;P=(S>>>31)+2147483647|0}}while(0);T=(x>>>31)+2147483647|0;D=2147483647;M=0;E=0;O=H;while(1){b=(ee(i[O>>1]|0,oe)|0)>>15;O=O+6|0;if((b|0)>32767){o[j>>2]=1;b=32767}S=b&65535;if(S<<16>>16>=f<<16>>16)break;l=b<<16>>16;b=ee(l,l)|0;if((b|0)==1073741824){o[j>>2]=1;h=2147483647}else h=b<<1;qt(h,ue,fe,j);b=(xi(S,p,j)|0)<<16>>16;b=ee(b,b)|0;if((b|0)==1073741824){o[j>>2]=1;b=2147483647}else b=b<<1;qt(b,se,ae,j);S=i[Q>>1]|0;h=ee(i[$>>1]|0,l)|0;do{if((h|0)==1073741824){o[j>>2]=1;h=2147483647}else{b=(h<<1)+x|0;if(!((h^x|0)>0&(b^x|0)<0)){h=b;break}o[j>>2]=1;h=T}}while(0);b=(ee(S<<16>>16,l)|0)>>15;if((b|0)>32767){o[j>>2]=1;b=32767}Z=b<<16;b=(Z>>15)+h|0;if((Z>>16^h|0)>0&(b^h|0)<0){o[j>>2]=1;b=(h>>>31)+2147483647|0}s=i[te>>1]|0;A=i[fe>>1]|0;l=i[re>>1]|0;R=i[ue>>1]|0;h=ee(R,l)|0;do{if((h|0)==1073741824){o[j>>2]=1;S=2147483647}else{S=(h<<1)+b|0;if(!((h^b|0)>0&(S^b|0)<0))break;o[j>>2]=1;S=(b>>>31)+2147483647|0}}while(0);h=(ee(A<<16>>16,l)|0)>>15;if((h|0)>32767){o[j>>2]=1;h=32767}Z=h<<16;h=(Z>>15)+S|0;if((Z>>16^S|0)>0&(h^S|0)<0){o[j>>2]=1;h=(S>>>31)+2147483647|0}b=(ee(R,s<<16>>16)|0)>>15;if((b|0)>32767){o[j>>2]=1;b=32767}Z=b<<16;b=(Z>>15)+h|0;if((Z>>16^h|0)>0&(b^h|0)<0){o[j>>2]=1;b=(h>>>31)+2147483647|0}b=Ni(b,le,j)|0;S=Ci(i[le>>1]|0,1,j)|0;h=S<<16>>16;if(S<<16>>16>0)S=S<<16>>16<31?b>>h:0;else{Z=0-h<<16>>16;S=b<<Z;S=(S>>Z|0)==(b|0)?S:b>>31^2147483647}b=S-P|0;if(((b^S)&(S^P)|0)<0){o[j>>2]=1;b=(S>>>31)+2147483647|0}b=(Oi(b,j)|0)<<16>>16;b=ee(b,b)|0;if((b|0)==1073741824){o[j>>2]=1;S=2147483647}else S=b<<1;R=i[ie>>1]|0;l=i[ae>>1]|0;A=i[ne>>1]|0;s=i[se>>1]|0;h=ee(s,A)|0;do{if((h|0)==1073741824){o[j>>2]=1;b=2147483647}else{b=(h<<1)+S|0;if(!((h^S|0)>0&(b^S|0)<0))break;o[j>>2]=1;b=(S>>>31)+2147483647|0}}while(0);h=(ee(l<<16>>16,A)|0)>>15;if((h|0)>32767){o[j>>2]=1;h=32767}Z=h<<16;h=(Z>>15)+b|0;if((Z>>16^b|0)>0&(h^b|0)<0){o[j>>2]=1;h=(b>>>31)+2147483647|0}b=(ee(s,R<<16>>16)|0)>>15;if((b|0)>32767){o[j>>2]=1;b=32767}Z=b<<16;b=(Z>>15)+h|0;if((Z>>16^h|0)>0&(b^h|0)<0){o[j>>2]=1;b=(h>>>31)+2147483647|0}h=(b|0)<(D|0);E=h?M:E;M=M+1<<16>>16;if(M<<16>>16>=32)break;else D=h?b:D}fe=(E<<16>>16)*3|0;S=i[H+(fe<<1)>>1]|0;i[g>>1]=i[H+(fe+1<<1)>>1]|0;i[k>>1]=i[H+(fe+2<<1)>>1]|0;S=ee(S<<16>>16,oe)|0;if((S|0)==1073741824){o[j>>2]=1;S=2147483647}else S=S<<1;if(I)S=U<<16>>16<31?S>>B:0;else{g=0-B<<16>>16;j=S<<g;S=(j>>g|0)==(S|0)?j:S>>31^2147483647}i[y>>1]=S>>>16;j=E;g=o[_>>2]|0;y=g+2|0;i[g>>1]=q;g=g+4|0;o[_>>2]=g;i[y>>1]=j;c=ce;return}function wn(e,r,t,n,o,s,a,l){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;a=a|0;l=l|0;var u=0,f=0,c=0,d=0,h=0;h=(e|0)==7;u=i[n>>1]|0;if(h){u=u<<16>>16>>>1&65535;d=ki(r,t,l)|0;r=d<<16;e=r>>16;if((d<<20>>20|0)==(e|0))e=r>>12;else e=e>>>15^32767}else{d=ki(r,t,l)|0;r=d<<16;e=r>>16;if((d<<21>>21|0)==(e|0))e=r>>11;else e=e>>>15^32767}d=e<<16>>16;l=u<<16>>16;r=l-((ee(d,i[a>>1]|0)|0)>>>15&65535)|0;r=((r&32768|0)!=0?0-r|0:r)&65535;f=1;e=0;c=a;while(1){c=c+6|0;u=l-((ee(i[c>>1]|0,d)|0)>>>15&65535)|0;t=u<<16;u=(t|0)<0?0-(t>>16)|0:u;t=(u<<16>>16|0)<(r<<16>>16|0);e=t?f:e;f=f+1<<16>>16;if(f<<16>>16>=32)break;else r=t?u&65535:r}c=(e<<16>>16)*196608>>16;i[n>>1]=(ee(i[a+(c<<1)>>1]|0,d)|0)>>>15<<(h&1);i[o>>1]=i[a+(c+1<<1)>>1]|0;i[s>>1]=i[a+(c+2<<1)>>1]|0;return e|0}function bn(e,r,t,n,o,s,a){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;a=a|0;var l=0,u=0,f=0,c=0,d=0,h=0;l=xi(i[t>>1]|0,i[s>>1]|0,a)|0;l=(l&65535)-((l&65535)>>>15&65535)|0;l=(l<<16>>31^l)&65535;f=0;c=1;while(1){u=i[s+(c<<1)>>1]|0;if(u<<16>>16>r<<16>>16)u=l;else{u=xi(i[t>>1]|0,u,a)|0;u=(u&65535)-((u&65535)>>>15&65535)|0;u=(u<<16>>31^u)&65535;h=u<<16>>16<l<<16>>16;u=h?u:l;f=h?c&65535:f}c=c+1|0;if((c|0)==16)break;else l=u}if((e|0)!=5){l=i[s+(f<<16>>16<<1)>>1]|0;if((e|0)==7){i[t>>1]=l&65532;return f|0}else{i[t>>1]=l;return f|0}}u=f<<16>>16;switch(f<<16>>16){case 0:{l=0;break}case 15:{d=8;break}default:if((i[s+(u+1<<1)>>1]|0)>r<<16>>16)d=8;else l=u+65535&65535}if((d|0)==8)l=u+65534&65535;i[o>>1]=l;h=l<<16>>16;i[n>>1]=i[s+(h<<1)>>1]|0;h=h+1|0;i[o+2>>1]=h;h=h<<16>>16;i[n+2>>1]=i[s+(h<<1)>>1]|0;h=h+1|0;i[o+4>>1]=h;i[n+4>>1]=i[s+(h<<16>>16<<1)>>1]|0;i[t>>1]=i[s+(u<<1)>>1]|0;return f|0}function vn(e,r,t,n,s,l,u,f,d,h,m,p){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;p=p|0;var w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0;x=c;c=c+32|0;v=x+20|0;y=x+10|0;b=x;switch(e|0){case 3:case 4:case 6:{m=m+84|0;N=128;break}default:{m=m+80|0;N=64}}L=o[m>>2]|0;w=ki(14,t,p)|0;C=r<<16>>16;O=C+65525|0;e=(a[s>>1]|0)+65523&65535;i[b>>1]=e;r=(a[s+2>>1]|0)+65522&65535;i[b+2>>1]=r;T=O<<16>>16;T=Gn(i[s+4>>1]|0,((O<<17>>17|0)==(T|0)?O<<1:T>>>15^32767)+15&65535,p)|0;i[b+4>>1]=T;O=Gn(i[s+6>>1]|0,O&65535,p)|0;i[b+6>>1]=O;s=Gn(i[s+8>>1]|0,C+65526&65535,p)|0;i[b+8>>1]=s;r=r<<16>>16>e<<16>>16?r:e;r=T<<16>>16>r<<16>>16?T:r;r=O<<16>>16>r<<16>>16?O:r;r=(s<<16>>16>r<<16>>16?s:r)+1&65535;s=0;while(1){t=r-(e&65535)|0;m=t&65535;e=a[n+(s<<1)>>1]<<16;t=t<<16>>16;if(m<<16>>16>0)m=m<<16>>16<31?e>>t:0;else{O=0-t<<16>>16;m=e<<O;m=(m>>O|0)==(e|0)?m:e>>31^2147483647}qt(m,v+(s<<1)|0,y+(s<<1)|0,p);m=s+1|0;if((m|0)==5)break;e=i[b+(m<<1)>>1]|0;s=m}O=w<<16>>16;j=i[v>>1]|0;S=i[y>>1]|0;A=i[v+2>>1]|0;R=i[y+2>>1]|0;M=i[v+4>>1]|0;D=i[y+4>>1]|0;P=i[v+6>>1]|0;T=i[y+6>>1]|0;E=i[v+8>>1]|0;g=i[y+8>>1]|0;r=2147483647;k=0;m=0;_=L;while(1){s=i[_>>1]|0;if(s<<16>>16>l<<16>>16)w=r;else{w=(ee(i[_+2>>1]|0,O)|0)>>15;if((w|0)>32767){o[p>>2]=1;w=32767}y=s<<16>>16;s=ee(y,y)|0;if(s>>>0>1073741823){o[p>>2]=1;b=32767}else b=s>>>15;t=w<<16>>16;w=ee(t,t)|0;if(w>>>0>1073741823){o[p>>2]=1;v=32767}else v=w>>>15;n=(ee(t,y)|0)>>15;if((n|0)>32767){o[p>>2]=1;n=32767}w=b<<16>>16;b=ee(j,w)|0;if((b|0)==1073741824){o[p>>2]=1;s=2147483647}else s=b<<1;w=(ee(S,w)|0)>>15;b=s+(w<<1)|0;if((s^w|0)>0&(b^s|0)<0){o[p>>2]=1;b=(s>>>31)+2147483647|0}w=ee(A,y)|0;if((w|0)==1073741824){o[p>>2]=1;s=2147483647}else s=w<<1;y=(ee(R,y)|0)>>15;w=s+(y<<1)|0;if((s^y|0)>0&(w^s|0)<0){o[p>>2]=1;w=(s>>>31)+2147483647|0}s=w+b|0;if((w^b|0)>-1&(s^b|0)<0){o[p>>2]=1;s=(b>>>31)+2147483647|0}w=v<<16>>16;b=ee(M,w)|0;if((b|0)==1073741824){o[p>>2]=1;e=2147483647}else e=b<<1;y=(ee(D,w)|0)>>15;b=e+(y<<1)|0;if((e^y|0)>0&(b^e|0)<0){o[p>>2]=1;b=(e>>>31)+2147483647|0}w=b+s|0;if((b^s|0)>-1&(w^s|0)<0){o[p>>2]=1;e=(s>>>31)+2147483647|0}else e=w;w=ee(P,t)|0;if((w|0)==1073741824){o[p>>2]=1;b=2147483647}else b=w<<1;y=(ee(T,t)|0)>>15;w=b+(y<<1)|0;if((b^y|0)>0&(w^b|0)<0){o[p>>2]=1;w=(b>>>31)+2147483647|0}s=w+e|0;if((w^e|0)>-1&(s^e|0)<0){o[p>>2]=1;b=(e>>>31)+2147483647|0}else b=s;s=n<<16>>16;w=ee(E,s)|0;if((w|0)==1073741824){o[p>>2]=1;e=2147483647}else e=w<<1;y=(ee(g,s)|0)>>15;w=e+(y<<1)|0;if((e^y|0)>0&(w^e|0)<0){o[p>>2]=1;s=(e>>>31)+2147483647|0}else s=w;w=s+b|0;if((s^b|0)>-1&(w^b|0)<0){o[p>>2]=1;w=(b>>>31)+2147483647|0}y=(w|0)<(r|0);w=y?w:r;m=y?k:m}_=_+8|0;k=k+1<<16>>16;if((k<<16>>16|0)>=(N|0))break;else r=w}l=m<<16>>16;l=((l<<18>>18|0)==(l|0)?l<<2:l>>>15^32767)<<16>>16;i[u>>1]=i[L+(l<<1)>>1]|0;r=i[L+(l+1<<1)>>1]|0;i[d>>1]=i[L+(l+2<<1)>>1]|0;i[h>>1]=i[L+(l+3<<1)>>1]|0;r=ee(r<<16>>16,O)|0;if((r|0)==1073741824){o[p>>2]=1;e=2147483647}else e=r<<1;t=10-C|0;r=t&65535;t=t<<16>>16;if(r<<16>>16>0){p=r<<16>>16<31?e>>t:0;p=p>>>16;p=p&65535;i[f>>1]=p;c=x;return m|0}else{d=0-t<<16>>16;p=e<<d;p=(p>>d|0)==(e|0)?p:e>>31^2147483647;p=p>>>16;p=p&65535;i[f>>1]=p;c=x;return m|0}return 0}function yn(e,r,t,n,o,s,l,u,f){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;l=l|0;u=u|0;f=f|0;var d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0,G=0,X=0,K=0,J=0,Z=0,$=0,Q=0,re=0,te=0,ne=0,ie=0,oe=0,se=0,ae=0,le=0,ue=0,fe=0,ce=0,de=0,he=0,me=0,pe=0,we=0,be=0,ve=0,ye=0,ge=0,ke=0,_e=0;_e=c;c=c+160|0;ke=_e;h=e<<16>>16;ye=e<<16>>16==10;ge=i[l+(i[s>>1]<<1)>>1]|0;if(e<<16>>16>0){f=0;d=u;while(1){i[d>>1]=f;f=f+1<<16>>16;if(f<<16>>16>=e<<16>>16)break;else d=d+2|0}}if(t<<16>>16<=1){c=_e;return}be=s+2|0;ve=ge<<16>>16;me=n+(ve<<1)|0;pe=o+(ve*80|0)+(ve<<1)|0;we=s+6|0;K=r&65535;J=s+4|0;Z=s+10|0;$=s+8|0;Q=s+14|0;re=s+12|0;te=s+18|0;ne=s+16|0;ie=u+2|0;oe=u+4|0;se=u+6|0;ae=u+8|0;le=u+10|0;ue=u+12|0;fe=u+14|0;ce=u+16|0;de=u+18|0;he=e<<16>>16>2;G=s+(h+-1<<1)|0;W=1;X=1;B=0;U=0;Y=-1;while(1){H=i[l+(i[be>>1]<<1)>>1]|0;V=H<<16>>16;r=(a[n+(V<<1)>>1]|0)+(a[me>>1]|0)|0;d=(i[o+(ve*80|0)+(V<<1)>>1]<<13)+32768+((i[o+(V*80|0)+(V<<1)>>1]|0)+(i[pe>>1]|0)<<12)|0;h=i[we>>1]|0;if(h<<16>>16<40){h=h<<16>>16;m=ke;while(1){z=(i[o+(h*80|0)+(h<<1)>>1]|0)>>>1;I=i[o+(h*80|0)+(ve<<1)>>1]|0;q=i[o+(h*80|0)+(V<<1)>>1]|0;i[m>>1]=r+(a[n+(h<<1)>>1]|0);i[m+2>>1]=(I+2+z+q|0)>>>2;h=h+K|0;if((h&65535)<<16>>16<40){h=h<<16>>16;m=m+4|0}else break}R=i[we>>1]|0}else R=h;r=i[J>>1]|0;A=d>>12;h=r<<16>>16;e:do{if(r<<16>>16<40){S=R<<16>>16;if(R<<16>>16<40){m=1;w=r;v=R;b=0;p=-1}else while(1){h=h+K|0;if((h&65535)<<16>>16<40)h=h<<16>>16;else{m=1;q=r;z=R;h=0;break e}}while(1){j=((i[o+(h*80|0)+(h<<1)>>1]|0)+A>>1)+(i[o+(h*80|0)+(ve<<1)>>1]|0)+(i[o+(h*80|0)+(V<<1)>>1]|0)|0;E=a[n+(h<<1)>>1]|0;k=S;_=R;g=ke;y=b;while(1){d=(a[g>>1]|0)+E|0;f=d<<16>>16;f=(ee(f,f)|0)>>>15;b=(j+(i[o+(h*80|0)+(k<<1)>>1]|0)>>2)+(i[g+2>>1]|0)>>1;if((ee(f<<16>>16,m<<16>>16)|0)>(ee(b,p<<16>>16)|0)){m=b&65535;w=r;v=_;b=d&65535;p=f&65535}else b=y;d=k+K|0;_=d&65535;if(_<<16>>16>=40)break;else{k=d<<16>>16;g=g+4|0;y=b}}h=h+K|0;r=h&65535;if(r<<16>>16<40)h=h<<16>>16;else{q=w;z=v;h=b;break}}}else{m=1;q=r;z=R;h=0}}while(0);w=m<<16>>16<<15;m=i[Z>>1]|0;if(m<<16>>16<40){d=q<<16>>16;f=z<<16>>16;r=h&65535;m=m<<16>>16;h=ke;while(1){N=i[o+(m*80|0)+(m<<1)>>1]>>1;L=i[o+(m*80|0)+(ve<<1)>>1]|0;x=i[o+(m*80|0)+(V<<1)>>1]|0;F=i[o+(m*80|0)+(d<<1)>>1]|0;I=i[o+(m*80|0)+(f<<1)>>1]|0;i[h>>1]=(a[n+(m<<1)>>1]|0)+r;i[h+2>>1]=(L+2+N+x+F+I|0)>>>2;m=m+K|0;if((m&65535)<<16>>16<40){m=m<<16>>16;h=h+4|0}else break}N=i[Z>>1]|0}else N=m;p=i[$>>1]|0;m=p<<16>>16;e:do{if(p<<16>>16<40){M=q<<16>>16;D=z<<16>>16;P=N<<16>>16;R=w+32768|0;if(N<<16>>16<40){b=1;w=p;r=N;v=p;h=0;p=-1}else while(1){m=m+K|0;if((m&65535)<<16>>16<40)m=m<<16>>16;else{m=1;I=p;F=N;h=0;break e}}while(1){f=a[n+(m<<1)>>1]|0;A=(i[o+(m*80|0)+(V<<1)>>1]|0)+(i[o+(m*80|0)+(ve<<1)>>1]|0)+(i[o+(m*80|0)+(M<<1)>>1]|0)+(i[o+(m*80|0)+(D<<1)>>1]|0)|0;S=R+(i[o+(m*80|0)+(m<<1)>>1]<<11)|0;E=P;k=N;j=ke;while(1){y=(a[j>>1]|0)+f|0;d=S+(i[j+2>>1]<<14)+(A+(i[o+(m*80|0)+(E<<1)>>1]|0)<<12)|0;g=y<<16>>16;g=(ee(g,g)|0)>>>15;if((ee(g<<16>>16,b<<16>>16)|0)>(ee(d>>16,p<<16>>16)|0)){b=d>>>16&65535;_=v;r=k;h=y&65535;p=g&65535}else _=w;w=E+K|0;k=w&65535;if(k<<16>>16>=40){w=_;break}else{E=w<<16>>16;w=_;j=j+4|0}}m=m+K|0;v=m&65535;if(v<<16>>16<40)m=m<<16>>16;else{m=b;I=w;F=r;break}}}else{m=1;I=p;F=N;h=0}}while(0);b=m<<16>>16<<15;m=i[Q>>1]|0;if(m<<16>>16<40){d=q<<16>>16;f=z<<16>>16;p=I<<16>>16;w=F<<16>>16;r=h&65535;m=m<<16>>16;h=ke;while(1){T=i[o+(m*80|0)+(m<<1)>>1]>>1;P=i[o+(ve*80|0)+(m<<1)>>1]|0;O=i[o+(V*80|0)+(m<<1)>>1]|0;C=i[o+(d*80|0)+(m<<1)>>1]|0;L=i[o+(f*80|0)+(m<<1)>>1]|0;N=i[o+(p*80|0)+(m<<1)>>1]|0;x=i[o+(w*80|0)+(m<<1)>>1]|0;i[h>>1]=(a[n+(m<<1)>>1]|0)+r;i[h+2>>1]=(P+4+T+O+C+L+N+x|0)>>>3;m=m+K|0;if((m&65535)<<16>>16<40){m=m<<16>>16;h=h+4|0}else break}r=i[Q>>1]|0}else r=m;v=i[re>>1]|0;if(v<<16>>16<40){N=q<<16>>16;T=z<<16>>16;P=I<<16>>16;D=F<<16>>16;M=r<<16>>16;R=r<<16>>16<40;O=b+32768|0;L=v<<16>>16;f=1;_=v;k=r;C=v;w=0;m=-1;while(1){if(R){b=a[n+(L<<1)>>1]|0;h=(i[o+(L*80|0)+(V<<1)>>1]|0)+(i[o+(L*80|0)+(ve<<1)>>1]|0)+(i[o+(L*80|0)+(N<<1)>>1]|0)+(i[o+(L*80|0)+(T<<1)>>1]|0)+(i[o+(L*80|0)+(P<<1)>>1]|0)+(i[o+(L*80|0)+(D<<1)>>1]|0)|0;p=O+(i[o+(L*80|0)+(L<<1)>>1]<<10)|0;g=M;v=r;S=k;A=ke;while(1){j=(a[A>>1]|0)+b|0;k=p+(i[A+2>>1]<<14)+(h+(i[o+(L*80|0)+(g<<1)>>1]|0)<<11)|0;E=j<<16>>16;E=(ee(E,E)|0)>>>15;if((ee(E<<16>>16,f<<16>>16)|0)>(ee(k>>16,m<<16>>16)|0)){f=k>>>16&65535;_=C;k=v;w=j&65535;m=E&65535}else k=S;y=g+K|0;v=y&65535;if(v<<16>>16>=40)break;else{g=y<<16>>16;S=k;A=A+4|0}}}v=L+K|0;C=v&65535;if(C<<16>>16>=40){x=k;break}else L=v<<16>>16}}else{f=1;_=v;x=r;w=0;m=-1}if(ye){g=f<<16>>16<<15;m=i[te>>1]|0;if(m<<16>>16<40){h=q<<16>>16;r=z<<16>>16;d=I<<16>>16;f=F<<16>>16;b=_<<16>>16;v=x<<16>>16;p=w&65535;m=m<<16>>16;w=ke;while(1){P=i[o+(m*80|0)+(m<<1)>>1]>>1;D=i[o+(ve*80|0)+(m<<1)>>1]|0;T=i[o+(V*80|0)+(m<<1)>>1]|0;O=i[o+(h*80|0)+(m<<1)>>1]|0;C=i[o+(r*80|0)+(m<<1)>>1]|0;L=i[o+(d*80|0)+(m<<1)>>1]|0;N=i[o+(f*80|0)+(m<<1)>>1]|0;B=i[o+(b*80|0)+(m<<1)>>1]|0;U=i[o+(v*80|0)+(m<<1)>>1]|0;i[w>>1]=(a[n+(m<<1)>>1]|0)+p;i[w+2>>1]=(D+4+P+T+O+C+L+N+B+U|0)>>>3;m=m+K|0;if((m&65535)<<16>>16<40){m=m<<16>>16;w=w+4|0}else break}N=i[te>>1]|0}else N=m;b=i[ne>>1]|0;if(b<<16>>16<40){P=q<<16>>16;D=z<<16>>16;M=I<<16>>16;d=F<<16>>16;T=_<<16>>16;O=x<<16>>16;C=N<<16>>16;L=N<<16>>16<40;R=g+32768|0;h=b<<16>>16;f=1;v=b;w=N;r=b;m=-1;while(1){if(L){g=a[n+(h<<1)>>1]|0;p=(i[o+(V*80|0)+(h<<1)>>1]|0)+(i[o+(ve*80|0)+(h<<1)>>1]|0)+(i[o+(P*80|0)+(h<<1)>>1]|0)+(i[o+(D*80|0)+(h<<1)>>1]|0)+(i[o+(M*80|0)+(h<<1)>>1]|0)+(i[o+(d*80|0)+(h<<1)>>1]|0)+(i[o+(T*80|0)+(h<<1)>>1]|0)+(i[o+(O*80|0)+(h<<1)>>1]|0)|0;b=R+(i[o+(h*80|0)+(h<<1)>>1]<<9)|0;A=C;E=N;S=ke;while(1){j=(a[S>>1]|0)+g<<16>>16;j=(ee(j,j)|0)>>>15;k=b+(i[S+2>>1]<<13)+(p+(i[o+(h*80|0)+(A<<1)>>1]|0)<<10)|0;if((ee(j<<16>>16,f<<16>>16)|0)>(ee(k>>16,m<<16>>16)|0)){f=k>>>16&65535;v=r;w=E;m=j&65535}y=A+K|0;E=y&65535;if(E<<16>>16>=40)break;else{A=y<<16>>16;S=S+4|0}}}b=h+K|0;r=b&65535;if(r<<16>>16>=40)break;else h=b<<16>>16}}else{f=1;v=b;w=N;m=-1}}else{v=B;w=U}if((ee(m<<16>>16,W<<16>>16)|0)>(ee(f<<16>>16,Y<<16>>16)|0)){i[u>>1]=ge;i[ie>>1]=H;i[oe>>1]=q;i[se>>1]=z;i[ae>>1]=I;i[le>>1]=F;i[ue>>1]=_;i[fe>>1]=x;if(ye){i[ce>>1]=v;i[de>>1]=w}}else{f=W;m=Y}h=i[be>>1]|0;if(he){r=1;d=2;while(1){i[s+(r<<1)>>1]=i[s+(d<<1)>>1]|0;d=d+1|0;if((d&65535)<<16>>16==e<<16>>16)break;else r=r+1|0}}i[G>>1]=h;X=X+1<<16>>16;if(X<<16>>16>=t<<16>>16)break;else{W=f;B=v;U=w;Y=m}}c=_e;return}function gn(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0,u=0,f=0;l=39;while(1){a=e+(l<<1)|0;s=i[a>>1]|0;o=r+(l<<1)|0;if(s<<16>>16>-1)i[o>>1]=32767;else{i[o>>1]=-32767;if(s<<16>>16==-32768)s=32767;else s=0-(s&65535)&65535;i[a>>1]=s}i[t+(l<<1)>>1]=s;if((l|0)>0)l=l+-1|0;else break}f=8-(n<<16>>16)|0;if((f|0)>0){u=0;o=0}else return;do{n=0;e=0;a=32767;while(1){r=i[t+(n<<1)>>1]|0;l=r<<16>>16>-1?r<<16>>16<a<<16>>16:0;o=l?e:o;s=n+5|0;e=s&65535;if(e<<16>>16>=40)break;else{n=s<<16>>16;a=l?r:a}}i[t+(o<<16>>16<<1)>>1]=-1;u=u+1<<16>>16}while((u<<16>>16|0)<(f|0));u=0;do{r=1;e=1;s=32767;while(1){n=i[t+(r<<1)>>1]|0;l=n<<16>>16>-1?n<<16>>16<s<<16>>16:0;o=l?e:o;a=r+5|0;e=a&65535;if(e<<16>>16>=40)break;else{r=a<<16>>16;s=l?n:s}}i[t+(o<<16>>16<<1)>>1]=-1;u=u+1<<16>>16}while((u<<16>>16|0)<(f|0));u=0;do{r=2;e=2;s=32767;while(1){n=i[t+(r<<1)>>1]|0;l=n<<16>>16>-1?n<<16>>16<s<<16>>16:0;o=l?e:o;a=r+5|0;e=a&65535;if(e<<16>>16>=40)break;else{r=a<<16>>16;s=l?n:s}}i[t+(o<<16>>16<<1)>>1]=-1;u=u+1<<16>>16}while((u<<16>>16|0)<(f|0));u=0;while(1){r=3;e=3;s=32767;while(1){n=i[t+(r<<1)>>1]|0;l=n<<16>>16>-1?n<<16>>16<s<<16>>16:0;o=l?e:o;a=r+5|0;e=a&65535;if(e<<16>>16>=40){s=o;break}else{r=a<<16>>16;s=l?n:s}}i[t+(s<<16>>16<<1)>>1]=-1;u=u+1<<16>>16;if((u<<16>>16|0)>=(f|0)){o=0;break}else o=s}do{r=4;e=4;u=32767;while(1){n=i[t+(r<<1)>>1]|0;l=n<<16>>16>-1?n<<16>>16<u<<16>>16:0;s=l?e:s;a=r+5|0;e=a&65535;if(e<<16>>16>=40)break;else{r=a<<16>>16;u=l?n:u}}i[t+(s<<16>>16<<1)>>1]=-1;o=o+1<<16>>16}while((o<<16>>16|0)<(f|0));return}function kn(e,r,t,n,s,a,l,u){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;var f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0;j=c;c=c+80|0;E=j;p=40;w=r;b=e;d=256;h=256;while(1){f=i[w>>1]|0;w=w+2|0;f=ee(f,f)|0;if((f|0)!=1073741824){m=(f<<1)+d|0;if((f^d|0)>0&(m^d|0)<0){o[u>>2]=1;d=(d>>>31)+2147483647|0}else d=m}else{o[u>>2]=1;d=2147483647}_=i[b>>1]|0;h=(ee(_<<1,_)|0)+h|0;p=p+-1<<16>>16;if(!(p<<16>>16))break;else b=b+2|0}_=si(d,u)|0;g=_<<5;_=((g>>5|0)==(_|0)?g:_>>31^2147418112)>>16;g=(si(h,u)|0)<<5>>16;k=39;v=r+78|0;y=E+78|0;f=t+78|0;while(1){b=ee(i[v>>1]|0,_)|0;v=v+-2|0;w=b<<1;r=e+(k<<1)|0;d=i[r>>1]|0;p=ee(d<<16>>16,g)|0;if((p|0)!=1073741824){m=(p<<1)+w|0;if((p^w|0)>0&(m^w|0)<0){o[u>>2]=1;m=(b>>>30&1)+2147483647|0}}else{o[u>>2]=1;m=2147483647}h=m<<10;h=Oi((h>>10|0)==(m|0)?h:m>>31^2147483647,u)|0;if(h<<16>>16>-1)i[f>>1]=32767;else{i[f>>1]=-32767;if(h<<16>>16==-32768)h=32767;else h=0-(h&65535)&65535;if(d<<16>>16==-32768)m=32767;else m=0-(d&65535)&65535;i[r>>1]=m}f=f+-2|0;i[y>>1]=h;if((k|0)<=0)break;else{k=k+-1|0;y=y+-2|0}}r=s<<16>>16;if(s<<16>>16<=0){i[a+(r<<1)>>1]=i[a>>1]|0;c=j;return}b=l&65535;w=0;p=-1;f=0;while(1){if((w|0)<40){h=w;m=w&65535;d=-1;while(1){u=i[E+(h<<1)>>1]|0;l=u<<16>>16>d<<16>>16;d=l?u:d;f=l?m:f;h=h+b|0;m=h&65535;if(m<<16>>16>=40)break;else h=h<<16>>16}}else d=-1;i[n+(w<<1)>>1]=f;if(d<<16>>16>p<<16>>16)i[a>>1]=w;else d=p;w=w+1|0;if((w&65535)<<16>>16==s<<16>>16)break;else p=d}f=i[a>>1]|0;i[a+(r<<1)>>1]=f;if(s<<16>>16>1)d=1;else{c=j;return}do{n=f+1<<16>>16;f=n<<16>>16>=s<<16>>16?0:n;i[a+(d<<1)>>1]=f;i[a+(d+r<<1)>>1]=f;d=d+1|0}while((d&65535)<<16>>16!=s<<16>>16);c=j;return}function _n(e){e=e|0;var r=0;if(!e){e=-1;return e|0}o[e>>2]=0;r=Bi(12)|0;if(!r){e=-1;return e|0}i[r>>1]=8;o[e>>2]=r;i[r+2>>1]=3;i[r+4>>1]=0;o[r+8>>2]=0;e=0;return e|0}function En(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function jn(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,a=0;do{if((r|0)==8){n=e+2|0;s=(i[n>>1]|0)+-1<<16>>16;i[n>>1]=s;r=e+8|0;if(!(o[r>>2]|0)){o[t>>2]=1;i[n>>1]=3;break}a=e+4|0;if(s<<16>>16>2&(i[a>>1]|0)>0){o[t>>2]=2;i[a>>1]=(i[a>>1]|0)+-1<<16>>16;break}if(!(s<<16>>16)){o[t>>2]=2;i[n>>1]=i[e>>1]|0;break}else{o[t>>2]=3;break}}else{i[e+2>>1]=i[e>>1]|0;o[t>>2]=0;r=e+8|0}}while(0);o[r>>2]=o[t>>2];return}function Sn(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,i=0,s=0;if(!e){e=-1;return e|0}o[e>>2]=0;t=Bi(12)|0;n=t;if(!t){e=-1;return e|0}o[t>>2]=0;i=t+4|0;o[i>>2]=0;s=t+8|0;o[s>>2]=r;if((an(t)|0)<<16>>16==0?(nt(i,o[s>>2]|0)|0)<<16>>16==0:0){ln(o[t>>2]|0)|0;ot(o[i>>2]|0)|0;o[e>>2]=n;e=0;return e|0}un(t);it(i);Ui(t);e=-1;return e|0}function An(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;un(r);it((o[e>>2]|0)+4|0);Ui(o[e>>2]|0);o[e>>2]=0;return}function Rn(e,r,t,n,s){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;var l=0,u=0,f=0,d=0,h=0;d=c;c=c+448|0;u=d+320|0;f=d;Yi(n|0,0,488)|0;l=0;do{h=t+(l<<1)|0;i[h>>1]=(a[h>>1]|0)&65528;l=l+1|0}while((l|0)!=160);fn(o[e>>2]|0,t,160);h=e+4|0;st(o[h>>2]|0,r,t,u,s,f)|0;cn(o[s>>2]|0,u,n,(o[h>>2]|0)+2392|0);c=d;return}function Mn(e,r,t,n,o,s,a,l,u,f,d,h,m,p,w,b){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;a=a|0;l=l|0;u=u|0;f=f|0;d=d|0;h=h|0;m=m|0;p=p|0;w=w|0;b=b|0;var v=0,y=0,g=0;g=c;c=c+48|0;v=g+22|0;y=g;Ii(o,(e&-2|0)==6?t:r,v);Ii(o,n,y);t=d;r=v;o=t+22|0;do{i[t>>1]=i[r>>1]|0;t=t+2|0;r=r+2|0}while((t|0)<(o|0));Fi(s,d,m,40,f,0);Fi(y,m,m,40,f,0);Ti(s,a,w,40);t=h;r=w;o=t+80|0;do{i[t>>1]=i[r>>1]|0;t=t+2|0;r=r+2|0}while((t|0)<(o|0));Fi(s,h,b,40,l,0);Ti(v,b,p,40);Fi(y,p,p,40,u,0);c=g;return}function Dn(e,r,t,n,o,s,l,u,f,c,d,h,m,p,w,b,v){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;l=l|0;u=u|0;f=f|0;c=c|0;d=d|0;h=h|0;m=m|0;p=p|0;w=w|0;b=b|0;v=v|0;var y=0,g=0,k=0,_=0,E=0;if((r|0)==7){k=11;r=n<<16>>16>>>1&65535;y=2}else{k=13;r=n;y=1}i[b>>1]=n<<16>>16<13017?n:13017;g=t<<16>>16;w=w+(g<<1)|0;b=r<<16>>16;o=o<<16>>16;t=20;r=f;v=w;while(1){f=v+2|0;E=ee(i[v>>1]|0,b)|0;_=ee(i[f>>1]|0,b)|0;E=(ee(i[r>>1]|0,o)|0)+E<<1;_=(ee(i[r+2>>1]|0,o)|0)+_<<1<<y;i[v>>1]=((E<<y)+32768|0)>>>16;i[f>>1]=(_+32768|0)>>>16;t=t+-1<<16>>16;if(!(t<<16>>16))break;else{r=r+4|0;v=v+4|0}}r=n<<16>>16;Fi(s,w,l+(g<<1)|0,40,h,1);t=30;v=0;while(1){_=t+g|0;i[m+(v<<1)>>1]=(a[e+(_<<1)>>1]|0)-(a[l+(_<<1)>>1]|0);_=ee(i[c+(t<<1)>>1]|0,r)|0;E=(ee(i[d+(t<<1)>>1]|0,o)|0)>>k;i[p+(v<<1)>>1]=(a[u+(t<<1)>>1]|0)-(_>>>14)-E;v=v+1|0;if((v|0)==10)break;else t=t+1|0}return}function Pn(e){e=e|0;var r=0;if(!e){e=-1;return e|0}o[e>>2]=0;r=Bi(16)|0;if(!r){e=-1;return e|0}i[r>>1]=0;i[r+2>>1]=0;i[r+4>>1]=0;i[r+6>>1]=0;i[r+8>>1]=0;i[r+10>>1]=0;i[r+12>>1]=0;i[r+14>>1]=0;o[e>>2]=r;e=0;return e|0}function Tn(e){e=e|0;if(!e){e=-1;return e|0}i[e>>1]=0;i[e+2>>1]=0;i[e+4>>1]=0;i[e+6>>1]=0;i[e+8>>1]=0;i[e+10>>1]=0;i[e+12>>1]=0;i[e+14>>1]=0;e=0;return e|0}function On(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function Cn(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,o=0,s=0,l=0;n=a[r+6>>1]|0;t=a[r+8>>1]|0;o=n-t|0;o=(o&65535|0)!=32767?o&65535:32767;s=a[r+10>>1]|0;t=t-s|0;o=(t<<16>>16|0)<(o<<16>>16|0)?t&65535:o;t=a[r+12>>1]|0;s=s-t|0;o=(s<<16>>16|0)<(o<<16>>16|0)?s&65535:o;s=a[r+14>>1]|0;t=t-s|0;o=(t<<16>>16|0)<(o<<16>>16|0)?t&65535:o;s=s-(a[r+16>>1]|0)|0;t=i[r+2>>1]|0;l=a[r+4>>1]|0;r=(t&65535)-l|0;r=(r&65535|0)!=32767?r&65535:32767;n=l-n|0;if(((s<<16>>16|0)<(o<<16>>16|0)?s&65535:o)<<16>>16<1500?1:(((n<<16>>16|0)<(r<<16>>16|0)?n&65535:r)<<16>>16|0)<((t<<16>>16>32e3?600:t<<16>>16>30500?800:1100)|0)){s=(i[e>>1]|0)+1<<16>>16;l=s<<16>>16>11;i[e>>1]=l?12:s;return l&1|0}else{i[e>>1]=0;return 0}return 0}function Ln(e,r,t){e=e|0;r=r|0;t=t|0;r=Ci(r,3,t)|0;r=Gn(r,i[e+2>>1]|0,t)|0;r=Gn(r,i[e+4>>1]|0,t)|0;r=Gn(r,i[e+6>>1]|0,t)|0;r=Gn(r,i[e+8>>1]|0,t)|0;r=Gn(r,i[e+10>>1]|0,t)|0;r=Gn(r,i[e+12>>1]|0,t)|0;return(Gn(r,i[e+14>>1]|0,t)|0)<<16>>16>15565|0}function Nn(e,r,t){e=e|0;r=r|0;t=t|0;var n=0;t=e+4|0;i[e+2>>1]=i[t>>1]|0;n=e+6|0;i[t>>1]=i[n>>1]|0;t=e+8|0;i[n>>1]=i[t>>1]|0;n=e+10|0;i[t>>1]=i[n>>1]|0;t=e+12|0;i[n>>1]=i[t>>1]|0;e=e+14|0;i[t>>1]=i[e>>1]|0;i[e>>1]=r<<16>>16>>>3;return}function xn(e){e=e|0;var r=0,t=0,n=0;if(!e){n=-1;return n|0}o[e>>2]=0;r=Bi(128)|0;if(!r){n=-1;return n|0}t=r+72|0;n=t+46|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));i[r>>1]=150;i[r+36>>1]=150;i[r+18>>1]=150;i[r+54>>1]=0;i[r+2>>1]=150;i[r+38>>1]=150;i[r+20>>1]=150;i[r+56>>1]=0;i[r+4>>1]=150;i[r+40>>1]=150;i[r+22>>1]=150;i[r+58>>1]=0;i[r+6>>1]=150;i[r+42>>1]=150;i[r+24>>1]=150;i[r+60>>1]=0;i[r+8>>1]=150;i[r+44>>1]=150;i[r+26>>1]=150;i[r+62>>1]=0;i[r+10>>1]=150;i[r+46>>1]=150;i[r+28>>1]=150;i[r+64>>1]=0;i[r+12>>1]=150;i[r+48>>1]=150;i[r+30>>1]=150;i[r+66>>1]=0;i[r+14>>1]=150;i[r+50>>1]=150;i[r+32>>1]=150;i[r+68>>1]=0;i[r+16>>1]=150;i[r+52>>1]=150;i[r+34>>1]=150;i[r+70>>1]=0;i[r+118>>1]=13106;i[r+120>>1]=0;i[r+122>>1]=0;i[r+124>>1]=0;i[r+126>>1]=13106;o[e>>2]=r;n=0;return n|0}function Fn(e){e=e|0;var r=0,t=0;if(!e){t=-1;return t|0}r=e+72|0;t=r+46|0;do{i[r>>1]=0;r=r+2|0}while((r|0)<(t|0));i[e>>1]=150;i[e+36>>1]=150;i[e+18>>1]=150;i[e+54>>1]=0;i[e+2>>1]=150;i[e+38>>1]=150;i[e+20>>1]=150;i[e+56>>1]=0;i[e+4>>1]=150;i[e+40>>1]=150;i[e+22>>1]=150;i[e+58>>1]=0;i[e+6>>1]=150;i[e+42>>1]=150;i[e+24>>1]=150;i[e+60>>1]=0;i[e+8>>1]=150;i[e+44>>1]=150;i[e+26>>1]=150;i[e+62>>1]=0;i[e+10>>1]=150;i[e+46>>1]=150;i[e+28>>1]=150;i[e+64>>1]=0;i[e+12>>1]=150;i[e+48>>1]=150;i[e+30>>1]=150;i[e+66>>1]=0;i[e+14>>1]=150;i[e+50>>1]=150;i[e+32>>1]=150;i[e+68>>1]=0;i[e+16>>1]=150;i[e+52>>1]=150;i[e+34>>1]=150;i[e+70>>1]=0;i[e+118>>1]=13106;i[e+120>>1]=0;i[e+122>>1]=0;i[e+124>>1]=0;i[e+126>>1]=13106;t=0;return t|0}function In(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function Bn(e,r){e=e|0;r=r|0;i[e+118>>1]=r;return}function Un(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0;t=Oi(t,n)|0;if(t<<16>>16<=0)return;t=t<<16>>16;if((t*21298|0)==1073741824){o[n>>2]=1;s=2147483647}else s=t*42596|0;t=r-s|0;if(((t^r)&(s^r)|0)<0){o[n>>2]=1;t=(r>>>31)+2147483647|0}if((t|0)<=0)return;e=e+104|0;i[e>>1]=a[e>>1]|0|16384;return}function zn(e,r,t){e=e|0;r=r|0;t=t|0;var n=0;e=e+104|0;n=Ci(i[e>>1]|0,1,t)|0;i[e>>1]=n;if(!(r<<16>>16))return;i[e>>1]=(Ci(n,1,t)|0)&65535|8192;return}function qn(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,o=0,s=0;o=e+112|0;n=xi(i[o>>1]|0,i[r>>1]|0,t)|0;n=(n&65535)-((n&65535)>>>15&65535)|0;n=((n<<16>>31^n)&65535)<<16>>16<4;s=i[r>>1]|0;i[o>>1]=s;r=r+2|0;s=xi(s,i[r>>1]|0,t)|0;s=(s&65535)-((s&65535)>>>15&65535)|0;n=((s<<16>>31^s)&65535)<<16>>16<4?n?2:1:n&1;i[o>>1]=i[r>>1]|0;o=e+102|0;i[o>>1]=Ci(i[o>>1]|0,1,t)|0;r=e+110|0;if((Gn(i[r>>1]|0,n,t)|0)<<16>>16<=3){i[r>>1]=n;return}i[o>>1]=a[o>>1]|0|16384;i[r>>1]=n;return}function Vn(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0;D=c;c=c+352|0;h=D+24|0;R=D;u=0;s=0;do{n=i[r+(u+-40<<1)>>1]|0;n=ee(n,n)|0;if((n|0)!=1073741824){l=(n<<1)+s|0;if((n^s|0)>0&(l^s|0)<0){o[t>>2]=1;s=(s>>>31)+2147483647|0}else s=l}else{o[t>>2]=1;s=2147483647}u=u+1|0}while((u|0)!=160);m=s;if((343039-m&m|0)<0){o[t>>2]=1;s=(m>>>31)+2147483647|0}else s=m+-343040|0;if((s|0)<0){A=e+102|0;i[A>>1]=a[A>>1]&16383}d=m+-15e3|0;p=(14999-m&m|0)<0;if(p){o[t>>2]=1;l=(m>>>31)+2147483647|0}else l=d;if((l|0)<0){A=e+108|0;i[A>>1]=a[A>>1]&16383}n=e+72|0;f=e+74|0;l=i[n>>1]|0;u=i[f>>1]|0;s=0;do{A=s<<2;j=xi((i[r+(A<<1)>>1]|0)>>>2&65535,((l<<16>>16)*21955|0)>>>15&65535,t)|0;k=((j<<16>>16)*21955|0)>>>15&65535;g=Gn(l,k,t)|0;E=A|1;S=xi((i[r+(E<<1)>>1]|0)>>>2&65535,((u<<16>>16)*6390|0)>>>15&65535,t)|0;_=((S<<16>>16)*6390|0)>>>15&65535;l=Gn(u,_,t)|0;i[h+(A<<1)>>1]=Gn(g,l,t)|0;i[h+(E<<1)>>1]=xi(g,l,t)|0;E=A|2;l=xi((i[r+(E<<1)>>1]|0)>>>2&65535,k,t)|0;j=Gn(j,((l<<16>>16)*21955|0)>>>15&65535,t)|0;A=A|3;u=xi((i[r+(A<<1)>>1]|0)>>>2&65535,_,t)|0;S=Gn(S,((u<<16>>16)*6390|0)>>>15&65535,t)|0;i[h+(E<<1)>>1]=Gn(j,S,t)|0;i[h+(A<<1)>>1]=xi(j,S,t)|0;s=s+1|0}while((s|0)!=40);i[n>>1]=l;i[f>>1]=u;u=e+76|0;l=e+80|0;s=0;do{A=s<<2;Hn(h+(A<<1)|0,h+((A|2)<<1)|0,u,t);Hn(h+((A|1)<<1)|0,h+((A|3)<<1)|0,l,t);s=s+1|0}while((s|0)!=40);u=e+84|0;l=e+86|0;s=e+92|0;n=0;do{A=n<<3;Wn(h+(A<<1)|0,h+((A|4)<<1)|0,u,t);Wn(h+((A|2)<<1)|0,h+((A|6)<<1)|0,l,t);Wn(h+((A|3)<<1)|0,h+((A|7)<<1)|0,s,t);n=n+1|0}while((n|0)!=20);u=e+88|0;l=e+90|0;s=0;do{A=s<<4;Wn(h+(A<<1)|0,h+((A|8)<<1)|0,u,t);Wn(h+((A|4)<<1)|0,h+((A|12)<<1)|0,l,t);s=s+1|0}while((s|0)!=10);y=Yn(h,e+70|0,32,40,4,1,15,t)|0;i[R+16>>1]=y;g=Yn(h,e+68|0,16,20,8,7,16,t)|0;i[R+14>>1]=g;k=Yn(h,e+66|0,16,20,8,3,16,t)|0;i[R+12>>1]=k;_=Yn(h,e+64|0,16,20,8,2,16,t)|0;i[R+10>>1]=_;E=Yn(h,e+62|0,16,20,8,6,16,t)|0;i[R+8>>1]=E;j=Yn(h,e+60|0,8,10,16,4,16,t)|0;i[R+6>>1]=j;S=Yn(h,e+58|0,8,10,16,12,16,t)|0;i[R+4>>1]=S;A=Yn(h,e+56|0,8,10,16,8,16,t)|0;i[R+2>>1]=A;v=Yn(h,e+54|0,8,10,16,0,16,t)|0;i[R>>1]=v;u=0;n=0;do{l=e+(n<<1)|0;r=gi(i[l>>1]|0)|0;l=i[l>>1]|0;s=r<<16>>16;if(r<<16>>16<0){f=0-s<<16;if((f|0)<983040)f=l<<16>>16>>(f>>16)&65535;else f=0}else{f=l<<16>>16;l=f<<s;if((l<<16>>16>>s|0)==(f|0))f=l&65535;else f=(f>>>15^32767)&65535}l=Kn(Ci(i[R+(n<<1)>>1]|0,1,t)|0,f)|0;b=xi(r,5,t)|0;s=b<<16>>16;if(b<<16>>16<0){f=0-s<<16;if((f|0)<983040)f=l<<16>>16>>(f>>16);else f=0}else{l=l<<16>>16;f=l<<s;if((f<<16>>16>>s|0)!=(l|0))f=l>>>15^32767}f=f<<16>>16;f=ee(f,f)|0;if((f|0)!=1073741824){l=(f<<1)+u|0;if((f^u|0)>0&(l^u|0)<0){o[t>>2]=1;u=(u>>>31)+2147483647|0}else u=l}else{o[t>>2]=1;u=2147483647}n=n+1|0}while((n|0)!=9);b=u<<6;u=(((b>>6|0)==(u|0)?b:u>>31^2147418112)>>16)*3641>>15;if((u|0)>32767){o[t>>2]=1;u=32767}b=i[e>>1]|0;f=b<<16>>16;w=i[e+2>>1]|0;l=(w<<16>>16)+f|0;if((w^b)<<16>>16>-1&(l^f|0)<0){o[t>>2]=1;l=(f>>>31)+2147483647|0}b=i[e+4>>1]|0;f=b+l|0;if((b^l|0)>-1&(f^l|0)<0){o[t>>2]=1;f=(l>>>31)+2147483647|0}b=i[e+6>>1]|0;l=b+f|0;if((b^f|0)>-1&(l^f|0)<0){o[t>>2]=1;l=(f>>>31)+2147483647|0}b=i[e+8>>1]|0;f=b+l|0;if((b^l|0)>-1&(f^l|0)<0){o[t>>2]=1;f=(l>>>31)+2147483647|0}b=i[e+10>>1]|0;l=b+f|0;if((b^f|0)>-1&(l^f|0)<0){o[t>>2]=1;l=(f>>>31)+2147483647|0}b=i[e+12>>1]|0;f=b+l|0;if((b^l|0)>-1&(f^l|0)<0){o[t>>2]=1;f=(l>>>31)+2147483647|0}b=i[e+14>>1]|0;l=b+f|0;if((b^f|0)>-1&(l^f|0)<0){o[t>>2]=1;l=(f>>>31)+2147483647|0}b=i[e+16>>1]|0;f=b+l|0;if((b^l|0)>-1&(f^l|0)<0){o[t>>2]=1;f=(l>>>31)+2147483647|0}w=f<<13;w=((w>>13|0)==(f|0)?w:f>>31^2147418112)>>>16&65535;f=(ee((xi(w,0,t)|0)<<16>>16,-2808)|0)>>15;if((f|0)>32767){o[t>>2]=1;f=32767}h=Gn(f&65535,1260,t)|0;b=e+100|0;f=Ci(i[b>>1]|0,1,t)|0;if((u<<16>>16|0)>((h<<16>>16<720?720:h<<16>>16)|0))f=(f&65535|16384)&65535;i[b>>1]=f;if(p){o[t>>2]=1;d=(m>>>31)+2147483647|0}s=i[e+118>>1]|0;p=e+126|0;f=i[p>>1]|0;n=f<<16>>16<19660;n=s<<16>>16<f<<16>>16?n?2621:6553:n?2621:655;r=f&65535;u=r<<16;f=ee(n,f<<16>>16)|0;if((f|0)==1073741824){o[t>>2]=1;f=2147483647}else f=f<<1;l=u-f|0;if(((l^u)&(f^u)|0)<0){o[t>>2]=1;l=(r>>>15)+2147483647|0}u=ee(n,s<<16>>16)|0;do{if((u|0)==1073741824){o[t>>2]=1;f=2147483647}else{f=l+(u<<1)|0;if(!((l^u|0)>0&(f^l|0)<0))break;o[t>>2]=1;f=(l>>>31)+2147483647|0}}while(0);r=Oi(f,t)|0;m=(d|0)>-1;i[p>>1]=m?r<<16>>16<13106?13106:r:13106;r=e+106|0;i[r>>1]=Ci(i[r>>1]|0,1,t)|0;l=e+108|0;f=Ci(i[l>>1]|0,1,t)|0;i[l>>1]=f;u=i[p>>1]|0;e:do{if(m){do{if(u<<16>>16>19660)i[r>>1]=a[r>>1]|16384;else{if(u<<16>>16>16383)break;u=e+116|0;f=0;break e}}while(0);i[l>>1]=f&65535|16384;M=62}else M=62}while(0);do{if((M|0)==62){f=e+116|0;if(u<<16>>16<=22936){u=f;f=0;break}u=f;f=Gn(i[f>>1]|0,1,t)|0}}while(0);i[u>>1]=f;if((i[r>>1]&32640)!=32640){h=(i[l>>1]&32767)==32767;i[e+122>>1]=h&1;if(h)M=67}else{i[e+122>>1]=1;M=67}do{if((M|0)==67){u=e+98|0;if((i[u>>1]|0)>=5)break;i[u>>1]=5}}while(0);h=e+102|0;do{if((i[h>>1]&24576)==24576)M=71;else{if((i[e+104>>1]&31744)==31744){M=71;break}if(!(i[b>>1]&32640)){i[e+98>>1]=20;l=32767;break}else{l=v;u=0;f=0}while(1){n=i[e+18+(u<<1)>>1]|0;s=l<<16>>16>n<<16>>16;d=s?l:n;l=s?n:l;d=d<<16>>16<184?184:d;l=l<<16>>16<184?184:l;n=gi(l)|0;s=n<<16>>16;do{if(n<<16>>16<0){r=0-s<<16;if((r|0)>=983040){r=0;break}r=l<<16>>16>>(r>>16)&65535}else{r=l<<16>>16;l=r<<s;if((l<<16>>16>>s|0)==(r|0)){r=l&65535;break}r=(r>>>15^32767)&65535}}while(0);d=Kn(Ci(d,1,t)|0,r)|0;f=Gn(f,Ci(d,xi(8,n,t)|0,t)|0,t)|0;u=u+1|0;if((u|0)==9)break;l=i[R+(u<<1)>>1]|0}if(f<<16>>16>1e3){i[e+98>>1]=20;l=32767;break}l=i[b>>1]|0;u=e+98|0;f=i[u>>1]|0;do{if(!(l&16384))M=86;else{if(!(f<<16>>16)){f=l;break}f=xi(f,1,t)|0;i[u>>1]=f;M=86}}while(0);if((M|0)==86){if(f<<16>>16==20){l=32767;break}f=i[b>>1]|0}l=(f&16384)==0?16383:3276}}while(0);if((M|0)==71){i[e+98>>1]=20;l=32767}u=v;f=0;while(1){d=e+18+(f<<1)|0;r=vi(l,xi(u,i[d>>1]|0,t)|0,t)|0;i[d>>1]=Gn(i[d>>1]|0,r,t)|0;f=f+1|0;if((f|0)==9)break;u=i[R+(f<<1)>>1]|0}do{if(!(i[b>>1]&30720)){if(i[h>>1]&30720){M=95;break}if(!(i[e+114>>1]|0)){s=2097;n=1638;r=2}else M=95}else M=95}while(0);do{if((M|0)==95){if((i[e+98>>1]|0)==0?(i[e+114>>1]|0)==0:0){s=1867;n=491;r=2;break}s=1638;n=0;r=0}}while(0);l=0;do{u=e+(l<<1)|0;f=xi(i[e+36+(l<<1)>>1]|0,i[u>>1]|0,t)|0;if(f<<16>>16<0){f=vi(s,f,t)|0;f=Gn(-2,Gn(i[u>>1]|0,f,t)|0,t)|0;f=f<<16>>16<40?40:f}else{f=vi(n,f,t)|0;f=Gn(r,Gn(i[u>>1]|0,f,t)|0,t)|0;f=f<<16>>16>16e3?16e3:f}i[u>>1]=f;l=l+1|0}while((l|0)!=9);i[e+36>>1]=v;i[e+38>>1]=A;i[e+40>>1]=S;i[e+42>>1]=j;i[e+44>>1]=E;i[e+46>>1]=_;i[e+48>>1]=k;i[e+50>>1]=g;i[e+52>>1]=y;u=w<<16>>16>100;l=u?7:4;u=u?4:5;if(!m){i[e+94>>1]=0;i[e+96>>1]=0;i[e+114>>1]=0;i[e+116>>1]=0;t=0;e=e+120|0;i[e>>1]=t;c=D;return t|0}s=e+114|0;n=i[s>>1]|0;do{if((i[e+116>>1]|0)<=100){if(n<<16>>16)break;n=i[b>>1]|0;do{if(!(n&16368)){if((i[p>>1]|0)>21298)n=1;else break;e=e+120|0;i[e>>1]=n;c=D;return n|0}}while(0);s=e+94|0;if(!(n&16384)){i[s>>1]=0;n=e+96|0;s=i[n>>1]|0;if(s<<16>>16<=0){t=0;e=e+120|0;i[e>>1]=t;c=D;return t|0}i[n>>1]=xi(s,1,t)|0;t=1;e=e+120|0;i[e>>1]=t;c=D;return t|0}else{t=Gn(i[s>>1]|0,1,t)|0;i[s>>1]=t;if((t<<16>>16|0)<(u|0)){t=1;e=e+120|0;i[e>>1]=t;c=D;return t|0}i[e+96>>1]=l;t=1;e=e+120|0;i[e>>1]=t;c=D;return t|0}}else{if(n<<16>>16>=250)break;i[s>>1]=250;n=250}}while(0);i[e+94>>1]=4;i[s>>1]=xi(n,1,t)|0;t=1;e=e+120|0;i[e>>1]=t;c=D;return t|0}function Hn(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0,a=0,l=0;s=(i[t>>1]|0)*21955>>15;if((s|0)>32767){o[n>>2]=1;s=32767}a=xi(i[e>>1]|0,s&65535,n)|0;s=(a<<16>>16)*21955>>15;if((s|0)>32767){o[n>>2]=1;s=32767}l=Gn(i[t>>1]|0,s&65535,n)|0;i[t>>1]=a;t=t+2|0;s=(i[t>>1]|0)*6390>>15;if((s|0)>32767){o[n>>2]=1;s=32767}a=xi(i[r>>1]|0,s&65535,n)|0;s=(a<<16>>16)*6390>>15;if((s|0)>32767){o[n>>2]=1;s=32767}s=Gn(i[t>>1]|0,s&65535,n)|0;i[t>>1]=a;i[e>>1]=Ci(Gn(l,s,n)|0,1,n)|0;i[r>>1]=Ci(xi(l,s,n)|0,1,n)|0;return}function Wn(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var s=0,a=0;s=(i[t>>1]|0)*13363>>15;if((s|0)>32767){o[n>>2]=1;s=32767}a=xi(i[r>>1]|0,s&65535,n)|0;s=(a<<16>>16)*13363>>15;if((s|0)>32767){o[n>>2]=1;s=32767}s=Gn(i[t>>1]|0,s&65535,n)|0;i[t>>1]=a;i[r>>1]=Ci(xi(i[e>>1]|0,s,n)|0,1,n)|0;i[e>>1]=Ci(Gn(i[e>>1]|0,s,n)|0,1,n)|0;return}function Yn(e,r,t,n,s,a,l,u){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;var f=0,c=0,d=0,h=0,m=0,p=0;if(t<<16>>16<n<<16>>16){h=s<<16>>16;f=a<<16>>16;m=t<<16>>16;c=0;do{p=i[e+((ee(m,h)|0)+f<<1)>>1]|0;p=(p&65535)-((p&65535)>>>15&65535)|0;p=(p<<16>>31^p)<<16;d=(p>>15)+c|0;if((p>>16^c|0)>0&(d^c|0)<0){o[u>>2]=1;c=(c>>>31)+2147483647|0}else c=d;m=m+1|0}while((m&65535)<<16>>16!=n<<16>>16);m=c}else m=0;c=i[r>>1]|0;p=xi(16,l,u)|0;f=p<<16>>16;if(p<<16>>16>0){n=c<<f;if((n>>f|0)!=(c|0))n=c>>31^2147483647}else{f=0-f<<16;if((f|0)<2031616)n=c>>(f>>16);else n=0}f=n+m|0;if((n^m|0)>-1&(f^m|0)<0){o[u>>2]=1;f=(m>>>31)+2147483647|0}p=l<<16>>16;l=l<<16>>16>0;if(l){n=m<<p;if((n>>p|0)!=(m|0))n=m>>31^2147483647}else{n=0-p<<16;if((n|0)<2031616)n=m>>(n>>16);else n=0}i[r>>1]=n>>>16;if(t<<16>>16>0){h=s<<16>>16;c=a<<16>>16;d=0;do{a=i[e+((ee(d,h)|0)+c<<1)>>1]|0;a=(a&65535)-((a&65535)>>>15&65535)|0;a=(a<<16>>31^a)<<16;n=(a>>15)+f|0;if((a>>16^f|0)>0&(n^f|0)<0){o[u>>2]=1;f=(f>>>31)+2147483647|0}else f=n;d=d+1|0}while((d&65535)<<16>>16!=t<<16>>16)}if(l){n=f<<p;if((n>>p|0)==(f|0)){u=n;u=u>>>16;u=u&65535;return u|0}u=f>>31^2147483647;u=u>>>16;u=u&65535;return u|0}else{n=0-p<<16;if((n|0)>=2031616){u=0;u=u>>>16;u=u&65535;return u|0}u=f>>(n>>16);u=u>>>16;u=u&65535;return u|0}return 0}function Gn(e,r,t){e=e|0;r=r|0;t=t|0;e=(r<<16>>16)+(e<<16>>16)|0;if((e|0)<=32767){if((e|0)<-32768){o[t>>2]=1;e=-32768}}else{o[t>>2]=1;e=32767}return e&65535|0}function Xn(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0;j=c;c=c+32|0;_=j+12|0;E=j;i[_>>1]=1024;i[E>>1]=1024;u=i[e+2>>1]|0;a=i[e+20>>1]|0;n=((a+u|0)>>>2)+64512|0;i[_+2>>1]=n;a=((u-a|0)>>>2)+1024|0;i[E+2>>1]=a;u=i[e+4>>1]|0;o=i[e+18>>1]|0;n=((o+u|0)>>>2)-n|0;i[_+4>>1]=n;a=((u-o|0)>>>2)+a|0;i[E+4>>1]=a;o=i[e+6>>1]|0;u=i[e+16>>1]|0;n=((u+o|0)>>>2)-n|0;i[_+6>>1]=n;a=((o-u|0)>>>2)+a|0;i[E+6>>1]=a;u=i[e+8>>1]|0;o=i[e+14>>1]|0;n=((o+u|0)>>>2)-n|0;i[_+8>>1]=n;a=((u-o|0)>>>2)+a|0;i[E+8>>1]=a;o=i[e+10>>1]|0;u=i[e+12>>1]|0;n=((u+o|0)>>>2)-n|0;i[_+10>>1]=n;i[E+10>>1]=((o-u|0)>>>2)+a;a=i[3454]|0;u=a<<16>>16;e=i[_+2>>1]|0;o=(e<<16>>16<<14)+(u<<10)|0;v=o&-65536;o=(o>>>1)-(o>>16<<15)<<16;k=(((ee(o>>16,u)|0)>>15)+(ee(v>>16,u)|0)<<2)+-16777216|0;k=(i[_+4>>1]<<14)+k|0;l=k>>16;k=(k>>>1)-(l<<15)<<16;v=(((ee(k>>16,u)|0)>>15)+(ee(l,u)|0)<<2)-((o>>15)+v)|0;v=(i[_+6>>1]<<14)+v|0;o=v>>16;v=(v>>>1)-(o<<15)<<16;l=(((ee(v>>16,u)|0)>>15)+(ee(o,u)|0)<<2)-((k>>15)+(l<<16))|0;l=(i[_+8>>1]<<14)+l|0;k=l>>16;o=(n<<16>>3)+((((ee((l>>>1)-(k<<15)<<16>>16,u)|0)>>15)+(ee(k,u)|0)<<1)-((v>>15)+(o<<16)))|0;v=_+4|0;u=_;k=0;l=0;n=0;b=_+10|0;o=(o+33554432|0)>>>0<67108863?o>>>10&65535:(o|0)>33554431?32767:-32768;e:while(1){y=e<<16>>16<<14;w=u+6|0;p=u+8|0;m=l<<16>>16;while(1){if((m|0)>=60)break e;u=(m&65535)+1<<16>>16;f=i[6908+(u<<16>>16<<1)>>1]|0;g=f<<16>>16;l=y+(g<<10)|0;s=l&-65536;l=(l>>>1)-(l>>16<<15)<<16;d=(((ee(l>>16,g)|0)>>15)+(ee(s>>16,g)|0)<<2)+-16777216|0;h=i[v>>1]|0;d=(h<<16>>16<<14)+d|0;R=d>>16;d=(d>>>1)-(R<<15)<<16;s=(((ee(d>>16,g)|0)>>15)+(ee(R,g)|0)<<2)-((l>>15)+s)|0;l=i[w>>1]|0;s=(l<<16>>16<<14)+s|0;e=s>>16;s=(s>>>1)-(e<<15)<<16;R=(((ee(s>>16,g)|0)>>15)+(ee(e,g)|0)<<2)-((d>>15)+(R<<16))|0;d=i[p>>1]|0;R=(d<<16>>16<<14)+R|0;A=R>>16;e=(((ee((R>>>1)-(A<<15)<<16>>16,g)|0)>>15)+(ee(A,g)|0)<<1)-((s>>15)+(e<<16))|0;s=i[b>>1]|0;e=(s<<16>>16<<13)+e|0;e=(e+33554432|0)>>>0<67108863?e>>>10&65535:(e|0)>33554431?32767:-32768;if((ee(e<<16>>16,o<<16>>16)|0)<1){g=u;u=h;break}else{m=m+1|0;a=f;o=e}}v=s<<16>>16<<13;b=u<<16>>16<<14;h=l<<16>>16<<14;p=d<<16>>16<<14;s=f<<16>>16;m=4;while(1){A=(a<<16>>16>>>1)+(s>>>1)|0;s=A<<16;w=s>>16;s=y+(s>>6)|0;R=s&-65536;s=(s>>>1)-(s>>16<<15)<<16;d=b+((((ee(s>>16,w)|0)>>15)+(ee(R>>16,w)|0)<<2)+-16777216)|0;u=d>>16;d=(d>>>1)-(u<<15)<<16;R=h+((((ee(d>>16,w)|0)>>15)+(ee(u,w)|0)<<2)-((s>>15)+R))|0;s=R>>16;R=(R>>>1)-(s<<15)<<16;u=p+((((ee(R>>16,w)|0)>>15)+(ee(s,w)|0)<<2)-((d>>15)+(u<<16)))|0;d=u>>16;A=A&65535;s=v+((((ee((u>>>1)-(d<<15)<<16>>16,w)|0)>>15)+(ee(d,w)|0)<<1)-((R>>15)+(s<<16)))|0;s=(s+33554432|0)>>>0<67108863?s>>>10&65535:(s|0)>33554431?32767:-32768;R=(ee(s<<16>>16,e<<16>>16)|0)<1;w=R?f:A;e=R?e:s;a=R?A:a;o=R?s:o;m=m+-1<<16>>16;s=w<<16>>16;if(!(m<<16>>16)){f=s;l=a;a=w;break}else f=w}u=n<<16>>16;s=e<<16>>16;e=(o&65535)-s|0;o=e<<16;if(o){R=(e&65535)-(e>>>15&1)|0;R=R<<16>>31^R;e=(gi(R&65535)|0)<<16>>16;e=(ee((Kn(16383,R<<16>>16<<e&65535)|0)<<16>>16,(l&65535)-f<<16>>16)|0)>>19-e;if((o|0)<0)e=0-(e<<16>>16)|0;a=f-((ee(e<<16>>16,s)|0)>>>10)&65535}i[r+(u<<1)>>1]=a;o=k<<16>>16==0?E:_;A=a<<16>>16;e=i[o+2>>1]|0;s=(e<<16>>16<<14)+(A<<10)|0;R=s&-65536;s=(s>>>1)-(s>>16<<15)<<16;y=(((ee(s>>16,A)|0)>>15)+(ee(R>>16,A)|0)<<2)+-16777216|0;y=(i[o+4>>1]<<14)+y|0;v=y>>16;y=(y>>>1)-(v<<15)<<16;R=(((ee(y>>16,A)|0)>>15)+(ee(v,A)|0)<<2)-((s>>15)+R)|0;R=(i[o+6>>1]<<14)+R|0;s=R>>16;R=(R>>>1)-(s<<15)<<16;v=(((ee(R>>16,A)|0)>>15)+(ee(s,A)|0)<<2)-((y>>15)+(v<<16))|0;v=(i[o+8>>1]<<14)+v|0;y=v>>16;n=n+1<<16>>16;s=(((ee((v>>>1)-(y<<15)<<16>>16,A)|0)>>15)+(ee(y,A)|0)<<1)-((R>>15)+(s<<16))|0;s=(i[o+10>>1]<<13)+s|0;if(n<<16>>16<10){v=o+4|0;u=o;k=k^1;l=g;b=o+10|0;o=(s+33554432|0)>>>0<67108863?s>>>10&65535:(s|0)>33554431?32767:-32768}else{S=13;break}}if((S|0)==13){c=j;return}i[r>>1]=i[t>>1]|0;i[r+2>>1]=i[t+2>>1]|0;i[r+4>>1]=i[t+4>>1]|0;i[r+6>>1]=i[t+6>>1]|0;i[r+8>>1]=i[t+8>>1]|0;i[r+10>>1]=i[t+10>>1]|0;i[r+12>>1]=i[t+12>>1]|0;i[r+14>>1]=i[t+14>>1]|0;i[r+16>>1]=i[t+16>>1]|0;i[r+18>>1]=i[t+18>>1]|0;c=j;return}function Kn(e,r){e=e|0;r=r|0;var t=0,n=0,i=0,o=0,s=0,a=0;i=r<<16>>16;if(e<<16>>16<1?1:e<<16>>16>r<<16>>16){i=0;return i|0}if(e<<16>>16==r<<16>>16){i=32767;return i|0}n=i<<1;t=i<<2;o=e<<16>>16<<3;e=(o|0)<(t|0);o=o-(e?0:t)|0;e=e?0:4;s=(o|0)<(n|0);o=o-(s?0:n)|0;r=(o|0)<(i|0);e=(r&1|(s?e:e|2))<<3^8;r=o-(r?0:i)<<3;if((r|0)>=(t|0)){r=r-t|0;e=e&65528|4}o=(r|0)<(n|0);s=r-(o?0:n)|0;r=(s|0)<(i|0);e=(r&1^1|(o?e:e|2))<<16>>13;r=s-(r?0:i)<<3;if((r|0)>=(t|0)){r=r-t|0;e=e&65528|4}o=(r|0)<(n|0);s=r-(o?0:n)|0;r=(s|0)<(i|0);e=(r&1^1|(o?e:e|2))<<16>>13;r=s-(r?0:i)<<3;if((r|0)>=(t|0)){r=r-t|0;e=e&65528|4}a=(r|0)<(n|0);o=r-(a?0:n)|0;s=(o|0)<(i|0);r=(s&1^1|(a?e:e|2))<<16>>13;e=o-(s?0:i)<<3;if((e|0)>=(t|0)){e=e-t|0;r=r&65528|4}a=(e|0)<(n|0);a=((e-(a?0:n)|0)>=(i|0)|(a?r:r|2))&65535;return a|0}function Jn(e){e=e|0;if(!e){e=-1;return e|0}i[e>>1]=-14336;i[e+8>>1]=-2381;i[e+2>>1]=-14336;i[e+10>>1]=-2381;i[e+4>>1]=-14336;i[e+12>>1]=-2381;i[e+6>>1]=-14336;i[e+14>>1]=-2381;e=0;return e|0}function Zn(e,r,t,n,s,l,u,f){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;l=l|0;u=u|0;f=f|0;var d=0,h=0,m=0,p=0,w=0,b=0;b=c;c=c+16|0;p=b+2|0;w=b;d=0;h=10;while(1){m=i[t>>1]|0;m=((ee(m,m)|0)>>>3)+d|0;d=i[t+2>>1]|0;d=m+((ee(d,d)|0)>>>3)|0;m=i[t+4>>1]|0;m=d+((ee(m,m)|0)>>>3)|0;d=i[t+6>>1]|0;d=m+((ee(d,d)|0)>>>3)|0;h=h+-1<<16>>16;if(!(h<<16>>16))break;else t=t+8|0}h=d<<4;h=(h|0)<0?2147483647:h;if((r|0)==7){ai(((Oi(h,f)|0)<<16>>16)*52428|0,p,w,f);m=a[p>>1]<<16;h=i[w>>1]<<1;r=i[e+8>>1]|0;d=(r<<16>>16)*88|0;if(r<<16>>16>-1&(d|0)<-783741){o[f>>2]=1;t=2147483647}else t=d+783741|0;r=(i[e+10>>1]|0)*74|0;d=r+t|0;if((r^t|0)>-1&(d^t|0)<0){o[f>>2]=1;t=(t>>>31)+2147483647|0}else t=d;r=(i[e+12>>1]|0)*44|0;d=r+t|0;if((r^t|0)>-1&(d^t|0)<0){o[f>>2]=1;t=(t>>>31)+2147483647|0}else t=d;e=(i[e+14>>1]|0)*24|0;d=e+t|0;if((e^t|0)>-1&(d^t|0)<0){o[f>>2]=1;d=(t>>>31)+2147483647|0}e=m+-1966080+h|0;t=d-e|0;if(((t^d)&(d^e)|0)<0){o[f>>2]=1;t=(d>>>31)+2147483647|0}f=t>>17;i[n>>1]=f;f=(t>>2)-(f<<15)|0;f=f&65535;i[s>>1]=f;c=b;return}m=yi(h)|0;d=m<<16>>16;if(m<<16>>16>0){t=h<<d;if((t>>d|0)==(h|0))h=t;else h=h>>31^2147483647}else{d=0-d<<16;if((d|0)<2031616)h=h>>(d>>16);else h=0}li(h,m,p,w);p=ee(i[p>>1]|0,-49320)|0;d=(ee(i[w>>1]|0,-24660)|0)>>15;d=(d&65536|0)==0?d:d|-65536;w=d<<1;t=w+p|0;if((w^p|0)>-1&(t^w|0)<0){o[f>>2]=1;t=(d>>>30&1)+2147483647|0}switch(r|0){case 6:{d=t+2134784|0;if((t|0)>-1&(d^t|0)<0){o[f>>2]=1;d=(t>>>31)+2147483647|0}break}case 5:{i[u>>1]=h>>>16;i[l>>1]=-11-(m&65535);d=t+2183936|0;if((t|0)>-1&(d^t|0)<0){o[f>>2]=1;d=(t>>>31)+2147483647|0}break}case 4:{d=t+2085632|0;if((t|0)>-1&(d^t|0)<0){o[f>>2]=1;d=(t>>>31)+2147483647|0}break}case 3:{d=t+2065152|0;if((t|0)>-1&(d^t|0)<0){o[f>>2]=1;d=(t>>>31)+2147483647|0}break}default:{d=t+2134784|0;if((t|0)>-1&(d^t|0)<0){o[f>>2]=1;d=(t>>>31)+2147483647|0}}}do{if((d|0)<=2097151)if((d|0)<-2097152){o[f>>2]=1;t=-2147483648;break}else{t=d<<10;break}else{o[f>>2]=1;t=2147483647}}while(0);u=(i[e>>1]|0)*11142|0;d=u+t|0;if((u^t|0)>-1&(d^t|0)<0){o[f>>2]=1;d=(t>>>31)+2147483647|0}u=(i[e+2>>1]|0)*9502|0;t=u+d|0;if((u^d|0)>-1&(t^d|0)<0){o[f>>2]=1;t=(d>>>31)+2147483647|0}u=(i[e+4>>1]|0)*5570|0;d=u+t|0;if((u^t|0)>-1&(d^t|0)<0){o[f>>2]=1;d=(t>>>31)+2147483647|0}e=(i[e+6>>1]|0)*3112|0;t=e+d|0;if((e^d|0)>-1&(t^d|0)<0){o[f>>2]=1;t=(d>>>31)+2147483647|0}t=ee(t>>16,(r|0)==4?10878:10886)|0;if((t|0)<0)t=~((t^-256)>>8);else t=t>>8;i[n>>1]=t>>>16;if((t|0)<0)d=~((t^-2)>>1);else d=t>>1;n=t>>16<<15;t=d-n|0;if(((t^d)&(n^d)|0)>=0){f=t;f=f&65535;i[s>>1]=f;c=b;return}o[f>>2]=1;f=(d>>>31)+2147483647|0;f=f&65535;i[s>>1]=f;c=b;return}function $n(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,o=0,s=0;o=e+4|0;i[e+6>>1]=i[o>>1]|0;s=e+12|0;i[e+14>>1]=i[s>>1]|0;n=e+2|0;i[o>>1]=i[n>>1]|0;o=e+10|0;i[s>>1]=i[o>>1]|0;i[n>>1]=i[e>>1]|0;n=e+8|0;i[o>>1]=i[n>>1]|0;i[n>>1]=r;i[e>>1]=t;return}function Qn(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0;s=Gn(0,i[e+8>>1]|0,n)|0;s=Gn(s,i[e+10>>1]|0,n)|0;s=Gn(s,i[e+12>>1]|0,n)|0;s=Gn(s,i[e+14>>1]|0,n)|0;o=s<<16>>16>>2;o=(s<<16>>16<0?o|49152:o)&65535;i[r>>1]=o<<16>>16<-2381?-2381:o;r=Gn(0,i[e>>1]|0,n)|0;r=Gn(r,i[e+2>>1]|0,n)|0;r=Gn(r,i[e+4>>1]|0,n)|0;n=Gn(r,i[e+6>>1]|0,n)|0;e=n<<16>>16>>2;e=(n<<16>>16<0?e|49152:e)&65535;i[t>>1]=e<<16>>16<-14336?-14336:e;return}function ei(e){e=e|0;o[e>>2]=6892;o[e+4>>2]=8180;o[e+8>>2]=21e3;o[e+12>>2]=9716;o[e+16>>2]=22024;o[e+20>>2]=12788;o[e+24>>2]=24072;o[e+28>>2]=26120;o[e+32>>2]=28168;o[e+36>>2]=6876;o[e+40>>2]=7452;o[e+44>>2]=8140;o[e+48>>2]=20980;o[e+52>>2]=16884;o[e+56>>2]=17908;o[e+60>>2]=7980;o[e+64>>2]=8160;o[e+68>>2]=6678;o[e+72>>2]=6646;o[e+76>>2]=6614;o[e+80>>2]=29704;o[e+84>>2]=28680;o[e+88>>2]=3720;o[e+92>>2]=8;o[e+96>>2]=4172;o[e+100>>2]=44;o[e+104>>2]=3436;o[e+108>>2]=30316;o[e+112>>2]=30796;o[e+116>>2]=31276;o[e+120>>2]=7472;o[e+124>>2]=7552;o[e+128>>2]=7632;o[e+132>>2]=7712;return}function ri(e,r){e=e|0;r=r|0;var t=0,n=0,o=0,s=0,a=0,l=0,u=0,f=0,d=0,h=0;h=c;c=c+48|0;f=h+18|0;d=h;u=r<<16>>16;Hi(d|0,e|0,u<<1|0)|0;if(r<<16>>16>0){t=0;n=0}else{d=u>>1;d=f+(d<<1)|0;d=i[d>>1]|0;d=d<<16>>16;d=e+(d<<1)|0;d=i[d>>1]|0;c=h;return d|0}do{l=0;a=-32767;while(1){o=i[d+(l<<1)>>1]|0;s=o<<16>>16<a<<16>>16;n=s?n:l&65535;l=l+1|0;if((l&65535)<<16>>16==r<<16>>16)break;else a=s?a:o}i[d+(n<<16>>16<<1)>>1]=-32768;i[f+(t<<1)>>1]=n;t=t+1|0}while((t&65535)<<16>>16!=r<<16>>16);d=u>>1;d=f+(d<<1)|0;d=i[d>>1]|0;d=d<<16>>16;d=e+(d<<1)|0;d=i[d>>1]|0;c=h;return d|0}function ti(e,r,t,n,o){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;var s=0,a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0;s=c;c=c+32|0;a=s;A=r+2|0;S=a+2|0;i[a>>1]=((i[r>>1]|0)>>>1)+((i[e>>1]|0)>>>1);j=r+4|0;E=a+4|0;i[S>>1]=((i[A>>1]|0)>>>1)+((i[e+2>>1]|0)>>>1);_=r+6|0;k=a+6|0;i[E>>1]=((i[j>>1]|0)>>>1)+((i[e+4>>1]|0)>>>1);g=r+8|0;y=a+8|0;i[k>>1]=((i[_>>1]|0)>>>1)+((i[e+6>>1]|0)>>>1);v=r+10|0;b=a+10|0;i[y>>1]=((i[g>>1]|0)>>>1)+((i[e+8>>1]|0)>>>1);w=r+12|0;p=a+12|0;i[b>>1]=((i[v>>1]|0)>>>1)+((i[e+10>>1]|0)>>>1);m=r+14|0;h=a+14|0;i[p>>1]=((i[w>>1]|0)>>>1)+((i[e+12>>1]|0)>>>1);d=r+16|0;f=a+16|0;i[h>>1]=((i[m>>1]|0)>>>1)+((i[e+14>>1]|0)>>>1);u=r+18|0;l=a+18|0;i[f>>1]=((i[d>>1]|0)>>>1)+((i[e+16>>1]|0)>>>1);i[l>>1]=((i[u>>1]|0)>>>1)+((i[e+18>>1]|0)>>>1);ci(a,n,o);ci(r,n+22|0,o);i[a>>1]=((i[t>>1]|0)>>>1)+((i[r>>1]|0)>>>1);i[S>>1]=((i[t+2>>1]|0)>>>1)+((i[A>>1]|0)>>>1);i[E>>1]=((i[t+4>>1]|0)>>>1)+((i[j>>1]|0)>>>1);i[k>>1]=((i[t+6>>1]|0)>>>1)+((i[_>>1]|0)>>>1);i[y>>1]=((i[t+8>>1]|0)>>>1)+((i[g>>1]|0)>>>1);i[b>>1]=((i[t+10>>1]|0)>>>1)+((i[v>>1]|0)>>>1);i[p>>1]=((i[t+12>>1]|0)>>>1)+((i[w>>1]|0)>>>1);i[h>>1]=((i[t+14>>1]|0)>>>1)+((i[m>>1]|0)>>>1);i[f>>1]=((i[t+16>>1]|0)>>>1)+((i[d>>1]|0)>>>1);i[l>>1]=((i[t+18>>1]|0)>>>1)+((i[u>>1]|0)>>>1);ci(a,n+44|0,o);ci(t,n+66|0,o);c=s;return}function ni(e,r,t,n,o){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;var s=0,a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0;s=c;c=c+32|0;a=s;A=r+2|0;S=a+2|0;i[a>>1]=((i[r>>1]|0)>>>1)+((i[e>>1]|0)>>>1);j=r+4|0;E=a+4|0;i[S>>1]=((i[A>>1]|0)>>>1)+((i[e+2>>1]|0)>>>1);_=r+6|0;k=a+6|0;i[E>>1]=((i[j>>1]|0)>>>1)+((i[e+4>>1]|0)>>>1);g=r+8|0;y=a+8|0;i[k>>1]=((i[_>>1]|0)>>>1)+((i[e+6>>1]|0)>>>1);v=r+10|0;b=a+10|0;i[y>>1]=((i[g>>1]|0)>>>1)+((i[e+8>>1]|0)>>>1);w=r+12|0;p=a+12|0;i[b>>1]=((i[v>>1]|0)>>>1)+((i[e+10>>1]|0)>>>1);m=r+14|0;h=a+14|0;i[p>>1]=((i[w>>1]|0)>>>1)+((i[e+12>>1]|0)>>>1);d=r+16|0;f=a+16|0;i[h>>1]=((i[m>>1]|0)>>>1)+((i[e+14>>1]|0)>>>1);u=r+18|0;l=a+18|0;i[f>>1]=((i[d>>1]|0)>>>1)+((i[e+16>>1]|0)>>>1);i[l>>1]=((i[u>>1]|0)>>>1)+((i[e+18>>1]|0)>>>1);ci(a,n,o);i[a>>1]=((i[t>>1]|0)>>>1)+((i[r>>1]|0)>>>1);i[S>>1]=((i[t+2>>1]|0)>>>1)+((i[A>>1]|0)>>>1);i[E>>1]=((i[t+4>>1]|0)>>>1)+((i[j>>1]|0)>>>1);i[k>>1]=((i[t+6>>1]|0)>>>1)+((i[_>>1]|0)>>>1);i[y>>1]=((i[t+8>>1]|0)>>>1)+((i[g>>1]|0)>>>1);i[b>>1]=((i[t+10>>1]|0)>>>1)+((i[v>>1]|0)>>>1);i[p>>1]=((i[t+12>>1]|0)>>>1)+((i[w>>1]|0)>>>1);i[h>>1]=((i[t+14>>1]|0)>>>1)+((i[m>>1]|0)>>>1);i[f>>1]=((i[t+16>>1]|0)>>>1)+((i[d>>1]|0)>>>1);i[l>>1]=((i[t+18>>1]|0)>>>1)+((i[u>>1]|0)>>>1);ci(a,n+44|0,o);c=s;return}function ii(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0;o=c;c=c+32|0;s=o;C=i[e>>1]|0;i[s>>1]=C-(C>>>2)+((i[r>>1]|0)>>>2);C=e+2|0;P=i[C>>1]|0;L=r+2|0;O=s+2|0;i[O>>1]=P-(P>>>2)+((i[L>>1]|0)>>>2);P=e+4|0;R=i[P>>1]|0;T=r+4|0;D=s+4|0;i[D>>1]=R-(R>>>2)+((i[T>>1]|0)>>>2);R=e+6|0;j=i[R>>1]|0;M=r+6|0;A=s+6|0;i[A>>1]=j-(j>>>2)+((i[M>>1]|0)>>>2);j=e+8|0;k=i[j>>1]|0;S=r+8|0;E=s+8|0;i[E>>1]=k-(k>>>2)+((i[S>>1]|0)>>>2);k=e+10|0;v=i[k>>1]|0;_=r+10|0;g=s+10|0;i[g>>1]=v-(v>>>2)+((i[_>>1]|0)>>>2);v=e+12|0;p=i[v>>1]|0;y=r+12|0;b=s+12|0;i[b>>1]=p-(p>>>2)+((i[y>>1]|0)>>>2);p=e+14|0;d=i[p>>1]|0;w=r+14|0;m=s+14|0;i[m>>1]=d-(d>>>2)+((i[w>>1]|0)>>>2);d=e+16|0;l=i[d>>1]|0;h=r+16|0;f=s+16|0;i[f>>1]=l-(l>>>2)+((i[h>>1]|0)>>>2);l=e+18|0;N=i[l>>1]|0;u=r+18|0;a=s+18|0;i[a>>1]=N-(N>>>2)+((i[u>>1]|0)>>>2);ci(s,t,n);i[s>>1]=((i[e>>1]|0)>>>1)+((i[r>>1]|0)>>>1);i[O>>1]=((i[C>>1]|0)>>>1)+((i[L>>1]|0)>>>1);i[D>>1]=((i[P>>1]|0)>>>1)+((i[T>>1]|0)>>>1);i[A>>1]=((i[R>>1]|0)>>>1)+((i[M>>1]|0)>>>1);i[E>>1]=((i[j>>1]|0)>>>1)+((i[S>>1]|0)>>>1);i[g>>1]=((i[k>>1]|0)>>>1)+((i[_>>1]|0)>>>1);i[b>>1]=((i[v>>1]|0)>>>1)+((i[y>>1]|0)>>>1);i[m>>1]=((i[p>>1]|0)>>>1)+((i[w>>1]|0)>>>1);i[f>>1]=((i[d>>1]|0)>>>1)+((i[h>>1]|0)>>>1);i[a>>1]=((i[l>>1]|0)>>>1)+((i[u>>1]|0)>>>1);ci(s,t+22|0,n);N=i[r>>1]|0;i[s>>1]=N-(N>>>2)+((i[e>>1]|0)>>>2);e=i[L>>1]|0;i[O>>1]=e-(e>>>2)+((i[C>>1]|0)>>>2);e=i[T>>1]|0;i[D>>1]=e-(e>>>2)+((i[P>>1]|0)>>>2);e=i[M>>1]|0;i[A>>1]=e-(e>>>2)+((i[R>>1]|0)>>>2);e=i[S>>1]|0;i[E>>1]=e-(e>>>2)+((i[j>>1]|0)>>>2);e=i[_>>1]|0;i[g>>1]=e-(e>>>2)+((i[k>>1]|0)>>>2);e=i[y>>1]|0;i[b>>1]=e-(e>>>2)+((i[v>>1]|0)>>>2);e=i[w>>1]|0;i[m>>1]=e-(e>>>2)+((i[p>>1]|0)>>>2);e=i[h>>1]|0;i[f>>1]=e-(e>>>2)+((i[d>>1]|0)>>>2);e=i[u>>1]|0;i[a>>1]=e-(e>>>2)+((i[l>>1]|0)>>>2);ci(s,t+44|0,n);ci(r,t+66|0,n);c=o;return}function oi(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0;o=c;c=c+32|0;s=o;C=i[e>>1]|0;i[s>>1]=C-(C>>>2)+((i[r>>1]|0)>>>2);C=e+2|0;P=i[C>>1]|0;L=r+2|0;O=s+2|0;i[O>>1]=P-(P>>>2)+((i[L>>1]|0)>>>2);P=e+4|0;R=i[P>>1]|0;T=r+4|0;D=s+4|0;i[D>>1]=R-(R>>>2)+((i[T>>1]|0)>>>2);R=e+6|0;j=i[R>>1]|0;M=r+6|0;A=s+6|0;i[A>>1]=j-(j>>>2)+((i[M>>1]|0)>>>2);j=e+8|0;k=i[j>>1]|0;S=r+8|0;E=s+8|0;i[E>>1]=k-(k>>>2)+((i[S>>1]|0)>>>2);k=e+10|0;v=i[k>>1]|0;_=r+10|0;g=s+10|0;i[g>>1]=v-(v>>>2)+((i[_>>1]|0)>>>2);v=e+12|0;p=i[v>>1]|0;y=r+12|0;b=s+12|0;i[b>>1]=p-(p>>>2)+((i[y>>1]|0)>>>2);p=e+14|0;d=i[p>>1]|0;w=r+14|0;m=s+14|0;i[m>>1]=d-(d>>>2)+((i[w>>1]|0)>>>2);d=e+16|0;l=i[d>>1]|0;h=r+16|0;f=s+16|0;i[f>>1]=l-(l>>>2)+((i[h>>1]|0)>>>2);l=e+18|0;N=i[l>>1]|0;u=r+18|0;a=s+18|0;i[a>>1]=N-(N>>>2)+((i[u>>1]|0)>>>2);ci(s,t,n);i[s>>1]=((i[e>>1]|0)>>>1)+((i[r>>1]|0)>>>1);i[O>>1]=((i[C>>1]|0)>>>1)+((i[L>>1]|0)>>>1);i[D>>1]=((i[P>>1]|0)>>>1)+((i[T>>1]|0)>>>1);i[A>>1]=((i[R>>1]|0)>>>1)+((i[M>>1]|0)>>>1);i[E>>1]=((i[j>>1]|0)>>>1)+((i[S>>1]|0)>>>1);i[g>>1]=((i[k>>1]|0)>>>1)+((i[_>>1]|0)>>>1);i[b>>1]=((i[v>>1]|0)>>>1)+((i[y>>1]|0)>>>1);i[m>>1]=((i[p>>1]|0)>>>1)+((i[w>>1]|0)>>>1);i[f>>1]=((i[d>>1]|0)>>>1)+((i[h>>1]|0)>>>1);i[a>>1]=((i[l>>1]|0)>>>1)+((i[u>>1]|0)>>>1);ci(s,t+22|0,n);r=i[r>>1]|0;i[s>>1]=r-(r>>>2)+((i[e>>1]|0)>>>2);e=i[L>>1]|0;i[O>>1]=e-(e>>>2)+((i[C>>1]|0)>>>2);e=i[T>>1]|0;i[D>>1]=e-(e>>>2)+((i[P>>1]|0)>>>2);e=i[M>>1]|0;i[A>>1]=e-(e>>>2)+((i[R>>1]|0)>>>2);e=i[S>>1]|0;i[E>>1]=e-(e>>>2)+((i[j>>1]|0)>>>2);e=i[_>>1]|0;i[g>>1]=e-(e>>>2)+((i[k>>1]|0)>>>2);e=i[y>>1]|0;i[b>>1]=e-(e>>>2)+((i[v>>1]|0)>>>2);e=i[w>>1]|0;i[m>>1]=e-(e>>>2)+((i[p>>1]|0)>>>2);e=i[h>>1]|0;i[f>>1]=e-(e>>>2)+((i[d>>1]|0)>>>2);e=i[u>>1]|0;i[a>>1]=e-(e>>>2)+((i[l>>1]|0)>>>2);ci(s,t+44|0,n);c=o;return}function si(e,r){e=e|0;r=r|0;var t=0,n=0;if((e|0)<1){r=1073741823;return r|0}t=(yi(e)|0)<<16>>16;r=30-t|0;e=e<<t>>(r&1^1);t=(e>>25<<16)+-1048576>>16;n=i[7030+(t<<1)>>1]|0;r=(n<<16)-(ee(n-(a[7030+(t+1<<1)>>1]|0)<<16>>15,e>>>10&32767)|0)>>(r<<16>>17)+1;return r|0}function ai(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;n=yi(e)|0;li(e<<(n<<16>>16),n,r,t);return}function li(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;if((e|0)<1){i[t>>1]=0;t=0;i[n>>1]=t;return}else{i[t>>1]=30-(r&65535);t=(e>>25<<16)+-2097152>>16;r=i[7128+(t<<1)>>1]|0;t=((r<<16)-(ee(e>>>9&65534,r-(a[7128+(t+1<<1)>>1]|0)<<16>>16)|0)|0)>>>16&65535;i[n>>1]=t;return}}function ui(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,o=0;n=e+2|0;t=i[n>>1]|0;i[r>>1]=t;o=e+4|0;i[r+2>>1]=(a[o>>1]|0)-(a[e>>1]|0);i[r+4>>1]=(a[e+6>>1]|0)-(a[n>>1]|0);n=e+8|0;i[r+6>>1]=(a[n>>1]|0)-(a[o>>1]|0);i[r+8>>1]=(a[e+10>>1]|0)-(a[e+6>>1]|0);o=e+12|0;i[r+10>>1]=(a[o>>1]|0)-(a[n>>1]|0);i[r+12>>1]=(a[e+14>>1]|0)-(a[e+10>>1]|0);i[r+14>>1]=(a[e+16>>1]|0)-(a[o>>1]|0);i[r+16>>1]=(a[e+18>>1]|0)-(a[e+14>>1]|0);i[r+18>>1]=16384-(a[e+16>>1]|0);e=10;o=r;while(1){t=t<<16>>16;r=(t<<16)+-120782848|0;if((r|0)>0)r=1843-((r>>16)*12484>>16)|0;else r=3427-((t*56320|0)>>>16)|0;n=o+2|0;i[o>>1]=r<<3;e=e+-1<<16>>16;if(!(e<<16>>16))break;t=i[n>>1]|0;o=n}return}function fi(e,r,t){e=e|0;r=r|0;t=t|0;t=r<<16>>16;if(r<<16>>16>31){r=0;return r|0}if(r<<16>>16>0)return((1<<t+-1&e|0)!=0&1)+(r<<16>>16<31?e>>t:0)|0;t=0-t<<16>>16;r=e<<t;r=(r>>t|0)==(e|0)?r:e>>31^2147483647;return r|0}function ci(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0;v=c;c=c+48|0;w=v+24|0;b=v;m=w+4|0;o[w>>2]=16777216;n=0-(i[e>>1]|0)|0;p=w+8|0;o[m>>2]=n<<10;s=i[e+4>>1]|0;f=n>>6;o[p>>2]=33554432-(((ee((n<<9)-(f<<15)<<16>>16,s)|0)>>15)+(ee(f,s)|0)<<2);f=w+4|0;s=(o[f>>2]|0)-(s<<10)|0;o[f>>2]=s;f=w+12|0;n=w+4|0;o[f>>2]=s;t=i[e+8>>1]|0;a=s;d=1;while(1){u=f+-4|0;l=o[u>>2]|0;h=l>>16;o[f>>2]=a+s-(((ee((l>>>1)-(h<<15)<<16>>16,t)|0)>>15)+(ee(h,t)|0)<<2);if((d|0)==2)break;a=o[f+-12>>2]|0;f=u;s=l;d=d+1|0}o[n>>2]=(o[n>>2]|0)-(t<<10);t=w+16|0;n=o[w+8>>2]|0;o[t>>2]=n;u=i[e+12>>1]|0;s=n;f=1;while(1){l=t+-4|0;a=o[l>>2]|0;h=a>>16;o[t>>2]=s+n-(((ee((a>>>1)-(h<<15)<<16>>16,u)|0)>>15)+(ee(h,u)|0)<<2);if((f|0)==3)break;s=o[t+-12>>2]|0;t=l;n=a;f=f+1|0}t=w+4|0;o[t>>2]=(o[t>>2]|0)-(u<<10);t=w+20|0;s=o[w+12>>2]|0;o[t>>2]=s;n=i[e+16>>1]|0;a=s;f=1;while(1){u=t+-4|0;l=o[u>>2]|0;h=l>>16;o[t>>2]=a+s-(((ee((l>>>1)-(h<<15)<<16>>16,n)|0)>>15)+(ee(h,n)|0)<<2);if((f|0)==4)break;a=o[t+-12>>2]|0;t=u;s=l;f=f+1|0}f=w+4|0;o[f>>2]=(o[f>>2]|0)-(n<<10);o[b>>2]=16777216;f=0-(i[e+2>>1]|0)|0;h=b+8|0;o[b+4>>2]=f<<10;n=i[e+6>>1]|0;d=f>>6;o[h>>2]=33554432-(((ee((f<<9)-(d<<15)<<16>>16,n)|0)>>15)+(ee(d,n)|0)<<2);d=b+4|0;n=(o[d>>2]|0)-(n<<10)|0;o[d>>2]=n;d=b+12|0;f=b+4|0;o[d>>2]=n;u=i[e+10>>1]|0;s=n;t=1;while(1){l=d+-4|0;a=o[l>>2]|0;y=a>>16;o[d>>2]=s+n-(((ee((a>>>1)-(y<<15)<<16>>16,u)|0)>>15)+(ee(y,u)|0)<<2);if((t|0)==2)break;s=o[d+-12>>2]|0;d=l;n=a;t=t+1|0}o[f>>2]=(o[f>>2]|0)-(u<<10);f=b+16|0;n=o[b+8>>2]|0;o[f>>2]=n;u=i[e+14>>1]|0;s=n;t=1;while(1){l=f+-4|0;a=o[l>>2]|0;y=a>>16;o[f>>2]=s+n-(((ee((a>>>1)-(y<<15)<<16>>16,u)|0)>>15)+(ee(y,u)|0)<<2);if((t|0)==3)break;s=o[f+-12>>2]|0;f=l;n=a;t=t+1|0}t=b+4|0;o[t>>2]=(o[t>>2]|0)-(u<<10);t=b+20|0;u=o[b+12>>2]|0;o[t>>2]=u;n=i[e+18>>1]|0;l=u;f=1;while(1){s=t+-4|0;a=o[s>>2]|0;y=a>>16;o[t>>2]=l+u-(((ee((a>>>1)-(y<<15)<<16>>16,n)|0)>>15)+(ee(y,n)|0)<<2);if((f|0)==4)break;l=o[t+-12>>2]|0;t=s;u=a;f=f+1|0}l=(o[b+4>>2]|0)-(n<<10)|0;d=w+20|0;u=b+20|0;f=o[w+16>>2]|0;e=(o[d>>2]|0)+f|0;o[d>>2]=e;d=o[b+16>>2]|0;y=(o[u>>2]|0)-d|0;o[u>>2]=y;u=o[w+12>>2]|0;f=f+u|0;o[w+16>>2]=f;a=o[b+12>>2]|0;d=d-a|0;o[b+16>>2]=d;n=o[p>>2]|0;u=u+n|0;o[w+12>>2]=u;s=o[h>>2]|0;p=a-s|0;o[b+12>>2]=p;a=o[m>>2]|0;h=n+a|0;o[w+8>>2]=h;m=s-l|0;o[b+8>>2]=m;w=a+(o[w>>2]|0)|0;b=l-(o[b>>2]|0)|0;i[r>>1]=4096;w=w+4096|0;i[r+2>>1]=(w+b|0)>>>13;i[r+20>>1]=(w-b|0)>>>13;b=h+4096|0;i[r+4>>1]=(b+m|0)>>>13;i[r+18>>1]=(b-m|0)>>>13;b=u+4096|0;i[r+6>>1]=(b+p|0)>>>13;i[r+16>>1]=(b-p|0)>>>13;b=f+4096|0;i[r+8>>1]=(b+d|0)>>>13;i[r+14>>1]=(b-d|0)>>>13;b=e+4096|0;i[r+10>>1]=(b+y|0)>>>13;i[r+12>>1]=(b-y|0)>>>13;c=v;return}function di(e){e=e|0;var r=0,t=0,n=0,s=0,a=0;if(!e){a=-1;return a|0}o[e>>2]=0;r=Bi(44)|0;if(!r){a=-1;return a|0}t=r+40|0;if((Ri(t)|0)<<16>>16){a=-1;return a|0}n=r;s=7452;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));n=r+20|0;s=7452;a=n+20|0;do{i[n>>1]=i[s>>1]|0;n=n+2|0;s=s+2|0}while((n|0)<(a|0));Mi(o[t>>2]|0)|0;o[e>>2]=r;a=0;return a|0}function hi(e){e=e|0;var r=0,t=0,n=0;if(!e){n=-1;return n|0}r=e;t=7452;n=r+20|0;do{i[r>>1]=i[t>>1]|0;r=r+2|0;t=t+2|0}while((r|0)<(n|0));r=e+20|0;t=7452;n=r+20|0;do{i[r>>1]=i[t>>1]|0;r=r+2|0;t=t+2|0}while((r|0)<(n|0));Mi(o[e+40>>2]|0)|0;n=0;return n|0}function mi(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Di(r+40|0);Ui(o[e>>2]|0);o[e>>2]=0;return}function pi(e,r,t,n,s,a,l,u){e=e|0;r=r|0;t=t|0;n=n|0;s=s|0;a=a|0;l=l|0;u=u|0;var f=0,d=0,h=0,m=0,p=0;p=c;c=c+64|0;m=p+44|0;f=p+24|0;d=p+4|0;h=p;if((r|0)==7){Xn(n+22|0,f,e,u);Xn(n+66|0,a,f,u);ni(e,f,a,n,u);if((t|0)==8)n=6;else{Si(o[e+40>>2]|0,f,a,d,m,o[l>>2]|0,u);ti(e+20|0,d,m,s,u);s=(o[l>>2]|0)+10|0;n=7}}else{Xn(n+66|0,a,e,u);oi(e,a,n,u);if((t|0)==8)n=6;else{Ei(o[e+40>>2]|0,r,a,m,o[l>>2]|0,h,u);ii(e+20|0,m,s,u);s=(o[l>>2]|0)+6|0;n=7}}if((n|0)==6){n=e;s=n+20|0;do{i[n>>1]=i[a>>1]|0;n=n+2|0;a=a+2|0}while((n|0)<(s|0));c=p;return}else if((n|0)==7){o[l>>2]=s;n=e;s=n+20|0;do{i[n>>1]=i[a>>1]|0;n=n+2|0;a=a+2|0}while((n|0)<(s|0));n=e+20|0;a=m;s=n+20|0;do{i[n>>1]=i[a>>1]|0;n=n+2|0;a=a+2|0}while((n|0)<(s|0));c=p;return}}function wi(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0;if(t<<16>>16>0)n=0;else return;do{s=i[e+(n<<1)>>1]|0;a=s>>8;o=i[7194+(a<<1)>>1]|0;i[r+(n<<1)>>1]=((ee((i[7194+(a+1<<1)>>1]|0)-o|0,s&255)|0)>>>8)+o;n=n+1|0}while((n&65535)<<16>>16!=t<<16>>16);return}function bi(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0;n=(t<<16>>16)+-1|0;t=n&65535;if(t<<16>>16<=-1)return;o=63;a=r+(n<<1)|0;s=e+(n<<1)|0;while(1){e=i[s>>1]|0;r=o;while(1){n=r<<16>>16;o=i[7194+(n<<1)>>1]|0;if(e<<16>>16>o<<16>>16)r=r+-1<<16>>16;else break}i[a>>1]=(((ee(i[7324+(n<<1)>>1]|0,(e<<16>>16)-(o<<16>>16)|0)|0)+2048|0)>>>12)+(n<<8);t=t+-1<<16>>16;if(t<<16>>16>-1){o=r;a=a+-2|0;s=s+-2|0}else break}return}function vi(e,r,t){e=e|0;r=r|0;t=t|0;e=(ee(r<<16>>16,e<<16>>16)|0)+16384>>15;e=e|0-(e&65536);if((e|0)<=32767){if((e|0)<-32768){o[t>>2]=1;e=-32768}}else{o[t>>2]=1;e=32767}return e&65535|0}function yi(e){e=e|0;var r=0;e:do{if((e|0)!=0?(r=e-(e>>>31)|0,r=r>>31^r,(r&1073741824|0)==0):0){e=r;r=0;while(1){if(e&536870912){e=7;break}if(e&268435456){e=8;break}if(e&134217728){e=9;break}r=r+4<<16>>16;e=e<<4;if(e&1073741824)break e}if((e|0)==7){r=r|1;break}else if((e|0)==8){r=r|2;break}else if((e|0)==9){r=r|3;break}}else r=0}while(0);return r|0}function gi(e){e=e|0;var r=0,t=0;if(!(e<<16>>16)){t=0;return t|0}r=(e&65535)-((e&65535)>>>15&65535)|0;r=(r<<16>>31^r)<<16;e=r>>16;if(!(e&16384)){t=r;r=0}else{t=0;return t|0}while(1){if(e&8192){e=r;t=7;break}if(e&4096){e=r;t=8;break}if(e&2048){e=r;t=9;break}r=r+4<<16>>16;t=t<<4;e=t>>16;if(e&16384){e=r;t=10;break}}if((t|0)==7){t=e|1;return t|0}else if((t|0)==8){t=e|2;return t|0}else if((t|0)==9){t=e|3;return t|0}else if((t|0)==10)return e|0;return 0}function ki(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,l=0;r=r<<16>>16;if((r&134217727|0)==33554432){o[t>>2]=1;r=2147483647}else r=r<<6;n=r>>>16&31;l=i[7792+(n<<1)>>1]|0;s=l<<16;r=ee(l-(a[7792+(n+1<<1)>>1]|0)<<16>>16,r>>>1&32767)|0;if((r|0)==1073741824){o[t>>2]=1;n=2147483647}else n=r<<1;r=s-n|0;if(((r^s)&(n^s)|0)>=0){l=r;e=e&65535;e=30-e|0;e=e&65535;t=fi(l,e,t)|0;return t|0}o[t>>2]=1;l=(l>>>15&1)+2147483647|0;e=e&65535;e=30-e|0;e=e&65535;t=fi(l,e,t)|0;return t|0}function _i(e,r,t,n,o,s){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;var a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0;m=c;c=c+48|0;h=m;d=0-(t&65535)|0;d=o<<16>>16==0?d:d<<1&131070;t=d&65535;d=(t<<16>>16<0?d+6|0:d)<<16>>16;s=6-d|0;i[h>>1]=i[7858+(d<<1)>>1]|0;i[h+2>>1]=i[7858+(s<<1)>>1]|0;i[h+4>>1]=i[7858+(d+6<<1)>>1]|0;i[h+6>>1]=i[7858+(s+6<<1)>>1]|0;i[h+8>>1]=i[7858+(d+12<<1)>>1]|0;i[h+10>>1]=i[7858+(s+12<<1)>>1]|0;i[h+12>>1]=i[7858+(d+18<<1)>>1]|0;i[h+14>>1]=i[7858+(s+18<<1)>>1]|0;i[h+16>>1]=i[7858+(d+24<<1)>>1]|0;i[h+18>>1]=i[7858+(s+24<<1)>>1]|0;i[h+20>>1]=i[7858+(d+30<<1)>>1]|0;i[h+22>>1]=i[7858+(s+30<<1)>>1]|0;i[h+24>>1]=i[7858+(d+36<<1)>>1]|0;i[h+26>>1]=i[7858+(s+36<<1)>>1]|0;i[h+28>>1]=i[7858+(d+42<<1)>>1]|0;i[h+30>>1]=i[7858+(s+42<<1)>>1]|0;i[h+32>>1]=i[7858+(d+48<<1)>>1]|0;i[h+34>>1]=i[7858+(s+48<<1)>>1]|0;i[h+36>>1]=i[7858+(d+54<<1)>>1]|0;i[h+38>>1]=i[7858+(s+54<<1)>>1]|0;s=n<<16>>16>>>1&65535;if(!(s<<16>>16)){c=m;return}d=e+((t<<16>>16>>15<<16>>16)-(r<<16>>16)<<1)|0;while(1){f=d+2|0;a=i[f>>1]|0;r=a;n=d;l=5;u=h;o=16384;t=16384;while(1){w=i[u>>1]|0;b=(ee(w,r<<16>>16)|0)+t|0;p=i[f+-2>>1]|0;t=(ee(p,w)|0)+o|0;w=n;n=n+4|0;v=i[u+2>>1]|0;t=t+(ee(v,a<<16>>16)|0)|0;o=i[n>>1]|0;v=b+(ee(o,v)|0)|0;f=f+-4|0;b=i[u+4>>1]|0;p=v+(ee(b,p)|0)|0;r=i[f>>1]|0;b=t+(ee(r<<16>>16,b)|0)|0;t=i[u+6>>1]|0;o=b+(ee(t,o)|0)|0;a=i[w+6>>1]|0;t=p+(ee(a<<16>>16,t)|0)|0;if(l<<16>>16<=1)break;else{l=l+-1<<16>>16;u=u+8|0}}i[e>>1]=o>>>15;i[e+2>>1]=t>>>15;s=s+-1<<16>>16;if(!(s<<16>>16))break;else{d=d+4|0;e=e+4|0}}c=m;return}function Ei(e,r,t,n,o,s,l){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;l=l|0;var u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0;M=c;c=c+144|0;y=M+120|0;j=M+100|0;A=M+80|0;R=M+60|0;S=M+40|0;w=M+20|0;b=M;bi(t,y,10,l);ui(y,j,l);if((r|0)==8){i[s>>1]=0;f=2147483647;v=0;while(1){h=v*10|0;t=0;d=0;do{E=(a[7980+(d+h<<1)>>1]|0)+(a[8140+(d<<1)>>1]|0)|0;i[b+(d<<1)>>1]=E;E=(a[y+(d<<1)>>1]|0)-(E&65535)|0;i[w+(d<<1)>>1]=E;E=E<<16;t=(ee(E>>15,E>>16)|0)+t|0;d=d+1|0}while((d|0)!=10);if((t|0)<(f|0)){g=R;p=w;m=g+20|0;do{i[g>>1]=i[p>>1]|0;g=g+2|0;p=p+2|0}while((g|0)<(m|0));g=A;p=b;m=g+20|0;do{i[g>>1]=i[p>>1]|0;g=g+2|0;p=p+2|0}while((g|0)<(m|0));g=e;p=7980+(h<<1)|0;m=g+20|0;do{i[g>>1]=i[p>>1]|0;g=g+2|0;p=p+2|0}while((g|0)<(m|0));i[s>>1]=v}else t=f;v=v+1|0;if((v|0)==8)break;else f=t}}else{t=0;do{E=ee(i[8160+(t<<1)>>1]|0,i[e+(t<<1)>>1]|0)|0;E=(E>>>15)+(a[8140+(t<<1)>>1]|0)|0;i[A+(t<<1)>>1]=E;i[R+(t<<1)>>1]=(a[y+(t<<1)>>1]|0)-E;t=t+1|0}while((t|0)!=10)}do{if(r>>>0>=2){E=R+2|0;_=R+4|0;k=a[R>>1]|0;g=i[j>>1]<<1;y=a[E>>1]|0;w=i[j+2>>1]<<1;p=a[_>>1]|0;m=i[j+4>>1]<<1;if((r|0)==5){b=2147483647;s=0;t=0;v=17908;while(1){d=(ee(k-(a[v>>1]|0)<<16>>16,g)|0)>>16;d=ee(d,d)|0;h=(ee(y-(a[v+2>>1]|0)<<16>>16,w)|0)>>16;d=(ee(h,h)|0)+d|0;h=(ee(p-(a[v+4>>1]|0)<<16>>16,m)|0)>>16;h=d+(ee(h,h)|0)|0;d=(h|0)<(b|0);t=d?s:t;s=s+1<<16>>16;if(s<<16>>16>=512)break;else{b=d?h:b;v=v+6|0}}h=(t<<16>>16)*3|0;i[R>>1]=i[17908+(h<<1)>>1]|0;i[E>>1]=i[17908+(h+1<<1)>>1]|0;i[_>>1]=i[17908+(h+2<<1)>>1]|0;i[o>>1]=t;h=R+6|0;d=R+8|0;k=R+10|0;v=a[h>>1]|0;s=i[j+6>>1]<<1;b=a[d>>1]|0;w=i[j+8>>1]<<1;p=a[k>>1]|0;m=i[j+10>>1]<<1;u=2147483647;y=0;t=0;g=9716;while(1){f=(ee(s,v-(a[g>>1]|0)<<16>>16)|0)>>16;f=ee(f,f)|0;r=(ee(w,b-(a[g+2>>1]|0)<<16>>16)|0)>>16;f=(ee(r,r)|0)+f|0;r=(ee(m,p-(a[g+4>>1]|0)<<16>>16)|0)>>16;r=f+(ee(r,r)|0)|0;f=(r|0)<(u|0);t=f?y:t;y=y+1<<16>>16;if(y<<16>>16>=512)break;else{u=f?r:u;g=g+6|0}}u=(t<<16>>16)*3|0;i[h>>1]=i[9716+(u<<1)>>1]|0;i[d>>1]=i[9716+(u+1<<1)>>1]|0;i[k>>1]=i[9716+(u+2<<1)>>1]|0;i[o+2>>1]=t;u=R+12|0;i[o+4>>1]=ji(u,12788,j+12|0,512)|0;y=E;v=_;t=k;f=R;break}else{b=2147483647;s=0;t=0;v=8180;while(1){d=(ee(k-(a[v>>1]|0)<<16>>16,g)|0)>>16;d=ee(d,d)|0;h=(ee(y-(a[v+2>>1]|0)<<16>>16,w)|0)>>16;d=(ee(h,h)|0)+d|0;h=(ee(p-(a[v+4>>1]|0)<<16>>16,m)|0)>>16;h=d+(ee(h,h)|0)|0;d=(h|0)<(b|0);t=d?s:t;s=s+1<<16>>16;if(s<<16>>16>=256)break;else{b=d?h:b;v=v+6|0}}h=(t<<16>>16)*3|0;i[R>>1]=i[8180+(h<<1)>>1]|0;i[E>>1]=i[8180+(h+1<<1)>>1]|0;i[_>>1]=i[8180+(h+2<<1)>>1]|0;i[o>>1]=t;h=R+6|0;d=R+8|0;k=R+10|0;v=a[h>>1]|0;s=i[j+6>>1]<<1;b=a[d>>1]|0;w=i[j+8>>1]<<1;p=a[k>>1]|0;m=i[j+10>>1]<<1;u=2147483647;y=0;t=0;g=9716;while(1){f=(ee(s,v-(a[g>>1]|0)<<16>>16)|0)>>16;f=ee(f,f)|0;r=(ee(w,b-(a[g+2>>1]|0)<<16>>16)|0)>>16;f=(ee(r,r)|0)+f|0;r=(ee(m,p-(a[g+4>>1]|0)<<16>>16)|0)>>16;r=f+(ee(r,r)|0)|0;f=(r|0)<(u|0);t=f?y:t;y=y+1<<16>>16;if(y<<16>>16>=512)break;else{u=f?r:u;g=g+6|0}}u=(t<<16>>16)*3|0;i[h>>1]=i[9716+(u<<1)>>1]|0;i[d>>1]=i[9716+(u+1<<1)>>1]|0;i[k>>1]=i[9716+(u+2<<1)>>1]|0;i[o+2>>1]=t;u=R+12|0;i[o+4>>1]=ji(u,12788,j+12|0,512)|0;y=E;v=_;t=k;f=R;break}}else{_=R+2|0;E=R+4|0;h=a[R>>1]|0;d=i[j>>1]<<1;f=a[_>>1]|0;u=i[j+2>>1]<<1;r=a[E>>1]|0;m=i[j+4>>1]<<1;b=2147483647;s=0;t=0;v=8180;while(1){w=(ee(d,h-(a[v>>1]|0)<<16>>16)|0)>>16;w=ee(w,w)|0;p=(ee(u,f-(a[v+2>>1]|0)<<16>>16)|0)>>16;w=(ee(p,p)|0)+w|0;p=(ee(m,r-(a[v+4>>1]|0)<<16>>16)|0)>>16;p=w+(ee(p,p)|0)|0;w=(p|0)<(b|0);t=w?s:t;s=s+1<<16>>16;if(s<<16>>16>=256)break;else{b=w?p:b;v=v+6|0}}h=(t<<16>>16)*3|0;i[R>>1]=i[8180+(h<<1)>>1]|0;i[_>>1]=i[8180+(h+1<<1)>>1]|0;i[E>>1]=i[8180+(h+2<<1)>>1]|0;i[o>>1]=t;h=R+6|0;d=R+8|0;k=R+10|0;v=a[h>>1]|0;s=i[j+6>>1]<<1;b=a[d>>1]|0;w=i[j+8>>1]<<1;p=a[k>>1]|0;m=i[j+10>>1]<<1;u=2147483647;y=0;t=0;g=9716;while(1){f=(ee(s,v-(a[g>>1]|0)<<16>>16)|0)>>16;f=ee(f,f)|0;r=(ee(w,b-(a[g+2>>1]|0)<<16>>16)|0)>>16;f=(ee(r,r)|0)+f|0;r=(ee(m,p-(a[g+4>>1]|0)<<16>>16)|0)>>16;r=f+(ee(r,r)|0)|0;f=(r|0)<(u|0);t=f?y:t;y=y+1<<16>>16;if(y<<16>>16>=256)break;else{u=f?r:u;g=g+12|0}}u=(t<<16>>16)*6|0;i[h>>1]=i[9716+(u<<1)>>1]|0;i[d>>1]=i[9716+((u|1)<<1)>>1]|0;i[k>>1]=i[9716+(u+2<<1)>>1]|0;i[o+2>>1]=t;u=R+12|0;i[o+4>>1]=ji(u,16884,j+12|0,128)|0;y=_;v=E;t=k;f=R}}while(0);g=e;p=R;m=g+20|0;do{i[g>>1]=i[p>>1]|0;g=g+2|0;p=p+2|0}while((g|0)<(m|0));i[S>>1]=(a[A>>1]|0)+(a[f>>1]|0);i[S+2>>1]=(a[A+2>>1]|0)+(a[y>>1]|0);i[S+4>>1]=(a[A+4>>1]|0)+(a[v>>1]|0);i[S+6>>1]=(a[A+6>>1]|0)+(a[h>>1]|0);i[S+8>>1]=(a[A+8>>1]|0)+(a[d>>1]|0);i[S+10>>1]=(a[A+10>>1]|0)+(a[t>>1]|0);i[S+12>>1]=(a[A+12>>1]|0)+(a[u>>1]|0);i[S+14>>1]=(a[A+14>>1]|0)+(a[R+14>>1]|0);i[S+16>>1]=(a[A+16>>1]|0)+(a[R+16>>1]|0);i[S+18>>1]=(a[A+18>>1]|0)+(a[R+18>>1]|0);Pi(S,205,10,l);wi(S,n,10,l);c=M;return}function ji(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0;y=e+2|0;g=e+4|0;k=e+6|0;if(n<<16>>16>0){d=a[e>>1]|0;h=i[t>>1]<<1;m=a[y>>1]|0;p=i[t+2>>1]<<1;w=a[g>>1]|0;b=i[t+4>>1]<<1;v=a[k>>1]|0;o=i[t+6>>1]<<1;u=2147483647;f=0;t=0;c=r;while(1){s=(ee(h,d-(a[c>>1]|0)<<16>>16)|0)>>16;s=ee(s,s)|0;l=(ee(p,m-(a[c+2>>1]|0)<<16>>16)|0)>>16;s=(ee(l,l)|0)+s|0;l=(ee(b,w-(a[c+4>>1]|0)<<16>>16)|0)>>16;l=s+(ee(l,l)|0)|0;s=(ee(o,v-(a[c+6>>1]|0)<<16>>16)|0)>>16;s=l+(ee(s,s)|0)|0;l=(s|0)<(u|0);t=l?f:t;f=f+1<<16>>16;if(f<<16>>16>=n<<16>>16)break;else{u=l?s:u;c=c+8|0}}}else t=0;n=t<<16>>16<<2;v=n|1;i[e>>1]=i[r+(n<<1)>>1]|0;i[y>>1]=i[r+(v<<1)>>1]|0;i[g>>1]=i[r+(v+1<<1)>>1]|0;i[k>>1]=i[r+((n|3)<<1)>>1]|0;return t|0}function Si(e,r,t,n,o,s,l){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;l=l|0;var u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0;L=c;c=c+192|0;d=L+160|0;f=L+140|0;M=L+120|0;D=L+100|0;P=L+80|0;T=L+60|0;u=L+40|0;O=L+20|0;C=L;bi(r,d,10,l);bi(t,f,10,l);ui(d,M,l);ui(f,D,l);h=0;t=P;r=T;m=u;while(1){R=(((i[e+(h<<1)>>1]|0)*21299|0)>>>15)+(a[20980+(h<<1)>>1]|0)|0;i[t>>1]=R;i[r>>1]=(a[d>>1]|0)-R;i[m>>1]=(a[f>>1]|0)-R;h=h+1|0;if((h|0)==10)break;else{d=d+2|0;f=f+2|0;t=t+2|0;r=r+2|0;m=m+2|0}}i[s>>1]=Ai(T,u,21e3,i[M>>1]|0,i[M+2>>1]|0,i[D>>1]|0,i[D+2>>1]|0,128)|0;i[s+2>>1]=Ai(T+4|0,u+4|0,22024,i[M+4>>1]|0,i[M+6>>1]|0,i[D+4>>1]|0,i[D+6>>1]|0,256)|0;j=T+8|0;S=u+8|0;A=T+10|0;R=u+10|0;t=i[j>>1]|0;p=i[M+8>>1]<<1;w=i[A>>1]|0;b=i[M+10>>1]<<1;v=i[S>>1]|0;y=i[D+8>>1]<<1;g=i[R>>1]|0;k=i[D+10>>1]<<1;f=2147483647;_=0;m=0;E=24072;r=0;while(1){d=i[E>>1]|0;h=(ee(t-d<<16>>16,p)|0)>>16;h=ee(h,h)|0;d=(ee(d+t<<16>>16,p)|0)>>16;d=ee(d,d)|0;N=i[E+2>>1]|0;x=(ee(w-N<<16>>16,b)|0)>>16;h=(ee(x,x)|0)+h|0;N=(ee(N+w<<16>>16,b)|0)>>16;d=(ee(N,N)|0)+d|0;if((h|0)<(f|0)|(d|0)<(f|0)){x=i[E+4>>1]|0;N=(ee(v-x<<16>>16,y)|0)>>16;N=(ee(N,N)|0)+h|0;x=(ee(x+v<<16>>16,y)|0)>>16;x=(ee(x,x)|0)+d|0;d=i[E+6>>1]|0;h=(ee(g-d<<16>>16,k)|0)>>16;h=N+(ee(h,h)|0)|0;d=(ee(d+g<<16>>16,k)|0)>>16;d=x+(ee(d,d)|0)|0;x=(h|0)<(f|0);h=x?h:f;N=(d|0)<(h|0);h=N?d:h;m=x|N?_:m;r=N?1:x?0:r}else h=f;_=_+1<<16>>16;if(_<<16>>16>=256)break;else{f=h;E=E+8|0}}h=m<<16>>16;d=h<<2;m=d|1;f=24072+(m<<1)|0;t=i[24072+(d<<1)>>1]|0;if(!(r<<16>>16)){i[j>>1]=t;i[A>>1]=i[f>>1]|0;i[S>>1]=i[24072+(m+1<<1)>>1]|0;i[R>>1]=i[24072+((d|3)<<1)>>1]|0;r=h<<1}else{i[j>>1]=0-(t&65535);i[A>>1]=0-(a[f>>1]|0);i[S>>1]=0-(a[24072+(m+1<<1)>>1]|0);i[R>>1]=0-(a[24072+((d|3)<<1)>>1]|0);r=h<<1&65534|1}i[s+4>>1]=r;i[s+6>>1]=Ai(T+12|0,u+12|0,26120,i[M+12>>1]|0,i[M+14>>1]|0,i[D+12>>1]|0,i[D+14>>1]|0,256)|0;i[s+8>>1]=Ai(T+16|0,u+16|0,28168,i[M+16>>1]|0,i[M+18>>1]|0,i[D+16>>1]|0,i[D+18>>1]|0,64)|0;f=0;d=O;h=C;t=P;r=T;while(1){N=a[t>>1]|0;i[d>>1]=N+(a[r>>1]|0);x=i[u>>1]|0;i[h>>1]=N+(x&65535);i[e+(f<<1)>>1]=x;f=f+1|0;if((f|0)==10)break;else{d=d+2|0;h=h+2|0;t=t+2|0;r=r+2|0;u=u+2|0}}Pi(O,205,10,l);Pi(C,205,10,l);wi(O,n,10,l);wi(C,o,10,l);c=L;return}function Ai(e,r,t,n,o,s,a,l){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;a=a|0;l=l|0;var u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0;m=i[e>>1]|0;g=e+2|0;w=i[g>>1]|0;v=i[r>>1]|0;k=r+2|0;y=i[k>>1]|0;if(l<<16>>16>0){h=n<<16>>16<<1;d=o<<16>>16<<1;c=s<<16>>16<<1;o=a<<16>>16<<1;s=2147483647;u=0;n=0;f=t;while(1){a=(ee(h,m-(i[f>>1]|0)|0)|0)>>16;a=ee(a,a)|0;if(((a|0)<(s|0)?(p=(ee(d,w-(i[f+2>>1]|0)|0)|0)>>16,p=(ee(p,p)|0)+a|0,(p|0)<(s|0)):0)?(b=(ee(c,v-(i[f+4>>1]|0)|0)|0)>>16,b=(ee(b,b)|0)+p|0,(b|0)<(s|0)):0){a=(ee(o,y-(i[f+6>>1]|0)|0)|0)>>16;a=(ee(a,a)|0)+b|0;_=(a|0)<(s|0);a=_?a:s;n=_?u:n}else a=s;u=u+1<<16>>16;if(u<<16>>16>=l<<16>>16)break;else{s=a;f=f+8|0}}}else n=0;_=n<<16>>16<<2;l=_|1;i[e>>1]=i[t+(_<<1)>>1]|0;i[g>>1]=i[t+(l<<1)>>1]|0;i[r>>1]=i[t+(l+1<<1)>>1]|0;i[k>>1]=i[t+((_|3)<<1)>>1]|0;return n|0}function Ri(e){e=e|0;var r=0,t=0,n=0;if(!e){n=-1;return n|0}o[e>>2]=0;r=Bi(20)|0;if(!r){n=-1;return n|0}t=r;n=t+20|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(n|0));o[e>>2]=r;n=0;return n|0}function Mi(e){e=e|0;var r=0;if(!e){r=-1;return r|0}r=e+20|0;do{i[e>>1]=0;e=e+2|0}while((e|0)<(r|0));r=0;return r|0}function Di(e){e=e|0;var r=0;if(!e)return;r=o[e>>2]|0;if(!r)return;Ui(r);o[e>>2]=0;return}function Pi(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0;if(t<<16>>16<=0)return;o=r<<16>>16;s=r&65535;a=0;while(1){n=i[e>>1]|0;if(n<<16>>16<r<<16>>16){i[e>>1]=r;n=(r<<16>>16)+o|0}else n=(n&65535)+s|0;a=a+1<<16>>16;if(a<<16>>16>=t<<16>>16)break;else{r=n&65535;e=e+2|0}}return}function Ti(e,r,t,n){e=e|0;r=r|0;t=t|0;n=n|0;var o=0,s=0,a=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0;o=n<<16>>16;n=o>>>2&65535;if(!(n<<16>>16))return;h=o+-1|0;y=e+20|0;p=r+(o+-4<<1)|0;w=r+(o+-3<<1)|0;b=r+(o+-2<<1)|0;v=r+(h<<1)|0;m=r+(o+-11<<1)|0;h=t+(h<<1)|0;while(1){r=i[y>>1]|0;a=5;l=y;u=m;f=m+-2|0;c=m+-4|0;d=m+-6|0;s=2048;e=2048;o=2048;t=2048;while(1){s=(ee(i[u>>1]|0,r)|0)+s|0;e=(ee(i[f>>1]|0,r)|0)+e|0;o=(ee(i[c>>1]|0,r)|0)+o|0;r=(ee(i[d>>1]|0,r)|0)+t|0;t=i[l+-2>>1]|0;s=s+(ee(i[u+2>>1]|0,t)|0)|0;e=e+(ee(i[f+2>>1]|0,t)|0)|0;o=o+(ee(i[c+2>>1]|0,t)|0)|0;l=l+-4|0;t=r+(ee(i[d+2>>1]|0,t)|0)|0;a=a+-1<<16>>16;r=i[l>>1]|0;if(!(a<<16>>16))break;else{u=u+4|0;f=f+4|0;c=c+4|0;d=d+4|0}}u=(ee(i[v>>1]|0,r)|0)+s|0;f=(ee(i[b>>1]|0,r)|0)+e|0;c=(ee(i[w>>1]|0,r)|0)+o|0;d=(ee(i[p>>1]|0,r)|0)+t|0;i[h>>1]=u>>>12;i[h+-2>>1]=f>>>12;i[h+-4>>1]=c>>>12;i[h+-6>>1]=d>>>12;n=n+-1<<16>>16;if(!(n<<16>>16))break;else{p=p+-8|0;w=w+-8|0;b=b+-8|0;v=v+-8|0;m=m+-8|0;h=h+-8|0}}return}function Oi(e,r){e=e|0;r=r|0;var t=0;t=e+32768|0;if((e|0)>-1&(t^e|0)<0){o[r>>2]=1;t=(e>>>31)+2147483647|0}return t>>>16&65535|0}function Ci(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,i=0;n=r<<16>>16;if(!(r<<16>>16))return e|0;if(r<<16>>16>0){e=e<<16>>16>>(r<<16>>16>15?15:n)&65535;return e|0}i=0-n|0;r=e<<16>>16;i=(i&65535)<<16>>16>15?15:i<<16>>16;n=r<<i;if((n<<16>>16>>i|0)==(r|0)){i=n&65535;return i|0}o[t>>2]=1;i=e<<16>>16>0?32767:-32768;return i|0}function Li(e,r,t){e=e|0;r=r|0;t=t|0;if(r<<16>>16>15){r=0;return r|0}t=Ci(e,r,t)|0;if(r<<16>>16>0)return t+((1<<(r<<16>>16)+-1&e<<16>>16|0)!=0&1)<<16>>16|0;else{r=t;return r|0}return 0}function Ni(e,r,t){e=e|0;r=r|0;t=t|0;var n=0,s=0,l=0;if((e|0)<1){i[r>>1]=0;t=0;return t|0}s=(yi(e)|0)&65534;l=s&65535;s=s<<16>>16;if(l<<16>>16>0){n=e<<s;if((n>>s|0)!=(e|0))n=e>>31^2147483647}else{s=0-s<<16;if((s|0)<2031616)n=e>>(s>>16);else n=0}i[r>>1]=l;r=n>>>25&63;r=r>>>0>15?r+-16|0:r;l=i[30216+(r<<1)>>1]|0;e=l<<16;n=ee(l-(a[30216+(r+1<<1)>>1]|0)<<16>>16,n>>>10&32767)|0;if((n|0)==1073741824){o[t>>2]=1;s=2147483647}else s=n<<1;n=e-s|0;if(((n^e)&(s^e)|0)>=0){t=n;return t|0}o[t>>2]=1;t=(l>>>15&1)+2147483647|0;return t|0}function xi(e,r,t){e=e|0;r=r|0;t=t|0;e=(e<<16>>16)-(r<<16>>16)|0;if((e+32768|0)>>>0<=65535){t=e;t=t&65535;return t|0}o[t>>2]=1;t=(e|0)>32767?32767:-32768;t=t&65535;return t|0}function Fi(e,r,t,n,o,s){e=e|0;r=r|0;t=t|0;n=n|0;o=o|0;s=s|0;var a=0,l=0,u=0,f=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0;A=c;c=c+48|0;m=A;u=m;a=o;l=u+20|0;do{i[u>>1]=i[a>>1]|0;u=u+2|0;a=a+2|0}while((u|0)<(l|0));h=m+18|0;v=e+2|0;y=e+4|0;p=r+20|0;g=e+6|0;k=e+8|0;_=e+10|0;E=e+12|0;j=e+14|0;S=e+16|0;w=e+18|0;b=e+20|0;l=i[h>>1]|0;a=5;f=r;d=t;u=m+20|0;while(1){D=i[e>>1]|0;M=(ee(D,i[f>>1]|0)|0)+2048|0;D=(ee(i[f+2>>1]|0,D)|0)+2048|0;m=l<<16>>16;M=M-(ee(m,i[v>>1]|0)|0)|0;R=i[y>>1]|0;m=D-(ee(m,R)|0)|0;D=i[h+-2>>1]|0;R=M-(ee(D,R)|0)|0;M=i[g>>1]|0;D=m-(ee(M,D)|0)|0;m=i[h+-4>>1]|0;M=R-(ee(m,M)|0)|0;R=i[k>>1]|0;m=D-(ee(R,m)|0)|0;D=i[h+-6>>1]|0;R=M-(ee(D,R)|0)|0;M=i[_>>1]|0;D=m-(ee(D,M)|0)|0;m=i[h+-8>>1]|0;M=R-(ee(m,M)|0)|0;R=i[E>>1]|0;m=D-(ee(R,m)|0)|0;D=i[h+-10>>1]|0;R=M-(ee(D,R)|0)|0;M=i[j>>1]|0;D=m-(ee(M,D)|0)|0;m=i[h+-12>>1]|0;M=R-(ee(m,M)|0)|0;R=i[S>>1]|0;m=D-(ee(m,R)|0)|0;D=i[h+-14>>1]|0;R=M-(ee(D,R)|0)|0;M=i[w>>1]|0;D=m-(ee(M,D)|0)|0;m=i[h+-16>>1]|0;M=R-(ee(m,M)|0)|0;R=i[b>>1]|0;m=D-(ee(R,m)|0)|0;R=M-(ee(i[h+-18>>1]|0,R)|0)|0;R=(R+134217728|0)>>>0<268435455?R>>>12&65535:(R|0)>134217727?32767:-32768;m=m-(ee(i[v>>1]|0,R<<16>>16)|0)|0;h=u+2|0;i[u>>1]=R;i[d>>1]=R;l=(m+134217728|0)>>>0<268435455?m>>>12&65535:(m|0)>134217727?32767:-32768;i[h>>1]=l;i[d+2>>1]=l;a=a+-1<<16>>16;if(!(a<<16>>16))break;else{f=f+4|0;d=d+4|0;u=u+4|0}}n=(n<<16>>16)+-10|0;u=n>>>1&65535;if(u<<16>>16){m=t+18|0;l=r+16|0;h=i[m>>1]|0;f=p;a=t+20|0;while(1){R=i[e>>1]|0;d=(ee(R,i[f>>1]|0)|0)+2048|0;R=(ee(i[l+6>>1]|0,R)|0)+2048|0;l=i[v>>1]|0;M=h<<16>>16;d=d-(ee(M,l)|0)|0;D=i[y>>1]|0;M=R-(ee(M,D)|0)|0;R=i[m+-2>>1]|0;D=d-(ee(R,D)|0)|0;d=i[g>>1]|0;R=M-(ee(d,R)|0)|0;M=i[m+-4>>1]|0;d=D-(ee(M,d)|0)|0;D=i[k>>1]|0;M=R-(ee(D,M)|0)|0;R=i[m+-6>>1]|0;D=d-(ee(R,D)|0)|0;d=i[_>>1]|0;R=M-(ee(R,d)|0)|0;M=i[m+-8>>1]|0;d=D-(ee(M,d)|0)|0;D=i[E>>1]|0;M=R-(ee(D,M)|0)|0;R=i[m+-10>>1]|0;D=d-(ee(R,D)|0)|0;d=i[j>>1]|0;R=M-(ee(d,R)|0)|0;M=i[m+-12>>1]|0;d=D-(ee(M,d)|0)|0;D=i[S>>1]|0;M=R-(ee(M,D)|0)|0;R=i[m+-14>>1]|0;D=d-(ee(R,D)|0)|0;d=i[w>>1]|0;R=M-(ee(d,R)|0)|0;M=i[m+-16>>1]|0;d=D-(ee(M,d)|0)|0;D=i[b>>1]|0;M=R-(ee(D,M)|0)|0;D=d-(ee(i[m+-18>>1]|0,D)|0)|0;d=f+4|0;D=(D+134217728|0)>>>0<268435455?D>>>12&65535:(D|0)>134217727?32767:-32768;l=M-(ee(l,D<<16>>16)|0)|0;m=a+2|0;i[a>>1]=D;do{if((l+134217728|0)>>>0>=268435455){a=a+4|0;if((l|0)>134217727){i[m>>1]=32767;l=32767;break}else{i[m>>1]=-32768;l=-32768;break}}else{l=l>>>12&65535;i[m>>1]=l;a=a+4|0}}while(0);u=u+-1<<16>>16;if(!(u<<16>>16))break;else{D=f;h=l;f=d;l=D}}}if(!(s<<16>>16)){c=A;return}u=o;a=t+(n<<1)|0;l=u+20|0;do{i[u>>1]=i[a>>1]|0;u=u+2|0;a=a+2|0}while((u|0)<(l|0));c=A;return}function Ii(e,r,t){e=e|0;r=r|0;t=t|0;i[t>>1]=i[e>>1]|0;i[t+2>>1]=((ee(i[r>>1]|0,i[e+2>>1]|0)|0)+16384|0)>>>15;i[t+4>>1]=((ee(i[r+2>>1]|0,i[e+4>>1]|0)|0)+16384|0)>>>15;i[t+6>>1]=((ee(i[r+4>>1]|0,i[e+6>>1]|0)|0)+16384|0)>>>15;i[t+8>>1]=((ee(i[r+6>>1]|0,i[e+8>>1]|0)|0)+16384|0)>>>15;i[t+10>>1]=((ee(i[r+8>>1]|0,i[e+10>>1]|0)|0)+16384|0)>>>15;i[t+12>>1]=((ee(i[r+10>>1]|0,i[e+12>>1]|0)|0)+16384|0)>>>15;i[t+14>>1]=((ee(i[r+12>>1]|0,i[e+14>>1]|0)|0)+16384|0)>>>15;i[t+16>>1]=((ee(i[r+14>>1]|0,i[e+16>>1]|0)|0)+16384|0)>>>15;i[t+18>>1]=((ee(i[r+16>>1]|0,i[e+18>>1]|0)|0)+16384|0)>>>15;i[t+20>>1]=((ee(i[r+18>>1]|0,i[e+20>>1]|0)|0)+16384|0)>>>15;return}function Bi(e){e=e|0;var r=0,t=0,n=0,i=0,s=0,a=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0,M=0,D=0,P=0,T=0,O=0,C=0,L=0,N=0,x=0,F=0,I=0,B=0,U=0,z=0,q=0,V=0,H=0,W=0,Y=0,G=0;do{if(e>>>0<245){v=e>>>0<11?16:e+11&-8;e=v>>>3;d=o[26]|0;u=d>>>e;if(u&3){n=(u&1^1)+e|0;r=n<<1;t=144+(r<<2)|0;r=144+(r+2<<2)|0;i=o[r>>2]|0;s=i+8|0;a=o[s>>2]|0;do{if((t|0)==(a|0))o[26]=d&~(1<<n);else{if(a>>>0>=(o[30]|0)>>>0?(c=a+12|0,(o[c>>2]|0)==(i|0)):0){o[c>>2]=t;o[r>>2]=a;break}ae()}}while(0);Y=n<<3;o[i+4>>2]=Y|3;Y=i+(Y|4)|0;o[Y>>2]=o[Y>>2]|1;break}r=o[28]|0;if(v>>>0>r>>>0){if(u){i=2<<e;i=u<<e&(i|0-i);i=(i&0-i)+-1|0;s=i>>>12&16;i=i>>>s;n=i>>>5&8;i=i>>>n;t=i>>>2&4;i=i>>>t;a=i>>>1&2;i=i>>>a;l=i>>>1&1;l=(n|s|t|a|l)+(i>>>l)|0;i=l<<1;a=144+(i<<2)|0;i=144+(i+2<<2)|0;t=o[i>>2]|0;s=t+8|0;n=o[s>>2]|0;do{if((a|0)==(n|0)){o[26]=d&~(1<<l);h=r}else{if(n>>>0>=(o[30]|0)>>>0?(f=n+12|0,(o[f>>2]|0)==(t|0)):0){o[f>>2]=a;o[i>>2]=n;h=o[28]|0;break}ae()}}while(0);Y=l<<3;r=Y-v|0;o[t+4>>2]=v|3;u=t+v|0;o[t+(v|4)>>2]=r|1;o[t+Y>>2]=r;if(h){t=o[31]|0;n=h>>>3;a=n<<1;l=144+(a<<2)|0;i=o[26]|0;n=1<<n;if(i&n){i=144+(a+2<<2)|0;a=o[i>>2]|0;if(a>>>0<(o[30]|0)>>>0)ae();else{p=i;w=a}}else{o[26]=i|n;p=144+(a+2<<2)|0;w=l}o[p>>2]=t;o[w+12>>2]=t;o[t+8>>2]=w;o[t+12>>2]=l}o[28]=r;o[31]=u;break}e=o[27]|0;if(e){i=(e&0-e)+-1|0;W=i>>>12&16;i=i>>>W;H=i>>>5&8;i=i>>>H;Y=i>>>2&4;i=i>>>Y;a=i>>>1&2;i=i>>>a;u=i>>>1&1;u=o[408+((H|W|Y|a|u)+(i>>>u)<<2)>>2]|0;i=(o[u+4>>2]&-8)-v|0;a=u;while(1){l=o[a+16>>2]|0;if(!l){l=o[a+20>>2]|0;if(!l){r=i;break}}a=(o[l+4>>2]&-8)-v|0;Y=a>>>0<i>>>0;i=Y?a:i;a=l;u=Y?l:u}e=o[30]|0;if(u>>>0>=e>>>0?(k=u+v|0,u>>>0<k>>>0):0){n=o[u+24>>2]|0;l=o[u+12>>2]|0;do{if((l|0)==(u|0)){a=u+20|0;l=o[a>>2]|0;if(!l){a=u+16|0;l=o[a>>2]|0;if(!l){y=0;break}}while(1){s=l+20|0;i=o[s>>2]|0;if(i){l=i;a=s;continue}s=l+16|0;i=o[s>>2]|0;if(!i)break;else{l=i;a=s}}if(a>>>0<e>>>0)ae();else{o[a>>2]=0;y=l;break}}else{a=o[u+8>>2]|0;if((a>>>0>=e>>>0?(t=a+12|0,(o[t>>2]|0)==(u|0)):0)?(m=l+8|0,(o[m>>2]|0)==(u|0)):0){o[t>>2]=l;o[m>>2]=a;y=l;break}ae()}}while(0);do{if(n){a=o[u+28>>2]|0;s=408+(a<<2)|0;if((u|0)==(o[s>>2]|0)){o[s>>2]=y;if(!y){o[27]=o[27]&~(1<<a);break}}else{if(n>>>0<(o[30]|0)>>>0)ae();a=n+16|0;if((o[a>>2]|0)==(u|0))o[a>>2]=y;else o[n+20>>2]=y;if(!y)break}s=o[30]|0;if(y>>>0<s>>>0)ae();o[y+24>>2]=n;a=o[u+16>>2]|0;do{if(a)if(a>>>0<s>>>0)ae();else{o[y+16>>2]=a;o[a+24>>2]=y;break}}while(0);a=o[u+20>>2]|0;if(a)if(a>>>0<(o[30]|0)>>>0)ae();else{o[y+20>>2]=a;o[a+24>>2]=y;break}}}while(0);if(r>>>0<16){Y=r+v|0;o[u+4>>2]=Y|3;Y=u+(Y+4)|0;o[Y>>2]=o[Y>>2]|1}else{o[u+4>>2]=v|3;o[u+(v|4)>>2]=r|1;o[u+(r+v)>>2]=r;n=o[28]|0;if(n){t=o[31]|0;i=n>>>3;a=i<<1;l=144+(a<<2)|0;s=o[26]|0;i=1<<i;if(s&i){a=144+(a+2<<2)|0;s=o[a>>2]|0;if(s>>>0<(o[30]|0)>>>0)ae();else{g=a;_=s}}else{o[26]=s|i;g=144+(a+2<<2)|0;_=l}o[g>>2]=t;o[_+12>>2]=t;o[t+8>>2]=_;o[t+12>>2]=l}o[28]=r;o[31]=k}s=u+8|0;break}ae()}else G=154}else G=154}else if(e>>>0<=4294967231){e=e+11|0;_=e&-8;d=o[27]|0;if(d){u=0-_|0;e=e>>>8;if(e)if(_>>>0>16777215)c=31;else{k=(e+1048320|0)>>>16&8;G=e<<k;g=(G+520192|0)>>>16&4;G=G<<g;c=(G+245760|0)>>>16&2;c=14-(g|k|c)+(G<<c>>>15)|0;c=_>>>(c+7|0)&1|c<<1}else c=0;e=o[408+(c<<2)>>2]|0;e:do{if(!e){l=0;e=0;G=86}else{t=u;l=0;r=_<<((c|0)==31?0:25-(c>>>1)|0);f=e;e=0;while(1){n=o[f+4>>2]&-8;u=n-_|0;if(u>>>0<t>>>0)if((n|0)==(_|0)){n=f;e=f;G=90;break e}else e=f;else u=t;G=o[f+20>>2]|0;f=o[f+16+(r>>>31<<2)>>2]|0;l=(G|0)==0|(G|0)==(f|0)?l:G;if(!f){G=86;break}else{t=u;r=r<<1}}}}while(0);if((G|0)==86){if((l|0)==0&(e|0)==0){e=2<<c;e=d&(e|0-e);if(!e){v=_;G=154;break}e=(e&0-e)+-1|0;y=e>>>12&16;e=e>>>y;w=e>>>5&8;e=e>>>w;g=e>>>2&4;e=e>>>g;k=e>>>1&2;e=e>>>k;l=e>>>1&1;l=o[408+((w|y|g|k|l)+(e>>>l)<<2)>>2]|0;e=0}if(!l){w=u;p=e}else{n=l;G=90}}if((G|0)==90)while(1){G=0;k=(o[n+4>>2]&-8)-_|0;l=k>>>0<u>>>0;u=l?k:u;e=l?n:e;l=o[n+16>>2]|0;if(l){n=l;G=90;continue}n=o[n+20>>2]|0;if(!n){w=u;p=e;break}else G=90}if((p|0)!=0?w>>>0<((o[28]|0)-_|0)>>>0:0){e=o[30]|0;if(p>>>0>=e>>>0?(C=p+_|0,p>>>0<C>>>0):0){u=o[p+24>>2]|0;l=o[p+12>>2]|0;do{if((l|0)==(p|0)){a=p+20|0;l=o[a>>2]|0;if(!l){a=p+16|0;l=o[a>>2]|0;if(!l){j=0;break}}while(1){s=l+20|0;i=o[s>>2]|0;if(i){l=i;a=s;continue}s=l+16|0;i=o[s>>2]|0;if(!i)break;else{l=i;a=s}}if(a>>>0<e>>>0)ae();else{o[a>>2]=0;j=l;break}}else{a=o[p+8>>2]|0;if((a>>>0>=e>>>0?(b=a+12|0,(o[b>>2]|0)==(p|0)):0)?(v=l+8|0,(o[v>>2]|0)==(p|0)):0){o[b>>2]=l;o[v>>2]=a;j=l;break}ae()}}while(0);do{if(u){l=o[p+28>>2]|0;a=408+(l<<2)|0;if((p|0)==(o[a>>2]|0)){o[a>>2]=j;if(!j){o[27]=o[27]&~(1<<l);break}}else{if(u>>>0<(o[30]|0)>>>0)ae();a=u+16|0;if((o[a>>2]|0)==(p|0))o[a>>2]=j;else o[u+20>>2]=j;if(!j)break}l=o[30]|0;if(j>>>0<l>>>0)ae();o[j+24>>2]=u;a=o[p+16>>2]|0;do{if(a)if(a>>>0<l>>>0)ae();else{o[j+16>>2]=a;o[a+24>>2]=j;break}}while(0);a=o[p+20>>2]|0;if(a)if(a>>>0<(o[30]|0)>>>0)ae();else{o[j+20>>2]=a;o[a+24>>2]=j;break}}}while(0);e:do{if(w>>>0>=16){o[p+4>>2]=_|3;o[p+(_|4)>>2]=w|1;o[p+(w+_)>>2]=w;l=w>>>3;if(w>>>0<256){s=l<<1;n=144+(s<<2)|0;i=o[26]|0;a=1<<l;if(i&a){a=144+(s+2<<2)|0;s=o[a>>2]|0;if(s>>>0<(o[30]|0)>>>0)ae();else{S=a;A=s}}else{o[26]=i|a;S=144+(s+2<<2)|0;A=n}o[S>>2]=C;o[A+12>>2]=C;o[p+(_+8)>>2]=A;o[p+(_+12)>>2]=n;break}t=w>>>8;if(t)if(w>>>0>16777215)l=31;else{W=(t+1048320|0)>>>16&8;Y=t<<W;H=(Y+520192|0)>>>16&4;Y=Y<<H;l=(Y+245760|0)>>>16&2;l=14-(H|W|l)+(Y<<l>>>15)|0;l=w>>>(l+7|0)&1|l<<1}else l=0;a=408+(l<<2)|0;o[p+(_+28)>>2]=l;o[p+(_+20)>>2]=0;o[p+(_+16)>>2]=0;s=o[27]|0;i=1<<l;if(!(s&i)){o[27]=s|i;o[a>>2]=C;o[p+(_+24)>>2]=a;o[p+(_+12)>>2]=C;o[p+(_+8)>>2]=C;break}t=o[a>>2]|0;r:do{if((o[t+4>>2]&-8|0)!=(w|0)){l=w<<((l|0)==31?0:25-(l>>>1)|0);while(1){r=t+16+(l>>>31<<2)|0;a=o[r>>2]|0;if(!a)break;if((o[a+4>>2]&-8|0)==(w|0)){M=a;break r}else{l=l<<1;t=a}}if(r>>>0<(o[30]|0)>>>0)ae();else{o[r>>2]=C;o[p+(_+24)>>2]=t;o[p+(_+12)>>2]=C;o[p+(_+8)>>2]=C;break e}}else M=t}while(0);t=M+8|0;r=o[t>>2]|0;Y=o[30]|0;if(r>>>0>=Y>>>0&M>>>0>=Y>>>0){o[r+12>>2]=C;o[t>>2]=C;o[p+(_+8)>>2]=r;o[p+(_+12)>>2]=M;o[p+(_+24)>>2]=0;break}else ae()}else{Y=w+_|0;o[p+4>>2]=Y|3;Y=p+(Y+4)|0;o[Y>>2]=o[Y>>2]|1}}while(0);s=p+8|0;break}ae()}else{v=_;G=154}}else{v=_;G=154}}else{v=-1;G=154}}while(0);e:do{if((G|0)==154){e=o[28]|0;if(e>>>0>=v>>>0){r=e-v|0;t=o[31]|0;if(r>>>0>15){o[31]=t+v;o[28]=r;o[t+(v+4)>>2]=r|1;o[t+e>>2]=r;o[t+4>>2]=v|3}else{o[28]=0;o[31]=0;o[t+4>>2]=e|3;G=t+(e+4)|0;o[G>>2]=o[G>>2]|1}s=t+8|0;break}e=o[29]|0;if(e>>>0>v>>>0){G=e-v|0;o[29]=G;s=o[32]|0;o[32]=s+v;o[s+(v+4)>>2]=G|1;o[s+4>>2]=v|3;s=s+8|0;break}if(!(o[144]|0))qi();d=v+48|0;t=o[146]|0;c=v+47|0;n=t+c|0;t=0-t|0;f=n&t;if(f>>>0>v>>>0){e=o[136]|0;if((e|0)!=0?(M=o[134]|0,C=M+f|0,C>>>0<=M>>>0|C>>>0>e>>>0):0){s=0;break}r:do{if(!(o[137]&4)){e=o[32]|0;t:do{if(e){l=552;while(1){u=o[l>>2]|0;if(u>>>0<=e>>>0?(E=l+4|0,(u+(o[E>>2]|0)|0)>>>0>e>>>0):0){s=l;e=E;break}l=o[l+8>>2]|0;if(!l){G=172;break t}}u=n-(o[29]|0)&t;if(u>>>0<2147483647){l=ue(u|0)|0;C=(l|0)==((o[s>>2]|0)+(o[e>>2]|0)|0);e=C?u:0;if(C){if((l|0)!=(-1|0)){A=l;y=e;G=192;break r}}else G=182}else e=0}else G=172}while(0);do{if((G|0)==172){s=ue(0)|0;if((s|0)!=(-1|0)){e=s;u=o[145]|0;l=u+-1|0;if(!(l&e))u=f;else u=f-e+(l+e&0-u)|0;e=o[134]|0;l=e+u|0;if(u>>>0>v>>>0&u>>>0<2147483647){C=o[136]|0;if((C|0)!=0?l>>>0<=e>>>0|l>>>0>C>>>0:0){e=0;break}l=ue(u|0)|0;G=(l|0)==(s|0);e=G?u:0;if(G){A=s;y=e;G=192;break r}else G=182}else e=0}else e=0}}while(0);t:do{if((G|0)==182){s=0-u|0;do{if(d>>>0>u>>>0&(u>>>0<2147483647&(l|0)!=(-1|0))?(R=o[146]|0,R=c-u+R&0-R,R>>>0<2147483647):0)if((ue(R|0)|0)==(-1|0)){ue(s|0)|0;break t}else{u=R+u|0;break}}while(0);if((l|0)!=(-1|0)){A=l;y=u;G=192;break r}}}while(0);o[137]=o[137]|4;G=189}else{e=0;G=189}}while(0);if((((G|0)==189?f>>>0<2147483647:0)?(D=ue(f|0)|0,P=ue(0)|0,D>>>0<P>>>0&((D|0)!=(-1|0)&(P|0)!=(-1|0))):0)?(T=P-D|0,O=T>>>0>(v+40|0)>>>0,O):0){A=D;y=O?T:e;G=192}if((G|0)==192){u=(o[134]|0)+y|0;o[134]=u;if(u>>>0>(o[135]|0)>>>0)o[135]=u;w=o[32]|0;r:do{if(w){s=552;do{e=o[s>>2]|0;u=s+4|0;l=o[u>>2]|0;if((A|0)==(e+l|0)){L=e;N=u;x=l;F=s;G=202;break}s=o[s+8>>2]|0}while((s|0)!=0);if(((G|0)==202?(o[F+12>>2]&8|0)==0:0)?w>>>0<A>>>0&w>>>0>=L>>>0:0){o[N>>2]=x+y;G=(o[29]|0)+y|0;Y=w+8|0;Y=(Y&7|0)==0?0:0-Y&7;W=G-Y|0;o[32]=w+Y;o[29]=W;o[w+(Y+4)>>2]=W|1;o[w+(G+4)>>2]=40;o[33]=o[148];break}u=o[30]|0;if(A>>>0<u>>>0){o[30]=A;u=A}l=A+y|0;e=552;while(1){if((o[e>>2]|0)==(l|0)){s=e;l=e;G=210;break}e=o[e+8>>2]|0;if(!e){l=552;break}}if((G|0)==210)if(!(o[l+12>>2]&8)){o[s>>2]=A;m=l+4|0;o[m>>2]=(o[m>>2]|0)+y;m=A+8|0;m=(m&7|0)==0?0:0-m&7;c=A+(y+8)|0;c=(c&7|0)==0?0:0-c&7;l=A+(c+y)|0;p=m+v|0;h=A+p|0;e=l-(A+m)-v|0;o[A+(m+4)>>2]=v|3;t:do{if((l|0)!=(w|0)){if((l|0)==(o[31]|0)){G=(o[28]|0)+e|0;o[28]=G;o[31]=h;o[A+(p+4)>>2]=G|1;o[A+(G+p)>>2]=G;break}r=y+4|0;a=o[A+(r+c)>>2]|0;if((a&3|0)==1){f=a&-8;n=a>>>3;n:do{if(a>>>0>=256){t=o[A+((c|24)+y)>>2]|0;s=o[A+(y+12+c)>>2]|0;i:do{if((s|0)==(l|0)){i=c|16;s=A+(r+i)|0;a=o[s>>2]|0;if(!a){s=A+(i+y)|0;a=o[s>>2]|0;if(!a){V=0;break}}while(1){i=a+20|0;n=o[i>>2]|0;if(n){a=n;s=i;continue}i=a+16|0;n=o[i>>2]|0;if(!n)break;else{a=n;s=i}}if(s>>>0<u>>>0)ae();else{o[s>>2]=0;V=a;break}}else{i=o[A+((c|8)+y)>>2]|0;do{if(i>>>0>=u>>>0){u=i+12|0;if((o[u>>2]|0)!=(l|0))break;a=s+8|0;if((o[a>>2]|0)!=(l|0))break;o[u>>2]=s;o[a>>2]=i;V=s;break i}}while(0);ae()}}while(0);if(!t)break;u=o[A+(y+28+c)>>2]|0;a=408+(u<<2)|0;do{if((l|0)!=(o[a>>2]|0)){if(t>>>0<(o[30]|0)>>>0)ae();a=t+16|0;if((o[a>>2]|0)==(l|0))o[a>>2]=V;else o[t+20>>2]=V;if(!V)break n}else{o[a>>2]=V;if(V)break;o[27]=o[27]&~(1<<u);break n}}while(0);u=o[30]|0;if(V>>>0<u>>>0)ae();o[V+24>>2]=t;l=c|16;a=o[A+(l+y)>>2]|0;do{if(a)if(a>>>0<u>>>0)ae();else{o[V+16>>2]=a;o[a+24>>2]=V;break}}while(0);l=o[A+(r+l)>>2]|0;if(!l)break;if(l>>>0<(o[30]|0)>>>0)ae();else{o[V+20>>2]=l;o[l+24>>2]=V;break}}else{a=o[A+((c|8)+y)>>2]|0;s=o[A+(y+12+c)>>2]|0;i=144+(n<<1<<2)|0;do{if((a|0)!=(i|0)){if(a>>>0>=u>>>0?(o[a+12>>2]|0)==(l|0):0)break;ae()}}while(0);if((s|0)==(a|0)){o[26]=o[26]&~(1<<n);break}do{if((s|0)==(i|0))I=s+8|0;else{if(s>>>0>=u>>>0?(B=s+8|0,(o[B>>2]|0)==(l|0)):0){I=B;break}ae()}}while(0);o[a+12>>2]=s;o[I>>2]=a}}while(0);l=A+((f|c)+y)|0;e=f+e|0}l=l+4|0;o[l>>2]=o[l>>2]&-2;o[A+(p+4)>>2]=e|1;o[A+(e+p)>>2]=e;l=e>>>3;if(e>>>0<256){s=l<<1;n=144+(s<<2)|0;i=o[26]|0;a=1<<l;do{if(!(i&a)){o[26]=i|a;H=144+(s+2<<2)|0;W=n}else{a=144+(s+2<<2)|0;s=o[a>>2]|0;if(s>>>0>=(o[30]|0)>>>0){H=a;W=s;break}ae()}}while(0);o[H>>2]=h;o[W+12>>2]=h;o[A+(p+8)>>2]=W;o[A+(p+12)>>2]=n;break}t=e>>>8;do{if(!t)l=0;else{if(e>>>0>16777215){l=31;break}W=(t+1048320|0)>>>16&8;G=t<<W;H=(G+520192|0)>>>16&4;G=G<<H;l=(G+245760|0)>>>16&2;l=14-(H|W|l)+(G<<l>>>15)|0;l=e>>>(l+7|0)&1|l<<1}}while(0);a=408+(l<<2)|0;o[A+(p+28)>>2]=l;o[A+(p+20)>>2]=0;o[A+(p+16)>>2]=0;s=o[27]|0;i=1<<l;if(!(s&i)){o[27]=s|i;o[a>>2]=h;o[A+(p+24)>>2]=a;o[A+(p+12)>>2]=h;o[A+(p+8)>>2]=h;break}t=o[a>>2]|0;n:do{if((o[t+4>>2]&-8|0)!=(e|0)){l=e<<((l|0)==31?0:25-(l>>>1)|0);while(1){r=t+16+(l>>>31<<2)|0;a=o[r>>2]|0;if(!a)break;if((o[a+4>>2]&-8|0)==(e|0)){Y=a;break n}else{l=l<<1;t=a}}if(r>>>0<(o[30]|0)>>>0)ae();else{o[r>>2]=h;o[A+(p+24)>>2]=t;o[A+(p+12)>>2]=h;o[A+(p+8)>>2]=h;break t}}else Y=t}while(0);t=Y+8|0;r=o[t>>2]|0;G=o[30]|0;if(r>>>0>=G>>>0&Y>>>0>=G>>>0){o[r+12>>2]=h;o[t>>2]=h;o[A+(p+8)>>2]=r;o[A+(p+12)>>2]=Y;o[A+(p+24)>>2]=0;break}else ae()}else{G=(o[29]|0)+e|0;o[29]=G;o[32]=h;o[A+(p+4)>>2]=G|1}}while(0);s=A+(m|8)|0;break e}else l=552;while(1){s=o[l>>2]|0;if(s>>>0<=w>>>0?(a=o[l+4>>2]|0,i=s+a|0,i>>>0>w>>>0):0)break;l=o[l+8>>2]|0}l=s+(a+-39)|0;l=s+(a+-47+((l&7|0)==0?0:0-l&7))|0;u=w+16|0;l=l>>>0<u>>>0?w:l;a=l+8|0;s=A+8|0;s=(s&7|0)==0?0:0-s&7;G=y+-40-s|0;o[32]=A+s;o[29]=G;o[A+(s+4)>>2]=G|1;o[A+(y+-36)>>2]=40;o[33]=o[148];s=l+4|0;o[s>>2]=27;o[a>>2]=o[138];o[a+4>>2]=o[139];o[a+8>>2]=o[140];o[a+12>>2]=o[141];o[138]=A;o[139]=y;o[141]=0;o[140]=a;a=l+28|0;o[a>>2]=7;if((l+32|0)>>>0<i>>>0)do{G=a;a=a+4|0;o[a>>2]=7}while((G+8|0)>>>0<i>>>0);if((l|0)!=(w|0)){e=l-w|0;o[s>>2]=o[s>>2]&-2;o[w+4>>2]=e|1;o[l>>2]=e;i=e>>>3;if(e>>>0<256){a=i<<1;l=144+(a<<2)|0;s=o[26]|0;n=1<<i;if(s&n){t=144+(a+2<<2)|0;r=o[t>>2]|0;if(r>>>0<(o[30]|0)>>>0)ae();else{U=t;z=r}}else{o[26]=s|n;U=144+(a+2<<2)|0;z=l}o[U>>2]=w;o[z+12>>2]=w;o[w+8>>2]=z;o[w+12>>2]=l;break}t=e>>>8;if(t)if(e>>>0>16777215)a=31;else{Y=(t+1048320|0)>>>16&8;G=t<<Y;W=(G+520192|0)>>>16&4;G=G<<W;a=(G+245760|0)>>>16&2;a=14-(W|Y|a)+(G<<a>>>15)|0;a=e>>>(a+7|0)&1|a<<1}else a=0;n=408+(a<<2)|0;o[w+28>>2]=a;o[w+20>>2]=0;o[u>>2]=0;t=o[27]|0;r=1<<a;if(!(t&r)){o[27]=t|r;o[n>>2]=w;o[w+24>>2]=n;o[w+12>>2]=w;o[w+8>>2]=w;break}t=o[n>>2]|0;t:do{if((o[t+4>>2]&-8|0)!=(e|0)){a=e<<((a|0)==31?0:25-(a>>>1)|0);while(1){r=t+16+(a>>>31<<2)|0;n=o[r>>2]|0;if(!n)break;if((o[n+4>>2]&-8|0)==(e|0)){q=n;break t}else{a=a<<1;t=n}}if(r>>>0<(o[30]|0)>>>0)ae();else{o[r>>2]=w;o[w+24>>2]=t;o[w+12>>2]=w;o[w+8>>2]=w;break r}}else q=t}while(0);t=q+8|0;r=o[t>>2]|0;G=o[30]|0;if(r>>>0>=G>>>0&q>>>0>=G>>>0){o[r+12>>2]=w;o[t>>2]=w;o[w+8>>2]=r;o[w+12>>2]=q;o[w+24>>2]=0;break}else ae()}}else{G=o[30]|0;if((G|0)==0|A>>>0<G>>>0)o[30]=A;o[138]=A;o[139]=y;o[141]=0;o[35]=o[144];o[34]=-1;t=0;do{G=t<<1;Y=144+(G<<2)|0;o[144+(G+3<<2)>>2]=Y;o[144+(G+2<<2)>>2]=Y;t=t+1|0}while((t|0)!=32);G=A+8|0;G=(G&7|0)==0?0:0-G&7;Y=y+-40-G|0;o[32]=A+G;o[29]=Y;o[A+(G+4)>>2]=Y|1;o[A+(y+-36)>>2]=40;o[33]=o[148]}}while(0);r=o[29]|0;if(r>>>0>v>>>0){G=r-v|0;o[29]=G;s=o[32]|0;o[32]=s+v;o[s+(v+4)>>2]=G|1;o[s+4>>2]=v|3;s=s+8|0;break}}o[(zi()|0)>>2]=12;s=0}else s=0}}while(0);return s|0}function Ui(e){e=e|0;var r=0,t=0,n=0,i=0,s=0,a=0,l=0,u=0,f=0,c=0,d=0,h=0,m=0,p=0,w=0,b=0,v=0,y=0,g=0,k=0,_=0,E=0,j=0,S=0,A=0,R=0;e:do{if(e){i=e+-8|0;f=o[30]|0;r:do{if(i>>>0>=f>>>0?(n=o[e+-4>>2]|0,t=n&3,(t|0)!=1):0){k=n&-8;_=e+(k+-8)|0;do{if(!(n&1)){i=o[i>>2]|0;if(!t)break e;c=-8-i|0;h=e+c|0;m=i+k|0;if(h>>>0<f>>>0)break r;if((h|0)==(o[31]|0)){s=e+(k+-4)|0;i=o[s>>2]|0;if((i&3|0)!=3){R=h;s=m;break}o[28]=m;o[s>>2]=i&-2;o[e+(c+4)>>2]=m|1;o[_>>2]=m;break e}t=i>>>3;if(i>>>0<256){n=o[e+(c+8)>>2]|0;s=o[e+(c+12)>>2]|0;i=144+(t<<1<<2)|0;do{if((n|0)!=(i|0)){if(n>>>0>=f>>>0?(o[n+12>>2]|0)==(h|0):0)break;ae()}}while(0);if((s|0)==(n|0)){o[26]=o[26]&~(1<<t);R=h;s=m;break}do{if((s|0)==(i|0))r=s+8|0;else{if(s>>>0>=f>>>0?(a=s+8|0,(o[a>>2]|0)==(h|0)):0){r=a;break}ae()}}while(0);o[n+12>>2]=s;o[r>>2]=n;R=h;s=m;break}a=o[e+(c+24)>>2]|0;i=o[e+(c+12)>>2]|0;do{if((i|0)==(h|0)){n=e+(c+20)|0;i=o[n>>2]|0;if(!i){n=e+(c+16)|0;i=o[n>>2]|0;if(!i){d=0;break}}while(1){t=i+20|0;r=o[t>>2]|0;if(r){i=r;n=t;continue}t=i+16|0;r=o[t>>2]|0;if(!r)break;else{i=r;n=t}}if(n>>>0<f>>>0)ae();else{o[n>>2]=0;d=i;break}}else{n=o[e+(c+8)>>2]|0;if((n>>>0>=f>>>0?(l=n+12|0,(o[l>>2]|0)==(h|0)):0)?(u=i+8|0,(o[u>>2]|0)==(h|0)):0){o[l>>2]=i;o[u>>2]=n;d=i;break}ae()}}while(0);if(a){i=o[e+(c+28)>>2]|0;n=408+(i<<2)|0;if((h|0)==(o[n>>2]|0)){o[n>>2]=d;if(!d){o[27]=o[27]&~(1<<i);R=h;s=m;break}}else{if(a>>>0<(o[30]|0)>>>0)ae();i=a+16|0;if((o[i>>2]|0)==(h|0))o[i>>2]=d;else o[a+20>>2]=d;if(!d){R=h;s=m;break}}n=o[30]|0;if(d>>>0<n>>>0)ae();o[d+24>>2]=a;i=o[e+(c+16)>>2]|0;do{if(i)if(i>>>0<n>>>0)ae();else{o[d+16>>2]=i;o[i+24>>2]=d;break}}while(0);i=o[e+(c+20)>>2]|0;if(i)if(i>>>0<(o[30]|0)>>>0)ae();else{o[d+20>>2]=i;o[i+24>>2]=d;R=h;s=m;break}else{R=h;s=m}}else{R=h;s=m}}else{R=i;s=k}}while(0);if(R>>>0<_>>>0?(p=e+(k+-4)|0,w=o[p>>2]|0,(w&1|0)!=0):0){if(!(w&2)){if((_|0)==(o[32]|0)){A=(o[29]|0)+s|0;o[29]=A;o[32]=R;o[R+4>>2]=A|1;if((R|0)!=(o[31]|0))break e;o[31]=0;o[28]=0;break e}if((_|0)==(o[31]|0)){A=(o[28]|0)+s|0;o[28]=A;o[31]=R;o[R+4>>2]=A|1;o[R+A>>2]=A;break e}u=(w&-8)+s|0;t=w>>>3;do{if(w>>>0>=256){r=o[e+(k+16)>>2]|0;s=o[e+(k|4)>>2]|0;do{if((s|0)==(_|0)){i=e+(k+12)|0;s=o[i>>2]|0;if(!s){i=e+(k+8)|0;s=o[i>>2]|0;if(!s){E=0;break}}while(1){n=s+20|0;t=o[n>>2]|0;if(t){s=t;i=n;continue}n=s+16|0;t=o[n>>2]|0;if(!t)break;else{s=t;i=n}}if(i>>>0<(o[30]|0)>>>0)ae();else{o[i>>2]=0;E=s;break}}else{i=o[e+k>>2]|0;if((i>>>0>=(o[30]|0)>>>0?(y=i+12|0,(o[y>>2]|0)==(_|0)):0)?(g=s+8|0,(o[g>>2]|0)==(_|0)):0){o[y>>2]=s;o[g>>2]=i;E=s;break}ae()}}while(0);if(r){s=o[e+(k+20)>>2]|0;i=408+(s<<2)|0;if((_|0)==(o[i>>2]|0)){o[i>>2]=E;if(!E){o[27]=o[27]&~(1<<s);break}}else{if(r>>>0<(o[30]|0)>>>0)ae();s=r+16|0;if((o[s>>2]|0)==(_|0))o[s>>2]=E;else o[r+20>>2]=E;if(!E)break}s=o[30]|0;if(E>>>0<s>>>0)ae();o[E+24>>2]=r;i=o[e+(k+8)>>2]|0;do{if(i)if(i>>>0<s>>>0)ae();else{o[E+16>>2]=i;o[i+24>>2]=E;break}}while(0);t=o[e+(k+12)>>2]|0;if(t)if(t>>>0<(o[30]|0)>>>0)ae();else{o[E+20>>2]=t;o[t+24>>2]=E;break}}}else{n=o[e+k>>2]|0;s=o[e+(k|4)>>2]|0;i=144+(t<<1<<2)|0;do{if((n|0)!=(i|0)){if(n>>>0>=(o[30]|0)>>>0?(o[n+12>>2]|0)==(_|0):0)break;ae()}}while(0);if((s|0)==(n|0)){o[26]=o[26]&~(1<<t);break}do{if((s|0)==(i|0))b=s+8|0;else{if(s>>>0>=(o[30]|0)>>>0?(v=s+8|0,(o[v>>2]|0)==(_|0)):0){b=v;break}ae()}}while(0);o[n+12>>2]=s;o[b>>2]=n}}while(0);o[R+4>>2]=u|1;o[R+u>>2]=u;if((R|0)==(o[31]|0)){o[28]=u;break e}else s=u}else{o[p>>2]=w&-2;o[R+4>>2]=s|1;o[R+s>>2]=s}i=s>>>3;if(s>>>0<256){n=i<<1;s=144+(n<<2)|0;r=o[26]|0;t=1<<i;if(r&t){t=144+(n+2<<2)|0;r=o[t>>2]|0;if(r>>>0<(o[30]|0)>>>0)ae();else{j=t;S=r}}else{o[26]=r|t;j=144+(n+2<<2)|0;S=s}o[j>>2]=R;o[S+12>>2]=R;o[R+8>>2]=S;o[R+12>>2]=s;break e}r=s>>>8;if(r)if(s>>>0>16777215)i=31;else{j=(r+1048320|0)>>>16&8;S=r<<j;e=(S+520192|0)>>>16&4;S=S<<e;i=(S+245760|0)>>>16&2;i=14-(e|j|i)+(S<<i>>>15)|0;i=s>>>(i+7|0)&1|i<<1}else i=0;t=408+(i<<2)|0;o[R+28>>2]=i;o[R+20>>2]=0;o[R+16>>2]=0;r=o[27]|0;n=1<<i;t:do{if(r&n){t=o[t>>2]|0;n:do{if((o[t+4>>2]&-8|0)!=(s|0)){i=s<<((i|0)==31?0:25-(i>>>1)|0);while(1){r=t+16+(i>>>31<<2)|0;n=o[r>>2]|0;if(!n)break;if((o[n+4>>2]&-8|0)==(s|0)){A=n;break n}else{i=i<<1;t=n}}if(r>>>0<(o[30]|0)>>>0)ae();else{o[r>>2]=R;o[R+24>>2]=t;o[R+12>>2]=R;o[R+8>>2]=R;break t}}else A=t}while(0);r=A+8|0;t=o[r>>2]|0;S=o[30]|0;if(t>>>0>=S>>>0&A>>>0>=S>>>0){o[t+12>>2]=R;o[r>>2]=R;o[R+8>>2]=t;o[R+12>>2]=A;o[R+24>>2]=0;break}else ae()}else{o[27]=r|n;o[t>>2]=R;o[R+24>>2]=t;o[R+12>>2]=R;o[R+8>>2]=R}}while(0);R=(o[34]|0)+-1|0;o[34]=R;if(!R)r=560;else break e;while(1){r=o[r>>2]|0;if(!r)break;else r=r+8|0}o[34]=-1;break e}}}while(0);ae()}}while(0);return}function zi(){var e=0;if(!0)e=600;return e|0}function qi(){var e=0;do{if(!(o[144]|0)){e=oe(30)|0;if(!(e+-1&e)){o[146]=e;o[145]=e;o[147]=-1;o[148]=-1;o[149]=0;o[137]=0;o[144]=(fe(0)|0)&-16^1431655768;break}else ae()}}while(0);return}function Vi(){}function Hi(e,r,t){e=e|0;r=r|0;t=t|0;var i=0;if((t|0)>=4096)return de(e|0,r|0,t|0)|0;i=e|0;if((e&3)==(r&3)){while(e&3){if(!t)return i|0;n[e>>0]=n[r>>0]|0;e=e+1|0;r=r+1|0;t=t-1|0}while((t|0)>=4){o[e>>2]=o[r>>2];e=e+4|0;r=r+4|0;t=t-4|0}}while((t|0)>0){n[e>>0]=n[r>>0]|0;e=e+1|0;r=r+1|0;t=t-1|0}return i|0}function Wi(e,r,t){e=e|0;r=r|0;t=t|0;var i=0;if((r|0)<(e|0)&(e|0)<(r+t|0)){i=e;r=r+t|0;e=e+t|0;while((t|0)>0){e=e-1|0;r=r-1|0;t=t-1|0;n[e>>0]=n[r>>0]|0}e=i}else Hi(e,r,t)|0;return e|0}function Yi(e,r,t){e=e|0;r=r|0;t=t|0;var i=0,s=0,a=0,l=0;i=e+t|0;if((t|0)>=20){r=r&255;a=e&3;l=r|r<<8|r<<16|r<<24;s=i&~3;if(a){a=e+4-a|0;while((e|0)<(a|0)){n[e>>0]=r;e=e+1|0}}while((e|0)<(s|0)){o[e>>2]=l;e=e+4|0}}while((e|0)<(i|0)){n[e>>0]=r;e=e+1|0}return e-t|0}return{R:Ui,___errno_location:zi,F:Wi,O:Ae,D:Se,T:Re,P:Yi,S:Bi,L:Hi,N:Me,M:je,I:De,runPostSets:Vi,stackAlloc:pe,stackSave:we,stackRestore:be,establishStackSpace:ve,setThrew:ye,setTempRet0:_e,getTempRet0:Ee}}(e.asmGlobalArg,e.asmLibraryArg,fe);e.I=ur.I;var fr=e.R=ur.R;e.runPostSets=ur.runPostSets;var cr=e.F=ur.F;e.D=ur.D,e.T=ur.T;var dr,hr=e.P=ur.P,mr=e.S=ur.S,pr=e.L=ur.L;function wr(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function br(r){function t(){e.calledRun||(e.calledRun=!0,w||(_e(),Ee(),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e._&&kr&&e.callMain(r),Se()))}r=r||e.arguments,Ue>0||(ke(),Ue>0||e.calledRun||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),t()}),1)):t()))}function vr(r,t){if(!t||!e.noExitRuntime)throw e.noExitRuntime||(w=!0,se=dr,je(),e.onExit&&e.onExit(r)),a&&"function"==typeof quit&&quit(r),new wr(r)}e.O=ur.O,e.M=ur.M,e.N=ur.N,e.___errno_location=ur.___errno_location,f.stackAlloc=ur.stackAlloc,f.stackSave=ur.stackSave,f.stackRestore=ur.stackRestore,f.establishStackSpace=ur.establishStackSpace,f.setTempRet0=ur.setTempRet0,f.getTempRet0=ur.getTempRet0,wr.prototype=new Error,wr.prototype.constructor=wr,ze=function r(){e.calledRun||br(),e.calledRun||(ze=r)},e.callMain=e.callMain=function(r){b(0==Ue,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),b(0==pe.length,"cannot call main when preRun functions remain to be called"),r=r||[],_e();var t=r.length+1;function n(){for(var e=0;e<3;e++)i.push(0)}var i=[A(Te(e.thisProgram),"i8",k)];n();for(var o=0;o<t-1;o+=1)i.push(A(Te(r[o]),"i8",k)),n();i.push(0),i=A(i,"i32",k),dr=f.stackSave();try{vr(e._(t,i,0),!0)}catch(r){if(r instanceof wr)return;if("SimulateInfiniteLoop"==r)return e.noExitRuntime=!0,void f.stackRestore(dr);throw r&&"object"==typeof r&&r.stack&&e.printErr("exception thrown: "+[r,r.stack]),r}},e.run=e.run=br,e.exit=e.exit=vr;var yr=[];function gr(r){void 0!==r?(e.print(r),e.printErr(r),r=JSON.stringify(r)):r="",w=!0;var t="abort("+r+") at "+W()+"\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";throw yr&&yr.forEach((function(e){t=e(t,r)})),t}if(e.abort=e.abort=gr,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var kr=!0;return e.noInitialRun&&(kr=!1),e.noExitRuntime=!0,br(),r}();self.onmessage=function(r){switch(r.data.command){case"encode":t=r.data.samples,n=r.data.sampleRate,i=r.data.mode,o=r.data.requestId,n=n||8e3,self.postMessage({command:"encode",amr:e.encode(t,n,i),requestId:o});break;case"decode":!function(r,t=!0,n=0){self.postMessage({command:"decode",amr:e.decode(r,t),requestId:n})}(r.data.buffer,r.data.withHeader,r.data.requestId)}var t,n,i,o}}.toString().replace(/^\s*function.*?\(\)\s*{/,"").replace(/}\s*$/,""),c=(window.URL||window.webkitURL).createObjectURL(new Blob([f],{type:"text/javascript"}));return function(){function r(){var t=this;e(this,r),this.Z=!1,this.$=!1,this.J=new u,this.ee=new Float32Array(0),this.ie=[],this.re=0,this.ne=null,this.te=new Uint8Array(0),this.fe=null,this.oe=null,this.ae=null,this.le=null,this.ue=null,this.se=null,this.ce=null,this.he=null,this.we=null,this.de=null,this.ve=null,this.be=!1,this.ke=!1,this.me=!1,this.ye=0,this.pe=0,this.Ee=function(){t.J.playPcm(new Float32Array(10),24e3)},this.ge=function(){t.be&&(t.be=!1,t.he&&t.he(),t.ae&&t.ae()),t.me||t.oe&&t.oe()},this.Ae=function(e,r){var n=++t.re;t.ne||(t.ne=new Worker(c),t.ne.Se=new Map,t.ne.onmessage=function(e){var r=t.ne.Se,n=r.get(e.data.requestId);n&&n(e.data.amr),r.delete(e.data.requestId)}),t.ne.Se.set(n,r),e.requestId=n,t.ne.postMessage(e)}}return n(r,[{key:"isInit",value:function(){return this.Z}},{key:"initWithArrayBuffer",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(this.Z||this.$)&&r.throwAlreadyInitialized(),this.Ee(),new Promise((function(i,o){var s=new Uint8Array(e);t.decodeAMRAsync(s,n).then((function(n){t.ee=n,t.Z=!0,t.ee?(t.te=s,i()):u.decodeAudioArrayBufferByContext(e).then((function(e){return t.Z=!0,t.encodeAMRAsync(e,u.getCtxSampleRate())})).then((function(e){return t.te=e,t.fe=r.rawAMRData2Blob(e),t.decodeAMRAsync(e)})).then((function(e){t.ee=e,i()})).catch((function(){o(new Error("Failed to decode."))}))}))}))}},{key:"initWithBlob",value:function(e){var t=this;return(this.Z||this.$)&&r.throwAlreadyInitialized(),this.Ee(),this.fe=e,new Promise((function(r){var t=new FileReader;t.onload=function(e){r(e.target.result)},t.readAsArrayBuffer(e)})).then((function(e){return t.initWithArrayBuffer(e)}))}},{key:"initWithUrl",value:function(e){var t=this;return(this.Z||this.$)&&r.throwAlreadyInitialized(),this.Ee(),new Promise((function(r,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){r(this.response)},n.onerror=function(){t(new Error("Failed to fetch "+e))},n.send()})).then((function(e){return t.initWithArrayBuffer(e)}))}},{key:"initWithRecord",value:function(){var e=this;return(this.Z||this.$)&&r.throwAlreadyInitialized(),this.Ee(),new Promise((function(r,t){e.J.initRecorder().then((function(){e.$=!0,r()})).catch((function(e){t(e)}))}))}},{key:"on",value:function(e,r){if("function"==typeof r||null===r)switch(e){case"play":this.le=r;break;case"stop":this.he=r;break;case"pause":this.se=r;break;case"resume":this.ce=r;break;case"ended":this.oe=r;break;case"autoEnded":this.ae=r;break;case"startRecord":this.we=r;break;case"amplitudeUpdate":this.ue=r;break;case"cancelRecord":this.de=r;break;case"finishRecord":this.ve=r;break;case"*":case"all":this.oe=r,this.ae=r,this.le=r,this.se=r,this.ce=r,this.he=r,this.we=r,this.de=r,this.ve=r,this.ue=r}}},{key:"off",value:function(e){this.on(e,null)}},{key:"onPlay",value:function(e){this.on("play",e)}},{key:"onStop",value:function(e){this.on("stop",e)}},{key:"onPause",value:function(e){this.on("pause",e)}},{key:"onResume",value:function(e){this.on("resume",e)}},{key:"onEnded",value:function(e){this.on("ended",e)}},{key:"onAutoEnded",value:function(e){this.on("autoEnded",e)}},{key:"onStartRecord",value:function(e){this.on("startRecord",e)}},{key:"onAmplitudeUpdate",value:function(e){this.on("amplitudeUpdate",e)}},{key:"onFinishRecord",value:function(e){this.on("finishRecord",e)}},{key:"onCancelRecord",value:function(e){this.on("cancelRecord",e)}},{key:"play",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e&&e<this.getDuration()?parseFloat(e):0;if(!this.Z)throw new Error("Please init AMR first.");this.le&&this.le(),this.ke=r,this.ye=u.getCtxTime()-t,this.__play(t)}},{key:"__play",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.be=!0,this.me=!1;var t=function r(){if(e.ke)if(e.ie.length>0){var t=0;e.ie.forEach((function(e){t+=e.length}));var n=new Float32Array(t);t=0,e.ie.forEach((function(e){n.set(e,t),t+=e.length})),e.ie=[],e.J.playPcm(n,e.$?u.getCtxSampleRate():8e3,r,0,e.ue)}else e.be=!1;else e.ge()};this.J.playPcm(this.ee,this.$?u.getCtxSampleRate():8e3,t,r,this.ue)}},{key:"append",value:function(e){var r=this,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.Z)throw new Error("Please init AMR first.");if(!this.ke)throw new Error("Not in continuous play mode");var n=new Uint8Array(e);this.decodeAMRAsync(n,t).then((function(e){r.be?r.ie.push(e):(r.ee=e,r.__play(0))}))}},{key:"stop",value:function(){this.J.stopPcm(),this.be=!1,this.me=!1,this.ke=!1,this.ie=[],this.he&&this.he()}},{key:"pause",value:function(){this.be&&(this.be=!1,this.me=!0,this.pe=u.getCtxTime()-this.ye,this.J.stopPcm(),this.se&&this.se())}},{key:"resume",value:function(){this.me&&(this.be=!0,this.me=!1,this.ye=u.getCtxTime()-this.pe,this.J.playPcm(this.ee,this.$?u.getCtxSampleRate():8e3,this.ge.bind(this),this.pe),this.ce&&this.ce())}},{key:"playOrResume",value:function(){this.me?this.resume():this.play()}},{key:"pauseOrResume",value:function(){this.me?this.resume():this.pause()}},{key:"playOrPauseOrResume",value:function(){this.me?this.resume():this.be?this.pause():this.play()}},{key:"setPosition",value:function(e){var r=parseFloat(e);r>this.getDuration()?this.stop():this.me?this.pe=r:this.be?(this.J.stopPcmSilently(),this.ye=u.getCtxTime()-r,this.J.playPcm(this.ee,this.$?u.getCtxSampleRate():8e3,this.ge.bind(this),r)):this.play(r)}},{key:"getCurrentPosition",value:function(){return this.me?this.pe:this.be?u.getCtxTime()-this.ye:0}},{key:"isPlaying",value:function(){return this.be}},{key:"isPaused",value:function(){return this.me}},{key:"startRecord",value:function(){this.J.startRecord(),this.we&&this.we()}},{key:"getRecordAMRBuffer",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new Promise((function(i){e.J.generateRecordSamples(n).then((function(t){return e.encodeAMRAsync(t,u.getCtxSampleRate(),r)})).then((function(e){i(t?e:e.slice(6))}))}))}},{key:"finishRecord",value:function(){var e=this;return new Promise((function(t){e.J.stopRecord(),e.J.generateRecordSamples().then((function(r){return e.ee=r,e.encodeAMRAsync(r,u.getCtxSampleRate())})).then((function(n){e.te=n,e.fe=r.rawAMRData2Blob(e.te),e.Z=!0,e.ve&&e.ve(),e.J.releaseRecord(),t()}))}))}},{key:"cancelRecord",value:function(){this.J.stopRecord(),this.J.releaseRecord(),this.de&&this.de()}},{key:"isRecording",value:function(){return this.J.isRecording()}},{key:"getDuration",value:function(){var e=this.$?u.getCtxSampleRate():8e3;return this.ee.length/e}},{key:"getBlob",value:function(){return this.fe}},{key:"destroy",value:function(){this.J.stopPcmSilently(),this.J.stopRecord(),this.J.releaseRecord(),this.off("*"),this.J=null,this.ee=null,this.te=null,this.fe=null,this.ie=null,this.ne.terminate()}},{key:"encodeAMRAsync",value:function(e,r){var t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7;return new Promise((function(i){t.Ae({command:"encode",samples:e,sampleRate:r,mode:n},i)}))}},{key:"decodeAMRAsync",value:function(e){var r=this,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(n){r.Ae({command:"decode",buffer:e,withHeader:t},n)}))}}],[{key:"rawAMRData2Blob",value:function(e){return new Blob([e.buffer],{type:"audio/amr"})}},{key:"throwAlreadyInitialized",value:function(){throw new Error("AMR has been initialized. For a new AMR, please generate a new BenzAMRRecorder().")}},{key:"isPlaySupported",value:function(){return u.isPlaySupported()}},{key:"isRecordSupported",value:function(){return u.isRecordSupported()}}]),r}()}()}).call(this,t("./node_modules/webpack/buildin/global.js"))},"./ptt/internal/pttClientImpl.js":function(e,r,t){"use strict";t.r(r),t.d(r,"default",(function(){return R}));var n=t("./node_modules/babel-runtime/core-js/map.js"),i=t.n(n),o=t("../client/pttErrorCode"),s=t.n(o),a=t("./ptt/internal/pttRecordSession.js"),l=t("./ptt/internal/pttPlaySession.js"),u=t("../client/pttEventType"),f=t.n(u),c=t("../../client/wfc"),d=t.n(c),h=t("../../messages/persistFlag"),m=t.n(h),p=t("./ptt/internal/pttStartMessageContent.js"),w=t("../client/messages/pttSoundMessageContent"),b=t.n(w),v=t("./ptt/internal/pttEndMessageContent.js"),y=t("./ptt/internal/pttSoundDataMessageContent.js"),g=t("../../util/longUtil"),k=t("../../client/wfcEvent"),_=t.n(k),E=t("../client/pttClient"),j=t.n(E),S=t("../client/pttEndReason"),A=t.n(S);class R{constructor(e){this.checkPlayingSessionTimeout=()=>{let e=(new Date).getTime();if(E.PttClient.ENABLE_PRIORITY_MODE)this.priorityPlayingSession&&this.priorityPlayingSession.lastActiveTimestamp>0&&e-this.priorityPlayingSession.lastActiveTimestamp>=2e3&&(this.priorityPlayingSession.stop(),this.eventEmitter.emit(f.a.userEndTalking,this.priorityPlayingSession.conversation,this.priorityPlayingSession.userId),this.priorityPlayingSession=null);else for(const[r,t]of this.playingSessions)if(0===t.size)this.playingSessions.delete(r);else{for(const[r,n]of t)n.lastActiveTimestamp>0&&e-n.lastActiveTimestamp>=2e3&&(t.delete(r),n.stop(),this.eventEmitter.emit(f.a.userEndTalking,n.conversation,r));0===t.size&&this.playingSessions.delete(r)}},this._onReceiveMessageListener=(e,r)=>{if(-1===[21,22,24].indexOf(e.messageContent.type))return;let t=(new Date).getTime();if(Math.abs(t-Object(g.numberValue)(e.timestamp))>6e4||0===e.direction)console.warn(`ignore ptt message, direction: ${e.direction}, expired: ${Math.abs(t-Object(g.numberValue)(e.timestamp))}`);else{if(!E.PttClient.ENABLE_GLOBAL_PTT){if(!j.a.conversationPttStatusMap.get(this._conversationKey(e.conversation)))return void console.warn("ptt not enable for conversation",e.conversation)}e.messageContent instanceof p.default?this.onReceivePttStartNotification(e):e.messageContent instanceof v.default?this.onReceivePttEndNotification(e):e.messageContent instanceof y.default&&this.onReceivePttMessage(e)}},this.eventEmitter=e}init(){this.playingSessions=new i.a,this.sessionTimeoutInternal=setInterval(this.checkPlayingSessionTimeout,1e3),d.a.registerMessageContent("pttStart",m.a.Transparent,24,p.default),d.a.registerMessageContent("pttSound",m.a.Persist_And_Count,23,b.a),d.a.registerMessageContent("pttEnd",m.a.Transparent,22,v.default),d.a.registerMessageContent("pttSoundData",m.a.Transparent,21,y.default),this._setupEventListeners()}end(){clearInterval(this.sessionTimeoutInternal),this.stopRecord(),this._stopPlay()}startRecord(e,r,t,n,i){if(this.recordingSession)return void(i&&i.onRequestFail&&i.onRequestFail(e,s.a.TALKING));let o=i.onTalkingEnd;i.onTalkingEnd=(e,r)=>{this.recordingSession&&r===A.a.Timeout&&this.recordingSession.stopRecord(),o(e,r),this.recordingSession=null},this.recordingSession=new a.default(e,r,t,n,i),this.recordingSession.startRecord()}stopRecord(){console.log("stopRecord"),this.currentConversation=null,this.recordingSession&&this.recordingSession.stopRecord(!0)}onReceivePttStartNotification(e){let r=e.conversation,t=e.from;if(E.PttClient.ENABLE_PRIORITY_MODE){let n=e.messageContent.priority;this.priorityPlayingSession?n>this.priorityPlayingSession.priority&&(this.priorityPlayingSession.stop(),this.priorityPlayingSession=new l.default(r,t,n,this.eventEmitter)):this.priorityPlayingSession=new l.default(r,t,n,this.eventEmitter)}else this._newUserPlayingSession(r,t);this.eventEmitter.emit(f.a.userStartTalking,r,t)}onReceivePttMessage(e){let r=e.messageContent,t=e.conversation,n=e.from;if(E.PttClient.ENABLE_PRIORITY_MODE){let e=r.priority;this.priorityPlayingSession?e>this.priorityPlayingSession.priority&&(this.priorityPlayingSession.stop(),this.priorityPlayingSession=new l.default(t,n,e,this.eventEmitter)):this.priorityPlayingSession=new l.default(t,n,e,this.eventEmitter),this.priorityPlayingSession.conversation.equal(t)&&this.priorityPlayingSession.userId===n&&this.priorityPlayingSession.onReceiveData(r.amrData)}else{this._newUserPlayingSession(t,n),this.playingSessions.get(this._conversationKey(t)).get(n).onReceiveData(r.amrData)}}onReceivePttEndNotification(e){let r=e.conversation,t=e.from;if(E.PttClient.ENABLE_PRIORITY_MODE)this.priorityPlayingSession&&this.priorityPlayingSession.conversation.equal(r)&&this.priorityPlayingSession.userId===t&&(this.priorityPlayingSession.stop(),this.priorityPlayingSession=null,this.eventEmitter.emit(f.a.userEndTalking,r,t));else{let e=this.playingSessions.get(this._conversationKey(r));if(e){let n=e.get(t);n&&(e.delete(t),n.stop(),this.eventEmitter.emit(f.a.userEndTalking,r,t))}}}getTalkingMembers(e){let r=[],t=this.playingSessions.get(this._conversationKey(e));return t&&t.forEach((e,t)=>{r.push(t)}),r}getTalkingConversation(){return this.recordingSession?this.recordingSession.conversation:null}getTalkingStartTime(){return this.recordingSession?this.recordingSession.startMillis:0}setConversationPttSilent(e,r){if(E.PttClient.ENABLE_PRIORITY_MODE)this.priorityPlayingSession&&this.priorityPlayingSession.conversation.equal(e)&&this.priorityPlayingSession.userId===userId&&this.priorityPlayingSession.setSilent(r);else for(const[e,t]of this.playingSessions)for(const[e,n]of t)n.setSilent(r)}_newUserPlayingSession(e,r){let t=this.playingSessions.get(this._conversationKey(e));t||(t=new i.a,this.playingSessions.set(this._conversationKey(e),t));let n=t.get(r);return!n&&(n=new l.default(e,r,0,this.eventEmitter),t.set(r,n),!0)}_conversationKey(e){return e.type+"-"+e.target+"-"+e.line}_stopPlay(){if(E.PttClient.ENABLE_PRIORITY_MODE){for(const[e,r]of this.playingSessions)for(const[e,t]of r)t&&t.stop();this.playingSessions.clear()}else this.priorityPlayingSession&&(this.priorityPlayingSession.stop(),this.priorityPlayingSession=null)}_startTalk(e,r,t,n,i){if(!e)return void i.onRequestFail(e,-1);if(this.currentConversation||(this.currentConversation=e),!e.equal(this.currentConversation))return void i.onRequestFail(e,-1);let o={onStartTalking:e=>{let r=new p.default;r.priority=n,d.a.sendConversationMessage(e,r),i.onStartTalking(e)},onTalkingEnd:(e,r)=>{let t="WFPTT_"+e.target;d.a.releaseLock(t),i.onTalkingEnd(e,r)},onRequestFail:(e,r)=>{i.onRequestFail(e,r)},onAmplitudeUpdate:(e,r)=>{i.onAmplitudeUpdate(e,r)},onCreateSoundMessageContent:(e,r,t)=>i.onCreateSoundMessageContent(e,r,t)};this.startRecord(e,r,t,n,o)}_setupEventListeners(){d.a.eventEmitter.on(_.a.ReceiveMessage,this._onReceiveMessageListener)}}},"./ptt/internal/pttEndMessageContent.js":function(e,r,t){"use strict";t.r(r),t.d(r,"default",(function(){return o}));var n=t("../../messages/messageContent"),i=t.n(n);class o extends i.a{constructor(){super(22)}}},"./ptt/internal/pttPlaySession.js":function(e,r,t){"use strict";t.r(r),t.d(r,"default",(function(){return c}));var n=t("./ptt/internal/BenzAMRRecorder.min.js"),i=t.n(n),o=t("../../client/wfc"),s=t.n(o),a=t("../../client/userSettingScope"),l=t.n(a),u=t("../client/pttEventType"),f=t.n(u);class c{constructor(e,r,t,n){this.conversation=e,this.userId=r,this.priority=t,this.lastActiveTimestamp=(new Date).getTime(),this.eventEmitter=n;let i=e.target+"-"+e.type+"-"+e.line,o=s.a.getUserSetting(l.a.PttSilent,i);this.silent="1"===o}onReceiveData(e){this.lastActiveTimestamp=(new Date).getTime(),this.player?this.silent||this.player.append(e,!1):(this.player=new i.a,this.player.onAmplitudeUpdate(e=>{this.eventEmitter.emit(f.a.userAmplitudeUpdate,this.conversation,this.userId,e)}),this.player.initWithArrayBuffer(e,!1).then(()=>{this.silent||this.player.play(0,!0)}))}setSilent(e){this.silent=e}stop(){this.player&&(this.lastActiveTimestamp=0,this.player.stop(),this.player=null)}}},"./ptt/internal/pttRecordSession.js":function(e,r,t){"use strict";t.r(r),t.d(r,"default",(function(){return d}));var n=t("./ptt/internal/BenzAMRRecorder.min.js"),i=t.n(n),o=t("../client/pttEndReason"),s=t.n(o),a=t("../../client/wfc"),l=t.n(a),u=t("./ptt/internal/pttSoundDataMessageContent.js"),f=t("../client/pttErrorCode"),c=t.n(f);class d{constructor(e,r,t,n,i){this.pendingSendVoiceMessageAmrData=[],this._tick=()=>{if(!this.recorder)return;this.recorder.getRecordAMRBuffer(7,!1,!0).then(e=>{let r=new u.default(e);l.a.sendConversationMessage(this.conversation,r,[],null,null,(e,r)=>{},e=>{switch(console.log("send messages failed",e),e){case 247:this.cbs.onTalkingEnd(this.conversation,s.a.User_Disabled);break;case 248:this.cbs.onTalkingEnd(this.conversation,s.a.Member_Muted);break;case 241:this.cbs.onTalkingEnd(this.conversation,s.a.Channel_Muted);break;case 9:this.cbs.onTalkingEnd(this.conversation,s.a.Not_InChannel);break;default:this.cbs.onTalkingEnd(this.conversation,s.a.Network_Error)}}),this.sendMessage&&(this.pendingSendVoiceMessageAmrData.push(e),this.pendingSendVoiceMessageAmrData.length>150&&this._sendVoiceMessage())}),(new Date).getTime()-this.startMillis>this.maxDurationMillis&&(this.recorder.cancelRecord(),this.recorder=null,this.cbs.onTalkingEnd(this.conversation,s.a.Timeout))},this.conversation=e,this.maxDurationMillis=r,this.sendMessage=t,this.priority=n,this.cbs=i}startRecord(){this.startMillis=(new Date).getTime(),this.pendingSendVoiceMessageAmrData=[];let e=new i.a;e.initWithRecord().then(()=>{e.startRecord(),this.cbs.onStartTalking(this.conversation),this.sendMessageInternal=setInterval(this._tick,400)}).catch(e=>{console.error("initRecorder error",e),this.cbs.onRequestFail(this.conversation,c.a.RECORDER_ERROR)}),this.recorder=e}stopRecord(e=!1){this.sendMessage&&this._sendVoiceMessage(),this.recorder&&(this.recorder.cancelRecord(),this.recorder=null),clearInterval(this.sendMessageInternal),this.pendingSendVoiceMessageAmrData=[],this.sendMessageInternal=0,e&&this.cbs.onTalkingEnd(this.conversation,s.a.User_Release)}_sendVoiceMessage(){if(this.pendingSendVoiceMessageAmrData.length<3)return;let e=0;this.pendingSendVoiceMessageAmrData.forEach(r=>{e+=r.length});let r=new Uint8Array(6+e);r.set(d.header,0),e=6;let t=0;this.pendingSendVoiceMessageAmrData.forEach(n=>{r.set(n,e),e+=n.length,t+=400});let n=new Blob([r.buffer],{type:"audio/amr"}),i=new File([n],"ptt-"+(new Date).getTime()+".amr"),o=this.cbs.onCreateSoundMessageContent(this.conversation,i,t/1e3);l.a.sendConversationMessage(this.conversation,o,[],null,null,(e,r)=>{},e=>{console.log("send messages failed",e)}),this.pendingSendVoiceMessageAmrData=[]}}d.header=[35,33,65,77,82,10]},"./ptt/internal/pttSoundDataMessageContent.js":function(e,r,t){"use strict";t.r(r),t.d(r,"default",(function(){return u}));var n=t("./node_modules/babel-runtime/core-js/json/stringify.js"),i=t.n(n),o=t("../../messages/messageContent"),s=t.n(o),a=t("../../client/wfc"),l=t.n(a);class u extends s.a{constructor(e){super(21),this.priority=0,this.amrData=e}digest(e){return super.digest(e)}encode(){let e=super.encode();e.binaryContent=l.a.arrayBuffer_to_b64(this.amrData);let r={p:this.priority};return e.extra=i()(r),e}decode(e){if(super.decode(e),this.amrData=l.a.b64_to_arrayBuffer(e.binaryContent),e.extra){let r=JSON.parse(e.extra);this.priority=r.p}}}},"./ptt/internal/pttStartMessageContent.js":function(e,r,t){"use strict";t.r(r),t.d(r,"default",(function(){return u}));var n=t("./node_modules/babel-runtime/core-js/json/stringify.js"),i=t.n(n),o=t("../../messages/messageContent"),s=t.n(o),a=t("../../client/wfc"),l=t.n(a);class u extends s.a{constructor(){super(24),this.priority=0}encode(){let e=super.encode(),r={p:this.priority};return e.binaryContent=l.a.utf8_to_b64(i()(r)),e}decode(e){super.decode(e);let r=l.a.b64_to_utf8(e.binaryContent),t=JSON.parse(r);this.priority=t.p}}}})}));
//# sourceMappingURL=ptt.min.js.map

/***/ }),

/***/ "./src/wfc/util/base64.min.js":
/*!************************************!*\
  !*** ./src/wfc/util/base64.min.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
__webpack_require__(/*! core-js/modules/web.self.js */ "./node_modules/core-js/modules/web.self.js");
!function () {
  var e =  true && null !== exports && "number" != typeof exports.nodeType ? exports : "undefined" != typeof self ? self : $.global,
    c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  function f(e) {
    this.message = e;
  }
  (f.prototype = new Error()).name = "InvalidCharacterError", e.btoa || (e.btoa = function (e) {
    for (var t, r, o = String(e), n = 0, a = c, i = ""; o.charAt(0 | n) || (a = "=", n % 1); i += a.charAt(63 & t >> 8 - n % 1 * 8)) {
      if (255 < (r = o.charCodeAt(n += .75))) throw new f("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");
      t = t << 8 | r;
    }
    return i;
  }), e.atob || (e.atob = function (e) {
    var t = String(e).replace(/[=]+$/, "");
    if (t.length % 4 == 1) throw new f("'atob' failed: The string to be decoded is not correctly encoded.");
    for (var r, o, n = 0, a = 0, i = ""; o = t.charAt(a++); ~o && (r = n % 4 ? 64 * r + o : o, n++ % 4) ? i += String.fromCharCode(255 & r >> (-2 * n & 6)) : 0) o = c.indexOf(o);
    return i;
  });
}();

/***/ }),

/***/ "./src/wfc/util/longUtil.js":
/*!**********************************!*\
  !*** ./src/wfc/util/longUtil.js ***!
  \**********************************/
/*! exports provided: compare, eq, gt, gte, lt, lte, stringValue, longValue, numberValue, _patchToJavaLong, _reverseToJsLongString */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compare", function() { return compare; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eq", function() { return eq; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gt", function() { return gt; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gte", function() { return gte; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lt", function() { return lt; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lte", function() { return lte; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stringValue", function() { return stringValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "longValue", function() { return longValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numberValue", function() { return numberValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_patchToJavaLong", function() { return _patchToJavaLong; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_reverseToJsLongString", function() { return _reverseToJsLongString; });
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! long */ "./node_modules/long/src/long.js");
/* harmony import */ var long__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(long__WEBPACK_IMPORTED_MODULE_0__);
/*
 * Copyright (c) 2020 WildFireChat. All rights reserved.
 */



// 说明
// 1. 由于PC SDK 和 Web SDK 对java long类型的处理不一致 ，故引入本系列函数
// 2. PC SDK，messageUid转换为long类型（可参考long.js)，其他所有时间相关的字段，都转换成number
// 3. Web SDK，messageUid 以及所有时间相关的字段都转换为long类型
// 4. 为了将UI层代码统一，对所有相关字段进行比较 、运算等操作时，都必须由本序列函数处理
/**
 * 比较数值大小
 * @param {long | number | string} a
 * @param {long | number | string} b
 * @return {number} 相等返回0，a 大于 b 返回1，a 小于 b 返回-1
 */
function compare(a, b) {
  const longA = long__WEBPACK_IMPORTED_MODULE_0___default.a.fromValue(a);
  const longB = long__WEBPACK_IMPORTED_MODULE_0___default.a.fromValue(b);
  return longA.compare(longB);
}

/**
 * 判断数值是否相等
 * @param {long | number | string} a
 * @param {long | number | string} b
 * @return {boolean} 相等返回true；否则返回false
 */
function eq(a, b) {
  if (!_isLong(a) || !_isLong(b)) {
    return false;
  }
  return compare(a, b) === 0;
}

/**
 * 判断数值a是否大于b
 * @param {long | number | string} a
 * @param {long | number | string} b
 * @return {boolean} a大于b返回true；否则返回false
 */
function gt(a, b) {
  if (!_isLong(a) || !_isLong(b)) {
    return false;
  }
  return compare(a, b) === 1;
}

/**
 * 判断数值a是否大于或等于b
 * @param {long | number | string} a
 * @param {long | number | string} b
 * @return {boolean} a大于或等于b返回true；否则返回false
 */
function gte(a, b) {
  if (!_isLong(a) || !_isLong(b)) {
    return false;
  }
  return compare(a, b) >= 0;
}

/**
 * 判断数值a是否小于b
 * @param {long | number | string} a
 * @param {long | number | string} b
 * @return {boolean} a小于b返回true；否则返回false
 */
function lt(a, b) {
  if (!_isLong(a) || !_isLong(b)) {
    return false;
  }
  return compare(a, b) === -1;
}

/**
 * 判断数值a是否小于或等于b
 * @param {long | number | string} a
 * @param {long | number | string} b
 * @return {boolean} a小于或者等于b返回true；否则返回false
 */
function lte(a, b) {
  if (!_isLong(a) || !_isLong(b)) {
    return false;
  }
  return compare(a, b) <= 0;
}

/**
 * 将数值l转换成string类型
 * @param {long |  number | string} l
 * @return {string} 数值表示
 */
function stringValue(l) {
  const longl = long__WEBPACK_IMPORTED_MODULE_0___default.a.fromValue(l);
  return longl.toString();
}

/**
 * 将数值l转换成long类型
 * @param {long |  number | string} l
 * @return {long} 数值表示
 */
function longValue(value) {
  return long__WEBPACK_IMPORTED_MODULE_0___default.a.fromValue(value);
}

/**
 * 将数值l转换成number类型
 * @param {long | number | string} l
 * @return {number|l} 如果数值l小于等于{@code Number.MAX_SAFE_INTEGER}则返回对应的number，否则原样返回
 */
function numberValue(l) {
  if (lte(l, Number.MAX_SAFE_INTEGER)) {
    const longl = long__WEBPACK_IMPORTED_MODULE_0___default.a.fromValue(l);
    return longl.toNumber();
  } else {
    console.log(l, "is large than Number.MAX_SAFE_INTEGER, do nothing");
    return l;
  }
}

/**
 *
 * 由于Java long类型，在js里面，不能用number类型表示，故js里面采用js long对象表示
 * java long数据和js long对象序列成json格式的字符串时，格式并一样，为了处理跨平台需求，
 * 将序列化后的json格式字符串
 * java long "uid":12345678
 *
 * 当Java long类型的值，需要序列化为json字符串进行传输时，js long对象序列化出来的
 */
function _patchToJavaLong(jsonStr, key) {
  if (!jsonStr) {
    return jsonStr;
  }
  let reg = new RegExp(`"${key}":"([0-9]+)"`, "g");
  // eslint-disable-next-line
  return jsonStr.replace(reg, `\"${key}\":$1`);
}
function _reverseToJsLongString(jsonStr, key) {
  if (!jsonStr) {
    return jsonStr;
  }
  let reg = new RegExp(`"${key}":([0-9]+)`, "g");
  // eslint-disable-next-line
  return jsonStr.replace(reg, `\"${key}\":\"$1\"`);
}
function _isLong(val) {
  try {
    long__WEBPACK_IMPORTED_MODULE_0___default.a.fromValue(val);
    return true;
  } catch (e) {
    return false;
  }
}

/***/ }),

/***/ "./src/windowEmitter.js":
/*!******************************!*\
  !*** ./src/windowEmitter.js ***!
  \******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! core-js/modules/es.error.cause.js */ "./node_modules/core-js/modules/es.error.cause.js");
__webpack_require__(/*! core-js/modules/es.array.push.js */ "./node_modules/core-js/modules/es.array.push.js");
const kHandler = Symbol("handler");
const kListeners = Symbol("listeners");
const kOrigin = Symbol("origin");
const kOther = Symbol("other");
class PostMessageEventEmitter {
  constructor(other, origin) {
    if (typeof other.postMessage !== "function") {
      throw new TypeError("Expected other.postMessage to be a function");
    }
    if (typeof origin !== "string") {
      throw new TypeError("Expected origin to be a string");
    }
    this[kListeners] = {};
    this[kOrigin] = origin;
    this[kOther] = other;
    this[kHandler] = ev => {
      // Check origin of message
      if (ev.origin !== this[kOrigin]) return;
      if (ev.source !== this[kOther]) return;

      // Check message data
      if (ev.data === null) return;
      if (typeof ev.data !== "object") return;
      if (typeof ev.data.name !== "string") return;

      // Emit event
      if (this[kListeners][ev.data.name]) {
        for (const fn of this[kListeners][ev.data.name]) {
          Promise.resolve().then(() => fn(ev.data.name, ev.data.data));
        }
      }
    };
    window.addEventListener("message", this[kHandler]);
  }
  on(name, fn) {
    if (typeof name !== "string") throw new TypeError("Expected name to be a string");
    if (typeof fn !== "function") throw new TypeError("Expected fn to be a function");
    if (this[kListeners][name]) {
      this[kListeners][name].push(fn);
    } else {
      this[kListeners][name] = [fn];
    }
  }
  emit(name, data) {
    if (typeof name !== "string") throw new TypeError("Expected name to be a string");
    this[kOther].postMessage({
      name,
      data
    }, this[kOrigin]);
  }
  stop() {
    window.removeEventListener("message", this[kHandler]);
  }
}
module.exports = PostMessageEventEmitter;

/***/ }),

/***/ 0:
/*!***************************!*\
  !*** multi ./src/main.js ***!
  \***************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! ./src/main.js */"./src/main.js");


/***/ }),

/***/ 1:
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 10:
/*!************************!*\
  !*** buffer (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 11:
/*!********************************!*\
  !*** ./util.inspect (ignored) ***!
  \********************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 12:
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 13:
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 14:
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 15:
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 16:
/*!********************************!*\
  !*** ./util.inspect (ignored) ***!
  \********************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 17:
/*!********************************!*\
  !*** ./util.inspect (ignored) ***!
  \********************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 18:
/*!********************************!*\
  !*** ./util.inspect (ignored) ***!
  \********************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 19:
/*!********************************!*\
  !*** ./util.inspect (ignored) ***!
  \********************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 2:
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 20:
/*!*********************!*\
  !*** net (ignored) ***!
  \*********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 21:
/*!*********************!*\
  !*** tls (ignored) ***!
  \*********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 3:
/*!************************!*\
  !*** buffer (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 4:
/*!************************!*\
  !*** buffer (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 5:
/*!************************!*\
  !*** crypto (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 6:
/*!************************!*\
  !*** buffer (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 7:
/*!************************!*\
  !*** buffer (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 8:
/*!************************!*\
  !*** buffer (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 9:
/*!************************!*\
  !*** buffer (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ })

},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);