(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
/* 0 */,
/* 1 */
/*!*********************************************************!*\
  !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwn(obj, key) {
  return hasOwnProperty.call(obj, key);
}
function isFn(fn) {
  return typeof fn === 'function';
}
var objectKeys = ['env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet'];
var oldWx = globalThis[['w', 'x'].join('')];
function initWx() {
  var WxProxyHandlers = {
    get: function get(target, key) {
      if (hasOwn(target, key)) {
        return target[key];
      }
      if (objectKeys.indexOf(key) > -1 || isFn(oldWx[key])) {
        return oldWx[key];
      }
    }
  };
  return new Proxy({}, WxProxyHandlers);
}
var wxProxy = initWx();
globalThis[['w', 'x'].join('')] = wxProxy;
var _default = wxProxy;
exports.default = _default;

/***/ }),
/* 2 */
/*!************************************************************!*\
  !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(wx, global) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createApp = createApp;
exports.createComponent = createComponent;
exports.createPage = createPage;
exports.createPlugin = createPlugin;
exports.createSubpackageApp = createSubpackageApp;
exports.default = void 0;
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var realAtob;
var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
if (typeof atob !== 'function') {
  realAtob = function realAtob(str) {
    str = String(str).replace(/[\t\n\f\r ]+/g, '');
    if (!b64re.test(str)) {
      throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
    }

    // Adding the padding if missing, for semplicity
    str += '=='.slice(2 - (str.length & 3));
    var bitmap;
    var result = '';
    var r1;
    var r2;
    var i = 0;
    for (; i < str.length;) {
      bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
      result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
    }
    return result;
  };
} else {
  // 注意atob只能在全局对象上调用，例如：`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  realAtob = atob;
}
function b64DecodeUnicode(str) {
  return decodeURIComponent(realAtob(str).split('').map(function (c) {
    return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  }).join(''));
}
function getCurrentUserInfo() {
  var token = wx.getStorageSync('uni_id_token') || '';
  var tokenArr = token.split('.');
  if (!token || tokenArr.length !== 3) {
    return {
      uid: null,
      role: [],
      permission: [],
      tokenExpired: 0
    };
  }
  var userInfo;
  try {
    userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  } catch (error) {
    throw new Error('获取当前用户信息出错，详细错误信息为：' + error.message);
  }
  userInfo.tokenExpired = userInfo.exp * 1000;
  delete userInfo.exp;
  delete userInfo.iat;
  return userInfo;
}
function uniIdMixin(Vue) {
  Vue.prototype.uniIDHasRole = function (roleId) {
    var _getCurrentUserInfo = getCurrentUserInfo(),
      role = _getCurrentUserInfo.role;
    return role.indexOf(roleId) > -1;
  };
  Vue.prototype.uniIDHasPermission = function (permissionId) {
    var _getCurrentUserInfo2 = getCurrentUserInfo(),
      permission = _getCurrentUserInfo2.permission;
    return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  };
  Vue.prototype.uniIDTokenValid = function () {
    var _getCurrentUserInfo3 = getCurrentUserInfo(),
      tokenExpired = _getCurrentUserInfo3.tokenExpired;
    return tokenExpired > Date.now();
  };
}
var _toString = Object.prototype.toString;
var hasOwnProperty = Object.prototype.hasOwnProperty;
function isFn(fn) {
  return typeof fn === 'function';
}
function isStr(str) {
  return typeof str === 'string';
}
function isObject(obj) {
  return obj !== null && (0, _typeof2.default)(obj) === 'object';
}
function isPlainObject(obj) {
  return _toString.call(obj) === '[object Object]';
}
function hasOwn(obj, key) {
  return hasOwnProperty.call(obj, key);
}
function noop() {}

/**
 * Create a cached version of a pure function.
 */
function cached(fn) {
  var cache = Object.create(null);
  return function cachedFn(str) {
    var hit = cache[str];
    return hit || (cache[str] = fn(str));
  };
}

/**
 * Camelize a hyphen-delimited string.
 */
var camelizeRE = /-(\w)/g;
var camelize = cached(function (str) {
  return str.replace(camelizeRE, function (_, c) {
    return c ? c.toUpperCase() : '';
  });
});
function sortObject(obj) {
  var sortObj = {};
  if (isPlainObject(obj)) {
    Object.keys(obj).sort().forEach(function (key) {
      sortObj[key] = obj[key];
    });
  }
  return !Object.keys(sortObj) ? obj : sortObj;
}
var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
var globalInterceptors = {};
var scopedInterceptors = {};
function mergeHook(parentVal, childVal) {
  var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  return res ? dedupeHooks(res) : res;
}
function dedupeHooks(hooks) {
  var res = [];
  for (var i = 0; i < hooks.length; i++) {
    if (res.indexOf(hooks[i]) === -1) {
      res.push(hooks[i]);
    }
  }
  return res;
}
function removeHook(hooks, hook) {
  var index = hooks.indexOf(hook);
  if (index !== -1) {
    hooks.splice(index, 1);
  }
}
function mergeInterceptorHook(interceptor, option) {
  Object.keys(option).forEach(function (hook) {
    if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
      interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
    }
  });
}
function removeInterceptorHook(interceptor, option) {
  if (!interceptor || !option) {
    return;
  }
  Object.keys(option).forEach(function (hook) {
    if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
      removeHook(interceptor[hook], option[hook]);
    }
  });
}
function addInterceptor(method, option) {
  if (typeof method === 'string' && isPlainObject(option)) {
    mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  } else if (isPlainObject(method)) {
    mergeInterceptorHook(globalInterceptors, method);
  }
}
function removeInterceptor(method, option) {
  if (typeof method === 'string') {
    if (isPlainObject(option)) {
      removeInterceptorHook(scopedInterceptors[method], option);
    } else {
      delete scopedInterceptors[method];
    }
  } else if (isPlainObject(method)) {
    removeInterceptorHook(globalInterceptors, method);
  }
}
function wrapperHook(hook) {
  return function (data) {
    return hook(data) || data;
  };
}
function isPromise(obj) {
  return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}
function queue(hooks, data) {
  var promise = false;
  for (var i = 0; i < hooks.length; i++) {
    var hook = hooks[i];
    if (promise) {
      promise = Promise.resolve(wrapperHook(hook));
    } else {
      var res = hook(data);
      if (isPromise(res)) {
        promise = Promise.resolve(res);
      }
      if (res === false) {
        return {
          then: function then() {}
        };
      }
    }
  }
  return promise || {
    then: function then(callback) {
      return callback(data);
    }
  };
}
function wrapperOptions(interceptor) {
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  ['success', 'fail', 'complete'].forEach(function (name) {
    if (Array.isArray(interceptor[name])) {
      var oldCallback = options[name];
      options[name] = function callbackInterceptor(res) {
        queue(interceptor[name], res).then(function (res) {
          /* eslint-disable no-mixed-operators */
          return isFn(oldCallback) && oldCallback(res) || res;
        });
      };
    }
  });
  return options;
}
function wrapperReturnValue(method, returnValue) {
  var returnValueHooks = [];
  if (Array.isArray(globalInterceptors.returnValue)) {
    returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  }
  var interceptor = scopedInterceptors[method];
  if (interceptor && Array.isArray(interceptor.returnValue)) {
    returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  }
  returnValueHooks.forEach(function (hook) {
    returnValue = hook(returnValue) || returnValue;
  });
  return returnValue;
}
function getApiInterceptorHooks(method) {
  var interceptor = Object.create(null);
  Object.keys(globalInterceptors).forEach(function (hook) {
    if (hook !== 'returnValue') {
      interceptor[hook] = globalInterceptors[hook].slice();
    }
  });
  var scopedInterceptor = scopedInterceptors[method];
  if (scopedInterceptor) {
    Object.keys(scopedInterceptor).forEach(function (hook) {
      if (hook !== 'returnValue') {
        interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
      }
    });
  }
  return interceptor;
}
function invokeApi(method, api, options) {
  for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
    params[_key - 3] = arguments[_key];
  }
  var interceptor = getApiInterceptorHooks(method);
  if (interceptor && Object.keys(interceptor).length) {
    if (Array.isArray(interceptor.invoke)) {
      var res = queue(interceptor.invoke, options);
      return res.then(function (options) {
        return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
      });
    } else {
      return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
    }
  }
  return api.apply(void 0, [options].concat(params));
}
var promiseInterceptor = {
  returnValue: function returnValue(res) {
    if (!isPromise(res)) {
      return res;
    }
    return new Promise(function (resolve, reject) {
      res.then(function (res) {
        if (res[0]) {
          reject(res[0]);
        } else {
          resolve(res[1]);
        }
      });
    });
  }
};
var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting/;
var CONTEXT_API_RE = /^create|Manager$/;

// Context例外情况
var CONTEXT_API_RE_EXC = ['createBLEConnection'];

// 同步例外情况
var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
var CALLBACK_API_RE = /^on|^off/;
function isContextApi(name) {
  return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
}
function isSyncApi(name) {
  return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
}
function isCallbackApi(name) {
  return CALLBACK_API_RE.test(name) && name !== 'onPush';
}
function handlePromise(promise) {
  return promise.then(function (data) {
    return [null, data];
  }).catch(function (err) {
    return [err];
  });
}
function shouldPromise(name) {
  if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
    return false;
  }
  return true;
}

/* eslint-disable no-extend-native */
if (!Promise.prototype.finally) {
  Promise.prototype.finally = function (callback) {
    var promise = this.constructor;
    return this.then(function (value) {
      return promise.resolve(callback()).then(function () {
        return value;
      });
    }, function (reason) {
      return promise.resolve(callback()).then(function () {
        throw reason;
      });
    });
  };
}
function promisify(name, api) {
  if (!shouldPromise(name) || !isFn(api)) {
    return api;
  }
  return function promiseApi() {
    var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
      params[_key2 - 1] = arguments[_key2];
    }
    if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
      return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
    }
    return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
      invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
        success: resolve,
        fail: reject
      })].concat(params));
    })));
  };
}
var EPS = 1e-4;
var BASE_DEVICE_WIDTH = 750;
var isIOS = false;
var deviceWidth = 0;
var deviceDPR = 0;
function checkDeviceWidth() {
  var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
    platform = _wx$getSystemInfoSync.platform,
    pixelRatio = _wx$getSystemInfoSync.pixelRatio,
    windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象，内部不允许直接使用 uni

  deviceWidth = windowWidth;
  deviceDPR = pixelRatio;
  isIOS = platform === 'ios';
}
function upx2px(number, newDeviceWidth) {
  if (deviceWidth === 0) {
    checkDeviceWidth();
  }
  number = Number(number);
  if (number === 0) {
    return 0;
  }
  var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  if (result < 0) {
    result = -result;
  }
  result = Math.floor(result + EPS);
  if (result === 0) {
    if (deviceDPR === 1 || !isIOS) {
      result = 1;
    } else {
      result = 0.5;
    }
  }
  return number < 0 ? -result : result;
}
var LOCALE_ZH_HANS = 'zh-Hans';
var LOCALE_ZH_HANT = 'zh-Hant';
var LOCALE_EN = 'en';
var LOCALE_FR = 'fr';
var LOCALE_ES = 'es';
var messages = {};
var locale;
{
  locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
}
function initI18nMessages() {
  if (!isEnableLocale()) {
    return;
  }
  var localeKeys = Object.keys(__uniConfig.locales);
  if (localeKeys.length) {
    localeKeys.forEach(function (locale) {
      var curMessages = messages[locale];
      var userMessages = __uniConfig.locales[locale];
      if (curMessages) {
        Object.assign(curMessages, userMessages);
      } else {
        messages[locale] = userMessages;
      }
    });
  }
}
initI18nMessages();
var i18n = (0, _uniI18n.initVueI18n)(locale, {});
var t = i18n.t;
var i18nMixin = i18n.mixin = {
  beforeCreate: function beforeCreate() {
    var _this = this;
    var unwatch = i18n.i18n.watchLocale(function () {
      _this.$forceUpdate();
    });
    this.$once('hook:beforeDestroy', function () {
      unwatch();
    });
  },
  methods: {
    $$t: function $$t(key, values) {
      return t(key, values);
    }
  }
};
var setLocale = i18n.setLocale;
var getLocale = i18n.getLocale;
function initAppLocale(Vue, appVm, locale) {
  var state = Vue.observable({
    locale: locale || i18n.getLocale()
  });
  var localeWatchers = [];
  appVm.$watchLocale = function (fn) {
    localeWatchers.push(fn);
  };
  Object.defineProperty(appVm, '$locale', {
    get: function get() {
      return state.locale;
    },
    set: function set(v) {
      state.locale = v;
      localeWatchers.forEach(function (watch) {
        return watch(v);
      });
    }
  });
}
function isEnableLocale() {
  return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
}
function include(str, parts) {
  return !!parts.find(function (part) {
    return str.indexOf(part) !== -1;
  });
}
function startsWith(str, parts) {
  return parts.find(function (part) {
    return str.indexOf(part) === 0;
  });
}
function normalizeLocale(locale, messages) {
  if (!locale) {
    return;
  }
  locale = locale.trim().replace(/_/g, '-');
  if (messages && messages[locale]) {
    return locale;
  }
  locale = locale.toLowerCase();
  if (locale === 'chinese') {
    // 支付宝
    return LOCALE_ZH_HANS;
  }
  if (locale.indexOf('zh') === 0) {
    if (locale.indexOf('-hans') > -1) {
      return LOCALE_ZH_HANS;
    }
    if (locale.indexOf('-hant') > -1) {
      return LOCALE_ZH_HANT;
    }
    if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
      return LOCALE_ZH_HANT;
    }
    return LOCALE_ZH_HANS;
  }
  var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  if (lang) {
    return lang;
  }
}
// export function initI18n() {
//   const localeKeys = Object.keys(__uniConfig.locales || {})
//   if (localeKeys.length) {
//     localeKeys.forEach((locale) =>
//       i18n.add(locale, __uniConfig.locales[locale])
//     )
//   }
// }

function getLocale$1() {
  // 优先使用 $locale
  if (isFn(getApp)) {
    var app = getApp({
      allowDefault: true
    });
    if (app && app.$vm) {
      return app.$vm.$locale;
    }
  }
  return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
}
function setLocale$1(locale) {
  var app = isFn(getApp) ? getApp() : false;
  if (!app) {
    return false;
  }
  var oldLocale = app.$vm.$locale;
  if (oldLocale !== locale) {
    app.$vm.$locale = locale;
    onLocaleChangeCallbacks.forEach(function (fn) {
      return fn({
        locale: locale
      });
    });
    return true;
  }
  return false;
}
var onLocaleChangeCallbacks = [];
function onLocaleChange(fn) {
  if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
    onLocaleChangeCallbacks.push(fn);
  }
}
if (typeof global !== 'undefined') {
  global.getLocale = getLocale$1;
}
var interceptors = {
  promiseInterceptor: promiseInterceptor
};
var baseApi = /*#__PURE__*/Object.freeze({
  __proto__: null,
  upx2px: upx2px,
  getLocale: getLocale$1,
  setLocale: setLocale$1,
  onLocaleChange: onLocaleChange,
  addInterceptor: addInterceptor,
  removeInterceptor: removeInterceptor,
  interceptors: interceptors
});
function findExistsPageIndex(url) {
  var pages = getCurrentPages();
  var len = pages.length;
  while (len--) {
    var page = pages[len];
    if (page.$page && page.$page.fullPath === url) {
      return len;
    }
  }
  return -1;
}
var redirectTo = {
  name: function name(fromArgs) {
    if (fromArgs.exists === 'back' && fromArgs.delta) {
      return 'navigateBack';
    }
    return 'redirectTo';
  },
  args: function args(fromArgs) {
    if (fromArgs.exists === 'back' && fromArgs.url) {
      var existsPageIndex = findExistsPageIndex(fromArgs.url);
      if (existsPageIndex !== -1) {
        var delta = getCurrentPages().length - 1 - existsPageIndex;
        if (delta > 0) {
          fromArgs.delta = delta;
        }
      }
    }
  }
};
var previewImage = {
  args: function args(fromArgs) {
    var currentIndex = parseInt(fromArgs.current);
    if (isNaN(currentIndex)) {
      return;
    }
    var urls = fromArgs.urls;
    if (!Array.isArray(urls)) {
      return;
    }
    var len = urls.length;
    if (!len) {
      return;
    }
    if (currentIndex < 0) {
      currentIndex = 0;
    } else if (currentIndex >= len) {
      currentIndex = len - 1;
    }
    if (currentIndex > 0) {
      fromArgs.current = urls[currentIndex];
      fromArgs.urls = urls.filter(function (item, index) {
        return index < currentIndex ? item !== urls[currentIndex] : true;
      });
    } else {
      fromArgs.current = urls[0];
    }
    return {
      indicator: false,
      loop: false
    };
  }
};
var UUID_KEY = '__DC_STAT_UUID';
var deviceId;
function useDeviceId(result) {
  deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  if (!deviceId) {
    deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
    wx.setStorage({
      key: UUID_KEY,
      data: deviceId
    });
  }
  result.deviceId = deviceId;
}
function addSafeAreaInsets(result) {
  if (result.safeArea) {
    var safeArea = result.safeArea;
    result.safeAreaInsets = {
      top: safeArea.top,
      left: safeArea.left,
      right: result.windowWidth - safeArea.right,
      bottom: result.screenHeight - safeArea.bottom
    };
  }
}
function populateParameters(result) {
  var _result$brand = result.brand,
    brand = _result$brand === void 0 ? '' : _result$brand,
    _result$model = result.model,
    model = _result$model === void 0 ? '' : _result$model,
    _result$system = result.system,
    system = _result$system === void 0 ? '' : _result$system,
    _result$language = result.language,
    language = _result$language === void 0 ? '' : _result$language,
    theme = result.theme,
    version = result.version,
    platform = result.platform,
    fontSizeSetting = result.fontSizeSetting,
    SDKVersion = result.SDKVersion,
    pixelRatio = result.pixelRatio,
    deviceOrientation = result.deviceOrientation;
  // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1

  // osName osVersion
  var osName = '';
  var osVersion = '';
  {
    osName = system.split(' ')[0] || '';
    osVersion = system.split(' ')[1] || '';
  }
  var hostVersion = version;

  // deviceType
  var deviceType = getGetDeviceType(result, model);

  // deviceModel
  var deviceBrand = getDeviceBrand(brand);

  // hostName
  var _hostName = getHostName(result);

  // deviceOrientation
  var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持

  // devicePixelRatio
  var _devicePixelRatio = pixelRatio;

  // SDKVersion
  var _SDKVersion = SDKVersion;

  // hostLanguage
  var hostLanguage = language.replace(/_/g, '-');

  // wx.getAccountInfoSync

  var parameters = {
    appId: "",
    appName: "patient-wx",
    appVersion: "1.0.0",
    appVersionCode: "100",
    appLanguage: getAppLanguage(hostLanguage),
    uniCompileVersion: "3.6.17",
    uniRuntimeVersion: "3.6.17",
    uniPlatform: undefined || "mp-weixin",
    deviceBrand: deviceBrand,
    deviceModel: model,
    deviceType: deviceType,
    devicePixelRatio: _devicePixelRatio,
    deviceOrientation: _deviceOrientation,
    osName: osName.toLocaleLowerCase(),
    osVersion: osVersion,
    hostTheme: theme,
    hostVersion: hostVersion,
    hostLanguage: hostLanguage,
    hostName: _hostName,
    hostSDKVersion: _SDKVersion,
    hostFontSizeSetting: fontSizeSetting,
    windowTop: 0,
    windowBottom: 0,
    // TODO
    osLanguage: undefined,
    osTheme: undefined,
    ua: undefined,
    hostPackageName: undefined,
    browserName: undefined,
    browserVersion: undefined
  };
  Object.assign(result, parameters);
}
function getGetDeviceType(result, model) {
  var deviceType = result.deviceType || 'phone';
  {
    var deviceTypeMaps = {
      ipad: 'pad',
      windows: 'pc',
      mac: 'pc'
    };
    var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
    var _model = model.toLocaleLowerCase();
    for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
      var _m = deviceTypeMapsKeys[index];
      if (_model.indexOf(_m) !== -1) {
        deviceType = deviceTypeMaps[_m];
        break;
      }
    }
  }
  return deviceType;
}
function getDeviceBrand(brand) {
  var deviceBrand = brand;
  if (deviceBrand) {
    deviceBrand = brand.toLocaleLowerCase();
  }
  return deviceBrand;
}
function getAppLanguage(defaultLanguage) {
  return getLocale$1 ? getLocale$1() : defaultLanguage;
}
function getHostName(result) {
  var _platform = 'WeChat';
  var _hostName = result.hostName || _platform; // mp-jd
  {
    if (result.environment) {
      _hostName = result.environment;
    } else if (result.host && result.host.env) {
      _hostName = result.host.env;
    }
  }
  return _hostName;
}
var getSystemInfo = {
  returnValue: function returnValue(result) {
    useDeviceId(result);
    addSafeAreaInsets(result);
    populateParameters(result);
  }
};
var showActionSheet = {
  args: function args(fromArgs) {
    if ((0, _typeof2.default)(fromArgs) === 'object') {
      fromArgs.alertText = fromArgs.title;
    }
  }
};
var getAppBaseInfo = {
  returnValue: function returnValue(result) {
    var _result = result,
      version = _result.version,
      language = _result.language,
      SDKVersion = _result.SDKVersion,
      theme = _result.theme;
    var _hostName = getHostName(result);
    var hostLanguage = language.replace('_', '-');
    result = sortObject(Object.assign(result, {
      appId: "",
      appName: "patient-wx",
      appVersion: "1.0.0",
      appVersionCode: "100",
      appLanguage: getAppLanguage(hostLanguage),
      hostVersion: version,
      hostLanguage: hostLanguage,
      hostName: _hostName,
      hostSDKVersion: SDKVersion,
      hostTheme: theme
    }));
  }
};
var getDeviceInfo = {
  returnValue: function returnValue(result) {
    var _result2 = result,
      brand = _result2.brand,
      model = _result2.model;
    var deviceType = getGetDeviceType(result, model);
    var deviceBrand = getDeviceBrand(brand);
    useDeviceId(result);
    result = sortObject(Object.assign(result, {
      deviceType: deviceType,
      deviceBrand: deviceBrand,
      deviceModel: model
    }));
  }
};
var getWindowInfo = {
  returnValue: function returnValue(result) {
    addSafeAreaInsets(result);
    result = sortObject(Object.assign(result, {
      windowTop: 0,
      windowBottom: 0
    }));
  }
};
var getAppAuthorizeSetting = {
  returnValue: function returnValue(result) {
    var locationReducedAccuracy = result.locationReducedAccuracy;
    result.locationAccuracy = 'unsupported';
    if (locationReducedAccuracy === true) {
      result.locationAccuracy = 'reduced';
    } else if (locationReducedAccuracy === false) {
      result.locationAccuracy = 'full';
    }
  }
};

// import navigateTo from 'uni-helpers/navigate-to'

var protocols = {
  redirectTo: redirectTo,
  // navigateTo,  // 由于在微信开发者工具的页面参数，会显示__id__参数，因此暂时关闭mp-weixin对于navigateTo的AOP
  previewImage: previewImage,
  getSystemInfo: getSystemInfo,
  getSystemInfoSync: getSystemInfo,
  showActionSheet: showActionSheet,
  getAppBaseInfo: getAppBaseInfo,
  getDeviceInfo: getDeviceInfo,
  getWindowInfo: getWindowInfo,
  getAppAuthorizeSetting: getAppAuthorizeSetting
};
var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
var canIUses = [];
var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
function processCallback(methodName, method, returnValue) {
  return function (res) {
    return method(processReturnValue(methodName, res, returnValue));
  };
}
function processArgs(methodName, fromArgs) {
  var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  if (isPlainObject(fromArgs)) {
    // 一般 api 的参数解析
    var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时，说明是格式化返回值，直接在返回值对象上修改赋值
    if (isFn(argsOption)) {
      argsOption = argsOption(fromArgs, toArgs) || {};
    }
    for (var key in fromArgs) {
      if (hasOwn(argsOption, key)) {
        var keyOption = argsOption[key];
        if (isFn(keyOption)) {
          keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
        }
        if (!keyOption) {
          // 不支持的参数
          console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
        } else if (isStr(keyOption)) {
          // 重写参数 key
          toArgs[keyOption] = fromArgs[key];
        } else if (isPlainObject(keyOption)) {
          // {name:newName,value:value}可重新指定参数 key:value
          toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
        }
      } else if (CALLBACKS.indexOf(key) !== -1) {
        if (isFn(fromArgs[key])) {
          toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
        }
      } else {
        if (!keepFromArgs) {
          toArgs[key] = fromArgs[key];
        }
      }
    }
    return toArgs;
  } else if (isFn(fromArgs)) {
    fromArgs = processCallback(methodName, fromArgs, returnValue);
  }
  return fromArgs;
}
function processReturnValue(methodName, res, returnValue) {
  var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  if (isFn(protocols.returnValue)) {
    // 处理通用 returnValue
    res = protocols.returnValue(methodName, res);
  }
  return processArgs(methodName, res, returnValue, {}, keepReturnValue);
}
function wrapper(methodName, method) {
  if (hasOwn(protocols, methodName)) {
    var protocol = protocols[methodName];
    if (!protocol) {
      // 暂不支持的 api
      return function () {
        console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
      };
    }
    return function (arg1, arg2) {
      // 目前 api 最多两个参数
      var options = protocol;
      if (isFn(protocol)) {
        options = protocol(arg1);
      }
      arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
      var args = [arg1];
      if (typeof arg2 !== 'undefined') {
        args.push(arg2);
      }
      if (isFn(options.name)) {
        methodName = options.name(arg1);
      } else if (isStr(options.name)) {
        methodName = options.name;
      }
      var returnValue = wx[methodName].apply(wx, args);
      if (isSyncApi(methodName)) {
        // 同步 api
        return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
      }
      return returnValue;
    };
  }
  return method;
}
var todoApis = Object.create(null);
var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
function createTodoApi(name) {
  return function todoApi(_ref) {
    var fail = _ref.fail,
      complete = _ref.complete;
    var res = {
      errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
    };
    isFn(fail) && fail(res);
    isFn(complete) && complete(res);
  };
}
TODOS.forEach(function (name) {
  todoApis[name] = createTodoApi(name);
});
var providers = {
  oauth: ['weixin'],
  share: ['weixin'],
  payment: ['wxpay'],
  push: ['weixin']
};
function getProvider(_ref2) {
  var service = _ref2.service,
    success = _ref2.success,
    fail = _ref2.fail,
    complete = _ref2.complete;
  var res = false;
  if (providers[service]) {
    res = {
      errMsg: 'getProvider:ok',
      service: service,
      provider: providers[service]
    };
    isFn(success) && success(res);
  } else {
    res = {
      errMsg: 'getProvider:fail service not found'
    };
    isFn(fail) && fail(res);
  }
  isFn(complete) && complete(res);
}
var extraApi = /*#__PURE__*/Object.freeze({
  __proto__: null,
  getProvider: getProvider
});
var getEmitter = function () {
  var Emitter;
  return function getUniEmitter() {
    if (!Emitter) {
      Emitter = new _vue.default();
    }
    return Emitter;
  };
}();
function apply(ctx, method, args) {
  return ctx[method].apply(ctx, args);
}
function $on() {
  return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
}
function $off() {
  return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
}
function $once() {
  return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
}
function $emit() {
  return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
}
var eventApi = /*#__PURE__*/Object.freeze({
  __proto__: null,
  $on: $on,
  $off: $off,
  $once: $once,
  $emit: $emit
});

/**
 * 框架内 try-catch
 */
/**
 * 开发者 try-catch
 */
function tryCatch(fn) {
  return function () {
    try {
      return fn.apply(fn, arguments);
    } catch (e) {
      // TODO
      console.error(e);
    }
  };
}
function getApiCallbacks(params) {
  var apiCallbacks = {};
  for (var name in params) {
    var param = params[name];
    if (isFn(param)) {
      apiCallbacks[name] = tryCatch(param);
      delete params[name];
    }
  }
  return apiCallbacks;
}
var cid;
var cidErrMsg;
var enabled;
function normalizePushMessage(message) {
  try {
    return JSON.parse(message);
  } catch (e) {}
  return message;
}
function invokePushCallback(args) {
  if (args.type === 'enabled') {
    enabled = true;
  } else if (args.type === 'clientId') {
    cid = args.cid;
    cidErrMsg = args.errMsg;
    invokeGetPushCidCallbacks(cid, args.errMsg);
  } else if (args.type === 'pushMsg') {
    var message = {
      type: 'receive',
      data: normalizePushMessage(args.message)
    };
    for (var i = 0; i < onPushMessageCallbacks.length; i++) {
      var callback = onPushMessageCallbacks[i];
      callback(message);
      // 该消息已被阻止
      if (message.stopped) {
        break;
      }
    }
  } else if (args.type === 'click') {
    onPushMessageCallbacks.forEach(function (callback) {
      callback({
        type: 'click',
        data: normalizePushMessage(args.message)
      });
    });
  }
}
var getPushCidCallbacks = [];
function invokeGetPushCidCallbacks(cid, errMsg) {
  getPushCidCallbacks.forEach(function (callback) {
    callback(cid, errMsg);
  });
  getPushCidCallbacks.length = 0;
}
function getPushClientId(args) {
  if (!isPlainObject(args)) {
    args = {};
  }
  var _getApiCallbacks = getApiCallbacks(args),
    success = _getApiCallbacks.success,
    fail = _getApiCallbacks.fail,
    complete = _getApiCallbacks.complete;
  var hasSuccess = isFn(success);
  var hasFail = isFn(fail);
  var hasComplete = isFn(complete);
  Promise.resolve().then(function () {
    if (typeof enabled === 'undefined') {
      enabled = false;
      cid = '';
      cidErrMsg = 'uniPush is not enabled';
    }
    getPushCidCallbacks.push(function (cid, errMsg) {
      var res;
      if (cid) {
        res = {
          errMsg: 'getPushClientId:ok',
          cid: cid
        };
        hasSuccess && success(res);
      } else {
        res = {
          errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
        };
        hasFail && fail(res);
      }
      hasComplete && complete(res);
    });
    if (typeof cid !== 'undefined') {
      invokeGetPushCidCallbacks(cid, cidErrMsg);
    }
  });
}
var onPushMessageCallbacks = [];
// 不使用 defineOnApi 实现，是因为 defineOnApi 依赖 UniServiceJSBridge ，该对象目前在小程序上未提供，故简单实现
var onPushMessage = function onPushMessage(fn) {
  if (onPushMessageCallbacks.indexOf(fn) === -1) {
    onPushMessageCallbacks.push(fn);
  }
};
var offPushMessage = function offPushMessage(fn) {
  if (!fn) {
    onPushMessageCallbacks.length = 0;
  } else {
    var index = onPushMessageCallbacks.indexOf(fn);
    if (index > -1) {
      onPushMessageCallbacks.splice(index, 1);
    }
  }
};
var host = wx.getAppBaseInfo ? wx.getAppBaseInfo().host : wx.getSystemInfoSync().host;
var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
var api = /*#__PURE__*/Object.freeze({
  __proto__: null,
  shareVideoMessage: shareVideoMessage,
  getPushClientId: getPushClientId,
  onPushMessage: onPushMessage,
  offPushMessage: offPushMessage,
  invokePushCallback: invokePushCallback
});
var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
function findVmByVueId(vm, vuePid) {
  var $children = vm.$children;
  // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  for (var i = $children.length - 1; i >= 0; i--) {
    var childVm = $children[i];
    if (childVm.$scope._$vueId === vuePid) {
      return childVm;
    }
  }
  // 反向递归查找
  var parentVm;
  for (var _i = $children.length - 1; _i >= 0; _i--) {
    parentVm = findVmByVueId($children[_i], vuePid);
    if (parentVm) {
      return parentVm;
    }
  }
}
function initBehavior(options) {
  return Behavior(options);
}
function isPage() {
  return !!this.route;
}
function initRelation(detail) {
  this.triggerEvent('__l', detail);
}
function selectAllComponents(mpInstance, selector, $refs) {
  var components = mpInstance.selectAllComponents(selector) || [];
  components.forEach(function (component) {
    var ref = component.dataset.ref;
    $refs[ref] = component.$vm || toSkip(component);
    {
      if (component.dataset.vueGeneric === 'scoped') {
        component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
          selectAllComponents(scopedComponent, selector, $refs);
        });
      }
    }
  });
}
function syncRefs(refs, newRefs) {
  var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  var newKeys = Object.keys(newRefs);
  newKeys.forEach(function (key) {
    var oldValue = refs[key];
    var newValue = newRefs[key];
    if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
      return oldValue.includes(value);
    })) {
      return;
    }
    refs[key] = newValue;
    oldKeys.delete(key);
  });
  oldKeys.forEach(function (key) {
    delete refs[key];
  });
  return refs;
}
function initRefs(vm) {
  var mpInstance = vm.$scope;
  var refs = {};
  Object.defineProperty(vm, '$refs', {
    get: function get() {
      var $refs = {};
      selectAllComponents(mpInstance, '.vue-ref', $refs);
      // TODO 暂不考虑 for 中的 scoped
      var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
      forComponents.forEach(function (component) {
        var ref = component.dataset.ref;
        if (!$refs[ref]) {
          $refs[ref] = [];
        }
        $refs[ref].push(component.$vm || toSkip(component));
      });
      return syncRefs(refs, $refs);
    }
  });
}
function handleLink(event) {
  var _ref3 = event.detail || event.value,
    vuePid = _ref3.vuePid,
    vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)

  var parentVm;
  if (vuePid) {
    parentVm = findVmByVueId(this.$vm, vuePid);
  }
  if (!parentVm) {
    parentVm = this.$vm;
  }
  vueOptions.parent = parentVm;
}
function markMPComponent(component) {
  // 在 Vue 中标记为小程序组件
  var IS_MP = '__v_isMPComponent';
  Object.defineProperty(component, IS_MP, {
    configurable: true,
    enumerable: false,
    value: true
  });
  return component;
}
function toSkip(obj) {
  var OB = '__ob__';
  var SKIP = '__v_skip';
  if (isObject(obj) && Object.isExtensible(obj)) {
    // 避免被 @vue/composition-api 观测
    Object.defineProperty(obj, OB, {
      configurable: true,
      enumerable: false,
      value: (0, _defineProperty2.default)({}, SKIP, true)
    });
  }
  return obj;
}
var MPPage = Page;
var MPComponent = Component;
var customizeRE = /:/g;
var customize = cached(function (str) {
  return camelize(str.replace(customizeRE, '-'));
});
function initTriggerEvent(mpInstance) {
  var oldTriggerEvent = mpInstance.triggerEvent;
  var newTriggerEvent = function newTriggerEvent(event) {
    for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
      args[_key3 - 1] = arguments[_key3];
    }
    // 事件名统一转驼峰格式，仅处理：当前组件为 vue 组件、当前组件为 vue 组件子组件
    if (this.$vm || this.dataset && this.dataset.comType) {
      event = customize(event);
    } else {
      // 针对微信/QQ小程序单独补充驼峰格式事件，以兼容历史项目
      var newEvent = customize(event);
      if (newEvent !== event) {
        oldTriggerEvent.apply(this, [newEvent].concat(args));
      }
    }
    return oldTriggerEvent.apply(this, [event].concat(args));
  };
  try {
    // 京东小程序 triggerEvent 为只读
    mpInstance.triggerEvent = newTriggerEvent;
  } catch (error) {
    mpInstance._triggerEvent = newTriggerEvent;
  }
}
function initHook(name, options, isComponent) {
  var oldHook = options[name];
  options[name] = function () {
    markMPComponent(this);
    initTriggerEvent(this);
    if (oldHook) {
      for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
        args[_key4] = arguments[_key4];
      }
      return oldHook.apply(this, args);
    }
  };
}
if (!MPPage.__$wrappered) {
  MPPage.__$wrappered = true;
  Page = function Page() {
    var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    initHook('onLoad', options);
    return MPPage(options);
  };
  Page.after = MPPage.after;
  Component = function Component() {
    var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    initHook('created', options);
    return MPComponent(options);
  };
}
var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
function initMocks(vm, mocks) {
  var mpInstance = vm.$mp[vm.mpType];
  mocks.forEach(function (mock) {
    if (hasOwn(mpInstance, mock)) {
      vm[mock] = mpInstance[mock];
    }
  });
}
function hasHook(hook, vueOptions) {
  if (!vueOptions) {
    return true;
  }
  if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
    return true;
  }
  vueOptions = vueOptions.default || vueOptions;
  if (isFn(vueOptions)) {
    if (isFn(vueOptions.extendOptions[hook])) {
      return true;
    }
    if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
      return true;
    }
    return false;
  }
  if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
    return true;
  }
  var mixins = vueOptions.mixins;
  if (Array.isArray(mixins)) {
    return !!mixins.find(function (mixin) {
      return hasHook(hook, mixin);
    });
  }
}
function initHooks(mpOptions, hooks, vueOptions) {
  hooks.forEach(function (hook) {
    if (hasHook(hook, vueOptions)) {
      mpOptions[hook] = function (args) {
        return this.$vm && this.$vm.__call_hook(hook, args);
      };
    }
  });
}
function initUnknownHooks(mpOptions, vueOptions) {
  var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  findHooks(vueOptions).forEach(function (hook) {
    return initHook$1(mpOptions, hook, excludes);
  });
}
function findHooks(vueOptions) {
  var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  if (vueOptions) {
    Object.keys(vueOptions).forEach(function (name) {
      if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
        hooks.push(name);
      }
    });
  }
  return hooks;
}
function initHook$1(mpOptions, hook, excludes) {
  if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
    mpOptions[hook] = function (args) {
      return this.$vm && this.$vm.__call_hook(hook, args);
    };
  }
}
function initVueComponent(Vue, vueOptions) {
  vueOptions = vueOptions.default || vueOptions;
  var VueComponent;
  if (isFn(vueOptions)) {
    VueComponent = vueOptions;
  } else {
    VueComponent = Vue.extend(vueOptions);
  }
  vueOptions = VueComponent.options;
  return [VueComponent, vueOptions];
}
function initSlots(vm, vueSlots) {
  if (Array.isArray(vueSlots) && vueSlots.length) {
    var $slots = Object.create(null);
    vueSlots.forEach(function (slotName) {
      $slots[slotName] = true;
    });
    vm.$scopedSlots = vm.$slots = $slots;
  }
}
function initVueIds(vueIds, mpInstance) {
  vueIds = (vueIds || '').split(',');
  var len = vueIds.length;
  if (len === 1) {
    mpInstance._$vueId = vueIds[0];
  } else if (len === 2) {
    mpInstance._$vueId = vueIds[0];
    mpInstance._$vuePid = vueIds[1];
  }
}
function initData(vueOptions, context) {
  var data = vueOptions.data || {};
  var methods = vueOptions.methods || {};
  if (typeof data === 'function') {
    try {
      data = data.call(context); // 支持 Vue.prototype 上挂的数据
    } catch (e) {
      if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"patient-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
        console.warn('根据 Vue 的 data 函数初始化小程序 data 失败，请尽量确保 data 函数中不访问 vm 对象，否则可能影响首次数据渲染速度。', data);
      }
    }
  } else {
    try {
      // 对 data 格式化
      data = JSON.parse(JSON.stringify(data));
    } catch (e) {}
  }
  if (!isPlainObject(data)) {
    data = {};
  }
  Object.keys(methods).forEach(function (methodName) {
    if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
      data[methodName] = methods[methodName];
    }
  });
  return data;
}
var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
function createObserver(name) {
  return function observer(newVal, oldVal) {
    if (this.$vm) {
      this.$vm[name] = newVal; // 为了触发其他非 render watcher
    }
  };
}

function initBehaviors(vueOptions, initBehavior) {
  var vueBehaviors = vueOptions.behaviors;
  var vueExtends = vueOptions.extends;
  var vueMixins = vueOptions.mixins;
  var vueProps = vueOptions.props;
  if (!vueProps) {
    vueOptions.props = vueProps = [];
  }
  var behaviors = [];
  if (Array.isArray(vueBehaviors)) {
    vueBehaviors.forEach(function (behavior) {
      behaviors.push(behavior.replace('uni://', "wx".concat("://")));
      if (behavior === 'uni://form-field') {
        if (Array.isArray(vueProps)) {
          vueProps.push('name');
          vueProps.push('value');
        } else {
          vueProps.name = {
            type: String,
            default: ''
          };
          vueProps.value = {
            type: [String, Number, Boolean, Array, Object, Date],
            default: ''
          };
        }
      }
    });
  }
  if (isPlainObject(vueExtends) && vueExtends.props) {
    behaviors.push(initBehavior({
      properties: initProperties(vueExtends.props, true)
    }));
  }
  if (Array.isArray(vueMixins)) {
    vueMixins.forEach(function (vueMixin) {
      if (isPlainObject(vueMixin) && vueMixin.props) {
        behaviors.push(initBehavior({
          properties: initProperties(vueMixin.props, true)
        }));
      }
    });
  }
  return behaviors;
}
function parsePropType(key, type, defaultValue, file) {
  // [String]=>String
  if (Array.isArray(type) && type.length === 1) {
    return type[0];
  }
  return type;
}
function initProperties(props) {
  var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  var options = arguments.length > 3 ? arguments[3] : undefined;
  var properties = {};
  if (!isBehavior) {
    properties.vueId = {
      type: String,
      value: ''
    };
    {
      if (options.virtualHost) {
        properties.virtualHostStyle = {
          type: null,
          value: ''
        };
        properties.virtualHostClass = {
          type: null,
          value: ''
        };
      }
    }
    // scopedSlotsCompiler auto
    properties.scopedSlotsCompiler = {
      type: String,
      value: ''
    };
    properties.vueSlots = {
      // 小程序不能直接定义 $slots 的 props，所以通过 vueSlots 转换到 $slots
      type: null,
      value: [],
      observer: function observer(newVal, oldVal) {
        var $slots = Object.create(null);
        newVal.forEach(function (slotName) {
          $slots[slotName] = true;
        });
        this.setData({
          $slots: $slots
        });
      }
    };
  }
  if (Array.isArray(props)) {
    // ['title']
    props.forEach(function (key) {
      properties[key] = {
        type: null,
        observer: createObserver(key)
      };
    });
  } else if (isPlainObject(props)) {
    // {title:{type:String,default:''},content:String}
    Object.keys(props).forEach(function (key) {
      var opts = props[key];
      if (isPlainObject(opts)) {
        // title:{type:String,default:''}
        var value = opts.default;
        if (isFn(value)) {
          value = value();
        }
        opts.type = parsePropType(key, opts.type);
        properties[key] = {
          type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
          value: value,
          observer: createObserver(key)
        };
      } else {
        // content:String
        var type = parsePropType(key, opts);
        properties[key] = {
          type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
          observer: createObserver(key)
        };
      }
    });
  }
  return properties;
}
function wrapper$1(event) {
  // TODO 又得兼容 mpvue 的 mp 对象
  try {
    event.mp = JSON.parse(JSON.stringify(event));
  } catch (e) {}
  event.stopPropagation = noop;
  event.preventDefault = noop;
  event.target = event.target || {};
  if (!hasOwn(event, 'detail')) {
    event.detail = {};
  }
  if (hasOwn(event, 'markerId')) {
    event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
    event.detail.markerId = event.markerId;
  }
  if (isPlainObject(event.detail)) {
    event.target = Object.assign({}, event.target, event.detail);
  }
  return event;
}
function getExtraValue(vm, dataPathsArray) {
  var context = vm;
  dataPathsArray.forEach(function (dataPathArray) {
    var dataPath = dataPathArray[0];
    var value = dataPathArray[2];
    if (dataPath || typeof value !== 'undefined') {
      // ['','',index,'disable']
      var propPath = dataPathArray[1];
      var valuePath = dataPathArray[3];
      var vFor;
      if (Number.isInteger(dataPath)) {
        vFor = dataPath;
      } else if (!dataPath) {
        vFor = context;
      } else if (typeof dataPath === 'string' && dataPath) {
        if (dataPath.indexOf('#s#') === 0) {
          vFor = dataPath.substr(3);
        } else {
          vFor = vm.__get_value(dataPath, context);
        }
      }
      if (Number.isInteger(vFor)) {
        context = value;
      } else if (!propPath) {
        context = vFor[value];
      } else {
        if (Array.isArray(vFor)) {
          context = vFor.find(function (vForItem) {
            return vm.__get_value(propPath, vForItem) === value;
          });
        } else if (isPlainObject(vFor)) {
          context = Object.keys(vFor).find(function (vForKey) {
            return vm.__get_value(propPath, vFor[vForKey]) === value;
          });
        } else {
          console.error('v-for 暂不支持循环数据：', vFor);
        }
      }
      if (valuePath) {
        context = vm.__get_value(valuePath, context);
      }
    }
  });
  return context;
}
function processEventExtra(vm, extra, event, __args__) {
  var extraObj = {};
  if (Array.isArray(extra) && extra.length) {
    /**
     *[
     *    ['data.items', 'data.id', item.data.id],
     *    ['metas', 'id', meta.id]
     *],
     *[
     *    ['data.items', 'data.id', item.data.id],
     *    ['metas', 'id', meta.id]
     *],
     *'test'
     */
    extra.forEach(function (dataPath, index) {
      if (typeof dataPath === 'string') {
        if (!dataPath) {
          // model,prop.sync
          extraObj['$' + index] = vm;
        } else {
          if (dataPath === '$event') {
            // $event
            extraObj['$' + index] = event;
          } else if (dataPath === 'arguments') {
            extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
          } else if (dataPath.indexOf('$event.') === 0) {
            // $event.target.value
            extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
          } else {
            extraObj['$' + index] = vm.__get_value(dataPath);
          }
        }
      } else {
        extraObj['$' + index] = getExtraValue(vm, dataPath);
      }
    });
  }
  return extraObj;
}
function getObjByArray(arr) {
  var obj = {};
  for (var i = 1; i < arr.length; i++) {
    var element = arr[i];
    obj[element[0]] = element[1];
  }
  return obj;
}
function processEventArgs(vm, event) {
  var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  var methodName = arguments.length > 5 ? arguments[5] : undefined;
  var isCustomMPEvent = false; // wxcomponent 组件，传递原始 event 对象

  // fixed 用户直接触发 mpInstance.triggerEvent
  var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  if (isCustom) {
    // 自定义事件
    isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
    if (!args.length) {
      // 无参数，直接传入 event 或 detail 数组
      if (isCustomMPEvent) {
        return [event];
      }
      return __args__;
    }
  }
  var extraObj = processEventExtra(vm, extra, event, __args__);
  var ret = [];
  args.forEach(function (arg) {
    if (arg === '$event') {
      if (methodName === '__set_model' && !isCustom) {
        // input v-model value
        ret.push(event.target.value);
      } else {
        if (isCustom && !isCustomMPEvent) {
          ret.push(__args__[0]);
        } else {
          // wxcomponent 组件或内置组件
          ret.push(event);
        }
      }
    } else {
      if (Array.isArray(arg) && arg[0] === 'o') {
        ret.push(getObjByArray(arg));
      } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
        ret.push(extraObj[arg]);
      } else {
        ret.push(arg);
      }
    }
  });
  return ret;
}
var ONCE = '~';
var CUSTOM = '^';
function isMatchEventType(eventType, optType) {
  return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
}
function getContextVm(vm) {
  var $parent = vm.$parent;
  // 父组件是 scoped slots 或者其他自定义组件时继续查找
  while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
    $parent = $parent.$parent;
  }
  return $parent && $parent.$parent;
}
function handleEvent(event) {
  var _this2 = this;
  event = wrapper$1(event);

  // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  var dataset = (event.currentTarget || event.target).dataset;
  if (!dataset) {
    return console.warn('事件信息不存在');
  }
  var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  if (!eventOpts) {
    return console.warn('事件信息不存在');
  }

  // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  var eventType = event.type;
  var ret = [];
  eventOpts.forEach(function (eventOpt) {
    var type = eventOpt[0];
    var eventsArray = eventOpt[1];
    var isCustom = type.charAt(0) === CUSTOM;
    type = isCustom ? type.slice(1) : type;
    var isOnce = type.charAt(0) === ONCE;
    type = isOnce ? type.slice(1) : type;
    if (eventsArray && isMatchEventType(eventType, type)) {
      eventsArray.forEach(function (eventArray) {
        var methodName = eventArray[0];
        if (methodName) {
          var handlerCtx = _this2.$vm;
          if (handlerCtx.$options.generic) {
            // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
            handlerCtx = getContextVm(handlerCtx) || handlerCtx;
          }
          if (methodName === '$emit') {
            handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
            return;
          }
          var handler = handlerCtx[methodName];
          if (!isFn(handler)) {
            var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
            var path = _this2.route || _this2.is;
            throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
          }
          if (isOnce) {
            if (handler.once) {
              return;
            }
            handler.once = true;
          }
          var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
          params = Array.isArray(params) ? params : [];
          // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
          if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
            // eslint-disable-next-line no-sparse-arrays
            params = params.concat([,,,,,,,,,, event]);
          }
          ret.push(handler.apply(handlerCtx, params));
        }
      });
    }
  });
  if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
    return ret[0];
  }
}
var eventChannels = {};
var eventChannelStack = [];
function getEventChannel(id) {
  if (id) {
    var eventChannel = eventChannels[id];
    delete eventChannels[id];
    return eventChannel;
  }
  return eventChannelStack.shift();
}
var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
function initEventChannel() {
  _vue.default.prototype.getOpenerEventChannel = function () {
    // 微信小程序使用自身getOpenerEventChannel
    {
      return this.$scope.getOpenerEventChannel();
    }
  };
  var callHook = _vue.default.prototype.__call_hook;
  _vue.default.prototype.__call_hook = function (hook, args) {
    if (hook === 'onLoad' && args && args.__id__) {
      this.__eventChannel__ = getEventChannel(args.__id__);
      delete args.__id__;
    }
    return callHook.call(this, hook, args);
  };
}
function initScopedSlotsParams() {
  var center = {};
  var parents = {};
  _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
    var has = center[vueId];
    if (!has) {
      parents[vueId] = this;
      this.$on('hook:destroyed', function () {
        delete parents[vueId];
      });
    }
    return has;
  };
  _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
    var data = center[vueId];
    if (data) {
      var object = data[name] || {};
      return key ? object[key] : object;
    } else {
      parents[vueId] = this;
      this.$on('hook:destroyed', function () {
        delete parents[vueId];
      });
    }
  };
  _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
    var vueIds = this.$options.propsData.vueId;
    if (vueIds) {
      var vueId = vueIds.split(',')[0];
      var object = center[vueId] = center[vueId] || {};
      object[name] = value;
      if (parents[vueId]) {
        parents[vueId].$forceUpdate();
      }
    }
  };
  _vue.default.mixin({
    destroyed: function destroyed() {
      var propsData = this.$options.propsData;
      var vueId = propsData && propsData.vueId;
      if (vueId) {
        delete center[vueId];
        delete parents[vueId];
      }
    }
  });
}
function parseBaseApp(vm, _ref4) {
  var mocks = _ref4.mocks,
    initRefs = _ref4.initRefs;
  initEventChannel();
  {
    initScopedSlotsParams();
  }
  if (vm.$options.store) {
    _vue.default.prototype.$store = vm.$options.store;
  }
  uniIdMixin(_vue.default);
  _vue.default.prototype.mpHost = "mp-weixin";
  _vue.default.mixin({
    beforeCreate: function beforeCreate() {
      if (!this.$options.mpType) {
        return;
      }
      this.mpType = this.$options.mpType;
      this.$mp = (0, _defineProperty2.default)({
        data: {}
      }, this.mpType, this.$options.mpInstance);
      this.$scope = this.$options.mpInstance;
      delete this.$options.mpType;
      delete this.$options.mpInstance;
      if (this.mpType === 'page' && typeof getApp === 'function') {
        // hack vue-i18n
        var app = getApp();
        if (app.$vm && app.$vm.$i18n) {
          this._i18n = app.$vm.$i18n;
        }
      }
      if (this.mpType !== 'app') {
        initRefs(this);
        initMocks(this, mocks);
      }
    }
  });
  var appOptions = {
    onLaunch: function onLaunch(args) {
      if (this.$vm) {
        // 已经初始化过了，主要是为了百度，百度 onShow 在 onLaunch 之前
        return;
      }
      {
        if (wx.canIUse && !wx.canIUse('nextTick')) {
          // 事实 上2.2.3 即可，简单使用 2.3.0 的 nextTick 判断
          console.error('当前微信基础库版本过低，请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
        }
      }
      this.$vm = vm;
      this.$vm.$mp = {
        app: this
      };
      this.$vm.$scope = this;
      // vm 上也挂载 globalData
      this.$vm.globalData = this.globalData;
      this.$vm._isMounted = true;
      this.$vm.__call_hook('mounted', args);
      this.$vm.__call_hook('onLaunch', args);
    }
  };

  // 兼容旧版本 globalData
  appOptions.globalData = vm.$options.globalData || {};
  // 将 methods 中的方法挂在 getApp() 中
  var methods = vm.$options.methods;
  if (methods) {
    Object.keys(methods).forEach(function (name) {
      appOptions[name] = methods[name];
    });
  }
  initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  initHooks(appOptions, hooks);
  initUnknownHooks(appOptions, vm.$options);
  return appOptions;
}
function parseApp(vm) {
  return parseBaseApp(vm, {
    mocks: mocks,
    initRefs: initRefs
  });
}
function createApp(vm) {
  App(parseApp(vm));
  return vm;
}
var encodeReserveRE = /[!'()*]/g;
var encodeReserveReplacer = function encodeReserveReplacer(c) {
  return '%' + c.charCodeAt(0).toString(16);
};
var commaRE = /%2C/g;

// fixed encodeURIComponent which is more conformant to RFC3986:
// - escapes [!'()*]
// - preserve commas
var encode = function encode(str) {
  return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
};
function stringifyQuery(obj) {
  var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  var res = obj ? Object.keys(obj).map(function (key) {
    var val = obj[key];
    if (val === undefined) {
      return '';
    }
    if (val === null) {
      return encodeStr(key);
    }
    if (Array.isArray(val)) {
      var result = [];
      val.forEach(function (val2) {
        if (val2 === undefined) {
          return;
        }
        if (val2 === null) {
          result.push(encodeStr(key));
        } else {
          result.push(encodeStr(key) + '=' + encodeStr(val2));
        }
      });
      return result.join('&');
    }
    return encodeStr(key) + '=' + encodeStr(val);
  }).filter(function (x) {
    return x.length > 0;
  }).join('&') : null;
  return res ? "?".concat(res) : '';
}
function parseBaseComponent(vueComponentOptions) {
  var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
    isPage = _ref5.isPage,
    initRelation = _ref5.initRelation;
  var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
    _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
    VueComponent = _initVueComponent2[0],
    vueOptions = _initVueComponent2[1];
  var options = _objectSpread({
    multipleSlots: true,
    addGlobalClass: true
  }, vueOptions.options || {});
  {
    // 微信 multipleSlots 部分情况有 bug，导致内容顺序错乱 如 u-list，提供覆盖选项
    if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
      Object.assign(options, vueOptions['mp-weixin'].options);
    }
  }
  var componentOptions = {
    options: options,
    data: initData(vueOptions, _vue.default.prototype),
    behaviors: initBehaviors(vueOptions, initBehavior),
    properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
    lifetimes: {
      attached: function attached() {
        var properties = this.properties;
        var options = {
          mpType: isPage.call(this) ? 'page' : 'component',
          mpInstance: this,
          propsData: properties
        };
        initVueIds(properties.vueId, this);

        // 处理父子关系
        initRelation.call(this, {
          vuePid: this._$vuePid,
          vueOptions: options
        });

        // 初始化 vue 实例
        this.$vm = new VueComponent(options);

        // 处理$slots,$scopedSlots（暂不支持动态变化$slots）
        initSlots(this.$vm, properties.vueSlots);

        // 触发首次 setData
        this.$vm.$mount();
      },
      ready: function ready() {
        // 当组件 props 默认值为 true，初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
        // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
        if (this.$vm) {
          this.$vm._isMounted = true;
          this.$vm.__call_hook('mounted');
          this.$vm.__call_hook('onReady');
        }
      },
      detached: function detached() {
        this.$vm && this.$vm.$destroy();
      }
    },
    pageLifetimes: {
      show: function show(args) {
        this.$vm && this.$vm.__call_hook('onPageShow', args);
      },
      hide: function hide() {
        this.$vm && this.$vm.__call_hook('onPageHide');
      },
      resize: function resize(size) {
        this.$vm && this.$vm.__call_hook('onPageResize', size);
      }
    },
    methods: {
      __l: handleLink,
      __e: handleEvent
    }
  };
  // externalClasses
  if (vueOptions.externalClasses) {
    componentOptions.externalClasses = vueOptions.externalClasses;
  }
  if (Array.isArray(vueOptions.wxsCallMethods)) {
    vueOptions.wxsCallMethods.forEach(function (callMethod) {
      componentOptions.methods[callMethod] = function (args) {
        return this.$vm[callMethod](args);
      };
    });
  }
  if (needVueOptions) {
    return [componentOptions, vueOptions, VueComponent];
  }
  if (isPage) {
    return componentOptions;
  }
  return [componentOptions, VueComponent];
}
function parseComponent(vueComponentOptions, needVueOptions) {
  return parseBaseComponent(vueComponentOptions, {
    isPage: isPage,
    initRelation: initRelation
  }, needVueOptions);
}
var hooks$1 = ['onShow', 'onHide', 'onUnload'];
hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
function parseBasePage(vuePageOptions) {
  var _parseComponent = parseComponent(vuePageOptions, true),
    _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
    pageOptions = _parseComponent2[0],
    vueOptions = _parseComponent2[1];
  initHooks(pageOptions.methods, hooks$1, vueOptions);
  pageOptions.methods.onLoad = function (query) {
    this.options = query;
    var copyQuery = Object.assign({}, query);
    delete copyQuery.__id__;
    this.$page = {
      fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
    };
    this.$vm.$mp.query = query; // 兼容 mpvue
    this.$vm.__call_hook('onLoad', query);
  };
  {
    initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  }
  return pageOptions;
}
function parsePage(vuePageOptions) {
  return parseBasePage(vuePageOptions);
}
function createPage(vuePageOptions) {
  {
    return Component(parsePage(vuePageOptions));
  }
}
function createComponent(vueOptions) {
  {
    return Component(parseComponent(vueOptions));
  }
}
function createSubpackageApp(vm) {
  var appOptions = parseApp(vm);
  var app = getApp({
    allowDefault: true
  });
  vm.$scope = app;
  var globalData = app.globalData;
  if (globalData) {
    Object.keys(appOptions.globalData).forEach(function (name) {
      if (!hasOwn(globalData, name)) {
        globalData[name] = appOptions.globalData[name];
      }
    });
  }
  Object.keys(appOptions).forEach(function (name) {
    if (!hasOwn(app, name)) {
      app[name] = appOptions[name];
    }
  });
  if (isFn(appOptions.onShow) && wx.onAppShow) {
    wx.onAppShow(function () {
      for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
        args[_key5] = arguments[_key5];
      }
      vm.__call_hook('onShow', args);
    });
  }
  if (isFn(appOptions.onHide) && wx.onAppHide) {
    wx.onAppHide(function () {
      for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
        args[_key6] = arguments[_key6];
      }
      vm.__call_hook('onHide', args);
    });
  }
  if (isFn(appOptions.onLaunch)) {
    var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
    vm.__call_hook('onLaunch', args);
  }
  return vm;
}
function createPlugin(vm) {
  var appOptions = parseApp(vm);
  if (isFn(appOptions.onShow) && wx.onAppShow) {
    wx.onAppShow(function () {
      for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
        args[_key7] = arguments[_key7];
      }
      vm.__call_hook('onShow', args);
    });
  }
  if (isFn(appOptions.onHide) && wx.onAppHide) {
    wx.onAppHide(function () {
      for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
        args[_key8] = arguments[_key8];
      }
      vm.__call_hook('onHide', args);
    });
  }
  if (isFn(appOptions.onLaunch)) {
    var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
    vm.__call_hook('onLaunch', args);
  }
  return vm;
}
todos.forEach(function (todoApi) {
  protocols[todoApi] = false;
});
canIUses.forEach(function (canIUseApi) {
  var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  if (!wx.canIUse(apiName)) {
    protocols[canIUseApi] = false;
  }
});
var uni = {};
if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  uni = new Proxy({}, {
    get: function get(target, name) {
      if (hasOwn(target, name)) {
        return target[name];
      }
      if (baseApi[name]) {
        return baseApi[name];
      }
      if (api[name]) {
        return promisify(name, api[name]);
      }
      {
        if (extraApi[name]) {
          return promisify(name, extraApi[name]);
        }
        if (todoApis[name]) {
          return promisify(name, todoApis[name]);
        }
      }
      if (eventApi[name]) {
        return eventApi[name];
      }
      return promisify(name, wrapper(name, wx[name]));
    },
    set: function set(target, name, value) {
      target[name] = value;
      return true;
    }
  });
} else {
  Object.keys(baseApi).forEach(function (name) {
    uni[name] = baseApi[name];
  });
  {
    Object.keys(todoApis).forEach(function (name) {
      uni[name] = promisify(name, todoApis[name]);
    });
    Object.keys(extraApi).forEach(function (name) {
      uni[name] = promisify(name, todoApis[name]);
    });
  }
  Object.keys(eventApi).forEach(function (name) {
    uni[name] = eventApi[name];
  });
  Object.keys(api).forEach(function (name) {
    uni[name] = promisify(name, api[name]);
  });
  Object.keys(wx).forEach(function (name) {
    if (hasOwn(wx, name) || hasOwn(protocols, name)) {
      uni[name] = promisify(name, wrapper(name, wx[name]));
    }
  });
}
wx.createApp = createApp;
wx.createPage = createPage;
wx.createComponent = createComponent;
wx.createSubpackageApp = createSubpackageApp;
wx.createPlugin = createPlugin;
var uni$1 = uni;
var _default = uni$1;
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))

/***/ }),
/* 3 */
/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

var g;

// This works in non-strict mode
g = (function() {
	return this;
})();

try {
	// This works if eval is allowed (see CSP)
	g = g || new Function("return this")();
} catch (e) {
	// This works if the window reference is available
	if (typeof window === "object") g = window;
}

// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}

module.exports = g;


/***/ }),
/* 4 */
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    "default": obj
  };
}
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 5 */
/*!**************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
function _slicedToArray(arr, i) {
  return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
}
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 6 */
/*!***************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _arrayWithHoles(arr) {
  if (Array.isArray(arr)) return arr;
}
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 7 */
/*!*********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

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

/***/ }),
/* 8 */
/*!***************************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
function _unsupportedIterableToArray(o, minLen) {
  if (!o) return;
  if (typeof o === "string") return arrayLikeToArray(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor) n = o.constructor.name;
  if (n === "Map" || n === "Set") return Array.from(o);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
}
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 9 */
/*!*****************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

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

/***/ }),
/* 10 */
/*!****************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

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

/***/ }),
/* 11 */
/*!***************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
function _defineProperty(obj, key, value) {
  key = toPropertyKey(key);
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 12 */
/*!**************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
function _toPropertyKey(arg) {
  var key = toPrimitive(arg, "string");
  return _typeof(key) === "symbol" ? key : String(key);
}
module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 13 */
/*!*******************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _typeof(obj) {
  "@babel/helpers - typeof";

  return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
}
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 14 */
/*!************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
function _toPrimitive(input, hint) {
  if (_typeof(input) !== "object" || input === null) return input;
  var prim = input[Symbol.toPrimitive];
  if (prim !== undefined) {
    var res = prim.call(input, hint || "default");
    if (_typeof(res) !== "object") return res;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (hint === "string" ? String : Number)(input);
}
module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 15 */
/*!**********************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
function _construct(Parent, args, Class) {
  if (isNativeReflectConstruct()) {
    module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  } else {
    module.exports = _construct = function _construct(Parent, args, Class) {
      var a = [null];
      a.push.apply(a, args);
      var Constructor = Function.bind.apply(Parent, a);
      var instance = new Constructor();
      if (Class) setPrototypeOf(instance, Class.prototype);
      return instance;
    }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  }
  return _construct.apply(null, arguments);
}
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 16 */
/*!***************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _setPrototypeOf(o, p) {
  module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
    o.__proto__ = p;
    return o;
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  return _setPrototypeOf(o, p);
}
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 17 */
/*!*************************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

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

/***/ }),
/* 18 */
/*!******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
function _toConsumableArray(arr) {
  return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
}
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 19 */
/*!******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
function _arrayWithoutHoles(arr) {
  if (Array.isArray(arr)) return arrayLikeToArray(arr);
}
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 20 */
/*!****************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

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

/***/ }),
/* 21 */
/*!******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

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

/***/ }),
/* 22 */
/*!*************************************************************!*\
  !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni, global) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
exports.compileI18nJsonStr = compileI18nJsonStr;
exports.hasI18nJson = hasI18nJson;
exports.initVueI18n = initVueI18n;
exports.isI18nStr = isI18nStr;
exports.isString = void 0;
exports.normalizeLocale = normalizeLocale;
exports.parseI18nJson = parseI18nJson;
exports.resolveLocale = resolveLocale;
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
var isArray = Array.isArray;
var isObject = function isObject(val) {
  return val !== null && (0, _typeof2.default)(val) === 'object';
};
var defaultDelimiters = ['{', '}'];
var BaseFormatter = /*#__PURE__*/function () {
  function BaseFormatter() {
    (0, _classCallCheck2.default)(this, BaseFormatter);
    this._caches = Object.create(null);
  }
  (0, _createClass2.default)(BaseFormatter, [{
    key: "interpolate",
    value: function interpolate(message, values) {
      var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
      if (!values) {
        return [message];
      }
      var tokens = this._caches[message];
      if (!tokens) {
        tokens = parse(message, delimiters);
        this._caches[message] = tokens;
      }
      return compile(tokens, values);
    }
  }]);
  return BaseFormatter;
}();
exports.Formatter = BaseFormatter;
var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
function parse(format, _ref) {
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
    startDelimiter = _ref2[0],
    endDelimiter = _ref2[1];
  var tokens = [];
  var position = 0;
  var text = '';
  while (position < format.length) {
    var char = format[position++];
    if (char === startDelimiter) {
      if (text) {
        tokens.push({
          type: 'text',
          value: text
        });
      }
      text = '';
      var sub = '';
      char = format[position++];
      while (char !== undefined && char !== endDelimiter) {
        sub += char;
        char = format[position++];
      }
      var isClosed = char === endDelimiter;
      var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
      tokens.push({
        value: sub,
        type: type
      });
    }
    //  else if (char === '%') {
    //   // when found rails i18n syntax, skip text capture
    //   if (format[position] !== '{') {
    //     text += char
    //   }
    // }
    else {
      text += char;
    }
  }
  text && tokens.push({
    type: 'text',
    value: text
  });
  return tokens;
}
function compile(tokens, values) {
  var compiled = [];
  var index = 0;
  var mode = isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  if (mode === 'unknown') {
    return compiled;
  }
  while (index < tokens.length) {
    var token = tokens[index];
    switch (token.type) {
      case 'text':
        compiled.push(token.value);
        break;
      case 'list':
        compiled.push(values[parseInt(token.value, 10)]);
        break;
      case 'named':
        if (mode === 'named') {
          compiled.push(values[token.value]);
        } else {
          if (true) {
            console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
          }
        }
        break;
      case 'unknown':
        if (true) {
          console.warn("Detect 'unknown' type of token!");
        }
        break;
    }
    index++;
  }
  return compiled;
}
var LOCALE_ZH_HANS = 'zh-Hans';
exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
var LOCALE_ZH_HANT = 'zh-Hant';
exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
var LOCALE_EN = 'en';
exports.LOCALE_EN = LOCALE_EN;
var LOCALE_FR = 'fr';
exports.LOCALE_FR = LOCALE_FR;
var LOCALE_ES = 'es';
exports.LOCALE_ES = LOCALE_ES;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var hasOwn = function hasOwn(val, key) {
  return hasOwnProperty.call(val, key);
};
var defaultFormatter = new BaseFormatter();
function include(str, parts) {
  return !!parts.find(function (part) {
    return str.indexOf(part) !== -1;
  });
}
function startsWith(str, parts) {
  return parts.find(function (part) {
    return str.indexOf(part) === 0;
  });
}
function normalizeLocale(locale, messages) {
  if (!locale) {
    return;
  }
  locale = locale.trim().replace(/_/g, '-');
  if (messages && messages[locale]) {
    return locale;
  }
  locale = locale.toLowerCase();
  if (locale.indexOf('zh') === 0) {
    if (locale.indexOf('-hans') > -1) {
      return LOCALE_ZH_HANS;
    }
    if (locale.indexOf('-hant') > -1) {
      return LOCALE_ZH_HANT;
    }
    if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
      return LOCALE_ZH_HANT;
    }
    return LOCALE_ZH_HANS;
  }
  var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  if (lang) {
    return lang;
  }
}
var I18n = /*#__PURE__*/function () {
  function I18n(_ref3) {
    var locale = _ref3.locale,
      fallbackLocale = _ref3.fallbackLocale,
      messages = _ref3.messages,
      watcher = _ref3.watcher,
      formater = _ref3.formater;
    (0, _classCallCheck2.default)(this, I18n);
    this.locale = LOCALE_EN;
    this.fallbackLocale = LOCALE_EN;
    this.message = {};
    this.messages = {};
    this.watchers = [];
    if (fallbackLocale) {
      this.fallbackLocale = fallbackLocale;
    }
    this.formater = formater || defaultFormatter;
    this.messages = messages || {};
    this.setLocale(locale || LOCALE_EN);
    if (watcher) {
      this.watchLocale(watcher);
    }
  }
  (0, _createClass2.default)(I18n, [{
    key: "setLocale",
    value: function setLocale(locale) {
      var _this = this;
      var oldLocale = this.locale;
      this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
      if (!this.messages[this.locale]) {
        // 可能初始化时不存在
        this.messages[this.locale] = {};
      }
      this.message = this.messages[this.locale];
      // 仅发生变化时，通知
      if (oldLocale !== this.locale) {
        this.watchers.forEach(function (watcher) {
          watcher(_this.locale, oldLocale);
        });
      }
    }
  }, {
    key: "getLocale",
    value: function getLocale() {
      return this.locale;
    }
  }, {
    key: "watchLocale",
    value: function watchLocale(fn) {
      var _this2 = this;
      var index = this.watchers.push(fn) - 1;
      return function () {
        _this2.watchers.splice(index, 1);
      };
    }
  }, {
    key: "add",
    value: function add(locale, message) {
      var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
      var curMessages = this.messages[locale];
      if (curMessages) {
        if (override) {
          Object.assign(curMessages, message);
        } else {
          Object.keys(message).forEach(function (key) {
            if (!hasOwn(curMessages, key)) {
              curMessages[key] = message[key];
            }
          });
        }
      } else {
        this.messages[locale] = message;
      }
    }
  }, {
    key: "f",
    value: function f(message, values, delimiters) {
      return this.formater.interpolate(message, values, delimiters).join('');
    }
  }, {
    key: "t",
    value: function t(key, locale, values) {
      var message = this.message;
      if (typeof locale === 'string') {
        locale = normalizeLocale(locale, this.messages);
        locale && (message = this.messages[locale]);
      } else {
        values = locale;
      }
      if (!hasOwn(message, key)) {
        console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
        return key;
      }
      return this.formater.interpolate(message[key], values).join('');
    }
  }]);
  return I18n;
}();
exports.I18n = I18n;
function watchAppLocale(appVm, i18n) {
  // 需要保证 watch 的触发在组件渲染之前
  if (appVm.$watchLocale) {
    // vue2
    appVm.$watchLocale(function (newLocale) {
      i18n.setLocale(newLocale);
    });
  } else {
    appVm.$watch(function () {
      return appVm.$locale;
    }, function (newLocale) {
      i18n.setLocale(newLocale);
    });
  }
}
function getDefaultLocale() {
  if (typeof uni !== 'undefined' && uni.getLocale) {
    return uni.getLocale();
  }
  // 小程序平台，uni 和 uni-i18n 互相引用，导致访问不到 uni，故在 global 上挂了 getLocale
  if (typeof global !== 'undefined' && global.getLocale) {
    return global.getLocale();
  }
  return LOCALE_EN;
}
function initVueI18n(locale) {
  var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  var watcher = arguments.length > 3 ? arguments[3] : undefined;
  // 兼容旧版本入参
  if (typeof locale !== 'string') {
    var _ref4 = [messages, locale];
    locale = _ref4[0];
    messages = _ref4[1];
  }
  if (typeof locale !== 'string') {
    // 因为小程序平台，uni-i18n 和 uni 互相引用，导致此时访问 uni 时，为 undefined
    locale = getDefaultLocale();
  }
  if (typeof fallbackLocale !== 'string') {
    fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  }
  var i18n = new I18n({
    locale: locale,
    fallbackLocale: fallbackLocale,
    messages: messages,
    watcher: watcher
  });
  var _t = function t(key, values) {
    if (typeof getApp !== 'function') {
      // app view
      /* eslint-disable no-func-assign */
      _t = function t(key, values) {
        return i18n.t(key, values);
      };
    } else {
      var isWatchedAppLocale = false;
      _t = function t(key, values) {
        var appVm = getApp().$vm;
        // 可能$vm还不存在，比如在支付宝小程序中，组件定义较早，在props的default里使用了t()函数（如uni-goods-nav），此时app还未初始化
        // options: {
        // 	type: Array,
        // 	default () {
        // 		return [{
        // 			icon: 'shop',
        // 			text: t("uni-goods-nav.options.shop"),
        // 		}, {
        // 			icon: 'cart',
        // 			text: t("uni-goods-nav.options.cart")
        // 		}]
        // 	}
        // },
        if (appVm) {
          // 触发响应式
          appVm.$locale;
          if (!isWatchedAppLocale) {
            isWatchedAppLocale = true;
            watchAppLocale(appVm, i18n);
          }
        }
        return i18n.t(key, values);
      };
    }
    return _t(key, values);
  };
  return {
    i18n: i18n,
    f: function f(message, values, delimiters) {
      return i18n.f(message, values, delimiters);
    },
    t: function t(key, values) {
      return _t(key, values);
    },
    add: function add(locale, message) {
      var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
      return i18n.add(locale, message, override);
    },
    watch: function watch(fn) {
      return i18n.watchLocale(fn);
    },
    getLocale: function getLocale() {
      return i18n.getLocale();
    },
    setLocale: function setLocale(newLocale) {
      return i18n.setLocale(newLocale);
    }
  };
}
var isString = function isString(val) {
  return typeof val === 'string';
};
exports.isString = isString;
var formater;
function hasI18nJson(jsonObj, delimiters) {
  if (!formater) {
    formater = new BaseFormatter();
  }
  return walkJsonObj(jsonObj, function (jsonObj, key) {
    var value = jsonObj[key];
    if (isString(value)) {
      if (isI18nStr(value, delimiters)) {
        return true;
      }
    } else {
      return hasI18nJson(value, delimiters);
    }
  });
}
function parseI18nJson(jsonObj, values, delimiters) {
  if (!formater) {
    formater = new BaseFormatter();
  }
  walkJsonObj(jsonObj, function (jsonObj, key) {
    var value = jsonObj[key];
    if (isString(value)) {
      if (isI18nStr(value, delimiters)) {
        jsonObj[key] = compileStr(value, values, delimiters);
      }
    } else {
      parseI18nJson(value, values, delimiters);
    }
  });
  return jsonObj;
}
function compileI18nJsonStr(jsonStr, _ref5) {
  var locale = _ref5.locale,
    locales = _ref5.locales,
    delimiters = _ref5.delimiters;
  if (!isI18nStr(jsonStr, delimiters)) {
    return jsonStr;
  }
  if (!formater) {
    formater = new BaseFormatter();
  }
  var localeValues = [];
  Object.keys(locales).forEach(function (name) {
    if (name !== locale) {
      localeValues.push({
        locale: name,
        values: locales[name]
      });
    }
  });
  localeValues.unshift({
    locale: locale,
    values: locales[locale]
  });
  try {
    return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  } catch (e) {}
  return jsonStr;
}
function isI18nStr(value, delimiters) {
  return value.indexOf(delimiters[0]) > -1;
}
function compileStr(value, values, delimiters) {
  return formater.interpolate(value, values, delimiters).join('');
}
function compileValue(jsonObj, key, localeValues, delimiters) {
  var value = jsonObj[key];
  if (isString(value)) {
    // 存在国际化
    if (isI18nStr(value, delimiters)) {
      jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
      if (localeValues.length > 1) {
        // 格式化国际化语言
        var valueLocales = jsonObj[key + 'Locales'] = {};
        localeValues.forEach(function (localValue) {
          valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
        });
      }
    }
  } else {
    compileJsonObj(value, localeValues, delimiters);
  }
}
function compileJsonObj(jsonObj, localeValues, delimiters) {
  walkJsonObj(jsonObj, function (jsonObj, key) {
    compileValue(jsonObj, key, localeValues, delimiters);
  });
  return jsonObj;
}
function walkJsonObj(jsonObj, walk) {
  if (isArray(jsonObj)) {
    for (var i = 0; i < jsonObj.length; i++) {
      if (walk(jsonObj, i)) {
        return true;
      }
    }
  } else if (isObject(jsonObj)) {
    for (var key in jsonObj) {
      if (walk(jsonObj, key)) {
        return true;
      }
    }
  }
  return false;
}
function resolveLocale(locales) {
  return function (locale) {
    if (!locale) {
      return locale;
    }
    locale = normalizeLocale(locale) || locale;
    return resolveLocaleChain(locale).find(function (locale) {
      return locales.indexOf(locale) > -1;
    });
  };
}
function resolveLocaleChain(locale) {
  var chain = [];
  var tokens = locale.split('-');
  while (tokens.length) {
    chain.push(tokens.join('-'));
    tokens.pop();
  }
  return chain;
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))

/***/ }),
/* 23 */
/*!***************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _classCallCheck(instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
}
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 24 */
/*!************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
function _defineProperties(target, props) {
  for (var i = 0; i < props.length; i++) {
    var descriptor = props[i];
    descriptor.enumerable = descriptor.enumerable || false;
    descriptor.configurable = true;
    if ("value" in descriptor) descriptor.writable = true;
    Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  }
}
function _createClass(Constructor, protoProps, staticProps) {
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  if (staticProps) _defineProperties(Constructor, staticProps);
  Object.defineProperty(Constructor, "prototype", {
    writable: false
  });
  return Constructor;
}
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 25 */
/*!******************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(global) {/*!
 * Vue.js v2.6.11
 * (c) 2014-2022 Evan You
 * Released under the MIT License.
 */
/*  */

var emptyObject = Object.freeze({});

// These helpers produce better VM code in JS engines due to their
// explicitness and function inlining.
function isUndef (v) {
  return v === undefined || v === null
}

function isDef (v) {
  return v !== undefined && v !== null
}

function isTrue (v) {
  return v === true
}

function isFalse (v) {
  return v === false
}

/**
 * Check if value is primitive.
 */
function isPrimitive (value) {
  return (
    typeof value === 'string' ||
    typeof value === 'number' ||
    // $flow-disable-line
    typeof value === 'symbol' ||
    typeof value === 'boolean'
  )
}

/**
 * Quick object check - this is primarily used to tell
 * Objects from primitive values when we know the value
 * is a JSON-compliant type.
 */
function isObject (obj) {
  return obj !== null && typeof obj === 'object'
}

/**
 * Get the raw type string of a value, e.g., [object Object].
 */
var _toString = Object.prototype.toString;

function toRawType (value) {
  return _toString.call(value).slice(8, -1)
}

/**
 * Strict object type check. Only returns true
 * for plain JavaScript objects.
 */
function isPlainObject (obj) {
  return _toString.call(obj) === '[object Object]'
}

function isRegExp (v) {
  return _toString.call(v) === '[object RegExp]'
}

/**
 * Check if val is a valid array index.
 */
function isValidArrayIndex (val) {
  var n = parseFloat(String(val));
  return n >= 0 && Math.floor(n) === n && isFinite(val)
}

function isPromise (val) {
  return (
    isDef(val) &&
    typeof val.then === 'function' &&
    typeof val.catch === 'function'
  )
}

/**
 * Convert a value to a string that is actually rendered.
 */
function toString (val) {
  return val == null
    ? ''
    : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
      ? JSON.stringify(val, null, 2)
      : String(val)
}

/**
 * Convert an input value to a number for persistence.
 * If the conversion fails, return original string.
 */
function toNumber (val) {
  var n = parseFloat(val);
  return isNaN(n) ? val : n
}

/**
 * Make a map and return a function for checking if a key
 * is in that map.
 */
function makeMap (
  str,
  expectsLowerCase
) {
  var map = Object.create(null);
  var list = str.split(',');
  for (var i = 0; i < list.length; i++) {
    map[list[i]] = true;
  }
  return expectsLowerCase
    ? function (val) { return map[val.toLowerCase()]; }
    : function (val) { return map[val]; }
}

/**
 * Check if a tag is a built-in tag.
 */
var isBuiltInTag = makeMap('slot,component', true);

/**
 * Check if an attribute is a reserved attribute.
 */
var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');

/**
 * Remove an item from an array.
 */
function remove (arr, item) {
  if (arr.length) {
    var index = arr.indexOf(item);
    if (index > -1) {
      return arr.splice(index, 1)
    }
  }
}

/**
 * Check whether an object has the property.
 */
var hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwn (obj, key) {
  return hasOwnProperty.call(obj, key)
}

/**
 * Create a cached version of a pure function.
 */
function cached (fn) {
  var cache = Object.create(null);
  return (function cachedFn (str) {
    var hit = cache[str];
    return hit || (cache[str] = fn(str))
  })
}

/**
 * Camelize a hyphen-delimited string.
 */
var camelizeRE = /-(\w)/g;
var camelize = cached(function (str) {
  return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
});

/**
 * Capitalize a string.
 */
var capitalize = cached(function (str) {
  return str.charAt(0).toUpperCase() + str.slice(1)
});

/**
 * Hyphenate a camelCase string.
 */
var hyphenateRE = /\B([A-Z])/g;
var hyphenate = cached(function (str) {
  return str.replace(hyphenateRE, '-$1').toLowerCase()
});

/**
 * Simple bind polyfill for environments that do not support it,
 * e.g., PhantomJS 1.x. Technically, we don't need this anymore
 * since native bind is now performant enough in most browsers.
 * But removing it would mean breaking code that was able to run in
 * PhantomJS 1.x, so this must be kept for backward compatibility.
 */

/* istanbul ignore next */
function polyfillBind (fn, ctx) {
  function boundFn (a) {
    var l = arguments.length;
    return l
      ? l > 1
        ? fn.apply(ctx, arguments)
        : fn.call(ctx, a)
      : fn.call(ctx)
  }

  boundFn._length = fn.length;
  return boundFn
}

function nativeBind (fn, ctx) {
  return fn.bind(ctx)
}

var bind = Function.prototype.bind
  ? nativeBind
  : polyfillBind;

/**
 * Convert an Array-like object to a real Array.
 */
function toArray (list, start) {
  start = start || 0;
  var i = list.length - start;
  var ret = new Array(i);
  while (i--) {
    ret[i] = list[i + start];
  }
  return ret
}

/**
 * Mix properties into target object.
 */
function extend (to, _from) {
  for (var key in _from) {
    to[key] = _from[key];
  }
  return to
}

/**
 * Merge an Array of Objects into a single Object.
 */
function toObject (arr) {
  var res = {};
  for (var i = 0; i < arr.length; i++) {
    if (arr[i]) {
      extend(res, arr[i]);
    }
  }
  return res
}

/* eslint-disable no-unused-vars */

/**
 * Perform no operation.
 * Stubbing args to make Flow happy without leaving useless transpiled code
 * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
 */
function noop (a, b, c) {}

/**
 * Always return false.
 */
var no = function (a, b, c) { return false; };

/* eslint-enable no-unused-vars */

/**
 * Return the same value.
 */
var identity = function (_) { return _; };

/**
 * Check if two values are loosely equal - that is,
 * if they are plain objects, do they have the same shape?
 */
function looseEqual (a, b) {
  if (a === b) { return true }
  var isObjectA = isObject(a);
  var isObjectB = isObject(b);
  if (isObjectA && isObjectB) {
    try {
      var isArrayA = Array.isArray(a);
      var isArrayB = Array.isArray(b);
      if (isArrayA && isArrayB) {
        return a.length === b.length && a.every(function (e, i) {
          return looseEqual(e, b[i])
        })
      } else if (a instanceof Date && b instanceof Date) {
        return a.getTime() === b.getTime()
      } else if (!isArrayA && !isArrayB) {
        var keysA = Object.keys(a);
        var keysB = Object.keys(b);
        return keysA.length === keysB.length && keysA.every(function (key) {
          return looseEqual(a[key], b[key])
        })
      } else {
        /* istanbul ignore next */
        return false
      }
    } catch (e) {
      /* istanbul ignore next */
      return false
    }
  } else if (!isObjectA && !isObjectB) {
    return String(a) === String(b)
  } else {
    return false
  }
}

/**
 * Return the first index at which a loosely equal value can be
 * found in the array (if value is a plain object, the array must
 * contain an object of the same shape), or -1 if it is not present.
 */
function looseIndexOf (arr, val) {
  for (var i = 0; i < arr.length; i++) {
    if (looseEqual(arr[i], val)) { return i }
  }
  return -1
}

/**
 * Ensure a function is called only once.
 */
function once (fn) {
  var called = false;
  return function () {
    if (!called) {
      called = true;
      fn.apply(this, arguments);
    }
  }
}

var ASSET_TYPES = [
  'component',
  'directive',
  'filter'
];

var LIFECYCLE_HOOKS = [
  'beforeCreate',
  'created',
  'beforeMount',
  'mounted',
  'beforeUpdate',
  'updated',
  'beforeDestroy',
  'destroyed',
  'activated',
  'deactivated',
  'errorCaptured',
  'serverPrefetch'
];

/*  */



var config = ({
  /**
   * Option merge strategies (used in core/util/options)
   */
  // $flow-disable-line
  optionMergeStrategies: Object.create(null),

  /**
   * Whether to suppress warnings.
   */
  silent: false,

  /**
   * Show production mode tip message on boot?
   */
  productionTip: "development" !== 'production',

  /**
   * Whether to enable devtools
   */
  devtools: "development" !== 'production',

  /**
   * Whether to record perf
   */
  performance: false,

  /**
   * Error handler for watcher errors
   */
  errorHandler: null,

  /**
   * Warn handler for watcher warns
   */
  warnHandler: null,

  /**
   * Ignore certain custom elements
   */
  ignoredElements: [],

  /**
   * Custom user key aliases for v-on
   */
  // $flow-disable-line
  keyCodes: Object.create(null),

  /**
   * Check if a tag is reserved so that it cannot be registered as a
   * component. This is platform-dependent and may be overwritten.
   */
  isReservedTag: no,

  /**
   * Check if an attribute is reserved so that it cannot be used as a component
   * prop. This is platform-dependent and may be overwritten.
   */
  isReservedAttr: no,

  /**
   * Check if a tag is an unknown element.
   * Platform-dependent.
   */
  isUnknownElement: no,

  /**
   * Get the namespace of an element
   */
  getTagNamespace: noop,

  /**
   * Parse the real tag name for the specific platform.
   */
  parsePlatformTagName: identity,

  /**
   * Check if an attribute must be bound using property, e.g. value
   * Platform-dependent.
   */
  mustUseProp: no,

  /**
   * Perform updates asynchronously. Intended to be used by Vue Test Utils
   * This will significantly reduce performance if set to false.
   */
  async: true,

  /**
   * Exposed for legacy reasons
   */
  _lifecycleHooks: LIFECYCLE_HOOKS
});

/*  */

/**
 * unicode letters used for parsing html tags, component names and property paths.
 * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
 * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
 */
var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;

/**
 * Check if a string starts with $ or _
 */
function isReserved (str) {
  var c = (str + '').charCodeAt(0);
  return c === 0x24 || c === 0x5F
}

/**
 * Define a property.
 */
function def (obj, key, val, enumerable) {
  Object.defineProperty(obj, key, {
    value: val,
    enumerable: !!enumerable,
    writable: true,
    configurable: true
  });
}

/**
 * Parse simple path.
 */
var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
function parsePath (path) {
  if (bailRE.test(path)) {
    return
  }
  var segments = path.split('.');
  return function (obj) {
    for (var i = 0; i < segments.length; i++) {
      if (!obj) { return }
      obj = obj[segments[i]];
    }
    return obj
  }
}

/*  */

// can we use __proto__?
var hasProto = '__proto__' in {};

// Browser environment sniffing
var inBrowser = typeof window !== 'undefined';
var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
var UA = inBrowser && window.navigator.userAgent.toLowerCase();
var isIE = UA && /msie|trident/.test(UA);
var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
var isEdge = UA && UA.indexOf('edge/') > 0;
var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
var isPhantomJS = UA && /phantomjs/.test(UA);
var isFF = UA && UA.match(/firefox\/(\d+)/);

// Firefox has a "watch" function on Object.prototype...
var nativeWatch = ({}).watch;
if (inBrowser) {
  try {
    var opts = {};
    Object.defineProperty(opts, 'passive', ({
      get: function get () {
      }
    })); // https://github.com/facebook/flow/issues/285
    window.addEventListener('test-passive', null, opts);
  } catch (e) {}
}

// this needs to be lazy-evaled because vue may be required before
// vue-server-renderer can set VUE_ENV
var _isServer;
var isServerRendering = function () {
  if (_isServer === undefined) {
    /* istanbul ignore if */
    if (!inBrowser && !inWeex && typeof global !== 'undefined') {
      // detect presence of vue-server-renderer and avoid
      // Webpack shimming the process
      _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
    } else {
      _isServer = false;
    }
  }
  return _isServer
};

// detect devtools
var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;

/* istanbul ignore next */
function isNative (Ctor) {
  return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
}

var hasSymbol =
  typeof Symbol !== 'undefined' && isNative(Symbol) &&
  typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);

var _Set;
/* istanbul ignore if */ // $flow-disable-line
if (typeof Set !== 'undefined' && isNative(Set)) {
  // use native Set when available.
  _Set = Set;
} else {
  // a non-standard Set polyfill that only works with primitive keys.
  _Set = /*@__PURE__*/(function () {
    function Set () {
      this.set = Object.create(null);
    }
    Set.prototype.has = function has (key) {
      return this.set[key] === true
    };
    Set.prototype.add = function add (key) {
      this.set[key] = true;
    };
    Set.prototype.clear = function clear () {
      this.set = Object.create(null);
    };

    return Set;
  }());
}

/*  */

var warn = noop;
var tip = noop;
var generateComponentTrace = (noop); // work around flow check
var formatComponentName = (noop);

if (true) {
  var hasConsole = typeof console !== 'undefined';
  var classifyRE = /(?:^|[-_])(\w)/g;
  var classify = function (str) { return str
    .replace(classifyRE, function (c) { return c.toUpperCase(); })
    .replace(/[-_]/g, ''); };

  warn = function (msg, vm) {
    var trace = vm ? generateComponentTrace(vm) : '';

    if (config.warnHandler) {
      config.warnHandler.call(null, msg, vm, trace);
    } else if (hasConsole && (!config.silent)) {
      console.error(("[Vue warn]: " + msg + trace));
    }
  };

  tip = function (msg, vm) {
    if (hasConsole && (!config.silent)) {
      console.warn("[Vue tip]: " + msg + (
        vm ? generateComponentTrace(vm) : ''
      ));
    }
  };

  formatComponentName = function (vm, includeFile) {
    if (vm.$root === vm) {
      if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
        return ('') + vm.$options.__file
      }
      return '<Root>'
    }
    var options = typeof vm === 'function' && vm.cid != null
      ? vm.options
      : vm._isVue
        ? vm.$options || vm.constructor.options
        : vm;
    var name = options.name || options._componentTag;
    var file = options.__file;
    if (!name && file) {
      var match = file.match(/([^/\\]+)\.vue$/);
      name = match && match[1];
    }

    return (
      (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
      (file && includeFile !== false ? (" at " + file) : '')
    )
  };

  var repeat = function (str, n) {
    var res = '';
    while (n) {
      if (n % 2 === 1) { res += str; }
      if (n > 1) { str += str; }
      n >>= 1;
    }
    return res
  };

  generateComponentTrace = function (vm) {
    if (vm._isVue && vm.$parent) {
      var tree = [];
      var currentRecursiveSequence = 0;
      while (vm && vm.$options.name !== 'PageBody') {
        if (tree.length > 0) {
          var last = tree[tree.length - 1];
          if (last.constructor === vm.constructor) {
            currentRecursiveSequence++;
            vm = vm.$parent;
            continue
          } else if (currentRecursiveSequence > 0) {
            tree[tree.length - 1] = [last, currentRecursiveSequence];
            currentRecursiveSequence = 0;
          }
        }
        !vm.$options.isReserved && tree.push(vm);
        vm = vm.$parent;
      }
      return '\n\nfound in\n\n' + tree
        .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
            ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
            : formatComponentName(vm))); })
        .join('\n')
    } else {
      return ("\n\n(found in " + (formatComponentName(vm)) + ")")
    }
  };
}

/*  */

var uid = 0;

/**
 * A dep is an observable that can have multiple
 * directives subscribing to it.
 */
var Dep = function Dep () {
  this.id = uid++;
  this.subs = [];
};

Dep.prototype.addSub = function addSub (sub) {
  this.subs.push(sub);
};

Dep.prototype.removeSub = function removeSub (sub) {
  remove(this.subs, sub);
};

Dep.prototype.depend = function depend () {
  if (Dep.SharedObject.target) {
    Dep.SharedObject.target.addDep(this);
  }
};

Dep.prototype.notify = function notify () {
  // stabilize the subscriber list first
  var subs = this.subs.slice();
  if ( true && !config.async) {
    // subs aren't sorted in scheduler if not running async
    // we need to sort them now to make sure they fire in correct
    // order
    subs.sort(function (a, b) { return a.id - b.id; });
  }
  for (var i = 0, l = subs.length; i < l; i++) {
    subs[i].update();
  }
};

// The current target watcher being evaluated.
// This is globally unique because only one watcher
// can be evaluated at a time.
// fixed by xxxxxx (nvue shared vuex)
/* eslint-disable no-undef */
Dep.SharedObject = {};
Dep.SharedObject.target = null;
Dep.SharedObject.targetStack = [];

function pushTarget (target) {
  Dep.SharedObject.targetStack.push(target);
  Dep.SharedObject.target = target;
  Dep.target = target;
}

function popTarget () {
  Dep.SharedObject.targetStack.pop();
  Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  Dep.target = Dep.SharedObject.target;
}

/*  */

var VNode = function VNode (
  tag,
  data,
  children,
  text,
  elm,
  context,
  componentOptions,
  asyncFactory
) {
  this.tag = tag;
  this.data = data;
  this.children = children;
  this.text = text;
  this.elm = elm;
  this.ns = undefined;
  this.context = context;
  this.fnContext = undefined;
  this.fnOptions = undefined;
  this.fnScopeId = undefined;
  this.key = data && data.key;
  this.componentOptions = componentOptions;
  this.componentInstance = undefined;
  this.parent = undefined;
  this.raw = false;
  this.isStatic = false;
  this.isRootInsert = true;
  this.isComment = false;
  this.isCloned = false;
  this.isOnce = false;
  this.asyncFactory = asyncFactory;
  this.asyncMeta = undefined;
  this.isAsyncPlaceholder = false;
};

var prototypeAccessors = { child: { configurable: true } };

// DEPRECATED: alias for componentInstance for backwards compat.
/* istanbul ignore next */
prototypeAccessors.child.get = function () {
  return this.componentInstance
};

Object.defineProperties( VNode.prototype, prototypeAccessors );

var createEmptyVNode = function (text) {
  if ( text === void 0 ) text = '';

  var node = new VNode();
  node.text = text;
  node.isComment = true;
  return node
};

function createTextVNode (val) {
  return new VNode(undefined, undefined, undefined, String(val))
}

// optimized shallow clone
// used for static nodes and slot nodes because they may be reused across
// multiple renders, cloning them avoids errors when DOM manipulations rely
// on their elm reference.
function cloneVNode (vnode) {
  var cloned = new VNode(
    vnode.tag,
    vnode.data,
    // #7975
    // clone children array to avoid mutating original in case of cloning
    // a child.
    vnode.children && vnode.children.slice(),
    vnode.text,
    vnode.elm,
    vnode.context,
    vnode.componentOptions,
    vnode.asyncFactory
  );
  cloned.ns = vnode.ns;
  cloned.isStatic = vnode.isStatic;
  cloned.key = vnode.key;
  cloned.isComment = vnode.isComment;
  cloned.fnContext = vnode.fnContext;
  cloned.fnOptions = vnode.fnOptions;
  cloned.fnScopeId = vnode.fnScopeId;
  cloned.asyncMeta = vnode.asyncMeta;
  cloned.isCloned = true;
  return cloned
}

/*
 * not type checking this file because flow doesn't play well with
 * dynamically accessing methods on Array prototype
 */

var arrayProto = Array.prototype;
var arrayMethods = Object.create(arrayProto);

var methodsToPatch = [
  'push',
  'pop',
  'shift',
  'unshift',
  'splice',
  'sort',
  'reverse'
];

/**
 * Intercept mutating methods and emit events
 */
methodsToPatch.forEach(function (method) {
  // cache original method
  var original = arrayProto[method];
  def(arrayMethods, method, function mutator () {
    var args = [], len = arguments.length;
    while ( len-- ) args[ len ] = arguments[ len ];

    var result = original.apply(this, args);
    var ob = this.__ob__;
    var inserted;
    switch (method) {
      case 'push':
      case 'unshift':
        inserted = args;
        break
      case 'splice':
        inserted = args.slice(2);
        break
    }
    if (inserted) { ob.observeArray(inserted); }
    // notify change
    ob.dep.notify();
    return result
  });
});

/*  */

var arrayKeys = Object.getOwnPropertyNames(arrayMethods);

/**
 * In some cases we may want to disable observation inside a component's
 * update computation.
 */
var shouldObserve = true;

function toggleObserving (value) {
  shouldObserve = value;
}

/**
 * Observer class that is attached to each observed
 * object. Once attached, the observer converts the target
 * object's property keys into getter/setters that
 * collect dependencies and dispatch updates.
 */
var Observer = function Observer (value) {
  this.value = value;
  this.dep = new Dep();
  this.vmCount = 0;
  def(value, '__ob__', this);
  if (Array.isArray(value)) {
    if (hasProto) {
      {// fixed by xxxxxx 微信小程序使用 plugins 之后，数组方法被直接挂载到了数组对象上，需要执行 copyAugment 逻辑
        if(value.push !== value.__proto__.push){
          copyAugment(value, arrayMethods, arrayKeys);
        } else {
          protoAugment(value, arrayMethods);
        }
      }
    } else {
      copyAugment(value, arrayMethods, arrayKeys);
    }
    this.observeArray(value);
  } else {
    this.walk(value);
  }
};

/**
 * Walk through all properties and convert them into
 * getter/setters. This method should only be called when
 * value type is Object.
 */
Observer.prototype.walk = function walk (obj) {
  var keys = Object.keys(obj);
  for (var i = 0; i < keys.length; i++) {
    defineReactive$$1(obj, keys[i]);
  }
};

/**
 * Observe a list of Array items.
 */
Observer.prototype.observeArray = function observeArray (items) {
  for (var i = 0, l = items.length; i < l; i++) {
    observe(items[i]);
  }
};

// helpers

/**
 * Augment a target Object or Array by intercepting
 * the prototype chain using __proto__
 */
function protoAugment (target, src) {
  /* eslint-disable no-proto */
  target.__proto__ = src;
  /* eslint-enable no-proto */
}

/**
 * Augment a target Object or Array by defining
 * hidden properties.
 */
/* istanbul ignore next */
function copyAugment (target, src, keys) {
  for (var i = 0, l = keys.length; i < l; i++) {
    var key = keys[i];
    def(target, key, src[key]);
  }
}

/**
 * Attempt to create an observer instance for a value,
 * returns the new observer if successfully observed,
 * or the existing observer if the value already has one.
 */
function observe (value, asRootData) {
  if (!isObject(value) || value instanceof VNode) {
    return
  }
  var ob;
  if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
    ob = value.__ob__;
  } else if (
    shouldObserve &&
    !isServerRendering() &&
    (Array.isArray(value) || isPlainObject(value)) &&
    Object.isExtensible(value) &&
    !value._isVue &&
    !value.__v_isMPComponent
  ) {
    ob = new Observer(value);
  }
  if (asRootData && ob) {
    ob.vmCount++;
  }
  return ob
}

/**
 * Define a reactive property on an Object.
 */
function defineReactive$$1 (
  obj,
  key,
  val,
  customSetter,
  shallow
) {
  var dep = new Dep();

  var property = Object.getOwnPropertyDescriptor(obj, key);
  if (property && property.configurable === false) {
    return
  }

  // cater for pre-defined getter/setters
  var getter = property && property.get;
  var setter = property && property.set;
  if ((!getter || setter) && arguments.length === 2) {
    val = obj[key];
  }

  var childOb = !shallow && observe(val);
  Object.defineProperty(obj, key, {
    enumerable: true,
    configurable: true,
    get: function reactiveGetter () {
      var value = getter ? getter.call(obj) : val;
      if (Dep.SharedObject.target) { // fixed by xxxxxx
        dep.depend();
        if (childOb) {
          childOb.dep.depend();
          if (Array.isArray(value)) {
            dependArray(value);
          }
        }
      }
      return value
    },
    set: function reactiveSetter (newVal) {
      var value = getter ? getter.call(obj) : val;
      /* eslint-disable no-self-compare */
      if (newVal === value || (newVal !== newVal && value !== value)) {
        return
      }
      /* eslint-enable no-self-compare */
      if ( true && customSetter) {
        customSetter();
      }
      // #7981: for accessor properties without setter
      if (getter && !setter) { return }
      if (setter) {
        setter.call(obj, newVal);
      } else {
        val = newVal;
      }
      childOb = !shallow && observe(newVal);
      dep.notify();
    }
  });
}

/**
 * Set a property on an object. Adds the new property and
 * triggers change notification if the property doesn't
 * already exist.
 */
function set (target, key, val) {
  if ( true &&
    (isUndef(target) || isPrimitive(target))
  ) {
    warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  }
  if (Array.isArray(target) && isValidArrayIndex(key)) {
    target.length = Math.max(target.length, key);
    target.splice(key, 1, val);
    return val
  }
  if (key in target && !(key in Object.prototype)) {
    target[key] = val;
    return val
  }
  var ob = (target).__ob__;
  if (target._isVue || (ob && ob.vmCount)) {
     true && warn(
      'Avoid adding reactive properties to a Vue instance or its root $data ' +
      'at runtime - declare it upfront in the data option.'
    );
    return val
  }
  if (!ob) {
    target[key] = val;
    return val
  }
  defineReactive$$1(ob.value, key, val);
  ob.dep.notify();
  return val
}

/**
 * Delete a property and trigger change if necessary.
 */
function del (target, key) {
  if ( true &&
    (isUndef(target) || isPrimitive(target))
  ) {
    warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  }
  if (Array.isArray(target) && isValidArrayIndex(key)) {
    target.splice(key, 1);
    return
  }
  var ob = (target).__ob__;
  if (target._isVue || (ob && ob.vmCount)) {
     true && warn(
      'Avoid deleting properties on a Vue instance or its root $data ' +
      '- just set it to null.'
    );
    return
  }
  if (!hasOwn(target, key)) {
    return
  }
  delete target[key];
  if (!ob) {
    return
  }
  ob.dep.notify();
}

/**
 * Collect dependencies on array elements when the array is touched, since
 * we cannot intercept array element access like property getters.
 */
function dependArray (value) {
  for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
    e = value[i];
    e && e.__ob__ && e.__ob__.dep.depend();
    if (Array.isArray(e)) {
      dependArray(e);
    }
  }
}

/*  */

/**
 * Option overwriting strategies are functions that handle
 * how to merge a parent option value and a child option
 * value into the final value.
 */
var strats = config.optionMergeStrategies;

/**
 * Options with restrictions
 */
if (true) {
  strats.el = strats.propsData = function (parent, child, vm, key) {
    if (!vm) {
      warn(
        "option \"" + key + "\" can only be used during instance " +
        'creation with the `new` keyword.'
      );
    }
    return defaultStrat(parent, child)
  };
}

/**
 * Helper that recursively merges two data objects together.
 */
function mergeData (to, from) {
  if (!from) { return to }
  var key, toVal, fromVal;

  var keys = hasSymbol
    ? Reflect.ownKeys(from)
    : Object.keys(from);

  for (var i = 0; i < keys.length; i++) {
    key = keys[i];
    // in case the object is already observed...
    if (key === '__ob__') { continue }
    toVal = to[key];
    fromVal = from[key];
    if (!hasOwn(to, key)) {
      set(to, key, fromVal);
    } else if (
      toVal !== fromVal &&
      isPlainObject(toVal) &&
      isPlainObject(fromVal)
    ) {
      mergeData(toVal, fromVal);
    }
  }
  return to
}

/**
 * Data
 */
function mergeDataOrFn (
  parentVal,
  childVal,
  vm
) {
  if (!vm) {
    // in a Vue.extend merge, both should be functions
    if (!childVal) {
      return parentVal
    }
    if (!parentVal) {
      return childVal
    }
    // when parentVal & childVal are both present,
    // we need to return a function that returns the
    // merged result of both functions... no need to
    // check if parentVal is a function here because
    // it has to be a function to pass previous merges.
    return function mergedDataFn () {
      return mergeData(
        typeof childVal === 'function' ? childVal.call(this, this) : childVal,
        typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
      )
    }
  } else {
    return function mergedInstanceDataFn () {
      // instance merge
      var instanceData = typeof childVal === 'function'
        ? childVal.call(vm, vm)
        : childVal;
      var defaultData = typeof parentVal === 'function'
        ? parentVal.call(vm, vm)
        : parentVal;
      if (instanceData) {
        return mergeData(instanceData, defaultData)
      } else {
        return defaultData
      }
    }
  }
}

strats.data = function (
  parentVal,
  childVal,
  vm
) {
  if (!vm) {
    if (childVal && typeof childVal !== 'function') {
       true && warn(
        'The "data" option should be a function ' +
        'that returns a per-instance value in component ' +
        'definitions.',
        vm
      );

      return parentVal
    }
    return mergeDataOrFn(parentVal, childVal)
  }

  return mergeDataOrFn(parentVal, childVal, vm)
};

/**
 * Hooks and props are merged as arrays.
 */
function mergeHook (
  parentVal,
  childVal
) {
  var res = childVal
    ? parentVal
      ? parentVal.concat(childVal)
      : Array.isArray(childVal)
        ? childVal
        : [childVal]
    : parentVal;
  return res
    ? dedupeHooks(res)
    : res
}

function dedupeHooks (hooks) {
  var res = [];
  for (var i = 0; i < hooks.length; i++) {
    if (res.indexOf(hooks[i]) === -1) {
      res.push(hooks[i]);
    }
  }
  return res
}

LIFECYCLE_HOOKS.forEach(function (hook) {
  strats[hook] = mergeHook;
});

/**
 * Assets
 *
 * When a vm is present (instance creation), we need to do
 * a three-way merge between constructor options, instance
 * options and parent options.
 */
function mergeAssets (
  parentVal,
  childVal,
  vm,
  key
) {
  var res = Object.create(parentVal || null);
  if (childVal) {
     true && assertObjectType(key, childVal, vm);
    return extend(res, childVal)
  } else {
    return res
  }
}

ASSET_TYPES.forEach(function (type) {
  strats[type + 's'] = mergeAssets;
});

/**
 * Watchers.
 *
 * Watchers hashes should not overwrite one
 * another, so we merge them as arrays.
 */
strats.watch = function (
  parentVal,
  childVal,
  vm,
  key
) {
  // work around Firefox's Object.prototype.watch...
  if (parentVal === nativeWatch) { parentVal = undefined; }
  if (childVal === nativeWatch) { childVal = undefined; }
  /* istanbul ignore if */
  if (!childVal) { return Object.create(parentVal || null) }
  if (true) {
    assertObjectType(key, childVal, vm);
  }
  if (!parentVal) { return childVal }
  var ret = {};
  extend(ret, parentVal);
  for (var key$1 in childVal) {
    var parent = ret[key$1];
    var child = childVal[key$1];
    if (parent && !Array.isArray(parent)) {
      parent = [parent];
    }
    ret[key$1] = parent
      ? parent.concat(child)
      : Array.isArray(child) ? child : [child];
  }
  return ret
};

/**
 * Other object hashes.
 */
strats.props =
strats.methods =
strats.inject =
strats.computed = function (
  parentVal,
  childVal,
  vm,
  key
) {
  if (childVal && "development" !== 'production') {
    assertObjectType(key, childVal, vm);
  }
  if (!parentVal) { return childVal }
  var ret = Object.create(null);
  extend(ret, parentVal);
  if (childVal) { extend(ret, childVal); }
  return ret
};
strats.provide = mergeDataOrFn;

/**
 * Default strategy.
 */
var defaultStrat = function (parentVal, childVal) {
  return childVal === undefined
    ? parentVal
    : childVal
};

/**
 * Validate component names
 */
function checkComponents (options) {
  for (var key in options.components) {
    validateComponentName(key);
  }
}

function validateComponentName (name) {
  if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
    warn(
      'Invalid component name: "' + name + '". Component names ' +
      'should conform to valid custom element name in html5 specification.'
    );
  }
  if (isBuiltInTag(name) || config.isReservedTag(name)) {
    warn(
      'Do not use built-in or reserved HTML elements as component ' +
      'id: ' + name
    );
  }
}

/**
 * Ensure all props option syntax are normalized into the
 * Object-based format.
 */
function normalizeProps (options, vm) {
  var props = options.props;
  if (!props) { return }
  var res = {};
  var i, val, name;
  if (Array.isArray(props)) {
    i = props.length;
    while (i--) {
      val = props[i];
      if (typeof val === 'string') {
        name = camelize(val);
        res[name] = { type: null };
      } else if (true) {
        warn('props must be strings when using array syntax.');
      }
    }
  } else if (isPlainObject(props)) {
    for (var key in props) {
      val = props[key];
      name = camelize(key);
      res[name] = isPlainObject(val)
        ? val
        : { type: val };
    }
  } else if (true) {
    warn(
      "Invalid value for option \"props\": expected an Array or an Object, " +
      "but got " + (toRawType(props)) + ".",
      vm
    );
  }
  options.props = res;
}

/**
 * Normalize all injections into Object-based format
 */
function normalizeInject (options, vm) {
  var inject = options.inject;
  if (!inject) { return }
  var normalized = options.inject = {};
  if (Array.isArray(inject)) {
    for (var i = 0; i < inject.length; i++) {
      normalized[inject[i]] = { from: inject[i] };
    }
  } else if (isPlainObject(inject)) {
    for (var key in inject) {
      var val = inject[key];
      normalized[key] = isPlainObject(val)
        ? extend({ from: key }, val)
        : { from: val };
    }
  } else if (true) {
    warn(
      "Invalid value for option \"inject\": expected an Array or an Object, " +
      "but got " + (toRawType(inject)) + ".",
      vm
    );
  }
}

/**
 * Normalize raw function directives into object format.
 */
function normalizeDirectives (options) {
  var dirs = options.directives;
  if (dirs) {
    for (var key in dirs) {
      var def$$1 = dirs[key];
      if (typeof def$$1 === 'function') {
        dirs[key] = { bind: def$$1, update: def$$1 };
      }
    }
  }
}

function assertObjectType (name, value, vm) {
  if (!isPlainObject(value)) {
    warn(
      "Invalid value for option \"" + name + "\": expected an Object, " +
      "but got " + (toRawType(value)) + ".",
      vm
    );
  }
}

/**
 * Merge two option objects into a new one.
 * Core utility used in both instantiation and inheritance.
 */
function mergeOptions (
  parent,
  child,
  vm
) {
  if (true) {
    checkComponents(child);
  }

  if (typeof child === 'function') {
    child = child.options;
  }

  normalizeProps(child, vm);
  normalizeInject(child, vm);
  normalizeDirectives(child);

  // Apply extends and mixins on the child options,
  // but only if it is a raw options object that isn't
  // the result of another mergeOptions call.
  // Only merged options has the _base property.
  if (!child._base) {
    if (child.extends) {
      parent = mergeOptions(parent, child.extends, vm);
    }
    if (child.mixins) {
      for (var i = 0, l = child.mixins.length; i < l; i++) {
        parent = mergeOptions(parent, child.mixins[i], vm);
      }
    }
  }

  var options = {};
  var key;
  for (key in parent) {
    mergeField(key);
  }
  for (key in child) {
    if (!hasOwn(parent, key)) {
      mergeField(key);
    }
  }
  function mergeField (key) {
    var strat = strats[key] || defaultStrat;
    options[key] = strat(parent[key], child[key], vm, key);
  }
  return options
}

/**
 * Resolve an asset.
 * This function is used because child instances need access
 * to assets defined in its ancestor chain.
 */
function resolveAsset (
  options,
  type,
  id,
  warnMissing
) {
  /* istanbul ignore if */
  if (typeof id !== 'string') {
    return
  }
  var assets = options[type];
  // check local registration variations first
  if (hasOwn(assets, id)) { return assets[id] }
  var camelizedId = camelize(id);
  if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  var PascalCaseId = capitalize(camelizedId);
  if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  // fallback to prototype chain
  var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  if ( true && warnMissing && !res) {
    warn(
      'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
      options
    );
  }
  return res
}

/*  */



function validateProp (
  key,
  propOptions,
  propsData,
  vm
) {
  var prop = propOptions[key];
  var absent = !hasOwn(propsData, key);
  var value = propsData[key];
  // boolean casting
  var booleanIndex = getTypeIndex(Boolean, prop.type);
  if (booleanIndex > -1) {
    if (absent && !hasOwn(prop, 'default')) {
      value = false;
    } else if (value === '' || value === hyphenate(key)) {
      // only cast empty string / same name to boolean if
      // boolean has higher priority
      var stringIndex = getTypeIndex(String, prop.type);
      if (stringIndex < 0 || booleanIndex < stringIndex) {
        value = true;
      }
    }
  }
  // check default value
  if (value === undefined) {
    value = getPropDefaultValue(vm, prop, key);
    // since the default value is a fresh copy,
    // make sure to observe it.
    var prevShouldObserve = shouldObserve;
    toggleObserving(true);
    observe(value);
    toggleObserving(prevShouldObserve);
  }
  if (
    true
  ) {
    assertProp(prop, key, value, vm, absent);
  }
  return value
}

/**
 * Get the default value of a prop.
 */
function getPropDefaultValue (vm, prop, key) {
  // no default, return undefined
  if (!hasOwn(prop, 'default')) {
    return undefined
  }
  var def = prop.default;
  // warn against non-factory defaults for Object & Array
  if ( true && isObject(def)) {
    warn(
      'Invalid default value for prop "' + key + '": ' +
      'Props with type Object/Array must use a factory function ' +
      'to return the default value.',
      vm
    );
  }
  // the raw prop value was also undefined from previous render,
  // return previous default value to avoid unnecessary watcher trigger
  if (vm && vm.$options.propsData &&
    vm.$options.propsData[key] === undefined &&
    vm._props[key] !== undefined
  ) {
    return vm._props[key]
  }
  // call factory function for non-Function types
  // a value is Function if its prototype is function even across different execution context
  return typeof def === 'function' && getType(prop.type) !== 'Function'
    ? def.call(vm)
    : def
}

/**
 * Assert whether a prop is valid.
 */
function assertProp (
  prop,
  name,
  value,
  vm,
  absent
) {
  if (prop.required && absent) {
    warn(
      'Missing required prop: "' + name + '"',
      vm
    );
    return
  }
  if (value == null && !prop.required) {
    return
  }
  var type = prop.type;
  var valid = !type || type === true;
  var expectedTypes = [];
  if (type) {
    if (!Array.isArray(type)) {
      type = [type];
    }
    for (var i = 0; i < type.length && !valid; i++) {
      var assertedType = assertType(value, type[i]);
      expectedTypes.push(assertedType.expectedType || '');
      valid = assertedType.valid;
    }
  }

  if (!valid) {
    warn(
      getInvalidTypeMessage(name, value, expectedTypes),
      vm
    );
    return
  }
  var validator = prop.validator;
  if (validator) {
    if (!validator(value)) {
      warn(
        'Invalid prop: custom validator check failed for prop "' + name + '".',
        vm
      );
    }
  }
}

var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;

function assertType (value, type) {
  var valid;
  var expectedType = getType(type);
  if (simpleCheckRE.test(expectedType)) {
    var t = typeof value;
    valid = t === expectedType.toLowerCase();
    // for primitive wrapper objects
    if (!valid && t === 'object') {
      valid = value instanceof type;
    }
  } else if (expectedType === 'Object') {
    valid = isPlainObject(value);
  } else if (expectedType === 'Array') {
    valid = Array.isArray(value);
  } else {
    valid = value instanceof type;
  }
  return {
    valid: valid,
    expectedType: expectedType
  }
}

/**
 * Use function string name to check built-in types,
 * because a simple equality check will fail when running
 * across different vms / iframes.
 */
function getType (fn) {
  var match = fn && fn.toString().match(/^\s*function (\w+)/);
  return match ? match[1] : ''
}

function isSameType (a, b) {
  return getType(a) === getType(b)
}

function getTypeIndex (type, expectedTypes) {
  if (!Array.isArray(expectedTypes)) {
    return isSameType(expectedTypes, type) ? 0 : -1
  }
  for (var i = 0, len = expectedTypes.length; i < len; i++) {
    if (isSameType(expectedTypes[i], type)) {
      return i
    }
  }
  return -1
}

function getInvalidTypeMessage (name, value, expectedTypes) {
  var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
    " Expected " + (expectedTypes.map(capitalize).join(', '));
  var expectedType = expectedTypes[0];
  var receivedType = toRawType(value);
  var expectedValue = styleValue(value, expectedType);
  var receivedValue = styleValue(value, receivedType);
  // check if we need to specify expected value
  if (expectedTypes.length === 1 &&
      isExplicable(expectedType) &&
      !isBoolean(expectedType, receivedType)) {
    message += " with value " + expectedValue;
  }
  message += ", got " + receivedType + " ";
  // check if we need to specify received value
  if (isExplicable(receivedType)) {
    message += "with value " + receivedValue + ".";
  }
  return message
}

function styleValue (value, type) {
  if (type === 'String') {
    return ("\"" + value + "\"")
  } else if (type === 'Number') {
    return ("" + (Number(value)))
  } else {
    return ("" + value)
  }
}

function isExplicable (value) {
  var explicitTypes = ['string', 'number', 'boolean'];
  return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
}

function isBoolean () {
  var args = [], len = arguments.length;
  while ( len-- ) args[ len ] = arguments[ len ];

  return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
}

/*  */

function handleError (err, vm, info) {
  // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  // See: https://github.com/vuejs/vuex/issues/1505
  pushTarget();
  try {
    if (vm) {
      var cur = vm;
      while ((cur = cur.$parent)) {
        var hooks = cur.$options.errorCaptured;
        if (hooks) {
          for (var i = 0; i < hooks.length; i++) {
            try {
              var capture = hooks[i].call(cur, err, vm, info) === false;
              if (capture) { return }
            } catch (e) {
              globalHandleError(e, cur, 'errorCaptured hook');
            }
          }
        }
      }
    }
    globalHandleError(err, vm, info);
  } finally {
    popTarget();
  }
}

function invokeWithErrorHandling (
  handler,
  context,
  args,
  vm,
  info
) {
  var res;
  try {
    res = args ? handler.apply(context, args) : handler.call(context);
    if (res && !res._isVue && isPromise(res) && !res._handled) {
      res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
      // issue #9511
      // avoid catch triggering multiple times when nested calls
      res._handled = true;
    }
  } catch (e) {
    handleError(e, vm, info);
  }
  return res
}

function globalHandleError (err, vm, info) {
  if (config.errorHandler) {
    try {
      return config.errorHandler.call(null, err, vm, info)
    } catch (e) {
      // if the user intentionally throws the original error in the handler,
      // do not log it twice
      if (e !== err) {
        logError(e, null, 'config.errorHandler');
      }
    }
  }
  logError(err, vm, info);
}

function logError (err, vm, info) {
  if (true) {
    warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  }
  /* istanbul ignore else */
  if ((inBrowser || inWeex) && typeof console !== 'undefined') {
    console.error(err);
  } else {
    throw err
  }
}

/*  */

var callbacks = [];
var pending = false;

function flushCallbacks () {
  pending = false;
  var copies = callbacks.slice(0);
  callbacks.length = 0;
  for (var i = 0; i < copies.length; i++) {
    copies[i]();
  }
}

// Here we have async deferring wrappers using microtasks.
// In 2.5 we used (macro) tasks (in combination with microtasks).
// However, it has subtle problems when state is changed right before repaint
// (e.g. #6813, out-in transitions).
// Also, using (macro) tasks in event handler would cause some weird behaviors
// that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
// So we now use microtasks everywhere, again.
// A major drawback of this tradeoff is that there are some scenarios
// where microtasks have too high a priority and fire in between supposedly
// sequential events (e.g. #4521, #6690, which have workarounds)
// or even between bubbling of the same event (#6566).
var timerFunc;

// The nextTick behavior leverages the microtask queue, which can be accessed
// via either native Promise.then or MutationObserver.
// MutationObserver has wider support, however it is seriously bugged in
// UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
// completely stops working after triggering a few times... so, if native
// Promise is available, we will use it:
/* istanbul ignore next, $flow-disable-line */
if (typeof Promise !== 'undefined' && isNative(Promise)) {
  var p = Promise.resolve();
  timerFunc = function () {
    p.then(flushCallbacks);
    // In problematic UIWebViews, Promise.then doesn't completely break, but
    // it can get stuck in a weird state where callbacks are pushed into the
    // microtask queue but the queue isn't being flushed, until the browser
    // needs to do some other work, e.g. handle a timer. Therefore we can
    // "force" the microtask queue to be flushed by adding an empty timer.
    if (isIOS) { setTimeout(noop); }
  };
} else if (!isIE && typeof MutationObserver !== 'undefined' && (
  isNative(MutationObserver) ||
  // PhantomJS and iOS 7.x
  MutationObserver.toString() === '[object MutationObserverConstructor]'
)) {
  // Use MutationObserver where native Promise is not available,
  // e.g. PhantomJS, iOS7, Android 4.4
  // (#6466 MutationObserver is unreliable in IE11)
  var counter = 1;
  var observer = new MutationObserver(flushCallbacks);
  var textNode = document.createTextNode(String(counter));
  observer.observe(textNode, {
    characterData: true
  });
  timerFunc = function () {
    counter = (counter + 1) % 2;
    textNode.data = String(counter);
  };
} else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  // Fallback to setImmediate.
  // Technically it leverages the (macro) task queue,
  // but it is still a better choice than setTimeout.
  timerFunc = function () {
    setImmediate(flushCallbacks);
  };
} else {
  // Fallback to setTimeout.
  timerFunc = function () {
    setTimeout(flushCallbacks, 0);
  };
}

function nextTick (cb, ctx) {
  var _resolve;
  callbacks.push(function () {
    if (cb) {
      try {
        cb.call(ctx);
      } catch (e) {
        handleError(e, ctx, 'nextTick');
      }
    } else if (_resolve) {
      _resolve(ctx);
    }
  });
  if (!pending) {
    pending = true;
    timerFunc();
  }
  // $flow-disable-line
  if (!cb && typeof Promise !== 'undefined') {
    return new Promise(function (resolve) {
      _resolve = resolve;
    })
  }
}

/*  */

/* not type checking this file because flow doesn't play well with Proxy */

var initProxy;

if (true) {
  var allowedGlobals = makeMap(
    'Infinity,undefined,NaN,isFinite,isNaN,' +
    'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
    'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
    'require' // for Webpack/Browserify
  );

  var warnNonPresent = function (target, key) {
    warn(
      "Property or method \"" + key + "\" is not defined on the instance but " +
      'referenced during render. Make sure that this property is reactive, ' +
      'either in the data option, or for class-based components, by ' +
      'initializing the property. ' +
      'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
      target
    );
  };

  var warnReservedPrefix = function (target, key) {
    warn(
      "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
      'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
      'prevent conflicts with Vue internals. ' +
      'See: https://vuejs.org/v2/api/#data',
      target
    );
  };

  var hasProxy =
    typeof Proxy !== 'undefined' && isNative(Proxy);

  if (hasProxy) {
    var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
    config.keyCodes = new Proxy(config.keyCodes, {
      set: function set (target, key, value) {
        if (isBuiltInModifier(key)) {
          warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
          return false
        } else {
          target[key] = value;
          return true
        }
      }
    });
  }

  var hasHandler = {
    has: function has (target, key) {
      var has = key in target;
      var isAllowed = allowedGlobals(key) ||
        (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
      if (!has && !isAllowed) {
        if (key in target.$data) { warnReservedPrefix(target, key); }
        else { warnNonPresent(target, key); }
      }
      return has || !isAllowed
    }
  };

  var getHandler = {
    get: function get (target, key) {
      if (typeof key === 'string' && !(key in target)) {
        if (key in target.$data) { warnReservedPrefix(target, key); }
        else { warnNonPresent(target, key); }
      }
      return target[key]
    }
  };

  initProxy = function initProxy (vm) {
    if (hasProxy) {
      // determine which proxy handler to use
      var options = vm.$options;
      var handlers = options.render && options.render._withStripped
        ? getHandler
        : hasHandler;
      vm._renderProxy = new Proxy(vm, handlers);
    } else {
      vm._renderProxy = vm;
    }
  };
}

/*  */

var seenObjects = new _Set();

/**
 * Recursively traverse an object to evoke all converted
 * getters, so that every nested property inside the object
 * is collected as a "deep" dependency.
 */
function traverse (val) {
  _traverse(val, seenObjects);
  seenObjects.clear();
}

function _traverse (val, seen) {
  var i, keys;
  var isA = Array.isArray(val);
  if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
    return
  }
  if (val.__ob__) {
    var depId = val.__ob__.dep.id;
    if (seen.has(depId)) {
      return
    }
    seen.add(depId);
  }
  if (isA) {
    i = val.length;
    while (i--) { _traverse(val[i], seen); }
  } else {
    keys = Object.keys(val);
    i = keys.length;
    while (i--) { _traverse(val[keys[i]], seen); }
  }
}

var mark;
var measure;

if (true) {
  var perf = inBrowser && window.performance;
  /* istanbul ignore if */
  if (
    perf &&
    perf.mark &&
    perf.measure &&
    perf.clearMarks &&
    perf.clearMeasures
  ) {
    mark = function (tag) { return perf.mark(tag); };
    measure = function (name, startTag, endTag) {
      perf.measure(name, startTag, endTag);
      perf.clearMarks(startTag);
      perf.clearMarks(endTag);
      // perf.clearMeasures(name)
    };
  }
}

/*  */

var normalizeEvent = cached(function (name) {
  var passive = name.charAt(0) === '&';
  name = passive ? name.slice(1) : name;
  var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  name = once$$1 ? name.slice(1) : name;
  var capture = name.charAt(0) === '!';
  name = capture ? name.slice(1) : name;
  return {
    name: name,
    once: once$$1,
    capture: capture,
    passive: passive
  }
});

function createFnInvoker (fns, vm) {
  function invoker () {
    var arguments$1 = arguments;

    var fns = invoker.fns;
    if (Array.isArray(fns)) {
      var cloned = fns.slice();
      for (var i = 0; i < cloned.length; i++) {
        invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
      }
    } else {
      // return handler return value for single handlers
      return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
    }
  }
  invoker.fns = fns;
  return invoker
}

function updateListeners (
  on,
  oldOn,
  add,
  remove$$1,
  createOnceHandler,
  vm
) {
  var name, def$$1, cur, old, event;
  for (name in on) {
    def$$1 = cur = on[name];
    old = oldOn[name];
    event = normalizeEvent(name);
    if (isUndef(cur)) {
       true && warn(
        "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
        vm
      );
    } else if (isUndef(old)) {
      if (isUndef(cur.fns)) {
        cur = on[name] = createFnInvoker(cur, vm);
      }
      if (isTrue(event.once)) {
        cur = on[name] = createOnceHandler(event.name, cur, event.capture);
      }
      add(event.name, cur, event.capture, event.passive, event.params);
    } else if (cur !== old) {
      old.fns = cur;
      on[name] = old;
    }
  }
  for (name in oldOn) {
    if (isUndef(on[name])) {
      event = normalizeEvent(name);
      remove$$1(event.name, oldOn[name], event.capture);
    }
  }
}

/*  */

/*  */

// fixed by xxxxxx (mp properties)
function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  if (isUndef(propOptions)) {
    return res
  }
  var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  var attrs = data.attrs;
  var props = data.props;
  if (isDef(attrs) || isDef(props)) {
    for (var key in propOptions) {
      var altKey = hyphenate(key);
      var result = checkProp(res, props, key, altKey, true) ||
          checkProp(res, attrs, key, altKey, false);
      // externalClass
      if (
        result &&
        res[key] &&
        externalClasses.indexOf(altKey) !== -1 &&
        context[camelize(res[key])]
      ) {
        // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
        res[key] = context[camelize(res[key])];
      }
    }
  }
  return res
}

function extractPropsFromVNodeData (
  data,
  Ctor,
  tag,
  context// fixed by xxxxxx
) {
  // we are only extracting raw values here.
  // validation and default values are handled in the child
  // component itself.
  var propOptions = Ctor.options.props;
  if (isUndef(propOptions)) {
    // fixed by xxxxxx
    return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  }
  var res = {};
  var attrs = data.attrs;
  var props = data.props;
  if (isDef(attrs) || isDef(props)) {
    for (var key in propOptions) {
      var altKey = hyphenate(key);
      if (true) {
        var keyInLowerCase = key.toLowerCase();
        if (
          key !== keyInLowerCase &&
          attrs && hasOwn(attrs, keyInLowerCase)
        ) {
          tip(
            "Prop \"" + keyInLowerCase + "\" is passed to component " +
            (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
            " \"" + key + "\". " +
            "Note that HTML attributes are case-insensitive and camelCased " +
            "props need to use their kebab-case equivalents when using in-DOM " +
            "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
          );
        }
      }
      checkProp(res, props, key, altKey, true) ||
      checkProp(res, attrs, key, altKey, false);
    }
  }
  // fixed by xxxxxx
  return extractPropertiesFromVNodeData(data, Ctor, res, context)
}

function checkProp (
  res,
  hash,
  key,
  altKey,
  preserve
) {
  if (isDef(hash)) {
    if (hasOwn(hash, key)) {
      res[key] = hash[key];
      if (!preserve) {
        delete hash[key];
      }
      return true
    } else if (hasOwn(hash, altKey)) {
      res[key] = hash[altKey];
      if (!preserve) {
        delete hash[altKey];
      }
      return true
    }
  }
  return false
}

/*  */

// The template compiler attempts to minimize the need for normalization by
// statically analyzing the template at compile time.
//
// For plain HTML markup, normalization can be completely skipped because the
// generated render function is guaranteed to return Array<VNode>. There are
// two cases where extra normalization is needed:

// 1. When the children contains components - because a functional component
// may return an Array instead of a single root. In this case, just a simple
// normalization is needed - if any child is an Array, we flatten the whole
// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
// because functional components already normalize their own children.
function simpleNormalizeChildren (children) {
  for (var i = 0; i < children.length; i++) {
    if (Array.isArray(children[i])) {
      return Array.prototype.concat.apply([], children)
    }
  }
  return children
}

// 2. When the children contains constructs that always generated nested Arrays,
// e.g. <template>, <slot>, v-for, or when the children is provided by user
// with hand-written render functions / JSX. In such cases a full normalization
// is needed to cater to all possible types of children values.
function normalizeChildren (children) {
  return isPrimitive(children)
    ? [createTextVNode(children)]
    : Array.isArray(children)
      ? normalizeArrayChildren(children)
      : undefined
}

function isTextNode (node) {
  return isDef(node) && isDef(node.text) && isFalse(node.isComment)
}

function normalizeArrayChildren (children, nestedIndex) {
  var res = [];
  var i, c, lastIndex, last;
  for (i = 0; i < children.length; i++) {
    c = children[i];
    if (isUndef(c) || typeof c === 'boolean') { continue }
    lastIndex = res.length - 1;
    last = res[lastIndex];
    //  nested
    if (Array.isArray(c)) {
      if (c.length > 0) {
        c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
        // merge adjacent text nodes
        if (isTextNode(c[0]) && isTextNode(last)) {
          res[lastIndex] = createTextVNode(last.text + (c[0]).text);
          c.shift();
        }
        res.push.apply(res, c);
      }
    } else if (isPrimitive(c)) {
      if (isTextNode(last)) {
        // merge adjacent text nodes
        // this is necessary for SSR hydration because text nodes are
        // essentially merged when rendered to HTML strings
        res[lastIndex] = createTextVNode(last.text + c);
      } else if (c !== '') {
        // convert primitive to vnode
        res.push(createTextVNode(c));
      }
    } else {
      if (isTextNode(c) && isTextNode(last)) {
        // merge adjacent text nodes
        res[lastIndex] = createTextVNode(last.text + c.text);
      } else {
        // default key for nested array children (likely generated by v-for)
        if (isTrue(children._isVList) &&
          isDef(c.tag) &&
          isUndef(c.key) &&
          isDef(nestedIndex)) {
          c.key = "__vlist" + nestedIndex + "_" + i + "__";
        }
        res.push(c);
      }
    }
  }
  return res
}

/*  */

function initProvide (vm) {
  var provide = vm.$options.provide;
  if (provide) {
    vm._provided = typeof provide === 'function'
      ? provide.call(vm)
      : provide;
  }
}

function initInjections (vm) {
  var result = resolveInject(vm.$options.inject, vm);
  if (result) {
    toggleObserving(false);
    Object.keys(result).forEach(function (key) {
      /* istanbul ignore else */
      if (true) {
        defineReactive$$1(vm, key, result[key], function () {
          warn(
            "Avoid mutating an injected value directly since the changes will be " +
            "overwritten whenever the provided component re-renders. " +
            "injection being mutated: \"" + key + "\"",
            vm
          );
        });
      } else {}
    });
    toggleObserving(true);
  }
}

function resolveInject (inject, vm) {
  if (inject) {
    // inject is :any because flow is not smart enough to figure out cached
    var result = Object.create(null);
    var keys = hasSymbol
      ? Reflect.ownKeys(inject)
      : Object.keys(inject);

    for (var i = 0; i < keys.length; i++) {
      var key = keys[i];
      // #6574 in case the inject object is observed...
      if (key === '__ob__') { continue }
      var provideKey = inject[key].from;
      var source = vm;
      while (source) {
        if (source._provided && hasOwn(source._provided, provideKey)) {
          result[key] = source._provided[provideKey];
          break
        }
        source = source.$parent;
      }
      if (!source) {
        if ('default' in inject[key]) {
          var provideDefault = inject[key].default;
          result[key] = typeof provideDefault === 'function'
            ? provideDefault.call(vm)
            : provideDefault;
        } else if (true) {
          warn(("Injection \"" + key + "\" not found"), vm);
        }
      }
    }
    return result
  }
}

/*  */



/**
 * Runtime helper for resolving raw children VNodes into a slot object.
 */
function resolveSlots (
  children,
  context
) {
  if (!children || !children.length) {
    return {}
  }
  var slots = {};
  for (var i = 0, l = children.length; i < l; i++) {
    var child = children[i];
    var data = child.data;
    // remove slot attribute if the node is resolved as a Vue slot node
    if (data && data.attrs && data.attrs.slot) {
      delete data.attrs.slot;
    }
    // named slots should only be respected if the vnode was rendered in the
    // same context.
    if ((child.context === context || child.fnContext === context) &&
      data && data.slot != null
    ) {
      var name = data.slot;
      var slot = (slots[name] || (slots[name] = []));
      if (child.tag === 'template') {
        slot.push.apply(slot, child.children || []);
      } else {
        slot.push(child);
      }
    } else {
      // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
      if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
        (slots['page'] || (slots['page'] = [])).push(child);
      }else{
        (slots.default || (slots.default = [])).push(child);
      }
    }
  }
  // ignore slots that contains only whitespace
  for (var name$1 in slots) {
    if (slots[name$1].every(isWhitespace)) {
      delete slots[name$1];
    }
  }
  return slots
}

function isWhitespace (node) {
  return (node.isComment && !node.asyncFactory) || node.text === ' '
}

/*  */

function normalizeScopedSlots (
  slots,
  normalSlots,
  prevSlots
) {
  var res;
  var hasNormalSlots = Object.keys(normalSlots).length > 0;
  var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  var key = slots && slots.$key;
  if (!slots) {
    res = {};
  } else if (slots._normalized) {
    // fast path 1: child component re-render only, parent did not change
    return slots._normalized
  } else if (
    isStable &&
    prevSlots &&
    prevSlots !== emptyObject &&
    key === prevSlots.$key &&
    !hasNormalSlots &&
    !prevSlots.$hasNormal
  ) {
    // fast path 2: stable scoped slots w/ no normal slots to proxy,
    // only need to normalize once
    return prevSlots
  } else {
    res = {};
    for (var key$1 in slots) {
      if (slots[key$1] && key$1[0] !== '$') {
        res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
      }
    }
  }
  // expose normal slots on scopedSlots
  for (var key$2 in normalSlots) {
    if (!(key$2 in res)) {
      res[key$2] = proxyNormalSlot(normalSlots, key$2);
    }
  }
  // avoriaz seems to mock a non-extensible $scopedSlots object
  // and when that is passed down this would cause an error
  if (slots && Object.isExtensible(slots)) {
    (slots)._normalized = res;
  }
  def(res, '$stable', isStable);
  def(res, '$key', key);
  def(res, '$hasNormal', hasNormalSlots);
  return res
}

function normalizeScopedSlot(normalSlots, key, fn) {
  var normalized = function () {
    var res = arguments.length ? fn.apply(null, arguments) : fn({});
    res = res && typeof res === 'object' && !Array.isArray(res)
      ? [res] // single vnode
      : normalizeChildren(res);
    return res && (
      res.length === 0 ||
      (res.length === 1 && res[0].isComment) // #9658
    ) ? undefined
      : res
  };
  // this is a slot using the new v-slot syntax without scope. although it is
  // compiled as a scoped slot, render fn users would expect it to be present
  // on this.$slots because the usage is semantically a normal slot.
  if (fn.proxy) {
    Object.defineProperty(normalSlots, key, {
      get: normalized,
      enumerable: true,
      configurable: true
    });
  }
  return normalized
}

function proxyNormalSlot(slots, key) {
  return function () { return slots[key]; }
}

/*  */

/**
 * Runtime helper for rendering v-for lists.
 */
function renderList (
  val,
  render
) {
  var ret, i, l, keys, key;
  if (Array.isArray(val) || typeof val === 'string') {
    ret = new Array(val.length);
    for (i = 0, l = val.length; i < l; i++) {
      ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
    }
  } else if (typeof val === 'number') {
    ret = new Array(val);
    for (i = 0; i < val; i++) {
      ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
    }
  } else if (isObject(val)) {
    if (hasSymbol && val[Symbol.iterator]) {
      ret = [];
      var iterator = val[Symbol.iterator]();
      var result = iterator.next();
      while (!result.done) {
        ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
        result = iterator.next();
      }
    } else {
      keys = Object.keys(val);
      ret = new Array(keys.length);
      for (i = 0, l = keys.length; i < l; i++) {
        key = keys[i];
        ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
      }
    }
  }
  if (!isDef(ret)) {
    ret = [];
  }
  (ret)._isVList = true;
  return ret
}

/*  */

/**
 * Runtime helper for rendering <slot>
 */
function renderSlot (
  name,
  fallback,
  props,
  bindObject
) {
  var scopedSlotFn = this.$scopedSlots[name];
  var nodes;
  if (scopedSlotFn) { // scoped slot
    props = props || {};
    if (bindObject) {
      if ( true && !isObject(bindObject)) {
        warn(
          'slot v-bind without argument expects an Object',
          this
        );
      }
      props = extend(extend({}, bindObject), props);
    }
    // fixed by xxxxxx app-plus scopedSlot
    nodes = scopedSlotFn(props, this, props._i) || fallback;
  } else {
    nodes = this.$slots[name] || fallback;
  }

  var target = props && props.slot;
  if (target) {
    return this.$createElement('template', { slot: target }, nodes)
  } else {
    return nodes
  }
}

/*  */

/**
 * Runtime helper for resolving filters
 */
function resolveFilter (id) {
  return resolveAsset(this.$options, 'filters', id, true) || identity
}

/*  */

function isKeyNotMatch (expect, actual) {
  if (Array.isArray(expect)) {
    return expect.indexOf(actual) === -1
  } else {
    return expect !== actual
  }
}

/**
 * Runtime helper for checking keyCodes from config.
 * exposed as Vue.prototype._k
 * passing in eventKeyName as last argument separately for backwards compat
 */
function checkKeyCodes (
  eventKeyCode,
  key,
  builtInKeyCode,
  eventKeyName,
  builtInKeyName
) {
  var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
    return isKeyNotMatch(builtInKeyName, eventKeyName)
  } else if (mappedKeyCode) {
    return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  } else if (eventKeyName) {
    return hyphenate(eventKeyName) !== key
  }
}

/*  */

/**
 * Runtime helper for merging v-bind="object" into a VNode's data.
 */
function bindObjectProps (
  data,
  tag,
  value,
  asProp,
  isSync
) {
  if (value) {
    if (!isObject(value)) {
       true && warn(
        'v-bind without argument expects an Object or Array value',
        this
      );
    } else {
      if (Array.isArray(value)) {
        value = toObject(value);
      }
      var hash;
      var loop = function ( key ) {
        if (
          key === 'class' ||
          key === 'style' ||
          isReservedAttribute(key)
        ) {
          hash = data;
        } else {
          var type = data.attrs && data.attrs.type;
          hash = asProp || config.mustUseProp(tag, type, key)
            ? data.domProps || (data.domProps = {})
            : data.attrs || (data.attrs = {});
        }
        var camelizedKey = camelize(key);
        var hyphenatedKey = hyphenate(key);
        if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
          hash[key] = value[key];

          if (isSync) {
            var on = data.on || (data.on = {});
            on[("update:" + key)] = function ($event) {
              value[key] = $event;
            };
          }
        }
      };

      for (var key in value) loop( key );
    }
  }
  return data
}

/*  */

/**
 * Runtime helper for rendering static trees.
 */
function renderStatic (
  index,
  isInFor
) {
  var cached = this._staticTrees || (this._staticTrees = []);
  var tree = cached[index];
  // if has already-rendered static tree and not inside v-for,
  // we can reuse the same tree.
  if (tree && !isInFor) {
    return tree
  }
  // otherwise, render a fresh tree.
  tree = cached[index] = this.$options.staticRenderFns[index].call(
    this._renderProxy,
    null,
    this // for render fns generated for functional component templates
  );
  markStatic(tree, ("__static__" + index), false);
  return tree
}

/**
 * Runtime helper for v-once.
 * Effectively it means marking the node as static with a unique key.
 */
function markOnce (
  tree,
  index,
  key
) {
  markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  return tree
}

function markStatic (
  tree,
  key,
  isOnce
) {
  if (Array.isArray(tree)) {
    for (var i = 0; i < tree.length; i++) {
      if (tree[i] && typeof tree[i] !== 'string') {
        markStaticNode(tree[i], (key + "_" + i), isOnce);
      }
    }
  } else {
    markStaticNode(tree, key, isOnce);
  }
}

function markStaticNode (node, key, isOnce) {
  node.isStatic = true;
  node.key = key;
  node.isOnce = isOnce;
}

/*  */

function bindObjectListeners (data, value) {
  if (value) {
    if (!isPlainObject(value)) {
       true && warn(
        'v-on without argument expects an Object value',
        this
      );
    } else {
      var on = data.on = data.on ? extend({}, data.on) : {};
      for (var key in value) {
        var existing = on[key];
        var ours = value[key];
        on[key] = existing ? [].concat(existing, ours) : ours;
      }
    }
  }
  return data
}

/*  */

function resolveScopedSlots (
  fns, // see flow/vnode
  res,
  // the following are added in 2.6
  hasDynamicKeys,
  contentHashKey
) {
  res = res || { $stable: !hasDynamicKeys };
  for (var i = 0; i < fns.length; i++) {
    var slot = fns[i];
    if (Array.isArray(slot)) {
      resolveScopedSlots(slot, res, hasDynamicKeys);
    } else if (slot) {
      // marker for reverse proxying v-slot without scope on this.$slots
      if (slot.proxy) {
        slot.fn.proxy = true;
      }
      res[slot.key] = slot.fn;
    }
  }
  if (contentHashKey) {
    (res).$key = contentHashKey;
  }
  return res
}

/*  */

function bindDynamicKeys (baseObj, values) {
  for (var i = 0; i < values.length; i += 2) {
    var key = values[i];
    if (typeof key === 'string' && key) {
      baseObj[values[i]] = values[i + 1];
    } else if ( true && key !== '' && key !== null) {
      // null is a special value for explicitly removing a binding
      warn(
        ("Invalid value for dynamic directive argument (expected string or null): " + key),
        this
      );
    }
  }
  return baseObj
}

// helper to dynamically append modifier runtime markers to event names.
// ensure only append when value is already string, otherwise it will be cast
// to string and cause the type check to miss.
function prependModifier (value, symbol) {
  return typeof value === 'string' ? symbol + value : value
}

/*  */

function installRenderHelpers (target) {
  target._o = markOnce;
  target._n = toNumber;
  target._s = toString;
  target._l = renderList;
  target._t = renderSlot;
  target._q = looseEqual;
  target._i = looseIndexOf;
  target._m = renderStatic;
  target._f = resolveFilter;
  target._k = checkKeyCodes;
  target._b = bindObjectProps;
  target._v = createTextVNode;
  target._e = createEmptyVNode;
  target._u = resolveScopedSlots;
  target._g = bindObjectListeners;
  target._d = bindDynamicKeys;
  target._p = prependModifier;
}

/*  */

function FunctionalRenderContext (
  data,
  props,
  children,
  parent,
  Ctor
) {
  var this$1 = this;

  var options = Ctor.options;
  // ensure the createElement function in functional components
  // gets a unique context - this is necessary for correct named slot check
  var contextVm;
  if (hasOwn(parent, '_uid')) {
    contextVm = Object.create(parent);
    // $flow-disable-line
    contextVm._original = parent;
  } else {
    // the context vm passed in is a functional context as well.
    // in this case we want to make sure we are able to get a hold to the
    // real context instance.
    contextVm = parent;
    // $flow-disable-line
    parent = parent._original;
  }
  var isCompiled = isTrue(options._compiled);
  var needNormalization = !isCompiled;

  this.data = data;
  this.props = props;
  this.children = children;
  this.parent = parent;
  this.listeners = data.on || emptyObject;
  this.injections = resolveInject(options.inject, parent);
  this.slots = function () {
    if (!this$1.$slots) {
      normalizeScopedSlots(
        data.scopedSlots,
        this$1.$slots = resolveSlots(children, parent)
      );
    }
    return this$1.$slots
  };

  Object.defineProperty(this, 'scopedSlots', ({
    enumerable: true,
    get: function get () {
      return normalizeScopedSlots(data.scopedSlots, this.slots())
    }
  }));

  // support for compiled functional template
  if (isCompiled) {
    // exposing $options for renderStatic()
    this.$options = options;
    // pre-resolve slots for renderSlot()
    this.$slots = this.slots();
    this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  }

  if (options._scopeId) {
    this._c = function (a, b, c, d) {
      var vnode = createElement(contextVm, a, b, c, d, needNormalization);
      if (vnode && !Array.isArray(vnode)) {
        vnode.fnScopeId = options._scopeId;
        vnode.fnContext = parent;
      }
      return vnode
    };
  } else {
    this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  }
}

installRenderHelpers(FunctionalRenderContext.prototype);

function createFunctionalComponent (
  Ctor,
  propsData,
  data,
  contextVm,
  children
) {
  var options = Ctor.options;
  var props = {};
  var propOptions = options.props;
  if (isDef(propOptions)) {
    for (var key in propOptions) {
      props[key] = validateProp(key, propOptions, propsData || emptyObject);
    }
  } else {
    if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
    if (isDef(data.props)) { mergeProps(props, data.props); }
  }

  var renderContext = new FunctionalRenderContext(
    data,
    props,
    children,
    contextVm,
    Ctor
  );

  var vnode = options.render.call(null, renderContext._c, renderContext);

  if (vnode instanceof VNode) {
    return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  } else if (Array.isArray(vnode)) {
    var vnodes = normalizeChildren(vnode) || [];
    var res = new Array(vnodes.length);
    for (var i = 0; i < vnodes.length; i++) {
      res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
    }
    return res
  }
}

function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  // #7817 clone node before setting fnContext, otherwise if the node is reused
  // (e.g. it was from a cached normal slot) the fnContext causes named slots
  // that should not be matched to match.
  var clone = cloneVNode(vnode);
  clone.fnContext = contextVm;
  clone.fnOptions = options;
  if (true) {
    (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  }
  if (data.slot) {
    (clone.data || (clone.data = {})).slot = data.slot;
  }
  return clone
}

function mergeProps (to, from) {
  for (var key in from) {
    to[camelize(key)] = from[key];
  }
}

/*  */

/*  */

/*  */

/*  */

// inline hooks to be invoked on component VNodes during patch
var componentVNodeHooks = {
  init: function init (vnode, hydrating) {
    if (
      vnode.componentInstance &&
      !vnode.componentInstance._isDestroyed &&
      vnode.data.keepAlive
    ) {
      // kept-alive components, treat as a patch
      var mountedNode = vnode; // work around flow
      componentVNodeHooks.prepatch(mountedNode, mountedNode);
    } else {
      var child = vnode.componentInstance = createComponentInstanceForVnode(
        vnode,
        activeInstance
      );
      child.$mount(hydrating ? vnode.elm : undefined, hydrating);
    }
  },

  prepatch: function prepatch (oldVnode, vnode) {
    var options = vnode.componentOptions;
    var child = vnode.componentInstance = oldVnode.componentInstance;
    updateChildComponent(
      child,
      options.propsData, // updated props
      options.listeners, // updated listeners
      vnode, // new parent vnode
      options.children // new children
    );
  },

  insert: function insert (vnode) {
    var context = vnode.context;
    var componentInstance = vnode.componentInstance;
    if (!componentInstance._isMounted) {
      callHook(componentInstance, 'onServiceCreated');
      callHook(componentInstance, 'onServiceAttached');
      componentInstance._isMounted = true;
      callHook(componentInstance, 'mounted');
    }
    if (vnode.data.keepAlive) {
      if (context._isMounted) {
        // vue-router#1212
        // During updates, a kept-alive component's child components may
        // change, so directly walking the tree here may call activated hooks
        // on incorrect children. Instead we push them into a queue which will
        // be processed after the whole patch process ended.
        queueActivatedComponent(componentInstance);
      } else {
        activateChildComponent(componentInstance, true /* direct */);
      }
    }
  },

  destroy: function destroy (vnode) {
    var componentInstance = vnode.componentInstance;
    if (!componentInstance._isDestroyed) {
      if (!vnode.data.keepAlive) {
        componentInstance.$destroy();
      } else {
        deactivateChildComponent(componentInstance, true /* direct */);
      }
    }
  }
};

var hooksToMerge = Object.keys(componentVNodeHooks);

function createComponent (
  Ctor,
  data,
  context,
  children,
  tag
) {
  if (isUndef(Ctor)) {
    return
  }

  var baseCtor = context.$options._base;

  // plain options object: turn it into a constructor
  if (isObject(Ctor)) {
    Ctor = baseCtor.extend(Ctor);
  }

  // if at this stage it's not a constructor or an async component factory,
  // reject.
  if (typeof Ctor !== 'function') {
    if (true) {
      warn(("Invalid Component definition: " + (String(Ctor))), context);
    }
    return
  }

  // async component
  var asyncFactory;
  if (isUndef(Ctor.cid)) {
    asyncFactory = Ctor;
    Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
    if (Ctor === undefined) {
      // return a placeholder node for async component, which is rendered
      // as a comment node but preserves all the raw information for the node.
      // the information will be used for async server-rendering and hydration.
      return createAsyncPlaceholder(
        asyncFactory,
        data,
        context,
        children,
        tag
      )
    }
  }

  data = data || {};

  // resolve constructor options in case global mixins are applied after
  // component constructor creation
  resolveConstructorOptions(Ctor);

  // transform component v-model data into props & events
  if (isDef(data.model)) {
    transformModel(Ctor.options, data);
  }

  // extract props
  var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx

  // functional component
  if (isTrue(Ctor.options.functional)) {
    return createFunctionalComponent(Ctor, propsData, data, context, children)
  }

  // extract listeners, since these needs to be treated as
  // child component listeners instead of DOM listeners
  var listeners = data.on;
  // replace with listeners with .native modifier
  // so it gets processed during parent component patch.
  data.on = data.nativeOn;

  if (isTrue(Ctor.options.abstract)) {
    // abstract components do not keep anything
    // other than props & listeners & slot

    // work around flow
    var slot = data.slot;
    data = {};
    if (slot) {
      data.slot = slot;
    }
  }

  // install component management hooks onto the placeholder node
  installComponentHooks(data);

  // return a placeholder vnode
  var name = Ctor.options.name || tag;
  var vnode = new VNode(
    ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
    data, undefined, undefined, undefined, context,
    { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
    asyncFactory
  );

  return vnode
}

function createComponentInstanceForVnode (
  vnode, // we know it's MountedComponentVNode but flow doesn't
  parent // activeInstance in lifecycle state
) {
  var options = {
    _isComponent: true,
    _parentVnode: vnode,
    parent: parent
  };
  // check inline-template render functions
  var inlineTemplate = vnode.data.inlineTemplate;
  if (isDef(inlineTemplate)) {
    options.render = inlineTemplate.render;
    options.staticRenderFns = inlineTemplate.staticRenderFns;
  }
  return new vnode.componentOptions.Ctor(options)
}

function installComponentHooks (data) {
  var hooks = data.hook || (data.hook = {});
  for (var i = 0; i < hooksToMerge.length; i++) {
    var key = hooksToMerge[i];
    var existing = hooks[key];
    var toMerge = componentVNodeHooks[key];
    if (existing !== toMerge && !(existing && existing._merged)) {
      hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
    }
  }
}

function mergeHook$1 (f1, f2) {
  var merged = function (a, b) {
    // flow complains about extra args which is why we use any
    f1(a, b);
    f2(a, b);
  };
  merged._merged = true;
  return merged
}

// transform component v-model info (value and callback) into
// prop and event handler respectively.
function transformModel (options, data) {
  var prop = (options.model && options.model.prop) || 'value';
  var event = (options.model && options.model.event) || 'input'
  ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  var on = data.on || (data.on = {});
  var existing = on[event];
  var callback = data.model.callback;
  if (isDef(existing)) {
    if (
      Array.isArray(existing)
        ? existing.indexOf(callback) === -1
        : existing !== callback
    ) {
      on[event] = [callback].concat(existing);
    }
  } else {
    on[event] = callback;
  }
}

/*  */

var SIMPLE_NORMALIZE = 1;
var ALWAYS_NORMALIZE = 2;

// wrapper function for providing a more flexible interface
// without getting yelled at by flow
function createElement (
  context,
  tag,
  data,
  children,
  normalizationType,
  alwaysNormalize
) {
  if (Array.isArray(data) || isPrimitive(data)) {
    normalizationType = children;
    children = data;
    data = undefined;
  }
  if (isTrue(alwaysNormalize)) {
    normalizationType = ALWAYS_NORMALIZE;
  }
  return _createElement(context, tag, data, children, normalizationType)
}

function _createElement (
  context,
  tag,
  data,
  children,
  normalizationType
) {
  if (isDef(data) && isDef((data).__ob__)) {
     true && warn(
      "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
      'Always create fresh vnode data objects in each render!',
      context
    );
    return createEmptyVNode()
  }
  // object syntax in v-bind
  if (isDef(data) && isDef(data.is)) {
    tag = data.is;
  }
  if (!tag) {
    // in case of component :is set to falsy value
    return createEmptyVNode()
  }
  // warn against non-primitive key
  if ( true &&
    isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  ) {
    {
      warn(
        'Avoid using non-primitive value as key, ' +
        'use string/number value instead.',
        context
      );
    }
  }
  // support single function children as default scoped slot
  if (Array.isArray(children) &&
    typeof children[0] === 'function'
  ) {
    data = data || {};
    data.scopedSlots = { default: children[0] };
    children.length = 0;
  }
  if (normalizationType === ALWAYS_NORMALIZE) {
    children = normalizeChildren(children);
  } else if (normalizationType === SIMPLE_NORMALIZE) {
    children = simpleNormalizeChildren(children);
  }
  var vnode, ns;
  if (typeof tag === 'string') {
    var Ctor;
    ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
    if (config.isReservedTag(tag)) {
      // platform built-in elements
      if ( true && isDef(data) && isDef(data.nativeOn)) {
        warn(
          ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
          context
        );
      }
      vnode = new VNode(
        config.parsePlatformTagName(tag), data, children,
        undefined, undefined, context
      );
    } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
      // component
      vnode = createComponent(Ctor, data, context, children, tag);
    } else {
      // unknown or unlisted namespaced elements
      // check at runtime because it may get assigned a namespace when its
      // parent normalizes children
      vnode = new VNode(
        tag, data, children,
        undefined, undefined, context
      );
    }
  } else {
    // direct component options / constructor
    vnode = createComponent(tag, data, context, children);
  }
  if (Array.isArray(vnode)) {
    return vnode
  } else if (isDef(vnode)) {
    if (isDef(ns)) { applyNS(vnode, ns); }
    if (isDef(data)) { registerDeepBindings(data); }
    return vnode
  } else {
    return createEmptyVNode()
  }
}

function applyNS (vnode, ns, force) {
  vnode.ns = ns;
  if (vnode.tag === 'foreignObject') {
    // use default namespace inside foreignObject
    ns = undefined;
    force = true;
  }
  if (isDef(vnode.children)) {
    for (var i = 0, l = vnode.children.length; i < l; i++) {
      var child = vnode.children[i];
      if (isDef(child.tag) && (
        isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
        applyNS(child, ns, force);
      }
    }
  }
}

// ref #5318
// necessary to ensure parent re-render when deep bindings like :style and
// :class are used on slot nodes
function registerDeepBindings (data) {
  if (isObject(data.style)) {
    traverse(data.style);
  }
  if (isObject(data.class)) {
    traverse(data.class);
  }
}

/*  */

function initRender (vm) {
  vm._vnode = null; // the root of the child tree
  vm._staticTrees = null; // v-once cached trees
  var options = vm.$options;
  var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  var renderContext = parentVnode && parentVnode.context;
  vm.$slots = resolveSlots(options._renderChildren, renderContext);
  vm.$scopedSlots = emptyObject;
  // bind the createElement fn to this instance
  // so that we get proper render context inside it.
  // args order: tag, data, children, normalizationType, alwaysNormalize
  // internal version is used by render functions compiled from templates
  vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  // normalization is always applied for the public version, used in
  // user-written render functions.
  vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };

  // $attrs & $listeners are exposed for easier HOC creation.
  // they need to be reactive so that HOCs using them are always updated
  var parentData = parentVnode && parentVnode.data;

  /* istanbul ignore else */
  if (true) {
    defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
      !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
    }, true);
    defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
      !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
    }, true);
  } else {}
}

var currentRenderingInstance = null;

function renderMixin (Vue) {
  // install runtime convenience helpers
  installRenderHelpers(Vue.prototype);

  Vue.prototype.$nextTick = function (fn) {
    return nextTick(fn, this)
  };

  Vue.prototype._render = function () {
    var vm = this;
    var ref = vm.$options;
    var render = ref.render;
    var _parentVnode = ref._parentVnode;

    if (_parentVnode) {
      vm.$scopedSlots = normalizeScopedSlots(
        _parentVnode.data.scopedSlots,
        vm.$slots,
        vm.$scopedSlots
      );
    }

    // set parent vnode. this allows render functions to have access
    // to the data on the placeholder node.
    vm.$vnode = _parentVnode;
    // render self
    var vnode;
    try {
      // There's no need to maintain a stack because all render fns are called
      // separately from one another. Nested component's render fns are called
      // when parent component is patched.
      currentRenderingInstance = vm;
      vnode = render.call(vm._renderProxy, vm.$createElement);
    } catch (e) {
      handleError(e, vm, "render");
      // return error render result,
      // or previous vnode to prevent render error causing blank component
      /* istanbul ignore else */
      if ( true && vm.$options.renderError) {
        try {
          vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
        } catch (e) {
          handleError(e, vm, "renderError");
          vnode = vm._vnode;
        }
      } else {
        vnode = vm._vnode;
      }
    } finally {
      currentRenderingInstance = null;
    }
    // if the returned array contains only a single node, allow it
    if (Array.isArray(vnode) && vnode.length === 1) {
      vnode = vnode[0];
    }
    // return empty vnode in case the render function errored out
    if (!(vnode instanceof VNode)) {
      if ( true && Array.isArray(vnode)) {
        warn(
          'Multiple root nodes returned from render function. Render function ' +
          'should return a single root node.',
          vm
        );
      }
      vnode = createEmptyVNode();
    }
    // set parent
    vnode.parent = _parentVnode;
    return vnode
  };
}

/*  */

function ensureCtor (comp, base) {
  if (
    comp.__esModule ||
    (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  ) {
    comp = comp.default;
  }
  return isObject(comp)
    ? base.extend(comp)
    : comp
}

function createAsyncPlaceholder (
  factory,
  data,
  context,
  children,
  tag
) {
  var node = createEmptyVNode();
  node.asyncFactory = factory;
  node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  return node
}

function resolveAsyncComponent (
  factory,
  baseCtor
) {
  if (isTrue(factory.error) && isDef(factory.errorComp)) {
    return factory.errorComp
  }

  if (isDef(factory.resolved)) {
    return factory.resolved
  }

  var owner = currentRenderingInstance;
  if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
    // already pending
    factory.owners.push(owner);
  }

  if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
    return factory.loadingComp
  }

  if (owner && !isDef(factory.owners)) {
    var owners = factory.owners = [owner];
    var sync = true;
    var timerLoading = null;
    var timerTimeout = null

    ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });

    var forceRender = function (renderCompleted) {
      for (var i = 0, l = owners.length; i < l; i++) {
        (owners[i]).$forceUpdate();
      }

      if (renderCompleted) {
        owners.length = 0;
        if (timerLoading !== null) {
          clearTimeout(timerLoading);
          timerLoading = null;
        }
        if (timerTimeout !== null) {
          clearTimeout(timerTimeout);
          timerTimeout = null;
        }
      }
    };

    var resolve = once(function (res) {
      // cache resolved
      factory.resolved = ensureCtor(res, baseCtor);
      // invoke callbacks only if this is not a synchronous resolve
      // (async resolves are shimmed as synchronous during SSR)
      if (!sync) {
        forceRender(true);
      } else {
        owners.length = 0;
      }
    });

    var reject = once(function (reason) {
       true && warn(
        "Failed to resolve async component: " + (String(factory)) +
        (reason ? ("\nReason: " + reason) : '')
      );
      if (isDef(factory.errorComp)) {
        factory.error = true;
        forceRender(true);
      }
    });

    var res = factory(resolve, reject);

    if (isObject(res)) {
      if (isPromise(res)) {
        // () => Promise
        if (isUndef(factory.resolved)) {
          res.then(resolve, reject);
        }
      } else if (isPromise(res.component)) {
        res.component.then(resolve, reject);

        if (isDef(res.error)) {
          factory.errorComp = ensureCtor(res.error, baseCtor);
        }

        if (isDef(res.loading)) {
          factory.loadingComp = ensureCtor(res.loading, baseCtor);
          if (res.delay === 0) {
            factory.loading = true;
          } else {
            timerLoading = setTimeout(function () {
              timerLoading = null;
              if (isUndef(factory.resolved) && isUndef(factory.error)) {
                factory.loading = true;
                forceRender(false);
              }
            }, res.delay || 200);
          }
        }

        if (isDef(res.timeout)) {
          timerTimeout = setTimeout(function () {
            timerTimeout = null;
            if (isUndef(factory.resolved)) {
              reject(
                 true
                  ? ("timeout (" + (res.timeout) + "ms)")
                  : undefined
              );
            }
          }, res.timeout);
        }
      }
    }

    sync = false;
    // return in case resolved synchronously
    return factory.loading
      ? factory.loadingComp
      : factory.resolved
  }
}

/*  */

function isAsyncPlaceholder (node) {
  return node.isComment && node.asyncFactory
}

/*  */

function getFirstComponentChild (children) {
  if (Array.isArray(children)) {
    for (var i = 0; i < children.length; i++) {
      var c = children[i];
      if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
        return c
      }
    }
  }
}

/*  */

/*  */

function initEvents (vm) {
  vm._events = Object.create(null);
  vm._hasHookEvent = false;
  // init parent attached events
  var listeners = vm.$options._parentListeners;
  if (listeners) {
    updateComponentListeners(vm, listeners);
  }
}

var target;

function add (event, fn) {
  target.$on(event, fn);
}

function remove$1 (event, fn) {
  target.$off(event, fn);
}

function createOnceHandler (event, fn) {
  var _target = target;
  return function onceHandler () {
    var res = fn.apply(null, arguments);
    if (res !== null) {
      _target.$off(event, onceHandler);
    }
  }
}

function updateComponentListeners (
  vm,
  listeners,
  oldListeners
) {
  target = vm;
  updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  target = undefined;
}

function eventsMixin (Vue) {
  var hookRE = /^hook:/;
  Vue.prototype.$on = function (event, fn) {
    var vm = this;
    if (Array.isArray(event)) {
      for (var i = 0, l = event.length; i < l; i++) {
        vm.$on(event[i], fn);
      }
    } else {
      (vm._events[event] || (vm._events[event] = [])).push(fn);
      // optimize hook:event cost by using a boolean flag marked at registration
      // instead of a hash lookup
      if (hookRE.test(event)) {
        vm._hasHookEvent = true;
      }
    }
    return vm
  };

  Vue.prototype.$once = function (event, fn) {
    var vm = this;
    function on () {
      vm.$off(event, on);
      fn.apply(vm, arguments);
    }
    on.fn = fn;
    vm.$on(event, on);
    return vm
  };

  Vue.prototype.$off = function (event, fn) {
    var vm = this;
    // all
    if (!arguments.length) {
      vm._events = Object.create(null);
      return vm
    }
    // array of events
    if (Array.isArray(event)) {
      for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
        vm.$off(event[i$1], fn);
      }
      return vm
    }
    // specific event
    var cbs = vm._events[event];
    if (!cbs) {
      return vm
    }
    if (!fn) {
      vm._events[event] = null;
      return vm
    }
    // specific handler
    var cb;
    var i = cbs.length;
    while (i--) {
      cb = cbs[i];
      if (cb === fn || cb.fn === fn) {
        cbs.splice(i, 1);
        break
      }
    }
    return vm
  };

  Vue.prototype.$emit = function (event) {
    var vm = this;
    if (true) {
      var lowerCaseEvent = event.toLowerCase();
      if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
        tip(
          "Event \"" + lowerCaseEvent + "\" is emitted in component " +
          (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
          "Note that HTML attributes are case-insensitive and you cannot use " +
          "v-on to listen to camelCase events when using in-DOM templates. " +
          "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
        );
      }
    }
    var cbs = vm._events[event];
    if (cbs) {
      cbs = cbs.length > 1 ? toArray(cbs) : cbs;
      var args = toArray(arguments, 1);
      var info = "event handler for \"" + event + "\"";
      for (var i = 0, l = cbs.length; i < l; i++) {
        invokeWithErrorHandling(cbs[i], vm, args, vm, info);
      }
    }
    return vm
  };
}

/*  */

var activeInstance = null;
var isUpdatingChildComponent = false;

function setActiveInstance(vm) {
  var prevActiveInstance = activeInstance;
  activeInstance = vm;
  return function () {
    activeInstance = prevActiveInstance;
  }
}

function initLifecycle (vm) {
  var options = vm.$options;

  // locate first non-abstract parent
  var parent = options.parent;
  if (parent && !options.abstract) {
    while (parent.$options.abstract && parent.$parent) {
      parent = parent.$parent;
    }
    parent.$children.push(vm);
  }

  vm.$parent = parent;
  vm.$root = parent ? parent.$root : vm;

  vm.$children = [];
  vm.$refs = {};

  vm._watcher = null;
  vm._inactive = null;
  vm._directInactive = false;
  vm._isMounted = false;
  vm._isDestroyed = false;
  vm._isBeingDestroyed = false;
}

function lifecycleMixin (Vue) {
  Vue.prototype._update = function (vnode, hydrating) {
    var vm = this;
    var prevEl = vm.$el;
    var prevVnode = vm._vnode;
    var restoreActiveInstance = setActiveInstance(vm);
    vm._vnode = vnode;
    // Vue.prototype.__patch__ is injected in entry points
    // based on the rendering backend used.
    if (!prevVnode) {
      // initial render
      vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
    } else {
      // updates
      vm.$el = vm.__patch__(prevVnode, vnode);
    }
    restoreActiveInstance();
    // update __vue__ reference
    if (prevEl) {
      prevEl.__vue__ = null;
    }
    if (vm.$el) {
      vm.$el.__vue__ = vm;
    }
    // if parent is an HOC, update its $el as well
    if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
      vm.$parent.$el = vm.$el;
    }
    // updated hook is called by the scheduler to ensure that children are
    // updated in a parent's updated hook.
  };

  Vue.prototype.$forceUpdate = function () {
    var vm = this;
    if (vm._watcher) {
      vm._watcher.update();
    }
  };

  Vue.prototype.$destroy = function () {
    var vm = this;
    if (vm._isBeingDestroyed) {
      return
    }
    callHook(vm, 'beforeDestroy');
    vm._isBeingDestroyed = true;
    // remove self from parent
    var parent = vm.$parent;
    if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
      remove(parent.$children, vm);
    }
    // teardown watchers
    if (vm._watcher) {
      vm._watcher.teardown();
    }
    var i = vm._watchers.length;
    while (i--) {
      vm._watchers[i].teardown();
    }
    // remove reference from data ob
    // frozen object may not have observer.
    if (vm._data.__ob__) {
      vm._data.__ob__.vmCount--;
    }
    // call the last hook...
    vm._isDestroyed = true;
    // invoke destroy hooks on current rendered tree
    vm.__patch__(vm._vnode, null);
    // fire destroyed hook
    callHook(vm, 'destroyed');
    // turn off all instance listeners.
    vm.$off();
    // remove __vue__ reference
    if (vm.$el) {
      vm.$el.__vue__ = null;
    }
    // release circular reference (#6759)
    if (vm.$vnode) {
      vm.$vnode.parent = null;
    }
  };
}

function updateChildComponent (
  vm,
  propsData,
  listeners,
  parentVnode,
  renderChildren
) {
  if (true) {
    isUpdatingChildComponent = true;
  }

  // determine whether component has slot children
  // we need to do this before overwriting $options._renderChildren.

  // check if there are dynamic scopedSlots (hand-written or compiled but with
  // dynamic slot names). Static scoped slots compiled from template has the
  // "$stable" marker.
  var newScopedSlots = parentVnode.data.scopedSlots;
  var oldScopedSlots = vm.$scopedSlots;
  var hasDynamicScopedSlot = !!(
    (newScopedSlots && !newScopedSlots.$stable) ||
    (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
    (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  );

  // Any static slot children from the parent may have changed during parent's
  // update. Dynamic scoped slots may also have changed. In such cases, a forced
  // update is necessary to ensure correctness.
  var needsForceUpdate = !!(
    renderChildren ||               // has new static slots
    vm.$options._renderChildren ||  // has old static slots
    hasDynamicScopedSlot
  );

  vm.$options._parentVnode = parentVnode;
  vm.$vnode = parentVnode; // update vm's placeholder node without re-render

  if (vm._vnode) { // update child tree's parent
    vm._vnode.parent = parentVnode;
  }
  vm.$options._renderChildren = renderChildren;

  // update $attrs and $listeners hash
  // these are also reactive so they may trigger child update if the child
  // used them during render
  vm.$attrs = parentVnode.data.attrs || emptyObject;
  vm.$listeners = listeners || emptyObject;

  // update props
  if (propsData && vm.$options.props) {
    toggleObserving(false);
    var props = vm._props;
    var propKeys = vm.$options._propKeys || [];
    for (var i = 0; i < propKeys.length; i++) {
      var key = propKeys[i];
      var propOptions = vm.$options.props; // wtf flow?
      props[key] = validateProp(key, propOptions, propsData, vm);
    }
    toggleObserving(true);
    // keep a copy of raw propsData
    vm.$options.propsData = propsData;
  }
  
  // fixed by xxxxxx update properties(mp runtime)
  vm._$updateProperties && vm._$updateProperties(vm);
  
  // update listeners
  listeners = listeners || emptyObject;
  var oldListeners = vm.$options._parentListeners;
  vm.$options._parentListeners = listeners;
  updateComponentListeners(vm, listeners, oldListeners);

  // resolve slots + force update if has children
  if (needsForceUpdate) {
    vm.$slots = resolveSlots(renderChildren, parentVnode.context);
    vm.$forceUpdate();
  }

  if (true) {
    isUpdatingChildComponent = false;
  }
}

function isInInactiveTree (vm) {
  while (vm && (vm = vm.$parent)) {
    if (vm._inactive) { return true }
  }
  return false
}

function activateChildComponent (vm, direct) {
  if (direct) {
    vm._directInactive = false;
    if (isInInactiveTree(vm)) {
      return
    }
  } else if (vm._directInactive) {
    return
  }
  if (vm._inactive || vm._inactive === null) {
    vm._inactive = false;
    for (var i = 0; i < vm.$children.length; i++) {
      activateChildComponent(vm.$children[i]);
    }
    callHook(vm, 'activated');
  }
}

function deactivateChildComponent (vm, direct) {
  if (direct) {
    vm._directInactive = true;
    if (isInInactiveTree(vm)) {
      return
    }
  }
  if (!vm._inactive) {
    vm._inactive = true;
    for (var i = 0; i < vm.$children.length; i++) {
      deactivateChildComponent(vm.$children[i]);
    }
    callHook(vm, 'deactivated');
  }
}

function callHook (vm, hook) {
  // #7573 disable dep collection when invoking lifecycle hooks
  pushTarget();
  var handlers = vm.$options[hook];
  var info = hook + " hook";
  if (handlers) {
    for (var i = 0, j = handlers.length; i < j; i++) {
      invokeWithErrorHandling(handlers[i], vm, null, vm, info);
    }
  }
  if (vm._hasHookEvent) {
    vm.$emit('hook:' + hook);
  }
  popTarget();
}

/*  */

var MAX_UPDATE_COUNT = 100;

var queue = [];
var activatedChildren = [];
var has = {};
var circular = {};
var waiting = false;
var flushing = false;
var index = 0;

/**
 * Reset the scheduler's state.
 */
function resetSchedulerState () {
  index = queue.length = activatedChildren.length = 0;
  has = {};
  if (true) {
    circular = {};
  }
  waiting = flushing = false;
}

// Async edge case #6566 requires saving the timestamp when event listeners are
// attached. However, calling performance.now() has a perf overhead especially
// if the page has thousands of event listeners. Instead, we take a timestamp
// every time the scheduler flushes and use that for all event listeners
// attached during that flush.
var currentFlushTimestamp = 0;

// Async edge case fix requires storing an event listener's attach timestamp.
var getNow = Date.now;

// Determine what event timestamp the browser is using. Annoyingly, the
// timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp.
// All IE versions use low-res event timestamps, and have problematic clock
// implementations (#9632)
if (inBrowser && !isIE) {
  var performance = window.performance;
  if (
    performance &&
    typeof performance.now === 'function' &&
    getNow() > document.createEvent('Event').timeStamp
  ) {
    // if the event timestamp, although evaluated AFTER the Date.now(), is
    // smaller than it, it means the event is using a hi-res timestamp,
    // and we need to use the hi-res version for event listener timestamps as
    // well.
    getNow = function () { return performance.now(); };
  }
}

/**
 * Flush both queues and run the watchers.
 */
function flushSchedulerQueue () {
  currentFlushTimestamp = getNow();
  flushing = true;
  var watcher, id;

  // Sort queue before flush.
  // This ensures that:
  // 1. Components are updated from parent to child. (because parent is always
  //    created before the child)
  // 2. A component's user watchers are run before its render watcher (because
  //    user watchers are created before the render watcher)
  // 3. If a component is destroyed during a parent component's watcher run,
  //    its watchers can be skipped.
  queue.sort(function (a, b) { return a.id - b.id; });

  // do not cache length because more watchers might be pushed
  // as we run existing watchers
  for (index = 0; index < queue.length; index++) {
    watcher = queue[index];
    if (watcher.before) {
      watcher.before();
    }
    id = watcher.id;
    has[id] = null;
    watcher.run();
    // in dev build, check and stop circular updates.
    if ( true && has[id] != null) {
      circular[id] = (circular[id] || 0) + 1;
      if (circular[id] > MAX_UPDATE_COUNT) {
        warn(
          'You may have an infinite update loop ' + (
            watcher.user
              ? ("in watcher with expression \"" + (watcher.expression) + "\"")
              : "in a component render function."
          ),
          watcher.vm
        );
        break
      }
    }
  }

  // keep copies of post queues before resetting state
  var activatedQueue = activatedChildren.slice();
  var updatedQueue = queue.slice();

  resetSchedulerState();

  // call component updated and activated hooks
  callActivatedHooks(activatedQueue);
  callUpdatedHooks(updatedQueue);

  // devtool hook
  /* istanbul ignore if */
  if (devtools && config.devtools) {
    devtools.emit('flush');
  }
}

function callUpdatedHooks (queue) {
  var i = queue.length;
  while (i--) {
    var watcher = queue[i];
    var vm = watcher.vm;
    if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
      callHook(vm, 'updated');
    }
  }
}

/**
 * Queue a kept-alive component that was activated during patch.
 * The queue will be processed after the entire tree has been patched.
 */
function queueActivatedComponent (vm) {
  // setting _inactive to false here so that a render function can
  // rely on checking whether it's in an inactive tree (e.g. router-view)
  vm._inactive = false;
  activatedChildren.push(vm);
}

function callActivatedHooks (queue) {
  for (var i = 0; i < queue.length; i++) {
    queue[i]._inactive = true;
    activateChildComponent(queue[i], true /* true */);
  }
}

/**
 * Push a watcher into the watcher queue.
 * Jobs with duplicate IDs will be skipped unless it's
 * pushed when the queue is being flushed.
 */
function queueWatcher (watcher) {
  var id = watcher.id;
  if (has[id] == null) {
    has[id] = true;
    if (!flushing) {
      queue.push(watcher);
    } else {
      // if already flushing, splice the watcher based on its id
      // if already past its id, it will be run next immediately.
      var i = queue.length - 1;
      while (i > index && queue[i].id > watcher.id) {
        i--;
      }
      queue.splice(i + 1, 0, watcher);
    }
    // queue the flush
    if (!waiting) {
      waiting = true;

      if ( true && !config.async) {
        flushSchedulerQueue();
        return
      }
      nextTick(flushSchedulerQueue);
    }
  }
}

/*  */



var uid$2 = 0;

/**
 * A watcher parses an expression, collects dependencies,
 * and fires callback when the expression value changes.
 * This is used for both the $watch() api and directives.
 */
var Watcher = function Watcher (
  vm,
  expOrFn,
  cb,
  options,
  isRenderWatcher
) {
  this.vm = vm;
  if (isRenderWatcher) {
    vm._watcher = this;
  }
  vm._watchers.push(this);
  // options
  if (options) {
    this.deep = !!options.deep;
    this.user = !!options.user;
    this.lazy = !!options.lazy;
    this.sync = !!options.sync;
    this.before = options.before;
  } else {
    this.deep = this.user = this.lazy = this.sync = false;
  }
  this.cb = cb;
  this.id = ++uid$2; // uid for batching
  this.active = true;
  this.dirty = this.lazy; // for lazy watchers
  this.deps = [];
  this.newDeps = [];
  this.depIds = new _Set();
  this.newDepIds = new _Set();
  this.expression =  true
    ? expOrFn.toString()
    : undefined;
  // parse expression for getter
  if (typeof expOrFn === 'function') {
    this.getter = expOrFn;
  } else {
    this.getter = parsePath(expOrFn);
    if (!this.getter) {
      this.getter = noop;
       true && warn(
        "Failed watching path: \"" + expOrFn + "\" " +
        'Watcher only accepts simple dot-delimited paths. ' +
        'For full control, use a function instead.',
        vm
      );
    }
  }
  this.value = this.lazy
    ? undefined
    : this.get();
};

/**
 * Evaluate the getter, and re-collect dependencies.
 */
Watcher.prototype.get = function get () {
  pushTarget(this);
  var value;
  var vm = this.vm;
  try {
    value = this.getter.call(vm, vm);
  } catch (e) {
    if (this.user) {
      handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
    } else {
      throw e
    }
  } finally {
    // "touch" every property so they are all tracked as
    // dependencies for deep watching
    if (this.deep) {
      traverse(value);
    }
    popTarget();
    this.cleanupDeps();
  }
  return value
};

/**
 * Add a dependency to this directive.
 */
Watcher.prototype.addDep = function addDep (dep) {
  var id = dep.id;
  if (!this.newDepIds.has(id)) {
    this.newDepIds.add(id);
    this.newDeps.push(dep);
    if (!this.depIds.has(id)) {
      dep.addSub(this);
    }
  }
};

/**
 * Clean up for dependency collection.
 */
Watcher.prototype.cleanupDeps = function cleanupDeps () {
  var i = this.deps.length;
  while (i--) {
    var dep = this.deps[i];
    if (!this.newDepIds.has(dep.id)) {
      dep.removeSub(this);
    }
  }
  var tmp = this.depIds;
  this.depIds = this.newDepIds;
  this.newDepIds = tmp;
  this.newDepIds.clear();
  tmp = this.deps;
  this.deps = this.newDeps;
  this.newDeps = tmp;
  this.newDeps.length = 0;
};

/**
 * Subscriber interface.
 * Will be called when a dependency changes.
 */
Watcher.prototype.update = function update () {
  /* istanbul ignore else */
  if (this.lazy) {
    this.dirty = true;
  } else if (this.sync) {
    this.run();
  } else {
    queueWatcher(this);
  }
};

/**
 * Scheduler job interface.
 * Will be called by the scheduler.
 */
Watcher.prototype.run = function run () {
  if (this.active) {
    var value = this.get();
    if (
      value !== this.value ||
      // Deep watchers and watchers on Object/Arrays should fire even
      // when the value is the same, because the value may
      // have mutated.
      isObject(value) ||
      this.deep
    ) {
      // set new value
      var oldValue = this.value;
      this.value = value;
      if (this.user) {
        try {
          this.cb.call(this.vm, value, oldValue);
        } catch (e) {
          handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
        }
      } else {
        this.cb.call(this.vm, value, oldValue);
      }
    }
  }
};

/**
 * Evaluate the value of the watcher.
 * This only gets called for lazy watchers.
 */
Watcher.prototype.evaluate = function evaluate () {
  this.value = this.get();
  this.dirty = false;
};

/**
 * Depend on all deps collected by this watcher.
 */
Watcher.prototype.depend = function depend () {
  var i = this.deps.length;
  while (i--) {
    this.deps[i].depend();
  }
};

/**
 * Remove self from all dependencies' subscriber list.
 */
Watcher.prototype.teardown = function teardown () {
  if (this.active) {
    // remove self from vm's watcher list
    // this is a somewhat expensive operation so we skip it
    // if the vm is being destroyed.
    if (!this.vm._isBeingDestroyed) {
      remove(this.vm._watchers, this);
    }
    var i = this.deps.length;
    while (i--) {
      this.deps[i].removeSub(this);
    }
    this.active = false;
  }
};

/*  */

var sharedPropertyDefinition = {
  enumerable: true,
  configurable: true,
  get: noop,
  set: noop
};

function proxy (target, sourceKey, key) {
  sharedPropertyDefinition.get = function proxyGetter () {
    return this[sourceKey][key]
  };
  sharedPropertyDefinition.set = function proxySetter (val) {
    this[sourceKey][key] = val;
  };
  Object.defineProperty(target, key, sharedPropertyDefinition);
}

function initState (vm) {
  vm._watchers = [];
  var opts = vm.$options;
  if (opts.props) { initProps(vm, opts.props); }
  if (opts.methods) { initMethods(vm, opts.methods); }
  if (opts.data) {
    initData(vm);
  } else {
    observe(vm._data = {}, true /* asRootData */);
  }
  if (opts.computed) { initComputed(vm, opts.computed); }
  if (opts.watch && opts.watch !== nativeWatch) {
    initWatch(vm, opts.watch);
  }
}

function initProps (vm, propsOptions) {
  var propsData = vm.$options.propsData || {};
  var props = vm._props = {};
  // cache prop keys so that future props updates can iterate using Array
  // instead of dynamic object key enumeration.
  var keys = vm.$options._propKeys = [];
  var isRoot = !vm.$parent;
  // root instance props should be converted
  if (!isRoot) {
    toggleObserving(false);
  }
  var loop = function ( key ) {
    keys.push(key);
    var value = validateProp(key, propsOptions, propsData, vm);
    /* istanbul ignore else */
    if (true) {
      var hyphenatedKey = hyphenate(key);
      if (isReservedAttribute(hyphenatedKey) ||
          config.isReservedAttr(hyphenatedKey)) {
        warn(
          ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
          vm
        );
      }
      defineReactive$$1(props, key, value, function () {
        if (!isRoot && !isUpdatingChildComponent) {
          {
            if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发，直接忽略该 warn
                return
            }
            //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
            if(
                key === 'value' && 
                Array.isArray(vm.$options.behaviors) &&
                vm.$options.behaviors.indexOf('uni://form-field') !== -1
              ){
              return
            }
            if(vm._getFormData){
              return
            }
            var $parent = vm.$parent;
            while($parent){
              if($parent.__next_tick_pending){
                return  
              }
              $parent = $parent.$parent;
            }
          }
          warn(
            "Avoid mutating a prop directly since the value will be " +
            "overwritten whenever the parent component re-renders. " +
            "Instead, use a data or computed property based on the prop's " +
            "value. Prop being mutated: \"" + key + "\"",
            vm
          );
        }
      });
    } else {}
    // static props are already proxied on the component's prototype
    // during Vue.extend(). We only need to proxy props defined at
    // instantiation here.
    if (!(key in vm)) {
      proxy(vm, "_props", key);
    }
  };

  for (var key in propsOptions) loop( key );
  toggleObserving(true);
}

function initData (vm) {
  var data = vm.$options.data;
  data = vm._data = typeof data === 'function'
    ? getData(data, vm)
    : data || {};
  if (!isPlainObject(data)) {
    data = {};
     true && warn(
      'data functions should return an object:\n' +
      'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
      vm
    );
  }
  // proxy data on instance
  var keys = Object.keys(data);
  var props = vm.$options.props;
  var methods = vm.$options.methods;
  var i = keys.length;
  while (i--) {
    var key = keys[i];
    if (true) {
      if (methods && hasOwn(methods, key)) {
        warn(
          ("Method \"" + key + "\" has already been defined as a data property."),
          vm
        );
      }
    }
    if (props && hasOwn(props, key)) {
       true && warn(
        "The data property \"" + key + "\" is already declared as a prop. " +
        "Use prop default value instead.",
        vm
      );
    } else if (!isReserved(key)) {
      proxy(vm, "_data", key);
    }
  }
  // observe data
  observe(data, true /* asRootData */);
}

function getData (data, vm) {
  // #7573 disable dep collection when invoking data getters
  pushTarget();
  try {
    return data.call(vm, vm)
  } catch (e) {
    handleError(e, vm, "data()");
    return {}
  } finally {
    popTarget();
  }
}

var computedWatcherOptions = { lazy: true };

function initComputed (vm, computed) {
  // $flow-disable-line
  var watchers = vm._computedWatchers = Object.create(null);
  // computed properties are just getters during SSR
  var isSSR = isServerRendering();

  for (var key in computed) {
    var userDef = computed[key];
    var getter = typeof userDef === 'function' ? userDef : userDef.get;
    if ( true && getter == null) {
      warn(
        ("Getter is missing for computed property \"" + key + "\"."),
        vm
      );
    }

    if (!isSSR) {
      // create internal watcher for the computed property.
      watchers[key] = new Watcher(
        vm,
        getter || noop,
        noop,
        computedWatcherOptions
      );
    }

    // component-defined computed properties are already defined on the
    // component prototype. We only need to define computed properties defined
    // at instantiation here.
    if (!(key in vm)) {
      defineComputed(vm, key, userDef);
    } else if (true) {
      if (key in vm.$data) {
        warn(("The computed property \"" + key + "\" is already defined in data."), vm);
      } else if (vm.$options.props && key in vm.$options.props) {
        warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
      }
    }
  }
}

function defineComputed (
  target,
  key,
  userDef
) {
  var shouldCache = !isServerRendering();
  if (typeof userDef === 'function') {
    sharedPropertyDefinition.get = shouldCache
      ? createComputedGetter(key)
      : createGetterInvoker(userDef);
    sharedPropertyDefinition.set = noop;
  } else {
    sharedPropertyDefinition.get = userDef.get
      ? shouldCache && userDef.cache !== false
        ? createComputedGetter(key)
        : createGetterInvoker(userDef.get)
      : noop;
    sharedPropertyDefinition.set = userDef.set || noop;
  }
  if ( true &&
      sharedPropertyDefinition.set === noop) {
    sharedPropertyDefinition.set = function () {
      warn(
        ("Computed property \"" + key + "\" was assigned to but it has no setter."),
        this
      );
    };
  }
  Object.defineProperty(target, key, sharedPropertyDefinition);
}

function createComputedGetter (key) {
  return function computedGetter () {
    var watcher = this._computedWatchers && this._computedWatchers[key];
    if (watcher) {
      if (watcher.dirty) {
        watcher.evaluate();
      }
      if (Dep.SharedObject.target) {// fixed by xxxxxx
        watcher.depend();
      }
      return watcher.value
    }
  }
}

function createGetterInvoker(fn) {
  return function computedGetter () {
    return fn.call(this, this)
  }
}

function initMethods (vm, methods) {
  var props = vm.$options.props;
  for (var key in methods) {
    if (true) {
      if (typeof methods[key] !== 'function') {
        warn(
          "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
          "Did you reference the function correctly?",
          vm
        );
      }
      if (props && hasOwn(props, key)) {
        warn(
          ("Method \"" + key + "\" has already been defined as a prop."),
          vm
        );
      }
      if ((key in vm) && isReserved(key)) {
        warn(
          "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
          "Avoid defining component methods that start with _ or $."
        );
      }
    }
    vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  }
}

function initWatch (vm, watch) {
  for (var key in watch) {
    var handler = watch[key];
    if (Array.isArray(handler)) {
      for (var i = 0; i < handler.length; i++) {
        createWatcher(vm, key, handler[i]);
      }
    } else {
      createWatcher(vm, key, handler);
    }
  }
}

function createWatcher (
  vm,
  expOrFn,
  handler,
  options
) {
  if (isPlainObject(handler)) {
    options = handler;
    handler = handler.handler;
  }
  if (typeof handler === 'string') {
    handler = vm[handler];
  }
  return vm.$watch(expOrFn, handler, options)
}

function stateMixin (Vue) {
  // flow somehow has problems with directly declared definition object
  // when using Object.defineProperty, so we have to procedurally build up
  // the object here.
  var dataDef = {};
  dataDef.get = function () { return this._data };
  var propsDef = {};
  propsDef.get = function () { return this._props };
  if (true) {
    dataDef.set = function () {
      warn(
        'Avoid replacing instance root $data. ' +
        'Use nested data properties instead.',
        this
      );
    };
    propsDef.set = function () {
      warn("$props is readonly.", this);
    };
  }
  Object.defineProperty(Vue.prototype, '$data', dataDef);
  Object.defineProperty(Vue.prototype, '$props', propsDef);

  Vue.prototype.$set = set;
  Vue.prototype.$delete = del;

  Vue.prototype.$watch = function (
    expOrFn,
    cb,
    options
  ) {
    var vm = this;
    if (isPlainObject(cb)) {
      return createWatcher(vm, expOrFn, cb, options)
    }
    options = options || {};
    options.user = true;
    var watcher = new Watcher(vm, expOrFn, cb, options);
    if (options.immediate) {
      try {
        cb.call(vm, watcher.value);
      } catch (error) {
        handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
      }
    }
    return function unwatchFn () {
      watcher.teardown();
    }
  };
}

/*  */

var uid$3 = 0;

function initMixin (Vue) {
  Vue.prototype._init = function (options) {
    var vm = this;
    // a uid
    vm._uid = uid$3++;

    var startTag, endTag;
    /* istanbul ignore if */
    if ( true && config.performance && mark) {
      startTag = "vue-perf-start:" + (vm._uid);
      endTag = "vue-perf-end:" + (vm._uid);
      mark(startTag);
    }

    // a flag to avoid this being observed
    vm._isVue = true;
    // merge options
    if (options && options._isComponent) {
      // optimize internal component instantiation
      // since dynamic options merging is pretty slow, and none of the
      // internal component options needs special treatment.
      initInternalComponent(vm, options);
    } else {
      vm.$options = mergeOptions(
        resolveConstructorOptions(vm.constructor),
        options || {},
        vm
      );
    }
    /* istanbul ignore else */
    if (true) {
      initProxy(vm);
    } else {}
    // expose real self
    vm._self = vm;
    initLifecycle(vm);
    initEvents(vm);
    initRender(vm);
    callHook(vm, 'beforeCreate');
    !vm._$fallback && initInjections(vm); // resolve injections before data/props  
    initState(vm);
    !vm._$fallback && initProvide(vm); // resolve provide after data/props
    !vm._$fallback && callHook(vm, 'created');      

    /* istanbul ignore if */
    if ( true && config.performance && mark) {
      vm._name = formatComponentName(vm, false);
      mark(endTag);
      measure(("vue " + (vm._name) + " init"), startTag, endTag);
    }

    if (vm.$options.el) {
      vm.$mount(vm.$options.el);
    }
  };
}

function initInternalComponent (vm, options) {
  var opts = vm.$options = Object.create(vm.constructor.options);
  // doing this because it's faster than dynamic enumeration.
  var parentVnode = options._parentVnode;
  opts.parent = options.parent;
  opts._parentVnode = parentVnode;

  var vnodeComponentOptions = parentVnode.componentOptions;
  opts.propsData = vnodeComponentOptions.propsData;
  opts._parentListeners = vnodeComponentOptions.listeners;
  opts._renderChildren = vnodeComponentOptions.children;
  opts._componentTag = vnodeComponentOptions.tag;

  if (options.render) {
    opts.render = options.render;
    opts.staticRenderFns = options.staticRenderFns;
  }
}

function resolveConstructorOptions (Ctor) {
  var options = Ctor.options;
  if (Ctor.super) {
    var superOptions = resolveConstructorOptions(Ctor.super);
    var cachedSuperOptions = Ctor.superOptions;
    if (superOptions !== cachedSuperOptions) {
      // super option changed,
      // need to resolve new options.
      Ctor.superOptions = superOptions;
      // check if there are any late-modified/attached options (#4976)
      var modifiedOptions = resolveModifiedOptions(Ctor);
      // update base extend options
      if (modifiedOptions) {
        extend(Ctor.extendOptions, modifiedOptions);
      }
      options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
      if (options.name) {
        options.components[options.name] = Ctor;
      }
    }
  }
  return options
}

function resolveModifiedOptions (Ctor) {
  var modified;
  var latest = Ctor.options;
  var sealed = Ctor.sealedOptions;
  for (var key in latest) {
    if (latest[key] !== sealed[key]) {
      if (!modified) { modified = {}; }
      modified[key] = latest[key];
    }
  }
  return modified
}

function Vue (options) {
  if ( true &&
    !(this instanceof Vue)
  ) {
    warn('Vue is a constructor and should be called with the `new` keyword');
  }
  this._init(options);
}

initMixin(Vue);
stateMixin(Vue);
eventsMixin(Vue);
lifecycleMixin(Vue);
renderMixin(Vue);

/*  */

function initUse (Vue) {
  Vue.use = function (plugin) {
    var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
    if (installedPlugins.indexOf(plugin) > -1) {
      return this
    }

    // additional parameters
    var args = toArray(arguments, 1);
    args.unshift(this);
    if (typeof plugin.install === 'function') {
      plugin.install.apply(plugin, args);
    } else if (typeof plugin === 'function') {
      plugin.apply(null, args);
    }
    installedPlugins.push(plugin);
    return this
  };
}

/*  */

function initMixin$1 (Vue) {
  Vue.mixin = function (mixin) {
    this.options = mergeOptions(this.options, mixin);
    return this
  };
}

/*  */

function initExtend (Vue) {
  /**
   * Each instance constructor, including Vue, has a unique
   * cid. This enables us to create wrapped "child
   * constructors" for prototypal inheritance and cache them.
   */
  Vue.cid = 0;
  var cid = 1;

  /**
   * Class inheritance
   */
  Vue.extend = function (extendOptions) {
    extendOptions = extendOptions || {};
    var Super = this;
    var SuperId = Super.cid;
    var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
    if (cachedCtors[SuperId]) {
      return cachedCtors[SuperId]
    }

    var name = extendOptions.name || Super.options.name;
    if ( true && name) {
      validateComponentName(name);
    }

    var Sub = function VueComponent (options) {
      this._init(options);
    };
    Sub.prototype = Object.create(Super.prototype);
    Sub.prototype.constructor = Sub;
    Sub.cid = cid++;
    Sub.options = mergeOptions(
      Super.options,
      extendOptions
    );
    Sub['super'] = Super;

    // For props and computed properties, we define the proxy getters on
    // the Vue instances at extension time, on the extended prototype. This
    // avoids Object.defineProperty calls for each instance created.
    if (Sub.options.props) {
      initProps$1(Sub);
    }
    if (Sub.options.computed) {
      initComputed$1(Sub);
    }

    // allow further extension/mixin/plugin usage
    Sub.extend = Super.extend;
    Sub.mixin = Super.mixin;
    Sub.use = Super.use;

    // create asset registers, so extended classes
    // can have their private assets too.
    ASSET_TYPES.forEach(function (type) {
      Sub[type] = Super[type];
    });
    // enable recursive self-lookup
    if (name) {
      Sub.options.components[name] = Sub;
    }

    // keep a reference to the super options at extension time.
    // later at instantiation we can check if Super's options have
    // been updated.
    Sub.superOptions = Super.options;
    Sub.extendOptions = extendOptions;
    Sub.sealedOptions = extend({}, Sub.options);

    // cache constructor
    cachedCtors[SuperId] = Sub;
    return Sub
  };
}

function initProps$1 (Comp) {
  var props = Comp.options.props;
  for (var key in props) {
    proxy(Comp.prototype, "_props", key);
  }
}

function initComputed$1 (Comp) {
  var computed = Comp.options.computed;
  for (var key in computed) {
    defineComputed(Comp.prototype, key, computed[key]);
  }
}

/*  */

function initAssetRegisters (Vue) {
  /**
   * Create asset registration methods.
   */
  ASSET_TYPES.forEach(function (type) {
    Vue[type] = function (
      id,
      definition
    ) {
      if (!definition) {
        return this.options[type + 's'][id]
      } else {
        /* istanbul ignore if */
        if ( true && type === 'component') {
          validateComponentName(id);
        }
        if (type === 'component' && isPlainObject(definition)) {
          definition.name = definition.name || id;
          definition = this.options._base.extend(definition);
        }
        if (type === 'directive' && typeof definition === 'function') {
          definition = { bind: definition, update: definition };
        }
        this.options[type + 's'][id] = definition;
        return definition
      }
    };
  });
}

/*  */



function getComponentName (opts) {
  return opts && (opts.Ctor.options.name || opts.tag)
}

function matches (pattern, name) {
  if (Array.isArray(pattern)) {
    return pattern.indexOf(name) > -1
  } else if (typeof pattern === 'string') {
    return pattern.split(',').indexOf(name) > -1
  } else if (isRegExp(pattern)) {
    return pattern.test(name)
  }
  /* istanbul ignore next */
  return false
}

function pruneCache (keepAliveInstance, filter) {
  var cache = keepAliveInstance.cache;
  var keys = keepAliveInstance.keys;
  var _vnode = keepAliveInstance._vnode;
  for (var key in cache) {
    var cachedNode = cache[key];
    if (cachedNode) {
      var name = getComponentName(cachedNode.componentOptions);
      if (name && !filter(name)) {
        pruneCacheEntry(cache, key, keys, _vnode);
      }
    }
  }
}

function pruneCacheEntry (
  cache,
  key,
  keys,
  current
) {
  var cached$$1 = cache[key];
  if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
    cached$$1.componentInstance.$destroy();
  }
  cache[key] = null;
  remove(keys, key);
}

var patternTypes = [String, RegExp, Array];

var KeepAlive = {
  name: 'keep-alive',
  abstract: true,

  props: {
    include: patternTypes,
    exclude: patternTypes,
    max: [String, Number]
  },

  created: function created () {
    this.cache = Object.create(null);
    this.keys = [];
  },

  destroyed: function destroyed () {
    for (var key in this.cache) {
      pruneCacheEntry(this.cache, key, this.keys);
    }
  },

  mounted: function mounted () {
    var this$1 = this;

    this.$watch('include', function (val) {
      pruneCache(this$1, function (name) { return matches(val, name); });
    });
    this.$watch('exclude', function (val) {
      pruneCache(this$1, function (name) { return !matches(val, name); });
    });
  },

  render: function render () {
    var slot = this.$slots.default;
    var vnode = getFirstComponentChild(slot);
    var componentOptions = vnode && vnode.componentOptions;
    if (componentOptions) {
      // check pattern
      var name = getComponentName(componentOptions);
      var ref = this;
      var include = ref.include;
      var exclude = ref.exclude;
      if (
        // not included
        (include && (!name || !matches(include, name))) ||
        // excluded
        (exclude && name && matches(exclude, name))
      ) {
        return vnode
      }

      var ref$1 = this;
      var cache = ref$1.cache;
      var keys = ref$1.keys;
      var key = vnode.key == null
        // same constructor may get registered as different local components
        // so cid alone is not enough (#3269)
        ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
        : vnode.key;
      if (cache[key]) {
        vnode.componentInstance = cache[key].componentInstance;
        // make current key freshest
        remove(keys, key);
        keys.push(key);
      } else {
        cache[key] = vnode;
        keys.push(key);
        // prune oldest entry
        if (this.max && keys.length > parseInt(this.max)) {
          pruneCacheEntry(cache, keys[0], keys, this._vnode);
        }
      }

      vnode.data.keepAlive = true;
    }
    return vnode || (slot && slot[0])
  }
};

var builtInComponents = {
  KeepAlive: KeepAlive
};

/*  */

function initGlobalAPI (Vue) {
  // config
  var configDef = {};
  configDef.get = function () { return config; };
  if (true) {
    configDef.set = function () {
      warn(
        'Do not replace the Vue.config object, set individual fields instead.'
      );
    };
  }
  Object.defineProperty(Vue, 'config', configDef);

  // exposed util methods.
  // NOTE: these are not considered part of the public API - avoid relying on
  // them unless you are aware of the risk.
  Vue.util = {
    warn: warn,
    extend: extend,
    mergeOptions: mergeOptions,
    defineReactive: defineReactive$$1
  };

  Vue.set = set;
  Vue.delete = del;
  Vue.nextTick = nextTick;

  // 2.6 explicit observable API
  Vue.observable = function (obj) {
    observe(obj);
    return obj
  };

  Vue.options = Object.create(null);
  ASSET_TYPES.forEach(function (type) {
    Vue.options[type + 's'] = Object.create(null);
  });

  // this is used to identify the "base" constructor to extend all plain-object
  // components with in Weex's multi-instance scenarios.
  Vue.options._base = Vue;

  extend(Vue.options.components, builtInComponents);

  initUse(Vue);
  initMixin$1(Vue);
  initExtend(Vue);
  initAssetRegisters(Vue);
}

initGlobalAPI(Vue);

Object.defineProperty(Vue.prototype, '$isServer', {
  get: isServerRendering
});

Object.defineProperty(Vue.prototype, '$ssrContext', {
  get: function get () {
    /* istanbul ignore next */
    return this.$vnode && this.$vnode.ssrContext
  }
});

// expose FunctionalRenderContext for ssr runtime helper installation
Object.defineProperty(Vue, 'FunctionalRenderContext', {
  value: FunctionalRenderContext
});

Vue.version = '2.6.11';

/**
 * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
 */
var ARRAYTYPE = '[object Array]';
var OBJECTTYPE = '[object Object]';
var NULLTYPE = '[object Null]';
var UNDEFINEDTYPE = '[object Undefined]';
// const FUNCTIONTYPE = '[object Function]'

function diff(current, pre) {
    var result = {};
    syncKeys(current, pre);
    _diff(current, pre, '', result);
    return result
}

function syncKeys(current, pre) {
    if (current === pre) { return }
    var rootCurrentType = type(current);
    var rootPreType = type(pre);
    if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
        if(Object.keys(current).length >= Object.keys(pre).length){
            for (var key in pre) {
                var currentValue = current[key];
                if (currentValue === undefined) {
                    current[key] = null;
                } else {
                    syncKeys(currentValue, pre[key]);
                }
            }
        }
    } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
        if (current.length >= pre.length) {
            pre.forEach(function (item, index) {
                syncKeys(current[index], item);
            });
        }
    }
}

function nullOrUndefined(currentType, preType) {
    if(
        (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) && 
        (preType === NULLTYPE || preType === UNDEFINEDTYPE)
    ) {
        return false
    }
    return true
}

function _diff(current, pre, path, result) {
    if (current === pre) { return }
    var rootCurrentType = type(current);
    var rootPreType = type(pre);
    if (rootCurrentType == OBJECTTYPE) {
        if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
            setResult(result, path, current);
        } else {
            var loop = function ( key ) {
                var currentValue = current[key];
                var preValue = pre[key];
                var currentType = type(currentValue);
                var preType = type(preValue);
                if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
                    if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
                        setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
                    }
                } else if (currentType == ARRAYTYPE) {
                    if (preType != ARRAYTYPE) {
                        setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
                    } else {
                        if (currentValue.length < preValue.length) {
                            setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
                        } else {
                            currentValue.forEach(function (item, index) {
                                _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
                            });
                        }
                    }
                } else if (currentType == OBJECTTYPE) {
                    if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
                        setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
                    } else {
                        for (var subKey in currentValue) {
                            _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
                        }
                    }
                }
            };

            for (var key in current) loop( key );
        }
    } else if (rootCurrentType == ARRAYTYPE) {
        if (rootPreType != ARRAYTYPE) {
            setResult(result, path, current);
        } else {
            if (current.length < pre.length) {
                setResult(result, path, current);
            } else {
                current.forEach(function (item, index) {
                    _diff(item, pre[index], path + '[' + index + ']', result);
                });
            }
        }
    } else {
        setResult(result, path, current);
    }
}

function setResult(result, k, v) {
    // if (type(v) != FUNCTIONTYPE) {
        result[k] = v;
    // }
}

function type(obj) {
    return Object.prototype.toString.call(obj)
}

/*  */

function flushCallbacks$1(vm) {
    if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
        if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"patient-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
            var mpInstance = vm.$scope;
            console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
                ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
        }
        var copies = vm.__next_tick_callbacks.slice(0);
        vm.__next_tick_callbacks.length = 0;
        for (var i = 0; i < copies.length; i++) {
            copies[i]();
        }
    }
}

function hasRenderWatcher(vm) {
    return queue.find(function (watcher) { return vm._watcher === watcher; })
}

function nextTick$1(vm, cb) {
    //1.nextTick 之前 已 setData 且 setData 还未回调完成
    //2.nextTick 之前存在 render watcher
    if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
        if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"patient-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
            var mpInstance = vm.$scope;
            console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
                ']:nextVueTick');
        }
        return nextTick(cb, vm)
    }else{
        if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"patient-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
            var mpInstance$1 = vm.$scope;
            console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
                ']:nextMPTick');
        }
    }
    var _resolve;
    if (!vm.__next_tick_callbacks) {
        vm.__next_tick_callbacks = [];
    }
    vm.__next_tick_callbacks.push(function () {
        if (cb) {
            try {
                cb.call(vm);
            } catch (e) {
                handleError(e, vm, 'nextTick');
            }
        } else if (_resolve) {
            _resolve(vm);
        }
    });
    // $flow-disable-line
    if (!cb && typeof Promise !== 'undefined') {
        return new Promise(function (resolve) {
            _resolve = resolve;
        })
    }
}

/*  */

function clearInstance(key, value) {
  // 简易去除 Vue 和小程序组件实例
  if (value) {
    if (value._isVue || value.__v_isMPComponent) {
      return {}
    }
  }
  return value
}

function cloneWithData(vm) {
  // 确保当前 vm 所有数据被同步
  var ret = Object.create(null);
  var dataKeys = [].concat(
    Object.keys(vm._data || {}),
    Object.keys(vm._computedWatchers || {}));

  dataKeys.reduce(function(ret, key) {
    ret[key] = vm[key];
    return ret
  }, ret);

  // vue-composition-api
  var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  var rawBindings = compositionApiState && compositionApiState.rawBindings;
  if (rawBindings) {
    Object.keys(rawBindings).forEach(function (key) {
      ret[key] = vm[key];
    });
  }

  //TODO 需要把无用数据处理掉，比如 list=>l0 则 list 需要移除，否则多传输一份数据
  Object.assign(ret, vm.$mp.data || {});
  if (
    Array.isArray(vm.$options.behaviors) &&
    vm.$options.behaviors.indexOf('uni://form-field') !== -1
  ) { //form-field
    ret['name'] = vm.name;
    ret['value'] = vm.value;
  }

  return JSON.parse(JSON.stringify(ret, clearInstance))
}

var patch = function(oldVnode, vnode) {
  var this$1 = this;

  if (vnode === null) { //destroy
    return
  }
  if (this.mpType === 'page' || this.mpType === 'component') {
    var mpInstance = this.$scope;
    var data = Object.create(null);
    try {
      data = cloneWithData(this);
    } catch (err) {
      console.error(err);
    }
    data.__webviewId__ = mpInstance.data.__webviewId__;
    var mpData = Object.create(null);
    Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
      mpData[key] = mpInstance.data[key];
    });
    var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
    if (Object.keys(diffData).length) {
      if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"patient-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
        console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
          ']差量更新',
          JSON.stringify(diffData));
      }
      this.__next_tick_pending = true;
      mpInstance.setData(diffData, function () {
        this$1.__next_tick_pending = false;
        flushCallbacks$1(this$1);
      });
    } else {
      flushCallbacks$1(this);
    }
  }
};

/*  */

function createEmptyRender() {

}

function mountComponent$1(
  vm,
  el,
  hydrating
) {
  if (!vm.mpType) {//main.js 中的 new Vue
    return vm
  }
  if (vm.mpType === 'app') {
    vm.$options.render = createEmptyRender;
  }
  if (!vm.$options.render) {
    vm.$options.render = createEmptyRender;
    if (true) {
      /* istanbul ignore if */
      if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
        vm.$options.el || el) {
        warn(
          'You are using the runtime-only build of Vue where the template ' +
          'compiler is not available. Either pre-compile the templates into ' +
          'render functions, or use the compiler-included build.',
          vm
        );
      } else {
        warn(
          'Failed to mount component: template or render function not defined.',
          vm
        );
      }
    }
  }
  
  !vm._$fallback && callHook(vm, 'beforeMount');

  var updateComponent = function () {
    vm._update(vm._render(), hydrating);
  };

  // we set this to vm._watcher inside the watcher's constructor
  // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  // component's mounted hook), which relies on vm._watcher being already defined
  new Watcher(vm, updateComponent, noop, {
    before: function before() {
      if (vm._isMounted && !vm._isDestroyed) {
        callHook(vm, 'beforeUpdate');
      }
    }
  }, true /* isRenderWatcher */);
  hydrating = false;
  return vm
}

/*  */

function renderClass (
  staticClass,
  dynamicClass
) {
  if (isDef(staticClass) || isDef(dynamicClass)) {
    return concat(staticClass, stringifyClass(dynamicClass))
  }
  /* istanbul ignore next */
  return ''
}

function concat (a, b) {
  return a ? b ? (a + ' ' + b) : a : (b || '')
}

function stringifyClass (value) {
  if (Array.isArray(value)) {
    return stringifyArray(value)
  }
  if (isObject(value)) {
    return stringifyObject(value)
  }
  if (typeof value === 'string') {
    return value
  }
  /* istanbul ignore next */
  return ''
}

function stringifyArray (value) {
  var res = '';
  var stringified;
  for (var i = 0, l = value.length; i < l; i++) {
    if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
      if (res) { res += ' '; }
      res += stringified;
    }
  }
  return res
}

function stringifyObject (value) {
  var res = '';
  for (var key in value) {
    if (value[key]) {
      if (res) { res += ' '; }
      res += key;
    }
  }
  return res
}

/*  */

var parseStyleText = cached(function (cssText) {
  var res = {};
  var listDelimiter = /;(?![^(]*\))/g;
  var propertyDelimiter = /:(.+)/;
  cssText.split(listDelimiter).forEach(function (item) {
    if (item) {
      var tmp = item.split(propertyDelimiter);
      tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
    }
  });
  return res
});

// normalize possible array / string values into Object
function normalizeStyleBinding (bindingStyle) {
  if (Array.isArray(bindingStyle)) {
    return toObject(bindingStyle)
  }
  if (typeof bindingStyle === 'string') {
    return parseStyleText(bindingStyle)
  }
  return bindingStyle
}

/*  */

var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];

function getTarget(obj, path) {
  var parts = path.split('.');
  var key = parts[0];
  if (key.indexOf('__$n') === 0) { //number index
    key = parseInt(key.replace('__$n', ''));
  }
  if (parts.length === 1) {
    return obj[key]
  }
  return getTarget(obj[key], parts.slice(1).join('.'))
}

function internalMixin(Vue) {

  Vue.config.errorHandler = function(err, vm, info) {
    Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
    console.error(err);
    /* eslint-disable no-undef */
    var app = typeof getApp === 'function' && getApp();
    if (app && app.onError) {
      app.onError(err);
    }
  };

  var oldEmit = Vue.prototype.$emit;

  Vue.prototype.$emit = function(event) {
    if (this.$scope && event) {
      var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
      if (triggerEvent) {
        try {
          triggerEvent.call(this.$scope, event, {
            __args__: toArray(arguments, 1)
          });
        } catch (error) {

        }
      }
    }
    return oldEmit.apply(this, arguments)
  };

  Vue.prototype.$nextTick = function(fn) {
    return nextTick$1(this, fn)
  };

  MP_METHODS.forEach(function (method) {
    Vue.prototype[method] = function(args) {
      if (this.$scope && this.$scope[method]) {
        return this.$scope[method](args)
      }
      // mp-alipay
      if (typeof my === 'undefined') {
        return
      }
      if (method === 'createSelectorQuery') {
        /* eslint-disable no-undef */
        return my.createSelectorQuery(args)
      } else if (method === 'createIntersectionObserver') {
        /* eslint-disable no-undef */
        return my.createIntersectionObserver(args)
      }
      // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
    };
  });

  Vue.prototype.__init_provide = initProvide;

  Vue.prototype.__init_injections = initInjections;

  Vue.prototype.__call_hook = function(hook, args) {
    var vm = this;
    // #7573 disable dep collection when invoking lifecycle hooks
    pushTarget();
    var handlers = vm.$options[hook];
    var info = hook + " hook";
    var ret;
    if (handlers) {
      for (var i = 0, j = handlers.length; i < j; i++) {
        ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
      }
    }
    if (vm._hasHookEvent) {
      vm.$emit('hook:' + hook, args);
    }
    popTarget();
    return ret
  };

  Vue.prototype.__set_model = function(target, key, value, modifiers) {
    if (Array.isArray(modifiers)) {
      if (modifiers.indexOf('trim') !== -1) {
        value = value.trim();
      }
      if (modifiers.indexOf('number') !== -1) {
        value = this._n(value);
      }
    }
    if (!target) {
      target = this;
    }
    // 解决动态属性添加
    Vue.set(target, key, value);
  };

  Vue.prototype.__set_sync = function(target, key, value) {
    if (!target) {
      target = this;
    }
    // 解决动态属性添加
    Vue.set(target, key, value);
  };

  Vue.prototype.__get_orig = function(item) {
    if (isPlainObject(item)) {
      return item['$orig'] || item
    }
    return item
  };

  Vue.prototype.__get_value = function(dataPath, target) {
    return getTarget(target || this, dataPath)
  };


  Vue.prototype.__get_class = function(dynamicClass, staticClass) {
    return renderClass(staticClass, dynamicClass)
  };

  Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
    if (!dynamicStyle && !staticStyle) {
      return ''
    }
    var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
    var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
    return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  };

  Vue.prototype.__map = function(val, iteratee) {
    //TODO 暂不考虑 string
    var ret, i, l, keys, key;
    if (Array.isArray(val)) {
      ret = new Array(val.length);
      for (i = 0, l = val.length; i < l; i++) {
        ret[i] = iteratee(val[i], i);
      }
      return ret
    } else if (isObject(val)) {
      keys = Object.keys(val);
      ret = Object.create(null);
      for (i = 0, l = keys.length; i < l; i++) {
        key = keys[i];
        ret[key] = iteratee(val[key], key, i);
      }
      return ret
    } else if (typeof val === 'number') {
      ret = new Array(val);
      for (i = 0, l = val; i < l; i++) {
        // 第一个参数暂时仍和小程序一致
        ret[i] = iteratee(i, i);
      }
      return ret
    }
    return []
  };

}

/*  */

var LIFECYCLE_HOOKS$1 = [
    //App
    'onLaunch',
    'onShow',
    'onHide',
    'onUniNViewMessage',
    'onPageNotFound',
    'onThemeChange',
    'onError',
    'onUnhandledRejection',
    //Page
    'onInit',
    'onLoad',
    // 'onShow',
    'onReady',
    // 'onHide',
    'onUnload',
    'onPullDownRefresh',
    'onReachBottom',
    'onTabItemTap',
    'onAddToFavorites',
    'onShareTimeline',
    'onShareAppMessage',
    'onResize',
    'onPageScroll',
    'onNavigationBarButtonTap',
    'onBackPress',
    'onNavigationBarSearchInputChanged',
    'onNavigationBarSearchInputConfirmed',
    'onNavigationBarSearchInputClicked',
    //Component
    // 'onReady', // 兼容旧版本，应该移除该事件
    'onPageShow',
    'onPageHide',
    'onPageResize',
    'onUploadDouyinVideo'
];
function lifecycleMixin$1(Vue) {

    //fixed vue-class-component
    var oldExtend = Vue.extend;
    Vue.extend = function(extendOptions) {
        extendOptions = extendOptions || {};

        var methods = extendOptions.methods;
        if (methods) {
            Object.keys(methods).forEach(function (methodName) {
                if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
                    extendOptions[methodName] = methods[methodName];
                    delete methods[methodName];
                }
            });
        }

        return oldExtend.call(this, extendOptions)
    };

    var strategies = Vue.config.optionMergeStrategies;
    var mergeHook = strategies.created;
    LIFECYCLE_HOOKS$1.forEach(function (hook) {
        strategies[hook] = mergeHook;
    });

    Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
}

/*  */

// install platform patch function
Vue.prototype.__patch__ = patch;

// public mount method
Vue.prototype.$mount = function(
    el ,
    hydrating 
) {
    return mountComponent$1(this, el, hydrating)
};

lifecycleMixin$1(Vue);
internalMixin(Vue);

/*  */

/* harmony default export */ __webpack_exports__["default"] = (Vue);

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))

/***/ }),
/* 26 */
/*!********************************************!*\
  !*** D:/IdeaProject/patient-wx/pages.json ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {



/***/ }),
/* 27 */
/*!*****************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-push/dist/uni-push.es.js ***!
  \*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(uni, wx) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
var _get = __webpack_require__(/*! @babel/runtime/helpers/get */ 28);
var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ 31);
var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 32);
var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 30);
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23);
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 24);
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function getDefaultExportFromCjs(x) {
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
var gtpushMinExports = {};
var gtpushMin = {
  get exports() {
    return gtpushMinExports;
  },
  set exports(v) {
    gtpushMinExports = v;
  }
};

/*! For license information please see gtpush-min.js.LICENSE.txt */

(function (module, exports) {
  (function t(e, r) {
    module.exports = r();
  })(self, function () {
    return function () {
      var t = {
        4736: function _(t, e, r) {
          t = r.nmd(t);
          var i;
          var n = function (t) {
            var e = 1e7,
              r = 7,
              i = 9007199254740992,
              s = d(i),
              a = "0123456789abcdefghijklmnopqrstuvwxyz";
            var o = "function" === typeof BigInt;
            function u(t, e, r, i) {
              if ("undefined" === typeof t) return u[0];
              if ("undefined" !== typeof e) return 10 === +e && !r ? st(t) : X(t, e, r, i);
              return st(t);
            }
            function c(t, e) {
              this.value = t;
              this.sign = e;
              this.isSmall = false;
            }
            c.prototype = Object.create(u.prototype);
            function l(t) {
              this.value = t;
              this.sign = t < 0;
              this.isSmall = true;
            }
            l.prototype = Object.create(u.prototype);
            function f(t) {
              this.value = t;
            }
            f.prototype = Object.create(u.prototype);
            function h(t) {
              return -i < t && t < i;
            }
            function d(t) {
              if (t < 1e7) return [t];
              if (t < 1e14) return [t % 1e7, Math.floor(t / 1e7)];
              return [t % 1e7, Math.floor(t / 1e7) % 1e7, Math.floor(t / 1e14)];
            }
            function v(t) {
              p(t);
              var r = t.length;
              if (r < 4 && N(t, s) < 0) switch (r) {
                case 0:
                  return 0;
                case 1:
                  return t[0];
                case 2:
                  return t[0] + t[1] * e;
                default:
                  return t[0] + (t[1] + t[2] * e) * e;
              }
              return t;
            }
            function p(t) {
              var e = t.length;
              while (0 === t[--e]) {
                ;
              }
              t.length = e + 1;
            }
            function g(t) {
              var e = new Array(t);
              var r = -1;
              while (++r < t) {
                e[r] = 0;
              }
              return e;
            }
            function y(t) {
              if (t > 0) return Math.floor(t);
              return Math.ceil(t);
            }
            function m(t, r) {
              var i = t.length,
                n = r.length,
                s = new Array(i),
                a = 0,
                o = e,
                u,
                c;
              for (c = 0; c < n; c++) {
                u = t[c] + r[c] + a;
                a = u >= o ? 1 : 0;
                s[c] = u - a * o;
              }
              while (c < i) {
                u = t[c] + a;
                a = u === o ? 1 : 0;
                s[c++] = u - a * o;
              }
              if (a > 0) s.push(a);
              return s;
            }
            function w(t, e) {
              if (t.length >= e.length) return m(t, e);
              return m(e, t);
            }
            function _(t, r) {
              var i = t.length,
                n = new Array(i),
                s = e,
                a,
                o;
              for (o = 0; o < i; o++) {
                a = t[o] - s + r;
                r = Math.floor(a / s);
                n[o] = a - r * s;
                r += 1;
              }
              while (r > 0) {
                n[o++] = r % s;
                r = Math.floor(r / s);
              }
              return n;
            }
            c.prototype.add = function (t) {
              var e = st(t);
              if (this.sign !== e.sign) return this.subtract(e.negate());
              var r = this.value,
                i = e.value;
              if (e.isSmall) return new c(_(r, Math.abs(i)), this.sign);
              return new c(w(r, i), this.sign);
            };
            c.prototype.plus = c.prototype.add;
            l.prototype.add = function (t) {
              var e = st(t);
              var r = this.value;
              if (r < 0 !== e.sign) return this.subtract(e.negate());
              var i = e.value;
              if (e.isSmall) {
                if (h(r + i)) return new l(r + i);
                i = d(Math.abs(i));
              }
              return new c(_(i, Math.abs(r)), r < 0);
            };
            l.prototype.plus = l.prototype.add;
            f.prototype.add = function (t) {
              return new f(this.value + st(t).value);
            };
            f.prototype.plus = f.prototype.add;
            function S(t, r) {
              var i = t.length,
                n = r.length,
                s = new Array(i),
                a = 0,
                o = e,
                u,
                c;
              for (u = 0; u < n; u++) {
                c = t[u] - a - r[u];
                if (c < 0) {
                  c += o;
                  a = 1;
                } else a = 0;
                s[u] = c;
              }
              for (u = n; u < i; u++) {
                c = t[u] - a;
                if (c < 0) c += o;else {
                  s[u++] = c;
                  break;
                }
                s[u] = c;
              }
              for (; u < i; u++) {
                s[u] = t[u];
              }
              p(s);
              return s;
            }
            function b(t, e, r) {
              var i;
              if (N(t, e) >= 0) i = S(t, e);else {
                i = S(e, t);
                r = !r;
              }
              i = v(i);
              if ("number" === typeof i) {
                if (r) i = -i;
                return new l(i);
              }
              return new c(i, r);
            }
            function E(t, r, i) {
              var n = t.length,
                s = new Array(n),
                a = -r,
                o = e,
                u,
                f;
              for (u = 0; u < n; u++) {
                f = t[u] + a;
                a = Math.floor(f / o);
                f %= o;
                s[u] = f < 0 ? f + o : f;
              }
              s = v(s);
              if ("number" === typeof s) {
                if (i) s = -s;
                return new l(s);
              }
              return new c(s, i);
            }
            c.prototype.subtract = function (t) {
              var e = st(t);
              if (this.sign !== e.sign) return this.add(e.negate());
              var r = this.value,
                i = e.value;
              if (e.isSmall) return E(r, Math.abs(i), this.sign);
              return b(r, i, this.sign);
            };
            c.prototype.minus = c.prototype.subtract;
            l.prototype.subtract = function (t) {
              var e = st(t);
              var r = this.value;
              if (r < 0 !== e.sign) return this.add(e.negate());
              var i = e.value;
              if (e.isSmall) return new l(r - i);
              return E(i, Math.abs(r), r >= 0);
            };
            l.prototype.minus = l.prototype.subtract;
            f.prototype.subtract = function (t) {
              return new f(this.value - st(t).value);
            };
            f.prototype.minus = f.prototype.subtract;
            c.prototype.negate = function () {
              return new c(this.value, !this.sign);
            };
            l.prototype.negate = function () {
              var t = this.sign;
              var e = new l(-this.value);
              e.sign = !t;
              return e;
            };
            f.prototype.negate = function () {
              return new f(-this.value);
            };
            c.prototype.abs = function () {
              return new c(this.value, false);
            };
            l.prototype.abs = function () {
              return new l(Math.abs(this.value));
            };
            f.prototype.abs = function () {
              return new f(this.value >= 0 ? this.value : -this.value);
            };
            function D(t, r) {
              var i = t.length,
                n = r.length,
                s = i + n,
                a = g(s),
                o = e,
                u,
                c,
                l,
                f,
                h;
              for (l = 0; l < i; ++l) {
                f = t[l];
                for (var d = 0; d < n; ++d) {
                  h = r[d];
                  u = f * h + a[l + d];
                  c = Math.floor(u / o);
                  a[l + d] = u - c * o;
                  a[l + d + 1] += c;
                }
              }
              p(a);
              return a;
            }
            function T(t, r) {
              var i = t.length,
                n = new Array(i),
                s = e,
                a = 0,
                o,
                u;
              for (u = 0; u < i; u++) {
                o = t[u] * r + a;
                a = Math.floor(o / s);
                n[u] = o - a * s;
              }
              while (a > 0) {
                n[u++] = a % s;
                a = Math.floor(a / s);
              }
              return n;
            }
            function M(t, e) {
              var r = [];
              while (e-- > 0) {
                r.push(0);
              }
              return r.concat(t);
            }
            function I(t, e) {
              var r = Math.max(t.length, e.length);
              if (r <= 30) return D(t, e);
              r = Math.ceil(r / 2);
              var i = t.slice(r),
                n = t.slice(0, r),
                s = e.slice(r),
                a = e.slice(0, r);
              var o = I(n, a),
                u = I(i, s),
                c = I(w(n, i), w(a, s));
              var l = w(w(o, M(S(S(c, o), u), r)), M(u, 2 * r));
              p(l);
              return l;
            }
            function A(t, e) {
              return -.012 * t - .012 * e + 15e-6 * t * e > 0;
            }
            c.prototype.multiply = function (t) {
              var r = st(t),
                i = this.value,
                n = r.value,
                s = this.sign !== r.sign,
                a;
              if (r.isSmall) {
                if (0 === n) return u[0];
                if (1 === n) return this;
                if (-1 === n) return this.negate();
                a = Math.abs(n);
                if (a < e) return new c(T(i, a), s);
                n = d(a);
              }
              if (A(i.length, n.length)) return new c(I(i, n), s);
              return new c(D(i, n), s);
            };
            c.prototype.times = c.prototype.multiply;
            function x(t, r, i) {
              if (t < e) return new c(T(r, t), i);
              return new c(D(r, d(t)), i);
            }
            l.prototype._multiplyBySmall = function (t) {
              if (h(t.value * this.value)) return new l(t.value * this.value);
              return x(Math.abs(t.value), d(Math.abs(this.value)), this.sign !== t.sign);
            };
            c.prototype._multiplyBySmall = function (t) {
              if (0 === t.value) return u[0];
              if (1 === t.value) return this;
              if (-1 === t.value) return this.negate();
              return x(Math.abs(t.value), this.value, this.sign !== t.sign);
            };
            l.prototype.multiply = function (t) {
              return st(t)._multiplyBySmall(this);
            };
            l.prototype.times = l.prototype.multiply;
            f.prototype.multiply = function (t) {
              return new f(this.value * st(t).value);
            };
            f.prototype.times = f.prototype.multiply;
            function R(t) {
              var r = t.length,
                i = g(r + r),
                n = e,
                s,
                a,
                o,
                u,
                c;
              for (o = 0; o < r; o++) {
                u = t[o];
                a = 0 - u * u;
                for (var l = o; l < r; l++) {
                  c = t[l];
                  s = 2 * (u * c) + i[o + l] + a;
                  a = Math.floor(s / n);
                  i[o + l] = s - a * n;
                }
                i[o + r] = a;
              }
              p(i);
              return i;
            }
            c.prototype.square = function () {
              return new c(R(this.value), false);
            };
            l.prototype.square = function () {
              var t = this.value * this.value;
              if (h(t)) return new l(t);
              return new c(R(d(Math.abs(this.value))), false);
            };
            f.prototype.square = function (t) {
              return new f(this.value * this.value);
            };
            function B(t, r) {
              var i = t.length,
                n = r.length,
                s = e,
                a = g(r.length),
                o = r[n - 1],
                u = Math.ceil(s / (2 * o)),
                c = T(t, u),
                l = T(r, u),
                f,
                h,
                d,
                p,
                y,
                m,
                w;
              if (c.length <= i) c.push(0);
              l.push(0);
              o = l[n - 1];
              for (h = i - n; h >= 0; h--) {
                f = s - 1;
                if (c[h + n] !== o) f = Math.floor((c[h + n] * s + c[h + n - 1]) / o);
                d = 0;
                p = 0;
                m = l.length;
                for (y = 0; y < m; y++) {
                  d += f * l[y];
                  w = Math.floor(d / s);
                  p += c[h + y] - (d - w * s);
                  d = w;
                  if (p < 0) {
                    c[h + y] = p + s;
                    p = -1;
                  } else {
                    c[h + y] = p;
                    p = 0;
                  }
                }
                while (0 !== p) {
                  f -= 1;
                  d = 0;
                  for (y = 0; y < m; y++) {
                    d += c[h + y] - s + l[y];
                    if (d < 0) {
                      c[h + y] = d + s;
                      d = 0;
                    } else {
                      c[h + y] = d;
                      d = 1;
                    }
                  }
                  p += d;
                }
                a[h] = f;
              }
              c = k(c, u)[0];
              return [v(a), v(c)];
            }
            function O(t, r) {
              var i = t.length,
                n = r.length,
                s = [],
                a = [],
                o = e,
                u,
                c,
                l,
                f,
                h;
              while (i) {
                a.unshift(t[--i]);
                p(a);
                if (N(a, r) < 0) {
                  s.push(0);
                  continue;
                }
                c = a.length;
                l = a[c - 1] * o + a[c - 2];
                f = r[n - 1] * o + r[n - 2];
                if (c > n) l = (l + 1) * o;
                u = Math.ceil(l / f);
                do {
                  h = T(r, u);
                  if (N(h, a) <= 0) break;
                  u--;
                } while (u);
                s.push(u);
                a = S(a, h);
              }
              s.reverse();
              return [v(s), v(a)];
            }
            function k(t, r) {
              var i = t.length,
                n = g(i),
                s = e,
                a,
                o,
                u,
                c;
              u = 0;
              for (a = i - 1; a >= 0; --a) {
                c = u * s + t[a];
                o = y(c / r);
                u = c - o * r;
                n[a] = 0 | o;
              }
              return [n, 0 | u];
            }
            function C(t, r) {
              var i,
                n = st(r);
              if (o) return [new f(t.value / n.value), new f(t.value % n.value)];
              var s = t.value,
                a = n.value;
              var h;
              if (0 === a) throw new Error("Cannot divide by zero");
              if (t.isSmall) {
                if (n.isSmall) return [new l(y(s / a)), new l(s % a)];
                return [u[0], t];
              }
              if (n.isSmall) {
                if (1 === a) return [t, u[0]];
                if (-1 == a) return [t.negate(), u[0]];
                var p = Math.abs(a);
                if (p < e) {
                  i = k(s, p);
                  h = v(i[0]);
                  var g = i[1];
                  if (t.sign) g = -g;
                  if ("number" === typeof h) {
                    if (t.sign !== n.sign) h = -h;
                    return [new l(h), new l(g)];
                  }
                  return [new c(h, t.sign !== n.sign), new l(g)];
                }
                a = d(p);
              }
              var m = N(s, a);
              if (-1 === m) return [u[0], t];
              if (0 === m) return [u[t.sign === n.sign ? 1 : -1], u[0]];
              if (s.length + a.length <= 200) i = B(s, a);else i = O(s, a);
              h = i[0];
              var w = t.sign !== n.sign,
                _ = i[1],
                S = t.sign;
              if ("number" === typeof h) {
                if (w) h = -h;
                h = new l(h);
              } else h = new c(h, w);
              if ("number" === typeof _) {
                if (S) _ = -_;
                _ = new l(_);
              } else _ = new c(_, S);
              return [h, _];
            }
            c.prototype.divmod = function (t) {
              var e = C(this, t);
              return {
                quotient: e[0],
                remainder: e[1]
              };
            };
            f.prototype.divmod = l.prototype.divmod = c.prototype.divmod;
            c.prototype.divide = function (t) {
              return C(this, t)[0];
            };
            f.prototype.over = f.prototype.divide = function (t) {
              return new f(this.value / st(t).value);
            };
            l.prototype.over = l.prototype.divide = c.prototype.over = c.prototype.divide;
            c.prototype.mod = function (t) {
              return C(this, t)[1];
            };
            f.prototype.mod = f.prototype.remainder = function (t) {
              return new f(this.value % st(t).value);
            };
            l.prototype.remainder = l.prototype.mod = c.prototype.remainder = c.prototype.mod;
            c.prototype.pow = function (t) {
              var e = st(t),
                r = this.value,
                i = e.value,
                n,
                s,
                a;
              if (0 === i) return u[1];
              if (0 === r) return u[0];
              if (1 === r) return u[1];
              if (-1 === r) return e.isEven() ? u[1] : u[-1];
              if (e.sign) return u[0];
              if (!e.isSmall) throw new Error("The exponent " + e.toString() + " is too large.");
              if (this.isSmall) if (h(n = Math.pow(r, i))) return new l(y(n));
              s = this;
              a = u[1];
              while (true) {
                if (i & 1 === 1) {
                  a = a.times(s);
                  --i;
                }
                if (0 === i) break;
                i /= 2;
                s = s.square();
              }
              return a;
            };
            l.prototype.pow = c.prototype.pow;
            f.prototype.pow = function (t) {
              var e = st(t);
              var r = this.value,
                i = e.value;
              var n = BigInt(0),
                s = BigInt(1),
                a = BigInt(2);
              if (i === n) return u[1];
              if (r === n) return u[0];
              if (r === s) return u[1];
              if (r === BigInt(-1)) return e.isEven() ? u[1] : u[-1];
              if (e.isNegative()) return new f(n);
              var o = this;
              var c = u[1];
              while (true) {
                if ((i & s) === s) {
                  c = c.times(o);
                  --i;
                }
                if (i === n) break;
                i /= a;
                o = o.square();
              }
              return c;
            };
            c.prototype.modPow = function (t, e) {
              t = st(t);
              e = st(e);
              if (e.isZero()) throw new Error("Cannot take modPow with modulus 0");
              var r = u[1],
                i = this.mod(e);
              if (t.isNegative()) {
                t = t.multiply(u[-1]);
                i = i.modInv(e);
              }
              while (t.isPositive()) {
                if (i.isZero()) return u[0];
                if (t.isOdd()) r = r.multiply(i).mod(e);
                t = t.divide(2);
                i = i.square().mod(e);
              }
              return r;
            };
            f.prototype.modPow = l.prototype.modPow = c.prototype.modPow;
            function N(t, e) {
              if (t.length !== e.length) return t.length > e.length ? 1 : -1;
              for (var r = t.length - 1; r >= 0; r--) {
                if (t[r] !== e[r]) return t[r] > e[r] ? 1 : -1;
              }
              return 0;
            }
            c.prototype.compareAbs = function (t) {
              var e = st(t),
                r = this.value,
                i = e.value;
              if (e.isSmall) return 1;
              return N(r, i);
            };
            l.prototype.compareAbs = function (t) {
              var e = st(t),
                r = Math.abs(this.value),
                i = e.value;
              if (e.isSmall) {
                i = Math.abs(i);
                return r === i ? 0 : r > i ? 1 : -1;
              }
              return -1;
            };
            f.prototype.compareAbs = function (t) {
              var e = this.value;
              var r = st(t).value;
              e = e >= 0 ? e : -e;
              r = r >= 0 ? r : -r;
              return e === r ? 0 : e > r ? 1 : -1;
            };
            c.prototype.compare = function (t) {
              if (t === 1 / 0) return -1;
              if (t === -1 / 0) return 1;
              var e = st(t),
                r = this.value,
                i = e.value;
              if (this.sign !== e.sign) return e.sign ? 1 : -1;
              if (e.isSmall) return this.sign ? -1 : 1;
              return N(r, i) * (this.sign ? -1 : 1);
            };
            c.prototype.compareTo = c.prototype.compare;
            l.prototype.compare = function (t) {
              if (t === 1 / 0) return -1;
              if (t === -1 / 0) return 1;
              var e = st(t),
                r = this.value,
                i = e.value;
              if (e.isSmall) return r == i ? 0 : r > i ? 1 : -1;
              if (r < 0 !== e.sign) return r < 0 ? -1 : 1;
              return r < 0 ? 1 : -1;
            };
            l.prototype.compareTo = l.prototype.compare;
            f.prototype.compare = function (t) {
              if (t === 1 / 0) return -1;
              if (t === -1 / 0) return 1;
              var e = this.value;
              var r = st(t).value;
              return e === r ? 0 : e > r ? 1 : -1;
            };
            f.prototype.compareTo = f.prototype.compare;
            c.prototype.equals = function (t) {
              return 0 === this.compare(t);
            };
            f.prototype.eq = f.prototype.equals = l.prototype.eq = l.prototype.equals = c.prototype.eq = c.prototype.equals;
            c.prototype.notEquals = function (t) {
              return 0 !== this.compare(t);
            };
            f.prototype.neq = f.prototype.notEquals = l.prototype.neq = l.prototype.notEquals = c.prototype.neq = c.prototype.notEquals;
            c.prototype.greater = function (t) {
              return this.compare(t) > 0;
            };
            f.prototype.gt = f.prototype.greater = l.prototype.gt = l.prototype.greater = c.prototype.gt = c.prototype.greater;
            c.prototype.lesser = function (t) {
              return this.compare(t) < 0;
            };
            f.prototype.lt = f.prototype.lesser = l.prototype.lt = l.prototype.lesser = c.prototype.lt = c.prototype.lesser;
            c.prototype.greaterOrEquals = function (t) {
              return this.compare(t) >= 0;
            };
            f.prototype.geq = f.prototype.greaterOrEquals = l.prototype.geq = l.prototype.greaterOrEquals = c.prototype.geq = c.prototype.greaterOrEquals;
            c.prototype.lesserOrEquals = function (t) {
              return this.compare(t) <= 0;
            };
            f.prototype.leq = f.prototype.lesserOrEquals = l.prototype.leq = l.prototype.lesserOrEquals = c.prototype.leq = c.prototype.lesserOrEquals;
            c.prototype.isEven = function () {
              return 0 === (1 & this.value[0]);
            };
            l.prototype.isEven = function () {
              return 0 === (1 & this.value);
            };
            f.prototype.isEven = function () {
              return (this.value & BigInt(1)) === BigInt(0);
            };
            c.prototype.isOdd = function () {
              return 1 === (1 & this.value[0]);
            };
            l.prototype.isOdd = function () {
              return 1 === (1 & this.value);
            };
            f.prototype.isOdd = function () {
              return (this.value & BigInt(1)) === BigInt(1);
            };
            c.prototype.isPositive = function () {
              return !this.sign;
            };
            l.prototype.isPositive = function () {
              return this.value > 0;
            };
            f.prototype.isPositive = l.prototype.isPositive;
            c.prototype.isNegative = function () {
              return this.sign;
            };
            l.prototype.isNegative = function () {
              return this.value < 0;
            };
            f.prototype.isNegative = l.prototype.isNegative;
            c.prototype.isUnit = function () {
              return false;
            };
            l.prototype.isUnit = function () {
              return 1 === Math.abs(this.value);
            };
            f.prototype.isUnit = function () {
              return this.abs().value === BigInt(1);
            };
            c.prototype.isZero = function () {
              return false;
            };
            l.prototype.isZero = function () {
              return 0 === this.value;
            };
            f.prototype.isZero = function () {
              return this.value === BigInt(0);
            };
            c.prototype.isDivisibleBy = function (t) {
              var e = st(t);
              if (e.isZero()) return false;
              if (e.isUnit()) return true;
              if (0 === e.compareAbs(2)) return this.isEven();
              return this.mod(e).isZero();
            };
            f.prototype.isDivisibleBy = l.prototype.isDivisibleBy = c.prototype.isDivisibleBy;
            function P(t) {
              var e = t.abs();
              if (e.isUnit()) return false;
              if (e.equals(2) || e.equals(3) || e.equals(5)) return true;
              if (e.isEven() || e.isDivisibleBy(3) || e.isDivisibleBy(5)) return false;
              if (e.lesser(49)) return true;
            }
            function V(t, e) {
              var r = t.prev(),
                i = r,
                s = 0,
                a,
                u,
                c;
              while (i.isEven()) {
                i = i.divide(2), s++;
              }
              t: for (u = 0; u < e.length; u++) {
                if (t.lesser(e[u])) continue;
                c = n(e[u]).modPow(i, t);
                if (c.isUnit() || c.equals(r)) continue;
                for (a = s - 1; 0 != a; a--) {
                  c = c.square().mod(t);
                  if (c.isUnit()) return false;
                  if (c.equals(r)) continue t;
                }
                return false;
              }
              return true;
            }
            c.prototype.isPrime = function (e) {
              var r = P(this);
              if (r !== t) return r;
              var i = this.abs();
              var s = i.bitLength();
              if (s <= 64) return V(i, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]);
              var a = Math.log(2) * s.toJSNumber();
              var o = Math.ceil(true === e ? 2 * Math.pow(a, 2) : a);
              for (var u = [], c = 0; c < o; c++) {
                u.push(n(c + 2));
              }
              return V(i, u);
            };
            f.prototype.isPrime = l.prototype.isPrime = c.prototype.isPrime;
            c.prototype.isProbablePrime = function (e, r) {
              var i = P(this);
              if (i !== t) return i;
              var s = this.abs();
              var a = e === t ? 5 : e;
              for (var o = [], u = 0; u < a; u++) {
                o.push(n.randBetween(2, s.minus(2), r));
              }
              return V(s, o);
            };
            f.prototype.isProbablePrime = l.prototype.isProbablePrime = c.prototype.isProbablePrime;
            c.prototype.modInv = function (t) {
              var e = n.zero,
                r = n.one,
                i = st(t),
                s = this.abs(),
                a,
                o,
                u;
              while (!s.isZero()) {
                a = i.divide(s);
                o = e;
                u = i;
                e = r;
                i = s;
                r = o.subtract(a.multiply(r));
                s = u.subtract(a.multiply(s));
              }
              if (!i.isUnit()) throw new Error(this.toString() + " and " + t.toString() + " are not co-prime");
              if (-1 === e.compare(0)) e = e.add(t);
              if (this.isNegative()) return e.negate();
              return e;
            };
            f.prototype.modInv = l.prototype.modInv = c.prototype.modInv;
            c.prototype.next = function () {
              var t = this.value;
              if (this.sign) return E(t, 1, this.sign);
              return new c(_(t, 1), this.sign);
            };
            l.prototype.next = function () {
              var t = this.value;
              if (t + 1 < i) return new l(t + 1);
              return new c(s, false);
            };
            f.prototype.next = function () {
              return new f(this.value + BigInt(1));
            };
            c.prototype.prev = function () {
              var t = this.value;
              if (this.sign) return new c(_(t, 1), true);
              return E(t, 1, this.sign);
            };
            l.prototype.prev = function () {
              var t = this.value;
              if (t - 1 > -i) return new l(t - 1);
              return new c(s, true);
            };
            f.prototype.prev = function () {
              return new f(this.value - BigInt(1));
            };
            var L = [1];
            while (2 * L[L.length - 1] <= e) {
              L.push(2 * L[L.length - 1]);
            }
            var H = L.length,
              U = L[H - 1];
            function K(t) {
              return Math.abs(t) <= e;
            }
            c.prototype.shiftLeft = function (t) {
              var e = st(t).toJSNumber();
              if (!K(e)) throw new Error(String(e) + " is too large for shifting.");
              if (e < 0) return this.shiftRight(-e);
              var r = this;
              if (r.isZero()) return r;
              while (e >= H) {
                r = r.multiply(U);
                e -= H - 1;
              }
              return r.multiply(L[e]);
            };
            f.prototype.shiftLeft = l.prototype.shiftLeft = c.prototype.shiftLeft;
            c.prototype.shiftRight = function (t) {
              var e;
              var r = st(t).toJSNumber();
              if (!K(r)) throw new Error(String(r) + " is too large for shifting.");
              if (r < 0) return this.shiftLeft(-r);
              var i = this;
              while (r >= H) {
                if (i.isZero() || i.isNegative() && i.isUnit()) return i;
                e = C(i, U);
                i = e[1].isNegative() ? e[0].prev() : e[0];
                r -= H - 1;
              }
              e = C(i, L[r]);
              return e[1].isNegative() ? e[0].prev() : e[0];
            };
            f.prototype.shiftRight = l.prototype.shiftRight = c.prototype.shiftRight;
            function j(t, e, r) {
              e = st(e);
              var i = t.isNegative(),
                s = e.isNegative();
              var a = i ? t.not() : t,
                o = s ? e.not() : e;
              var u = 0,
                c = 0;
              var l = null,
                f = null;
              var h = [];
              while (!a.isZero() || !o.isZero()) {
                l = C(a, U);
                u = l[1].toJSNumber();
                if (i) u = U - 1 - u;
                f = C(o, U);
                c = f[1].toJSNumber();
                if (s) c = U - 1 - c;
                a = l[0];
                o = f[0];
                h.push(r(u, c));
              }
              var d = 0 !== r(i ? 1 : 0, s ? 1 : 0) ? n(-1) : n(0);
              for (var v = h.length - 1; v >= 0; v -= 1) {
                d = d.multiply(U).add(n(h[v]));
              }
              return d;
            }
            c.prototype.not = function () {
              return this.negate().prev();
            };
            f.prototype.not = l.prototype.not = c.prototype.not;
            c.prototype.and = function (t) {
              return j(this, t, function (t, e) {
                return t & e;
              });
            };
            f.prototype.and = l.prototype.and = c.prototype.and;
            c.prototype.or = function (t) {
              return j(this, t, function (t, e) {
                return t | e;
              });
            };
            f.prototype.or = l.prototype.or = c.prototype.or;
            c.prototype.xor = function (t) {
              return j(this, t, function (t, e) {
                return t ^ e;
              });
            };
            f.prototype.xor = l.prototype.xor = c.prototype.xor;
            var q = 1 << 30,
              F = (e & -e) * (e & -e) | q;
            function z(t) {
              var r = t.value,
                i = "number" === typeof r ? r | q : "bigint" === typeof r ? r | BigInt(q) : r[0] + r[1] * e | F;
              return i & -i;
            }
            function G(t, e) {
              if (e.compareTo(t) <= 0) {
                var r = G(t, e.square(e));
                var i = r.p;
                var s = r.e;
                var a = i.multiply(e);
                return a.compareTo(t) <= 0 ? {
                  p: a,
                  e: 2 * s + 1
                } : {
                  p: i,
                  e: 2 * s
                };
              }
              return {
                p: n(1),
                e: 0
              };
            }
            c.prototype.bitLength = function () {
              var t = this;
              if (t.compareTo(n(0)) < 0) t = t.negate().subtract(n(1));
              if (0 === t.compareTo(n(0))) return n(0);
              return n(G(t, n(2)).e).add(n(1));
            };
            f.prototype.bitLength = l.prototype.bitLength = c.prototype.bitLength;
            function Y(t, e) {
              t = st(t);
              e = st(e);
              return t.greater(e) ? t : e;
            }
            function W(t, e) {
              t = st(t);
              e = st(e);
              return t.lesser(e) ? t : e;
            }
            function J(t, e) {
              t = st(t).abs();
              e = st(e).abs();
              if (t.equals(e)) return t;
              if (t.isZero()) return e;
              if (e.isZero()) return t;
              var r = u[1],
                i,
                n;
              while (t.isEven() && e.isEven()) {
                i = W(z(t), z(e));
                t = t.divide(i);
                e = e.divide(i);
                r = r.multiply(i);
              }
              while (t.isEven()) {
                t = t.divide(z(t));
              }
              do {
                while (e.isEven()) {
                  e = e.divide(z(e));
                }
                if (t.greater(e)) {
                  n = e;
                  e = t;
                  t = n;
                }
                e = e.subtract(t);
              } while (!e.isZero());
              return r.isUnit() ? t : t.multiply(r);
            }
            function Z(t, e) {
              t = st(t).abs();
              e = st(e).abs();
              return t.divide(J(t, e)).multiply(e);
            }
            function $(t, r, i) {
              t = st(t);
              r = st(r);
              var n = i || Math.random;
              var s = W(t, r),
                a = Y(t, r);
              var o = a.subtract(s).add(1);
              if (o.isSmall) return s.add(Math.floor(n() * o));
              var c = et(o, e).value;
              var l = [],
                f = true;
              for (var h = 0; h < c.length; h++) {
                var d = f ? c[h] + (h + 1 < c.length ? c[h + 1] / e : 0) : e;
                var v = y(n() * d);
                l.push(v);
                if (v < c[h]) f = false;
              }
              return s.add(u.fromArray(l, e, false));
            }
            var X = function X(t, e, r, i) {
              r = r || a;
              t = String(t);
              if (!i) {
                t = t.toLowerCase();
                r = r.toLowerCase();
              }
              var n = t.length;
              var s;
              var o = Math.abs(e);
              var u = {};
              for (s = 0; s < r.length; s++) {
                u[r[s]] = s;
              }
              for (s = 0; s < n; s++) {
                var c = t[s];
                if ("-" === c) continue;
                if (c in u) if (u[c] >= o) {
                  if ("1" === c && 1 === o) continue;
                  throw new Error(c + " is not a valid digit in base " + e + ".");
                }
              }
              e = st(e);
              var l = [];
              var f = "-" === t[0];
              for (s = f ? 1 : 0; s < t.length; s++) {
                var c = t[s];
                if (c in u) l.push(st(u[c]));else if ("<" === c) {
                  var h = s;
                  do {
                    s++;
                  } while (">" !== t[s] && s < t.length);
                  l.push(st(t.slice(h + 1, s)));
                } else throw new Error(c + " is not a valid character");
              }
              return Q(l, e, f);
            };
            function Q(t, e, r) {
              var i = u[0],
                n = u[1],
                s;
              for (s = t.length - 1; s >= 0; s--) {
                i = i.add(t[s].times(n));
                n = n.times(e);
              }
              return r ? i.negate() : i;
            }
            function tt(t, e) {
              e = e || a;
              if (t < e.length) return e[t];
              return "<" + t + ">";
            }
            function et(t, e) {
              e = n(e);
              if (e.isZero()) {
                if (t.isZero()) return {
                  value: [0],
                  isNegative: false
                };
                throw new Error("Cannot convert nonzero numbers to base 0.");
              }
              if (e.equals(-1)) {
                if (t.isZero()) return {
                  value: [0],
                  isNegative: false
                };
                if (t.isNegative()) return {
                  value: [].concat.apply([], Array.apply(null, Array(-t.toJSNumber())).map(Array.prototype.valueOf, [1, 0])),
                  isNegative: false
                };
                var r = Array.apply(null, Array(t.toJSNumber() - 1)).map(Array.prototype.valueOf, [0, 1]);
                r.unshift([1]);
                return {
                  value: [].concat.apply([], r),
                  isNegative: false
                };
              }
              var i = false;
              if (t.isNegative() && e.isPositive()) {
                i = true;
                t = t.abs();
              }
              if (e.isUnit()) {
                if (t.isZero()) return {
                  value: [0],
                  isNegative: false
                };
                return {
                  value: Array.apply(null, Array(t.toJSNumber())).map(Number.prototype.valueOf, 1),
                  isNegative: i
                };
              }
              var s = [];
              var a = t,
                o;
              while (a.isNegative() || a.compareAbs(e) >= 0) {
                o = a.divmod(e);
                a = o.quotient;
                var u = o.remainder;
                if (u.isNegative()) {
                  u = e.minus(u).abs();
                  a = a.next();
                }
                s.push(u.toJSNumber());
              }
              s.push(a.toJSNumber());
              return {
                value: s.reverse(),
                isNegative: i
              };
            }
            function rt(t, e, r) {
              var i = et(t, e);
              return (i.isNegative ? "-" : "") + i.value.map(function (t) {
                return tt(t, r);
              }).join("");
            }
            c.prototype.toArray = function (t) {
              return et(this, t);
            };
            l.prototype.toArray = function (t) {
              return et(this, t);
            };
            f.prototype.toArray = function (t) {
              return et(this, t);
            };
            c.prototype.toString = function (e, r) {
              if (e === t) e = 10;
              if (10 !== e) return rt(this, e, r);
              var i = this.value,
                n = i.length,
                s = String(i[--n]),
                a = "0000000",
                o;
              while (--n >= 0) {
                o = String(i[n]);
                s += a.slice(o.length) + o;
              }
              var u = this.sign ? "-" : "";
              return u + s;
            };
            l.prototype.toString = function (e, r) {
              if (e === t) e = 10;
              if (10 != e) return rt(this, e, r);
              return String(this.value);
            };
            f.prototype.toString = l.prototype.toString;
            f.prototype.toJSON = c.prototype.toJSON = l.prototype.toJSON = function () {
              return this.toString();
            };
            c.prototype.valueOf = function () {
              return parseInt(this.toString(), 10);
            };
            c.prototype.toJSNumber = c.prototype.valueOf;
            l.prototype.valueOf = function () {
              return this.value;
            };
            l.prototype.toJSNumber = l.prototype.valueOf;
            f.prototype.valueOf = f.prototype.toJSNumber = function () {
              return parseInt(this.toString(), 10);
            };
            function it(t) {
              if (h(+t)) {
                var e = +t;
                if (e === y(e)) return o ? new f(BigInt(e)) : new l(e);
                throw new Error("Invalid integer: " + t);
              }
              var i = "-" === t[0];
              if (i) t = t.slice(1);
              var n = t.split(/e/i);
              if (n.length > 2) throw new Error("Invalid integer: " + n.join("e"));
              if (2 === n.length) {
                var s = n[1];
                if ("+" === s[0]) s = s.slice(1);
                s = +s;
                if (s !== y(s) || !h(s)) throw new Error("Invalid integer: " + s + " is not a valid exponent.");
                var a = n[0];
                var u = a.indexOf(".");
                if (u >= 0) {
                  s -= a.length - u - 1;
                  a = a.slice(0, u) + a.slice(u + 1);
                }
                if (s < 0) throw new Error("Cannot include negative exponent part for integers");
                a += new Array(s + 1).join("0");
                t = a;
              }
              var d = /^([0-9][0-9]*)$/.test(t);
              if (!d) throw new Error("Invalid integer: " + t);
              if (o) return new f(BigInt(i ? "-" + t : t));
              var v = [],
                g = t.length,
                m = r,
                w = g - m;
              while (g > 0) {
                v.push(+t.slice(w, g));
                w -= m;
                if (w < 0) w = 0;
                g -= m;
              }
              p(v);
              return new c(v, i);
            }
            function nt(t) {
              if (o) return new f(BigInt(t));
              if (h(t)) {
                if (t !== y(t)) throw new Error(t + " is not an integer.");
                return new l(t);
              }
              return it(t.toString());
            }
            function st(t) {
              if ("number" === typeof t) return nt(t);
              if ("string" === typeof t) return it(t);
              if ("bigint" === typeof t) return new f(t);
              return t;
            }
            for (var at = 0; at < 1e3; at++) {
              u[at] = st(at);
              if (at > 0) u[-at] = st(-at);
            }
            u.one = u[1];
            u.zero = u[0];
            u.minusOne = u[-1];
            u.max = Y;
            u.min = W;
            u.gcd = J;
            u.lcm = Z;
            u.isInstance = function (t) {
              return t instanceof c || t instanceof l || t instanceof f;
            };
            u.randBetween = $;
            u.fromArray = function (t, e, r) {
              return Q(t.map(st), st(e || 10), r);
            };
            return u;
          }();
          if (t.hasOwnProperty("exports")) t.exports = n;
          i = function () {
            return n;
          }.call(e, r, e, t), void 0 !== i && (t.exports = i);
        },
        452: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.BlockCipher;
              var n = e.algo;
              var s = [];
              var a = [];
              var o = [];
              var u = [];
              var c = [];
              var l = [];
              var f = [];
              var h = [];
              var d = [];
              var v = [];
              (function () {
                var t = [];
                for (var e = 0; e < 256; e++) {
                  if (e < 128) t[e] = e << 1;else t[e] = e << 1 ^ 283;
                }
                var r = 0;
                var i = 0;
                for (var e = 0; e < 256; e++) {
                  var n = i ^ i << 1 ^ i << 2 ^ i << 3 ^ i << 4;
                  n = n >>> 8 ^ 255 & n ^ 99;
                  s[r] = n;
                  a[n] = r;
                  var p = t[r];
                  var g = t[p];
                  var y = t[g];
                  var m = 257 * t[n] ^ 16843008 * n;
                  o[r] = m << 24 | m >>> 8;
                  u[r] = m << 16 | m >>> 16;
                  c[r] = m << 8 | m >>> 24;
                  l[r] = m;
                  var m = 16843009 * y ^ 65537 * g ^ 257 * p ^ 16843008 * r;
                  f[n] = m << 24 | m >>> 8;
                  h[n] = m << 16 | m >>> 16;
                  d[n] = m << 8 | m >>> 24;
                  v[n] = m;
                  if (!r) r = i = 1;else {
                    r = p ^ t[t[t[y ^ p]]];
                    i ^= t[t[i]];
                  }
                }
              })();
              var p = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
              var g = n.AES = i.extend({
                _doReset: function _doReset() {
                  var t;
                  if (this._nRounds && this._keyPriorReset === this._key) return;
                  var e = this._keyPriorReset = this._key;
                  var r = e.words;
                  var i = e.sigBytes / 4;
                  var n = this._nRounds = i + 6;
                  var a = 4 * (n + 1);
                  var o = this._keySchedule = [];
                  for (var u = 0; u < a; u++) {
                    if (u < i) o[u] = r[u];else {
                      t = o[u - 1];
                      if (!(u % i)) {
                        t = t << 8 | t >>> 24;
                        t = s[t >>> 24] << 24 | s[t >>> 16 & 255] << 16 | s[t >>> 8 & 255] << 8 | s[255 & t];
                        t ^= p[u / i | 0] << 24;
                      } else if (i > 6 && u % i == 4) t = s[t >>> 24] << 24 | s[t >>> 16 & 255] << 16 | s[t >>> 8 & 255] << 8 | s[255 & t];
                      o[u] = o[u - i] ^ t;
                    }
                  }
                  var c = this._invKeySchedule = [];
                  for (var l = 0; l < a; l++) {
                    var u = a - l;
                    if (l % 4) var t = o[u];else var t = o[u - 4];
                    if (l < 4 || u <= 4) c[l] = t;else c[l] = f[s[t >>> 24]] ^ h[s[t >>> 16 & 255]] ^ d[s[t >>> 8 & 255]] ^ v[s[255 & t]];
                  }
                },
                encryptBlock: function encryptBlock(t, e) {
                  this._doCryptBlock(t, e, this._keySchedule, o, u, c, l, s);
                },
                decryptBlock: function decryptBlock(t, e) {
                  var r = t[e + 1];
                  t[e + 1] = t[e + 3];
                  t[e + 3] = r;
                  this._doCryptBlock(t, e, this._invKeySchedule, f, h, d, v, a);
                  var r = t[e + 1];
                  t[e + 1] = t[e + 3];
                  t[e + 3] = r;
                },
                _doCryptBlock: function _doCryptBlock(t, e, r, i, n, s, a, o) {
                  var u = this._nRounds;
                  var c = t[e] ^ r[0];
                  var l = t[e + 1] ^ r[1];
                  var f = t[e + 2] ^ r[2];
                  var h = t[e + 3] ^ r[3];
                  var d = 4;
                  for (var v = 1; v < u; v++) {
                    var p = i[c >>> 24] ^ n[l >>> 16 & 255] ^ s[f >>> 8 & 255] ^ a[255 & h] ^ r[d++];
                    var g = i[l >>> 24] ^ n[f >>> 16 & 255] ^ s[h >>> 8 & 255] ^ a[255 & c] ^ r[d++];
                    var y = i[f >>> 24] ^ n[h >>> 16 & 255] ^ s[c >>> 8 & 255] ^ a[255 & l] ^ r[d++];
                    var m = i[h >>> 24] ^ n[c >>> 16 & 255] ^ s[l >>> 8 & 255] ^ a[255 & f] ^ r[d++];
                    c = p;
                    l = g;
                    f = y;
                    h = m;
                  }
                  var p = (o[c >>> 24] << 24 | o[l >>> 16 & 255] << 16 | o[f >>> 8 & 255] << 8 | o[255 & h]) ^ r[d++];
                  var g = (o[l >>> 24] << 24 | o[f >>> 16 & 255] << 16 | o[h >>> 8 & 255] << 8 | o[255 & c]) ^ r[d++];
                  var y = (o[f >>> 24] << 24 | o[h >>> 16 & 255] << 16 | o[c >>> 8 & 255] << 8 | o[255 & l]) ^ r[d++];
                  var m = (o[h >>> 24] << 24 | o[c >>> 16 & 255] << 16 | o[l >>> 8 & 255] << 8 | o[255 & f]) ^ r[d++];
                  t[e] = p;
                  t[e + 1] = g;
                  t[e + 2] = y;
                  t[e + 3] = m;
                },
                keySize: 256 / 32
              });
              e.AES = i._createHelper(g);
            })();
            return t.AES;
          });
        },
        5109: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(888));
          })(this, function (t) {
            t.lib.Cipher || function (e) {
              var r = t;
              var i = r.lib;
              var n = i.Base;
              var s = i.WordArray;
              var a = i.BufferedBlockAlgorithm;
              var o = r.enc;
              o.Utf8;
              var c = o.Base64;
              var l = r.algo;
              var f = l.EvpKDF;
              var h = i.Cipher = a.extend({
                cfg: n.extend(),
                createEncryptor: function createEncryptor(t, e) {
                  return this.create(this._ENC_XFORM_MODE, t, e);
                },
                createDecryptor: function createDecryptor(t, e) {
                  return this.create(this._DEC_XFORM_MODE, t, e);
                },
                init: function init(t, e, r) {
                  this.cfg = this.cfg.extend(r);
                  this._xformMode = t;
                  this._key = e;
                  this.reset();
                },
                reset: function reset() {
                  a.reset.call(this);
                  this._doReset();
                },
                process: function process(t) {
                  this._append(t);
                  return this._process();
                },
                finalize: function finalize(t) {
                  if (t) this._append(t);
                  var e = this._doFinalize();
                  return e;
                },
                keySize: 128 / 32,
                ivSize: 128 / 32,
                _ENC_XFORM_MODE: 1,
                _DEC_XFORM_MODE: 2,
                _createHelper: function () {
                  function t(t) {
                    if ("string" == typeof t) return M;else return E;
                  }
                  return function (e) {
                    return {
                      encrypt: function encrypt(r, i, n) {
                        return t(i).encrypt(e, r, i, n);
                      },
                      decrypt: function decrypt(r, i, n) {
                        return t(i).decrypt(e, r, i, n);
                      }
                    };
                  };
                }()
              });
              i.StreamCipher = h.extend({
                _doFinalize: function _doFinalize() {
                  var t = this._process(!!"flush");
                  return t;
                },
                blockSize: 1
              });
              var v = r.mode = {};
              var p = i.BlockCipherMode = n.extend({
                createEncryptor: function createEncryptor(t, e) {
                  return this.Encryptor.create(t, e);
                },
                createDecryptor: function createDecryptor(t, e) {
                  return this.Decryptor.create(t, e);
                },
                init: function init(t, e) {
                  this._cipher = t;
                  this._iv = e;
                }
              });
              var g = v.CBC = function () {
                var t = p.extend();
                t.Encryptor = t.extend({
                  processBlock: function processBlock(t, e) {
                    var i = this._cipher;
                    var n = i.blockSize;
                    r.call(this, t, e, n);
                    i.encryptBlock(t, e);
                    this._prevBlock = t.slice(e, e + n);
                  }
                });
                t.Decryptor = t.extend({
                  processBlock: function processBlock(t, e) {
                    var i = this._cipher;
                    var n = i.blockSize;
                    var s = t.slice(e, e + n);
                    i.decryptBlock(t, e);
                    r.call(this, t, e, n);
                    this._prevBlock = s;
                  }
                });
                function r(t, r, i) {
                  var n;
                  var s = this._iv;
                  if (s) {
                    n = s;
                    this._iv = e;
                  } else n = this._prevBlock;
                  for (var a = 0; a < i; a++) {
                    t[r + a] ^= n[a];
                  }
                }
                return t;
              }();
              var y = r.pad = {};
              var m = y.Pkcs7 = {
                pad: function pad(t, e) {
                  var r = 4 * e;
                  var i = r - t.sigBytes % r;
                  var n = i << 24 | i << 16 | i << 8 | i;
                  var a = [];
                  for (var o = 0; o < i; o += 4) {
                    a.push(n);
                  }
                  var u = s.create(a, i);
                  t.concat(u);
                },
                unpad: function unpad(t) {
                  var e = 255 & t.words[t.sigBytes - 1 >>> 2];
                  t.sigBytes -= e;
                }
              };
              i.BlockCipher = h.extend({
                cfg: h.cfg.extend({
                  mode: g,
                  padding: m
                }),
                reset: function reset() {
                  var t;
                  h.reset.call(this);
                  var e = this.cfg;
                  var r = e.iv;
                  var i = e.mode;
                  if (this._xformMode == this._ENC_XFORM_MODE) t = i.createEncryptor;else {
                    t = i.createDecryptor;
                    this._minBufferSize = 1;
                  }
                  if (this._mode && this._mode.__creator == t) this._mode.init(this, r && r.words);else {
                    this._mode = t.call(i, this, r && r.words);
                    this._mode.__creator = t;
                  }
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  this._mode.processBlock(t, e);
                },
                _doFinalize: function _doFinalize() {
                  var t;
                  var e = this.cfg.padding;
                  if (this._xformMode == this._ENC_XFORM_MODE) {
                    e.pad(this._data, this.blockSize);
                    t = this._process(!!"flush");
                  } else {
                    t = this._process(!!"flush");
                    e.unpad(t);
                  }
                  return t;
                },
                blockSize: 128 / 32
              });
              var _ = i.CipherParams = n.extend({
                init: function init(t) {
                  this.mixIn(t);
                },
                toString: function toString(t) {
                  return (t || this.formatter).stringify(this);
                }
              });
              var S = r.format = {};
              var b = S.OpenSSL = {
                stringify: function stringify(t) {
                  var e;
                  var r = t.ciphertext;
                  var i = t.salt;
                  if (i) e = s.create([1398893684, 1701076831]).concat(i).concat(r);else e = r;
                  return e.toString(c);
                },
                parse: function parse(t) {
                  var e;
                  var r = c.parse(t);
                  var i = r.words;
                  if (1398893684 == i[0] && 1701076831 == i[1]) {
                    e = s.create(i.slice(2, 4));
                    i.splice(0, 4);
                    r.sigBytes -= 16;
                  }
                  return _.create({
                    ciphertext: r,
                    salt: e
                  });
                }
              };
              var E = i.SerializableCipher = n.extend({
                cfg: n.extend({
                  format: b
                }),
                encrypt: function encrypt(t, e, r, i) {
                  i = this.cfg.extend(i);
                  var n = t.createEncryptor(r, i);
                  var s = n.finalize(e);
                  var a = n.cfg;
                  return _.create({
                    ciphertext: s,
                    key: r,
                    iv: a.iv,
                    algorithm: t,
                    mode: a.mode,
                    padding: a.padding,
                    blockSize: t.blockSize,
                    formatter: i.format
                  });
                },
                decrypt: function decrypt(t, e, r, i) {
                  i = this.cfg.extend(i);
                  e = this._parse(e, i.format);
                  var n = t.createDecryptor(r, i).finalize(e.ciphertext);
                  return n;
                },
                _parse: function _parse(t, e) {
                  if ("string" == typeof t) return e.parse(t, this);else return t;
                }
              });
              var D = r.kdf = {};
              var T = D.OpenSSL = {
                execute: function execute(t, e, r, i) {
                  if (!i) i = s.random(64 / 8);
                  var n = f.create({
                    keySize: e + r
                  }).compute(t, i);
                  var a = s.create(n.words.slice(e), 4 * r);
                  n.sigBytes = 4 * e;
                  return _.create({
                    key: n,
                    iv: a,
                    salt: i
                  });
                }
              };
              var M = i.PasswordBasedCipher = E.extend({
                cfg: E.cfg.extend({
                  kdf: T
                }),
                encrypt: function encrypt(t, e, r, i) {
                  i = this.cfg.extend(i);
                  var n = i.kdf.execute(r, t.keySize, t.ivSize);
                  i.iv = n.iv;
                  var s = E.encrypt.call(this, t, e, n.key, i);
                  s.mixIn(n);
                  return s;
                },
                decrypt: function decrypt(t, e, r, i) {
                  i = this.cfg.extend(i);
                  e = this._parse(e, i.format);
                  var n = i.kdf.execute(r, t.keySize, t.ivSize, e.salt);
                  i.iv = n.iv;
                  var s = E.decrypt.call(this, t, e, n.key, i);
                  return s;
                }
              });
            }();
          });
        },
        8249: function _(t, e, r) {
          (function (r, i) {
            t.exports = i();
          })(this, function () {
            var t = t || function (t, e) {
              var i;
              if ("undefined" !== typeof window && window.crypto) i = window.crypto;
              if ("undefined" !== typeof self && self.crypto) i = self.crypto;
              if ("undefined" !== typeof globalThis && globalThis.crypto) i = globalThis.crypto;
              if (!i && "undefined" !== typeof window && window.msCrypto) i = window.msCrypto;
              if (!i && "undefined" !== typeof r.g && r.g.crypto) i = r.g.crypto;
              if (!i && "function" === "function") try {
                i = r(2480);
              } catch (t) {}
              var n = function n() {
                if (i) {
                  if ("function" === typeof i.getRandomValues) try {
                    return i.getRandomValues(new Uint32Array(1))[0];
                  } catch (t) {}
                  if ("function" === typeof i.randomBytes) try {
                    return i.randomBytes(4).readInt32LE();
                  } catch (t) {}
                }
                throw new Error("Native crypto module could not be used to get secure random number.");
              };
              var s = Object.create || function () {
                function t() {}
                return function (e) {
                  var r;
                  t.prototype = e;
                  r = new t();
                  t.prototype = null;
                  return r;
                };
              }();
              var a = {};
              var o = a.lib = {};
              var u = o.Base = function () {
                return {
                  extend: function extend(t) {
                    var e = s(this);
                    if (t) e.mixIn(t);
                    if (!e.hasOwnProperty("init") || this.init === e.init) e.init = function () {
                      e.$super.init.apply(this, arguments);
                    };
                    e.init.prototype = e;
                    e.$super = this;
                    return e;
                  },
                  create: function create() {
                    var t = this.extend();
                    t.init.apply(t, arguments);
                    return t;
                  },
                  init: function init() {},
                  mixIn: function mixIn(t) {
                    for (var e in t) {
                      if (t.hasOwnProperty(e)) this[e] = t[e];
                    }
                    if (t.hasOwnProperty("toString")) this.toString = t.toString;
                  },
                  clone: function clone() {
                    return this.init.prototype.extend(this);
                  }
                };
              }();
              var c = o.WordArray = u.extend({
                init: function init(t, r) {
                  t = this.words = t || [];
                  if (r != e) this.sigBytes = r;else this.sigBytes = 4 * t.length;
                },
                toString: function toString(t) {
                  return (t || f).stringify(this);
                },
                concat: function concat(t) {
                  var e = this.words;
                  var r = t.words;
                  var i = this.sigBytes;
                  var n = t.sigBytes;
                  this.clamp();
                  if (i % 4) for (var s = 0; s < n; s++) {
                    var a = r[s >>> 2] >>> 24 - s % 4 * 8 & 255;
                    e[i + s >>> 2] |= a << 24 - (i + s) % 4 * 8;
                  } else for (var o = 0; o < n; o += 4) {
                    e[i + o >>> 2] = r[o >>> 2];
                  }
                  this.sigBytes += n;
                  return this;
                },
                clamp: function clamp() {
                  var e = this.words;
                  var r = this.sigBytes;
                  e[r >>> 2] &= 4294967295 << 32 - r % 4 * 8;
                  e.length = t.ceil(r / 4);
                },
                clone: function clone() {
                  var t = u.clone.call(this);
                  t.words = this.words.slice(0);
                  return t;
                },
                random: function random(t) {
                  var e = [];
                  for (var r = 0; r < t; r += 4) {
                    e.push(n());
                  }
                  return new c.init(e, t);
                }
              });
              var l = a.enc = {};
              var f = l.Hex = {
                stringify: function stringify(t) {
                  var e = t.words;
                  var r = t.sigBytes;
                  var i = [];
                  for (var n = 0; n < r; n++) {
                    var s = e[n >>> 2] >>> 24 - n % 4 * 8 & 255;
                    i.push((s >>> 4).toString(16));
                    i.push((15 & s).toString(16));
                  }
                  return i.join("");
                },
                parse: function parse(t) {
                  var e = t.length;
                  var r = [];
                  for (var i = 0; i < e; i += 2) {
                    r[i >>> 3] |= parseInt(t.substr(i, 2), 16) << 24 - i % 8 * 4;
                  }
                  return new c.init(r, e / 2);
                }
              };
              var h = l.Latin1 = {
                stringify: function stringify(t) {
                  var e = t.words;
                  var r = t.sigBytes;
                  var i = [];
                  for (var n = 0; n < r; n++) {
                    var s = e[n >>> 2] >>> 24 - n % 4 * 8 & 255;
                    i.push(String.fromCharCode(s));
                  }
                  return i.join("");
                },
                parse: function parse(t) {
                  var e = t.length;
                  var r = [];
                  for (var i = 0; i < e; i++) {
                    r[i >>> 2] |= (255 & t.charCodeAt(i)) << 24 - i % 4 * 8;
                  }
                  return new c.init(r, e);
                }
              };
              var d = l.Utf8 = {
                stringify: function stringify(t) {
                  try {
                    return decodeURIComponent(escape(h.stringify(t)));
                  } catch (t) {
                    throw new Error("Malformed UTF-8 data");
                  }
                },
                parse: function parse(t) {
                  return h.parse(unescape(encodeURIComponent(t)));
                }
              };
              var v = o.BufferedBlockAlgorithm = u.extend({
                reset: function reset() {
                  this._data = new c.init();
                  this._nDataBytes = 0;
                },
                _append: function _append(t) {
                  if ("string" == typeof t) t = d.parse(t);
                  this._data.concat(t);
                  this._nDataBytes += t.sigBytes;
                },
                _process: function _process(e) {
                  var r;
                  var i = this._data;
                  var n = i.words;
                  var s = i.sigBytes;
                  var a = this.blockSize;
                  var o = 4 * a;
                  var u = s / o;
                  if (e) u = t.ceil(u);else u = t.max((0 | u) - this._minBufferSize, 0);
                  var l = u * a;
                  var f = t.min(4 * l, s);
                  if (l) {
                    for (var h = 0; h < l; h += a) {
                      this._doProcessBlock(n, h);
                    }
                    r = n.splice(0, l);
                    i.sigBytes -= f;
                  }
                  return new c.init(r, f);
                },
                clone: function clone() {
                  var t = u.clone.call(this);
                  t._data = this._data.clone();
                  return t;
                },
                _minBufferSize: 0
              });
              o.Hasher = v.extend({
                cfg: u.extend(),
                init: function init(t) {
                  this.cfg = this.cfg.extend(t);
                  this.reset();
                },
                reset: function reset() {
                  v.reset.call(this);
                  this._doReset();
                },
                update: function update(t) {
                  this._append(t);
                  this._process();
                  return this;
                },
                finalize: function finalize(t) {
                  if (t) this._append(t);
                  var e = this._doFinalize();
                  return e;
                },
                blockSize: 512 / 32,
                _createHelper: function _createHelper(t) {
                  return function (e, r) {
                    return new t.init(r).finalize(e);
                  };
                },
                _createHmacHelper: function _createHmacHelper(t) {
                  return function (e, r) {
                    return new g.HMAC.init(t, r).finalize(e);
                  };
                }
              });
              var g = a.algo = {};
              return a;
            }(Math);
            return t;
          });
        },
        8269: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.WordArray;
              var n = e.enc;
              n.Base64 = {
                stringify: function stringify(t) {
                  var e = t.words;
                  var r = t.sigBytes;
                  var i = this._map;
                  t.clamp();
                  var n = [];
                  for (var s = 0; s < r; s += 3) {
                    var a = e[s >>> 2] >>> 24 - s % 4 * 8 & 255;
                    var o = e[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255;
                    var u = e[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255;
                    var c = a << 16 | o << 8 | u;
                    for (var l = 0; l < 4 && s + .75 * l < r; l++) {
                      n.push(i.charAt(c >>> 6 * (3 - l) & 63));
                    }
                  }
                  var f = i.charAt(64);
                  if (f) while (n.length % 4) {
                    n.push(f);
                  }
                  return n.join("");
                },
                parse: function parse(t) {
                  var e = t.length;
                  var r = this._map;
                  var i = this._reverseMap;
                  if (!i) {
                    i = this._reverseMap = [];
                    for (var n = 0; n < r.length; n++) {
                      i[r.charCodeAt(n)] = n;
                    }
                  }
                  var s = r.charAt(64);
                  if (s) {
                    var o = t.indexOf(s);
                    if (-1 !== o) e = o;
                  }
                  return a(t, e, i);
                },
                _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
              };
              function a(t, e, r) {
                var n = [];
                var s = 0;
                for (var a = 0; a < e; a++) {
                  if (a % 4) {
                    var o = r[t.charCodeAt(a - 1)] << a % 4 * 2;
                    var u = r[t.charCodeAt(a)] >>> 6 - a % 4 * 2;
                    var c = o | u;
                    n[s >>> 2] |= c << 24 - s % 4 * 8;
                    s++;
                  }
                }
                return i.create(n, s);
              }
            })();
            return t.enc.Base64;
          });
        },
        3786: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.WordArray;
              var n = e.enc;
              n.Base64url = {
                stringify: function stringify(t) {
                  var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
                  var r = t.words;
                  var i = t.sigBytes;
                  var n = e ? this._safe_map : this._map;
                  t.clamp();
                  var s = [];
                  for (var a = 0; a < i; a += 3) {
                    var o = r[a >>> 2] >>> 24 - a % 4 * 8 & 255;
                    var u = r[a + 1 >>> 2] >>> 24 - (a + 1) % 4 * 8 & 255;
                    var c = r[a + 2 >>> 2] >>> 24 - (a + 2) % 4 * 8 & 255;
                    var l = o << 16 | u << 8 | c;
                    for (var f = 0; f < 4 && a + .75 * f < i; f++) {
                      s.push(n.charAt(l >>> 6 * (3 - f) & 63));
                    }
                  }
                  var h = n.charAt(64);
                  if (h) while (s.length % 4) {
                    s.push(h);
                  }
                  return s.join("");
                },
                parse: function parse(t) {
                  var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
                  var r = t.length;
                  var i = e ? this._safe_map : this._map;
                  var n = this._reverseMap;
                  if (!n) {
                    n = this._reverseMap = [];
                    for (var s = 0; s < i.length; s++) {
                      n[i.charCodeAt(s)] = s;
                    }
                  }
                  var o = i.charAt(64);
                  if (o) {
                    var u = t.indexOf(o);
                    if (-1 !== u) r = u;
                  }
                  return a(t, r, n);
                },
                _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
                _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
              };
              function a(t, e, r) {
                var n = [];
                var s = 0;
                for (var a = 0; a < e; a++) {
                  if (a % 4) {
                    var o = r[t.charCodeAt(a - 1)] << a % 4 * 2;
                    var u = r[t.charCodeAt(a)] >>> 6 - a % 4 * 2;
                    var c = o | u;
                    n[s >>> 2] |= c << 24 - s % 4 * 8;
                    s++;
                  }
                }
                return i.create(n, s);
              }
            })();
            return t.enc.Base64url;
          });
        },
        298: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.WordArray;
              var n = e.enc;
              n.Utf16 = n.Utf16BE = {
                stringify: function stringify(t) {
                  var e = t.words;
                  var r = t.sigBytes;
                  var i = [];
                  for (var n = 0; n < r; n += 2) {
                    var s = e[n >>> 2] >>> 16 - n % 4 * 8 & 65535;
                    i.push(String.fromCharCode(s));
                  }
                  return i.join("");
                },
                parse: function parse(t) {
                  var e = t.length;
                  var r = [];
                  for (var n = 0; n < e; n++) {
                    r[n >>> 1] |= t.charCodeAt(n) << 16 - n % 2 * 16;
                  }
                  return i.create(r, 2 * e);
                }
              };
              n.Utf16LE = {
                stringify: function stringify(t) {
                  var e = t.words;
                  var r = t.sigBytes;
                  var i = [];
                  for (var n = 0; n < r; n += 2) {
                    var s = a(e[n >>> 2] >>> 16 - n % 4 * 8 & 65535);
                    i.push(String.fromCharCode(s));
                  }
                  return i.join("");
                },
                parse: function parse(t) {
                  var e = t.length;
                  var r = [];
                  for (var n = 0; n < e; n++) {
                    r[n >>> 1] |= a(t.charCodeAt(n) << 16 - n % 2 * 16);
                  }
                  return i.create(r, 2 * e);
                }
              };
              function a(t) {
                return t << 8 & 4278255360 | t >>> 8 & 16711935;
              }
            })();
            return t.enc.Utf16;
          });
        },
        888: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(2783), r(9824));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.Base;
              var n = r.WordArray;
              var s = e.algo;
              var a = s.MD5;
              var o = s.EvpKDF = i.extend({
                cfg: i.extend({
                  keySize: 128 / 32,
                  hasher: a,
                  iterations: 1
                }),
                init: function init(t) {
                  this.cfg = this.cfg.extend(t);
                },
                compute: function compute(t, e) {
                  var r;
                  var i = this.cfg;
                  var s = i.hasher.create();
                  var a = n.create();
                  var o = a.words;
                  var u = i.keySize;
                  var c = i.iterations;
                  while (o.length < u) {
                    if (r) s.update(r);
                    r = s.update(t).finalize(e);
                    s.reset();
                    for (var l = 1; l < c; l++) {
                      r = s.finalize(r);
                      s.reset();
                    }
                    a.concat(r);
                  }
                  a.sigBytes = 4 * u;
                  return a;
                }
              });
              e.EvpKDF = function (t, e, r) {
                return o.create(r).compute(t, e);
              };
            })();
            return t.EvpKDF;
          });
        },
        2209: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            (function (e) {
              var r = t;
              var i = r.lib;
              var n = i.CipherParams;
              var s = r.enc;
              var a = s.Hex;
              var o = r.format;
              o.Hex = {
                stringify: function stringify(t) {
                  return t.ciphertext.toString(a);
                },
                parse: function parse(t) {
                  var e = a.parse(t);
                  return n.create({
                    ciphertext: e
                  });
                }
              };
            })();
            return t.format.Hex;
          });
        },
        9824: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.Base;
              var n = e.enc;
              var s = n.Utf8;
              var a = e.algo;
              a.HMAC = i.extend({
                init: function init(t, e) {
                  t = this._hasher = new t.init();
                  if ("string" == typeof e) e = s.parse(e);
                  var r = t.blockSize;
                  var i = 4 * r;
                  if (e.sigBytes > i) e = t.finalize(e);
                  e.clamp();
                  var n = this._oKey = e.clone();
                  var a = this._iKey = e.clone();
                  var o = n.words;
                  var u = a.words;
                  for (var c = 0; c < r; c++) {
                    o[c] ^= 1549556828;
                    u[c] ^= 909522486;
                  }
                  n.sigBytes = a.sigBytes = i;
                  this.reset();
                },
                reset: function reset() {
                  var t = this._hasher;
                  t.reset();
                  t.update(this._iKey);
                },
                update: function update(t) {
                  this._hasher.update(t);
                  return this;
                },
                finalize: function finalize(t) {
                  var e = this._hasher;
                  var r = e.finalize(t);
                  e.reset();
                  var i = e.finalize(this._oKey.clone().concat(r));
                  return i;
                }
              });
            })();
          });
        },
        1354: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(4938), r(4433), r(298), r(8269), r(3786), r(8214), r(2783), r(2153), r(7792), r(34), r(7460), r(3327), r(706), r(9824), r(2112), r(888), r(5109), r(8568), r(4242), r(9968), r(7660), r(1148), r(3615), r(2807), r(1077), r(6475), r(6991), r(2209), r(452), r(4253), r(1857), r(4454), r(3974));
          })(this, function (t) {
            return t;
          });
        },
        4433: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function () {
              if ("function" != typeof ArrayBuffer) return;
              var e = t;
              var r = e.lib;
              var i = r.WordArray;
              var n = i.init;
              var s = i.init = function (t) {
                if (t instanceof ArrayBuffer) t = new Uint8Array(t);
                if (t instanceof Int8Array || "undefined" !== typeof Uint8ClampedArray && t instanceof Uint8ClampedArray || t instanceof Int16Array || t instanceof Uint16Array || t instanceof Int32Array || t instanceof Uint32Array || t instanceof Float32Array || t instanceof Float64Array) t = new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
                if (t instanceof Uint8Array) {
                  var e = t.byteLength;
                  var r = [];
                  for (var i = 0; i < e; i++) {
                    r[i >>> 2] |= t[i] << 24 - i % 4 * 8;
                  }
                  n.call(this, r, e);
                } else n.apply(this, arguments);
              };
              s.prototype = i;
            })();
            return t.lib.WordArray;
          });
        },
        8214: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function (e) {
              var r = t;
              var i = r.lib;
              var n = i.WordArray;
              var s = i.Hasher;
              var a = r.algo;
              var o = [];
              (function () {
                for (var t = 0; t < 64; t++) {
                  o[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
                }
              })();
              var u = a.MD5 = s.extend({
                _doReset: function _doReset() {
                  this._hash = new n.init([1732584193, 4023233417, 2562383102, 271733878]);
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  for (var r = 0; r < 16; r++) {
                    var i = e + r;
                    var n = t[i];
                    t[i] = 16711935 & (n << 8 | n >>> 24) | 4278255360 & (n << 24 | n >>> 8);
                  }
                  var s = this._hash.words;
                  var a = t[e + 0];
                  var u = t[e + 1];
                  var d = t[e + 2];
                  var v = t[e + 3];
                  var p = t[e + 4];
                  var g = t[e + 5];
                  var y = t[e + 6];
                  var m = t[e + 7];
                  var w = t[e + 8];
                  var _ = t[e + 9];
                  var S = t[e + 10];
                  var b = t[e + 11];
                  var E = t[e + 12];
                  var D = t[e + 13];
                  var T = t[e + 14];
                  var M = t[e + 15];
                  var I = s[0];
                  var A = s[1];
                  var x = s[2];
                  var R = s[3];
                  I = c(I, A, x, R, a, 7, o[0]);
                  R = c(R, I, A, x, u, 12, o[1]);
                  x = c(x, R, I, A, d, 17, o[2]);
                  A = c(A, x, R, I, v, 22, o[3]);
                  I = c(I, A, x, R, p, 7, o[4]);
                  R = c(R, I, A, x, g, 12, o[5]);
                  x = c(x, R, I, A, y, 17, o[6]);
                  A = c(A, x, R, I, m, 22, o[7]);
                  I = c(I, A, x, R, w, 7, o[8]);
                  R = c(R, I, A, x, _, 12, o[9]);
                  x = c(x, R, I, A, S, 17, o[10]);
                  A = c(A, x, R, I, b, 22, o[11]);
                  I = c(I, A, x, R, E, 7, o[12]);
                  R = c(R, I, A, x, D, 12, o[13]);
                  x = c(x, R, I, A, T, 17, o[14]);
                  A = c(A, x, R, I, M, 22, o[15]);
                  I = l(I, A, x, R, u, 5, o[16]);
                  R = l(R, I, A, x, y, 9, o[17]);
                  x = l(x, R, I, A, b, 14, o[18]);
                  A = l(A, x, R, I, a, 20, o[19]);
                  I = l(I, A, x, R, g, 5, o[20]);
                  R = l(R, I, A, x, S, 9, o[21]);
                  x = l(x, R, I, A, M, 14, o[22]);
                  A = l(A, x, R, I, p, 20, o[23]);
                  I = l(I, A, x, R, _, 5, o[24]);
                  R = l(R, I, A, x, T, 9, o[25]);
                  x = l(x, R, I, A, v, 14, o[26]);
                  A = l(A, x, R, I, w, 20, o[27]);
                  I = l(I, A, x, R, D, 5, o[28]);
                  R = l(R, I, A, x, d, 9, o[29]);
                  x = l(x, R, I, A, m, 14, o[30]);
                  A = l(A, x, R, I, E, 20, o[31]);
                  I = f(I, A, x, R, g, 4, o[32]);
                  R = f(R, I, A, x, w, 11, o[33]);
                  x = f(x, R, I, A, b, 16, o[34]);
                  A = f(A, x, R, I, T, 23, o[35]);
                  I = f(I, A, x, R, u, 4, o[36]);
                  R = f(R, I, A, x, p, 11, o[37]);
                  x = f(x, R, I, A, m, 16, o[38]);
                  A = f(A, x, R, I, S, 23, o[39]);
                  I = f(I, A, x, R, D, 4, o[40]);
                  R = f(R, I, A, x, a, 11, o[41]);
                  x = f(x, R, I, A, v, 16, o[42]);
                  A = f(A, x, R, I, y, 23, o[43]);
                  I = f(I, A, x, R, _, 4, o[44]);
                  R = f(R, I, A, x, E, 11, o[45]);
                  x = f(x, R, I, A, M, 16, o[46]);
                  A = f(A, x, R, I, d, 23, o[47]);
                  I = h(I, A, x, R, a, 6, o[48]);
                  R = h(R, I, A, x, m, 10, o[49]);
                  x = h(x, R, I, A, T, 15, o[50]);
                  A = h(A, x, R, I, g, 21, o[51]);
                  I = h(I, A, x, R, E, 6, o[52]);
                  R = h(R, I, A, x, v, 10, o[53]);
                  x = h(x, R, I, A, S, 15, o[54]);
                  A = h(A, x, R, I, u, 21, o[55]);
                  I = h(I, A, x, R, w, 6, o[56]);
                  R = h(R, I, A, x, M, 10, o[57]);
                  x = h(x, R, I, A, y, 15, o[58]);
                  A = h(A, x, R, I, D, 21, o[59]);
                  I = h(I, A, x, R, p, 6, o[60]);
                  R = h(R, I, A, x, b, 10, o[61]);
                  x = h(x, R, I, A, d, 15, o[62]);
                  A = h(A, x, R, I, _, 21, o[63]);
                  s[0] = s[0] + I | 0;
                  s[1] = s[1] + A | 0;
                  s[2] = s[2] + x | 0;
                  s[3] = s[3] + R | 0;
                },
                _doFinalize: function _doFinalize() {
                  var t = this._data;
                  var r = t.words;
                  var i = 8 * this._nDataBytes;
                  var n = 8 * t.sigBytes;
                  r[n >>> 5] |= 128 << 24 - n % 32;
                  var s = e.floor(i / 4294967296);
                  var a = i;
                  r[(n + 64 >>> 9 << 4) + 15] = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8);
                  r[(n + 64 >>> 9 << 4) + 14] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8);
                  t.sigBytes = 4 * (r.length + 1);
                  this._process();
                  var o = this._hash;
                  var u = o.words;
                  for (var c = 0; c < 4; c++) {
                    var l = u[c];
                    u[c] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8);
                  }
                  return o;
                },
                clone: function clone() {
                  var t = s.clone.call(this);
                  t._hash = this._hash.clone();
                  return t;
                }
              });
              function c(t, e, r, i, n, s, a) {
                var o = t + (e & r | ~e & i) + n + a;
                return (o << s | o >>> 32 - s) + e;
              }
              function l(t, e, r, i, n, s, a) {
                var o = t + (e & i | r & ~i) + n + a;
                return (o << s | o >>> 32 - s) + e;
              }
              function f(t, e, r, i, n, s, a) {
                var o = t + (e ^ r ^ i) + n + a;
                return (o << s | o >>> 32 - s) + e;
              }
              function h(t, e, r, i, n, s, a) {
                var o = t + (r ^ (e | ~i)) + n + a;
                return (o << s | o >>> 32 - s) + e;
              }
              r.MD5 = s._createHelper(u);
              r.HmacMD5 = s._createHmacHelper(u);
            })(Math);
            return t.MD5;
          });
        },
        8568: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.mode.CFB = function () {
              var e = t.lib.BlockCipherMode.extend();
              e.Encryptor = e.extend({
                processBlock: function processBlock(t, e) {
                  var i = this._cipher;
                  var n = i.blockSize;
                  r.call(this, t, e, n, i);
                  this._prevBlock = t.slice(e, e + n);
                }
              });
              e.Decryptor = e.extend({
                processBlock: function processBlock(t, e) {
                  var i = this._cipher;
                  var n = i.blockSize;
                  var s = t.slice(e, e + n);
                  r.call(this, t, e, n, i);
                  this._prevBlock = s;
                }
              });
              function r(t, e, r, i) {
                var n;
                var s = this._iv;
                if (s) {
                  n = s.slice(0);
                  this._iv = void 0;
                } else n = this._prevBlock;
                i.encryptBlock(n, 0);
                for (var a = 0; a < r; a++) {
                  t[e + a] ^= n[a];
                }
              }
              return e;
            }();
            return t.mode.CFB;
          });
        },
        9968: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.mode.CTRGladman = function () {
              var e = t.lib.BlockCipherMode.extend();
              function r(t) {
                if (255 === (t >> 24 & 255)) {
                  var e = t >> 16 & 255;
                  var r = t >> 8 & 255;
                  var i = 255 & t;
                  if (255 === e) {
                    e = 0;
                    if (255 === r) {
                      r = 0;
                      if (255 === i) i = 0;else ++i;
                    } else ++r;
                  } else ++e;
                  t = 0;
                  t += e << 16;
                  t += r << 8;
                  t += i;
                } else t += 1 << 24;
                return t;
              }
              function i(t) {
                if (0 === (t[0] = r(t[0]))) t[1] = r(t[1]);
                return t;
              }
              var n = e.Encryptor = e.extend({
                processBlock: function processBlock(t, e) {
                  var r = this._cipher;
                  var n = r.blockSize;
                  var s = this._iv;
                  var a = this._counter;
                  if (s) {
                    a = this._counter = s.slice(0);
                    this._iv = void 0;
                  }
                  i(a);
                  var o = a.slice(0);
                  r.encryptBlock(o, 0);
                  for (var u = 0; u < n; u++) {
                    t[e + u] ^= o[u];
                  }
                }
              });
              e.Decryptor = n;
              return e;
            }();
            return t.mode.CTRGladman;
          });
        },
        4242: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.mode.CTR = function () {
              var e = t.lib.BlockCipherMode.extend();
              var r = e.Encryptor = e.extend({
                processBlock: function processBlock(t, e) {
                  var r = this._cipher;
                  var i = r.blockSize;
                  var n = this._iv;
                  var s = this._counter;
                  if (n) {
                    s = this._counter = n.slice(0);
                    this._iv = void 0;
                  }
                  var a = s.slice(0);
                  r.encryptBlock(a, 0);
                  s[i - 1] = s[i - 1] + 1 | 0;
                  for (var o = 0; o < i; o++) {
                    t[e + o] ^= a[o];
                  }
                }
              });
              e.Decryptor = r;
              return e;
            }();
            return t.mode.CTR;
          });
        },
        1148: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.mode.ECB = function () {
              var e = t.lib.BlockCipherMode.extend();
              e.Encryptor = e.extend({
                processBlock: function processBlock(t, e) {
                  this._cipher.encryptBlock(t, e);
                }
              });
              e.Decryptor = e.extend({
                processBlock: function processBlock(t, e) {
                  this._cipher.decryptBlock(t, e);
                }
              });
              return e;
            }();
            return t.mode.ECB;
          });
        },
        7660: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.mode.OFB = function () {
              var e = t.lib.BlockCipherMode.extend();
              var r = e.Encryptor = e.extend({
                processBlock: function processBlock(t, e) {
                  var r = this._cipher;
                  var i = r.blockSize;
                  var n = this._iv;
                  var s = this._keystream;
                  if (n) {
                    s = this._keystream = n.slice(0);
                    this._iv = void 0;
                  }
                  r.encryptBlock(s, 0);
                  for (var a = 0; a < i; a++) {
                    t[e + a] ^= s[a];
                  }
                }
              });
              e.Decryptor = r;
              return e;
            }();
            return t.mode.OFB;
          });
        },
        3615: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.pad.AnsiX923 = {
              pad: function pad(t, e) {
                var r = t.sigBytes;
                var i = 4 * e;
                var n = i - r % i;
                var s = r + n - 1;
                t.clamp();
                t.words[s >>> 2] |= n << 24 - s % 4 * 8;
                t.sigBytes += n;
              },
              unpad: function unpad(t) {
                var e = 255 & t.words[t.sigBytes - 1 >>> 2];
                t.sigBytes -= e;
              }
            };
            return t.pad.Ansix923;
          });
        },
        2807: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.pad.Iso10126 = {
              pad: function pad(e, r) {
                var i = 4 * r;
                var n = i - e.sigBytes % i;
                e.concat(t.lib.WordArray.random(n - 1)).concat(t.lib.WordArray.create([n << 24], 1));
              },
              unpad: function unpad(t) {
                var e = 255 & t.words[t.sigBytes - 1 >>> 2];
                t.sigBytes -= e;
              }
            };
            return t.pad.Iso10126;
          });
        },
        1077: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.pad.Iso97971 = {
              pad: function pad(e, r) {
                e.concat(t.lib.WordArray.create([2147483648], 1));
                t.pad.ZeroPadding.pad(e, r);
              },
              unpad: function unpad(e) {
                t.pad.ZeroPadding.unpad(e);
                e.sigBytes--;
              }
            };
            return t.pad.Iso97971;
          });
        },
        6991: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.pad.NoPadding = {
              pad: function pad() {},
              unpad: function unpad() {}
            };
            return t.pad.NoPadding;
          });
        },
        6475: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(5109));
          })(this, function (t) {
            t.pad.ZeroPadding = {
              pad: function pad(t, e) {
                var r = 4 * e;
                t.clamp();
                t.sigBytes += r - (t.sigBytes % r || r);
              },
              unpad: function unpad(t) {
                var e = t.words;
                var r = t.sigBytes - 1;
                for (var r = t.sigBytes - 1; r >= 0; r--) {
                  if (e[r >>> 2] >>> 24 - r % 4 * 8 & 255) {
                    t.sigBytes = r + 1;
                    break;
                  }
                }
              }
            };
            return t.pad.ZeroPadding;
          });
        },
        2112: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(2783), r(9824));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.Base;
              var n = r.WordArray;
              var s = e.algo;
              var a = s.SHA1;
              var o = s.HMAC;
              var u = s.PBKDF2 = i.extend({
                cfg: i.extend({
                  keySize: 128 / 32,
                  hasher: a,
                  iterations: 1
                }),
                init: function init(t) {
                  this.cfg = this.cfg.extend(t);
                },
                compute: function compute(t, e) {
                  var r = this.cfg;
                  var i = o.create(r.hasher, t);
                  var s = n.create();
                  var a = n.create([1]);
                  var u = s.words;
                  var c = a.words;
                  var l = r.keySize;
                  var f = r.iterations;
                  while (u.length < l) {
                    var h = i.update(e).finalize(a);
                    i.reset();
                    var d = h.words;
                    var v = d.length;
                    var p = h;
                    for (var g = 1; g < f; g++) {
                      p = i.finalize(p);
                      i.reset();
                      var y = p.words;
                      for (var m = 0; m < v; m++) {
                        d[m] ^= y[m];
                      }
                    }
                    s.concat(h);
                    c[0]++;
                  }
                  s.sigBytes = 4 * l;
                  return s;
                }
              });
              e.PBKDF2 = function (t, e, r) {
                return u.create(r).compute(t, e);
              };
            })();
            return t.PBKDF2;
          });
        },
        3974: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.StreamCipher;
              var n = e.algo;
              var s = [];
              var a = [];
              var o = [];
              var u = n.RabbitLegacy = i.extend({
                _doReset: function _doReset() {
                  var t = this._key.words;
                  var e = this.cfg.iv;
                  var r = this._X = [t[0], t[3] << 16 | t[2] >>> 16, t[1], t[0] << 16 | t[3] >>> 16, t[2], t[1] << 16 | t[0] >>> 16, t[3], t[2] << 16 | t[1] >>> 16];
                  var i = this._C = [t[2] << 16 | t[2] >>> 16, 4294901760 & t[0] | 65535 & t[1], t[3] << 16 | t[3] >>> 16, 4294901760 & t[1] | 65535 & t[2], t[0] << 16 | t[0] >>> 16, 4294901760 & t[2] | 65535 & t[3], t[1] << 16 | t[1] >>> 16, 4294901760 & t[3] | 65535 & t[0]];
                  this._b = 0;
                  for (var n = 0; n < 4; n++) {
                    c.call(this);
                  }
                  for (var n = 0; n < 8; n++) {
                    i[n] ^= r[n + 4 & 7];
                  }
                  if (e) {
                    var s = e.words;
                    var a = s[0];
                    var o = s[1];
                    var u = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8);
                    var l = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);
                    var f = u >>> 16 | 4294901760 & l;
                    var h = l << 16 | 65535 & u;
                    i[0] ^= u;
                    i[1] ^= f;
                    i[2] ^= l;
                    i[3] ^= h;
                    i[4] ^= u;
                    i[5] ^= f;
                    i[6] ^= l;
                    i[7] ^= h;
                    for (var n = 0; n < 4; n++) {
                      c.call(this);
                    }
                  }
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  var r = this._X;
                  c.call(this);
                  s[0] = r[0] ^ r[5] >>> 16 ^ r[3] << 16;
                  s[1] = r[2] ^ r[7] >>> 16 ^ r[5] << 16;
                  s[2] = r[4] ^ r[1] >>> 16 ^ r[7] << 16;
                  s[3] = r[6] ^ r[3] >>> 16 ^ r[1] << 16;
                  for (var i = 0; i < 4; i++) {
                    s[i] = 16711935 & (s[i] << 8 | s[i] >>> 24) | 4278255360 & (s[i] << 24 | s[i] >>> 8);
                    t[e + i] ^= s[i];
                  }
                },
                blockSize: 128 / 32,
                ivSize: 64 / 32
              });
              function c() {
                var t = this._X;
                var e = this._C;
                for (var r = 0; r < 8; r++) {
                  a[r] = e[r];
                }
                e[0] = e[0] + 1295307597 + this._b | 0;
                e[1] = e[1] + 3545052371 + (e[0] >>> 0 < a[0] >>> 0 ? 1 : 0) | 0;
                e[2] = e[2] + 886263092 + (e[1] >>> 0 < a[1] >>> 0 ? 1 : 0) | 0;
                e[3] = e[3] + 1295307597 + (e[2] >>> 0 < a[2] >>> 0 ? 1 : 0) | 0;
                e[4] = e[4] + 3545052371 + (e[3] >>> 0 < a[3] >>> 0 ? 1 : 0) | 0;
                e[5] = e[5] + 886263092 + (e[4] >>> 0 < a[4] >>> 0 ? 1 : 0) | 0;
                e[6] = e[6] + 1295307597 + (e[5] >>> 0 < a[5] >>> 0 ? 1 : 0) | 0;
                e[7] = e[7] + 3545052371 + (e[6] >>> 0 < a[6] >>> 0 ? 1 : 0) | 0;
                this._b = e[7] >>> 0 < a[7] >>> 0 ? 1 : 0;
                for (var r = 0; r < 8; r++) {
                  var i = t[r] + e[r];
                  var n = 65535 & i;
                  var s = i >>> 16;
                  var u = ((n * n >>> 17) + n * s >>> 15) + s * s;
                  var c = ((4294901760 & i) * i | 0) + ((65535 & i) * i | 0);
                  o[r] = u ^ c;
                }
                t[0] = o[0] + (o[7] << 16 | o[7] >>> 16) + (o[6] << 16 | o[6] >>> 16) | 0;
                t[1] = o[1] + (o[0] << 8 | o[0] >>> 24) + o[7] | 0;
                t[2] = o[2] + (o[1] << 16 | o[1] >>> 16) + (o[0] << 16 | o[0] >>> 16) | 0;
                t[3] = o[3] + (o[2] << 8 | o[2] >>> 24) + o[1] | 0;
                t[4] = o[4] + (o[3] << 16 | o[3] >>> 16) + (o[2] << 16 | o[2] >>> 16) | 0;
                t[5] = o[5] + (o[4] << 8 | o[4] >>> 24) + o[3] | 0;
                t[6] = o[6] + (o[5] << 16 | o[5] >>> 16) + (o[4] << 16 | o[4] >>> 16) | 0;
                t[7] = o[7] + (o[6] << 8 | o[6] >>> 24) + o[5] | 0;
              }
              e.RabbitLegacy = i._createHelper(u);
            })();
            return t.RabbitLegacy;
          });
        },
        4454: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.StreamCipher;
              var n = e.algo;
              var s = [];
              var a = [];
              var o = [];
              var u = n.Rabbit = i.extend({
                _doReset: function _doReset() {
                  var t = this._key.words;
                  var e = this.cfg.iv;
                  for (var r = 0; r < 4; r++) {
                    t[r] = 16711935 & (t[r] << 8 | t[r] >>> 24) | 4278255360 & (t[r] << 24 | t[r] >>> 8);
                  }
                  var i = this._X = [t[0], t[3] << 16 | t[2] >>> 16, t[1], t[0] << 16 | t[3] >>> 16, t[2], t[1] << 16 | t[0] >>> 16, t[3], t[2] << 16 | t[1] >>> 16];
                  var n = this._C = [t[2] << 16 | t[2] >>> 16, 4294901760 & t[0] | 65535 & t[1], t[3] << 16 | t[3] >>> 16, 4294901760 & t[1] | 65535 & t[2], t[0] << 16 | t[0] >>> 16, 4294901760 & t[2] | 65535 & t[3], t[1] << 16 | t[1] >>> 16, 4294901760 & t[3] | 65535 & t[0]];
                  this._b = 0;
                  for (var r = 0; r < 4; r++) {
                    c.call(this);
                  }
                  for (var r = 0; r < 8; r++) {
                    n[r] ^= i[r + 4 & 7];
                  }
                  if (e) {
                    var s = e.words;
                    var a = s[0];
                    var o = s[1];
                    var u = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8);
                    var l = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);
                    var f = u >>> 16 | 4294901760 & l;
                    var h = l << 16 | 65535 & u;
                    n[0] ^= u;
                    n[1] ^= f;
                    n[2] ^= l;
                    n[3] ^= h;
                    n[4] ^= u;
                    n[5] ^= f;
                    n[6] ^= l;
                    n[7] ^= h;
                    for (var r = 0; r < 4; r++) {
                      c.call(this);
                    }
                  }
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  var r = this._X;
                  c.call(this);
                  s[0] = r[0] ^ r[5] >>> 16 ^ r[3] << 16;
                  s[1] = r[2] ^ r[7] >>> 16 ^ r[5] << 16;
                  s[2] = r[4] ^ r[1] >>> 16 ^ r[7] << 16;
                  s[3] = r[6] ^ r[3] >>> 16 ^ r[1] << 16;
                  for (var i = 0; i < 4; i++) {
                    s[i] = 16711935 & (s[i] << 8 | s[i] >>> 24) | 4278255360 & (s[i] << 24 | s[i] >>> 8);
                    t[e + i] ^= s[i];
                  }
                },
                blockSize: 128 / 32,
                ivSize: 64 / 32
              });
              function c() {
                var t = this._X;
                var e = this._C;
                for (var r = 0; r < 8; r++) {
                  a[r] = e[r];
                }
                e[0] = e[0] + 1295307597 + this._b | 0;
                e[1] = e[1] + 3545052371 + (e[0] >>> 0 < a[0] >>> 0 ? 1 : 0) | 0;
                e[2] = e[2] + 886263092 + (e[1] >>> 0 < a[1] >>> 0 ? 1 : 0) | 0;
                e[3] = e[3] + 1295307597 + (e[2] >>> 0 < a[2] >>> 0 ? 1 : 0) | 0;
                e[4] = e[4] + 3545052371 + (e[3] >>> 0 < a[3] >>> 0 ? 1 : 0) | 0;
                e[5] = e[5] + 886263092 + (e[4] >>> 0 < a[4] >>> 0 ? 1 : 0) | 0;
                e[6] = e[6] + 1295307597 + (e[5] >>> 0 < a[5] >>> 0 ? 1 : 0) | 0;
                e[7] = e[7] + 3545052371 + (e[6] >>> 0 < a[6] >>> 0 ? 1 : 0) | 0;
                this._b = e[7] >>> 0 < a[7] >>> 0 ? 1 : 0;
                for (var r = 0; r < 8; r++) {
                  var i = t[r] + e[r];
                  var n = 65535 & i;
                  var s = i >>> 16;
                  var u = ((n * n >>> 17) + n * s >>> 15) + s * s;
                  var c = ((4294901760 & i) * i | 0) + ((65535 & i) * i | 0);
                  o[r] = u ^ c;
                }
                t[0] = o[0] + (o[7] << 16 | o[7] >>> 16) + (o[6] << 16 | o[6] >>> 16) | 0;
                t[1] = o[1] + (o[0] << 8 | o[0] >>> 24) + o[7] | 0;
                t[2] = o[2] + (o[1] << 16 | o[1] >>> 16) + (o[0] << 16 | o[0] >>> 16) | 0;
                t[3] = o[3] + (o[2] << 8 | o[2] >>> 24) + o[1] | 0;
                t[4] = o[4] + (o[3] << 16 | o[3] >>> 16) + (o[2] << 16 | o[2] >>> 16) | 0;
                t[5] = o[5] + (o[4] << 8 | o[4] >>> 24) + o[3] | 0;
                t[6] = o[6] + (o[5] << 16 | o[5] >>> 16) + (o[4] << 16 | o[4] >>> 16) | 0;
                t[7] = o[7] + (o[6] << 8 | o[6] >>> 24) + o[5] | 0;
              }
              e.Rabbit = i._createHelper(u);
            })();
            return t.Rabbit;
          });
        },
        1857: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.StreamCipher;
              var n = e.algo;
              var s = n.RC4 = i.extend({
                _doReset: function _doReset() {
                  var t = this._key;
                  var e = t.words;
                  var r = t.sigBytes;
                  var i = this._S = [];
                  for (var n = 0; n < 256; n++) {
                    i[n] = n;
                  }
                  for (var n = 0, s = 0; n < 256; n++) {
                    var a = n % r;
                    var o = e[a >>> 2] >>> 24 - a % 4 * 8 & 255;
                    s = (s + i[n] + o) % 256;
                    var u = i[n];
                    i[n] = i[s];
                    i[s] = u;
                  }
                  this._i = this._j = 0;
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  t[e] ^= a.call(this);
                },
                keySize: 256 / 32,
                ivSize: 0
              });
              function a() {
                var t = this._S;
                var e = this._i;
                var r = this._j;
                var i = 0;
                for (var n = 0; n < 4; n++) {
                  e = (e + 1) % 256;
                  r = (r + t[e]) % 256;
                  var s = t[e];
                  t[e] = t[r];
                  t[r] = s;
                  i |= t[(t[e] + t[r]) % 256] << 24 - 8 * n;
                }
                this._i = e;
                this._j = r;
                return i;
              }
              e.RC4 = i._createHelper(s);
              var o = n.RC4Drop = s.extend({
                cfg: s.cfg.extend({
                  drop: 192
                }),
                _doReset: function _doReset() {
                  s._doReset.call(this);
                  for (var t = this.cfg.drop; t > 0; t--) {
                    a.call(this);
                  }
                }
              });
              e.RC4Drop = i._createHelper(o);
            })();
            return t.RC4;
          });
        },
        706: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function (e) {
              var r = t;
              var i = r.lib;
              var n = i.WordArray;
              var s = i.Hasher;
              var a = r.algo;
              var o = n.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]);
              var u = n.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]);
              var c = n.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]);
              var l = n.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]);
              var f = n.create([0, 1518500249, 1859775393, 2400959708, 2840853838]);
              var h = n.create([1352829926, 1548603684, 1836072691, 2053994217, 0]);
              var d = a.RIPEMD160 = s.extend({
                _doReset: function _doReset() {
                  this._hash = n.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  for (var r = 0; r < 16; r++) {
                    var i = e + r;
                    var n = t[i];
                    t[i] = 16711935 & (n << 8 | n >>> 24) | 4278255360 & (n << 24 | n >>> 8);
                  }
                  var s = this._hash.words;
                  var a = f.words;
                  var d = h.words;
                  var _ = o.words;
                  var S = u.words;
                  var b = c.words;
                  var E = l.words;
                  var D, T, M, I, A;
                  var x, R, B, O, k;
                  x = D = s[0];
                  R = T = s[1];
                  B = M = s[2];
                  O = I = s[3];
                  k = A = s[4];
                  var C;
                  for (var r = 0; r < 80; r += 1) {
                    C = D + t[e + _[r]] | 0;
                    if (r < 16) C += v(T, M, I) + a[0];else if (r < 32) C += p(T, M, I) + a[1];else if (r < 48) C += g(T, M, I) + a[2];else if (r < 64) C += y(T, M, I) + a[3];else C += m(T, M, I) + a[4];
                    C |= 0;
                    C = w(C, b[r]);
                    C = C + A | 0;
                    D = A;
                    A = I;
                    I = w(M, 10);
                    M = T;
                    T = C;
                    C = x + t[e + S[r]] | 0;
                    if (r < 16) C += m(R, B, O) + d[0];else if (r < 32) C += y(R, B, O) + d[1];else if (r < 48) C += g(R, B, O) + d[2];else if (r < 64) C += p(R, B, O) + d[3];else C += v(R, B, O) + d[4];
                    C |= 0;
                    C = w(C, E[r]);
                    C = C + k | 0;
                    x = k;
                    k = O;
                    O = w(B, 10);
                    B = R;
                    R = C;
                  }
                  C = s[1] + M + O | 0;
                  s[1] = s[2] + I + k | 0;
                  s[2] = s[3] + A + x | 0;
                  s[3] = s[4] + D + R | 0;
                  s[4] = s[0] + T + B | 0;
                  s[0] = C;
                },
                _doFinalize: function _doFinalize() {
                  var t = this._data;
                  var e = t.words;
                  var r = 8 * this._nDataBytes;
                  var i = 8 * t.sigBytes;
                  e[i >>> 5] |= 128 << 24 - i % 32;
                  e[(i + 64 >>> 9 << 4) + 14] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
                  t.sigBytes = 4 * (e.length + 1);
                  this._process();
                  var n = this._hash;
                  var s = n.words;
                  for (var a = 0; a < 5; a++) {
                    var o = s[a];
                    s[a] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);
                  }
                  return n;
                },
                clone: function clone() {
                  var t = s.clone.call(this);
                  t._hash = this._hash.clone();
                  return t;
                }
              });
              function v(t, e, r) {
                return t ^ e ^ r;
              }
              function p(t, e, r) {
                return t & e | ~t & r;
              }
              function g(t, e, r) {
                return (t | ~e) ^ r;
              }
              function y(t, e, r) {
                return t & r | e & ~r;
              }
              function m(t, e, r) {
                return t ^ (e | ~r);
              }
              function w(t, e) {
                return t << e | t >>> 32 - e;
              }
              r.RIPEMD160 = s._createHelper(d);
              r.HmacRIPEMD160 = s._createHmacHelper(d);
            })();
            return t.RIPEMD160;
          });
        },
        2783: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.WordArray;
              var n = r.Hasher;
              var s = e.algo;
              var a = [];
              var o = s.SHA1 = n.extend({
                _doReset: function _doReset() {
                  this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  var r = this._hash.words;
                  var i = r[0];
                  var n = r[1];
                  var s = r[2];
                  var o = r[3];
                  var u = r[4];
                  for (var c = 0; c < 80; c++) {
                    if (c < 16) a[c] = 0 | t[e + c];else {
                      var l = a[c - 3] ^ a[c - 8] ^ a[c - 14] ^ a[c - 16];
                      a[c] = l << 1 | l >>> 31;
                    }
                    var f = (i << 5 | i >>> 27) + u + a[c];
                    if (c < 20) f += (n & s | ~n & o) + 1518500249;else if (c < 40) f += (n ^ s ^ o) + 1859775393;else if (c < 60) f += (n & s | n & o | s & o) - 1894007588;else f += (n ^ s ^ o) - 899497514;
                    u = o;
                    o = s;
                    s = n << 30 | n >>> 2;
                    n = i;
                    i = f;
                  }
                  r[0] = r[0] + i | 0;
                  r[1] = r[1] + n | 0;
                  r[2] = r[2] + s | 0;
                  r[3] = r[3] + o | 0;
                  r[4] = r[4] + u | 0;
                },
                _doFinalize: function _doFinalize() {
                  var t = this._data;
                  var e = t.words;
                  var r = 8 * this._nDataBytes;
                  var i = 8 * t.sigBytes;
                  e[i >>> 5] |= 128 << 24 - i % 32;
                  e[(i + 64 >>> 9 << 4) + 14] = Math.floor(r / 4294967296);
                  e[(i + 64 >>> 9 << 4) + 15] = r;
                  t.sigBytes = 4 * e.length;
                  this._process();
                  return this._hash;
                },
                clone: function clone() {
                  var t = n.clone.call(this);
                  t._hash = this._hash.clone();
                  return t;
                }
              });
              e.SHA1 = n._createHelper(o);
              e.HmacSHA1 = n._createHmacHelper(o);
            })();
            return t.SHA1;
          });
        },
        7792: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(2153));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.WordArray;
              var n = e.algo;
              var s = n.SHA256;
              var a = n.SHA224 = s.extend({
                _doReset: function _doReset() {
                  this._hash = new i.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]);
                },
                _doFinalize: function _doFinalize() {
                  var t = s._doFinalize.call(this);
                  t.sigBytes -= 4;
                  return t;
                }
              });
              e.SHA224 = s._createHelper(a);
              e.HmacSHA224 = s._createHmacHelper(a);
            })();
            return t.SHA224;
          });
        },
        2153: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function (e) {
              var r = t;
              var i = r.lib;
              var n = i.WordArray;
              var s = i.Hasher;
              var a = r.algo;
              var o = [];
              var u = [];
              (function () {
                function t(t) {
                  var r = e.sqrt(t);
                  for (var i = 2; i <= r; i++) {
                    if (!(t % i)) return false;
                  }
                  return true;
                }
                function r(t) {
                  return 4294967296 * (t - (0 | t)) | 0;
                }
                var i = 2;
                var n = 0;
                while (n < 64) {
                  if (t(i)) {
                    if (n < 8) o[n] = r(e.pow(i, 1 / 2));
                    u[n] = r(e.pow(i, 1 / 3));
                    n++;
                  }
                  i++;
                }
              })();
              var c = [];
              var l = a.SHA256 = s.extend({
                _doReset: function _doReset() {
                  this._hash = new n.init(o.slice(0));
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  var r = this._hash.words;
                  var i = r[0];
                  var n = r[1];
                  var s = r[2];
                  var a = r[3];
                  var o = r[4];
                  var l = r[5];
                  var f = r[6];
                  var h = r[7];
                  for (var d = 0; d < 64; d++) {
                    if (d < 16) c[d] = 0 | t[e + d];else {
                      var v = c[d - 15];
                      var p = (v << 25 | v >>> 7) ^ (v << 14 | v >>> 18) ^ v >>> 3;
                      var g = c[d - 2];
                      var y = (g << 15 | g >>> 17) ^ (g << 13 | g >>> 19) ^ g >>> 10;
                      c[d] = p + c[d - 7] + y + c[d - 16];
                    }
                    var m = o & l ^ ~o & f;
                    var w = i & n ^ i & s ^ n & s;
                    var _ = (i << 30 | i >>> 2) ^ (i << 19 | i >>> 13) ^ (i << 10 | i >>> 22);
                    var S = (o << 26 | o >>> 6) ^ (o << 21 | o >>> 11) ^ (o << 7 | o >>> 25);
                    var b = h + S + m + u[d] + c[d];
                    var E = _ + w;
                    h = f;
                    f = l;
                    l = o;
                    o = a + b | 0;
                    a = s;
                    s = n;
                    n = i;
                    i = b + E | 0;
                  }
                  r[0] = r[0] + i | 0;
                  r[1] = r[1] + n | 0;
                  r[2] = r[2] + s | 0;
                  r[3] = r[3] + a | 0;
                  r[4] = r[4] + o | 0;
                  r[5] = r[5] + l | 0;
                  r[6] = r[6] + f | 0;
                  r[7] = r[7] + h | 0;
                },
                _doFinalize: function _doFinalize() {
                  var t = this._data;
                  var r = t.words;
                  var i = 8 * this._nDataBytes;
                  var n = 8 * t.sigBytes;
                  r[n >>> 5] |= 128 << 24 - n % 32;
                  r[(n + 64 >>> 9 << 4) + 14] = e.floor(i / 4294967296);
                  r[(n + 64 >>> 9 << 4) + 15] = i;
                  t.sigBytes = 4 * r.length;
                  this._process();
                  return this._hash;
                },
                clone: function clone() {
                  var t = s.clone.call(this);
                  t._hash = this._hash.clone();
                  return t;
                }
              });
              r.SHA256 = s._createHelper(l);
              r.HmacSHA256 = s._createHmacHelper(l);
            })(Math);
            return t.SHA256;
          });
        },
        3327: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(4938));
          })(this, function (t) {
            (function (e) {
              var r = t;
              var i = r.lib;
              var n = i.WordArray;
              var s = i.Hasher;
              var a = r.x64;
              var o = a.Word;
              var u = r.algo;
              var c = [];
              var l = [];
              var f = [];
              (function () {
                var t = 1,
                  e = 0;
                for (var r = 0; r < 24; r++) {
                  c[t + 5 * e] = (r + 1) * (r + 2) / 2 % 64;
                  var i = e % 5;
                  var n = (2 * t + 3 * e) % 5;
                  t = i;
                  e = n;
                }
                for (var t = 0; t < 5; t++) {
                  for (var e = 0; e < 5; e++) {
                    l[t + 5 * e] = e + (2 * t + 3 * e) % 5 * 5;
                  }
                }
                var s = 1;
                for (var a = 0; a < 24; a++) {
                  var u = 0;
                  var h = 0;
                  for (var d = 0; d < 7; d++) {
                    if (1 & s) {
                      var v = (1 << d) - 1;
                      if (v < 32) h ^= 1 << v;else u ^= 1 << v - 32;
                    }
                    if (128 & s) s = s << 1 ^ 113;else s <<= 1;
                  }
                  f[a] = o.create(u, h);
                }
              })();
              var h = [];
              (function () {
                for (var t = 0; t < 25; t++) {
                  h[t] = o.create();
                }
              })();
              var d = u.SHA3 = s.extend({
                cfg: s.cfg.extend({
                  outputLength: 512
                }),
                _doReset: function _doReset() {
                  var t = this._state = [];
                  for (var e = 0; e < 25; e++) {
                    t[e] = new o.init();
                  }
                  this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  var r = this._state;
                  var i = this.blockSize / 2;
                  for (var n = 0; n < i; n++) {
                    var s = t[e + 2 * n];
                    var a = t[e + 2 * n + 1];
                    s = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8);
                    a = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8);
                    var o = r[n];
                    o.high ^= a;
                    o.low ^= s;
                  }
                  for (var u = 0; u < 24; u++) {
                    for (var d = 0; d < 5; d++) {
                      var v = 0,
                        p = 0;
                      for (var g = 0; g < 5; g++) {
                        var o = r[d + 5 * g];
                        v ^= o.high;
                        p ^= o.low;
                      }
                      var y = h[d];
                      y.high = v;
                      y.low = p;
                    }
                    for (var d = 0; d < 5; d++) {
                      var m = h[(d + 4) % 5];
                      var w = h[(d + 1) % 5];
                      var _ = w.high;
                      var S = w.low;
                      var v = m.high ^ (_ << 1 | S >>> 31);
                      var p = m.low ^ (S << 1 | _ >>> 31);
                      for (var g = 0; g < 5; g++) {
                        var o = r[d + 5 * g];
                        o.high ^= v;
                        o.low ^= p;
                      }
                    }
                    for (var b = 1; b < 25; b++) {
                      var v;
                      var p;
                      var o = r[b];
                      var E = o.high;
                      var D = o.low;
                      var T = c[b];
                      if (T < 32) {
                        v = E << T | D >>> 32 - T;
                        p = D << T | E >>> 32 - T;
                      } else {
                        v = D << T - 32 | E >>> 64 - T;
                        p = E << T - 32 | D >>> 64 - T;
                      }
                      var M = h[l[b]];
                      M.high = v;
                      M.low = p;
                    }
                    var I = h[0];
                    var A = r[0];
                    I.high = A.high;
                    I.low = A.low;
                    for (var d = 0; d < 5; d++) {
                      for (var g = 0; g < 5; g++) {
                        var b = d + 5 * g;
                        var o = r[b];
                        var x = h[b];
                        var R = h[(d + 1) % 5 + 5 * g];
                        var B = h[(d + 2) % 5 + 5 * g];
                        o.high = x.high ^ ~R.high & B.high;
                        o.low = x.low ^ ~R.low & B.low;
                      }
                    }
                    var o = r[0];
                    var O = f[u];
                    o.high ^= O.high;
                    o.low ^= O.low;
                  }
                },
                _doFinalize: function _doFinalize() {
                  var t = this._data;
                  var r = t.words;
                  8 * this._nDataBytes;
                  var s = 8 * t.sigBytes;
                  var a = 32 * this.blockSize;
                  r[s >>> 5] |= 1 << 24 - s % 32;
                  r[(e.ceil((s + 1) / a) * a >>> 5) - 1] |= 128;
                  t.sigBytes = 4 * r.length;
                  this._process();
                  var o = this._state;
                  var u = this.cfg.outputLength / 8;
                  var c = u / 8;
                  var l = [];
                  for (var f = 0; f < c; f++) {
                    var h = o[f];
                    var d = h.high;
                    var v = h.low;
                    d = 16711935 & (d << 8 | d >>> 24) | 4278255360 & (d << 24 | d >>> 8);
                    v = 16711935 & (v << 8 | v >>> 24) | 4278255360 & (v << 24 | v >>> 8);
                    l.push(v);
                    l.push(d);
                  }
                  return new n.init(l, u);
                },
                clone: function clone() {
                  var t = s.clone.call(this);
                  var e = t._state = this._state.slice(0);
                  for (var r = 0; r < 25; r++) {
                    e[r] = e[r].clone();
                  }
                  return t;
                }
              });
              r.SHA3 = s._createHelper(d);
              r.HmacSHA3 = s._createHmacHelper(d);
            })(Math);
            return t.SHA3;
          });
        },
        7460: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(4938), r(34));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.x64;
              var i = r.Word;
              var n = r.WordArray;
              var s = e.algo;
              var a = s.SHA512;
              var o = s.SHA384 = a.extend({
                _doReset: function _doReset() {
                  this._hash = new n.init([new i.init(3418070365, 3238371032), new i.init(1654270250, 914150663), new i.init(2438529370, 812702999), new i.init(355462360, 4144912697), new i.init(1731405415, 4290775857), new i.init(2394180231, 1750603025), new i.init(3675008525, 1694076839), new i.init(1203062813, 3204075428)]);
                },
                _doFinalize: function _doFinalize() {
                  var t = a._doFinalize.call(this);
                  t.sigBytes -= 16;
                  return t;
                }
              });
              e.SHA384 = a._createHelper(o);
              e.HmacSHA384 = a._createHmacHelper(o);
            })();
            return t.SHA384;
          });
        },
        34: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(4938));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.Hasher;
              var n = e.x64;
              var s = n.Word;
              var a = n.WordArray;
              var o = e.algo;
              function u() {
                return s.create.apply(s, arguments);
              }
              var c = [u(1116352408, 3609767458), u(1899447441, 602891725), u(3049323471, 3964484399), u(3921009573, 2173295548), u(961987163, 4081628472), u(1508970993, 3053834265), u(2453635748, 2937671579), u(2870763221, 3664609560), u(3624381080, 2734883394), u(310598401, 1164996542), u(607225278, 1323610764), u(1426881987, 3590304994), u(1925078388, 4068182383), u(2162078206, 991336113), u(2614888103, 633803317), u(3248222580, 3479774868), u(3835390401, 2666613458), u(4022224774, 944711139), u(264347078, 2341262773), u(604807628, 2007800933), u(770255983, 1495990901), u(1249150122, 1856431235), u(1555081692, 3175218132), u(1996064986, 2198950837), u(2554220882, 3999719339), u(2821834349, 766784016), u(2952996808, 2566594879), u(3210313671, 3203337956), u(3336571891, 1034457026), u(3584528711, 2466948901), u(113926993, 3758326383), u(338241895, 168717936), u(666307205, 1188179964), u(773529912, 1546045734), u(1294757372, 1522805485), u(1396182291, 2643833823), u(1695183700, 2343527390), u(1986661051, 1014477480), u(2177026350, 1206759142), u(2456956037, 344077627), u(2730485921, 1290863460), u(2820302411, 3158454273), u(3259730800, 3505952657), u(3345764771, 106217008), u(3516065817, 3606008344), u(3600352804, 1432725776), u(4094571909, 1467031594), u(275423344, 851169720), u(430227734, 3100823752), u(506948616, 1363258195), u(659060556, 3750685593), u(883997877, 3785050280), u(958139571, 3318307427), u(1322822218, 3812723403), u(1537002063, 2003034995), u(1747873779, 3602036899), u(1955562222, 1575990012), u(2024104815, 1125592928), u(2227730452, 2716904306), u(2361852424, 442776044), u(2428436474, 593698344), u(2756734187, 3733110249), u(3204031479, 2999351573), u(3329325298, 3815920427), u(3391569614, 3928383900), u(3515267271, 566280711), u(3940187606, 3454069534), u(4118630271, 4000239992), u(116418474, 1914138554), u(174292421, 2731055270), u(289380356, 3203993006), u(460393269, 320620315), u(685471733, 587496836), u(852142971, 1086792851), u(1017036298, 365543100), u(1126000580, 2618297676), u(1288033470, 3409855158), u(1501505948, 4234509866), u(1607167915, 987167468), u(1816402316, 1246189591)];
              var l = [];
              (function () {
                for (var t = 0; t < 80; t++) {
                  l[t] = u();
                }
              })();
              var f = o.SHA512 = i.extend({
                _doReset: function _doReset() {
                  this._hash = new a.init([new s.init(1779033703, 4089235720), new s.init(3144134277, 2227873595), new s.init(1013904242, 4271175723), new s.init(2773480762, 1595750129), new s.init(1359893119, 2917565137), new s.init(2600822924, 725511199), new s.init(528734635, 4215389547), new s.init(1541459225, 327033209)]);
                },
                _doProcessBlock: function _doProcessBlock(t, e) {
                  var r = this._hash.words;
                  var i = r[0];
                  var n = r[1];
                  var s = r[2];
                  var a = r[3];
                  var o = r[4];
                  var u = r[5];
                  var f = r[6];
                  var h = r[7];
                  var d = i.high;
                  var v = i.low;
                  var p = n.high;
                  var g = n.low;
                  var y = s.high;
                  var m = s.low;
                  var w = a.high;
                  var _ = a.low;
                  var S = o.high;
                  var b = o.low;
                  var E = u.high;
                  var D = u.low;
                  var T = f.high;
                  var M = f.low;
                  var I = h.high;
                  var A = h.low;
                  var x = d;
                  var R = v;
                  var B = p;
                  var O = g;
                  var k = y;
                  var C = m;
                  var N = w;
                  var P = _;
                  var V = S;
                  var L = b;
                  var H = E;
                  var U = D;
                  var K = T;
                  var j = M;
                  var q = I;
                  var F = A;
                  for (var z = 0; z < 80; z++) {
                    var G;
                    var Y;
                    var W = l[z];
                    if (z < 16) {
                      Y = W.high = 0 | t[e + 2 * z];
                      G = W.low = 0 | t[e + 2 * z + 1];
                    } else {
                      var J = l[z - 15];
                      var Z = J.high;
                      var $ = J.low;
                      var X = (Z >>> 1 | $ << 31) ^ (Z >>> 8 | $ << 24) ^ Z >>> 7;
                      var Q = ($ >>> 1 | Z << 31) ^ ($ >>> 8 | Z << 24) ^ ($ >>> 7 | Z << 25);
                      var tt = l[z - 2];
                      var et = tt.high;
                      var rt = tt.low;
                      var it = (et >>> 19 | rt << 13) ^ (et << 3 | rt >>> 29) ^ et >>> 6;
                      var nt = (rt >>> 19 | et << 13) ^ (rt << 3 | et >>> 29) ^ (rt >>> 6 | et << 26);
                      var st = l[z - 7];
                      var at = st.high;
                      var ot = st.low;
                      var ut = l[z - 16];
                      var ct = ut.high;
                      var lt = ut.low;
                      G = Q + ot;
                      Y = X + at + (G >>> 0 < Q >>> 0 ? 1 : 0);
                      G += nt;
                      Y = Y + it + (G >>> 0 < nt >>> 0 ? 1 : 0);
                      G += lt;
                      Y = Y + ct + (G >>> 0 < lt >>> 0 ? 1 : 0);
                      W.high = Y;
                      W.low = G;
                    }
                    var ft = V & H ^ ~V & K;
                    var ht = L & U ^ ~L & j;
                    var dt = x & B ^ x & k ^ B & k;
                    var vt = R & O ^ R & C ^ O & C;
                    var pt = (x >>> 28 | R << 4) ^ (x << 30 | R >>> 2) ^ (x << 25 | R >>> 7);
                    var gt = (R >>> 28 | x << 4) ^ (R << 30 | x >>> 2) ^ (R << 25 | x >>> 7);
                    var yt = (V >>> 14 | L << 18) ^ (V >>> 18 | L << 14) ^ (V << 23 | L >>> 9);
                    var mt = (L >>> 14 | V << 18) ^ (L >>> 18 | V << 14) ^ (L << 23 | V >>> 9);
                    var wt = c[z];
                    var _t = wt.high;
                    var St = wt.low;
                    var bt = F + mt;
                    var Et = q + yt + (bt >>> 0 < F >>> 0 ? 1 : 0);
                    var bt = bt + ht;
                    var Et = Et + ft + (bt >>> 0 < ht >>> 0 ? 1 : 0);
                    var bt = bt + St;
                    var Et = Et + _t + (bt >>> 0 < St >>> 0 ? 1 : 0);
                    var bt = bt + G;
                    var Et = Et + Y + (bt >>> 0 < G >>> 0 ? 1 : 0);
                    var Dt = gt + vt;
                    var Tt = pt + dt + (Dt >>> 0 < gt >>> 0 ? 1 : 0);
                    q = K;
                    F = j;
                    K = H;
                    j = U;
                    H = V;
                    U = L;
                    L = P + bt | 0;
                    V = N + Et + (L >>> 0 < P >>> 0 ? 1 : 0) | 0;
                    N = k;
                    P = C;
                    k = B;
                    C = O;
                    B = x;
                    O = R;
                    R = bt + Dt | 0;
                    x = Et + Tt + (R >>> 0 < bt >>> 0 ? 1 : 0) | 0;
                  }
                  v = i.low = v + R;
                  i.high = d + x + (v >>> 0 < R >>> 0 ? 1 : 0);
                  g = n.low = g + O;
                  n.high = p + B + (g >>> 0 < O >>> 0 ? 1 : 0);
                  m = s.low = m + C;
                  s.high = y + k + (m >>> 0 < C >>> 0 ? 1 : 0);
                  _ = a.low = _ + P;
                  a.high = w + N + (_ >>> 0 < P >>> 0 ? 1 : 0);
                  b = o.low = b + L;
                  o.high = S + V + (b >>> 0 < L >>> 0 ? 1 : 0);
                  D = u.low = D + U;
                  u.high = E + H + (D >>> 0 < U >>> 0 ? 1 : 0);
                  M = f.low = M + j;
                  f.high = T + K + (M >>> 0 < j >>> 0 ? 1 : 0);
                  A = h.low = A + F;
                  h.high = I + q + (A >>> 0 < F >>> 0 ? 1 : 0);
                },
                _doFinalize: function _doFinalize() {
                  var t = this._data;
                  var e = t.words;
                  var r = 8 * this._nDataBytes;
                  var i = 8 * t.sigBytes;
                  e[i >>> 5] |= 128 << 24 - i % 32;
                  e[(i + 128 >>> 10 << 5) + 30] = Math.floor(r / 4294967296);
                  e[(i + 128 >>> 10 << 5) + 31] = r;
                  t.sigBytes = 4 * e.length;
                  this._process();
                  var n = this._hash.toX32();
                  return n;
                },
                clone: function clone() {
                  var t = i.clone.call(this);
                  t._hash = this._hash.clone();
                  return t;
                },
                blockSize: 1024 / 32
              });
              e.SHA512 = i._createHelper(f);
              e.HmacSHA512 = i._createHmacHelper(f);
            })();
            return t.SHA512;
          });
        },
        4253: function _(t, e, r) {
          (function (i, n, s) {
            t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109));
          })(this, function (t) {
            (function () {
              var e = t;
              var r = e.lib;
              var i = r.WordArray;
              var n = r.BlockCipher;
              var s = e.algo;
              var a = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4];
              var o = [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];
              var u = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
              var c = [{
                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
              }];
              var l = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679];
              var f = s.DES = n.extend({
                _doReset: function _doReset() {
                  var t = this._key;
                  var e = t.words;
                  var r = [];
                  for (var i = 0; i < 56; i++) {
                    var n = a[i] - 1;
                    r[i] = e[n >>> 5] >>> 31 - n % 32 & 1;
                  }
                  var s = this._subKeys = [];
                  for (var c = 0; c < 16; c++) {
                    var l = s[c] = [];
                    var f = u[c];
                    for (var i = 0; i < 24; i++) {
                      l[i / 6 | 0] |= r[(o[i] - 1 + f) % 28] << 31 - i % 6;
                      l[4 + (i / 6 | 0)] |= r[28 + (o[i + 24] - 1 + f) % 28] << 31 - i % 6;
                    }
                    l[0] = l[0] << 1 | l[0] >>> 31;
                    for (var i = 1; i < 7; i++) {
                      l[i] = l[i] >>> 4 * (i - 1) + 3;
                    }
                    l[7] = l[7] << 5 | l[7] >>> 27;
                  }
                  var h = this._invSubKeys = [];
                  for (var i = 0; i < 16; i++) {
                    h[i] = s[15 - i];
                  }
                },
                encryptBlock: function encryptBlock(t, e) {
                  this._doCryptBlock(t, e, this._subKeys);
                },
                decryptBlock: function decryptBlock(t, e) {
                  this._doCryptBlock(t, e, this._invSubKeys);
                },
                _doCryptBlock: function _doCryptBlock(t, e, r) {
                  this._lBlock = t[e];
                  this._rBlock = t[e + 1];
                  h.call(this, 4, 252645135);
                  h.call(this, 16, 65535);
                  d.call(this, 2, 858993459);
                  d.call(this, 8, 16711935);
                  h.call(this, 1, 1431655765);
                  for (var i = 0; i < 16; i++) {
                    var n = r[i];
                    var s = this._lBlock;
                    var a = this._rBlock;
                    var o = 0;
                    for (var u = 0; u < 8; u++) {
                      o |= c[u][((a ^ n[u]) & l[u]) >>> 0];
                    }
                    this._lBlock = a;
                    this._rBlock = s ^ o;
                  }
                  var f = this._lBlock;
                  this._lBlock = this._rBlock;
                  this._rBlock = f;
                  h.call(this, 1, 1431655765);
                  d.call(this, 8, 16711935);
                  d.call(this, 2, 858993459);
                  h.call(this, 16, 65535);
                  h.call(this, 4, 252645135);
                  t[e] = this._lBlock;
                  t[e + 1] = this._rBlock;
                },
                keySize: 64 / 32,
                ivSize: 64 / 32,
                blockSize: 64 / 32
              });
              function h(t, e) {
                var r = (this._lBlock >>> t ^ this._rBlock) & e;
                this._rBlock ^= r;
                this._lBlock ^= r << t;
              }
              function d(t, e) {
                var r = (this._rBlock >>> t ^ this._lBlock) & e;
                this._lBlock ^= r;
                this._rBlock ^= r << t;
              }
              e.DES = n._createHelper(f);
              var v = s.TripleDES = n.extend({
                _doReset: function _doReset() {
                  var t = this._key;
                  var e = t.words;
                  if (2 !== e.length && 4 !== e.length && e.length < 6) throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
                  var r = e.slice(0, 2);
                  var n = e.length < 4 ? e.slice(0, 2) : e.slice(2, 4);
                  var s = e.length < 6 ? e.slice(0, 2) : e.slice(4, 6);
                  this._des1 = f.createEncryptor(i.create(r));
                  this._des2 = f.createEncryptor(i.create(n));
                  this._des3 = f.createEncryptor(i.create(s));
                },
                encryptBlock: function encryptBlock(t, e) {
                  this._des1.encryptBlock(t, e);
                  this._des2.decryptBlock(t, e);
                  this._des3.encryptBlock(t, e);
                },
                decryptBlock: function decryptBlock(t, e) {
                  this._des3.decryptBlock(t, e);
                  this._des2.encryptBlock(t, e);
                  this._des1.decryptBlock(t, e);
                },
                keySize: 192 / 32,
                ivSize: 64 / 32,
                blockSize: 64 / 32
              });
              e.TripleDES = n._createHelper(v);
            })();
            return t.TripleDES;
          });
        },
        4938: function _(t, e, r) {
          (function (i, n) {
            t.exports = n(r(8249));
          })(this, function (t) {
            (function (e) {
              var r = t;
              var i = r.lib;
              var n = i.Base;
              var s = i.WordArray;
              var a = r.x64 = {};
              a.Word = n.extend({
                init: function init(t, e) {
                  this.high = t;
                  this.low = e;
                }
              });
              a.WordArray = n.extend({
                init: function init(t, r) {
                  t = this.words = t || [];
                  if (r != e) this.sigBytes = r;else this.sigBytes = 8 * t.length;
                },
                toX32: function toX32() {
                  var t = this.words;
                  var e = t.length;
                  var r = [];
                  for (var i = 0; i < e; i++) {
                    var n = t[i];
                    r.push(n.high);
                    r.push(n.low);
                  }
                  return s.create(r, this.sigBytes);
                },
                clone: function clone() {
                  var t = n.clone.call(this);
                  var e = t.words = this.words.slice(0);
                  var r = e.length;
                  for (var i = 0; i < r; i++) {
                    e[i] = e[i].clone();
                  }
                  return t;
                }
              });
            })();
            return t;
          });
        },
        4198: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          e.ErrorCode = void 0;
          (function (t) {
            t[t["SUCCESS"] = 0] = "SUCCESS";
            t[t["CLIENT_ID_NOT_FOUND"] = 1] = "CLIENT_ID_NOT_FOUND";
            t[t["OPERATION_TOO_OFTEN"] = 2] = "OPERATION_TOO_OFTEN";
            t[t["REPEAT_MESSAGE"] = 3] = "REPEAT_MESSAGE";
            t[t["TIME_OUT"] = 4] = "TIME_OUT";
          })(e.ErrorCode || (e.ErrorCode = {}));
        },
        9021: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          var n = i(r(6893));
          var s = i(r(7555));
          var a = i(r(6379));
          var o = i(r(529));
          var u;
          (function (t) {
            function e(t) {
              o.default.debugMode = t;
              o.default.info("setDebugMode: ".concat(t));
            }
            t.setDebugMode = e;
            function r(t) {
              try {
                s.default.init(t);
              } catch (t) {
                o.default.error("init error", t);
              }
            }
            t.init = r;
            function i(t) {
              try {
                if (!t.url) throw new Error("invalid url");
                if (!t.key || !t.keyId) throw new Error("invalid key or keyId");
                a.default.socketUrl = t.url;
                a.default.publicKeyId = t.keyId;
                a.default.publicKey = t.key;
              } catch (t) {
                o.default.error("setSocketServer error", t);
              }
            }
            t.setSocketServer = i;
            function u(t) {
              try {
                s.default.enableSocket(t);
              } catch (t) {
                o.default.error("enableSocket error", t);
              }
            }
            t.enableSocket = u;
            function c() {
              return n.default.SDK_VERSION;
            }
            t.getVersion = c;
          })(u || (u = {}));
          t.exports = u;
        },
        9478: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(496));
          var s = i(r(3555));
          var a = i(r(1929));
          var o = i(r(4379));
          var u = i(r(6899));
          var c = i(r(776));
          var l = i(r(2002));
          var f = i(r(5807));
          var h = i(r(9704));
          var d = i(r(6545));
          var v = i(r(3680));
          var p = i(r(7706));
          var g = i(r(4486));
          var y = i(r(5867));
          var m = i(r(7006));
          var w;
          (function (t) {
            var e;
            var r;
            var i;
            function w() {
              if ("undefined" != typeof uni) {
                e = new d.default();
                r = new v.default();
                i = new p.default();
              } else if ("undefined" != typeof tt) {
                e = new l.default();
                r = new f.default();
                i = new h.default();
              } else if ("undefined" != typeof my) {
                e = new n.default();
                r = new s.default();
                i = new a.default();
              } else if ("undefined" != typeof wx) {
                e = new g.default();
                r = new y.default();
                i = new m.default();
              } else if ("undefined" != typeof window) {
                e = new o.default();
                r = new u.default();
                i = new c.default();
              }
            }
            function _() {
              if (!e) w();
              return e;
            }
            t.getDevice = _;
            function S() {
              if (!r) w();
              return r;
            }
            t.getStorage = S;
            function b() {
              if (!i) w();
              return i;
            }
            t.getWebSocket = b;
          })(w || (w = {}));
          e["default"] = w;
        },
        4685: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(9478));
          var s;
          (function (t) {
            function e() {
              return n.default.getDevice().os();
            }
            t.os = e;
            function r() {
              return n.default.getDevice().osVersion();
            }
            t.osVersion = r;
            function i() {
              return n.default.getDevice().model();
            }
            t.model = i;
            function s() {
              return n.default.getDevice().brand();
            }
            t.brand = s;
            function a() {
              return n.default.getDevice().platform();
            }
            t.platform = a;
            function o() {
              return n.default.getDevice().platformVersion();
            }
            t.platformVersion = o;
            function u() {
              return n.default.getDevice().platformId();
            }
            t.platformId = u;
            function c() {
              return n.default.getDevice().language();
            }
            t.language = c;
            function l() {
              var t = n.default.getDevice().userAgent;
              if (t) return t();
              return "";
            }
            t.userAgent = l;
            function f(t) {
              n.default.getDevice().getNetworkType(t);
            }
            t.getNetworkType = f;
            function h(t) {
              n.default.getDevice().onNetworkStatusChange(t);
            }
            t.onNetworkStatusChange = h;
          })(s || (s = {}));
          e["default"] = s;
        },
        7002: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(6379));
          var s = i(r(1386));
          var a = i(r(4054));
          var o = r(2918);
          var u = i(r(7167));
          var c = i(r(529));
          var l = i(r(9478));
          var f = i(r(8506));
          var h;
          (function (t) {
            var e;
            var r = false;
            var i = false;
            var h = false;
            var d = [];
            var v = 10;
            var p = 0;
            t.allowReconnect = true;
            function g() {
              return r && i;
            }
            t.isAvailable = g;
            function y(e) {
              var r = new Date().getTime();
              if (r - p < 1e3) {
                c.default.warn("enableSocket ".concat(e, " fail: this function can only be called once a second"));
                return;
              }
              p = r;
              t.allowReconnect = e;
              if (e) t.reconnect(10);else t.close("enableSocket ".concat(e));
            }
            t.enableSocket = y;
            function m() {
              var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
              if (!t.allowReconnect) return;
              if (!S()) return;
              setTimeout(function () {
                w();
              }, e);
            }
            t.reconnect = m;
            function w() {
              t.allowReconnect = true;
              if (!S()) return;
              if (!b()) return;
              h = true;
              var r = n.default.socketUrl;
              try {
                var _t2 = f.default.getSync(f.default.KEY_REDIRECT_SERVER, "");
                if (_t2) {
                  var _e = o.RedirectServerData.parse(_t2);
                  var _i = _e.addressList[0].split(",");
                  var _n = _i[0];
                  var _s = Number(_i[1]);
                  var _a = new Date().getTime();
                  if (_a - _e.time < 1e3 * _s) r = _n;
                }
              } catch (t) {}
              e = l.default.getWebSocket().connect({
                url: r,
                success: function success() {
                  i = true;
                  _();
                },
                fail: function fail() {
                  i = false;
                  T();
                  m(100);
                }
              });
              e.onOpen(M);
              e.onClose(x);
              e.onError(A);
              e.onMessage(I);
            }
            t.connect = w;
            function _() {
              if (i && r) {
                h = false;
                s.default.create().send();
                u.default.getInstance().start();
              }
            }
            function S() {
              if (!n.default.networkConnected) {
                c.default.error("connect failed, network is not available");
                return false;
              }
              if (h) {
                c.default.warn("connecting");
                return false;
              }
              if (g()) {
                c.default.warn("already connected");
                return false;
              }
              return true;
            }
            function b() {
              var t = d.length;
              var e = new Date().getTime();
              if (t > 0) for (var r = t - 1; r >= 0; r--) {
                if (e - d[r] > 5e3) {
                  d.splice(0, r + 1);
                  break;
                }
              }
              t = d.length;
              d.push(e);
              if (t >= v) {
                c.default.error("connect failed, connection limit reached");
                return false;
              }
              return true;
            }
            function E() {
              var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
              null === e || void 0 === e || e.close({
                code: 1e3,
                reason: t,
                success: function success(t) {},
                fail: function fail(t) {}
              });
              T();
            }
            t.close = E;
            function D(t) {
              if (r && r) null === e || void 0 === e || e.send({
                data: t,
                success: function success(t) {},
                fail: function fail(t) {}
              });else throw new Error("socket not connect");
            }
            t.send = D;
            function T(t) {
              var e;
              i = false;
              r = false;
              h = false;
              u.default.getInstance().cancel();
              if (n.default.online) {
                n.default.online = false;
                null === (e = n.default.onlineState) || void 0 === e || e.call(n.default.onlineState, {
                  online: n.default.online
                });
              }
            }
            var M = function M(t) {
              r = true;
              _();
            };
            var I = function I(t) {
              try {
                t.data;
                u.default.getInstance().refresh();
                a.default.receiveMessage(t.data);
              } catch (t) {}
            };
            var A = function A(t) {
              E("socket error");
            };
            var x = function x(t) {
              T();
            };
          })(h || (h = {}));
          e["default"] = h;
        },
        8506: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(9478));
          var s;
          (function (t) {
            t.KEY_APPID = "getui_appid";
            t.KEY_CID = "getui_cid";
            t.KEY_SESSION = "getui_session";
            t.KEY_REGID = "getui_regid";
            t.KEY_SOCKET_URL = "getui_socket_url";
            t.KEY_DEVICE_ID = "getui_deviceid";
            t.KEY_ADD_PHONE_INFO_TIME = "getui_api_time";
            t.KEY_BIND_ALIAS_TIME = "getui_ba_time";
            t.KEY_SET_TAG_TIME = "getui_st_time";
            t.KEY_REDIRECT_SERVER = "getui_redirect_server";
            t.KEY_LAST_CONNECT_TIME = "getui_last_connect_time";
            function e(t) {
              n.default.getStorage().set(t);
            }
            t.set = e;
            function r(t, e) {
              n.default.getStorage().setSync(t, e);
            }
            t.setSync = r;
            function i(t) {
              n.default.getStorage().get(t);
            }
            t.get = i;
            function s(t, e) {
              var r = n.default.getStorage().getSync(t);
              return r ? r : e;
            }
            t.getSync = s;
          })(s || (s = {}));
          e["default"] = s;
        },
        496: function _(t) {
          var e = /*#__PURE__*/function () {
            "use strict";

            function e() {
              _classCallCheck(this, e);
              this.systemInfo = my.getSystemInfoSync();
            }
            _createClass(e, [{
              key: "os",
              value: function os() {
                var t;
                return null === (t = this.systemInfo) || void 0 === t ? void 0 : t.platform;
              }
            }, {
              key: "osVersion",
              value: function osVersion() {
                var t;
                return null === (t = this.systemInfo) || void 0 === t ? void 0 : t.system;
              }
            }, {
              key: "model",
              value: function model() {
                var t;
                return null === (t = this.systemInfo) || void 0 === t ? void 0 : t.model;
              }
            }, {
              key: "brand",
              value: function brand() {
                var t;
                return null === (t = this.systemInfo) || void 0 === t ? void 0 : t.brand;
              }
            }, {
              key: "platform",
              value: function platform() {
                return "MP-ALIPAY";
              }
            }, {
              key: "platformVersion",
              value: function platformVersion() {
                return this.systemInfo.app + " " + this.systemInfo.version;
              }
            }, {
              key: "platformId",
              value: function platformId() {
                return my.getAppIdSync();
              }
            }, {
              key: "language",
              value: function language() {
                var t;
                return null === (t = this.systemInfo) || void 0 === t ? void 0 : t.language;
              }
            }, {
              key: "getNetworkType",
              value: function getNetworkType(t) {
                my.getNetworkType({
                  success: function success(_e2) {
                    var r;
                    null === (r = t.success) || void 0 === r || r.call(t.success, {
                      networkType: _e2.networkType
                    });
                  },
                  fail: function fail() {
                    var _e3;
                    null === (_e3 = t.fail) || void 0 === _e3 || _e3.call(t.fail, "");
                  }
                });
              }
            }, {
              key: "onNetworkStatusChange",
              value: function onNetworkStatusChange(t) {
                my.onNetworkStatusChange(t);
              }
            }]);
            return e;
          }();
          t.exports = e;
        },
        3555: function _(t) {
          var e = /*#__PURE__*/function () {
            "use strict";

            function e() {
              _classCallCheck(this, e);
            }
            _createClass(e, [{
              key: "set",
              value: function set(t) {
                my.setStorage({
                  key: t.key,
                  data: t.data,
                  success: t.success,
                  fail: t.fail
                });
              }
            }, {
              key: "setSync",
              value: function setSync(t, _e4) {
                my.setStorageSync({
                  key: t,
                  data: _e4
                });
              }
            }, {
              key: "get",
              value: function get(t) {
                my.getStorage({
                  key: t.key,
                  success: t.success,
                  fail: t.fail,
                  complete: t.complete
                });
              }
            }, {
              key: "getSync",
              value: function getSync(t) {
                return my.getStorageSync({
                  key: t
                }).data;
              }
            }]);
            return e;
          }();
          t.exports = e;
        },
        1929: function _(t) {
          var e = /*#__PURE__*/function () {
            "use strict";

            function e() {
              _classCallCheck(this, e);
            }
            _createClass(e, [{
              key: "connect",
              value: function connect(t) {
                my.connectSocket({
                  url: t.url,
                  header: t.header,
                  method: t.method,
                  success: t.success,
                  fail: t.fail,
                  complete: t.complete
                });
                return {
                  onOpen: my.onSocketOpen,
                  send: my.sendSocketMessage,
                  onMessage: function onMessage(t) {
                    my.onSocketMessage.call(my.onSocketMessage, function (_e5) {
                      t.call(t, {
                        data: _e5 ? _e5.data : ""
                      });
                    });
                  },
                  onError: my.onSocketError,
                  onClose: my.onSocketClose,
                  close: my.closeSocket
                };
              }
            }]);
            return e;
          }();
          t.exports = e;
        },
        4379: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, [{
              key: "os",
              value: function os() {
                var t = window.navigator.userAgent.toLowerCase();
                if (t.indexOf("android") > 0 || t.indexOf("adr") > 0) return "android";
                if (!!t.match(/\(i[^;]+;( u;)? cpu.+mac os x/)) return "ios";
                if (t.indexOf("windows") > 0 || t.indexOf("win32") > 0 || t.indexOf("win64") > 0) return "windows";
                if (t.indexOf("macintosh") > 0 || t.indexOf("mac os") > 0) return "mac os";
                if (t.indexOf("linux") > 0) return "linux";
                if (t.indexOf("unix") > 0) return "linux";
                return "other";
              }
            }, {
              key: "osVersion",
              value: function osVersion() {
                var t = window.navigator.userAgent.toLowerCase();
                var e = t.substring(t.indexOf(";") + 1).trim();
                if (e.indexOf(";") > 0) return e.substring(0, e.indexOf(";")).trim();
                return e.substring(0, e.indexOf(")")).trim();
              }
            }, {
              key: "model",
              value: function model() {
                return "";
              }
            }, {
              key: "brand",
              value: function brand() {
                return "";
              }
            }, {
              key: "platform",
              value: function platform() {
                return "H5";
              }
            }, {
              key: "platformVersion",
              value: function platformVersion() {
                return "";
              }
            }, {
              key: "platformId",
              value: function platformId() {
                return "";
              }
            }, {
              key: "language",
              value: function language() {
                return window.navigator.language;
              }
            }, {
              key: "userAgent",
              value: function userAgent() {
                return window.navigator.userAgent;
              }
            }, {
              key: "getNetworkType",
              value: function getNetworkType(t) {
                var e;
                null === (e = t.success) || void 0 === e || e.call(t.success, {
                  networkType: window.navigator.onLine ? "unknown" : "none"
                });
              }
            }, {
              key: "onNetworkStatusChange",
              value: function onNetworkStatusChange(t) {}
            }]);
            return r;
          }();
          e["default"] = r;
        },
        6899: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, [{
              key: "set",
              value: function set(t) {
                var e;
                window.localStorage.setItem(t.key, t.data);
                null === (e = t.success) || void 0 === e || e.call(t.success, "");
              }
            }, {
              key: "setSync",
              value: function setSync(t, e) {
                window.localStorage.setItem(t, e);
              }
            }, {
              key: "get",
              value: function get(t) {
                var e;
                var _r = window.localStorage.getItem(t.key);
                null === (e = t.success) || void 0 === e || e.call(t.success, _r);
              }
            }, {
              key: "getSync",
              value: function getSync(t) {
                return window.localStorage.getItem(t);
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        776: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, [{
              key: "connect",
              value: function connect(t) {
                var e = new WebSocket(t.url);
                return {
                  send: function send(t) {
                    var _r2, i;
                    try {
                      e.send(t.data);
                      null === (_r2 = t.success) || void 0 === _r2 || _r2.call(t.success, {
                        errMsg: ""
                      });
                    } catch (e) {
                      null === (i = t.fail) || void 0 === i || i.call(t.fail, {
                        errMsg: e + ""
                      });
                    }
                  },
                  close: function close(t) {
                    var _r3, i;
                    try {
                      e.close(t.code, t.reason);
                      null === (_r3 = t.success) || void 0 === _r3 || _r3.call(t.success, {
                        errMsg: ""
                      });
                    } catch (e) {
                      null === (i = t.fail) || void 0 === i || i.call(t.fail, {
                        errMsg: e + ""
                      });
                    }
                  },
                  onOpen: function onOpen(_r4) {
                    e.onopen = function (e) {
                      var i;
                      null === (i = t.success) || void 0 === i || i.call(t.success, "");
                      _r4({
                        header: ""
                      });
                    };
                  },
                  onError: function onError(_r5) {
                    e.onerror = function (e) {
                      var i;
                      null === (i = t.fail) || void 0 === i || i.call(t.fail, "");
                      _r5({
                        errMsg: ""
                      });
                    };
                  },
                  onMessage: function onMessage(t) {
                    e.onmessage = function (e) {
                      t({
                        data: e.data
                      });
                    };
                  },
                  onClose: function onClose(t) {
                    e.onclose = function (e) {
                      t(e);
                    };
                  }
                };
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        2002: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
              this.systemInfo = tt.getSystemInfoSync();
            }
            _createClass(r, [{
              key: "os",
              value: function os() {
                return this.systemInfo.platform;
              }
            }, {
              key: "osVersion",
              value: function osVersion() {
                return this.systemInfo.system;
              }
            }, {
              key: "model",
              value: function model() {
                return this.systemInfo.model;
              }
            }, {
              key: "brand",
              value: function brand() {
                return this.systemInfo.brand;
              }
            }, {
              key: "platform",
              value: function platform() {
                return "MP-TOUTIAO";
              }
            }, {
              key: "platformVersion",
              value: function platformVersion() {
                return this.systemInfo.appName + " " + this.systemInfo.version;
              }
            }, {
              key: "language",
              value: function language() {
                return "";
              }
            }, {
              key: "platformId",
              value: function platformId() {
                return "";
              }
            }, {
              key: "getNetworkType",
              value: function getNetworkType(t) {
                tt.getNetworkType(t);
              }
            }, {
              key: "onNetworkStatusChange",
              value: function onNetworkStatusChange(t) {
                tt.onNetworkStatusChange(t);
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        5807: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, [{
              key: "set",
              value: function set(t) {
                tt.setStorage(t);
              }
            }, {
              key: "setSync",
              value: function setSync(t, e) {
                tt.setStorageSync(t, e);
              }
            }, {
              key: "get",
              value: function get(t) {
                tt.getStorage(t);
              }
            }, {
              key: "getSync",
              value: function getSync(t) {
                return tt.getStorageSync(t);
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        9704: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, [{
              key: "connect",
              value: function connect(t) {
                var e = tt.connectSocket({
                  url: t.url,
                  header: t.header,
                  protocols: t.protocols,
                  success: t.success,
                  fail: t.fail,
                  complete: t.complete
                });
                return {
                  onOpen: e.onOpen,
                  send: e.send,
                  onMessage: e.onMessage,
                  onError: e.onError,
                  onClose: e.onClose,
                  close: e.close
                };
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        6545: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
              try {
                this.systemInfo = uni.getSystemInfoSync();
                this.accountInfo = uni.getAccountInfoSync();
              } catch (t) {}
            }
            _createClass(r, [{
              key: "os",
              value: function os() {
                return this.systemInfo ? this.systemInfo.platform : "";
              }
            }, {
              key: "model",
              value: function model() {
                return this.systemInfo ? this.systemInfo.model : "";
              }
            }, {
              key: "brand",
              value: function brand() {
                var t;
                return (null === (t = this.systemInfo) || void 0 === t ? void 0 : t.brand) ? this.systemInfo.brand : "";
              }
            }, {
              key: "osVersion",
              value: function osVersion() {
                return this.systemInfo ? this.systemInfo.system : "";
              }
            }, {
              key: "platform",
              value: function platform() {
                var t = "";
                t = "MP-WEIXIN";
                return t;
              }
            }, {
              key: "platformVersion",
              value: function platformVersion() {
                return this.systemInfo ? this.systemInfo.version : "";
              }
            }, {
              key: "platformId",
              value: function platformId() {
                return this.accountInfo ? this.accountInfo.miniProgram.appId : "";
              }
            }, {
              key: "language",
              value: function language() {
                var t;
                return (null === (t = this.systemInfo) || void 0 === t ? void 0 : t.language) ? this.systemInfo.language : "";
              }
            }, {
              key: "userAgent",
              value: function userAgent() {
                return window ? window.navigator.userAgent : "";
              }
            }, {
              key: "getNetworkType",
              value: function getNetworkType(t) {
                uni.getNetworkType(t);
              }
            }, {
              key: "onNetworkStatusChange",
              value: function onNetworkStatusChange(t) {
                uni.onNetworkStatusChange(t);
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        3680: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, [{
              key: "set",
              value: function set(t) {
                uni.setStorage(t);
              }
            }, {
              key: "setSync",
              value: function setSync(t, e) {
                uni.setStorageSync(t, e);
              }
            }, {
              key: "get",
              value: function get(t) {
                uni.getStorage(t);
              }
            }, {
              key: "getSync",
              value: function getSync(t) {
                return uni.getStorageSync(t);
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        7706: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, [{
              key: "connect",
              value: function connect(t) {
                var e = uni.connectSocket(t);
                return {
                  send: function send(t) {
                    null === e || void 0 === e || e.send(t);
                  },
                  close: function close(t) {
                    null === e || void 0 === e || e.close(t);
                  },
                  onOpen: function onOpen(t) {
                    null === e || void 0 === e || e.onOpen(t);
                  },
                  onError: function onError(t) {
                    null === e || void 0 === e || e.onError(t);
                  },
                  onMessage: function onMessage(t) {
                    null === e || void 0 === e || e.onMessage(t);
                  },
                  onClose: function onClose(t) {
                    null === e || void 0 === e || e.onClose(t);
                  }
                };
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        4486: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
              this.systemInfo = wx.getSystemInfoSync();
            }
            _createClass(r, [{
              key: "os",
              value: function os() {
                return this.systemInfo.platform;
              }
            }, {
              key: "osVersion",
              value: function osVersion() {
                return this.systemInfo.system;
              }
            }, {
              key: "model",
              value: function model() {
                return this.systemInfo.model;
              }
            }, {
              key: "brand",
              value: function brand() {
                return this.systemInfo.brand;
              }
            }, {
              key: "platform",
              value: function platform() {
                return "MP-WEIXIN";
              }
            }, {
              key: "platformVersion",
              value: function platformVersion() {
                return this.systemInfo.version;
              }
            }, {
              key: "language",
              value: function language() {
                return this.systemInfo.language;
              }
            }, {
              key: "platformId",
              value: function platformId() {
                if (wx.canIUse("getAccountInfoSync")) return wx.getAccountInfoSync().miniProgram.appId;
                return "";
              }
            }, {
              key: "getNetworkType",
              value: function getNetworkType(t) {
                wx.getNetworkType({
                  success: function success(e) {
                    var _r6;
                    null === (_r6 = t.success) || void 0 === _r6 || _r6.call(t.success, {
                      networkType: e.networkType
                    });
                  },
                  fail: t.fail
                });
              }
            }, {
              key: "onNetworkStatusChange",
              value: function onNetworkStatusChange(t) {
                wx.onNetworkStatusChange(t);
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        5867: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, [{
              key: "set",
              value: function set(t) {
                wx.setStorage(t);
              }
            }, {
              key: "setSync",
              value: function setSync(t, e) {
                wx.setStorageSync(t, e);
              }
            }, {
              key: "get",
              value: function get(t) {
                wx.getStorage(t);
              }
            }, {
              key: "getSync",
              value: function getSync(t) {
                return wx.getStorageSync(t);
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        7006: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, [{
              key: "connect",
              value: function connect(t) {
                var e = wx.connectSocket({
                  url: t.url,
                  header: t.header,
                  protocols: t.protocols,
                  success: t.success,
                  fail: t.fail,
                  complete: t.complete
                });
                return {
                  onOpen: e.onOpen,
                  send: e.send,
                  onMessage: e.onMessage,
                  onError: e.onError,
                  onClose: e.onClose,
                  close: e.close
                };
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        6893: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r;
          (function (t) {
            t.SDK_VERSION = "GTMP-2.0.3.dcloud";
            t.DEFAULT_SOCKET_URL = "wss://wshzn.gepush.com:5223/nws";
            t.SOCKET_PROTOCOL_VERSION = "1.0";
            t.SERVER_PUBLIC_KEY = "MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB";
            t.SERVER_PUBLIC_KEY_ID = "69d747c4b9f641baf4004be4297e9f3b";
            t.ID_U_2_G = true;
          })(r || (r = {}));
          e["default"] = r;
        },
        7555: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(7002));
          var s = i(r(529));
          var a = i(r(6379));
          var o = /*#__PURE__*/function () {
            "use strict";

            function o() {
              _classCallCheck(this, o);
            }
            _createClass(o, null, [{
              key: "init",
              value: function init(t) {
                var e;
                if (this.inited) return;
                try {
                  this.checkAppid(t.appid);
                  this.inited = true;
                  s.default.info("init: appid=".concat(t.appid));
                  a.default.init(t);
                  n.default.connect();
                } catch (r) {
                  this.inited = false;
                  null === (e = t.onError) || void 0 === e || e.call(t.onError, {
                    error: r
                  });
                  throw r;
                }
              }
            }, {
              key: "enableSocket",
              value: function enableSocket(t) {
                this.checkInit();
                n.default.enableSocket(t);
              }
            }, {
              key: "checkInit",
              value: function checkInit() {
                if (!this.inited) throw new Error("not init, please invoke init method firstly");
              }
            }, {
              key: "checkAppid",
              value: function checkAppid(t) {
                if (null == t || void 0 == t || "" == t.trim()) throw new Error("invalid appid ".concat(t));
              }
            }]);
            return o;
          }();
          o.inited = false;
          e["default"] = o;
        },
        6379: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(6667));
          var s = i(r(8506));
          var a = i(r(6893));
          var o = i(r(7002));
          var u = i(r(529));
          var c = i(r(4685));
          var l = i(r(2323));
          var f = /*#__PURE__*/function () {
            "use strict";

            function f() {
              _classCallCheck(this, f);
            }
            _createClass(f, null, [{
              key: "init",
              value: function init(t) {
                var e;
                if (a.default.ID_U_2_G) this.appid = l.default.to_getui(t.appid);else this.appid = t.appid;
                this.onError = t.onError;
                this.onClientId = t.onClientId;
                this.onlineState = t.onlineState;
                this.onPushMsg = t.onPushMsg;
                if (this.appid != s.default.getSync(s.default.KEY_APPID, this.appid)) {
                  u.default.info("appid changed, clear session and cid");
                  s.default.setSync(s.default.KEY_CID, "");
                  s.default.setSync(s.default.KEY_SESSION, "");
                }
                s.default.setSync(s.default.KEY_APPID, this.appid);
                this.cid = s.default.getSync(s.default.KEY_CID, this.cid);
                if (this.cid) null === (e = this.onClientId) || void 0 === e || e.call(this.onClientId, {
                  cid: f.cid
                });
                this.session = s.default.getSync(s.default.KEY_SESSION, this.session);
                this.deviceId = s.default.getSync(s.default.KEY_DEVICE_ID, this.deviceId);
                this.regId = s.default.getSync(s.default.KEY_REGID, this.regId);
                if (!this.regId) {
                  this.regId = this.createRegId();
                  s.default.set({
                    key: s.default.KEY_REGID,
                    data: this.regId
                  });
                }
                this.socketUrl = s.default.getSync(s.default.KEY_SOCKET_URL, this.socketUrl);
                var r = this;
                c.default.getNetworkType({
                  success: function success(t) {
                    r.networkType = t.networkType;
                    r.networkConnected = "none" != r.networkType && "" != r.networkType;
                  }
                });
                c.default.onNetworkStatusChange(function (t) {
                  r.networkConnected = t.isConnected;
                  r.networkType = t.networkType;
                  if (r.networkConnected) o.default.reconnect(100);
                });
              }
            }, {
              key: "createRegId",
              value: function createRegId() {
                return "M-V".concat(n.default.md5Hex(this.getUuid()), "-").concat(new Date().getTime());
              }
            }, {
              key: "getUuid",
              value: function getUuid() {
                return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (t) {
                  var e = 16 * Math.random() | 0,
                    r = "x" === t ? e : 3 & e | 8;
                  return r.toString(16);
                });
              }
            }]);
            return f;
          }();
          f.appid = "";
          f.cid = "";
          f.regId = "";
          f.session = "";
          f.deviceId = "";
          f.packetId = 1;
          f.online = false;
          f.socketUrl = a.default.DEFAULT_SOCKET_URL;
          f.publicKeyId = a.default.SERVER_PUBLIC_KEY_ID;
          f.publicKey = a.default.SERVER_PUBLIC_KEY;
          f.lastAliasTime = 0;
          f.networkConnected = true;
          f.networkType = "none";
          e["default"] = f;
        },
        9586: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          var n, s;
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var a = i(r(661));
          var o = r(4198);
          var u = i(r(6379));
          var c = /*#__PURE__*/function (_a$default) {
            "use strict";

            _inherits(c, _a$default);
            var _super = _createSuper(c);
            function c() {
              var _this;
              _classCallCheck(this, c);
              _this = _super.apply(this, arguments);
              _this.actionMsgData = new l();
              return _this;
            }
            _createClass(c, [{
              key: "send",
              value: function send() {
                var _this2 = this;
                setTimeout(function () {
                  var t;
                  if (c.waitingLoginMsgMap.has(_this2.actionMsgData.msgId) || c.waitingResponseMsgMap.has(_this2.actionMsgData.msgId)) {
                    c.waitingLoginMsgMap.delete(_this2.actionMsgData.msgId);
                    c.waitingResponseMsgMap.delete(_this2.actionMsgData.msgId);
                    null === (t = _this2.callback) || void 0 === t || t.call(_this2.callback, {
                      resultCode: o.ErrorCode.TIME_OUT,
                      message: "waiting time out"
                    });
                  }
                }, 1e4);
                if (!u.default.online) {
                  c.waitingLoginMsgMap.set(this.actionMsgData.msgId, this);
                  return;
                }
                if (this.actionMsgData.msgAction != c.ClientAction.RECEIVED) c.waitingResponseMsgMap.set(this.actionMsgData.msgId, this);
                _get(_getPrototypeOf(c.prototype), "send", this).call(this);
              }
            }, {
              key: "receive",
              value: function receive() {}
            }], [{
              key: "initActionMsg",
              value: function initActionMsg(t) {
                _get(_getPrototypeOf(c), "initMsg", this).call(this, t);
                t.command = a.default.Command.CLIENT_MSG;
                t.data = t.actionMsgData = l.create();
                return t;
              }
            }, {
              key: "parseActionMsg",
              value: function parseActionMsg(t, e) {
                _get(_getPrototypeOf(c), "parseMsg", this).call(this, t, e);
                t.actionMsgData = l.parse(t.data);
                return t;
              }
            }, {
              key: "sendWaitingMessages",
              value: function sendWaitingMessages() {
                var t = this.waitingLoginMsgMap.keys();
                var e;
                while (e = t.next(), !e.done) {
                  var _t3 = this.waitingLoginMsgMap.get(e.value);
                  this.waitingLoginMsgMap.delete(e.value);
                  null === _t3 || void 0 === _t3 || _t3.send();
                }
              }
            }, {
              key: "getWaitingResponseMessage",
              value: function getWaitingResponseMessage(t) {
                return c.waitingResponseMsgMap.get(t);
              }
            }, {
              key: "removeWaitingResponseMessage",
              value: function removeWaitingResponseMessage(t) {
                var e = c.waitingResponseMsgMap.get(t);
                if (e) c.waitingResponseMsgMap.delete(t);
                return e;
              }
            }]);
            return c;
          }(a.default);
          c.ServerAction = (n = /*#__PURE__*/_createClass(function n() {
            "use strict";

            _classCallCheck(this, n);
          }), n.PUSH_MESSAGE = "pushmessage", n.REDIRECT_SERVER = "redirect_server", n.ADD_PHONE_INFO_RESULT = "addphoneinfo", n.SET_MODE_RESULT = "set_mode_result", n.SET_TAG_RESULT = "settag_result", n.BIND_ALIAS_RESULT = "response_bind", n.UNBIND_ALIAS_RESULT = "response_unbind", n.FEED_BACK_RESULT = "pushmessage_feedback", n.RECEIVED = "received", n);
          c.ClientAction = (s = /*#__PURE__*/_createClass(function s() {
            "use strict";

            _classCallCheck(this, s);
          }), s.ADD_PHONE_INFO = "addphoneinfo", s.SET_MODE = "set_mode", s.FEED_BACK = "pushmessage_feedback", s.SET_TAGS = "set_tag", s.BIND_ALIAS = "bind_alias", s.UNBIND_ALIAS = "unbind_alias", s.RECEIVED = "received", s);
          c.waitingLoginMsgMap = new Map();
          c.waitingResponseMsgMap = new Map();
          var l = /*#__PURE__*/function () {
            "use strict";

            function l() {
              _classCallCheck(this, l);
              this.appId = "";
              this.cid = "";
              this.msgId = "";
              this.msgAction = "";
              this.msgData = "";
              this.msgExtraData = "";
            }
            _createClass(l, null, [{
              key: "create",
              value: function create() {
                var t = new l();
                t.appId = u.default.appid;
                t.cid = u.default.cid;
                t.msgId = (2147483647 & new Date().getTime()).toString();
                return t;
              }
            }, {
              key: "parse",
              value: function parse(t) {
                var e = new l();
                var r = JSON.parse(t);
                e.appId = r.appId;
                e.cid = r.cid;
                e.msgId = r.msgId;
                e.msgAction = r.msgAction;
                e.msgData = r.msgData;
                e.msgExtraData = r.msgExtraData;
                return e;
              }
            }]);
            return l;
          }();
          e["default"] = c;
        },
        4516: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(4685));
          var s = i(r(8506));
          var a = i(r(6893));
          var o = r(4198);
          var u = i(r(9586));
          var c = i(r(6379));
          var l = /*#__PURE__*/function (_u$default) {
            "use strict";

            _inherits(l, _u$default);
            var _super2 = _createSuper(l);
            function l() {
              var _this3;
              _classCallCheck(this, l);
              _this3 = _super2.apply(this, arguments);
              _this3.addPhoneInfoData = new f();
              return _this3;
            }
            _createClass(l, [{
              key: "send",
              value: function send() {
                var t = new Date().getTime();
                var e = s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME, 0);
                if (t - e < 24 * 60 * 60 * 1e3) return;
                _get(_getPrototypeOf(l.prototype), "send", this).call(this);
              }
            }], [{
              key: "create",
              value: function create() {
                var t = new l();
                _get(_getPrototypeOf(l), "initActionMsg", this).call(this, t);
                t.callback = function (e) {
                  if (e.resultCode != o.ErrorCode.SUCCESS && e.resultCode != o.ErrorCode.REPEAT_MESSAGE) setTimeout(function () {
                    t.send();
                  }, 30 * 1e3);else s.default.set({
                    key: s.default.KEY_ADD_PHONE_INFO_TIME,
                    data: new Date().getTime()
                  });
                };
                t.actionMsgData.msgAction = u.default.ClientAction.ADD_PHONE_INFO;
                t.addPhoneInfoData = f.create();
                t.actionMsgData.msgData = JSON.stringify(t.addPhoneInfoData);
                return t;
              }
            }]);
            return l;
          }(u.default);
          var f = /*#__PURE__*/function () {
            "use strict";

            function f() {
              _classCallCheck(this, f);
              this.model = "";
              this.brand = "";
              this.system_version = "";
              this.version = "";
              this.deviceid = "";
              this.type = "";
            }
            _createClass(f, null, [{
              key: "create",
              value: function create() {
                var t = new f();
                t.model = n.default.model();
                t.brand = n.default.brand();
                t.system_version = n.default.osVersion();
                t.version = a.default.SDK_VERSION;
                t.device_token = "";
                t.imei = "";
                t.oaid = "";
                t.mac = "";
                t.idfa = "";
                t.type = "MINIPROGRAM";
                t.deviceid = "".concat(t.type, "-").concat(c.default.deviceId);
                t.extra = {
                  os: n.default.os(),
                  platform: n.default.platform(),
                  platformVersion: n.default.platformVersion(),
                  platformId: n.default.platformId(),
                  language: n.default.language(),
                  userAgent: n.default.userAgent()
                };
                return t;
              }
            }]);
            return f;
          }();
          e["default"] = l;
        },
        8723: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          var n, s;
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var a = i(r(6379));
          var o = r(4198);
          var u = i(r(9586));
          var c = /*#__PURE__*/function (_u$default2) {
            "use strict";

            _inherits(c, _u$default2);
            var _super3 = _createSuper(c);
            function c() {
              var _this4;
              _classCallCheck(this, c);
              _this4 = _super3.apply(this, arguments);
              _this4.feedbackData = new l();
              return _this4;
            }
            _createClass(c, [{
              key: "send",
              value: function send() {
                _get(_getPrototypeOf(c.prototype), "send", this).call(this);
              }
            }], [{
              key: "create",
              value: function create(t, e) {
                var r = new c();
                _get(_getPrototypeOf(c), "initActionMsg", this).call(this, r);
                r.callback = function (t) {
                  if (t.resultCode != o.ErrorCode.SUCCESS && t.resultCode != o.ErrorCode.REPEAT_MESSAGE) setTimeout(function () {
                    r.send();
                  }, 30 * 1e3);
                };
                r.feedbackData = l.create(t, e);
                r.actionMsgData.msgAction = u.default.ClientAction.FEED_BACK;
                r.actionMsgData.msgData = JSON.stringify(r.feedbackData);
                return r;
              }
            }]);
            return c;
          }(u.default);
          c.ActionId = (n = /*#__PURE__*/_createClass(function n() {
            "use strict";

            _classCallCheck(this, n);
          }), n.RECEIVE = "0", n.MP_RECEIVE = "210000", n.WEB_RECEIVE = "220000", n.BEGIN = "1", n);
          c.RESULT = (s = /*#__PURE__*/_createClass(function s() {
            "use strict";

            _classCallCheck(this, s);
          }), s.OK = "ok", s);
          var l = /*#__PURE__*/function () {
            "use strict";

            function l() {
              _classCallCheck(this, l);
              this.messageid = "";
              this.appkey = "";
              this.appid = "";
              this.taskid = "";
              this.actionid = "";
              this.result = "";
              this.timestamp = "";
            }
            _createClass(l, null, [{
              key: "create",
              value: function create(t, e) {
                var r = new l();
                r.messageid = t.pushMessageData.messageid;
                r.appkey = t.pushMessageData.appKey;
                r.appid = a.default.appid;
                r.taskid = t.pushMessageData.taskId;
                r.actionid = e;
                r.result = c.RESULT.OK;
                r.timestamp = new Date().getTime().toString();
                return r;
              }
            }]);
            return l;
          }();
          e["default"] = c;
        },
        6362: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(661));
          var s = /*#__PURE__*/function (_n$default) {
            "use strict";

            _inherits(s, _n$default);
            var _super4 = _createSuper(s);
            function s() {
              _classCallCheck(this, s);
              return _super4.apply(this, arguments);
            }
            _createClass(s, null, [{
              key: "create",
              value: function create() {
                var t = new s();
                _get(_getPrototypeOf(s), "initMsg", this).call(this, t);
                t.command = n.default.Command.HEART_BEAT;
                return t;
              }
            }]);
            return s;
          }(n.default);
          e["default"] = s;
        },
        1386: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(6667));
          var s = i(r(6379));
          var a = i(r(661));
          var o = /*#__PURE__*/function (_a$default2) {
            "use strict";

            _inherits(o, _a$default2);
            var _super5 = _createSuper(o);
            function o() {
              var _this5;
              _classCallCheck(this, o);
              _this5 = _super5.apply(this, arguments);
              _this5.keyNegotiateData = new u();
              return _this5;
            }
            _createClass(o, [{
              key: "send",
              value: function send() {
                _get(_getPrototypeOf(o.prototype), "send", this).call(this);
              }
            }], [{
              key: "create",
              value: function create() {
                var t = new o();
                _get(_getPrototypeOf(o), "initMsg", this).call(this, t);
                t.command = a.default.Command.KEY_NEGOTIATE;
                n.default.resetKey();
                t.data = t.keyNegotiateData = u.create();
                return t;
              }
            }]);
            return o;
          }(a.default);
          var u = /*#__PURE__*/function () {
            "use strict";

            function u() {
              _classCallCheck(this, u);
              this.appId = "";
              this.rsaPublicKeyId = "";
              this.algorithm = "";
              this.secretKey = "";
              this.iv = "";
            }
            _createClass(u, null, [{
              key: "create",
              value: function create() {
                var t = new u();
                t.appId = s.default.appid;
                t.rsaPublicKeyId = s.default.publicKeyId;
                t.algorithm = "AES";
                t.secretKey = n.default.getEncryptedSecretKey();
                t.iv = n.default.getEncryptedIV();
                return t;
              }
            }]);
            return u;
          }();
          e["default"] = o;
        },
        1280: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(661));
          var s = i(r(6667));
          var a = i(r(8858));
          var o = i(r(529));
          var u = i(r(6379));
          var c = /*#__PURE__*/function (_n$default2) {
            "use strict";

            _inherits(c, _n$default2);
            var _super6 = _createSuper(c);
            function c() {
              var _this6;
              _classCallCheck(this, c);
              _this6 = _super6.apply(this, arguments);
              _this6.keyNegotiateResultData = new l();
              return _this6;
            }
            _createClass(c, [{
              key: "receive",
              value: function receive() {
                var t, e;
                if (0 != this.keyNegotiateResultData.errorCode) {
                  o.default.error("key negotiate fail: ".concat(this.data));
                  null === (t = u.default.onError) || void 0 === t || t.call(u.default.onError, {
                    error: "key negotiate fail: ".concat(this.data)
                  });
                  return;
                }
                var r = this.keyNegotiateResultData.encryptType.split("/");
                if (!s.default.algorithmMap.has(r[0].trim().toLowerCase()) || !s.default.modeMap.has(r[1].trim().toLowerCase()) || !s.default.paddingMap.has(r[2].trim().toLowerCase())) {
                  o.default.error("key negotiate fail: ".concat(this.data));
                  null === (e = u.default.onError) || void 0 === e || e.call(u.default.onError, {
                    error: "key negotiate fail: ".concat(this.data)
                  });
                  return;
                }
                s.default.setEncryptParams(r[0].trim().toLowerCase(), r[1].trim().toLowerCase(), r[2].trim().toLowerCase());
                a.default.create().send();
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new c();
                _get(_getPrototypeOf(c), "parseMsg", this).call(this, e, t);
                e.keyNegotiateResultData = l.parse(e.data);
                return e;
              }
            }]);
            return c;
          }(n.default);
          var l = /*#__PURE__*/function () {
            "use strict";

            function l() {
              _classCallCheck(this, l);
              this.errorCode = -1;
              this.errorMsg = "";
              this.encryptType = "";
            }
            _createClass(l, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new l();
                var r = JSON.parse(t);
                e.errorCode = r.errorCode;
                e.errorMsg = r.errorMsg;
                e.encryptType = r.encryptType;
                return e;
              }
            }]);
            return l;
          }();
          e["default"] = c;
        },
        8858: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(6379));
          var s = i(r(6667));
          var a = i(r(661));
          var o = i(r(4534));
          var u = /*#__PURE__*/function (_a$default3) {
            "use strict";

            _inherits(u, _a$default3);
            var _super7 = _createSuper(u);
            function u() {
              var _this7;
              _classCallCheck(this, u);
              _this7 = _super7.apply(this, arguments);
              _this7.loginData = new c();
              return _this7;
            }
            _createClass(u, [{
              key: "send",
              value: function send() {
                if (!this.loginData.session || n.default.cid != s.default.md5Hex(this.loginData.session)) {
                  o.default.create().send();
                  return;
                }
                _get(_getPrototypeOf(u.prototype), "send", this).call(this);
              }
            }], [{
              key: "create",
              value: function create() {
                var t = new u();
                _get(_getPrototypeOf(u), "initMsg", this).call(this, t);
                t.command = a.default.Command.LOGIN;
                t.data = t.loginData = c.create();
                return t;
              }
            }]);
            return u;
          }(a.default);
          var c = /*#__PURE__*/function () {
            "use strict";

            function c() {
              _classCallCheck(this, c);
              this.appId = "";
              this.session = "";
            }
            _createClass(c, null, [{
              key: "create",
              value: function create() {
                var t = new c();
                t.appId = n.default.appid;
                t.session = n.default.session;
                return t;
              }
            }]);
            return c;
          }();
          e["default"] = u;
        },
        1606: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(8506));
          var s = i(r(661));
          var a = i(r(6379));
          var o = i(r(9586));
          var u = i(r(4516));
          var c = i(r(8858));
          var l = /*#__PURE__*/function (_s$default) {
            "use strict";

            _inherits(l, _s$default);
            var _super8 = _createSuper(l);
            function l() {
              var _this8;
              _classCallCheck(this, l);
              _this8 = _super8.apply(this, arguments);
              _this8.loginResultData = new f();
              return _this8;
            }
            _createClass(l, [{
              key: "receive",
              value: function receive() {
                var t;
                if (0 != this.loginResultData.errorCode) {
                  this.data;
                  a.default.session = a.default.cid = "";
                  n.default.setSync(n.default.KEY_CID, "");
                  n.default.setSync(n.default.KEY_SESSION, "");
                  c.default.create().send();
                  return;
                }
                if (!a.default.online) {
                  a.default.online = true;
                  null === (t = a.default.onlineState) || void 0 === t || t.call(a.default.onlineState, {
                    online: a.default.online
                  });
                }
                o.default.sendWaitingMessages();
                u.default.create().send();
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new l();
                _get(_getPrototypeOf(l), "parseMsg", this).call(this, e, t);
                e.loginResultData = f.parse(e.data);
                return e;
              }
            }]);
            return l;
          }(s.default);
          var f = /*#__PURE__*/function () {
            "use strict";

            function f() {
              _classCallCheck(this, f);
              this.errorCode = -1;
              this.errorMsg = "";
              this.session = "";
            }
            _createClass(f, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new f();
                var r = JSON.parse(t);
                e.errorCode = r.errorCode;
                e.errorMsg = r.errorMsg;
                e.session = r.session;
                return e;
              }
            }]);
            return f;
          }();
          e["default"] = l;
        },
        661: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          var n;
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var s = i(r(9593));
          var a = i(r(7002));
          var o = i(r(6893));
          var u = i(r(6379));
          var c = /*#__PURE__*/function () {
            "use strict";

            function c() {
              _classCallCheck(this, c);
              this.version = "";
              this.command = 0;
              this.packetId = 0;
              this.timeStamp = 0;
              this.data = "";
              this.signature = "";
            }
            _createClass(c, [{
              key: "stringify",
              value: function stringify() {
                return JSON.stringify(this, ["version", "command", "packetId", "timeStamp", "data", "signature"]);
              }
            }, {
              key: "send",
              value: function send() {
                if (!a.default.isAvailable()) return;
                this.packetId = u.default.packetId++;
                this.data = JSON.stringify(this.data);
                this.stringify();
                if (this.command != c.Command.HEART_BEAT) {
                  s.default.sign(this);
                  if (this.data && this.command != c.Command.KEY_NEGOTIATE) s.default.encrypt(this);
                }
                a.default.send(this.stringify());
              }
            }], [{
              key: "initMsg",
              value: function initMsg(t) {
                t.version = o.default.SOCKET_PROTOCOL_VERSION;
                t.command = 0;
                t.timeStamp = new Date().getTime();
                return t;
              }
            }, {
              key: "parseMsg",
              value: function parseMsg(t, e) {
                var r = JSON.parse(e);
                t.version = r.version;
                t.command = r.command;
                t.packetId = r.packetId;
                t.timeStamp = r.timeStamp;
                t.data = r.data;
                t.signature = r.signature;
                return t;
              }
            }]);
            return c;
          }();
          c.Command = (n = /*#__PURE__*/_createClass(function n() {
            "use strict";

            _classCallCheck(this, n);
          }), n.HEART_BEAT = 0, n.KEY_NEGOTIATE = 1, n.KEY_NEGOTIATE_RESULT = 16, n.REGISTER = 2, n.REGISTER_RESULT = 32, n.LOGIN = 3, n.LOGIN_RESULT = 48, n.LOGOUT = 4, n.LOGOUT_RESULT = 64, n.CLIENT_MSG = 5, n.SERVER_MSG = 80, n.SERVER_CLOSE = 96, n.REDIRECT_SERVER = 112, n);
          e["default"] = c;
        },
        9593: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(6667));
          var s;
          (function (t) {
            function e(t) {
              t.data = n.default.encrypt(t.data);
            }
            t.encrypt = e;
            function r(t) {
              t.data = n.default.decrypt(t.data);
            }
            t.decrypt = r;
            function i(t) {
              t.signature = n.default.sha256("".concat(t.timeStamp).concat(t.packetId).concat(t.command).concat(t.data));
            }
            t.sign = i;
            function s(t) {
              var e = n.default.sha256("".concat(t.timeStamp).concat(t.packetId).concat(t.command).concat(t.data));
              if (t.signature != e) throw new Error("msg signature vierfy failed");
            }
            t.verify = s;
          })(s || (s = {}));
          e["default"] = s;
        },
        4054: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(1280));
          var s = i(r(1606));
          var a = i(r(661));
          var o = i(r(1277));
          var u = i(r(910));
          var c = i(r(9538));
          var l = i(r(9479));
          var f = i(r(6755));
          var h = i(r(2918));
          var d = i(r(9586));
          var v = i(r(9510));
          var p = i(r(4626));
          var g = i(r(7562));
          var y = i(r(9593));
          var m = i(r(9586));
          var w = i(r(9519));
          var _ = i(r(8947));
          var S = /*#__PURE__*/function () {
            "use strict";

            function S() {
              _classCallCheck(this, S);
            }
            _createClass(S, null, [{
              key: "receiveMessage",
              value: function receiveMessage(t) {
                var e = a.default.parseMsg(new a.default(), t);
                if (e.command == a.default.Command.HEART_BEAT) return;
                if (e.command != a.default.Command.KEY_NEGOTIATE_RESULT && e.command != a.default.Command.SERVER_CLOSE && e.command != a.default.Command.REDIRECT_SERVER) y.default.decrypt(e);
                if (e.command != a.default.Command.SERVER_CLOSE && e.command != a.default.Command.REDIRECT_SERVER) y.default.verify(e);
                switch (e.command) {
                  case a.default.Command.KEY_NEGOTIATE_RESULT:
                    n.default.parse(e.stringify()).receive();
                    break;
                  case a.default.Command.REGISTER_RESULT:
                    o.default.parse(e.stringify()).receive();
                    break;
                  case a.default.Command.LOGIN_RESULT:
                    s.default.parse(e.stringify()).receive();
                    break;
                  case a.default.Command.SERVER_MSG:
                    this.receiveActionMsg(e.stringify());
                    break;
                  case a.default.Command.SERVER_CLOSE:
                    _.default.parse(e.stringify()).receive();
                    break;
                  case a.default.Command.REDIRECT_SERVER:
                    h.default.parse(e.stringify()).receive();
                    break;
                }
              }
            }, {
              key: "receiveActionMsg",
              value: function receiveActionMsg(t) {
                var e = m.default.parseActionMsg(new m.default(), t);
                if (e.actionMsgData.msgAction != d.default.ServerAction.RECEIVED && e.actionMsgData.msgAction != d.default.ServerAction.REDIRECT_SERVER) {
                  var _t4 = JSON.parse(e.actionMsgData.msgData);
                  w.default.create(_t4.id).send();
                }
                switch (e.actionMsgData.msgAction) {
                  case d.default.ServerAction.PUSH_MESSAGE:
                    f.default.parse(t).receive();
                    break;
                  case d.default.ServerAction.ADD_PHONE_INFO_RESULT:
                    u.default.parse(t).receive();
                    break;
                  case d.default.ServerAction.SET_MODE_RESULT:
                    v.default.parse(t).receive();
                    break;
                  case d.default.ServerAction.SET_TAG_RESULT:
                    p.default.parse(t).receive();
                    break;
                  case d.default.ServerAction.BIND_ALIAS_RESULT:
                    c.default.parse(t).receive();
                    break;
                  case d.default.ServerAction.UNBIND_ALIAS_RESULT:
                    g.default.parse(t).receive();
                    break;
                  case d.default.ServerAction.FEED_BACK_RESULT:
                    l.default.parse(t).receive();
                    break;
                  case d.default.ServerAction.RECEIVED:
                    w.default.parse(t).receive();
                    break;
                }
              }
            }]);
            return S;
          }();
          e["default"] = S;
        },
        9519: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = r(4198);
          var s = i(r(6379));
          var a = i(r(9586));
          var o = /*#__PURE__*/function (_a$default4) {
            "use strict";

            _inherits(o, _a$default4);
            var _super9 = _createSuper(o);
            function o() {
              var _this9;
              _classCallCheck(this, o);
              _this9 = _super9.apply(this, arguments);
              _this9.receivedData = new u();
              return _this9;
            }
            _createClass(o, [{
              key: "receive",
              value: function receive() {
                var t;
                var e = a.default.getWaitingResponseMessage(this.actionMsgData.msgId);
                if (e && e.actionMsgData.msgAction == a.default.ClientAction.ADD_PHONE_INFO || e && e.actionMsgData.msgAction == a.default.ClientAction.FEED_BACK) {
                  a.default.removeWaitingResponseMessage(e.actionMsgData.msgId);
                  null === (t = e.callback) || void 0 === t || t.call(e.callback, {
                    resultCode: n.ErrorCode.SUCCESS,
                    message: "received"
                  });
                }
              }
            }, {
              key: "send",
              value: function send() {
                _get(_getPrototypeOf(o.prototype), "send", this).call(this);
              }
            }], [{
              key: "create",
              value: function create(t) {
                var e = new o();
                _get(_getPrototypeOf(o), "initActionMsg", this).call(this, e);
                e.callback = function (t) {
                  if (t.resultCode != n.ErrorCode.SUCCESS && t.resultCode != n.ErrorCode.REPEAT_MESSAGE) setTimeout(function () {
                    e.send();
                  }, 3 * 1e3);
                };
                e.actionMsgData.msgAction = a.default.ClientAction.RECEIVED;
                e.receivedData = u.create(t);
                e.actionMsgData.msgData = JSON.stringify(e.receivedData);
                return e;
              }
            }, {
              key: "parse",
              value: function parse(t) {
                var e = new o();
                _get(_getPrototypeOf(o), "parseActionMsg", this).call(this, e, t);
                e.receivedData = u.parse(e.data);
                return e;
              }
            }]);
            return o;
          }(a.default);
          var u = /*#__PURE__*/function () {
            "use strict";

            function u() {
              _classCallCheck(this, u);
              this.msgId = "";
              this.cid = "";
            }
            _createClass(u, null, [{
              key: "create",
              value: function create(t) {
                var e = new u();
                e.cid = s.default.cid;
                e.msgId = t;
                return e;
              }
            }, {
              key: "parse",
              value: function parse(t) {
                var e = new u();
                var r = JSON.parse(t);
                e.cid = r.cid;
                e.msgId = r.msgId;
                return e;
              }
            }]);
            return u;
          }();
          e["default"] = o;
        },
        2918: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          e.RedirectServerData = void 0;
          var n = i(r(7002));
          var s = i(r(8506));
          var a = i(r(661));
          var o = /*#__PURE__*/function (_a$default5) {
            "use strict";

            _inherits(o, _a$default5);
            var _super10 = _createSuper(o);
            function o() {
              var _this10;
              _classCallCheck(this, o);
              _this10 = _super10.apply(this, arguments);
              _this10.redirectServerData = new u();
              return _this10;
            }
            _createClass(o, [{
              key: "receive",
              value: function receive() {
                this.redirectServerData;
                s.default.setSync(s.default.KEY_REDIRECT_SERVER, JSON.stringify(this.redirectServerData));
                n.default.close("redirect server");
                n.default.reconnect(this.redirectServerData.delay);
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new o();
                _get(_getPrototypeOf(o), "parseMsg", this).call(this, e, t);
                e.redirectServerData = u.parse(e.data);
                return e;
              }
            }]);
            return o;
          }(a.default);
          var u = /*#__PURE__*/function () {
            "use strict";

            function u() {
              _classCallCheck(this, u);
              this.addressList = [];
              this.delay = 0;
              this.loc = "";
              this.conf = "";
              this.time = 0;
            }
            _createClass(u, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new u();
                var r = JSON.parse(t);
                e.addressList = r.addressList;
                e.delay = r.delay;
                e.loc = r.loc;
                e.conf = r.conf;
                e.time = r.time ? r.time : new Date().getTime();
                return e;
              }
            }]);
            return u;
          }();
          e.RedirectServerData = u;
          e["default"] = o;
        },
        4534: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(6379));
          var s = i(r(661));
          var a = /*#__PURE__*/function (_s$default2) {
            "use strict";

            _inherits(a, _s$default2);
            var _super11 = _createSuper(a);
            function a() {
              var _this11;
              _classCallCheck(this, a);
              _this11 = _super11.apply(this, arguments);
              _this11.registerData = new o();
              return _this11;
            }
            _createClass(a, [{
              key: "send",
              value: function send() {
                _get(_getPrototypeOf(a.prototype), "send", this).call(this);
              }
            }], [{
              key: "create",
              value: function create() {
                var t = new a();
                _get(_getPrototypeOf(a), "initMsg", this).call(this, t);
                t.command = s.default.Command.REGISTER;
                t.data = t.registerData = o.create();
                return t;
              }
            }]);
            return a;
          }(s.default);
          var o = /*#__PURE__*/function () {
            "use strict";

            function o() {
              _classCallCheck(this, o);
              this.appId = "";
              this.regId = "";
            }
            _createClass(o, null, [{
              key: "create",
              value: function create() {
                var t = new o();
                t.appId = n.default.appid;
                t.regId = n.default.regId;
                return t;
              }
            }]);
            return o;
          }();
          e["default"] = a;
        },
        1277: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(661));
          var s = i(r(8506));
          var a = i(r(6379));
          var o = i(r(8858));
          var u = i(r(529));
          var c = /*#__PURE__*/function (_n$default3) {
            "use strict";

            _inherits(c, _n$default3);
            var _super12 = _createSuper(c);
            function c() {
              var _this12;
              _classCallCheck(this, c);
              _this12 = _super12.apply(this, arguments);
              _this12.registerResultData = new l();
              return _this12;
            }
            _createClass(c, [{
              key: "receive",
              value: function receive() {
                var t, e;
                if (0 != this.registerResultData.errorCode || !this.registerResultData.cid || !this.registerResultData.session) {
                  u.default.error("register fail: ".concat(this.data));
                  null === (t = a.default.onError) || void 0 === t || t.call(a.default.onError, {
                    error: "register fail: ".concat(this.data)
                  });
                  return;
                }
                if (a.default.cid != this.registerResultData.cid) s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME, 0);
                a.default.cid = this.registerResultData.cid;
                null === (e = a.default.onClientId) || void 0 === e || e.call(a.default.onClientId, {
                  cid: a.default.cid
                });
                s.default.set({
                  key: s.default.KEY_CID,
                  data: a.default.cid
                });
                a.default.session = this.registerResultData.session;
                s.default.set({
                  key: s.default.KEY_SESSION,
                  data: a.default.session
                });
                a.default.deviceId = this.registerResultData.deviceId;
                s.default.set({
                  key: s.default.KEY_DEVICE_ID,
                  data: a.default.deviceId
                });
                o.default.create().send();
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new c();
                _get(_getPrototypeOf(c), "parseMsg", this).call(this, e, t);
                e.registerResultData = l.parse(e.data);
                return e;
              }
            }]);
            return c;
          }(n.default);
          var l = /*#__PURE__*/function () {
            "use strict";

            function l() {
              _classCallCheck(this, l);
              this.errorCode = -1;
              this.errorMsg = "";
              this.cid = "";
              this.session = "";
              this.deviceId = "";
              this.regId = "";
            }
            _createClass(l, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new l();
                var r = JSON.parse(t);
                e.errorCode = r.errorCode;
                e.errorMsg = r.errorMsg;
                e.cid = r.cid;
                e.session = r.session;
                e.deviceId = r.deviceId;
                e.regId = r.regId;
                return e;
              }
            }]);
            return l;
          }();
          e["default"] = c;
        },
        8947: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(7002));
          var s = i(r(529));
          var a = i(r(661));
          var o = /*#__PURE__*/function (_a$default6) {
            "use strict";

            _inherits(o, _a$default6);
            var _super13 = _createSuper(o);
            function o() {
              var _this13;
              _classCallCheck(this, o);
              _this13 = _super13.apply(this, arguments);
              _this13.serverCloseData = new u();
              return _this13;
            }
            _createClass(o, [{
              key: "receive",
              value: function receive() {
                JSON.stringify(this.serverCloseData);
                var t = "server close ".concat(this.serverCloseData.code);
                if (20 == this.serverCloseData.code || 23 == this.serverCloseData.code || 24 == this.serverCloseData.code) {
                  n.default.allowReconnect = false;
                  n.default.close(t);
                } else if (21 == this.serverCloseData.code) this.safeClose21(t);else {
                  n.default.allowReconnect = true;
                  n.default.close(t);
                  n.default.reconnect(10);
                }
              }
            }, {
              key: "safeClose21",
              value: function safeClose21(t) {
                try {
                  if ("undefined" != typeof document) if (document.hasFocus() && "visible" == document.visibilityState) {
                    n.default.allowReconnect = true;
                    n.default.close(t);
                    n.default.reconnect(10);
                    return;
                  }
                  n.default.allowReconnect = false;
                  n.default.close(t);
                } catch (e) {
                  s.default.error("ServerClose t1", e);
                  n.default.allowReconnect = false;
                  n.default.close("".concat(t, " error"));
                }
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new o();
                _get(_getPrototypeOf(o), "parseMsg", this).call(this, e, t);
                e.serverCloseData = u.parse(e.data);
                return e;
              }
            }]);
            return o;
          }(a.default);
          var u = /*#__PURE__*/function () {
            "use strict";

            function u() {
              _classCallCheck(this, u);
              this.code = -1;
              this.msg = "";
            }
            _createClass(u, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new u();
                var r = JSON.parse(t);
                e.code = r.code;
                e.msg = r.msg;
                return e;
              }
            }]);
            return u;
          }();
          e["default"] = o;
        },
        910: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(8506));
          var s = i(r(9586));
          var a = /*#__PURE__*/function (_s$default3) {
            "use strict";

            _inherits(a, _s$default3);
            var _super14 = _createSuper(a);
            function a() {
              var _this14;
              _classCallCheck(this, a);
              _this14 = _super14.apply(this, arguments);
              _this14.addPhoneInfoResultData = new o();
              return _this14;
            }
            _createClass(a, [{
              key: "receive",
              value: function receive() {
                var t;
                this.addPhoneInfoResultData;
                var e = s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);
                if (e) null === (t = e.callback) || void 0 === t || t.call(e.callback, {
                  resultCode: this.addPhoneInfoResultData.errorCode,
                  message: this.addPhoneInfoResultData.errorMsg
                });
                n.default.set({
                  key: n.default.KEY_ADD_PHONE_INFO_TIME,
                  data: new Date().getTime()
                });
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new a();
                _get(_getPrototypeOf(a), "parseActionMsg", this).call(this, e, t);
                e.addPhoneInfoResultData = o.parse(e.actionMsgData.msgData);
                return e;
              }
            }]);
            return a;
          }(s.default);
          var o = /*#__PURE__*/function () {
            "use strict";

            function o() {
              _classCallCheck(this, o);
              this.errorCode = -1;
              this.errorMsg = "";
            }
            _createClass(o, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new o();
                var r = JSON.parse(t);
                e.errorCode = r.errorCode;
                e.errorMsg = r.errorMsg;
                return e;
              }
            }]);
            return o;
          }();
          e["default"] = a;
        },
        9538: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(8506));
          var s = i(r(529));
          var a = i(r(9586));
          var o = /*#__PURE__*/function (_a$default7) {
            "use strict";

            _inherits(o, _a$default7);
            var _super15 = _createSuper(o);
            function o() {
              var _this15;
              _classCallCheck(this, o);
              _this15 = _super15.apply(this, arguments);
              _this15.bindAliasResultData = new u();
              return _this15;
            }
            _createClass(o, [{
              key: "receive",
              value: function receive() {
                var t;
                s.default.info("bind alias result", this.bindAliasResultData);
                var e = a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);
                if (e) null === (t = e.callback) || void 0 === t || t.call(e.callback, {
                  resultCode: this.bindAliasResultData.errorCode,
                  message: this.bindAliasResultData.errorMsg
                });
                n.default.set({
                  key: n.default.KEY_BIND_ALIAS_TIME,
                  data: new Date().getTime()
                });
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new o();
                _get(_getPrototypeOf(o), "parseActionMsg", this).call(this, e, t);
                e.bindAliasResultData = u.parse(e.actionMsgData.msgData);
                return e;
              }
            }]);
            return o;
          }(a.default);
          var u = /*#__PURE__*/function () {
            "use strict";

            function u() {
              _classCallCheck(this, u);
              this.errorCode = -1;
              this.errorMsg = "";
            }
            _createClass(u, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new u();
                var r = JSON.parse(t);
                e.errorCode = r.errorCode;
                e.errorMsg = r.errorMsg;
                return e;
              }
            }]);
            return u;
          }();
          e["default"] = o;
        },
        9479: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = r(4198);
          var s = i(r(9586));
          var a = /*#__PURE__*/function (_s$default4) {
            "use strict";

            _inherits(a, _s$default4);
            var _super16 = _createSuper(a);
            function a() {
              var _this16;
              _classCallCheck(this, a);
              _this16 = _super16.apply(this, arguments);
              _this16.feedbackResultData = new o();
              return _this16;
            }
            _createClass(a, [{
              key: "receive",
              value: function receive() {
                var t;
                this.feedbackResultData;
                var e = s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);
                if (e) null === (t = e.callback) || void 0 === t || t.call(e.callback, {
                  resultCode: n.ErrorCode.SUCCESS,
                  message: "received"
                });
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new a();
                _get(_getPrototypeOf(a), "parseActionMsg", this).call(this, e, t);
                e.feedbackResultData = o.parse(e.actionMsgData.msgData);
                return e;
              }
            }]);
            return a;
          }(s.default);
          var o = /*#__PURE__*/function () {
            "use strict";

            function o() {
              _classCallCheck(this, o);
              this.actionId = "";
              this.taskId = "";
              this.result = "";
            }
            _createClass(o, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new o();
                var r = JSON.parse(t);
                e.actionId = r.actionId;
                e.taskId = r.taskId;
                e.result = r.result;
                return e;
              }
            }]);
            return o;
          }();
          e["default"] = a;
        },
        6755: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          var n;
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var s = i(r(6379));
          var a = i(r(9586));
          var o = i(r(8723));
          var u = /*#__PURE__*/function (_a$default8) {
            "use strict";

            _inherits(u, _a$default8);
            var _super17 = _createSuper(u);
            function u() {
              var _this17;
              _classCallCheck(this, u);
              _this17 = _super17.apply(this, arguments);
              _this17.pushMessageData = new c();
              return _this17;
            }
            _createClass(u, [{
              key: "receive",
              value: function receive() {
                var t;
                this.pushMessageData;
                if (this.pushMessageData.appId != s.default.appid || !this.pushMessageData.messageid || !this.pushMessageData.taskId) this.stringify();
                o.default.create(this, o.default.ActionId.RECEIVE).send();
                o.default.create(this, o.default.ActionId.MP_RECEIVE).send();
                if (this.actionMsgData.msgExtraData && s.default.onPushMsg) null === (t = s.default.onPushMsg) || void 0 === t || t.call(s.default.onPushMsg, {
                  message: this.actionMsgData.msgExtraData
                });
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new u();
                _get(_getPrototypeOf(u), "parseActionMsg", this).call(this, e, t);
                e.pushMessageData = c.parse(e.actionMsgData.msgData);
                return e;
              }
            }]);
            return u;
          }(a.default);
          var c = /*#__PURE__*/function () {
            "use strict";

            function c() {
              _classCallCheck(this, c);
              this.id = "";
              this.appKey = "";
              this.appId = "";
              this.messageid = "";
              this.taskId = "";
              this.actionChain = [];
              this.cdnType = "";
            }
            _createClass(c, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new c();
                var r = JSON.parse(t);
                e.id = r.id;
                e.appKey = r.appKey;
                e.appId = r.appId;
                e.messageid = r.messageid;
                e.taskId = r.taskId;
                e.actionChain = r.actionChain;
                e.cdnType = r.cdnType;
                return e;
              }
            }]);
            return c;
          }();
          n = /*#__PURE__*/_createClass(function n() {
            "use strict";

            _classCallCheck(this, n);
          }), n.GO_TO = "goto", n.TRANSMIT = "transmit", n;
          e["default"] = u;
        },
        9510: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(9586));
          var s = /*#__PURE__*/function (_n$default4) {
            "use strict";

            _inherits(s, _n$default4);
            var _super18 = _createSuper(s);
            function s() {
              var _this18;
              _classCallCheck(this, s);
              _this18 = _super18.apply(this, arguments);
              _this18.setModeResultData = new a();
              return _this18;
            }
            _createClass(s, [{
              key: "receive",
              value: function receive() {
                var t;
                this.setModeResultData;
                var e = n.default.removeWaitingResponseMessage(this.actionMsgData.msgId);
                if (e) null === (t = e.callback) || void 0 === t || t.call(e.callback, {
                  resultCode: this.setModeResultData.errorCode,
                  message: this.setModeResultData.errorMsg
                });
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new s();
                _get(_getPrototypeOf(s), "parseActionMsg", this).call(this, e, t);
                e.setModeResultData = a.parse(e.actionMsgData.msgData);
                return e;
              }
            }]);
            return s;
          }(n.default);
          var a = /*#__PURE__*/function () {
            "use strict";

            function a() {
              _classCallCheck(this, a);
              this.errorCode = -1;
              this.errorMsg = "";
            }
            _createClass(a, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new a();
                var r = JSON.parse(t);
                e.errorCode = r.errorCode;
                e.errorMsg = r.errorMsg;
                return e;
              }
            }]);
            return a;
          }();
          e["default"] = s;
        },
        4626: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(8506));
          var s = i(r(529));
          var a = i(r(9586));
          var o = /*#__PURE__*/function (_a$default9) {
            "use strict";

            _inherits(o, _a$default9);
            var _super19 = _createSuper(o);
            function o() {
              var _this19;
              _classCallCheck(this, o);
              _this19 = _super19.apply(this, arguments);
              _this19.setTagResultData = new u();
              return _this19;
            }
            _createClass(o, [{
              key: "receive",
              value: function receive() {
                var t;
                s.default.info("set tag result", this.setTagResultData);
                var e = a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);
                if (e) null === (t = e.callback) || void 0 === t || t.call(e.callback, {
                  resultCode: this.setTagResultData.errorCode,
                  message: this.setTagResultData.errorMsg
                });
                n.default.set({
                  key: n.default.KEY_SET_TAG_TIME,
                  data: new Date().getTime()
                });
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new o();
                _get(_getPrototypeOf(o), "parseActionMsg", this).call(this, e, t);
                e.setTagResultData = u.parse(e.actionMsgData.msgData);
                return e;
              }
            }]);
            return o;
          }(a.default);
          var u = /*#__PURE__*/function () {
            "use strict";

            function u() {
              _classCallCheck(this, u);
              this.errorCode = 0;
              this.errorMsg = "";
            }
            _createClass(u, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new u();
                var r = JSON.parse(t);
                e.errorCode = r.errorCode;
                e.errorMsg = r.errorMsg;
                return e;
              }
            }]);
            return u;
          }();
          e["default"] = o;
        },
        7562: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(8506));
          var s = i(r(529));
          var a = i(r(9586));
          var o = /*#__PURE__*/function (_a$default10) {
            "use strict";

            _inherits(o, _a$default10);
            var _super20 = _createSuper(o);
            function o() {
              var _this20;
              _classCallCheck(this, o);
              _this20 = _super20.apply(this, arguments);
              _this20.unbindAliasResultData = new u();
              return _this20;
            }
            _createClass(o, [{
              key: "receive",
              value: function receive() {
                var t;
                s.default.info("unbind alias result", this.unbindAliasResultData);
                var e = a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);
                if (e) null === (t = e.callback) || void 0 === t || t.call(e.callback, {
                  resultCode: this.unbindAliasResultData.errorCode,
                  message: this.unbindAliasResultData.errorMsg
                });
                n.default.set({
                  key: n.default.KEY_BIND_ALIAS_TIME,
                  data: new Date().getTime()
                });
              }
            }], [{
              key: "parse",
              value: function parse(t) {
                var e = new o();
                _get(_getPrototypeOf(o), "parseActionMsg", this).call(this, e, t);
                e.unbindAliasResultData = u.parse(e.actionMsgData.msgData);
                return e;
              }
            }]);
            return o;
          }(a.default);
          var u = /*#__PURE__*/function () {
            "use strict";

            function u() {
              _classCallCheck(this, u);
              this.errorCode = -1;
              this.errorMsg = "";
            }
            _createClass(u, null, [{
              key: "parse",
              value: function parse(t) {
                var e = new u();
                var r = JSON.parse(t);
                e.errorCode = r.errorCode;
                e.errorMsg = r.errorMsg;
                return e;
              }
            }]);
            return u;
          }();
          e["default"] = o;
        },
        8227: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r(t) {
              _classCallCheck(this, r);
              this.delay = 10;
              this.delay = t;
            }
            _createClass(r, [{
              key: "start",
              value: function start() {
                this.cancel();
                var t = this;
                this.timer = setInterval(function () {
                  t.run();
                }, this.delay);
              }
            }, {
              key: "cancel",
              value: function cancel() {
                if (this.timer) clearInterval(this.timer);
              }
            }]);
            return r;
          }();
          e["default"] = r;
        },
        7167: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          var n;
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var s = i(r(6362));
          var a = i(r(8227));
          var o = /*#__PURE__*/function (_a$default11) {
            "use strict";

            _inherits(o, _a$default11);
            var _super21 = _createSuper(o);
            function o() {
              _classCallCheck(this, o);
              return _super21.apply(this, arguments);
            }
            _createClass(o, [{
              key: "run",
              value: function run() {
                s.default.create().send();
              }
            }, {
              key: "refresh",
              value: function refresh() {
                this.delay = 60 * 1e3;
                this.start();
              }
            }], [{
              key: "getInstance",
              value: function getInstance() {
                return o.InstanceHolder.instance;
              }
            }]);
            return o;
          }(a.default);
          o.INTERVAL = 60 * 1e3;
          o.InstanceHolder = (n = /*#__PURE__*/_createClass(function n() {
            "use strict";

            _classCallCheck(this, n);
          }), n.instance = new o(o.INTERVAL), n);
          e["default"] = o;
        },
        2323: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(4736));
          var s = i(r(6667));
          var a;
          (function (t) {
            var e = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
            var r = (0, n.default)("9223372036854775808");
            function i(t) {
              var e = a(t);
              var r = o(e);
              var i = r[1];
              var n = r[0];
              return u(i) + u(n);
            }
            t.to_getui = i;
            function a(t) {
              var e = s.default.md5Hex(t);
              var r = c(e);
              r[6] &= 15;
              r[6] |= 48;
              r[8] &= 63;
              r[8] |= 128;
              return r;
            }
            function o(t) {
              var e = (0, n.default)(0);
              var r = (0, n.default)(0);
              for (var _r7 = 0; _r7 < 8; _r7++) {
                e = e.multiply(256).plus((0, n.default)(255 & t[_r7]));
              }
              for (var _e6 = 8; _e6 < 16; _e6++) {
                r = r.multiply(256).plus((0, n.default)(255 & t[_e6]));
              }
              return [e, r];
            }
            function u(t) {
              if (t >= r) t = r.multiply(2).minus(t);
              var i = "";
              for (; t > (0, n.default)(0); t = t.divide(62)) {
                i += e.charAt(Number(t.divmod(62).remainder));
              }
              return i;
            }
            function c(t) {
              var e = t.length;
              if (e % 2 != 0) return [];
              var r = new Array();
              for (var _i2 = 0; _i2 < e; _i2 += 2) {
                r.push(parseInt(t.substring(_i2, _i2 + 2), 16));
              }
              return r;
            }
          })(a || (a = {}));
          e["default"] = a;
        },
        6667: function _(t, e, r) {
          var i = this && this.__importDefault || function (t) {
            return t && t.__esModule ? t : {
              default: t
            };
          };
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var n = i(r(2620));
          var s = i(r(1354));
          var a = i(r(6379));
          var o;
          (function (t) {
            var e;
            var r;
            var i;
            var o;
            var u = new n.default();
            var c = s.default.mode.CBC;
            var l = s.default.pad.Pkcs7;
            var f = s.default.AES;
            t.algorithmMap = new Map([["aes", s.default.AES]]);
            t.modeMap = new Map([["cbc", s.default.mode.CBC], ["cfb", s.default.mode.CFB], ["cfb128", s.default.mode.CFB], ["ecb", s.default.mode.ECB], ["ofb", s.default.mode.OFB]]);
            t.paddingMap = new Map([["nopadding", s.default.pad.NoPadding], ["pkcs7", s.default.pad.Pkcs7]]);
            function h() {
              e = s.default.MD5(new Date().getTime().toString());
              r = s.default.MD5(e);
              u.setPublicKey(a.default.publicKey);
              e.toString(s.default.enc.Hex);
              r.toString(s.default.enc.Hex);
              i = u.encrypt(e.toString(s.default.enc.Hex));
              o = u.encrypt(r.toString(s.default.enc.Hex));
            }
            t.resetKey = h;
            function d(e, r, i) {
              f = t.algorithmMap.get(e);
              c = t.modeMap.get(r);
              l = t.paddingMap.get(i);
            }
            t.setEncryptParams = d;
            function v(t) {
              return f.encrypt(t, e, {
                iv: r,
                mode: c,
                padding: l
              }).toString();
            }
            t.encrypt = v;
            function p(t) {
              return f.decrypt(t, e, {
                iv: r,
                mode: c,
                padding: l
              }).toString(s.default.enc.Utf8);
            }
            t.decrypt = p;
            function g(t) {
              return s.default.SHA256(t).toString(s.default.enc.Base64);
            }
            t.sha256 = g;
            function y(t) {
              return s.default.MD5(t).toString(s.default.enc.Hex);
            }
            t.md5Hex = y;
            function m() {
              return i ? i : "";
            }
            t.getEncryptedSecretKey = m;
            function w() {
              return o ? o : "";
            }
            t.getEncryptedIV = w;
          })(o || (o = {}));
          e["default"] = o;
        },
        529: function _(t, e) {
          Object.defineProperty(e, "__esModule", {
            value: true
          });
          var r = /*#__PURE__*/function () {
            "use strict";

            function r() {
              _classCallCheck(this, r);
            }
            _createClass(r, null, [{
              key: "info",
              value: function info() {
                for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
                  t[_key] = arguments[_key];
                }
                if (this.debugMode) console.info("[GtPush]", t);
              }
            }, {
              key: "warn",
              value: function warn() {
                for (var _len2 = arguments.length, t = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
                  t[_key2] = arguments[_key2];
                }
                console.warn("[GtPush]", t);
              }
            }, {
              key: "error",
              value: function error() {
                for (var _len3 = arguments.length, t = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
                  t[_key3] = arguments[_key3];
                }
                console.error("[GtPush]", t);
              }
            }]);
            return r;
          }();
          r.debugMode = false;
          e["default"] = r;
        },
        2620: function _(t, e, r) {
          r.r(e);
          r.d(e, {
            JSEncrypt: function JSEncrypt() {
              return wt;
            },
            default: function _default() {
              return _t;
            }
          });
          var i = "0123456789abcdefghijklmnopqrstuvwxyz";
          function n(t) {
            return i.charAt(t);
          }
          function s(t, e) {
            return t & e;
          }
          function a(t, e) {
            return t | e;
          }
          function o(t, e) {
            return t ^ e;
          }
          function u(t, e) {
            return t & ~e;
          }
          function c(t) {
            if (0 == t) return -1;
            var e = 0;
            if (0 == (65535 & t)) {
              t >>= 16;
              e += 16;
            }
            if (0 == (255 & t)) {
              t >>= 8;
              e += 8;
            }
            if (0 == (15 & t)) {
              t >>= 4;
              e += 4;
            }
            if (0 == (3 & t)) {
              t >>= 2;
              e += 2;
            }
            if (0 == (1 & t)) ++e;
            return e;
          }
          function l(t) {
            var e = 0;
            while (0 != t) {
              t &= t - 1;
              ++e;
            }
            return e;
          }
          var f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
          var h = "=";
          function d(t) {
            var e;
            var r;
            var i = "";
            for (e = 0; e + 3 <= t.length; e += 3) {
              r = parseInt(t.substring(e, e + 3), 16);
              i += f.charAt(r >> 6) + f.charAt(63 & r);
            }
            if (e + 1 == t.length) {
              r = parseInt(t.substring(e, e + 1), 16);
              i += f.charAt(r << 2);
            } else if (e + 2 == t.length) {
              r = parseInt(t.substring(e, e + 2), 16);
              i += f.charAt(r >> 2) + f.charAt((3 & r) << 4);
            }
            while ((3 & i.length) > 0) {
              i += h;
            }
            return i;
          }
          function v(t) {
            var e = "";
            var r;
            var i = 0;
            var s = 0;
            for (r = 0; r < t.length; ++r) {
              if (t.charAt(r) == h) break;
              var a = f.indexOf(t.charAt(r));
              if (a < 0) continue;
              if (0 == i) {
                e += n(a >> 2);
                s = 3 & a;
                i = 1;
              } else if (1 == i) {
                e += n(s << 2 | a >> 4);
                s = 15 & a;
                i = 2;
              } else if (2 == i) {
                e += n(s);
                e += n(a >> 2);
                s = 3 & a;
                i = 3;
              } else {
                e += n(s << 2 | a >> 4);
                e += n(15 & a);
                i = 0;
              }
            }
            if (1 == i) e += n(s << 2);
            return e;
          }
          var g;
          var y = {
            decode: function decode(t) {
              var e;
              if (void 0 === g) {
                var r = "0123456789ABCDEF";
                var i = " \f\n\r\t\xA0\u2028\u2029";
                g = {};
                for (e = 0; e < 16; ++e) {
                  g[r.charAt(e)] = e;
                }
                r = r.toLowerCase();
                for (e = 10; e < 16; ++e) {
                  g[r.charAt(e)] = e;
                }
                for (e = 0; e < i.length; ++e) {
                  g[i.charAt(e)] = -1;
                }
              }
              var n = [];
              var s = 0;
              var a = 0;
              for (e = 0; e < t.length; ++e) {
                var o = t.charAt(e);
                if ("=" == o) break;
                o = g[o];
                if (-1 == o) continue;
                if (void 0 === o) throw new Error("Illegal character at offset " + e);
                s |= o;
                if (++a >= 2) {
                  n[n.length] = s;
                  s = 0;
                  a = 0;
                } else s <<= 4;
              }
              if (a) throw new Error("Hex encoding incomplete: 4 bits missing");
              return n;
            }
          };
          var m;
          var w = {
            decode: function decode(t) {
              var e;
              if (void 0 === m) {
                var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
                var i = "= \f\n\r\t\xA0\u2028\u2029";
                m = Object.create(null);
                for (e = 0; e < 64; ++e) {
                  m[r.charAt(e)] = e;
                }
                m["-"] = 62;
                m["_"] = 63;
                for (e = 0; e < i.length; ++e) {
                  m[i.charAt(e)] = -1;
                }
              }
              var n = [];
              var s = 0;
              var a = 0;
              for (e = 0; e < t.length; ++e) {
                var o = t.charAt(e);
                if ("=" == o) break;
                o = m[o];
                if (-1 == o) continue;
                if (void 0 === o) throw new Error("Illegal character at offset " + e);
                s |= o;
                if (++a >= 4) {
                  n[n.length] = s >> 16;
                  n[n.length] = s >> 8 & 255;
                  n[n.length] = 255 & s;
                  s = 0;
                  a = 0;
                } else s <<= 6;
              }
              switch (a) {
                case 1:
                  throw new Error("Base64 encoding incomplete: at least 2 bits missing");
                case 2:
                  n[n.length] = s >> 10;
                  break;
                case 3:
                  n[n.length] = s >> 16;
                  n[n.length] = s >> 8 & 255;
                  break;
              }
              return n;
            },
            re: /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,
            unarmor: function unarmor(t) {
              var e = w.re.exec(t);
              if (e) if (e[1]) t = e[1];else if (e[2]) t = e[2];else throw new Error("RegExp out of sync");
              return w.decode(t);
            }
          };
          var _ = 1e13;
          var S = function () {
            function t(t) {
              this.buf = [+t || 0];
            }
            t.prototype.mulAdd = function (t, e) {
              var r = this.buf;
              var i = r.length;
              var n;
              var s;
              for (n = 0; n < i; ++n) {
                s = r[n] * t + e;
                if (s < _) e = 0;else {
                  e = 0 | s / _;
                  s -= e * _;
                }
                r[n] = s;
              }
              if (e > 0) r[n] = e;
            };
            t.prototype.sub = function (t) {
              var e = this.buf;
              var r = e.length;
              var i;
              var n;
              for (i = 0; i < r; ++i) {
                n = e[i] - t;
                if (n < 0) {
                  n += _;
                  t = 1;
                } else t = 0;
                e[i] = n;
              }
              while (0 === e[e.length - 1]) {
                e.pop();
              }
            };
            t.prototype.toString = function (t) {
              if (10 != (t || 10)) throw new Error("only base 10 is supported");
              var e = this.buf;
              var r = e[e.length - 1].toString();
              for (var i = e.length - 2; i >= 0; --i) {
                r += (_ + e[i]).toString().substring(1);
              }
              return r;
            };
            t.prototype.valueOf = function () {
              var t = this.buf;
              var e = 0;
              for (var r = t.length - 1; r >= 0; --r) {
                e = e * _ + t[r];
              }
              return e;
            };
            t.prototype.simplify = function () {
              var t = this.buf;
              return 1 == t.length ? t[0] : this;
            };
            return t;
          }();
          var b = "…";
          var E = /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;
          var D = /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;
          function T(t, e) {
            if (t.length > e) t = t.substring(0, e) + b;
            return t;
          }
          var M = function () {
            function t(e, r) {
              this.hexDigits = "0123456789ABCDEF";
              if (e instanceof t) {
                this.enc = e.enc;
                this.pos = e.pos;
              } else {
                this.enc = e;
                this.pos = r;
              }
            }
            t.prototype.get = function (t) {
              if (void 0 === t) t = this.pos++;
              if (t >= this.enc.length) throw new Error("Requesting byte offset " + t + " on a stream of length " + this.enc.length);
              return "string" === typeof this.enc ? this.enc.charCodeAt(t) : this.enc[t];
            };
            t.prototype.hexByte = function (t) {
              return this.hexDigits.charAt(t >> 4 & 15) + this.hexDigits.charAt(15 & t);
            };
            t.prototype.hexDump = function (t, e, r) {
              var i = "";
              for (var n = t; n < e; ++n) {
                i += this.hexByte(this.get(n));
                if (true !== r) switch (15 & n) {
                  case 7:
                    i += "  ";
                    break;
                  case 15:
                    i += "\n";
                    break;
                  default:
                    i += " ";
                }
              }
              return i;
            };
            t.prototype.isASCII = function (t, e) {
              for (var r = t; r < e; ++r) {
                var i = this.get(r);
                if (i < 32 || i > 176) return false;
              }
              return true;
            };
            t.prototype.parseStringISO = function (t, e) {
              var r = "";
              for (var i = t; i < e; ++i) {
                r += String.fromCharCode(this.get(i));
              }
              return r;
            };
            t.prototype.parseStringUTF = function (t, e) {
              var r = "";
              for (var i = t; i < e;) {
                var n = this.get(i++);
                if (n < 128) r += String.fromCharCode(n);else if (n > 191 && n < 224) r += String.fromCharCode((31 & n) << 6 | 63 & this.get(i++));else r += String.fromCharCode((15 & n) << 12 | (63 & this.get(i++)) << 6 | 63 & this.get(i++));
              }
              return r;
            };
            t.prototype.parseStringBMP = function (t, e) {
              var r = "";
              var i;
              var n;
              for (var s = t; s < e;) {
                i = this.get(s++);
                n = this.get(s++);
                r += String.fromCharCode(i << 8 | n);
              }
              return r;
            };
            t.prototype.parseTime = function (t, e, r) {
              var i = this.parseStringISO(t, e);
              var n = (r ? E : D).exec(i);
              if (!n) return "Unrecognized time: " + i;
              if (r) {
                n[1] = +n[1];
                n[1] += +n[1] < 70 ? 2e3 : 1900;
              }
              i = n[1] + "-" + n[2] + "-" + n[3] + " " + n[4];
              if (n[5]) {
                i += ":" + n[5];
                if (n[6]) {
                  i += ":" + n[6];
                  if (n[7]) i += "." + n[7];
                }
              }
              if (n[8]) {
                i += " UTC";
                if ("Z" != n[8]) {
                  i += n[8];
                  if (n[9]) i += ":" + n[9];
                }
              }
              return i;
            };
            t.prototype.parseInteger = function (t, e) {
              var r = this.get(t);
              var i = r > 127;
              var n = i ? 255 : 0;
              var s;
              var a = "";
              while (r == n && ++t < e) {
                r = this.get(t);
              }
              s = e - t;
              if (0 === s) return i ? -1 : 0;
              if (s > 4) {
                a = r;
                s <<= 3;
                while (0 == (128 & (+a ^ n))) {
                  a = +a << 1;
                  --s;
                }
                a = "(" + s + " bit)\n";
              }
              if (i) r -= 256;
              var o = new S(r);
              for (var u = t + 1; u < e; ++u) {
                o.mulAdd(256, this.get(u));
              }
              return a + o.toString();
            };
            t.prototype.parseBitString = function (t, e, r) {
              var i = this.get(t);
              var n = (e - t - 1 << 3) - i;
              var s = "(" + n + " bit)\n";
              var a = "";
              for (var o = t + 1; o < e; ++o) {
                var u = this.get(o);
                var c = o == e - 1 ? i : 0;
                for (var l = 7; l >= c; --l) {
                  a += u >> l & 1 ? "1" : "0";
                }
                if (a.length > r) return s + T(a, r);
              }
              return s + a;
            };
            t.prototype.parseOctetString = function (t, e, r) {
              if (this.isASCII(t, e)) return T(this.parseStringISO(t, e), r);
              var i = e - t;
              var n = "(" + i + " byte)\n";
              r /= 2;
              if (i > r) e = t + r;
              for (var s = t; s < e; ++s) {
                n += this.hexByte(this.get(s));
              }
              if (i > r) n += b;
              return n;
            };
            t.prototype.parseOID = function (t, e, r) {
              var i = "";
              var n = new S();
              var s = 0;
              for (var a = t; a < e; ++a) {
                var o = this.get(a);
                n.mulAdd(128, 127 & o);
                s += 7;
                if (!(128 & o)) {
                  if ("" === i) {
                    n = n.simplify();
                    if (n instanceof S) {
                      n.sub(80);
                      i = "2." + n.toString();
                    } else {
                      var u = n < 80 ? n < 40 ? 0 : 1 : 2;
                      i = u + "." + (n - 40 * u);
                    }
                  } else i += "." + n.toString();
                  if (i.length > r) return T(i, r);
                  n = new S();
                  s = 0;
                }
              }
              if (s > 0) i += ".incomplete";
              return i;
            };
            return t;
          }();
          var I = function () {
            function t(t, e, r, i, n) {
              if (!(i instanceof A)) throw new Error("Invalid tag value.");
              this.stream = t;
              this.header = e;
              this.length = r;
              this.tag = i;
              this.sub = n;
            }
            t.prototype.typeName = function () {
              switch (this.tag.tagClass) {
                case 0:
                  switch (this.tag.tagNumber) {
                    case 0:
                      return "EOC";
                    case 1:
                      return "BOOLEAN";
                    case 2:
                      return "INTEGER";
                    case 3:
                      return "BIT_STRING";
                    case 4:
                      return "OCTET_STRING";
                    case 5:
                      return "NULL";
                    case 6:
                      return "OBJECT_IDENTIFIER";
                    case 7:
                      return "ObjectDescriptor";
                    case 8:
                      return "EXTERNAL";
                    case 9:
                      return "REAL";
                    case 10:
                      return "ENUMERATED";
                    case 11:
                      return "EMBEDDED_PDV";
                    case 12:
                      return "UTF8String";
                    case 16:
                      return "SEQUENCE";
                    case 17:
                      return "SET";
                    case 18:
                      return "NumericString";
                    case 19:
                      return "PrintableString";
                    case 20:
                      return "TeletexString";
                    case 21:
                      return "VideotexString";
                    case 22:
                      return "IA5String";
                    case 23:
                      return "UTCTime";
                    case 24:
                      return "GeneralizedTime";
                    case 25:
                      return "GraphicString";
                    case 26:
                      return "VisibleString";
                    case 27:
                      return "GeneralString";
                    case 28:
                      return "UniversalString";
                    case 30:
                      return "BMPString";
                  }
                  return "Universal_" + this.tag.tagNumber.toString();
                case 1:
                  return "Application_" + this.tag.tagNumber.toString();
                case 2:
                  return "[" + this.tag.tagNumber.toString() + "]";
                case 3:
                  return "Private_" + this.tag.tagNumber.toString();
              }
            };
            t.prototype.content = function (t) {
              if (void 0 === this.tag) return null;
              if (void 0 === t) t = 1 / 0;
              var e = this.posContent();
              var r = Math.abs(this.length);
              if (!this.tag.isUniversal()) {
                if (null !== this.sub) return "(" + this.sub.length + " elem)";
                return this.stream.parseOctetString(e, e + r, t);
              }
              switch (this.tag.tagNumber) {
                case 1:
                  return 0 === this.stream.get(e) ? "false" : "true";
                case 2:
                  return this.stream.parseInteger(e, e + r);
                case 3:
                  return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseBitString(e, e + r, t);
                case 4:
                  return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseOctetString(e, e + r, t);
                case 6:
                  return this.stream.parseOID(e, e + r, t);
                case 16:
                case 17:
                  if (null !== this.sub) return "(" + this.sub.length + " elem)";else return "(no elem)";
                case 12:
                  return T(this.stream.parseStringUTF(e, e + r), t);
                case 18:
                case 19:
                case 20:
                case 21:
                case 22:
                case 26:
                  return T(this.stream.parseStringISO(e, e + r), t);
                case 30:
                  return T(this.stream.parseStringBMP(e, e + r), t);
                case 23:
                case 24:
                  return this.stream.parseTime(e, e + r, 23 == this.tag.tagNumber);
              }
              return null;
            };
            t.prototype.toString = function () {
              return this.typeName() + "@" + this.stream.pos + "[header:" + this.header + ",length:" + this.length + ",sub:" + (null === this.sub ? "null" : this.sub.length) + "]";
            };
            t.prototype.toPrettyString = function (t) {
              if (void 0 === t) t = "";
              var e = t + this.typeName() + " @" + this.stream.pos;
              if (this.length >= 0) e += "+";
              e += this.length;
              if (this.tag.tagConstructed) e += " (constructed)";else if (this.tag.isUniversal() && (3 == this.tag.tagNumber || 4 == this.tag.tagNumber) && null !== this.sub) e += " (encapsulates)";
              e += "\n";
              if (null !== this.sub) {
                t += "  ";
                for (var r = 0, i = this.sub.length; r < i; ++r) {
                  e += this.sub[r].toPrettyString(t);
                }
              }
              return e;
            };
            t.prototype.posStart = function () {
              return this.stream.pos;
            };
            t.prototype.posContent = function () {
              return this.stream.pos + this.header;
            };
            t.prototype.posEnd = function () {
              return this.stream.pos + this.header + Math.abs(this.length);
            };
            t.prototype.toHexString = function () {
              return this.stream.hexDump(this.posStart(), this.posEnd(), true);
            };
            t.decodeLength = function (t) {
              var e = t.get();
              var r = 127 & e;
              if (r == e) return r;
              if (r > 6) throw new Error("Length over 48 bits not supported at position " + (t.pos - 1));
              if (0 === r) return null;
              e = 0;
              for (var i = 0; i < r; ++i) {
                e = 256 * e + t.get();
              }
              return e;
            };
            t.prototype.getHexStringValue = function () {
              var t = this.toHexString();
              var e = 2 * this.header;
              var r = 2 * this.length;
              return t.substr(e, r);
            };
            t.decode = function (e) {
              var r;
              if (!(e instanceof M)) r = new M(e, 0);else r = e;
              var i = new M(r);
              var n = new A(r);
              var s = t.decodeLength(r);
              var a = r.pos;
              var o = a - i.pos;
              var u = null;
              var c = function c() {
                var e = [];
                if (null !== s) {
                  var i = a + s;
                  while (r.pos < i) {
                    e[e.length] = t.decode(r);
                  }
                  if (r.pos != i) throw new Error("Content size is not correct for container starting at offset " + a);
                } else try {
                  for (;;) {
                    var n = t.decode(r);
                    if (n.tag.isEOC()) break;
                    e[e.length] = n;
                  }
                  s = a - r.pos;
                } catch (t) {
                  throw new Error("Exception while decoding undefined length content: " + t);
                }
                return e;
              };
              if (n.tagConstructed) u = c();else if (n.isUniversal() && (3 == n.tagNumber || 4 == n.tagNumber)) try {
                if (3 == n.tagNumber) if (0 != r.get()) throw new Error("BIT STRINGs with unused bits cannot encapsulate.");
                u = c();
                for (var l = 0; l < u.length; ++l) {
                  if (u[l].tag.isEOC()) throw new Error("EOC is not supposed to be actual content.");
                }
              } catch (t) {
                u = null;
              }
              if (null === u) {
                if (null === s) throw new Error("We can't skip over an invalid tag with undefined length at offset " + a);
                r.pos = a + Math.abs(s);
              }
              return new t(i, o, s, n, u);
            };
            return t;
          }();
          var A = function () {
            function t(t) {
              var e = t.get();
              this.tagClass = e >> 6;
              this.tagConstructed = 0 !== (32 & e);
              this.tagNumber = 31 & e;
              if (31 == this.tagNumber) {
                var r = new S();
                do {
                  e = t.get();
                  r.mulAdd(128, 127 & e);
                } while (128 & e);
                this.tagNumber = r.simplify();
              }
            }
            t.prototype.isUniversal = function () {
              return 0 === this.tagClass;
            };
            t.prototype.isEOC = function () {
              return 0 === this.tagClass && 0 === this.tagNumber;
            };
            return t;
          }();
          var x;
          var R = 0xdeadbeefcafe;
          var B = 15715070 == (16777215 & R);
          var O = [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];
          var k = (1 << 26) / O[O.length - 1];
          var C = function () {
            function t(t, e, r) {
              if (null != t) if ("number" == typeof t) this.fromNumber(t, e, r);else if (null == e && "string" != typeof t) this.fromString(t, 256);else this.fromString(t, e);
            }
            t.prototype.toString = function (t) {
              if (this.s < 0) return "-" + this.negate().toString(t);
              var e;
              if (16 == t) e = 4;else if (8 == t) e = 3;else if (2 == t) e = 1;else if (32 == t) e = 5;else if (4 == t) e = 2;else return this.toRadix(t);
              var r = (1 << e) - 1;
              var i;
              var s = false;
              var a = "";
              var o = this.t;
              var u = this.DB - o * this.DB % e;
              if (o-- > 0) {
                if (u < this.DB && (i = this[o] >> u) > 0) {
                  s = true;
                  a = n(i);
                }
                while (o >= 0) {
                  if (u < e) {
                    i = (this[o] & (1 << u) - 1) << e - u;
                    i |= this[--o] >> (u += this.DB - e);
                  } else {
                    i = this[o] >> (u -= e) & r;
                    if (u <= 0) {
                      u += this.DB;
                      --o;
                    }
                  }
                  if (i > 0) s = true;
                  if (s) a += n(i);
                }
              }
              return s ? a : "0";
            };
            t.prototype.negate = function () {
              var e = H();
              t.ZERO.subTo(this, e);
              return e;
            };
            t.prototype.abs = function () {
              return this.s < 0 ? this.negate() : this;
            };
            t.prototype.compareTo = function (t) {
              var e = this.s - t.s;
              if (0 != e) return e;
              var r = this.t;
              e = r - t.t;
              if (0 != e) return this.s < 0 ? -e : e;
              while (--r >= 0) {
                if (0 != (e = this[r] - t[r])) return e;
              }
              return 0;
            };
            t.prototype.bitLength = function () {
              if (this.t <= 0) return 0;
              return this.DB * (this.t - 1) + W(this[this.t - 1] ^ this.s & this.DM);
            };
            t.prototype.mod = function (e) {
              var r = H();
              this.abs().divRemTo(e, null, r);
              if (this.s < 0 && r.compareTo(t.ZERO) > 0) e.subTo(r, r);
              return r;
            };
            t.prototype.modPowInt = function (t, e) {
              var r;
              if (t < 256 || e.isEven()) r = new P(e);else r = new V(e);
              return this.exp(t, r);
            };
            t.prototype.clone = function () {
              var t = H();
              this.copyTo(t);
              return t;
            };
            t.prototype.intValue = function () {
              if (this.s < 0) {
                if (1 == this.t) return this[0] - this.DV;else if (0 == this.t) return -1;
              } else if (1 == this.t) return this[0];else if (0 == this.t) return 0;
              return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0];
            };
            t.prototype.byteValue = function () {
              return 0 == this.t ? this.s : this[0] << 24 >> 24;
            };
            t.prototype.shortValue = function () {
              return 0 == this.t ? this.s : this[0] << 16 >> 16;
            };
            t.prototype.signum = function () {
              if (this.s < 0) return -1;else if (this.t <= 0 || 1 == this.t && this[0] <= 0) return 0;else return 1;
            };
            t.prototype.toByteArray = function () {
              var t = this.t;
              var e = [];
              e[0] = this.s;
              var r = this.DB - t * this.DB % 8;
              var i;
              var n = 0;
              if (t-- > 0) {
                if (r < this.DB && (i = this[t] >> r) != (this.s & this.DM) >> r) e[n++] = i | this.s << this.DB - r;
                while (t >= 0) {
                  if (r < 8) {
                    i = (this[t] & (1 << r) - 1) << 8 - r;
                    i |= this[--t] >> (r += this.DB - 8);
                  } else {
                    i = this[t] >> (r -= 8) & 255;
                    if (r <= 0) {
                      r += this.DB;
                      --t;
                    }
                  }
                  if (0 != (128 & i)) i |= -256;
                  if (0 == n && (128 & this.s) != (128 & i)) ++n;
                  if (n > 0 || i != this.s) e[n++] = i;
                }
              }
              return e;
            };
            t.prototype.equals = function (t) {
              return 0 == this.compareTo(t);
            };
            t.prototype.min = function (t) {
              return this.compareTo(t) < 0 ? this : t;
            };
            t.prototype.max = function (t) {
              return this.compareTo(t) > 0 ? this : t;
            };
            t.prototype.and = function (t) {
              var e = H();
              this.bitwiseTo(t, s, e);
              return e;
            };
            t.prototype.or = function (t) {
              var e = H();
              this.bitwiseTo(t, a, e);
              return e;
            };
            t.prototype.xor = function (t) {
              var e = H();
              this.bitwiseTo(t, o, e);
              return e;
            };
            t.prototype.andNot = function (t) {
              var e = H();
              this.bitwiseTo(t, u, e);
              return e;
            };
            t.prototype.not = function () {
              var t = H();
              for (var e = 0; e < this.t; ++e) {
                t[e] = this.DM & ~this[e];
              }
              t.t = this.t;
              t.s = ~this.s;
              return t;
            };
            t.prototype.shiftLeft = function (t) {
              var e = H();
              if (t < 0) this.rShiftTo(-t, e);else this.lShiftTo(t, e);
              return e;
            };
            t.prototype.shiftRight = function (t) {
              var e = H();
              if (t < 0) this.lShiftTo(-t, e);else this.rShiftTo(t, e);
              return e;
            };
            t.prototype.getLowestSetBit = function () {
              for (var t = 0; t < this.t; ++t) {
                if (0 != this[t]) return t * this.DB + c(this[t]);
              }
              if (this.s < 0) return this.t * this.DB;
              return -1;
            };
            t.prototype.bitCount = function () {
              var t = 0;
              var e = this.s & this.DM;
              for (var r = 0; r < this.t; ++r) {
                t += l(this[r] ^ e);
              }
              return t;
            };
            t.prototype.testBit = function (t) {
              var e = Math.floor(t / this.DB);
              if (e >= this.t) return 0 != this.s;
              return 0 != (this[e] & 1 << t % this.DB);
            };
            t.prototype.setBit = function (t) {
              return this.changeBit(t, a);
            };
            t.prototype.clearBit = function (t) {
              return this.changeBit(t, u);
            };
            t.prototype.flipBit = function (t) {
              return this.changeBit(t, o);
            };
            t.prototype.add = function (t) {
              var e = H();
              this.addTo(t, e);
              return e;
            };
            t.prototype.subtract = function (t) {
              var e = H();
              this.subTo(t, e);
              return e;
            };
            t.prototype.multiply = function (t) {
              var e = H();
              this.multiplyTo(t, e);
              return e;
            };
            t.prototype.divide = function (t) {
              var e = H();
              this.divRemTo(t, e, null);
              return e;
            };
            t.prototype.remainder = function (t) {
              var e = H();
              this.divRemTo(t, null, e);
              return e;
            };
            t.prototype.divideAndRemainder = function (t) {
              var e = H();
              var r = H();
              this.divRemTo(t, e, r);
              return [e, r];
            };
            t.prototype.modPow = function (t, e) {
              var r = t.bitLength();
              var i;
              var n = Y(1);
              var s;
              if (r <= 0) return n;else if (r < 18) i = 1;else if (r < 48) i = 3;else if (r < 144) i = 4;else if (r < 768) i = 5;else i = 6;
              if (r < 8) s = new P(e);else if (e.isEven()) s = new L(e);else s = new V(e);
              var a = [];
              var o = 3;
              var u = i - 1;
              var c = (1 << i) - 1;
              a[1] = s.convert(this);
              if (i > 1) {
                var l = H();
                s.sqrTo(a[1], l);
                while (o <= c) {
                  a[o] = H();
                  s.mulTo(l, a[o - 2], a[o]);
                  o += 2;
                }
              }
              var f = t.t - 1;
              var h;
              var d = true;
              var v = H();
              var p;
              r = W(t[f]) - 1;
              while (f >= 0) {
                if (r >= u) h = t[f] >> r - u & c;else {
                  h = (t[f] & (1 << r + 1) - 1) << u - r;
                  if (f > 0) h |= t[f - 1] >> this.DB + r - u;
                }
                o = i;
                while (0 == (1 & h)) {
                  h >>= 1;
                  --o;
                }
                if ((r -= o) < 0) {
                  r += this.DB;
                  --f;
                }
                if (d) {
                  a[h].copyTo(n);
                  d = false;
                } else {
                  while (o > 1) {
                    s.sqrTo(n, v);
                    s.sqrTo(v, n);
                    o -= 2;
                  }
                  if (o > 0) s.sqrTo(n, v);else {
                    p = n;
                    n = v;
                    v = p;
                  }
                  s.mulTo(v, a[h], n);
                }
                while (f >= 0 && 0 == (t[f] & 1 << r)) {
                  s.sqrTo(n, v);
                  p = n;
                  n = v;
                  v = p;
                  if (--r < 0) {
                    r = this.DB - 1;
                    --f;
                  }
                }
              }
              return s.revert(n);
            };
            t.prototype.modInverse = function (e) {
              var r = e.isEven();
              if (this.isEven() && r || 0 == e.signum()) return t.ZERO;
              var i = e.clone();
              var n = this.clone();
              var s = Y(1);
              var a = Y(0);
              var o = Y(0);
              var u = Y(1);
              while (0 != i.signum()) {
                while (i.isEven()) {
                  i.rShiftTo(1, i);
                  if (r) {
                    if (!s.isEven() || !a.isEven()) {
                      s.addTo(this, s);
                      a.subTo(e, a);
                    }
                    s.rShiftTo(1, s);
                  } else if (!a.isEven()) a.subTo(e, a);
                  a.rShiftTo(1, a);
                }
                while (n.isEven()) {
                  n.rShiftTo(1, n);
                  if (r) {
                    if (!o.isEven() || !u.isEven()) {
                      o.addTo(this, o);
                      u.subTo(e, u);
                    }
                    o.rShiftTo(1, o);
                  } else if (!u.isEven()) u.subTo(e, u);
                  u.rShiftTo(1, u);
                }
                if (i.compareTo(n) >= 0) {
                  i.subTo(n, i);
                  if (r) s.subTo(o, s);
                  a.subTo(u, a);
                } else {
                  n.subTo(i, n);
                  if (r) o.subTo(s, o);
                  u.subTo(a, u);
                }
              }
              if (0 != n.compareTo(t.ONE)) return t.ZERO;
              if (u.compareTo(e) >= 0) return u.subtract(e);
              if (u.signum() < 0) u.addTo(e, u);else return u;
              if (u.signum() < 0) return u.add(e);else return u;
            };
            t.prototype.pow = function (t) {
              return this.exp(t, new N());
            };
            t.prototype.gcd = function (t) {
              var e = this.s < 0 ? this.negate() : this.clone();
              var r = t.s < 0 ? t.negate() : t.clone();
              if (e.compareTo(r) < 0) {
                var i = e;
                e = r;
                r = i;
              }
              var n = e.getLowestSetBit();
              var s = r.getLowestSetBit();
              if (s < 0) return e;
              if (n < s) s = n;
              if (s > 0) {
                e.rShiftTo(s, e);
                r.rShiftTo(s, r);
              }
              while (e.signum() > 0) {
                if ((n = e.getLowestSetBit()) > 0) e.rShiftTo(n, e);
                if ((n = r.getLowestSetBit()) > 0) r.rShiftTo(n, r);
                if (e.compareTo(r) >= 0) {
                  e.subTo(r, e);
                  e.rShiftTo(1, e);
                } else {
                  r.subTo(e, r);
                  r.rShiftTo(1, r);
                }
              }
              if (s > 0) r.lShiftTo(s, r);
              return r;
            };
            t.prototype.isProbablePrime = function (t) {
              var e;
              var r = this.abs();
              if (1 == r.t && r[0] <= O[O.length - 1]) {
                for (e = 0; e < O.length; ++e) {
                  if (r[0] == O[e]) return true;
                }
                return false;
              }
              if (r.isEven()) return false;
              e = 1;
              while (e < O.length) {
                var i = O[e];
                var n = e + 1;
                while (n < O.length && i < k) {
                  i *= O[n++];
                }
                i = r.modInt(i);
                while (e < n) {
                  if (i % O[e++] == 0) return false;
                }
              }
              return r.millerRabin(t);
            };
            t.prototype.copyTo = function (t) {
              for (var e = this.t - 1; e >= 0; --e) {
                t[e] = this[e];
              }
              t.t = this.t;
              t.s = this.s;
            };
            t.prototype.fromInt = function (t) {
              this.t = 1;
              this.s = t < 0 ? -1 : 0;
              if (t > 0) this[0] = t;else if (t < -1) this[0] = t + this.DV;else this.t = 0;
            };
            t.prototype.fromString = function (e, r) {
              var i;
              if (16 == r) i = 4;else if (8 == r) i = 3;else if (256 == r) i = 8;else if (2 == r) i = 1;else if (32 == r) i = 5;else if (4 == r) i = 2;else {
                this.fromRadix(e, r);
                return;
              }
              this.t = 0;
              this.s = 0;
              var n = e.length;
              var s = false;
              var a = 0;
              while (--n >= 0) {
                var o = 8 == i ? 255 & +e[n] : G(e, n);
                if (o < 0) {
                  if ("-" == e.charAt(n)) s = true;
                  continue;
                }
                s = false;
                if (0 == a) this[this.t++] = o;else if (a + i > this.DB) {
                  this[this.t - 1] |= (o & (1 << this.DB - a) - 1) << a;
                  this[this.t++] = o >> this.DB - a;
                } else this[this.t - 1] |= o << a;
                a += i;
                if (a >= this.DB) a -= this.DB;
              }
              if (8 == i && 0 != (128 & +e[0])) {
                this.s = -1;
                if (a > 0) this[this.t - 1] |= (1 << this.DB - a) - 1 << a;
              }
              this.clamp();
              if (s) t.ZERO.subTo(this, this);
            };
            t.prototype.clamp = function () {
              var t = this.s & this.DM;
              while (this.t > 0 && this[this.t - 1] == t) {
                --this.t;
              }
            };
            t.prototype.dlShiftTo = function (t, e) {
              var r;
              for (r = this.t - 1; r >= 0; --r) {
                e[r + t] = this[r];
              }
              for (r = t - 1; r >= 0; --r) {
                e[r] = 0;
              }
              e.t = this.t + t;
              e.s = this.s;
            };
            t.prototype.drShiftTo = function (t, e) {
              for (var r = t; r < this.t; ++r) {
                e[r - t] = this[r];
              }
              e.t = Math.max(this.t - t, 0);
              e.s = this.s;
            };
            t.prototype.lShiftTo = function (t, e) {
              var r = t % this.DB;
              var i = this.DB - r;
              var n = (1 << i) - 1;
              var s = Math.floor(t / this.DB);
              var a = this.s << r & this.DM;
              for (var o = this.t - 1; o >= 0; --o) {
                e[o + s + 1] = this[o] >> i | a;
                a = (this[o] & n) << r;
              }
              for (var o = s - 1; o >= 0; --o) {
                e[o] = 0;
              }
              e[s] = a;
              e.t = this.t + s + 1;
              e.s = this.s;
              e.clamp();
            };
            t.prototype.rShiftTo = function (t, e) {
              e.s = this.s;
              var r = Math.floor(t / this.DB);
              if (r >= this.t) {
                e.t = 0;
                return;
              }
              var i = t % this.DB;
              var n = this.DB - i;
              var s = (1 << i) - 1;
              e[0] = this[r] >> i;
              for (var a = r + 1; a < this.t; ++a) {
                e[a - r - 1] |= (this[a] & s) << n;
                e[a - r] = this[a] >> i;
              }
              if (i > 0) e[this.t - r - 1] |= (this.s & s) << n;
              e.t = this.t - r;
              e.clamp();
            };
            t.prototype.subTo = function (t, e) {
              var r = 0;
              var i = 0;
              var n = Math.min(t.t, this.t);
              while (r < n) {
                i += this[r] - t[r];
                e[r++] = i & this.DM;
                i >>= this.DB;
              }
              if (t.t < this.t) {
                i -= t.s;
                while (r < this.t) {
                  i += this[r];
                  e[r++] = i & this.DM;
                  i >>= this.DB;
                }
                i += this.s;
              } else {
                i += this.s;
                while (r < t.t) {
                  i -= t[r];
                  e[r++] = i & this.DM;
                  i >>= this.DB;
                }
                i -= t.s;
              }
              e.s = i < 0 ? -1 : 0;
              if (i < -1) e[r++] = this.DV + i;else if (i > 0) e[r++] = i;
              e.t = r;
              e.clamp();
            };
            t.prototype.multiplyTo = function (e, r) {
              var i = this.abs();
              var n = e.abs();
              var s = i.t;
              r.t = s + n.t;
              while (--s >= 0) {
                r[s] = 0;
              }
              for (s = 0; s < n.t; ++s) {
                r[s + i.t] = i.am(0, n[s], r, s, 0, i.t);
              }
              r.s = 0;
              r.clamp();
              if (this.s != e.s) t.ZERO.subTo(r, r);
            };
            t.prototype.squareTo = function (t) {
              var e = this.abs();
              var r = t.t = 2 * e.t;
              while (--r >= 0) {
                t[r] = 0;
              }
              for (r = 0; r < e.t - 1; ++r) {
                var i = e.am(r, e[r], t, 2 * r, 0, 1);
                if ((t[r + e.t] += e.am(r + 1, 2 * e[r], t, 2 * r + 1, i, e.t - r - 1)) >= e.DV) {
                  t[r + e.t] -= e.DV;
                  t[r + e.t + 1] = 1;
                }
              }
              if (t.t > 0) t[t.t - 1] += e.am(r, e[r], t, 2 * r, 0, 1);
              t.s = 0;
              t.clamp();
            };
            t.prototype.divRemTo = function (e, r, i) {
              var n = e.abs();
              if (n.t <= 0) return;
              var s = this.abs();
              if (s.t < n.t) {
                if (null != r) r.fromInt(0);
                if (null != i) this.copyTo(i);
                return;
              }
              if (null == i) i = H();
              var a = H();
              var o = this.s;
              var u = e.s;
              var c = this.DB - W(n[n.t - 1]);
              if (c > 0) {
                n.lShiftTo(c, a);
                s.lShiftTo(c, i);
              } else {
                n.copyTo(a);
                s.copyTo(i);
              }
              var l = a.t;
              var f = a[l - 1];
              if (0 == f) return;
              var h = f * (1 << this.F1) + (l > 1 ? a[l - 2] >> this.F2 : 0);
              var d = this.FV / h;
              var v = (1 << this.F1) / h;
              var p = 1 << this.F2;
              var g = i.t;
              var y = g - l;
              var m = null == r ? H() : r;
              a.dlShiftTo(y, m);
              if (i.compareTo(m) >= 0) {
                i[i.t++] = 1;
                i.subTo(m, i);
              }
              t.ONE.dlShiftTo(l, m);
              m.subTo(a, a);
              while (a.t < l) {
                a[a.t++] = 0;
              }
              while (--y >= 0) {
                var w = i[--g] == f ? this.DM : Math.floor(i[g] * d + (i[g - 1] + p) * v);
                if ((i[g] += a.am(0, w, i, y, 0, l)) < w) {
                  a.dlShiftTo(y, m);
                  i.subTo(m, i);
                  while (i[g] < --w) {
                    i.subTo(m, i);
                  }
                }
              }
              if (null != r) {
                i.drShiftTo(l, r);
                if (o != u) t.ZERO.subTo(r, r);
              }
              i.t = l;
              i.clamp();
              if (c > 0) i.rShiftTo(c, i);
              if (o < 0) t.ZERO.subTo(i, i);
            };
            t.prototype.invDigit = function () {
              if (this.t < 1) return 0;
              var t = this[0];
              if (0 == (1 & t)) return 0;
              var e = 3 & t;
              e = e * (2 - (15 & t) * e) & 15;
              e = e * (2 - (255 & t) * e) & 255;
              e = e * (2 - ((65535 & t) * e & 65535)) & 65535;
              e = e * (2 - t * e % this.DV) % this.DV;
              return e > 0 ? this.DV - e : -e;
            };
            t.prototype.isEven = function () {
              return 0 == (this.t > 0 ? 1 & this[0] : this.s);
            };
            t.prototype.exp = function (e, r) {
              if (e > 4294967295 || e < 1) return t.ONE;
              var i = H();
              var n = H();
              var s = r.convert(this);
              var a = W(e) - 1;
              s.copyTo(i);
              while (--a >= 0) {
                r.sqrTo(i, n);
                if ((e & 1 << a) > 0) r.mulTo(n, s, i);else {
                  var o = i;
                  i = n;
                  n = o;
                }
              }
              return r.revert(i);
            };
            t.prototype.chunkSize = function (t) {
              return Math.floor(Math.LN2 * this.DB / Math.log(t));
            };
            t.prototype.toRadix = function (t) {
              if (null == t) t = 10;
              if (0 == this.signum() || t < 2 || t > 36) return "0";
              var e = this.chunkSize(t);
              var r = Math.pow(t, e);
              var i = Y(r);
              var n = H();
              var s = H();
              var a = "";
              this.divRemTo(i, n, s);
              while (n.signum() > 0) {
                a = (r + s.intValue()).toString(t).substr(1) + a;
                n.divRemTo(i, n, s);
              }
              return s.intValue().toString(t) + a;
            };
            t.prototype.fromRadix = function (e, r) {
              this.fromInt(0);
              if (null == r) r = 10;
              var i = this.chunkSize(r);
              var n = Math.pow(r, i);
              var s = false;
              var a = 0;
              var o = 0;
              for (var u = 0; u < e.length; ++u) {
                var c = G(e, u);
                if (c < 0) {
                  if ("-" == e.charAt(u) && 0 == this.signum()) s = true;
                  continue;
                }
                o = r * o + c;
                if (++a >= i) {
                  this.dMultiply(n);
                  this.dAddOffset(o, 0);
                  a = 0;
                  o = 0;
                }
              }
              if (a > 0) {
                this.dMultiply(Math.pow(r, a));
                this.dAddOffset(o, 0);
              }
              if (s) t.ZERO.subTo(this, this);
            };
            t.prototype.fromNumber = function (e, r, i) {
              if ("number" == typeof r) {
                if (e < 2) this.fromInt(1);else {
                  this.fromNumber(e, i);
                  if (!this.testBit(e - 1)) this.bitwiseTo(t.ONE.shiftLeft(e - 1), a, this);
                  if (this.isEven()) this.dAddOffset(1, 0);
                  while (!this.isProbablePrime(r)) {
                    this.dAddOffset(2, 0);
                    if (this.bitLength() > e) this.subTo(t.ONE.shiftLeft(e - 1), this);
                  }
                }
              } else {
                var n = [];
                var s = 7 & e;
                n.length = (e >> 3) + 1;
                r.nextBytes(n);
                if (s > 0) n[0] &= (1 << s) - 1;else n[0] = 0;
                this.fromString(n, 256);
              }
            };
            t.prototype.bitwiseTo = function (t, e, r) {
              var i;
              var n;
              var s = Math.min(t.t, this.t);
              for (i = 0; i < s; ++i) {
                r[i] = e(this[i], t[i]);
              }
              if (t.t < this.t) {
                n = t.s & this.DM;
                for (i = s; i < this.t; ++i) {
                  r[i] = e(this[i], n);
                }
                r.t = this.t;
              } else {
                n = this.s & this.DM;
                for (i = s; i < t.t; ++i) {
                  r[i] = e(n, t[i]);
                }
                r.t = t.t;
              }
              r.s = e(this.s, t.s);
              r.clamp();
            };
            t.prototype.changeBit = function (e, r) {
              var i = t.ONE.shiftLeft(e);
              this.bitwiseTo(i, r, i);
              return i;
            };
            t.prototype.addTo = function (t, e) {
              var r = 0;
              var i = 0;
              var n = Math.min(t.t, this.t);
              while (r < n) {
                i += this[r] + t[r];
                e[r++] = i & this.DM;
                i >>= this.DB;
              }
              if (t.t < this.t) {
                i += t.s;
                while (r < this.t) {
                  i += this[r];
                  e[r++] = i & this.DM;
                  i >>= this.DB;
                }
                i += this.s;
              } else {
                i += this.s;
                while (r < t.t) {
                  i += t[r];
                  e[r++] = i & this.DM;
                  i >>= this.DB;
                }
                i += t.s;
              }
              e.s = i < 0 ? -1 : 0;
              if (i > 0) e[r++] = i;else if (i < -1) e[r++] = this.DV + i;
              e.t = r;
              e.clamp();
            };
            t.prototype.dMultiply = function (t) {
              this[this.t] = this.am(0, t - 1, this, 0, 0, this.t);
              ++this.t;
              this.clamp();
            };
            t.prototype.dAddOffset = function (t, e) {
              if (0 == t) return;
              while (this.t <= e) {
                this[this.t++] = 0;
              }
              this[e] += t;
              while (this[e] >= this.DV) {
                this[e] -= this.DV;
                if (++e >= this.t) this[this.t++] = 0;
                ++this[e];
              }
            };
            t.prototype.multiplyLowerTo = function (t, e, r) {
              var i = Math.min(this.t + t.t, e);
              r.s = 0;
              r.t = i;
              while (i > 0) {
                r[--i] = 0;
              }
              for (var n = r.t - this.t; i < n; ++i) {
                r[i + this.t] = this.am(0, t[i], r, i, 0, this.t);
              }
              for (var n = Math.min(t.t, e); i < n; ++i) {
                this.am(0, t[i], r, i, 0, e - i);
              }
              r.clamp();
            };
            t.prototype.multiplyUpperTo = function (t, e, r) {
              --e;
              var i = r.t = this.t + t.t - e;
              r.s = 0;
              while (--i >= 0) {
                r[i] = 0;
              }
              for (i = Math.max(e - this.t, 0); i < t.t; ++i) {
                r[this.t + i - e] = this.am(e - i, t[i], r, 0, 0, this.t + i - e);
              }
              r.clamp();
              r.drShiftTo(1, r);
            };
            t.prototype.modInt = function (t) {
              if (t <= 0) return 0;
              var e = this.DV % t;
              var r = this.s < 0 ? t - 1 : 0;
              if (this.t > 0) if (0 == e) r = this[0] % t;else for (var i = this.t - 1; i >= 0; --i) {
                r = (e * r + this[i]) % t;
              }
              return r;
            };
            t.prototype.millerRabin = function (e) {
              var r = this.subtract(t.ONE);
              var i = r.getLowestSetBit();
              if (i <= 0) return false;
              var n = r.shiftRight(i);
              e = e + 1 >> 1;
              if (e > O.length) e = O.length;
              var s = H();
              for (var a = 0; a < e; ++a) {
                s.fromInt(O[Math.floor(Math.random() * O.length)]);
                var o = s.modPow(n, this);
                if (0 != o.compareTo(t.ONE) && 0 != o.compareTo(r)) {
                  var u = 1;
                  while (u++ < i && 0 != o.compareTo(r)) {
                    o = o.modPowInt(2, this);
                    if (0 == o.compareTo(t.ONE)) return false;
                  }
                  if (0 != o.compareTo(r)) return false;
                }
              }
              return true;
            };
            t.prototype.square = function () {
              var t = H();
              this.squareTo(t);
              return t;
            };
            t.prototype.gcda = function (t, e) {
              var r = this.s < 0 ? this.negate() : this.clone();
              var i = t.s < 0 ? t.negate() : t.clone();
              if (r.compareTo(i) < 0) {
                var n = r;
                r = i;
                i = n;
              }
              var s = r.getLowestSetBit();
              var a = i.getLowestSetBit();
              if (a < 0) {
                e(r);
                return;
              }
              if (s < a) a = s;
              if (a > 0) {
                r.rShiftTo(a, r);
                i.rShiftTo(a, i);
              }
              var o = function o() {
                if ((s = r.getLowestSetBit()) > 0) r.rShiftTo(s, r);
                if ((s = i.getLowestSetBit()) > 0) i.rShiftTo(s, i);
                if (r.compareTo(i) >= 0) {
                  r.subTo(i, r);
                  r.rShiftTo(1, r);
                } else {
                  i.subTo(r, i);
                  i.rShiftTo(1, i);
                }
                if (!(r.signum() > 0)) {
                  if (a > 0) i.lShiftTo(a, i);
                  setTimeout(function () {
                    e(i);
                  }, 0);
                } else setTimeout(o, 0);
              };
              setTimeout(o, 10);
            };
            t.prototype.fromNumberAsync = function (e, r, i, n) {
              if ("number" == typeof r) {
                if (e < 2) this.fromInt(1);else {
                  this.fromNumber(e, i);
                  if (!this.testBit(e - 1)) this.bitwiseTo(t.ONE.shiftLeft(e - 1), a, this);
                  if (this.isEven()) this.dAddOffset(1, 0);
                  var s = this;
                  var o = function o() {
                    s.dAddOffset(2, 0);
                    if (s.bitLength() > e) s.subTo(t.ONE.shiftLeft(e - 1), s);
                    if (s.isProbablePrime(r)) setTimeout(function () {
                      n();
                    }, 0);else setTimeout(o, 0);
                  };
                  setTimeout(o, 0);
                }
              } else {
                var u = [];
                var c = 7 & e;
                u.length = (e >> 3) + 1;
                r.nextBytes(u);
                if (c > 0) u[0] &= (1 << c) - 1;else u[0] = 0;
                this.fromString(u, 256);
              }
            };
            return t;
          }();
          var N = function () {
            function t() {}
            t.prototype.convert = function (t) {
              return t;
            };
            t.prototype.revert = function (t) {
              return t;
            };
            t.prototype.mulTo = function (t, e, r) {
              t.multiplyTo(e, r);
            };
            t.prototype.sqrTo = function (t, e) {
              t.squareTo(e);
            };
            return t;
          }();
          var P = function () {
            function t(t) {
              this.m = t;
            }
            t.prototype.convert = function (t) {
              if (t.s < 0 || t.compareTo(this.m) >= 0) return t.mod(this.m);else return t;
            };
            t.prototype.revert = function (t) {
              return t;
            };
            t.prototype.reduce = function (t) {
              t.divRemTo(this.m, null, t);
            };
            t.prototype.mulTo = function (t, e, r) {
              t.multiplyTo(e, r);
              this.reduce(r);
            };
            t.prototype.sqrTo = function (t, e) {
              t.squareTo(e);
              this.reduce(e);
            };
            return t;
          }();
          var V = function () {
            function t(t) {
              this.m = t;
              this.mp = t.invDigit();
              this.mpl = 32767 & this.mp;
              this.mph = this.mp >> 15;
              this.um = (1 << t.DB - 15) - 1;
              this.mt2 = 2 * t.t;
            }
            t.prototype.convert = function (t) {
              var e = H();
              t.abs().dlShiftTo(this.m.t, e);
              e.divRemTo(this.m, null, e);
              if (t.s < 0 && e.compareTo(C.ZERO) > 0) this.m.subTo(e, e);
              return e;
            };
            t.prototype.revert = function (t) {
              var e = H();
              t.copyTo(e);
              this.reduce(e);
              return e;
            };
            t.prototype.reduce = function (t) {
              while (t.t <= this.mt2) {
                t[t.t++] = 0;
              }
              for (var e = 0; e < this.m.t; ++e) {
                var r = 32767 & t[e];
                var i = r * this.mpl + ((r * this.mph + (t[e] >> 15) * this.mpl & this.um) << 15) & t.DM;
                r = e + this.m.t;
                t[r] += this.m.am(0, i, t, e, 0, this.m.t);
                while (t[r] >= t.DV) {
                  t[r] -= t.DV;
                  t[++r]++;
                }
              }
              t.clamp();
              t.drShiftTo(this.m.t, t);
              if (t.compareTo(this.m) >= 0) t.subTo(this.m, t);
            };
            t.prototype.mulTo = function (t, e, r) {
              t.multiplyTo(e, r);
              this.reduce(r);
            };
            t.prototype.sqrTo = function (t, e) {
              t.squareTo(e);
              this.reduce(e);
            };
            return t;
          }();
          var L = function () {
            function t(t) {
              this.m = t;
              this.r2 = H();
              this.q3 = H();
              C.ONE.dlShiftTo(2 * t.t, this.r2);
              this.mu = this.r2.divide(t);
            }
            t.prototype.convert = function (t) {
              if (t.s < 0 || t.t > 2 * this.m.t) return t.mod(this.m);else if (t.compareTo(this.m) < 0) return t;else {
                var e = H();
                t.copyTo(e);
                this.reduce(e);
                return e;
              }
            };
            t.prototype.revert = function (t) {
              return t;
            };
            t.prototype.reduce = function (t) {
              t.drShiftTo(this.m.t - 1, this.r2);
              if (t.t > this.m.t + 1) {
                t.t = this.m.t + 1;
                t.clamp();
              }
              this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3);
              this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2);
              while (t.compareTo(this.r2) < 0) {
                t.dAddOffset(1, this.m.t + 1);
              }
              t.subTo(this.r2, t);
              while (t.compareTo(this.m) >= 0) {
                t.subTo(this.m, t);
              }
            };
            t.prototype.mulTo = function (t, e, r) {
              t.multiplyTo(e, r);
              this.reduce(r);
            };
            t.prototype.sqrTo = function (t, e) {
              t.squareTo(e);
              this.reduce(e);
            };
            return t;
          }();
          function H() {
            return new C(null);
          }
          function U(t, e) {
            return new C(t, e);
          }
          var K = "undefined" !== typeof navigator;
          if (K && B && "Microsoft Internet Explorer" == navigator.appName) {
            C.prototype.am = function t(e, r, i, n, s, a) {
              var o = 32767 & r;
              var u = r >> 15;
              while (--a >= 0) {
                var c = 32767 & this[e];
                var l = this[e++] >> 15;
                var f = u * c + l * o;
                c = o * c + ((32767 & f) << 15) + i[n] + (1073741823 & s);
                s = (c >>> 30) + (f >>> 15) + u * l + (s >>> 30);
                i[n++] = 1073741823 & c;
              }
              return s;
            };
            x = 30;
          } else if (K && B && "Netscape" != navigator.appName) {
            C.prototype.am = function t(e, r, i, n, s, a) {
              while (--a >= 0) {
                var o = r * this[e++] + i[n] + s;
                s = Math.floor(o / 67108864);
                i[n++] = 67108863 & o;
              }
              return s;
            };
            x = 26;
          } else {
            C.prototype.am = function t(e, r, i, n, s, a) {
              var o = 16383 & r;
              var u = r >> 14;
              while (--a >= 0) {
                var c = 16383 & this[e];
                var l = this[e++] >> 14;
                var f = u * c + l * o;
                c = o * c + ((16383 & f) << 14) + i[n] + s;
                s = (c >> 28) + (f >> 14) + u * l;
                i[n++] = 268435455 & c;
              }
              return s;
            };
            x = 28;
          }
          C.prototype.DB = x;
          C.prototype.DM = (1 << x) - 1;
          C.prototype.DV = 1 << x;
          var j = 52;
          C.prototype.FV = Math.pow(2, j);
          C.prototype.F1 = j - x;
          C.prototype.F2 = 2 * x - j;
          var q = [];
          var F;
          var z;
          F = "0".charCodeAt(0);
          for (z = 0; z <= 9; ++z) {
            q[F++] = z;
          }
          F = "a".charCodeAt(0);
          for (z = 10; z < 36; ++z) {
            q[F++] = z;
          }
          F = "A".charCodeAt(0);
          for (z = 10; z < 36; ++z) {
            q[F++] = z;
          }
          function G(t, e) {
            var r = q[t.charCodeAt(e)];
            return null == r ? -1 : r;
          }
          function Y(t) {
            var e = H();
            e.fromInt(t);
            return e;
          }
          function W(t) {
            var e = 1;
            var r;
            if (0 != (r = t >>> 16)) {
              t = r;
              e += 16;
            }
            if (0 != (r = t >> 8)) {
              t = r;
              e += 8;
            }
            if (0 != (r = t >> 4)) {
              t = r;
              e += 4;
            }
            if (0 != (r = t >> 2)) {
              t = r;
              e += 2;
            }
            if (0 != (r = t >> 1)) {
              t = r;
              e += 1;
            }
            return e;
          }
          C.ZERO = Y(0);
          C.ONE = Y(1);
          var J = function () {
            function t() {
              this.i = 0;
              this.j = 0;
              this.S = [];
            }
            t.prototype.init = function (t) {
              var e;
              var r;
              var i;
              for (e = 0; e < 256; ++e) {
                this.S[e] = e;
              }
              r = 0;
              for (e = 0; e < 256; ++e) {
                r = r + this.S[e] + t[e % t.length] & 255;
                i = this.S[e];
                this.S[e] = this.S[r];
                this.S[r] = i;
              }
              this.i = 0;
              this.j = 0;
            };
            t.prototype.next = function () {
              var t;
              this.i = this.i + 1 & 255;
              this.j = this.j + this.S[this.i] & 255;
              t = this.S[this.i];
              this.S[this.i] = this.S[this.j];
              this.S[this.j] = t;
              return this.S[t + this.S[this.i] & 255];
            };
            return t;
          }();
          function Z() {
            return new J();
          }
          var $ = 256;
          var X;
          var Q = null;
          var tt;
          if (null == Q) {
            Q = [];
            tt = 0;
          }
          function nt() {
            if (null == X) {
              X = Z();
              while (tt < $) {
                var t = Math.floor(65536 * Math.random());
                Q[tt++] = 255 & t;
              }
              X.init(Q);
              for (tt = 0; tt < Q.length; ++tt) {
                Q[tt] = 0;
              }
              tt = 0;
            }
            return X.next();
          }
          var st = function () {
            function t() {}
            t.prototype.nextBytes = function (t) {
              for (var e = 0; e < t.length; ++e) {
                t[e] = nt();
              }
            };
            return t;
          }();
          function at(t, e) {
            if (e < t.length + 22) {
              console.error("Message too long for RSA");
              return null;
            }
            var r = e - t.length - 6;
            var i = "";
            for (var n = 0; n < r; n += 2) {
              i += "ff";
            }
            var s = "0001" + i + "00" + t;
            return U(s, 16);
          }
          function ot(t, e) {
            if (e < t.length + 11) {
              console.error("Message too long for RSA");
              return null;
            }
            var r = [];
            var i = t.length - 1;
            while (i >= 0 && e > 0) {
              var n = t.charCodeAt(i--);
              if (n < 128) r[--e] = n;else if (n > 127 && n < 2048) {
                r[--e] = 63 & n | 128;
                r[--e] = n >> 6 | 192;
              } else {
                r[--e] = 63 & n | 128;
                r[--e] = n >> 6 & 63 | 128;
                r[--e] = n >> 12 | 224;
              }
            }
            r[--e] = 0;
            var s = new st();
            var a = [];
            while (e > 2) {
              a[0] = 0;
              while (0 == a[0]) {
                s.nextBytes(a);
              }
              r[--e] = a[0];
            }
            r[--e] = 2;
            r[--e] = 0;
            return new C(r);
          }
          var ut = function () {
            function t() {
              this.n = null;
              this.e = 0;
              this.d = null;
              this.p = null;
              this.q = null;
              this.dmp1 = null;
              this.dmq1 = null;
              this.coeff = null;
            }
            t.prototype.doPublic = function (t) {
              return t.modPowInt(this.e, this.n);
            };
            t.prototype.doPrivate = function (t) {
              if (null == this.p || null == this.q) return t.modPow(this.d, this.n);
              var e = t.mod(this.p).modPow(this.dmp1, this.p);
              var r = t.mod(this.q).modPow(this.dmq1, this.q);
              while (e.compareTo(r) < 0) {
                e = e.add(this.p);
              }
              return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r);
            };
            t.prototype.setPublic = function (t, e) {
              if (null != t && null != e && t.length > 0 && e.length > 0) {
                this.n = U(t, 16);
                this.e = parseInt(e, 16);
              } else console.error("Invalid RSA public key");
            };
            t.prototype.encrypt = function (t) {
              var e = this.n.bitLength() + 7 >> 3;
              var r = ot(t, e);
              if (null == r) return null;
              var i = this.doPublic(r);
              if (null == i) return null;
              var n = i.toString(16);
              var s = n.length;
              for (var a = 0; a < 2 * e - s; a++) {
                n = "0" + n;
              }
              return n;
            };
            t.prototype.setPrivate = function (t, e, r) {
              if (null != t && null != e && t.length > 0 && e.length > 0) {
                this.n = U(t, 16);
                this.e = parseInt(e, 16);
                this.d = U(r, 16);
              } else console.error("Invalid RSA private key");
            };
            t.prototype.setPrivateEx = function (t, e, r, i, n, s, a, o) {
              if (null != t && null != e && t.length > 0 && e.length > 0) {
                this.n = U(t, 16);
                this.e = parseInt(e, 16);
                this.d = U(r, 16);
                this.p = U(i, 16);
                this.q = U(n, 16);
                this.dmp1 = U(s, 16);
                this.dmq1 = U(a, 16);
                this.coeff = U(o, 16);
              } else console.error("Invalid RSA private key");
            };
            t.prototype.generate = function (t, e) {
              var r = new st();
              var i = t >> 1;
              this.e = parseInt(e, 16);
              var n = new C(e, 16);
              for (;;) {
                for (;;) {
                  this.p = new C(t - i, 1, r);
                  if (0 == this.p.subtract(C.ONE).gcd(n).compareTo(C.ONE) && this.p.isProbablePrime(10)) break;
                }
                for (;;) {
                  this.q = new C(i, 1, r);
                  if (0 == this.q.subtract(C.ONE).gcd(n).compareTo(C.ONE) && this.q.isProbablePrime(10)) break;
                }
                if (this.p.compareTo(this.q) <= 0) {
                  var s = this.p;
                  this.p = this.q;
                  this.q = s;
                }
                var a = this.p.subtract(C.ONE);
                var o = this.q.subtract(C.ONE);
                var u = a.multiply(o);
                if (0 == u.gcd(n).compareTo(C.ONE)) {
                  this.n = this.p.multiply(this.q);
                  this.d = n.modInverse(u);
                  this.dmp1 = this.d.mod(a);
                  this.dmq1 = this.d.mod(o);
                  this.coeff = this.q.modInverse(this.p);
                  break;
                }
              }
            };
            t.prototype.decrypt = function (t) {
              var e = U(t, 16);
              var r = this.doPrivate(e);
              if (null == r) return null;
              return ct(r, this.n.bitLength() + 7 >> 3);
            };
            t.prototype.generateAsync = function (t, e, r) {
              var i = new st();
              var n = t >> 1;
              this.e = parseInt(e, 16);
              var s = new C(e, 16);
              var a = this;
              var o = function o() {
                var e = function e() {
                  if (a.p.compareTo(a.q) <= 0) {
                    var t = a.p;
                    a.p = a.q;
                    a.q = t;
                  }
                  var e = a.p.subtract(C.ONE);
                  var i = a.q.subtract(C.ONE);
                  var n = e.multiply(i);
                  if (0 == n.gcd(s).compareTo(C.ONE)) {
                    a.n = a.p.multiply(a.q);
                    a.d = s.modInverse(n);
                    a.dmp1 = a.d.mod(e);
                    a.dmq1 = a.d.mod(i);
                    a.coeff = a.q.modInverse(a.p);
                    setTimeout(function () {
                      r();
                    }, 0);
                  } else setTimeout(o, 0);
                };
                var u = function u() {
                  a.q = H();
                  a.q.fromNumberAsync(n, 1, i, function () {
                    a.q.subtract(C.ONE).gcda(s, function (t) {
                      if (0 == t.compareTo(C.ONE) && a.q.isProbablePrime(10)) setTimeout(e, 0);else setTimeout(u, 0);
                    });
                  });
                };
                var c = function c() {
                  a.p = H();
                  a.p.fromNumberAsync(t - n, 1, i, function () {
                    a.p.subtract(C.ONE).gcda(s, function (t) {
                      if (0 == t.compareTo(C.ONE) && a.p.isProbablePrime(10)) setTimeout(u, 0);else setTimeout(c, 0);
                    });
                  });
                };
                setTimeout(c, 0);
              };
              setTimeout(o, 0);
            };
            t.prototype.sign = function (t, e, r) {
              var i = ht(r);
              var n = i + e(t).toString();
              var s = at(n, this.n.bitLength() / 4);
              if (null == s) return null;
              var a = this.doPrivate(s);
              if (null == a) return null;
              var o = a.toString(16);
              if (0 == (1 & o.length)) return o;else return "0" + o;
            };
            t.prototype.verify = function (t, e, r) {
              var i = U(e, 16);
              var n = this.doPublic(i);
              if (null == n) return null;
              var s = n.toString(16).replace(/^1f+00/, "");
              var a = dt(s);
              return a == r(t).toString();
            };
            t.prototype.encryptLong = function (t) {
              var e = this;
              var r = "";
              var i = (this.n.bitLength() + 7 >> 3) - 11;
              var n = this.setSplitChn(t, i);
              n.forEach(function (t) {
                r += e.encrypt(t);
              });
              return r;
            };
            t.prototype.decryptLong = function (t) {
              var e = "";
              var r = this.n.bitLength() + 7 >> 3;
              var i = 2 * r;
              if (t.length > i) {
                var n = t.match(new RegExp(".{1," + i + "}", "g")) || [];
                var s = [];
                for (var a = 0; a < n.length; a++) {
                  var o = U(n[a], 16);
                  var u = this.doPrivate(o);
                  if (null == u) return null;
                  s.push(u);
                }
                e = lt(s, r);
              } else e = this.decrypt(t);
              return e;
            };
            t.prototype.setSplitChn = function (t, e, r) {
              if (void 0 === r) r = [];
              var i = t.split("");
              var n = 0;
              for (var s = 0; s < i.length; s++) {
                var a = i[s].charCodeAt(0);
                if (a <= 127) n += 1;else if (a <= 2047) n += 2;else if (a <= 65535) n += 3;else n += 4;
                if (n > e) {
                  var o = t.substring(0, s);
                  r.push(o);
                  return this.setSplitChn(t.substring(s), e, r);
                }
              }
              r.push(t);
              return r;
            };
            return t;
          }();
          function ct(t, e) {
            var r = t.toByteArray();
            var i = 0;
            while (i < r.length && 0 == r[i]) {
              ++i;
            }
            if (r.length - i != e - 1 || 2 != r[i]) return null;
            ++i;
            while (0 != r[i]) {
              if (++i >= r.length) return null;
            }
            var n = "";
            while (++i < r.length) {
              var s = 255 & r[i];
              if (s < 128) n += String.fromCharCode(s);else if (s > 191 && s < 224) {
                n += String.fromCharCode((31 & s) << 6 | 63 & r[i + 1]);
                ++i;
              } else {
                n += String.fromCharCode((15 & s) << 12 | (63 & r[i + 1]) << 6 | 63 & r[i + 2]);
                i += 2;
              }
            }
            return n;
          }
          function lt(t, e) {
            var r = [];
            for (var i = 0; i < t.length; i++) {
              var n = t[i];
              var s = n.toByteArray();
              var a = 0;
              while (a < s.length && 0 == s[a]) {
                ++a;
              }
              if (s.length - a != e - 1 || 2 != s[a]) return null;
              ++a;
              while (0 != s[a]) {
                if (++a >= s.length) return null;
              }
              r = r.concat(s.slice(a + 1));
            }
            var o = r;
            var u = -1;
            var c = "";
            while (++u < o.length) {
              var l = 255 & o[u];
              if (l < 128) c += String.fromCharCode(l);else if (l > 191 && l < 224) {
                c += String.fromCharCode((31 & l) << 6 | 63 & o[u + 1]);
                ++u;
              } else {
                c += String.fromCharCode((15 & l) << 12 | (63 & o[u + 1]) << 6 | 63 & o[u + 2]);
                u += 2;
              }
            }
            return c;
          }
          var ft = {
            md2: "3020300c06082a864886f70d020205000410",
            md5: "3020300c06082a864886f70d020505000410",
            sha1: "3021300906052b0e03021a05000414",
            sha224: "302d300d06096086480165030402040500041c",
            sha256: "3031300d060960864801650304020105000420",
            sha384: "3041300d060960864801650304020205000430",
            sha512: "3051300d060960864801650304020305000440",
            ripemd160: "3021300906052b2403020105000414"
          };
          function ht(t) {
            return ft[t] || "";
          }
          function dt(t) {
            for (var e in ft) {
              if (ft.hasOwnProperty(e)) {
                var r = ft[e];
                var i = r.length;
                if (t.substr(0, i) == r) return t.substr(i);
              }
            }
            return t;
          }
          var vt = {};
          vt.lang = {
            extend: function extend(t, e, r) {
              if (!e || !t) throw new Error("YAHOO.lang.extend failed, please check that " + "all dependencies are included.");
              var i = function i() {};
              i.prototype = e.prototype;
              t.prototype = new i();
              t.prototype.constructor = t;
              t.superclass = e.prototype;
              if (e.prototype.constructor == Object.prototype.constructor) e.prototype.constructor = e;
              if (r) {
                var n;
                for (n in r) {
                  t.prototype[n] = r[n];
                }
                var s = function s() {},
                  a = ["toString", "valueOf"];
                try {
                  if (/MSIE/.test(navigator.userAgent)) s = function s(t, e) {
                    for (n = 0; n < a.length; n += 1) {
                      var r = a[n],
                        i = e[r];
                      if ("function" === typeof i && i != Object.prototype[r]) t[r] = i;
                    }
                  };
                } catch (t) {}
                s(t.prototype, r);
              }
            }
          };
          var pt = {};
          if ("undefined" == typeof pt.asn1 || !pt.asn1) pt.asn1 = {};
          pt.asn1.ASN1Util = new function () {
            this.integerToByteHex = function (t) {
              var e = t.toString(16);
              if (e.length % 2 == 1) e = "0" + e;
              return e;
            };
            this.bigIntToMinTwosComplementsHex = function (t) {
              var e = t.toString(16);
              if ("-" != e.substr(0, 1)) {
                if (e.length % 2 == 1) e = "0" + e;else if (!e.match(/^[0-7]/)) e = "00" + e;
              } else {
                var r = e.substr(1);
                var i = r.length;
                if (i % 2 == 1) i += 1;else if (!e.match(/^[0-7]/)) i += 2;
                var n = "";
                for (var s = 0; s < i; s++) {
                  n += "f";
                }
                var a = new C(n, 16);
                var o = a.xor(t).add(C.ONE);
                e = o.toString(16).replace(/^-/, "");
              }
              return e;
            };
            this.getPEMStringFromHex = function (t, e) {
              return hextopem(t, e);
            };
            this.newObject = function (t) {
              var e = pt,
                r = e.asn1,
                i = r.DERBoolean,
                n = r.DERInteger,
                s = r.DERBitString,
                a = r.DEROctetString,
                o = r.DERNull,
                u = r.DERObjectIdentifier,
                c = r.DEREnumerated,
                l = r.DERUTF8String,
                f = r.DERNumericString,
                h = r.DERPrintableString,
                d = r.DERTeletexString,
                v = r.DERIA5String,
                p = r.DERUTCTime,
                g = r.DERGeneralizedTime,
                y = r.DERSequence,
                m = r.DERSet,
                w = r.DERTaggedObject,
                _ = r.ASN1Util.newObject;
              var S = Object.keys(t);
              if (1 != S.length) throw "key of param shall be only one.";
              var b = S[0];
              if (-1 == ":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" + b + ":")) throw "undefined key: " + b;
              if ("bool" == b) return new i(t[b]);
              if ("int" == b) return new n(t[b]);
              if ("bitstr" == b) return new s(t[b]);
              if ("octstr" == b) return new a(t[b]);
              if ("null" == b) return new o(t[b]);
              if ("oid" == b) return new u(t[b]);
              if ("enum" == b) return new c(t[b]);
              if ("utf8str" == b) return new l(t[b]);
              if ("numstr" == b) return new f(t[b]);
              if ("prnstr" == b) return new h(t[b]);
              if ("telstr" == b) return new d(t[b]);
              if ("ia5str" == b) return new v(t[b]);
              if ("utctime" == b) return new p(t[b]);
              if ("gentime" == b) return new g(t[b]);
              if ("seq" == b) {
                var E = t[b];
                var D = [];
                for (var T = 0; T < E.length; T++) {
                  var M = _(E[T]);
                  D.push(M);
                }
                return new y({
                  array: D
                });
              }
              if ("set" == b) {
                var E = t[b];
                var D = [];
                for (var T = 0; T < E.length; T++) {
                  var M = _(E[T]);
                  D.push(M);
                }
                return new m({
                  array: D
                });
              }
              if ("tag" == b) {
                var I = t[b];
                if ("[object Array]" === Object.prototype.toString.call(I) && 3 == I.length) {
                  var A = _(I[2]);
                  return new w({
                    tag: I[0],
                    explicit: I[1],
                    obj: A
                  });
                } else {
                  var x = {};
                  if (void 0 !== I.explicit) x.explicit = I.explicit;
                  if (void 0 !== I.tag) x.tag = I.tag;
                  if (void 0 === I.obj) throw "obj shall be specified for 'tag'.";
                  x.obj = _(I.obj);
                  return new w(x);
                }
              }
            };
            this.jsonToASN1HEX = function (t) {
              var e = this.newObject(t);
              return e.getEncodedHex();
            };
          }();
          pt.asn1.ASN1Util.oidHexToInt = function (t) {
            var e = "";
            var r = parseInt(t.substr(0, 2), 16);
            var i = Math.floor(r / 40);
            var n = r % 40;
            var e = i + "." + n;
            var s = "";
            for (var a = 2; a < t.length; a += 2) {
              var o = parseInt(t.substr(a, 2), 16);
              var u = ("00000000" + o.toString(2)).slice(-8);
              s += u.substr(1, 7);
              if ("0" == u.substr(0, 1)) {
                var c = new C(s, 2);
                e = e + "." + c.toString(10);
                s = "";
              }
            }
            return e;
          };
          pt.asn1.ASN1Util.oidIntToHex = function (t) {
            var e = function e(t) {
              var e = t.toString(16);
              if (1 == e.length) e = "0" + e;
              return e;
            };
            var r = function r(t) {
              var r = "";
              var i = new C(t, 10);
              var n = i.toString(2);
              var s = 7 - n.length % 7;
              if (7 == s) s = 0;
              var a = "";
              for (var o = 0; o < s; o++) {
                a += "0";
              }
              n = a + n;
              for (var o = 0; o < n.length - 1; o += 7) {
                var u = n.substr(o, 7);
                if (o != n.length - 7) u = "1" + u;
                r += e(parseInt(u, 2));
              }
              return r;
            };
            if (!t.match(/^[0-9.]+$/)) throw "malformed oid string: " + t;
            var i = "";
            var n = t.split(".");
            var s = 40 * parseInt(n[0]) + parseInt(n[1]);
            i += e(s);
            n.splice(0, 2);
            for (var a = 0; a < n.length; a++) {
              i += r(n[a]);
            }
            return i;
          };
          pt.asn1.ASN1Object = function () {
            var n = "";
            this.getLengthHexFromValue = function () {
              if ("undefined" == typeof this.hV || null == this.hV) throw "this.hV is null or undefined.";
              if (this.hV.length % 2 == 1) throw "value hex must be even length: n=" + n.length + ",v=" + this.hV;
              var t = this.hV.length / 2;
              var e = t.toString(16);
              if (e.length % 2 == 1) e = "0" + e;
              if (t < 128) return e;else {
                var r = e.length / 2;
                if (r > 15) throw "ASN.1 length too long to represent by 8x: n = " + t.toString(16);
                var i = 128 + r;
                return i.toString(16) + e;
              }
            };
            this.getEncodedHex = function () {
              if (null == this.hTLV || this.isModified) {
                this.hV = this.getFreshValueHex();
                this.hL = this.getLengthHexFromValue();
                this.hTLV = this.hT + this.hL + this.hV;
                this.isModified = false;
              }
              return this.hTLV;
            };
            this.getValueHex = function () {
              this.getEncodedHex();
              return this.hV;
            };
            this.getFreshValueHex = function () {
              return "";
            };
          };
          pt.asn1.DERAbstractString = function (t) {
            pt.asn1.DERAbstractString.superclass.constructor.call(this);
            this.getString = function () {
              return this.s;
            };
            this.setString = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.s = t;
              this.hV = stohex(this.s);
            };
            this.setStringHex = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.s = null;
              this.hV = t;
            };
            this.getFreshValueHex = function () {
              return this.hV;
            };
            if ("undefined" != typeof t) if ("string" == typeof t) this.setString(t);else if ("undefined" != typeof t["str"]) this.setString(t["str"]);else if ("undefined" != typeof t["hex"]) this.setStringHex(t["hex"]);
          };
          vt.lang.extend(pt.asn1.DERAbstractString, pt.asn1.ASN1Object);
          pt.asn1.DERAbstractTime = function (t) {
            pt.asn1.DERAbstractTime.superclass.constructor.call(this);
            this.localDateToUTC = function (t) {
              utc = t.getTime() + 6e4 * t.getTimezoneOffset();
              var e = new Date(utc);
              return e;
            };
            this.formatDate = function (t, e, r) {
              var i = this.zeroPadding;
              var n = this.localDateToUTC(t);
              var s = String(n.getFullYear());
              if ("utc" == e) s = s.substr(2, 2);
              var a = i(String(n.getMonth() + 1), 2);
              var o = i(String(n.getDate()), 2);
              var u = i(String(n.getHours()), 2);
              var c = i(String(n.getMinutes()), 2);
              var l = i(String(n.getSeconds()), 2);
              var f = s + a + o + u + c + l;
              if (true === r) {
                var h = n.getMilliseconds();
                if (0 != h) {
                  var d = i(String(h), 3);
                  d = d.replace(/[0]+$/, "");
                  f = f + "." + d;
                }
              }
              return f + "Z";
            };
            this.zeroPadding = function (t, e) {
              if (t.length >= e) return t;
              return new Array(e - t.length + 1).join("0") + t;
            };
            this.getString = function () {
              return this.s;
            };
            this.setString = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.s = t;
              this.hV = stohex(t);
            };
            this.setByDateValue = function (t, e, r, i, n, s) {
              var a = new Date(Date.UTC(t, e - 1, r, i, n, s, 0));
              this.setByDate(a);
            };
            this.getFreshValueHex = function () {
              return this.hV;
            };
          };
          vt.lang.extend(pt.asn1.DERAbstractTime, pt.asn1.ASN1Object);
          pt.asn1.DERAbstractStructured = function (t) {
            pt.asn1.DERAbstractString.superclass.constructor.call(this);
            this.setByASN1ObjectArray = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.asn1Array = t;
            };
            this.appendASN1Object = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.asn1Array.push(t);
            };
            this.asn1Array = new Array();
            if ("undefined" != typeof t) if ("undefined" != typeof t["array"]) this.asn1Array = t["array"];
          };
          vt.lang.extend(pt.asn1.DERAbstractStructured, pt.asn1.ASN1Object);
          pt.asn1.DERBoolean = function () {
            pt.asn1.DERBoolean.superclass.constructor.call(this);
            this.hT = "01";
            this.hTLV = "0101ff";
          };
          vt.lang.extend(pt.asn1.DERBoolean, pt.asn1.ASN1Object);
          pt.asn1.DERInteger = function (t) {
            pt.asn1.DERInteger.superclass.constructor.call(this);
            this.hT = "02";
            this.setByBigInteger = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.hV = pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);
            };
            this.setByInteger = function (t) {
              var e = new C(String(t), 10);
              this.setByBigInteger(e);
            };
            this.setValueHex = function (t) {
              this.hV = t;
            };
            this.getFreshValueHex = function () {
              return this.hV;
            };
            if ("undefined" != typeof t) if ("undefined" != typeof t["bigint"]) this.setByBigInteger(t["bigint"]);else if ("undefined" != typeof t["int"]) this.setByInteger(t["int"]);else if ("number" == typeof t) this.setByInteger(t);else if ("undefined" != typeof t["hex"]) this.setValueHex(t["hex"]);
          };
          vt.lang.extend(pt.asn1.DERInteger, pt.asn1.ASN1Object);
          pt.asn1.DERBitString = function (t) {
            if (void 0 !== t && "undefined" !== typeof t.obj) {
              var e = pt.asn1.ASN1Util.newObject(t.obj);
              t.hex = "00" + e.getEncodedHex();
            }
            pt.asn1.DERBitString.superclass.constructor.call(this);
            this.hT = "03";
            this.setHexValueIncludingUnusedBits = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.hV = t;
            };
            this.setUnusedBitsAndHexValue = function (t, e) {
              if (t < 0 || 7 < t) throw "unused bits shall be from 0 to 7: u = " + t;
              var r = "0" + t;
              this.hTLV = null;
              this.isModified = true;
              this.hV = r + e;
            };
            this.setByBinaryString = function (t) {
              t = t.replace(/0+$/, "");
              var e = 8 - t.length % 8;
              if (8 == e) e = 0;
              for (var r = 0; r <= e; r++) {
                t += "0";
              }
              var i = "";
              for (var r = 0; r < t.length - 1; r += 8) {
                var n = t.substr(r, 8);
                var s = parseInt(n, 2).toString(16);
                if (1 == s.length) s = "0" + s;
                i += s;
              }
              this.hTLV = null;
              this.isModified = true;
              this.hV = "0" + e + i;
            };
            this.setByBooleanArray = function (t) {
              var e = "";
              for (var r = 0; r < t.length; r++) {
                if (true == t[r]) e += "1";else e += "0";
              }
              this.setByBinaryString(e);
            };
            this.newFalseArray = function (t) {
              var e = new Array(t);
              for (var r = 0; r < t; r++) {
                e[r] = false;
              }
              return e;
            };
            this.getFreshValueHex = function () {
              return this.hV;
            };
            if ("undefined" != typeof t) if ("string" == typeof t && t.toLowerCase().match(/^[0-9a-f]+$/)) this.setHexValueIncludingUnusedBits(t);else if ("undefined" != typeof t["hex"]) this.setHexValueIncludingUnusedBits(t["hex"]);else if ("undefined" != typeof t["bin"]) this.setByBinaryString(t["bin"]);else if ("undefined" != typeof t["array"]) this.setByBooleanArray(t["array"]);
          };
          vt.lang.extend(pt.asn1.DERBitString, pt.asn1.ASN1Object);
          pt.asn1.DEROctetString = function (t) {
            if (void 0 !== t && "undefined" !== typeof t.obj) {
              var e = pt.asn1.ASN1Util.newObject(t.obj);
              t.hex = e.getEncodedHex();
            }
            pt.asn1.DEROctetString.superclass.constructor.call(this, t);
            this.hT = "04";
          };
          vt.lang.extend(pt.asn1.DEROctetString, pt.asn1.DERAbstractString);
          pt.asn1.DERNull = function () {
            pt.asn1.DERNull.superclass.constructor.call(this);
            this.hT = "05";
            this.hTLV = "0500";
          };
          vt.lang.extend(pt.asn1.DERNull, pt.asn1.ASN1Object);
          pt.asn1.DERObjectIdentifier = function (t) {
            var e = function e(t) {
              var e = t.toString(16);
              if (1 == e.length) e = "0" + e;
              return e;
            };
            var r = function r(t) {
              var r = "";
              var i = new C(t, 10);
              var n = i.toString(2);
              var s = 7 - n.length % 7;
              if (7 == s) s = 0;
              var a = "";
              for (var o = 0; o < s; o++) {
                a += "0";
              }
              n = a + n;
              for (var o = 0; o < n.length - 1; o += 7) {
                var u = n.substr(o, 7);
                if (o != n.length - 7) u = "1" + u;
                r += e(parseInt(u, 2));
              }
              return r;
            };
            pt.asn1.DERObjectIdentifier.superclass.constructor.call(this);
            this.hT = "06";
            this.setValueHex = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.s = null;
              this.hV = t;
            };
            this.setValueOidString = function (t) {
              if (!t.match(/^[0-9.]+$/)) throw "malformed oid string: " + t;
              var i = "";
              var n = t.split(".");
              var s = 40 * parseInt(n[0]) + parseInt(n[1]);
              i += e(s);
              n.splice(0, 2);
              for (var a = 0; a < n.length; a++) {
                i += r(n[a]);
              }
              this.hTLV = null;
              this.isModified = true;
              this.s = null;
              this.hV = i;
            };
            this.setValueName = function (t) {
              var e = pt.asn1.x509.OID.name2oid(t);
              if ("" !== e) this.setValueOidString(e);else throw "DERObjectIdentifier oidName undefined: " + t;
            };
            this.getFreshValueHex = function () {
              return this.hV;
            };
            if (void 0 !== t) if ("string" === typeof t) {
              if (t.match(/^[0-2].[0-9.]+$/)) this.setValueOidString(t);else this.setValueName(t);
            } else if (void 0 !== t.oid) this.setValueOidString(t.oid);else if (void 0 !== t.hex) this.setValueHex(t.hex);else if (void 0 !== t.name) this.setValueName(t.name);
          };
          vt.lang.extend(pt.asn1.DERObjectIdentifier, pt.asn1.ASN1Object);
          pt.asn1.DEREnumerated = function (t) {
            pt.asn1.DEREnumerated.superclass.constructor.call(this);
            this.hT = "0a";
            this.setByBigInteger = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.hV = pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);
            };
            this.setByInteger = function (t) {
              var e = new C(String(t), 10);
              this.setByBigInteger(e);
            };
            this.setValueHex = function (t) {
              this.hV = t;
            };
            this.getFreshValueHex = function () {
              return this.hV;
            };
            if ("undefined" != typeof t) if ("undefined" != typeof t["int"]) this.setByInteger(t["int"]);else if ("number" == typeof t) this.setByInteger(t);else if ("undefined" != typeof t["hex"]) this.setValueHex(t["hex"]);
          };
          vt.lang.extend(pt.asn1.DEREnumerated, pt.asn1.ASN1Object);
          pt.asn1.DERUTF8String = function (t) {
            pt.asn1.DERUTF8String.superclass.constructor.call(this, t);
            this.hT = "0c";
          };
          vt.lang.extend(pt.asn1.DERUTF8String, pt.asn1.DERAbstractString);
          pt.asn1.DERNumericString = function (t) {
            pt.asn1.DERNumericString.superclass.constructor.call(this, t);
            this.hT = "12";
          };
          vt.lang.extend(pt.asn1.DERNumericString, pt.asn1.DERAbstractString);
          pt.asn1.DERPrintableString = function (t) {
            pt.asn1.DERPrintableString.superclass.constructor.call(this, t);
            this.hT = "13";
          };
          vt.lang.extend(pt.asn1.DERPrintableString, pt.asn1.DERAbstractString);
          pt.asn1.DERTeletexString = function (t) {
            pt.asn1.DERTeletexString.superclass.constructor.call(this, t);
            this.hT = "14";
          };
          vt.lang.extend(pt.asn1.DERTeletexString, pt.asn1.DERAbstractString);
          pt.asn1.DERIA5String = function (t) {
            pt.asn1.DERIA5String.superclass.constructor.call(this, t);
            this.hT = "16";
          };
          vt.lang.extend(pt.asn1.DERIA5String, pt.asn1.DERAbstractString);
          pt.asn1.DERUTCTime = function (t) {
            pt.asn1.DERUTCTime.superclass.constructor.call(this, t);
            this.hT = "17";
            this.setByDate = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.date = t;
              this.s = this.formatDate(this.date, "utc");
              this.hV = stohex(this.s);
            };
            this.getFreshValueHex = function () {
              if ("undefined" == typeof this.date && "undefined" == typeof this.s) {
                this.date = new Date();
                this.s = this.formatDate(this.date, "utc");
                this.hV = stohex(this.s);
              }
              return this.hV;
            };
            if (void 0 !== t) if (void 0 !== t.str) this.setString(t.str);else if ("string" == typeof t && t.match(/^[0-9]{12}Z$/)) this.setString(t);else if (void 0 !== t.hex) this.setStringHex(t.hex);else if (void 0 !== t.date) this.setByDate(t.date);
          };
          vt.lang.extend(pt.asn1.DERUTCTime, pt.asn1.DERAbstractTime);
          pt.asn1.DERGeneralizedTime = function (t) {
            pt.asn1.DERGeneralizedTime.superclass.constructor.call(this, t);
            this.hT = "18";
            this.withMillis = false;
            this.setByDate = function (t) {
              this.hTLV = null;
              this.isModified = true;
              this.date = t;
              this.s = this.formatDate(this.date, "gen", this.withMillis);
              this.hV = stohex(this.s);
            };
            this.getFreshValueHex = function () {
              if (void 0 === this.date && void 0 === this.s) {
                this.date = new Date();
                this.s = this.formatDate(this.date, "gen", this.withMillis);
                this.hV = stohex(this.s);
              }
              return this.hV;
            };
            if (void 0 !== t) {
              if (void 0 !== t.str) this.setString(t.str);else if ("string" == typeof t && t.match(/^[0-9]{14}Z$/)) this.setString(t);else if (void 0 !== t.hex) this.setStringHex(t.hex);else if (void 0 !== t.date) this.setByDate(t.date);
              if (true === t.millis) this.withMillis = true;
            }
          };
          vt.lang.extend(pt.asn1.DERGeneralizedTime, pt.asn1.DERAbstractTime);
          pt.asn1.DERSequence = function (t) {
            pt.asn1.DERSequence.superclass.constructor.call(this, t);
            this.hT = "30";
            this.getFreshValueHex = function () {
              var t = "";
              for (var e = 0; e < this.asn1Array.length; e++) {
                var r = this.asn1Array[e];
                t += r.getEncodedHex();
              }
              this.hV = t;
              return this.hV;
            };
          };
          vt.lang.extend(pt.asn1.DERSequence, pt.asn1.DERAbstractStructured);
          pt.asn1.DERSet = function (t) {
            pt.asn1.DERSet.superclass.constructor.call(this, t);
            this.hT = "31";
            this.sortFlag = true;
            this.getFreshValueHex = function () {
              var t = new Array();
              for (var e = 0; e < this.asn1Array.length; e++) {
                var r = this.asn1Array[e];
                t.push(r.getEncodedHex());
              }
              if (true == this.sortFlag) t.sort();
              this.hV = t.join("");
              return this.hV;
            };
            if ("undefined" != typeof t) if ("undefined" != typeof t.sortflag && false == t.sortflag) this.sortFlag = false;
          };
          vt.lang.extend(pt.asn1.DERSet, pt.asn1.DERAbstractStructured);
          pt.asn1.DERTaggedObject = function (t) {
            pt.asn1.DERTaggedObject.superclass.constructor.call(this);
            this.hT = "a0";
            this.hV = "";
            this.isExplicit = true;
            this.asn1Object = null;
            this.setASN1Object = function (t, e, r) {
              this.hT = e;
              this.isExplicit = t;
              this.asn1Object = r;
              if (this.isExplicit) {
                this.hV = this.asn1Object.getEncodedHex();
                this.hTLV = null;
                this.isModified = true;
              } else {
                this.hV = null;
                this.hTLV = r.getEncodedHex();
                this.hTLV = this.hTLV.replace(/^../, e);
                this.isModified = false;
              }
            };
            this.getFreshValueHex = function () {
              return this.hV;
            };
            if ("undefined" != typeof t) {
              if ("undefined" != typeof t["tag"]) this.hT = t["tag"];
              if ("undefined" != typeof t["explicit"]) this.isExplicit = t["explicit"];
              if ("undefined" != typeof t["obj"]) {
                this.asn1Object = t["obj"];
                this.setASN1Object(this.isExplicit, this.hT, this.asn1Object);
              }
            }
          };
          vt.lang.extend(pt.asn1.DERTaggedObject, pt.asn1.ASN1Object);
          var gt = function () {
            var _t5 = function t(e, r) {
              _t5 = Object.setPrototypeOf || {
                __proto__: []
              } instanceof Array && function (t, e) {
                t.__proto__ = e;
              } || function (t, e) {
                for (var r in e) {
                  if (Object.prototype.hasOwnProperty.call(e, r)) t[r] = e[r];
                }
              };
              return _t5(e, r);
            };
            return function (e, r) {
              if ("function" !== typeof r && null !== r) throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
              _t5(e, r);
              function i() {
                this.constructor = e;
              }
              e.prototype = null === r ? Object.create(r) : (i.prototype = r.prototype, new i());
            };
          }();
          var yt = function (t) {
            gt(e, t);
            function e(r) {
              var i = t.call(this) || this;
              if (r) if ("string" === typeof r) i.parseKey(r);else if (e.hasPrivateKeyProperty(r) || e.hasPublicKeyProperty(r)) i.parsePropertiesFrom(r);
              return i;
            }
            e.prototype.parseKey = function (t) {
              try {
                var e = 0;
                var r = 0;
                var i = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/;
                var n = i.test(t) ? y.decode(t) : w.unarmor(t);
                var s = I.decode(n);
                if (3 === s.sub.length) s = s.sub[2].sub[0];
                if (9 === s.sub.length) {
                  e = s.sub[1].getHexStringValue();
                  this.n = U(e, 16);
                  r = s.sub[2].getHexStringValue();
                  this.e = parseInt(r, 16);
                  var a = s.sub[3].getHexStringValue();
                  this.d = U(a, 16);
                  var o = s.sub[4].getHexStringValue();
                  this.p = U(o, 16);
                  var u = s.sub[5].getHexStringValue();
                  this.q = U(u, 16);
                  var c = s.sub[6].getHexStringValue();
                  this.dmp1 = U(c, 16);
                  var l = s.sub[7].getHexStringValue();
                  this.dmq1 = U(l, 16);
                  var f = s.sub[8].getHexStringValue();
                  this.coeff = U(f, 16);
                } else if (2 === s.sub.length) {
                  var h = s.sub[1];
                  var d = h.sub[0];
                  e = d.sub[0].getHexStringValue();
                  this.n = U(e, 16);
                  r = d.sub[1].getHexStringValue();
                  this.e = parseInt(r, 16);
                } else return false;
                return true;
              } catch (t) {
                return false;
              }
            };
            e.prototype.getPrivateBaseKey = function () {
              var t = {
                array: [new pt.asn1.DERInteger({
                  int: 0
                }), new pt.asn1.DERInteger({
                  bigint: this.n
                }), new pt.asn1.DERInteger({
                  int: this.e
                }), new pt.asn1.DERInteger({
                  bigint: this.d
                }), new pt.asn1.DERInteger({
                  bigint: this.p
                }), new pt.asn1.DERInteger({
                  bigint: this.q
                }), new pt.asn1.DERInteger({
                  bigint: this.dmp1
                }), new pt.asn1.DERInteger({
                  bigint: this.dmq1
                }), new pt.asn1.DERInteger({
                  bigint: this.coeff
                })]
              };
              var e = new pt.asn1.DERSequence(t);
              return e.getEncodedHex();
            };
            e.prototype.getPrivateBaseKeyB64 = function () {
              return d(this.getPrivateBaseKey());
            };
            e.prototype.getPublicBaseKey = function () {
              var t = new pt.asn1.DERSequence({
                array: [new pt.asn1.DERObjectIdentifier({
                  oid: "1.2.840.113549.1.1.1"
                }), new pt.asn1.DERNull()]
              });
              var e = new pt.asn1.DERSequence({
                array: [new pt.asn1.DERInteger({
                  bigint: this.n
                }), new pt.asn1.DERInteger({
                  int: this.e
                })]
              });
              var r = new pt.asn1.DERBitString({
                hex: "00" + e.getEncodedHex()
              });
              var i = new pt.asn1.DERSequence({
                array: [t, r]
              });
              return i.getEncodedHex();
            };
            e.prototype.getPublicBaseKeyB64 = function () {
              return d(this.getPublicBaseKey());
            };
            e.wordwrap = function (t, e) {
              e = e || 64;
              if (!t) return t;
              var r = "(.{1," + e + "})( +|$\n?)|(.{1," + e + "})";
              return t.match(RegExp(r, "g")).join("\n");
            };
            e.prototype.getPrivateKey = function () {
              var t = "-----BEGIN RSA PRIVATE KEY-----\n";
              t += e.wordwrap(this.getPrivateBaseKeyB64()) + "\n";
              t += "-----END RSA PRIVATE KEY-----";
              return t;
            };
            e.prototype.getPublicKey = function () {
              var t = "-----BEGIN PUBLIC KEY-----\n";
              t += e.wordwrap(this.getPublicBaseKeyB64()) + "\n";
              t += "-----END PUBLIC KEY-----";
              return t;
            };
            e.hasPublicKeyProperty = function (t) {
              t = t || {};
              return t.hasOwnProperty("n") && t.hasOwnProperty("e");
            };
            e.hasPrivateKeyProperty = function (t) {
              t = t || {};
              return t.hasOwnProperty("n") && t.hasOwnProperty("e") && t.hasOwnProperty("d") && t.hasOwnProperty("p") && t.hasOwnProperty("q") && t.hasOwnProperty("dmp1") && t.hasOwnProperty("dmq1") && t.hasOwnProperty("coeff");
            };
            e.prototype.parsePropertiesFrom = function (t) {
              this.n = t.n;
              this.e = t.e;
              if (t.hasOwnProperty("d")) {
                this.d = t.d;
                this.p = t.p;
                this.q = t.q;
                this.dmp1 = t.dmp1;
                this.dmq1 = t.dmq1;
                this.coeff = t.coeff;
              }
            };
            return e;
          }(ut);
          var mt = {
            i: "3.2.1"
          };
          var wt = function () {
            function t(t) {
              if (void 0 === t) t = {};
              t = t || {};
              this.default_key_size = t.default_key_size ? parseInt(t.default_key_size, 10) : 1024;
              this.default_public_exponent = t.default_public_exponent || "010001";
              this.log = t.log || false;
              this.key = null;
            }
            t.prototype.setKey = function (t) {
              if (this.log && this.key) console.warn("A key was already set, overriding existing.");
              this.key = new yt(t);
            };
            t.prototype.setPrivateKey = function (t) {
              this.setKey(t);
            };
            t.prototype.setPublicKey = function (t) {
              this.setKey(t);
            };
            t.prototype.decrypt = function (t) {
              try {
                return this.getKey().decrypt(t);
              } catch (t) {
                return false;
              }
            };
            t.prototype.encrypt = function (t) {
              try {
                return this.getKey().encrypt(t);
              } catch (t) {
                return false;
              }
            };
            t.prototype.encryptLong = function (t) {
              try {
                return d(this.getKey().encryptLong(t));
              } catch (t) {
                return false;
              }
            };
            t.prototype.decryptLong = function (t) {
              try {
                return this.getKey().decryptLong(t);
              } catch (t) {
                return false;
              }
            };
            t.prototype.sign = function (t, e, r) {
              try {
                return d(this.getKey().sign(t, e, r));
              } catch (t) {
                return false;
              }
            };
            t.prototype.verify = function (t, e, r) {
              try {
                return this.getKey().verify(t, v(e), r);
              } catch (t) {
                return false;
              }
            };
            t.prototype.getKey = function (t) {
              if (!this.key) {
                this.key = new yt();
                if (t && "[object Function]" === {}.toString.call(t)) {
                  this.key.generateAsync(this.default_key_size, this.default_public_exponent, t);
                  return;
                }
                this.key.generate(this.default_key_size, this.default_public_exponent);
              }
              return this.key;
            };
            t.prototype.getPrivateKey = function () {
              return this.getKey().getPrivateKey();
            };
            t.prototype.getPrivateKeyB64 = function () {
              return this.getKey().getPrivateBaseKeyB64();
            };
            t.prototype.getPublicKey = function () {
              return this.getKey().getPublicKey();
            };
            t.prototype.getPublicKeyB64 = function () {
              return this.getKey().getPublicBaseKeyB64();
            };
            t.version = mt.i;
            return t;
          }();
          var _t = wt;
        },
        2480: function _() {}
      };
      var e = {};
      function r(i) {
        var n = e[i];
        if (void 0 !== n) return n.exports;
        var s = e[i] = {
          id: i,
          loaded: false,
          exports: {}
        };
        t[i].call(s.exports, s, s.exports, r);
        s.loaded = true;
        return s.exports;
      }
      (function () {
        r.d = function (t, e) {
          for (var i in e) {
            if (r.o(e, i) && !r.o(t, i)) Object.defineProperty(t, i, {
              enumerable: true,
              get: e[i]
            });
          }
        };
      })();
      (function () {
        r.g = function () {
          if ("object" === (typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis))) return globalThis;
          try {
            return this || new Function("return this")();
          } catch (t) {
            if ("object" === (typeof window === "undefined" ? "undefined" : _typeof(window))) return window;
          }
        }();
      })();
      (function () {
        r.o = function (t, e) {
          return Object.prototype.hasOwnProperty.call(t, e);
        };
      })();
      (function () {
        r.r = function (t) {
          if ("undefined" !== typeof Symbol && Symbol.toStringTag) Object.defineProperty(t, Symbol.toStringTag, {
            value: "Module"
          });
          Object.defineProperty(t, "__esModule", {
            value: true
          });
        };
      })();
      (function () {
        r.nmd = function (t) {
          t.paths = [];
          if (!t.children) t.children = [];
          return t;
        };
      })();
      var i = r(9021);
      return i;
    }();
  });
})(gtpushMin);
var GtPush = /*@__PURE__*/getDefaultExportFromCjs(gtpushMinExports);
function initPushNotification() {
  // 仅 App 端
  if (typeof plus !== 'undefined' && plus.push) {
    plus.globalEvent.addEventListener('newPath', function (_ref) {
      var path = _ref.path;
      if (!path) {
        return;
      }
      // 指定的页面为当前页面
      var pages = getCurrentPages();
      var currentPage = pages[pages.length - 1];
      if (currentPage && currentPage.$page && currentPage.$page.fullPath === path) {
        return;
      }
      // 简单起见，先尝试 navigateTo 跳转，失败后，再尝试 tabBar 跳转
      uni.navigateTo({
        url: path,
        fail: function fail(res) {
          if (res.errMsg.indexOf('tabbar') > -1) {
            uni.switchTab({
              url: path,
              fail: function fail(res) {
                console.error(res.errMsg);
              }
            });
          } else {
            console.error(res.errMsg);
          }
        }
      });
    });
  }
}
var channel;
function postPushMessage(data) {
  if (!channel) {
    return;
  }
  channel.postMessage(data);
}
function initBroadcastChannel(gtPush) {
  if (typeof BroadcastChannel === 'undefined') {
    return;
  }
  channel = new BroadcastChannel('uni-push');
  channel.onmessage = function (_ref2) {
    var data = _ref2.data;
    // @ts-expect-error
    uni.invokePushCallback(data);
  };
  // eslint-disable-next-line no-restricted-globals
  document.addEventListener('visibilitychange', function () {
    // eslint-disable-next-line no-restricted-globals
    if (document.visibilityState === 'visible') {
      gtPush.enableSocket(true);
    }
  });
}

// if (process.env.UNI_PUSH_DEBUG) {
//   GtPush.setDebugMode(true)
// }
// @ts-expect-error
uni.invokePushCallback({
  type: 'enabled'
});
var appid = "";
if (!appid) {
  Promise.resolve().then(function () {
    // @ts-expect-error
    uni.invokePushCallback({
      type: 'clientId',
      cid: '',
      errMsg: 'manifest.json->appid is required'
    });
  });
} else {
  if (typeof uni.onAppShow === 'function') {
    uni.onAppShow(function () {
      GtPush.enableSocket(true);
    });
  }
  GtPush.init({
    appid: appid,
    onError: function onError(res) {
      console.error(res.error);
      var data = {
        type: 'clientId',
        cid: '',
        errMsg: res.error
      };
      // @ts-expect-error
      uni.invokePushCallback(data);
    },
    onClientId: function onClientId(res) {
      var data = {
        type: 'clientId',
        cid: res.cid
      };
      // @ts-expect-error
      uni.invokePushCallback(data);
    },
    onlineState: function onlineState(res) {
      var data = {
        type: 'lineState',
        online: res.online
      };
      // @ts-expect-error
      uni.invokePushCallback(data);
    },
    onPushMsg: function onPushMsg(res) {
      var data = {
        type: 'pushMsg',
        message: res.message
      };
      // @ts-expect-error
      uni.invokePushCallback(data);
    }
  });
  // 仅在 jssdk 中监听
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))

/***/ }),
/* 28 */
/*!****************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/get.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var superPropBase = __webpack_require__(/*! ./superPropBase.js */ 29);
function _get() {
  if (typeof Reflect !== "undefined" && Reflect.get) {
    module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  } else {
    module.exports = _get = function _get(target, property, receiver) {
      var base = superPropBase(target, property);
      if (!base) return;
      var desc = Object.getOwnPropertyDescriptor(base, property);
      if (desc.get) {
        return desc.get.call(arguments.length < 3 ? target : receiver);
      }
      return desc.value;
    }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  }
  return _get.apply(this, arguments);
}
module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 29 */
/*!**************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/superPropBase.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 30);
function _superPropBase(object, property) {
  while (!Object.prototype.hasOwnProperty.call(object, property)) {
    object = getPrototypeOf(object);
    if (object === null) break;
  }
  return object;
}
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 30 */
/*!***************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _getPrototypeOf(o) {
  module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
    return o.__proto__ || Object.getPrototypeOf(o);
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  return _getPrototypeOf(o);
}
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 31 */
/*!*********************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
function _inherits(subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function");
  }
  subClass.prototype = Object.create(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      writable: true,
      configurable: true
    }
  });
  Object.defineProperty(subClass, "prototype", {
    writable: false
  });
  if (superClass) setPrototypeOf(subClass, superClass);
}
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 32 */
/*!**************************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 33);
function _possibleConstructorReturn(self, call) {
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
    return call;
  } else if (call !== void 0) {
    throw new TypeError("Derived constructors may only return object or undefined");
  }
  return assertThisInitialized(self);
}
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 33 */
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _assertThisInitialized(self) {
  if (self === void 0) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }
  return self;
}
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 34 */,
/* 35 */,
/* 36 */,
/* 37 */,
/* 38 */,
/* 39 */
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.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 normalizeComponent; });
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent (
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier, /* server only */
  shadowMode, /* vue-cli only */
  components, // fixed by xxxxxx auto components
  renderjs // fixed by xxxxxx renderjs
) {
  // Vue.extend constructor export interop
  var options = typeof scriptExports === 'function'
    ? scriptExports.options
    : scriptExports

  // fixed by xxxxxx auto components
  if (components) {
    if (!options.components) {
      options.components = {}
    }
    var hasOwn = Object.prototype.hasOwnProperty
    for (var name in components) {
      if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
        options.components[name] = components[name]
      }
    }
  }
  // fixed by xxxxxx renderjs
  if (renderjs) {
    (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
      this[renderjs.__module] = this
    });
    (options.mixins || (options.mixins = [])).push(renderjs)
  }

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) { // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functioal component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection (h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing
        ? [].concat(existing, hook)
        : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}


/***/ }),
/* 40 */
/*!***************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/index.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 41));
var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 42));
var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 43));
var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 61));
var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 65));
var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 66));
var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 67));
var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 68));
var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 69));
var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 72));
var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 73));
var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 163));
var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 121));
var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 164));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
// 看到此报错，是因为没有配置vue.config.js的【transpileDependencies】，详见：https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
var pleaseSetTranspileDependencies = {},
  babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;

// 引入全局mixin

var $u = _objectSpread(_objectSpread({
  route: _route.default,
  date: _index.default.timeFormat,
  // 另名date
  colorGradient: _colorGradient.default.colorGradient,
  hexToRgb: _colorGradient.default.hexToRgb,
  rgbToHex: _colorGradient.default.rgbToHex,
  colorToRgba: _colorGradient.default.colorToRgba,
  test: _test.default,
  type: ['primary', 'success', 'error', 'warning', 'info'],
  http: new _luchRequest.default(),
  config: _config.default,
  // uView配置信息相关，比如版本号
  zIndex: _zIndex.default,
  debounce: _debounce.default,
  throttle: _throttle.default,
  mixin: _mixin.default,
  mpMixin: _mpMixin.default,
  props: _props.default
}, _index.default), {}, {
  color: _color.default,
  platform: _platform.default
});

// $u挂载到uni对象上
uni.$u = $u;
var install = function install(Vue) {
  // 时间格式化，同时两个名称，date和timeFormat
  Vue.filter('timeFormat', function (timestamp, format) {
    return uni.$u.timeFormat(timestamp, format);
  });
  Vue.filter('date', function (timestamp, format) {
    return uni.$u.timeFormat(timestamp, format);
  });
  // 将多久以前的方法，注入到全局过滤器
  Vue.filter('timeFrom', function (timestamp, format) {
    return uni.$u.timeFrom(timestamp, format);
  });
  // 同时挂载到uni和Vue.prototype中

  // 只有vue，挂载到Vue.prototype才有意义，因为nvue中全局Vue.prototype和Vue.mixin是无效的
  Vue.prototype.$u = $u;
  Vue.mixin(_mixin.default);
};
var _default = {
  install: install
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 41 */
/*!**************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/mixin/mixin.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  // 定义每个组件都可能需要用到的外部样式以及类名
  props: {
    // 每个组件都有的父组件传递的样式，可以为字符串或者对象形式
    customStyle: {
      type: [Object, String],
      default: function _default() {
        return {};
      }
    },
    customClass: {
      type: String,
      default: ''
    },
    // 跳转的页面路径
    url: {
      type: String,
      default: ''
    },
    // 页面跳转的类型
    linkType: {
      type: String,
      default: 'navigateTo'
    }
  },
  data: function data() {
    return {};
  },
  onLoad: function onLoad() {
    // getRect挂载到$u上，因为这方法需要使用in(this)，所以无法把它独立成一个单独的文件导出
    this.$u.getRect = this.$uGetRect;
  },
  created: function created() {
    // 组件当中，只有created声明周期，为了能在组件使用，故也在created中将方法挂载到$u
    this.$u.getRect = this.$uGetRect;
  },
  computed: {
    // 在2.x版本中，将会把$u挂载到uni对象下，导致在模板中无法使用uni.$u.xxx形式
    // 所以这里通过computed计算属性将其附加到this.$u上，就可以在模板或者js中使用uni.$u.xxx
    // 只在nvue环境通过此方式引入完整的$u，其他平台会出现性能问题，非nvue则按需引入（主要原因是props过大）
    $u: function $u() {
      // 在非nvue端，移除props，http，mixin等对象，避免在小程序setData时数据过大影响性能
      return uni.$u.deepMerge(uni.$u, {
        props: undefined,
        http: undefined,
        mixin: undefined
      });
    },
    /**
     * 生成bem规则类名
     * 由于微信小程序，H5，nvue之间绑定class的差异，无法通过:class="[bem()]"的形式进行同用
     * 故采用如下折中做法，最后返回的是数组（一般平台）或字符串（支付宝和字节跳动平台），类似['a', 'b', 'c']或'a b c'的形式
     * @param {String} name 组件名称
     * @param {Array} fixed 一直会存在的类名
     * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
     * @returns {Array|string}
     */
    bem: function bem() {
      return function (name, fixed, change) {
        var _this = this;
        // 类名前缀
        var prefix = "u-".concat(name, "--");
        var classes = {};
        if (fixed) {
          fixed.map(function (item) {
            // 这里的类名，会一直存在
            classes[prefix + _this[item]] = true;
          });
        }
        if (change) {
          change.map(function (item) {
            // 这里的类名，会根据this[item]的值为true或者false，而进行添加或者移除某一个类
            _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
          });
        }
        return Object.keys(classes);
        // 支付宝，头条小程序无法动态绑定一个数组类名，否则解析出来的结果会带有","，而导致失效
      };
    }
  },

  methods: {
    // 跳转某一个页面
    openPage: function openPage() {
      var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
      var url = this[urlKey];
      if (url) {
        // 执行类似uni.navigateTo的方法
        uni[this.linkType]({
          url: url
        });
      }
    },
    // 查询节点信息
    // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸，为支付宝的bug(2020-07-21)
    // 解决办法为在组件根部再套一个没有任何作用的view元素
    $uGetRect: function $uGetRect(selector, all) {
      var _this2 = this;
      return new Promise(function (resolve) {
        uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
          if (all && Array.isArray(rect) && rect.length) {
            resolve(rect);
          }
          if (!all && rect) {
            resolve(rect);
          }
        }).exec();
      });
    },
    getParentData: function getParentData() {
      var _this3 = this;
      var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
      // 避免在created中去定义parent变量
      if (!this.parent) this.parent = {};
      // 这里的本质原理是，通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
      // 将父组件this中对应的参数，赋值给本组件(u-radio的this)的parentData对象中对应的属性
      // 之所以需要这么做，是因为所有端中，头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
      // 此处并不会自动更新子组件的数据，而是依赖父组件u-radio-group去监听data的变化，手动调用更新子组件的方法去重新获取
      this.parent = uni.$u.$parent.call(this, parentName);
      if (this.parent.children) {
        // 如果父组件的children不存在本组件的实例，才将本实例添加到父组件的children中
        this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
      }
      if (this.parent && this.parentData) {
        // 历遍parentData中的属性，将parent中的同名属性赋值给parentData
        Object.keys(this.parentData).map(function (key) {
          _this3.parentData[key] = _this3.parent[key];
        });
      }
    },
    // 阻止事件冒泡
    preventEvent: function preventEvent(e) {
      e && typeof e.stopPropagation === 'function' && e.stopPropagation();
    },
    // 空操作
    noop: function noop(e) {
      this.preventEvent(e);
    }
  },
  onReachBottom: function onReachBottom() {
    uni.$emit('uOnReachBottom');
  },
  beforeDestroy: function beforeDestroy() {
    var _this4 = this;
    // 判断当前页面是否存在parent和chldren，一般在checkbox和checkbox-group父子联动的场景会有此情况
    // 组件销毁时，移除子组件在父组件children数组中的实例，释放资源，避免数据混乱
    if (this.parent && uni.$u.test.array(this.parent.children)) {
      // 组件销毁时，移除父组件中的children数组中对应的实例
      var childrenList = this.parent.children;
      childrenList.map(function (child, index) {
        // 如果相等，则移除
        if (child === _this4) {
          childrenList.splice(index, 1);
        }
      });
    }
  }
};
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 42 */
/*!****************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/mixin/mpMixin.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  // 将自定义节点设置成虚拟的，更加接近Vue组件的表现，能更好的使用flex属性
  options: {
    virtualHost: true
  }
};
exports.default = _default;

/***/ }),
/* 43 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/index.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 44));
var _default = _Request.default;
exports.default = _default;

/***/ }),
/* 44 */
/*!****************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/core/Request.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 45));
var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 53));
var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 54));
var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 55));
var _utils = __webpack_require__(/*! ../utils */ 48);
var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 56));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Request = /*#__PURE__*/function () {
  /**
  * @param {Object} arg - 全局配置
  * @param {String} arg.baseURL - 全局根路径
  * @param {Object} arg.header - 全局header
  * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  * @param {String} arg.dataType = [json] - 全局默认的dataType
  * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  * @param {Object} arg.custom - 全局默认的自定义参数
  * @param {Number} arg.timeout - 全局默认的超时时间，单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序（2.10.0）、支付宝小程序
  * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持（HBuilderX 2.3.3+）
  * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证（cookies）。默认false。仅H5支持（HBuilderX 2.6.15+）
  * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  */
  function Request() {
    var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    (0, _classCallCheck2.default)(this, Request);
    if (!(0, _utils.isPlainObject)(arg)) {
      arg = {};
      console.warn('设置全局参数必须接收一个Object');
    }
    this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
    this.interceptors = {
      request: new _InterceptorManager.default(),
      response: new _InterceptorManager.default()
    };
  }

  /**
  * @Function
  * @param {Request~setConfigCallback} f - 设置全局默认配置
  */
  (0, _createClass2.default)(Request, [{
    key: "setConfig",
    value: function setConfig(f) {
      this.config = f(this.config);
    }
  }, {
    key: "middleware",
    value: function middleware(config) {
      config = (0, _mergeConfig.default)(this.config, config);
      var chain = [_dispatchRequest.default, undefined];
      var promise = Promise.resolve(config);
      this.interceptors.request.forEach(function (interceptor) {
        chain.unshift(interceptor.fulfilled, interceptor.rejected);
      });
      this.interceptors.response.forEach(function (interceptor) {
        chain.push(interceptor.fulfilled, interceptor.rejected);
      });
      while (chain.length) {
        promise = promise.then(chain.shift(), chain.shift());
      }
      return promise;
    }

    /**
    * @Function
    * @param {Object} config - 请求配置项
    * @prop {String} options.url - 请求路径
    * @prop {Object} options.data - 请求参数
    * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
    * @prop {Object} [options.dataType = config.dataType] - 如果设为 json，会尝试对返回的数据做一次 JSON.parse
    * @prop {Object} [options.header = config.header] - 请求header
    * @prop {Object} [options.method = config.method] - 请求方法
    * @returns {Promise<unknown>}
    */
  }, {
    key: "request",
    value: function request() {
      var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      return this.middleware(config);
    }
  }, {
    key: "get",
    value: function get(url) {
      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      return this.middleware(_objectSpread({
        url: url,
        method: 'GET'
      }, options));
    }
  }, {
    key: "post",
    value: function post(url, data) {
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
      return this.middleware(_objectSpread({
        url: url,
        data: data,
        method: 'POST'
      }, options));
    }
  }, {
    key: "put",
    value: function put(url, data) {
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
      return this.middleware(_objectSpread({
        url: url,
        data: data,
        method: 'PUT'
      }, options));
    }
  }, {
    key: "delete",
    value: function _delete(url, data) {
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
      return this.middleware(_objectSpread({
        url: url,
        data: data,
        method: 'DELETE'
      }, options));
    }
  }, {
    key: "connect",
    value: function connect(url, data) {
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
      return this.middleware(_objectSpread({
        url: url,
        data: data,
        method: 'CONNECT'
      }, options));
    }
  }, {
    key: "head",
    value: function head(url, data) {
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
      return this.middleware(_objectSpread({
        url: url,
        data: data,
        method: 'HEAD'
      }, options));
    }
  }, {
    key: "options",
    value: function options(url, data) {
      var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
      return this.middleware(_objectSpread({
        url: url,
        data: data,
        method: 'OPTIONS'
      }, _options));
    }
  }, {
    key: "trace",
    value: function trace(url, data) {
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
      return this.middleware(_objectSpread({
        url: url,
        data: data,
        method: 'TRACE'
      }, options));
    }
  }, {
    key: "upload",
    value: function upload(url) {
      var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      config.url = url;
      config.method = 'UPLOAD';
      return this.middleware(config);
    }
  }, {
    key: "download",
    value: function download(url) {
      var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      config.url = url;
      config.method = 'DOWNLOAD';
      return this.middleware(config);
    }
  }]);
  return Request;
}();
/**
 * setConfig回调
 * @return {Object} - 返回操作后的config
 * @callback Request~setConfigCallback
 * @param {Object} config - 全局默认config
 */
exports.default = Request;

/***/ }),
/* 45 */
/*!************************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 46));
var _default = function _default(config) {
  return (0, _index.default)(config);
};
exports.default = _default;

/***/ }),
/* 46 */
/*!******************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/adapters/index.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 47));
var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 49));
var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 52));
var _utils = __webpack_require__(/*! ../utils */ 48);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
/**
 * 返回可选值存在的配置
 * @param {Array} keys - 可选值数组
 * @param {Object} config2 - 配置
 * @return {{}} - 存在的配置项
 */
var mergeKeys = function mergeKeys(keys, config2) {
  var config = {};
  keys.forEach(function (prop) {
    if (!(0, _utils.isUndefined)(config2[prop])) {
      config[prop] = config2[prop];
    }
  });
  return config;
};
var _default = function _default(config) {
  return new Promise(function (resolve, reject) {
    var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
    var _config = {
      url: fullPath,
      header: config.header,
      complete: function complete(response) {
        config.fullPath = fullPath;
        response.config = config;
        try {
          // 对可能字符串不是json 的情况容错
          if (typeof response.data === 'string') {
            response.data = JSON.parse(response.data);
          }
          // eslint-disable-next-line no-empty
        } catch (e) {}
        (0, _settle.default)(resolve, reject, response);
      }
    };
    var requestTask;
    if (config.method === 'UPLOAD') {
      delete _config.header['content-type'];
      delete _config.header['Content-Type'];
      var otherConfig = {
        filePath: config.filePath,
        name: config.name
      };
      var optionalKeys = ['formData'];
      requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
    } else if (config.method === 'DOWNLOAD') {
      requestTask = uni.downloadFile(_config);
    } else {
      var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
      requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
    }
    if (config.getTask) {
      config.getTask(requestTask, config);
    }
  });
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 47 */
/*!********************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = buildURL;
var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 48));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function encode(val) {
  return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
}

/**
 * Build a URL by appending params to the end
 *
 * @param {string} url The base of the url (e.g., http://www.google.com)
 * @param {object} [params] The params to be appended
 * @returns {string} The formatted url
 */
function buildURL(url, params) {
  /* eslint no-param-reassign:0 */
  if (!params) {
    return url;
  }
  var serializedParams;
  if (utils.isURLSearchParams(params)) {
    serializedParams = params.toString();
  } else {
    var parts = [];
    utils.forEach(params, function (val, key) {
      if (val === null || typeof val === 'undefined') {
        return;
      }
      if (utils.isArray(val)) {
        key = "".concat(key, "[]");
      } else {
        val = [val];
      }
      utils.forEach(val, function (v) {
        if (utils.isDate(v)) {
          v = v.toISOString();
        } else if (utils.isObject(v)) {
          v = JSON.stringify(v);
        }
        parts.push("".concat(encode(key), "=").concat(encode(v)));
      });
    });
    serializedParams = parts.join('&');
  }
  if (serializedParams) {
    var hashmarkIndex = url.indexOf('#');
    if (hashmarkIndex !== -1) {
      url = url.slice(0, hashmarkIndex);
    }
    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  }
  return url;
}

/***/ }),
/* 48 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/utils.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// utils is a library of generic helper functions non-specific to axios
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.deepMerge = deepMerge;
exports.forEach = forEach;
exports.isArray = isArray;
exports.isBoolean = isBoolean;
exports.isDate = isDate;
exports.isObject = isObject;
exports.isPlainObject = isPlainObject;
exports.isURLSearchParams = isURLSearchParams;
exports.isUndefined = isUndefined;
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
var toString = Object.prototype.toString;

/**
 * Determine if a value is an Array
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an Array, otherwise false
 */
function isArray(val) {
  return toString.call(val) === '[object Array]';
}

/**
 * Determine if a value is an Object
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an Object, otherwise false
 */
function isObject(val) {
  return val !== null && (0, _typeof2.default)(val) === 'object';
}

/**
 * Determine if a value is a Date
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Date, otherwise false
 */
function isDate(val) {
  return toString.call(val) === '[object Date]';
}

/**
 * Determine if a value is a URLSearchParams object
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a URLSearchParams object, otherwise false
 */
function isURLSearchParams(val) {
  return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
}

/**
 * Iterate over an Array or an Object invoking a function for each item.
 *
 * If `obj` is an Array callback will be called passing
 * the value, index, and complete array for each item.
 *
 * If 'obj' is an Object callback will be called passing
 * the value, key, and complete object for each property.
 *
 * @param {Object|Array} obj The object to iterate
 * @param {Function} fn The callback to invoke for each item
 */
function forEach(obj, fn) {
  // Don't bother if no value provided
  if (obj === null || typeof obj === 'undefined') {
    return;
  }

  // Force an array if not already something iterable
  if ((0, _typeof2.default)(obj) !== 'object') {
    /* eslint no-param-reassign:0 */
    obj = [obj];
  }
  if (isArray(obj)) {
    // Iterate over array values
    for (var i = 0, l = obj.length; i < l; i++) {
      fn.call(null, obj[i], i, obj);
    }
  } else {
    // Iterate over object keys
    for (var key in obj) {
      if (Object.prototype.hasOwnProperty.call(obj, key)) {
        fn.call(null, obj[key], key, obj);
      }
    }
  }
}

/**
 * 是否为boolean 值
 * @param val
 * @returns {boolean}
 */
function isBoolean(val) {
  return typeof val === 'boolean';
}

/**
 * 是否为真正的对象{} new Object
 * @param {any} obj - 检测的对象
 * @returns {boolean}
 */
function isPlainObject(obj) {
  return Object.prototype.toString.call(obj) === '[object Object]';
}

/**
 * Function equal to merge with the difference being that no reference
 * to original objects is kept.
 *
 * @see merge
 * @param {Object} obj1 Object to merge
 * @returns {Object} Result of all merge properties
 */
function deepMerge( /* obj1, obj2, obj3, ... */
) {
  var result = {};
  function assignValue(val, key) {
    if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
      result[key] = deepMerge(result[key], val);
    } else if ((0, _typeof2.default)(val) === 'object') {
      result[key] = deepMerge({}, val);
    } else {
      result[key] = val;
    }
  }
  for (var i = 0, l = arguments.length; i < l; i++) {
    forEach(arguments[i], assignValue);
  }
  return result;
}
function isUndefined(val) {
  return typeof val === 'undefined';
}

/***/ }),
/* 49 */
/*!**********************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  \**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = buildFullPath;
var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 50));
var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 51));
/**
 * Creates a new URL by combining the baseURL with the requestedURL,
 * only when the requestedURL is not already an absolute URL.
 * If the requestURL is absolute, this function returns the requestedURL untouched.
 *
 * @param {string} baseURL The base URL
 * @param {string} requestedURL Absolute or relative URL to combine
 * @returns {string} The combined full path
 */
function buildFullPath(baseURL, requestedURL) {
  if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
    return (0, _combineURLs.default)(baseURL, requestedURL);
  }
  return requestedURL;
}

/***/ }),
/* 50 */
/*!*************************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  \*************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * Determines whether the specified URL is absolute
 *
 * @param {string} url The URL to test
 * @returns {boolean} True if the specified URL is absolute, otherwise false
 */
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isAbsoluteURL;
function isAbsoluteURL(url) {
  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  // by any combination of letters, digits, plus, period, or hyphen.
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
}

/***/ }),
/* 51 */
/*!***********************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  \***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * Creates a new URL by combining the specified URLs
 *
 * @param {string} baseURL The base URL
 * @param {string} relativeURL The relative URL
 * @returns {string} The combined URL
 */
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = combineURLs;
function combineURLs(baseURL, relativeURL) {
  return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
}

/***/ }),
/* 52 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/core/settle.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = settle;
/**
 * Resolve or reject a Promise based on response status.
 *
 * @param {Function} resolve A function that resolves the promise.
 * @param {Function} reject A function that rejects the promise.
 * @param {object} response The response.
 */
function settle(resolve, reject, response) {
  var validateStatus = response.config.validateStatus;
  var status = response.statusCode;
  if (status && (!validateStatus || validateStatus(status))) {
    resolve(response);
  } else {
    reject(response);
  }
}

/***/ }),
/* 53 */
/*!***************************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  \***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
function InterceptorManager() {
  this.handlers = [];
}

/**
 * Add a new interceptor to the stack
 *
 * @param {Function} fulfilled The function to handle `then` for a `Promise`
 * @param {Function} rejected The function to handle `reject` for a `Promise`
 *
 * @return {Number} An ID used to remove interceptor later
 */
InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  this.handlers.push({
    fulfilled: fulfilled,
    rejected: rejected
  });
  return this.handlers.length - 1;
};

/**
 * Remove an interceptor from the stack
 *
 * @param {Number} id The ID that was returned by `use`
 */
InterceptorManager.prototype.eject = function eject(id) {
  if (this.handlers[id]) {
    this.handlers[id] = null;
  }
};

/**
 * Iterate over all the registered interceptors
 *
 * This method is particularly useful for skipping over any
 * interceptors that may have become `null` calling `eject`.
 *
 * @param {Function} fn The function to call for each interceptor
 */
InterceptorManager.prototype.forEach = function forEach(fn) {
  this.handlers.forEach(function (h) {
    if (h !== null) {
      fn(h);
    }
  });
};
var _default = InterceptorManager;
exports.default = _default;

/***/ }),
/* 54 */
/*!********************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _utils = __webpack_require__(/*! ../utils */ 48);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
/**
 * 合并局部配置优先的配置，如果局部有该配置项则用局部，如果全局有该配置项则用全局
 * @param {Array} keys - 配置项
 * @param {Object} globalsConfig - 当前的全局配置
 * @param {Object} config2 - 局部配置
 * @return {{}}
 */
var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  var config = {};
  keys.forEach(function (prop) {
    if (!(0, _utils.isUndefined)(config2[prop])) {
      config[prop] = config2[prop];
    } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
      config[prop] = globalsConfig[prop];
    }
  });
  return config;
};
/**
 *
 * @param globalsConfig - 当前实例的全局配置
 * @param config2 - 当前的局部配置
 * @return - 合并后的配置
 */
var _default = function _default(globalsConfig) {
  var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var method = config2.method || globalsConfig.method || 'GET';
  var config = {
    baseURL: globalsConfig.baseURL || '',
    method: method,
    url: config2.url || '',
    params: config2.params || {},
    custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
    header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  };
  var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));

  // eslint-disable-next-line no-empty
  if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
    delete config.header['content-type'];
    delete config.header['Content-Type'];
    var uploadKeys = ['filePath', 'name', 'formData'];
    uploadKeys.forEach(function (prop) {
      if (!(0, _utils.isUndefined)(config2[prop])) {
        config[prop] = config2[prop];
      }
    });
  } else {
    var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
    config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  }
  return config;
};
exports.default = _default;

/***/ }),
/* 55 */
/*!*****************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/core/defaults.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/**
 * 默认的全局配置
 */
var _default = {
  baseURL: '',
  header: {},
  method: 'GET',
  dataType: 'json',
  responseType: 'text',
  custom: {},
  timeout: 60000,
  validateStatus: function validateStatus(status) {
    return status >= 200 && status < 300;
  }
};
exports.default = _default;

/***/ }),
/* 56 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/luch-request/utils/clone.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(Buffer) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
/* eslint-disable */
var clone = function () {
  'use strict';

  function _instanceof(obj, type) {
    return type != null && obj instanceof type;
  }
  var nativeMap;
  try {
    nativeMap = Map;
  } catch (_) {
    // maybe a reference error because no `Map`. Give it a dummy value that no
    // value will ever be an instanceof.
    nativeMap = function nativeMap() {};
  }
  var nativeSet;
  try {
    nativeSet = Set;
  } catch (_) {
    nativeSet = function nativeSet() {};
  }
  var nativePromise;
  try {
    nativePromise = Promise;
  } catch (_) {
    nativePromise = function nativePromise() {};
  }

  /**
   * Clones (copies) an Object using deep copying.
   *
   * This function supports circular references by default, but if you are certain
   * there are no circular references in your object, you can save some CPU time
   * by calling clone(obj, false).
   *
   * Caution: if `circular` is false and `parent` contains circular references,
   * your program may enter an infinite loop and crash.
   *
   * @param `parent` - the object to be cloned
   * @param `circular` - set to true if the object to be cloned may contain
   *    circular references. (optional - true by default)
   * @param `depth` - set to a number if the object is only to be cloned to
   *    a particular depth. (optional - defaults to Infinity)
   * @param `prototype` - sets the prototype to be used when cloning an object.
   *    (optional - defaults to parent prototype).
   * @param `includeNonEnumerable` - set to true if the non-enumerable properties
   *    should be cloned as well. Non-enumerable properties on the prototype
   *    chain will be ignored. (optional - false by default)
   */
  function clone(parent, circular, depth, prototype, includeNonEnumerable) {
    if ((0, _typeof2.default)(circular) === 'object') {
      depth = circular.depth;
      prototype = circular.prototype;
      includeNonEnumerable = circular.includeNonEnumerable;
      circular = circular.circular;
    }
    // maintain two arrays for circular references, where corresponding parents
    // and children have the same index
    var allParents = [];
    var allChildren = [];
    var useBuffer = typeof Buffer != 'undefined';
    if (typeof circular == 'undefined') circular = true;
    if (typeof depth == 'undefined') depth = Infinity;

    // recurse this function so we don't reset allParents and allChildren
    function _clone(parent, depth) {
      // cloning null always returns null
      if (parent === null) return null;
      if (depth === 0) return parent;
      var child;
      var proto;
      if ((0, _typeof2.default)(parent) != 'object') {
        return parent;
      }
      if (_instanceof(parent, nativeMap)) {
        child = new nativeMap();
      } else if (_instanceof(parent, nativeSet)) {
        child = new nativeSet();
      } else if (_instanceof(parent, nativePromise)) {
        child = new nativePromise(function (resolve, reject) {
          parent.then(function (value) {
            resolve(_clone(value, depth - 1));
          }, function (err) {
            reject(_clone(err, depth - 1));
          });
        });
      } else if (clone.__isArray(parent)) {
        child = [];
      } else if (clone.__isRegExp(parent)) {
        child = new RegExp(parent.source, __getRegExpFlags(parent));
        if (parent.lastIndex) child.lastIndex = parent.lastIndex;
      } else if (clone.__isDate(parent)) {
        child = new Date(parent.getTime());
      } else if (useBuffer && Buffer.isBuffer(parent)) {
        if (Buffer.from) {
          // Node.js >= 5.10.0
          child = Buffer.from(parent);
        } else {
          // Older Node.js versions
          child = new Buffer(parent.length);
          parent.copy(child);
        }
        return child;
      } else if (_instanceof(parent, Error)) {
        child = Object.create(parent);
      } else {
        if (typeof prototype == 'undefined') {
          proto = Object.getPrototypeOf(parent);
          child = Object.create(proto);
        } else {
          child = Object.create(prototype);
          proto = prototype;
        }
      }
      if (circular) {
        var index = allParents.indexOf(parent);
        if (index != -1) {
          return allChildren[index];
        }
        allParents.push(parent);
        allChildren.push(child);
      }
      if (_instanceof(parent, nativeMap)) {
        parent.forEach(function (value, key) {
          var keyChild = _clone(key, depth - 1);
          var valueChild = _clone(value, depth - 1);
          child.set(keyChild, valueChild);
        });
      }
      if (_instanceof(parent, nativeSet)) {
        parent.forEach(function (value) {
          var entryChild = _clone(value, depth - 1);
          child.add(entryChild);
        });
      }
      for (var i in parent) {
        var attrs = Object.getOwnPropertyDescriptor(parent, i);
        if (attrs) {
          child[i] = _clone(parent[i], depth - 1);
        }
        try {
          var objProperty = Object.getOwnPropertyDescriptor(parent, i);
          if (objProperty.set === 'undefined') {
            // no setter defined. Skip cloning this property
            continue;
          }
          child[i] = _clone(parent[i], depth - 1);
        } catch (e) {
          if (e instanceof TypeError) {
            // when in strict mode, TypeError will be thrown if child[i] property only has a getter
            // we can't do anything about this, other than inform the user that this property cannot be set.
            continue;
          } else if (e instanceof ReferenceError) {
            //this may happen in non strict mode
            continue;
          }
        }
      }
      if (Object.getOwnPropertySymbols) {
        var symbols = Object.getOwnPropertySymbols(parent);
        for (var i = 0; i < symbols.length; i++) {
          // Don't need to worry about cloning a symbol because it is a primitive,
          // like a number or string.
          var symbol = symbols[i];
          var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
          if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
            continue;
          }
          child[symbol] = _clone(parent[symbol], depth - 1);
          Object.defineProperty(child, symbol, descriptor);
        }
      }
      if (includeNonEnumerable) {
        var allPropertyNames = Object.getOwnPropertyNames(parent);
        for (var i = 0; i < allPropertyNames.length; i++) {
          var propertyName = allPropertyNames[i];
          var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
          if (descriptor && descriptor.enumerable) {
            continue;
          }
          child[propertyName] = _clone(parent[propertyName], depth - 1);
          Object.defineProperty(child, propertyName, descriptor);
        }
      }
      return child;
    }
    return _clone(parent, depth);
  }

  /**
   * Simple flat clone using prototype, accepts only objects, usefull for property
   * override on FLAT configuration object (no nested props).
   *
   * USE WITH CAUTION! This may not behave as you wish if you do not know how this
   * works.
   */
  clone.clonePrototype = function clonePrototype(parent) {
    if (parent === null) return null;
    var c = function c() {};
    c.prototype = parent;
    return new c();
  };

  // private utility functions

  function __objToStr(o) {
    return Object.prototype.toString.call(o);
  }
  clone.__objToStr = __objToStr;
  function __isDate(o) {
    return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  }
  clone.__isDate = __isDate;
  function __isArray(o) {
    return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  }
  clone.__isArray = __isArray;
  function __isRegExp(o) {
    return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  }
  clone.__isRegExp = __isRegExp;
  function __getRegExpFlags(re) {
    var flags = '';
    if (re.global) flags += 'g';
    if (re.ignoreCase) flags += 'i';
    if (re.multiline) flags += 'm';
    return flags;
  }
  clone.__getRegExpFlags = __getRegExpFlags;
  return clone;
}();
var _default = clone;
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 57).Buffer))

/***/ }),
/* 57 */
/*!**************************************!*\
  !*** ./node_modules/buffer/index.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global) {/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
/* eslint-disable no-proto */



var base64 = __webpack_require__(/*! base64-js */ 58)
var ieee754 = __webpack_require__(/*! ieee754 */ 59)
var isArray = __webpack_require__(/*! isarray */ 60)

exports.Buffer = Buffer
exports.SlowBuffer = SlowBuffer
exports.INSPECT_MAX_BYTES = 50

/**
 * If `Buffer.TYPED_ARRAY_SUPPORT`:
 *   === true    Use Uint8Array implementation (fastest)
 *   === false   Use Object implementation (most compatible, even IE6)
 *
 * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
 * Opera 11.6+, iOS 4.2+.
 *
 * Due to various browser bugs, sometimes the Object implementation will be used even
 * when the browser supports typed arrays.
 *
 * Note:
 *
 *   - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
 *     See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
 *
 *   - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
 *
 *   - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
 *     incorrect length in some situations.

 * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
 * get the Object implementation, which is slower but behaves correctly.
 */
Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  ? global.TYPED_ARRAY_SUPPORT
  : typedArraySupport()

/*
 * Export kMaxLength after typed array support is determined.
 */
exports.kMaxLength = kMaxLength()

function typedArraySupport () {
  try {
    var arr = new Uint8Array(1)
    arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
    return arr.foo() === 42 && // typed array instances can be augmented
        typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
        arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  } catch (e) {
    return false
  }
}

function kMaxLength () {
  return Buffer.TYPED_ARRAY_SUPPORT
    ? 0x7fffffff
    : 0x3fffffff
}

function createBuffer (that, length) {
  if (kMaxLength() < length) {
    throw new RangeError('Invalid typed array length')
  }
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    // Return an augmented `Uint8Array` instance, for best performance
    that = new Uint8Array(length)
    that.__proto__ = Buffer.prototype
  } else {
    // Fallback: Return an object instance of the Buffer class
    if (that === null) {
      that = new Buffer(length)
    }
    that.length = length
  }

  return that
}

/**
 * The Buffer constructor returns instances of `Uint8Array` that have their
 * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
 * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
 * and the `Uint8Array` methods. Square bracket notation works as expected -- it
 * returns a single octet.
 *
 * The `Uint8Array` prototype remains unmodified.
 */

function Buffer (arg, encodingOrOffset, length) {
  if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
    return new Buffer(arg, encodingOrOffset, length)
  }

  // Common case.
  if (typeof arg === 'number') {
    if (typeof encodingOrOffset === 'string') {
      throw new Error(
        'If encoding is specified then the first argument must be a string'
      )
    }
    return allocUnsafe(this, arg)
  }
  return from(this, arg, encodingOrOffset, length)
}

Buffer.poolSize = 8192 // not used by this implementation

// TODO: Legacy, not needed anymore. Remove in next major version.
Buffer._augment = function (arr) {
  arr.__proto__ = Buffer.prototype
  return arr
}

function from (that, value, encodingOrOffset, length) {
  if (typeof value === 'number') {
    throw new TypeError('"value" argument must not be a number')
  }

  if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
    return fromArrayBuffer(that, value, encodingOrOffset, length)
  }

  if (typeof value === 'string') {
    return fromString(that, value, encodingOrOffset)
  }

  return fromObject(that, value)
}

/**
 * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
 * if value is a number.
 * Buffer.from(str[, encoding])
 * Buffer.from(array)
 * Buffer.from(buffer)
 * Buffer.from(arrayBuffer[, byteOffset[, length]])
 **/
Buffer.from = function (value, encodingOrOffset, length) {
  return from(null, value, encodingOrOffset, length)
}

if (Buffer.TYPED_ARRAY_SUPPORT) {
  Buffer.prototype.__proto__ = Uint8Array.prototype
  Buffer.__proto__ = Uint8Array
  if (typeof Symbol !== 'undefined' && Symbol.species &&
      Buffer[Symbol.species] === Buffer) {
    // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
    Object.defineProperty(Buffer, Symbol.species, {
      value: null,
      configurable: true
    })
  }
}

function assertSize (size) {
  if (typeof size !== 'number') {
    throw new TypeError('"size" argument must be a number')
  } else if (size < 0) {
    throw new RangeError('"size" argument must not be negative')
  }
}

function alloc (that, size, fill, encoding) {
  assertSize(size)
  if (size <= 0) {
    return createBuffer(that, size)
  }
  if (fill !== undefined) {
    // Only pay attention to encoding if it's a string. This
    // prevents accidentally sending in a number that would
    // be interpretted as a start offset.
    return typeof encoding === 'string'
      ? createBuffer(that, size).fill(fill, encoding)
      : createBuffer(that, size).fill(fill)
  }
  return createBuffer(that, size)
}

/**
 * Creates a new filled Buffer instance.
 * alloc(size[, fill[, encoding]])
 **/
Buffer.alloc = function (size, fill, encoding) {
  return alloc(null, size, fill, encoding)
}

function allocUnsafe (that, size) {
  assertSize(size)
  that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  if (!Buffer.TYPED_ARRAY_SUPPORT) {
    for (var i = 0; i < size; ++i) {
      that[i] = 0
    }
  }
  return that
}

/**
 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
 * */
Buffer.allocUnsafe = function (size) {
  return allocUnsafe(null, size)
}
/**
 * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
 */
Buffer.allocUnsafeSlow = function (size) {
  return allocUnsafe(null, size)
}

function fromString (that, string, encoding) {
  if (typeof encoding !== 'string' || encoding === '') {
    encoding = 'utf8'
  }

  if (!Buffer.isEncoding(encoding)) {
    throw new TypeError('"encoding" must be a valid string encoding')
  }

  var length = byteLength(string, encoding) | 0
  that = createBuffer(that, length)

  var actual = that.write(string, encoding)

  if (actual !== length) {
    // Writing a hex string, for example, that contains invalid characters will
    // cause everything after the first invalid character to be ignored. (e.g.
    // 'abxxcd' will be treated as 'ab')
    that = that.slice(0, actual)
  }

  return that
}

function fromArrayLike (that, array) {
  var length = array.length < 0 ? 0 : checked(array.length) | 0
  that = createBuffer(that, length)
  for (var i = 0; i < length; i += 1) {
    that[i] = array[i] & 255
  }
  return that
}

function fromArrayBuffer (that, array, byteOffset, length) {
  array.byteLength // this throws if `array` is not a valid ArrayBuffer

  if (byteOffset < 0 || array.byteLength < byteOffset) {
    throw new RangeError('\'offset\' is out of bounds')
  }

  if (array.byteLength < byteOffset + (length || 0)) {
    throw new RangeError('\'length\' is out of bounds')
  }

  if (byteOffset === undefined && length === undefined) {
    array = new Uint8Array(array)
  } else if (length === undefined) {
    array = new Uint8Array(array, byteOffset)
  } else {
    array = new Uint8Array(array, byteOffset, length)
  }

  if (Buffer.TYPED_ARRAY_SUPPORT) {
    // Return an augmented `Uint8Array` instance, for best performance
    that = array
    that.__proto__ = Buffer.prototype
  } else {
    // Fallback: Return an object instance of the Buffer class
    that = fromArrayLike(that, array)
  }
  return that
}

function fromObject (that, obj) {
  if (Buffer.isBuffer(obj)) {
    var len = checked(obj.length) | 0
    that = createBuffer(that, len)

    if (that.length === 0) {
      return that
    }

    obj.copy(that, 0, 0, len)
    return that
  }

  if (obj) {
    if ((typeof ArrayBuffer !== 'undefined' &&
        obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
      if (typeof obj.length !== 'number' || isnan(obj.length)) {
        return createBuffer(that, 0)
      }
      return fromArrayLike(that, obj)
    }

    if (obj.type === 'Buffer' && isArray(obj.data)) {
      return fromArrayLike(that, obj.data)
    }
  }

  throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
}

function checked (length) {
  // Note: cannot use `length < kMaxLength()` here because that fails when
  // length is NaN (which is otherwise coerced to zero.)
  if (length >= kMaxLength()) {
    throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
                         'size: 0x' + kMaxLength().toString(16) + ' bytes')
  }
  return length | 0
}

function SlowBuffer (length) {
  if (+length != length) { // eslint-disable-line eqeqeq
    length = 0
  }
  return Buffer.alloc(+length)
}

Buffer.isBuffer = function isBuffer (b) {
  return !!(b != null && b._isBuffer)
}

Buffer.compare = function compare (a, b) {
  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
    throw new TypeError('Arguments must be Buffers')
  }

  if (a === b) return 0

  var x = a.length
  var y = b.length

  for (var i = 0, len = Math.min(x, y); i < len; ++i) {
    if (a[i] !== b[i]) {
      x = a[i]
      y = b[i]
      break
    }
  }

  if (x < y) return -1
  if (y < x) return 1
  return 0
}

Buffer.isEncoding = function isEncoding (encoding) {
  switch (String(encoding).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 true
    default:
      return false
  }
}

Buffer.concat = function concat (list, length) {
  if (!isArray(list)) {
    throw new TypeError('"list" argument must be an Array of Buffers')
  }

  if (list.length === 0) {
    return Buffer.alloc(0)
  }

  var i
  if (length === undefined) {
    length = 0
    for (i = 0; i < list.length; ++i) {
      length += list[i].length
    }
  }

  var buffer = Buffer.allocUnsafe(length)
  var pos = 0
  for (i = 0; i < list.length; ++i) {
    var buf = list[i]
    if (!Buffer.isBuffer(buf)) {
      throw new TypeError('"list" argument must be an Array of Buffers')
    }
    buf.copy(buffer, pos)
    pos += buf.length
  }
  return buffer
}

function byteLength (string, encoding) {
  if (Buffer.isBuffer(string)) {
    return string.length
  }
  if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
      (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
    return string.byteLength
  }
  if (typeof string !== 'string') {
    string = '' + string
  }

  var len = string.length
  if (len === 0) return 0

  // Use a for loop to avoid recursion
  var loweredCase = false
  for (;;) {
    switch (encoding) {
      case 'ascii':
      case 'latin1':
      case 'binary':
        return len
      case 'utf8':
      case 'utf-8':
      case undefined:
        return utf8ToBytes(string).length
      case 'ucs2':
      case 'ucs-2':
      case 'utf16le':
      case 'utf-16le':
        return len * 2
      case 'hex':
        return len >>> 1
      case 'base64':
        return base64ToBytes(string).length
      default:
        if (loweredCase) return utf8ToBytes(string).length // assume utf8
        encoding = ('' + encoding).toLowerCase()
        loweredCase = true
    }
  }
}
Buffer.byteLength = byteLength

function slowToString (encoding, start, end) {
  var loweredCase = false

  // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  // property of a typed array.

  // This behaves neither like String nor Uint8Array in that we set start/end
  // to their upper/lower bounds if the value passed is out of range.
  // undefined is handled specially as per ECMA-262 6th Edition,
  // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  if (start === undefined || start < 0) {
    start = 0
  }
  // Return early if start > this.length. Done here to prevent potential uint32
  // coercion fail below.
  if (start > this.length) {
    return ''
  }

  if (end === undefined || end > this.length) {
    end = this.length
  }

  if (end <= 0) {
    return ''
  }

  // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  end >>>= 0
  start >>>= 0

  if (end <= start) {
    return ''
  }

  if (!encoding) encoding = 'utf8'

  while (true) {
    switch (encoding) {
      case 'hex':
        return hexSlice(this, start, end)

      case 'utf8':
      case 'utf-8':
        return utf8Slice(this, start, end)

      case 'ascii':
        return asciiSlice(this, start, end)

      case 'latin1':
      case 'binary':
        return latin1Slice(this, start, end)

      case 'base64':
        return base64Slice(this, start, end)

      case 'ucs2':
      case 'ucs-2':
      case 'utf16le':
      case 'utf-16le':
        return utf16leSlice(this, start, end)

      default:
        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
        encoding = (encoding + '').toLowerCase()
        loweredCase = true
    }
  }
}

// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
// Buffer instances.
Buffer.prototype._isBuffer = true

function swap (b, n, m) {
  var i = b[n]
  b[n] = b[m]
  b[m] = i
}

Buffer.prototype.swap16 = function swap16 () {
  var len = this.length
  if (len % 2 !== 0) {
    throw new RangeError('Buffer size must be a multiple of 16-bits')
  }
  for (var i = 0; i < len; i += 2) {
    swap(this, i, i + 1)
  }
  return this
}

Buffer.prototype.swap32 = function swap32 () {
  var len = this.length
  if (len % 4 !== 0) {
    throw new RangeError('Buffer size must be a multiple of 32-bits')
  }
  for (var i = 0; i < len; i += 4) {
    swap(this, i, i + 3)
    swap(this, i + 1, i + 2)
  }
  return this
}

Buffer.prototype.swap64 = function swap64 () {
  var len = this.length
  if (len % 8 !== 0) {
    throw new RangeError('Buffer size must be a multiple of 64-bits')
  }
  for (var i = 0; i < len; i += 8) {
    swap(this, i, i + 7)
    swap(this, i + 1, i + 6)
    swap(this, i + 2, i + 5)
    swap(this, i + 3, i + 4)
  }
  return this
}

Buffer.prototype.toString = function toString () {
  var length = this.length | 0
  if (length === 0) return ''
  if (arguments.length === 0) return utf8Slice(this, 0, length)
  return slowToString.apply(this, arguments)
}

Buffer.prototype.equals = function equals (b) {
  if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  if (this === b) return true
  return Buffer.compare(this, b) === 0
}

Buffer.prototype.inspect = function inspect () {
  var str = ''
  var max = exports.INSPECT_MAX_BYTES
  if (this.length > 0) {
    str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
    if (this.length > max) str += ' ... '
  }
  return '<Buffer ' + str + '>'
}

Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  if (!Buffer.isBuffer(target)) {
    throw new TypeError('Argument must be a Buffer')
  }

  if (start === undefined) {
    start = 0
  }
  if (end === undefined) {
    end = target ? target.length : 0
  }
  if (thisStart === undefined) {
    thisStart = 0
  }
  if (thisEnd === undefined) {
    thisEnd = this.length
  }

  if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
    throw new RangeError('out of range index')
  }

  if (thisStart >= thisEnd && start >= end) {
    return 0
  }
  if (thisStart >= thisEnd) {
    return -1
  }
  if (start >= end) {
    return 1
  }

  start >>>= 0
  end >>>= 0
  thisStart >>>= 0
  thisEnd >>>= 0

  if (this === target) return 0

  var x = thisEnd - thisStart
  var y = end - start
  var len = Math.min(x, y)

  var thisCopy = this.slice(thisStart, thisEnd)
  var targetCopy = target.slice(start, end)

  for (var i = 0; i < len; ++i) {
    if (thisCopy[i] !== targetCopy[i]) {
      x = thisCopy[i]
      y = targetCopy[i]
      break
    }
  }

  if (x < y) return -1
  if (y < x) return 1
  return 0
}

// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
//
// Arguments:
// - buffer - a Buffer to search
// - val - a string, Buffer, or number
// - byteOffset - an index into `buffer`; will be clamped to an int32
// - encoding - an optional encoding, relevant is val is a string
// - dir - true for indexOf, false for lastIndexOf
function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  // Empty buffer means no match
  if (buffer.length === 0) return -1

  // Normalize byteOffset
  if (typeof byteOffset === 'string') {
    encoding = byteOffset
    byteOffset = 0
  } else if (byteOffset > 0x7fffffff) {
    byteOffset = 0x7fffffff
  } else if (byteOffset < -0x80000000) {
    byteOffset = -0x80000000
  }
  byteOffset = +byteOffset  // Coerce to Number.
  if (isNaN(byteOffset)) {
    // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
    byteOffset = dir ? 0 : (buffer.length - 1)
  }

  // Normalize byteOffset: negative offsets start from the end of the buffer
  if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  if (byteOffset >= buffer.length) {
    if (dir) return -1
    else byteOffset = buffer.length - 1
  } else if (byteOffset < 0) {
    if (dir) byteOffset = 0
    else return -1
  }

  // Normalize val
  if (typeof val === 'string') {
    val = Buffer.from(val, encoding)
  }

  // Finally, search either indexOf (if dir is true) or lastIndexOf
  if (Buffer.isBuffer(val)) {
    // Special case: looking for empty string/buffer always fails
    if (val.length === 0) {
      return -1
    }
    return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  } else if (typeof val === 'number') {
    val = val & 0xFF // Search for a byte value [0-255]
    if (Buffer.TYPED_ARRAY_SUPPORT &&
        typeof Uint8Array.prototype.indexOf === 'function') {
      if (dir) {
        return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
      } else {
        return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
      }
    }
    return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  }

  throw new TypeError('val must be string, number or Buffer')
}

function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  var indexSize = 1
  var arrLength = arr.length
  var valLength = val.length

  if (encoding !== undefined) {
    encoding = String(encoding).toLowerCase()
    if (encoding === 'ucs2' || encoding === 'ucs-2' ||
        encoding === 'utf16le' || encoding === 'utf-16le') {
      if (arr.length < 2 || val.length < 2) {
        return -1
      }
      indexSize = 2
      arrLength /= 2
      valLength /= 2
      byteOffset /= 2
    }
  }

  function read (buf, i) {
    if (indexSize === 1) {
      return buf[i]
    } else {
      return buf.readUInt16BE(i * indexSize)
    }
  }

  var i
  if (dir) {
    var foundIndex = -1
    for (i = byteOffset; i < arrLength; i++) {
      if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
        if (foundIndex === -1) foundIndex = i
        if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
      } else {
        if (foundIndex !== -1) i -= i - foundIndex
        foundIndex = -1
      }
    }
  } else {
    if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
    for (i = byteOffset; i >= 0; i--) {
      var found = true
      for (var j = 0; j < valLength; j++) {
        if (read(arr, i + j) !== read(val, j)) {
          found = false
          break
        }
      }
      if (found) return i
    }
  }

  return -1
}

Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  return this.indexOf(val, byteOffset, encoding) !== -1
}

Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
}

Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
}

function hexWrite (buf, string, offset, length) {
  offset = Number(offset) || 0
  var remaining = buf.length - offset
  if (!length) {
    length = remaining
  } else {
    length = Number(length)
    if (length > remaining) {
      length = remaining
    }
  }

  // must be an even number of digits
  var strLen = string.length
  if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')

  if (length > strLen / 2) {
    length = strLen / 2
  }
  for (var i = 0; i < length; ++i) {
    var parsed = parseInt(string.substr(i * 2, 2), 16)
    if (isNaN(parsed)) return i
    buf[offset + i] = parsed
  }
  return i
}

function utf8Write (buf, string, offset, length) {
  return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
}

function asciiWrite (buf, string, offset, length) {
  return blitBuffer(asciiToBytes(string), buf, offset, length)
}

function latin1Write (buf, string, offset, length) {
  return asciiWrite(buf, string, offset, length)
}

function base64Write (buf, string, offset, length) {
  return blitBuffer(base64ToBytes(string), buf, offset, length)
}

function ucs2Write (buf, string, offset, length) {
  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
}

Buffer.prototype.write = function write (string, offset, length, encoding) {
  // Buffer#write(string)
  if (offset === undefined) {
    encoding = 'utf8'
    length = this.length
    offset = 0
  // Buffer#write(string, encoding)
  } else if (length === undefined && typeof offset === 'string') {
    encoding = offset
    length = this.length
    offset = 0
  // Buffer#write(string, offset[, length][, encoding])
  } else if (isFinite(offset)) {
    offset = offset | 0
    if (isFinite(length)) {
      length = length | 0
      if (encoding === undefined) encoding = 'utf8'
    } else {
      encoding = length
      length = undefined
    }
  // legacy write(string, encoding, offset, length) - remove in v0.13
  } else {
    throw new Error(
      'Buffer.write(string, encoding, offset[, length]) is no longer supported'
    )
  }

  var remaining = this.length - offset
  if (length === undefined || length > remaining) length = remaining

  if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
    throw new RangeError('Attempt to write outside buffer bounds')
  }

  if (!encoding) encoding = 'utf8'

  var loweredCase = false
  for (;;) {
    switch (encoding) {
      case 'hex':
        return hexWrite(this, string, offset, length)

      case 'utf8':
      case 'utf-8':
        return utf8Write(this, string, offset, length)

      case 'ascii':
        return asciiWrite(this, string, offset, length)

      case 'latin1':
      case 'binary':
        return latin1Write(this, string, offset, length)

      case 'base64':
        // Warning: maxLength not taken into account in base64Write
        return base64Write(this, string, offset, length)

      case 'ucs2':
      case 'ucs-2':
      case 'utf16le':
      case 'utf-16le':
        return ucs2Write(this, string, offset, length)

      default:
        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
        encoding = ('' + encoding).toLowerCase()
        loweredCase = true
    }
  }
}

Buffer.prototype.toJSON = function toJSON () {
  return {
    type: 'Buffer',
    data: Array.prototype.slice.call(this._arr || this, 0)
  }
}

function base64Slice (buf, start, end) {
  if (start === 0 && end === buf.length) {
    return base64.fromByteArray(buf)
  } else {
    return base64.fromByteArray(buf.slice(start, end))
  }
}

function utf8Slice (buf, start, end) {
  end = Math.min(buf.length, end)
  var res = []

  var i = start
  while (i < end) {
    var firstByte = buf[i]
    var codePoint = null
    var bytesPerSequence = (firstByte > 0xEF) ? 4
      : (firstByte > 0xDF) ? 3
      : (firstByte > 0xBF) ? 2
      : 1

    if (i + bytesPerSequence <= end) {
      var secondByte, thirdByte, fourthByte, tempCodePoint

      switch (bytesPerSequence) {
        case 1:
          if (firstByte < 0x80) {
            codePoint = firstByte
          }
          break
        case 2:
          secondByte = buf[i + 1]
          if ((secondByte & 0xC0) === 0x80) {
            tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
            if (tempCodePoint > 0x7F) {
              codePoint = tempCodePoint
            }
          }
          break
        case 3:
          secondByte = buf[i + 1]
          thirdByte = buf[i + 2]
          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
            tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
            if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
              codePoint = tempCodePoint
            }
          }
          break
        case 4:
          secondByte = buf[i + 1]
          thirdByte = buf[i + 2]
          fourthByte = buf[i + 3]
          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
            tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
            if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
              codePoint = tempCodePoint
            }
          }
      }
    }

    if (codePoint === null) {
      // we did not generate a valid codePoint so insert a
      // replacement char (U+FFFD) and advance only 1 byte
      codePoint = 0xFFFD
      bytesPerSequence = 1
    } else if (codePoint > 0xFFFF) {
      // encode to utf16 (surrogate pair dance)
      codePoint -= 0x10000
      res.push(codePoint >>> 10 & 0x3FF | 0xD800)
      codePoint = 0xDC00 | codePoint & 0x3FF
    }

    res.push(codePoint)
    i += bytesPerSequence
  }

  return decodeCodePointsArray(res)
}

// Based on http://stackoverflow.com/a/22747272/680742, the browser with
// the lowest limit is Chrome, with 0x10000 args.
// We go 1 magnitude less, for safety
var MAX_ARGUMENTS_LENGTH = 0x1000

function decodeCodePointsArray (codePoints) {
  var len = codePoints.length
  if (len <= MAX_ARGUMENTS_LENGTH) {
    return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  }

  // Decode in chunks to avoid "call stack size exceeded".
  var res = ''
  var i = 0
  while (i < len) {
    res += String.fromCharCode.apply(
      String,
      codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
    )
  }
  return res
}

function asciiSlice (buf, start, end) {
  var ret = ''
  end = Math.min(buf.length, end)

  for (var i = start; i < end; ++i) {
    ret += String.fromCharCode(buf[i] & 0x7F)
  }
  return ret
}

function latin1Slice (buf, start, end) {
  var ret = ''
  end = Math.min(buf.length, end)

  for (var i = start; i < end; ++i) {
    ret += String.fromCharCode(buf[i])
  }
  return ret
}

function hexSlice (buf, start, end) {
  var len = buf.length

  if (!start || start < 0) start = 0
  if (!end || end < 0 || end > len) end = len

  var out = ''
  for (var i = start; i < end; ++i) {
    out += toHex(buf[i])
  }
  return out
}

function utf16leSlice (buf, start, end) {
  var bytes = buf.slice(start, end)
  var res = ''
  for (var i = 0; i < bytes.length; i += 2) {
    res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  }
  return res
}

Buffer.prototype.slice = function slice (start, end) {
  var len = this.length
  start = ~~start
  end = end === undefined ? len : ~~end

  if (start < 0) {
    start += len
    if (start < 0) start = 0
  } else if (start > len) {
    start = len
  }

  if (end < 0) {
    end += len
    if (end < 0) end = 0
  } else if (end > len) {
    end = len
  }

  if (end < start) end = start

  var newBuf
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    newBuf = this.subarray(start, end)
    newBuf.__proto__ = Buffer.prototype
  } else {
    var sliceLen = end - start
    newBuf = new Buffer(sliceLen, undefined)
    for (var i = 0; i < sliceLen; ++i) {
      newBuf[i] = this[i + start]
    }
  }

  return newBuf
}

/*
 * Need to make sure that buffer isn't trying to write out of bounds.
 */
function checkOffset (offset, ext, length) {
  if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
}

Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) checkOffset(offset, byteLength, this.length)

  var val = this[offset]
  var mul = 1
  var i = 0
  while (++i < byteLength && (mul *= 0x100)) {
    val += this[offset + i] * mul
  }

  return val
}

Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) {
    checkOffset(offset, byteLength, this.length)
  }

  var val = this[offset + --byteLength]
  var mul = 1
  while (byteLength > 0 && (mul *= 0x100)) {
    val += this[offset + --byteLength] * mul
  }

  return val
}

Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 1, this.length)
  return this[offset]
}

Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 2, this.length)
  return this[offset] | (this[offset + 1] << 8)
}

Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 2, this.length)
  return (this[offset] << 8) | this[offset + 1]
}

Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)

  return ((this[offset]) |
      (this[offset + 1] << 8) |
      (this[offset + 2] << 16)) +
      (this[offset + 3] * 0x1000000)
}

Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)

  return (this[offset] * 0x1000000) +
    ((this[offset + 1] << 16) |
    (this[offset + 2] << 8) |
    this[offset + 3])
}

Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) checkOffset(offset, byteLength, this.length)

  var val = this[offset]
  var mul = 1
  var i = 0
  while (++i < byteLength && (mul *= 0x100)) {
    val += this[offset + i] * mul
  }
  mul *= 0x80

  if (val >= mul) val -= Math.pow(2, 8 * byteLength)

  return val
}

Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) checkOffset(offset, byteLength, this.length)

  var i = byteLength
  var mul = 1
  var val = this[offset + --i]
  while (i > 0 && (mul *= 0x100)) {
    val += this[offset + --i] * mul
  }
  mul *= 0x80

  if (val >= mul) val -= Math.pow(2, 8 * byteLength)

  return val
}

Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 1, this.length)
  if (!(this[offset] & 0x80)) return (this[offset])
  return ((0xff - this[offset] + 1) * -1)
}

Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 2, this.length)
  var val = this[offset] | (this[offset + 1] << 8)
  return (val & 0x8000) ? val | 0xFFFF0000 : val
}

Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 2, this.length)
  var val = this[offset + 1] | (this[offset] << 8)
  return (val & 0x8000) ? val | 0xFFFF0000 : val
}

Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)

  return (this[offset]) |
    (this[offset + 1] << 8) |
    (this[offset + 2] << 16) |
    (this[offset + 3] << 24)
}

Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)

  return (this[offset] << 24) |
    (this[offset + 1] << 16) |
    (this[offset + 2] << 8) |
    (this[offset + 3])
}

Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)
  return ieee754.read(this, offset, true, 23, 4)
}

Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)
  return ieee754.read(this, offset, false, 23, 4)
}

Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 8, this.length)
  return ieee754.read(this, offset, true, 52, 8)
}

Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 8, this.length)
  return ieee754.read(this, offset, false, 52, 8)
}

function checkInt (buf, value, offset, ext, max, min) {
  if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  if (offset + ext > buf.length) throw new RangeError('Index out of range')
}

Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  value = +value
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) {
    var maxBytes = Math.pow(2, 8 * byteLength) - 1
    checkInt(this, value, offset, byteLength, maxBytes, 0)
  }

  var mul = 1
  var i = 0
  this[offset] = value & 0xFF
  while (++i < byteLength && (mul *= 0x100)) {
    this[offset + i] = (value / mul) & 0xFF
  }

  return offset + byteLength
}

Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  value = +value
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) {
    var maxBytes = Math.pow(2, 8 * byteLength) - 1
    checkInt(this, value, offset, byteLength, maxBytes, 0)
  }

  var i = byteLength - 1
  var mul = 1
  this[offset + i] = value & 0xFF
  while (--i >= 0 && (mul *= 0x100)) {
    this[offset + i] = (value / mul) & 0xFF
  }

  return offset + byteLength
}

Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  this[offset] = (value & 0xff)
  return offset + 1
}

function objectWriteUInt16 (buf, value, offset, littleEndian) {
  if (value < 0) value = 0xffff + value + 1
  for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
    buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
      (littleEndian ? i : 1 - i) * 8
  }
}

Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value & 0xff)
    this[offset + 1] = (value >>> 8)
  } else {
    objectWriteUInt16(this, value, offset, true)
  }
  return offset + 2
}

Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value >>> 8)
    this[offset + 1] = (value & 0xff)
  } else {
    objectWriteUInt16(this, value, offset, false)
  }
  return offset + 2
}

function objectWriteUInt32 (buf, value, offset, littleEndian) {
  if (value < 0) value = 0xffffffff + value + 1
  for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
    buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  }
}

Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset + 3] = (value >>> 24)
    this[offset + 2] = (value >>> 16)
    this[offset + 1] = (value >>> 8)
    this[offset] = (value & 0xff)
  } else {
    objectWriteUInt32(this, value, offset, true)
  }
  return offset + 4
}

Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value >>> 24)
    this[offset + 1] = (value >>> 16)
    this[offset + 2] = (value >>> 8)
    this[offset + 3] = (value & 0xff)
  } else {
    objectWriteUInt32(this, value, offset, false)
  }
  return offset + 4
}

Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) {
    var limit = Math.pow(2, 8 * byteLength - 1)

    checkInt(this, value, offset, byteLength, limit - 1, -limit)
  }

  var i = 0
  var mul = 1
  var sub = 0
  this[offset] = value & 0xFF
  while (++i < byteLength && (mul *= 0x100)) {
    if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
      sub = 1
    }
    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  }

  return offset + byteLength
}

Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) {
    var limit = Math.pow(2, 8 * byteLength - 1)

    checkInt(this, value, offset, byteLength, limit - 1, -limit)
  }

  var i = byteLength - 1
  var mul = 1
  var sub = 0
  this[offset + i] = value & 0xFF
  while (--i >= 0 && (mul *= 0x100)) {
    if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
      sub = 1
    }
    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  }

  return offset + byteLength
}

Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  if (value < 0) value = 0xff + value + 1
  this[offset] = (value & 0xff)
  return offset + 1
}

Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value & 0xff)
    this[offset + 1] = (value >>> 8)
  } else {
    objectWriteUInt16(this, value, offset, true)
  }
  return offset + 2
}

Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value >>> 8)
    this[offset + 1] = (value & 0xff)
  } else {
    objectWriteUInt16(this, value, offset, false)
  }
  return offset + 2
}

Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value & 0xff)
    this[offset + 1] = (value >>> 8)
    this[offset + 2] = (value >>> 16)
    this[offset + 3] = (value >>> 24)
  } else {
    objectWriteUInt32(this, value, offset, true)
  }
  return offset + 4
}

Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  if (value < 0) value = 0xffffffff + value + 1
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value >>> 24)
    this[offset + 1] = (value >>> 16)
    this[offset + 2] = (value >>> 8)
    this[offset + 3] = (value & 0xff)
  } else {
    objectWriteUInt32(this, value, offset, false)
  }
  return offset + 4
}

function checkIEEE754 (buf, value, offset, ext, max, min) {
  if (offset + ext > buf.length) throw new RangeError('Index out of range')
  if (offset < 0) throw new RangeError('Index out of range')
}

function writeFloat (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  }
  ieee754.write(buf, value, offset, littleEndian, 23, 4)
  return offset + 4
}

Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  return writeFloat(this, value, offset, true, noAssert)
}

Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  return writeFloat(this, value, offset, false, noAssert)
}

function writeDouble (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  }
  ieee754.write(buf, value, offset, littleEndian, 52, 8)
  return offset + 8
}

Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  return writeDouble(this, value, offset, true, noAssert)
}

Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  return writeDouble(this, value, offset, false, noAssert)
}

// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  if (!start) start = 0
  if (!end && end !== 0) end = this.length
  if (targetStart >= target.length) targetStart = target.length
  if (!targetStart) targetStart = 0
  if (end > 0 && end < start) end = start

  // Copy 0 bytes; we're done
  if (end === start) return 0
  if (target.length === 0 || this.length === 0) return 0

  // Fatal error conditions
  if (targetStart < 0) {
    throw new RangeError('targetStart out of bounds')
  }
  if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  if (end < 0) throw new RangeError('sourceEnd out of bounds')

  // Are we oob?
  if (end > this.length) end = this.length
  if (target.length - targetStart < end - start) {
    end = target.length - targetStart + start
  }

  var len = end - start
  var i

  if (this === target && start < targetStart && targetStart < end) {
    // descending copy from end
    for (i = len - 1; i >= 0; --i) {
      target[i + targetStart] = this[i + start]
    }
  } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
    // ascending copy from start
    for (i = 0; i < len; ++i) {
      target[i + targetStart] = this[i + start]
    }
  } else {
    Uint8Array.prototype.set.call(
      target,
      this.subarray(start, start + len),
      targetStart
    )
  }

  return len
}

// Usage:
//    buffer.fill(number[, offset[, end]])
//    buffer.fill(buffer[, offset[, end]])
//    buffer.fill(string[, offset[, end]][, encoding])
Buffer.prototype.fill = function fill (val, start, end, encoding) {
  // Handle string cases:
  if (typeof val === 'string') {
    if (typeof start === 'string') {
      encoding = start
      start = 0
      end = this.length
    } else if (typeof end === 'string') {
      encoding = end
      end = this.length
    }
    if (val.length === 1) {
      var code = val.charCodeAt(0)
      if (code < 256) {
        val = code
      }
    }
    if (encoding !== undefined && typeof encoding !== 'string') {
      throw new TypeError('encoding must be a string')
    }
    if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
      throw new TypeError('Unknown encoding: ' + encoding)
    }
  } else if (typeof val === 'number') {
    val = val & 255
  }

  // Invalid ranges are not set to a default, so can range check early.
  if (start < 0 || this.length < start || this.length < end) {
    throw new RangeError('Out of range index')
  }

  if (end <= start) {
    return this
  }

  start = start >>> 0
  end = end === undefined ? this.length : end >>> 0

  if (!val) val = 0

  var i
  if (typeof val === 'number') {
    for (i = start; i < end; ++i) {
      this[i] = val
    }
  } else {
    var bytes = Buffer.isBuffer(val)
      ? val
      : utf8ToBytes(new Buffer(val, encoding).toString())
    var len = bytes.length
    for (i = 0; i < end - start; ++i) {
      this[i + start] = bytes[i % len]
    }
  }

  return this
}

// HELPER FUNCTIONS
// ================

var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g

function base64clean (str) {
  // Node strips out invalid characters like \n and \t from the string, base64-js does not
  str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  // Node converts strings with length < 2 to ''
  if (str.length < 2) return ''
  // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  while (str.length % 4 !== 0) {
    str = str + '='
  }
  return str
}

function stringtrim (str) {
  if (str.trim) return str.trim()
  return str.replace(/^\s+|\s+$/g, '')
}

function toHex (n) {
  if (n < 16) return '0' + n.toString(16)
  return n.toString(16)
}

function utf8ToBytes (string, units) {
  units = units || Infinity
  var codePoint
  var length = string.length
  var leadSurrogate = null
  var bytes = []

  for (var i = 0; i < length; ++i) {
    codePoint = string.charCodeAt(i)

    // is surrogate component
    if (codePoint > 0xD7FF && codePoint < 0xE000) {
      // last char was a lead
      if (!leadSurrogate) {
        // no lead yet
        if (codePoint > 0xDBFF) {
          // unexpected trail
          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
          continue
        } else if (i + 1 === length) {
          // unpaired lead
          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
          continue
        }

        // valid lead
        leadSurrogate = codePoint

        continue
      }

      // 2 leads in a row
      if (codePoint < 0xDC00) {
        if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
        leadSurrogate = codePoint
        continue
      }

      // valid surrogate pair
      codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
    } else if (leadSurrogate) {
      // valid bmp char, but last char was a lead
      if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
    }

    leadSurrogate = null

    // encode utf8
    if (codePoint < 0x80) {
      if ((units -= 1) < 0) break
      bytes.push(codePoint)
    } else if (codePoint < 0x800) {
      if ((units -= 2) < 0) break
      bytes.push(
        codePoint >> 0x6 | 0xC0,
        codePoint & 0x3F | 0x80
      )
    } else if (codePoint < 0x10000) {
      if ((units -= 3) < 0) break
      bytes.push(
        codePoint >> 0xC | 0xE0,
        codePoint >> 0x6 & 0x3F | 0x80,
        codePoint & 0x3F | 0x80
      )
    } else if (codePoint < 0x110000) {
      if ((units -= 4) < 0) break
      bytes.push(
        codePoint >> 0x12 | 0xF0,
        codePoint >> 0xC & 0x3F | 0x80,
        codePoint >> 0x6 & 0x3F | 0x80,
        codePoint & 0x3F | 0x80
      )
    } else {
      throw new Error('Invalid code point')
    }
  }

  return bytes
}

function asciiToBytes (str) {
  var byteArray = []
  for (var i = 0; i < str.length; ++i) {
    // Node's code seems to be doing this and not & 0x7F..
    byteArray.push(str.charCodeAt(i) & 0xFF)
  }
  return byteArray
}

function utf16leToBytes (str, units) {
  var c, hi, lo
  var byteArray = []
  for (var i = 0; i < str.length; ++i) {
    if ((units -= 2) < 0) break

    c = str.charCodeAt(i)
    hi = c >> 8
    lo = c % 256
    byteArray.push(lo)
    byteArray.push(hi)
  }

  return byteArray
}

function base64ToBytes (str) {
  return base64.toByteArray(base64clean(str))
}

function blitBuffer (src, dst, offset, length) {
  for (var i = 0; i < length; ++i) {
    if ((i + offset >= dst.length) || (i >= src.length)) break
    dst[i + offset] = src[i]
  }
  return i
}

function isnan (val) {
  return val !== val // eslint-disable-line no-self-compare
}

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))

/***/ }),
/* 58 */
/*!*****************************************!*\
  !*** ./node_modules/base64-js/index.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.byteLength = byteLength
exports.toByteArray = toByteArray
exports.fromByteArray = fromByteArray

var lookup = []
var revLookup = []
var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array

var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
for (var i = 0, len = code.length; i < len; ++i) {
  lookup[i] = code[i]
  revLookup[code.charCodeAt(i)] = i
}

// Support decoding URL-safe base64 strings, as Node.js does.
// See: https://en.wikipedia.org/wiki/Base64#URL_applications
revLookup['-'.charCodeAt(0)] = 62
revLookup['_'.charCodeAt(0)] = 63

function getLens (b64) {
  var len = b64.length

  if (len % 4 > 0) {
    throw new Error('Invalid string. Length must be a multiple of 4')
  }

  // Trim off extra bytes after placeholder bytes are found
  // See: https://github.com/beatgammit/base64-js/issues/42
  var validLen = b64.indexOf('=')
  if (validLen === -1) validLen = len

  var placeHoldersLen = validLen === len
    ? 0
    : 4 - (validLen % 4)

  return [validLen, placeHoldersLen]
}

// base64 is 4/3 + up to two characters of the original data
function byteLength (b64) {
  var lens = getLens(b64)
  var validLen = lens[0]
  var placeHoldersLen = lens[1]
  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
}

function _byteLength (b64, validLen, placeHoldersLen) {
  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
}

function toByteArray (b64) {
  var tmp
  var lens = getLens(b64)
  var validLen = lens[0]
  var placeHoldersLen = lens[1]

  var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))

  var curByte = 0

  // if there are placeholders, only get up to the last complete 4 chars
  var len = placeHoldersLen > 0
    ? validLen - 4
    : validLen

  var i
  for (i = 0; i < len; i += 4) {
    tmp =
      (revLookup[b64.charCodeAt(i)] << 18) |
      (revLookup[b64.charCodeAt(i + 1)] << 12) |
      (revLookup[b64.charCodeAt(i + 2)] << 6) |
      revLookup[b64.charCodeAt(i + 3)]
    arr[curByte++] = (tmp >> 16) & 0xFF
    arr[curByte++] = (tmp >> 8) & 0xFF
    arr[curByte++] = tmp & 0xFF
  }

  if (placeHoldersLen === 2) {
    tmp =
      (revLookup[b64.charCodeAt(i)] << 2) |
      (revLookup[b64.charCodeAt(i + 1)] >> 4)
    arr[curByte++] = tmp & 0xFF
  }

  if (placeHoldersLen === 1) {
    tmp =
      (revLookup[b64.charCodeAt(i)] << 10) |
      (revLookup[b64.charCodeAt(i + 1)] << 4) |
      (revLookup[b64.charCodeAt(i + 2)] >> 2)
    arr[curByte++] = (tmp >> 8) & 0xFF
    arr[curByte++] = tmp & 0xFF
  }

  return arr
}

function tripletToBase64 (num) {
  return lookup[num >> 18 & 0x3F] +
    lookup[num >> 12 & 0x3F] +
    lookup[num >> 6 & 0x3F] +
    lookup[num & 0x3F]
}

function encodeChunk (uint8, start, end) {
  var tmp
  var output = []
  for (var i = start; i < end; i += 3) {
    tmp =
      ((uint8[i] << 16) & 0xFF0000) +
      ((uint8[i + 1] << 8) & 0xFF00) +
      (uint8[i + 2] & 0xFF)
    output.push(tripletToBase64(tmp))
  }
  return output.join('')
}

function fromByteArray (uint8) {
  var tmp
  var len = uint8.length
  var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  var parts = []
  var maxChunkLength = 16383 // must be multiple of 3

  // go through the array every three bytes, we'll deal with trailing stuff later
  for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
    parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  }

  // pad the end with zeros, but make sure to not forget the extra bytes
  if (extraBytes === 1) {
    tmp = uint8[len - 1]
    parts.push(
      lookup[tmp >> 2] +
      lookup[(tmp << 4) & 0x3F] +
      '=='
    )
  } else if (extraBytes === 2) {
    tmp = (uint8[len - 2] << 8) + uint8[len - 1]
    parts.push(
      lookup[tmp >> 10] +
      lookup[(tmp >> 4) & 0x3F] +
      lookup[(tmp << 2) & 0x3F] +
      '='
    )
  }

  return parts.join('')
}


/***/ }),
/* 59 */
/*!***************************************!*\
  !*** ./node_modules/ieee754/index.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  var e, m
  var eLen = (nBytes * 8) - mLen - 1
  var eMax = (1 << eLen) - 1
  var eBias = eMax >> 1
  var nBits = -7
  var i = isLE ? (nBytes - 1) : 0
  var d = isLE ? -1 : 1
  var s = buffer[offset + i]

  i += d

  e = s & ((1 << (-nBits)) - 1)
  s >>= (-nBits)
  nBits += eLen
  for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}

  m = e & ((1 << (-nBits)) - 1)
  e >>= (-nBits)
  nBits += mLen
  for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}

  if (e === 0) {
    e = 1 - eBias
  } else if (e === eMax) {
    return m ? NaN : ((s ? -1 : 1) * Infinity)
  } else {
    m = m + Math.pow(2, mLen)
    e = e - eBias
  }
  return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
}

exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  var e, m, c
  var eLen = (nBytes * 8) - mLen - 1
  var eMax = (1 << eLen) - 1
  var eBias = eMax >> 1
  var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  var i = isLE ? 0 : (nBytes - 1)
  var d = isLE ? 1 : -1
  var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0

  value = Math.abs(value)

  if (isNaN(value) || value === Infinity) {
    m = isNaN(value) ? 1 : 0
    e = eMax
  } else {
    e = Math.floor(Math.log(value) / Math.LN2)
    if (value * (c = Math.pow(2, -e)) < 1) {
      e--
      c *= 2
    }
    if (e + eBias >= 1) {
      value += rt / c
    } else {
      value += rt * Math.pow(2, 1 - eBias)
    }
    if (value * c >= 2) {
      e++
      c /= 2
    }

    if (e + eBias >= eMax) {
      m = 0
      e = eMax
    } else if (e + eBias >= 1) {
      m = ((value * c) - 1) * Math.pow(2, mLen)
      e = e + eBias
    } else {
      m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
      e = 0
    }
  }

  for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}

  e = (e << mLen) | m
  eLen += mLen
  for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}

  buffer[offset + i - d] |= s * 128
}


/***/ }),
/* 60 */
/*!***************************************!*\
  !*** ./node_modules/isarray/index.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var toString = {}.toString;

module.exports = Array.isArray || function (arr) {
  return toString.call(arr) == '[object Array]';
};


/***/ }),
/* 61 */
/*!*************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/util/route.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 62));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 64));
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
/**
 * 路由跳转方法，该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
 * 并且带有路由拦截功能
 */
var Router = /*#__PURE__*/function () {
  function Router() {
    (0, _classCallCheck2.default)(this, Router);
    // 原始属性定义
    this.config = {
      type: 'navigateTo',
      url: '',
      delta: 1,
      // navigateBack页面后退时,回退的层数
      params: {},
      // 传递的参数
      animationType: 'pop-in',
      // 窗口动画,只在APP有效
      animationDuration: 300,
      // 窗口动画持续时间,单位毫秒,只在APP有效
      intercept: false // 是否需要拦截
    };
    // 因为route方法是需要对外赋值给另外的对象使用，同时route内部有使用this，会导致route失去上下文
    // 这里在构造函数中进行this绑定
    this.route = this.route.bind(this);
  }

  // 判断url前面是否有"/"，如果没有则加上，否则无法跳转
  (0, _createClass2.default)(Router, [{
    key: "addRootPath",
    value: function addRootPath(url) {
      return url[0] === '/' ? url : "/".concat(url);
    }

    // 整合路由参数
  }, {
    key: "mixinParam",
    value: function mixinParam(url, params) {
      url = url && this.addRootPath(url);

      // 使用正则匹配，主要依据是判断是否有"/","?","="等，如“/page/index/index?name=mary"
      // 如果有url中有get参数，转换后无需带上"?"
      var query = '';
      if (/.*\/.*\?.*=.*/.test(url)) {
        // object对象转为get类型的参数
        query = uni.$u.queryParams(params, false);
        // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
        return url += "&".concat(query);
      }
      // 直接拼接参数，因为此处url中没有后面的query参数，也就没有"?/&"之类的符号
      query = uni.$u.queryParams(params);
      return url += query;
    }

    // 对外的方法名称
  }, {
    key: "route",
    value: function () {
      var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
        var options,
          params,
          mergeConfig,
          isNext,
          _args = arguments;
        return _regenerator.default.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
                params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
                // 合并用户的配置和内部的默认配置
                mergeConfig = {};
                if (typeof options === 'string') {
                  // 如果options为字符串，则为route(url, params)的形式
                  mergeConfig.url = this.mixinParam(options, params);
                  mergeConfig.type = 'navigateTo';
                } else {
                  mergeConfig = uni.$u.deepClone(options, this.config);
                  // 否则正常使用mergeConfig中的url和params进行拼接
                  mergeConfig.url = this.mixinParam(options.url, options.params);
                }

                // 如果本次跳转的路径和本页面路径一致，不执行跳转，防止用户快速点击跳转按钮，造成多次跳转同一个页面的问题
                if (!(mergeConfig.url === uni.$u.page())) {
                  _context.next = 6;
                  break;
                }
                return _context.abrupt("return");
              case 6:
                if (params.intercept) {
                  this.config.intercept = params.intercept;
                }
                // params参数也带给拦截器
                mergeConfig.params = params;
                // 合并内外部参数
                mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
                // 判断用户是否定义了拦截器
                if (!(typeof uni.$u.routeIntercept === 'function')) {
                  _context.next = 16;
                  break;
                }
                _context.next = 12;
                return new Promise(function (resolve, reject) {
                  uni.$u.routeIntercept(mergeConfig, resolve);
                });
              case 12:
                isNext = _context.sent;
                // 如果isNext为true，则执行路由跳转
                isNext && this.openPage(mergeConfig);
                _context.next = 17;
                break;
              case 16:
                this.openPage(mergeConfig);
              case 17:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, this);
      }));
      function route() {
        return _route.apply(this, arguments);
      }
      return route;
    }() // 执行路由跳转
  }, {
    key: "openPage",
    value: function openPage(config) {
      // 解构参数
      var url = config.url,
        type = config.type,
        delta = config.delta,
        animationType = config.animationType,
        animationDuration = config.animationDuration;
      if (config.type == 'navigateTo' || config.type == 'to') {
        uni.navigateTo({
          url: url,
          animationType: animationType,
          animationDuration: animationDuration
        });
      }
      if (config.type == 'redirectTo' || config.type == 'redirect') {
        uni.redirectTo({
          url: url
        });
      }
      if (config.type == 'switchTab' || config.type == 'tab') {
        uni.switchTab({
          url: url
        });
      }
      if (config.type == 'reLaunch' || config.type == 'launch') {
        uni.reLaunch({
          url: url
        });
      }
      if (config.type == 'navigateBack' || config.type == 'back') {
        uni.navigateBack({
          delta: delta
        });
      }
    }
  }]);
  return Router;
}();
var _default = new Router().route;
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 62 */
/*!************************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// TODO(Babel 8): Remove this file.

var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 63)();
module.exports = runtime;

/***/ }),
/* 63 */
/*!*******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
function _regeneratorRuntime() {
  "use strict";

  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
    return exports;
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  var exports = {},
    Op = Object.prototype,
    hasOwn = Op.hasOwnProperty,
    defineProperty = Object.defineProperty || function (obj, key, desc) {
      obj[key] = desc.value;
    },
    $Symbol = "function" == typeof Symbol ? Symbol : {},
    iteratorSymbol = $Symbol.iterator || "@@iterator",
    asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
    toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  function define(obj, key, value) {
    return Object.defineProperty(obj, key, {
      value: value,
      enumerable: !0,
      configurable: !0,
      writable: !0
    }), obj[key];
  }
  try {
    define({}, "");
  } catch (err) {
    define = function define(obj, key, value) {
      return obj[key] = value;
    };
  }
  function wrap(innerFn, outerFn, self, tryLocsList) {
    var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
      generator = Object.create(protoGenerator.prototype),
      context = new Context(tryLocsList || []);
    return defineProperty(generator, "_invoke", {
      value: makeInvokeMethod(innerFn, self, context)
    }), generator;
  }
  function tryCatch(fn, obj, arg) {
    try {
      return {
        type: "normal",
        arg: fn.call(obj, arg)
      };
    } catch (err) {
      return {
        type: "throw",
        arg: err
      };
    }
  }
  exports.wrap = wrap;
  var ContinueSentinel = {};
  function Generator() {}
  function GeneratorFunction() {}
  function GeneratorFunctionPrototype() {}
  var IteratorPrototype = {};
  define(IteratorPrototype, iteratorSymbol, function () {
    return this;
  });
  var getProto = Object.getPrototypeOf,
    NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  function defineIteratorMethods(prototype) {
    ["next", "throw", "return"].forEach(function (method) {
      define(prototype, method, function (arg) {
        return this._invoke(method, arg);
      });
    });
  }
  function AsyncIterator(generator, PromiseImpl) {
    function invoke(method, arg, resolve, reject) {
      var record = tryCatch(generator[method], generator, arg);
      if ("throw" !== record.type) {
        var result = record.arg,
          value = result.value;
        return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
          invoke("next", value, resolve, reject);
        }, function (err) {
          invoke("throw", err, resolve, reject);
        }) : PromiseImpl.resolve(value).then(function (unwrapped) {
          result.value = unwrapped, resolve(result);
        }, function (error) {
          return invoke("throw", error, resolve, reject);
        });
      }
      reject(record.arg);
    }
    var previousPromise;
    defineProperty(this, "_invoke", {
      value: function value(method, arg) {
        function callInvokeWithMethodAndArg() {
          return new PromiseImpl(function (resolve, reject) {
            invoke(method, arg, resolve, reject);
          });
        }
        return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
      }
    });
  }
  function makeInvokeMethod(innerFn, self, context) {
    var state = "suspendedStart";
    return function (method, arg) {
      if ("executing" === state) throw new Error("Generator is already running");
      if ("completed" === state) {
        if ("throw" === method) throw arg;
        return doneResult();
      }
      for (context.method = method, context.arg = arg;;) {
        var delegate = context.delegate;
        if (delegate) {
          var delegateResult = maybeInvokeDelegate(delegate, context);
          if (delegateResult) {
            if (delegateResult === ContinueSentinel) continue;
            return delegateResult;
          }
        }
        if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
          if ("suspendedStart" === state) throw state = "completed", context.arg;
          context.dispatchException(context.arg);
        } else "return" === context.method && context.abrupt("return", context.arg);
        state = "executing";
        var record = tryCatch(innerFn, self, context);
        if ("normal" === record.type) {
          if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
          return {
            value: record.arg,
            done: context.done
          };
        }
        "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
      }
    };
  }
  function maybeInvokeDelegate(delegate, context) {
    var methodName = context.method,
      method = delegate.iterator[methodName];
    if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
    var record = tryCatch(method, delegate.iterator, context.arg);
    if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
    var info = record.arg;
    return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  }
  function pushTryEntry(locs) {
    var entry = {
      tryLoc: locs[0]
    };
    1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  }
  function resetTryEntry(entry) {
    var record = entry.completion || {};
    record.type = "normal", delete record.arg, entry.completion = record;
  }
  function Context(tryLocsList) {
    this.tryEntries = [{
      tryLoc: "root"
    }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  }
  function values(iterable) {
    if (iterable) {
      var iteratorMethod = iterable[iteratorSymbol];
      if (iteratorMethod) return iteratorMethod.call(iterable);
      if ("function" == typeof iterable.next) return iterable;
      if (!isNaN(iterable.length)) {
        var i = -1,
          next = function next() {
            for (; ++i < iterable.length;) {
              if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
            }
            return next.value = undefined, next.done = !0, next;
          };
        return next.next = next;
      }
    }
    return {
      next: doneResult
    };
  }
  function doneResult() {
    return {
      value: undefined,
      done: !0
    };
  }
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
    value: GeneratorFunctionPrototype,
    configurable: !0
  }), defineProperty(GeneratorFunctionPrototype, "constructor", {
    value: GeneratorFunction,
    configurable: !0
  }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
    var ctor = "function" == typeof genFun && genFun.constructor;
    return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  }, exports.mark = function (genFun) {
    return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  }, exports.awrap = function (arg) {
    return {
      __await: arg
    };
  }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
    return this;
  }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
    void 0 === PromiseImpl && (PromiseImpl = Promise);
    var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
    return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
      return result.done ? result.value : iter.next();
    });
  }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
    return this;
  }), define(Gp, "toString", function () {
    return "[object Generator]";
  }), exports.keys = function (val) {
    var object = Object(val),
      keys = [];
    for (var key in object) {
      keys.push(key);
    }
    return keys.reverse(), function next() {
      for (; keys.length;) {
        var key = keys.pop();
        if (key in object) return next.value = key, next.done = !1, next;
      }
      return next.done = !0, next;
    };
  }, exports.values = values, Context.prototype = {
    constructor: Context,
    reset: function reset(skipTempReset) {
      if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
        "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
      }
    },
    stop: function stop() {
      this.done = !0;
      var rootRecord = this.tryEntries[0].completion;
      if ("throw" === rootRecord.type) throw rootRecord.arg;
      return this.rval;
    },
    dispatchException: function dispatchException(exception) {
      if (this.done) throw exception;
      var context = this;
      function handle(loc, caught) {
        return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
      }
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i],
          record = entry.completion;
        if ("root" === entry.tryLoc) return handle("end");
        if (entry.tryLoc <= this.prev) {
          var hasCatch = hasOwn.call(entry, "catchLoc"),
            hasFinally = hasOwn.call(entry, "finallyLoc");
          if (hasCatch && hasFinally) {
            if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
            if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
          } else if (hasCatch) {
            if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
          } else {
            if (!hasFinally) throw new Error("try statement without catch or finally");
            if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
          }
        }
      }
    },
    abrupt: function abrupt(type, arg) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
          var finallyEntry = entry;
          break;
        }
      }
      finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
      var record = finallyEntry ? finallyEntry.completion : {};
      return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
    },
    complete: function complete(record, afterLoc) {
      if ("throw" === record.type) throw record.arg;
      return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
    },
    finish: function finish(finallyLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
      }
    },
    "catch": function _catch(tryLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.tryLoc === tryLoc) {
          var record = entry.completion;
          if ("throw" === record.type) {
            var thrown = record.arg;
            resetTryEntry(entry);
          }
          return thrown;
        }
      }
      throw new Error("illegal catch attempt");
    },
    delegateYield: function delegateYield(iterable, resultName, nextLoc) {
      return this.delegate = {
        iterator: values(iterable),
        resultName: resultName,
        nextLoc: nextLoc
      }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
    }
  }, exports;
}
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 64 */
/*!*****************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  try {
    var info = gen[key](arg);
    var value = info.value;
  } catch (error) {
    reject(error);
    return;
  }
  if (info.done) {
    resolve(value);
  } else {
    Promise.resolve(value).then(_next, _throw);
  }
}
function _asyncToGenerator(fn) {
  return function () {
    var self = this,
      args = arguments;
    return new Promise(function (resolve, reject) {
      var gen = fn.apply(self, args);
      function _next(value) {
        asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
      }
      function _throw(err) {
        asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
      }
      _next(undefined);
    });
  };
}
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 65 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/function/colorGradient.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/**
 * 求两个颜色之间的渐变值
 * @param {string} startColor 开始的颜色
 * @param {string} endColor 结束的颜色
 * @param {number} step 颜色等分的份额
 * */
function colorGradient() {
  var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  var startR = startRGB[0];
  var startG = startRGB[1];
  var startB = startRGB[2];
  var endRGB = hexToRgb(endColor, false);
  var endR = endRGB[0];
  var endG = endRGB[1];
  var endB = endRGB[2];
  var sR = (endR - startR) / step; // 总差值
  var sG = (endG - startG) / step;
  var sB = (endB - startB) / step;
  var colorArr = [];
  for (var i = 0; i < step; i++) {
    // 计算每一步的hex值
    var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
    // 确保第一个颜色值为startColor的值
    if (i === 0) hex = rgbToHex(startColor);
    // 确保最后一个颜色值为endColor的值
    if (i === step - 1) hex = rgbToHex(endColor);
    colorArr.push(hex);
  }
  return colorArr;
}

// 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
function hexToRgb(sColor) {
  var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  sColor = String(sColor).toLowerCase();
  if (sColor && reg.test(sColor)) {
    if (sColor.length === 4) {
      var sColorNew = '#';
      for (var i = 1; i < 4; i += 1) {
        sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
      }
      sColor = sColorNew;
    }
    // 处理六位的颜色值
    var sColorChange = [];
    for (var _i = 1; _i < 7; _i += 2) {
      sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
    }
    if (!str) {
      return sColorChange;
    }
    return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  }
  if (/^(rgb|RGB)/.test(sColor)) {
    var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
    return arr.map(function (val) {
      return Number(val);
    });
  }
  return sColor;
}

// 将rgb表示方式转换为hex表示方式
function rgbToHex(rgb) {
  var _this = rgb;
  var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  if (/^(rgb|RGB)/.test(_this)) {
    var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
    var strHex = '#';
    for (var i = 0; i < aColor.length; i++) {
      var hex = Number(aColor[i]).toString(16);
      hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
      if (hex === '0') {
        hex += hex;
      }
      strHex += hex;
    }
    if (strHex.length !== 7) {
      strHex = _this;
    }
    return strHex;
  }
  if (reg.test(_this)) {
    var aNum = _this.replace(/#/, '').split('');
    if (aNum.length === 6) {
      return _this;
    }
    if (aNum.length === 3) {
      var numHex = '#';
      for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
        numHex += aNum[_i2] + aNum[_i2];
      }
      return numHex;
    }
  } else {
    return _this;
  }
}

/**
* JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba（255，255，255，0.5）字符串
* sHex为传入的十六进制的色值
* alpha为rgba的透明度
*/
function colorToRgba(color, alpha) {
  color = rgbToHex(color);
  // 十六进制颜色值的正则表达式
  var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  /* 16进制颜色转为RGB格式 */
  var sColor = String(color).toLowerCase();
  if (sColor && reg.test(sColor)) {
    if (sColor.length === 4) {
      var sColorNew = '#';
      for (var i = 1; i < 4; i += 1) {
        sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
      }
      sColor = sColorNew;
    }
    // 处理六位的颜色值
    var sColorChange = [];
    for (var _i3 = 1; _i3 < 7; _i3 += 2) {
      sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
    }
    // return sColorChange.join(',')
    return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  }
  return sColor;
}
var _default = {
  colorGradient: colorGradient,
  hexToRgb: hexToRgb,
  rgbToHex: rgbToHex,
  colorToRgba: colorToRgba
};
exports.default = _default;

/***/ }),
/* 66 */
/*!****************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/function/test.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
/**
 * 验证电子邮箱格式
 */
function email(value) {
  return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
}

/**
 * 验证手机格式
 */
function mobile(value) {
  return /^1[23456789]\d{9}$/.test(value);
}

/**
 * 验证URL格式
 */
function url(value) {
  return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(value);
}

/**
 * 验证日期格式
 */
function date(value) {
  if (!value) return false;
  // 判断是否数值或者字符串数值(意味着为时间戳)，转为数值，否则new Date无法识别字符串时间戳
  if (number(value)) value = +value;
  return !/Invalid|NaN/.test(new Date(value).toString());
}

/**
 * 验证ISO类型的日期格式
 */
function dateISO(value) {
  return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
}

/**
 * 验证十进制数字
 */
function number(value) {
  return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
}

/**
 * 验证字符串
 */
function string(value) {
  return typeof value === 'string';
}

/**
 * 验证整数
 */
function digits(value) {
  return /^\d+$/.test(value);
}

/**
 * 验证身份证号码
 */
function idCard(value) {
  return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(value);
}

/**
 * 是否车牌号
 */
function carNo(value) {
  // 新能源车牌
  var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  // 旧车牌
  var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  if (value.length === 7) {
    return creg.test(value);
  }
  if (value.length === 8) {
    return xreg.test(value);
  }
  return false;
}

/**
 * 金额,只允许2位小数
 */
function amount(value) {
  // 金额，只允许保留两位小数
  return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
}

/**
 * 中文
 */
function chinese(value) {
  var reg = /^[\u4e00-\u9fa5]+$/gi;
  return reg.test(value);
}

/**
 * 只能输入字母
 */
function letter(value) {
  return /^[a-zA-Z]*$/.test(value);
}

/**
 * 只能是字母或者数字
 */
function enOrNum(value) {
  // 英文或者数字
  var reg = /^[0-9a-zA-Z]*$/g;
  return reg.test(value);
}

/**
 * 验证是否包含某个值
 */
function contains(value, param) {
  return value.indexOf(param) >= 0;
}

/**
 * 验证一个值范围[min, max]
 */
function range(value, param) {
  return value >= param[0] && value <= param[1];
}

/**
 * 验证一个长度范围[min, max]
 */
function rangeLength(value, param) {
  return value.length >= param[0] && value.length <= param[1];
}

/**
 * 是否固定电话
 */
function landline(value) {
  var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  return reg.test(value);
}

/**
 * 判断是否为空
 */
function empty(value) {
  switch ((0, _typeof2.default)(value)) {
    case 'undefined':
      return true;
    case 'string':
      if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
      break;
    case 'boolean':
      if (!value) return true;
      break;
    case 'number':
      if (value === 0 || isNaN(value)) return true;
      break;
    case 'object':
      if (value === null || value.length === 0) return true;
      for (var i in value) {
        return false;
      }
      return true;
  }
  return false;
}

/**
 * 是否json字符串
 */
function jsonString(value) {
  if (typeof value === 'string') {
    try {
      var obj = JSON.parse(value);
      if ((0, _typeof2.default)(obj) === 'object' && obj) {
        return true;
      }
      return false;
    } catch (e) {
      return false;
    }
  }
  return false;
}

/**
 * 是否数组
 */
function array(value) {
  if (typeof Array.isArray === 'function') {
    return Array.isArray(value);
  }
  return Object.prototype.toString.call(value) === '[object Array]';
}

/**
 * 是否对象
 */
function object(value) {
  return Object.prototype.toString.call(value) === '[object Object]';
}

/**
 * 是否短信验证码
 */
function code(value) {
  var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  return new RegExp("^\\d{".concat(len, "}$")).test(value);
}

/**
 * 是否函数方法
 * @param {Object} value
 */
function func(value) {
  return typeof value === 'function';
}

/**
 * 是否promise对象
 * @param {Object} value
 */
function promise(value) {
  return object(value) && func(value.then) && func(value.catch);
}

/** 是否图片格式
 * @param {Object} value
 */
function image(value) {
  var newValue = value.split('?')[0];
  var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  return IMAGE_REGEXP.test(newValue);
}

/**
 * 是否视频格式
 * @param {Object} value
 */
function video(value) {
  var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  return VIDEO_REGEXP.test(value);
}

/**
 * 是否为正则对象
 * @param {Object}
 * @return {Boolean}
 */
function regExp(o) {
  return o && Object.prototype.toString.call(o) === '[object RegExp]';
}
var _default = {
  email: email,
  mobile: mobile,
  url: url,
  date: date,
  dateISO: dateISO,
  number: number,
  digits: digits,
  idCard: idCard,
  carNo: carNo,
  amount: amount,
  chinese: chinese,
  letter: letter,
  enOrNum: enOrNum,
  contains: contains,
  range: range,
  rangeLength: rangeLength,
  empty: empty,
  isEmpty: empty,
  jsonString: jsonString,
  landline: landline,
  object: object,
  array: array,
  code: code,
  func: func,
  promise: promise,
  video: video,
  image: image,
  regExp: regExp,
  string: string
};
exports.default = _default;

/***/ }),
/* 67 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/function/debounce.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var timeout = null;

/**
 * 防抖原理：一定时间内，只有最后一次操作，再过wait毫秒后才执行函数
 *
 * @param {Function} func 要执行的回调函数
 * @param {Number} wait 延时的时间
 * @param {Boolean} immediate 是否立即执行
 * @return null
 */
function debounce(func) {
  var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  // 清除定时器
  if (timeout !== null) clearTimeout(timeout);
  // 立即执行，此类情况一般用不到
  if (immediate) {
    var callNow = !timeout;
    timeout = setTimeout(function () {
      timeout = null;
    }, wait);
    if (callNow) typeof func === 'function' && func();
  } else {
    // 设置定时器，当最后一次操作后，timeout不会再被清除，所以在延时wait毫秒后执行func回调方法
    timeout = setTimeout(function () {
      typeof func === 'function' && func();
    }, wait);
  }
}
var _default = debounce;
exports.default = _default;

/***/ }),
/* 68 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/function/throttle.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var timer;
var flag;
/**
 * 节流原理：在一定时间内，只能触发一次
 *
 * @param {Function} func 要执行的回调函数
 * @param {Number} wait 延时的时间
 * @param {Boolean} immediate 是否立即执行
 * @return null
 */
function throttle(func) {
  var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  if (immediate) {
    if (!flag) {
      flag = true;
      // 如果是立即执行，则在wait毫秒内开始时执行
      typeof func === 'function' && func();
      timer = setTimeout(function () {
        flag = false;
      }, wait);
    }
  } else if (!flag) {
    flag = true;
    // 如果是非立即执行，则在wait毫秒内的结束处执行
    timer = setTimeout(function () {
      flag = false;
      typeof func === 'function' && func();
    }, wait);
  }
}
var _default = throttle;
exports.default = _default;

/***/ }),
/* 69 */
/*!*****************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/function/index.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 66));
var _digit = __webpack_require__(/*! ./digit.js */ 70);
/**
 * @description 如果value小于min，取min；如果value大于max，取max
 * @param {number} min 
 * @param {number} max 
 * @param {number} value
 */
function range() {
  var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  return Math.max(min, Math.min(max, Number(value)));
}

/**
 * @description 用于获取用户传递值的px值  如果用户传递了"xxpx"或者"xxrpx"，取出其数值部分，如果是"xxxrpx"还需要用过uni.upx2px进行转换
 * @param {number|string} value 用户传递值的px值
 * @param {boolean} unit 
 * @returns {number|string}
 */
function getPx(value) {
  var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  if (_test.default.number(value)) {
    return unit ? "".concat(value, "px") : Number(value);
  }
  // 如果带有rpx，先取出其数值部分，再转为px值
  if (/(rpx|upx)$/.test(value)) {
    return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  }
  return unit ? "".concat(parseInt(value), "px") : parseInt(value);
}

/**
 * @description 进行延时，以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
 * @param {number} value 堵塞时间 单位ms 毫秒
 * @returns {Promise} 返回promise
 */
function sleep() {
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  return new Promise(function (resolve) {
    setTimeout(function () {
      resolve();
    }, value);
  });
}
/**
 * @description 运行期判断平台
 * @returns {string} 返回所在平台(小写) 
 * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
 */
function os() {
  return uni.getSystemInfoSync().platform.toLowerCase();
}
/**
 * @description 获取系统信息同步接口
 * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync 
 */
function sys() {
  return uni.getSystemInfoSync();
}

/**
 * @description 取一个区间数
 * @param {Number} min 最小值
 * @param {Number} max 最大值
 */
function random(min, max) {
  if (min >= 0 && max > 0 && max >= min) {
    var gab = max - min + 1;
    return Math.floor(Math.random() * gab + min);
  }
  return 0;
}

/**
 * @param {Number} len uuid的长度
 * @param {Boolean} firstU 将返回的首字母置为"u"
 * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
 */
function guid() {
  var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  var uuid = [];
  radix = radix || chars.length;
  if (len) {
    // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
    for (var i = 0; i < len; i++) {
      uuid[i] = chars[0 | Math.random() * radix];
    }
  } else {
    var r;
    // rfc4122标准要求返回的uuid中,某些位为固定的字符
    uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
    uuid[14] = '4';
    for (var _i = 0; _i < 36; _i++) {
      if (!uuid[_i]) {
        r = 0 | Math.random() * 16;
        uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
      }
    }
  }
  // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  if (firstU) {
    uuid.shift();
    return "u".concat(uuid.join(''));
  }
  return uuid.join('');
}

/**
* @description 获取父组件的参数，因为支付宝小程序不支持provide/inject的写法
   this.$parent在非H5中，可以准确获取到父组件，但是在H5中，需要多次this.$parent.$parent.xxx
   这里默认值等于undefined有它的含义，因为最顶层元素(组件)的$parent就是undefined，意味着不传name
   值(默认为undefined)，就是查找最顶层的$parent
*  @param {string|undefined} name 父组件的参数名
*/
function $parent() {
  var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  var parent = this.$parent;
  // 通过while历遍，这里主要是为了H5需要多层解析的问题
  while (parent) {
    // 父组件
    if (parent.$options && parent.$options.name !== name) {
      // 如果组件的name不相等，继续上一级寻找
      parent = parent.$parent;
    } else {
      return parent;
    }
  }
  return false;
}

/**
 * @description 样式转换
 * 对象转字符串，或者字符串转对象
 * @param {object | string} customStyle 需要转换的目标
 * @param {String} target 转换的目的，object-转为对象，string-转为字符串
 * @returns {object|string}
 */
function addStyle(customStyle) {
  var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  // 字符串转字符串，对象转对象情形，直接返回
  if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
    return customStyle;
  }
  // 字符串转对象
  if (target === 'object') {
    // 去除字符串样式中的两端空格(中间的空格不能去掉，比如padding: 20px 0如果去掉了就错了)，空格是无用的
    customStyle = trim(customStyle);
    // 根据";"将字符串转为数组形式
    var styleArray = customStyle.split(';');
    var style = {};
    // 历遍数组，拼接成对象
    for (var i = 0; i < styleArray.length; i++) {
      // 'font-size:20px;color:red;'，如此最后字符串有";"的话，会导致styleArray最后一个元素为空字符串，这里需要过滤
      if (styleArray[i]) {
        var item = styleArray[i].split(':');
        style[trim(item[0])] = trim(item[1]);
      }
    }
    return style;
  }
  // 这里为对象转字符串形式
  var string = '';
  for (var _i2 in customStyle) {
    // 驼峰转为中划线的形式，否则css内联样式，无法识别驼峰样式属性名
    var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
    string += "".concat(key, ":").concat(customStyle[_i2], ";");
  }
  // 去除两端空格
  return trim(string);
}

/**
 * @description 添加单位，如果有rpx，upx，%，px等单位结尾或者值为auto，直接返回，否则加上px单位结尾
 * @param {string|number} value 需要添加单位的值
 * @param {string} unit 添加的单位名 比如px
 */
function addUnit() {
  var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (_uni$$u$config$unit = (_uni = uni) === null || _uni === void 0 ? void 0 : (_uni$$u = _uni.$u) === null || _uni$$u === void 0 ? void 0 : (_uni$$u$config = _uni$$u.config) === null || _uni$$u$config === void 0 ? void 0 : _uni$$u$config.unit) !== null && _uni$$u$config$unit !== void 0 ? _uni$$u$config$unit : 'px';
  value = String(value);
  // 用uView内置验证规则中的number判断是否为数值
  return _test.default.number(value) ? "".concat(value).concat(unit) : value;
}

/**
 * @description 深度克隆
 * @param {object} obj 需要深度克隆的对象
 * @returns {*} 克隆后的对象或者原值（不是对象）
 */
function deepClone(obj) {
  // 对常见的“非”值，直接返回原来值
  if ([null, undefined, NaN, false].includes(obj)) return obj;
  if ((0, _typeof2.default)(obj) !== 'object' && typeof obj !== 'function') {
    // 原始类型直接返回
    return obj;
  }
  var o = _test.default.array(obj) ? [] : {};
  for (var i in obj) {
    if (obj.hasOwnProperty(i)) {
      o[i] = (0, _typeof2.default)(obj[i]) === 'object' ? deepClone(obj[i]) : obj[i];
    }
  }
  return o;
}

/**
 * @description JS对象深度合并
 * @param {object} target 需要拷贝的对象
 * @param {object} source 拷贝的来源对象
 * @returns {object|boolean} 深度合并后的对象或者false（入参有不是对象）
 */
function deepMerge() {
  var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  target = deepClone(target);
  if ((0, _typeof2.default)(target) !== 'object' || (0, _typeof2.default)(source) !== 'object') return false;
  for (var prop in source) {
    if (!source.hasOwnProperty(prop)) continue;
    if (prop in target) {
      if ((0, _typeof2.default)(target[prop]) !== 'object') {
        target[prop] = source[prop];
      } else if ((0, _typeof2.default)(source[prop]) !== 'object') {
        target[prop] = source[prop];
      } else if (target[prop].concat && source[prop].concat) {
        target[prop] = target[prop].concat(source[prop]);
      } else {
        target[prop] = deepMerge(target[prop], source[prop]);
      }
    } else {
      target[prop] = source[prop];
    }
  }
  return target;
}

/**
 * @description error提示
 * @param {*} err 错误内容
 */
function error(err) {
  // 开发环境才提示，生产环境不会提示
  if (true) {
    console.error("uView\u63D0\u793A\uFF1A".concat(err));
  }
}

/**
 * @description 打乱数组
 * @param {array} array 需要打乱的数组
 * @returns {array} 打乱后的数组
 */
function randomArray() {
  var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  return array.sort(function () {
    return Math.random() - 0.5;
  });
}

// padStart 的 polyfill，因为某些机型或情况，还无法支持es7的padStart，比如电脑版的微信小程序
// 所以这里做一个兼容polyfill的兼容处理
if (!String.prototype.padStart) {
  // 为了方便表示这里 fillString 用了ES6 的默认参数，不影响理解
  String.prototype.padStart = function (maxLength) {
    var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
    if (Object.prototype.toString.call(fillString) !== '[object String]') {
      throw new TypeError('fillString must be String');
    }
    var str = this;
    // 返回 String(str) 这里是为了使返回的值是字符串字面量，在控制台中更符合直觉
    if (str.length >= maxLength) return String(str);
    var fillLength = maxLength - str.length;
    var times = Math.ceil(fillLength / fillString.length);
    while (times >>= 1) {
      fillString += fillString;
      if (times === 1) {
        fillString += fillString;
      }
    }
    return fillString.slice(0, fillLength) + str;
  };
}

/**
 * @description 格式化时间
 * @param {String|Number} dateTime 需要格式化的时间戳
 * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
 * @returns {string} 返回格式化后的字符串
 */
function timeFormat() {
  var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  var date;
  // 若传入时间为假值，则取当前时间
  if (!dateTime) {
    date = new Date();
  }
  // 若为unix秒时间戳，则转为毫秒时间戳（逻辑有点奇怪，但不敢改，以保证历史兼容）
  else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
    date = new Date(dateTime * 1000);
  }
  // 若用户传入字符串格式时间戳，new Date无法解析，需做兼容
  else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
    date = new Date(Number(dateTime));
  }
  // 其他都认为符合 RFC 2822 规范
  else {
    // 处理平台性差异，在Safari/Webkit中，new Date仅支持/作为分割符的字符串时间
    date = new Date(typeof dateTime === 'string' ? dateTime.replace(/-/g, '/') : dateTime);
  }
  var timeSource = {
    'y': date.getFullYear().toString(),
    // 年
    'm': (date.getMonth() + 1).toString().padStart(2, '0'),
    // 月
    'd': date.getDate().toString().padStart(2, '0'),
    // 日
    'h': date.getHours().toString().padStart(2, '0'),
    // 时
    'M': date.getMinutes().toString().padStart(2, '0'),
    // 分
    's': date.getSeconds().toString().padStart(2, '0') // 秒
    // 有其他格式化字符需求可以继续添加，必须转化成字符串
  };

  for (var key in timeSource) {
    var _ref = new RegExp("".concat(key, "+")).exec(formatStr) || [],
      _ref2 = (0, _slicedToArray2.default)(_ref, 1),
      ret = _ref2[0];
    if (ret) {
      // 年可能只需展示两位
      var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
      formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
    }
  }
  return formatStr;
}

/**
 * @description 时间戳转为多久之前
 * @param {String|Number} timestamp 时间戳
 * @param {String|Boolean} format 
 * 格式化规则如果为时间格式字符串，超出一定时间范围，返回固定的时间格式；
 * 如果为布尔值false，无论什么时间，都返回多久以前的格式
 * @returns {string} 转化后的内容
 */
function timeFrom() {
  var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  if (timestamp == null) timestamp = Number(new Date());
  timestamp = parseInt(timestamp);
  // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  if (timestamp.toString().length == 10) timestamp *= 1000;
  var timer = new Date().getTime() - timestamp;
  timer = parseInt(timer / 1000);
  // 如果小于5分钟,则返回"刚刚",其他以此类推
  var tips = '';
  switch (true) {
    case timer < 300:
      tips = '刚刚';
      break;
    case timer >= 300 && timer < 3600:
      tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
      break;
    case timer >= 3600 && timer < 86400:
      tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
      break;
    case timer >= 86400 && timer < 2592000:
      tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
      break;
    default:
      // 如果format为false，则无论什么时间戳，都显示xx之前
      if (format === false) {
        if (timer >= 2592000 && timer < 365 * 86400) {
          tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
        } else {
          tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
        }
      } else {
        tips = timeFormat(timestamp, format);
      }
  }
  return tips;
}

/**
 * @description 去除空格
 * @param String str 需要去除空格的字符串
 * @param String pos both(左右)|left|right|all 默认both
 */
function trim(str) {
  var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  str = String(str);
  if (pos == 'both') {
    return str.replace(/^\s+|\s+$/g, '');
  }
  if (pos == 'left') {
    return str.replace(/^\s*/, '');
  }
  if (pos == 'right') {
    return str.replace(/(\s*$)/g, '');
  }
  if (pos == 'all') {
    return str.replace(/\s+/g, '');
  }
  return str;
}

/**
 * @description 对象转url参数
 * @param {object} data,对象
 * @param {Boolean} isPrefix,是否自动加上"?"
 * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
 */
function queryParams() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  var prefix = isPrefix ? '?' : '';
  var _result = [];
  if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  var _loop = function _loop(key) {
    var value = data[key];
    // 去掉为空的参数
    if (['', undefined, null].indexOf(value) >= 0) {
      return "continue";
    }
    // 如果值为数组，另行处理
    if (value.constructor === Array) {
      // e.g. {ids: [1, 2, 3]}
      switch (arrayFormat) {
        case 'indices':
          // 结果: ids[0]=1&ids[1]=2&ids[2]=3
          for (var i = 0; i < value.length; i++) {
            _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
          }
          break;
        case 'brackets':
          // 结果: ids[]=1&ids[]=2&ids[]=3
          value.forEach(function (_value) {
            _result.push("".concat(key, "[]=").concat(_value));
          });
          break;
        case 'repeat':
          // 结果: ids=1&ids=2&ids=3
          value.forEach(function (_value) {
            _result.push("".concat(key, "=").concat(_value));
          });
          break;
        case 'comma':
          // 结果: ids=1,2,3
          var commaStr = '';
          value.forEach(function (_value) {
            commaStr += (commaStr ? ',' : '') + _value;
          });
          _result.push("".concat(key, "=").concat(commaStr));
          break;
        default:
          value.forEach(function (_value) {
            _result.push("".concat(key, "[]=").concat(_value));
          });
      }
    } else {
      _result.push("".concat(key, "=").concat(value));
    }
  };
  for (var key in data) {
    var _ret = _loop(key);
    if (_ret === "continue") continue;
  }
  return _result.length ? prefix + _result.join('&') : '';
}

/**
 * 显示消息提示框
 * @param {String} title 提示的内容，长度与 icon 取值有关。
 * @param {Number} duration 提示的延迟时间，单位毫秒，默认：2000
 */
function toast(title) {
  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  uni.showToast({
    title: String(title),
    icon: 'none',
    duration: duration
  });
}

/**
 * @description 根据主题type值,获取对应的图标
 * @param {String} type 主题名称,primary|info|error|warning|success
 * @param {boolean} fill 是否使用fill填充实体的图标
 */
function type2icon() {
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  // 如果非预置值,默认为success
  if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  var iconName = '';
  // 目前(2019-12-12),info和primary使用同一个图标
  switch (type) {
    case 'primary':
      iconName = 'info-circle';
      break;
    case 'info':
      iconName = 'info-circle';
      break;
    case 'error':
      iconName = 'close-circle';
      break;
    case 'warning':
      iconName = 'error-circle';
      break;
    case 'success':
      iconName = 'checkmark-circle';
      break;
    default:
      iconName = 'checkmark-circle';
  }
  // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  if (fill) iconName += '-fill';
  return iconName;
}

/**
 * @description 数字格式化
 * @param {number|string} number 要格式化的数字
 * @param {number} decimals 保留几位小数
 * @param {string} decimalPoint 小数点符号
 * @param {string} thousandsSeparator 千分位符号
 * @returns {string} 格式化后的数字
 */
function priceFormat(number) {
  var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  var n = !isFinite(+number) ? 0 : +number;
  var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  var s = '';
  s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  var re = /(-?\d+)(\d{3})/;
  while (re.test(s[0])) {
    s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  }
  if ((s[1] || '').length < prec) {
    s[1] = s[1] || '';
    s[1] += new Array(prec - s[1].length + 1).join('0');
  }
  return s.join(dec);
}

/**
 * @description 获取duration值
 * 如果带有ms或者s直接返回，如果大于一定值，认为是ms单位，小于一定值，认为是s单位
 * 比如以30位阈值，那么300大于30，可以理解为用户想要的是300ms，而不是想花300s去执行一个动画
 * @param {String|number} value 比如: "1s"|"100ms"|1|100
 * @param {boolean} unit  提示: 如果是false 默认返回number
 * @return {string|number} 
 */
function getDuration(value) {
  var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  var valueNum = parseInt(value);
  if (unit) {
    if (/s$/.test(value)) return value;
    return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  }
  if (/ms$/.test(value)) return valueNum;
  if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  return valueNum;
}

/**
 * @description 日期的月或日补零操作
 * @param {String} value 需要补零的值
 */
function padZero(value) {
  return "00".concat(value).slice(-2);
}

/**
 * @description 在u-form的子组件内容发生变化，或者失去焦点时，尝试通知u-form执行校验方法
 * @param {*} instance
 * @param {*} event
 */
function formValidate(instance, event) {
  var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  var form = uni.$u.$parent.call(instance, 'u-form');
  // 如果发生变化的input或者textarea等，其父组件中有u-form-item或者u-form等，就执行form的validate方法
  // 同时将form-item的pros传递给form，让其进行精确对象验证
  if (formItem && form) {
    form.validateField(formItem.prop, function () {}, event);
  }
}

/**
 * @description 获取某个对象下的属性，用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
 * @param {object} obj 对象
 * @param {string} key 需要获取的属性字段
 * @returns {*}
 */
function getProperty(obj, key) {
  if (!obj) {
    return;
  }
  if (typeof key !== 'string' || key === '') {
    return '';
  }
  if (key.indexOf('.') !== -1) {
    var keys = key.split('.');
    var firstObj = obj[keys[0]] || {};
    for (var i = 1; i < keys.length; i++) {
      if (firstObj) {
        firstObj = firstObj[keys[i]];
      }
    }
    return firstObj;
  }
  return obj[key];
}

/**
 * @description 设置对象的属性值，如果'a.b.c'的形式进行设置
 * @param {object} obj 对象
 * @param {string} key 需要设置的属性
 * @param {string} value 设置的值
 */
function setProperty(obj, key, value) {
  if (!obj) {
    return;
  }
  // 递归赋值
  var inFn = function inFn(_obj, keys, v) {
    // 最后一个属性key
    if (keys.length === 1) {
      _obj[keys[0]] = v;
      return;
    }
    // 0~length-1个key
    while (keys.length > 1) {
      var k = keys[0];
      if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
        _obj[k] = {};
      }
      var _key = keys.shift();
      // 自调用判断是否存在属性，不存在则自动创建对象
      inFn(_obj[k], keys, v);
    }
  };
  if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
    // 支持多层级赋值操作
    var keys = key.split('.');
    inFn(obj, keys, value);
  } else {
    obj[key] = value;
  }
}

/**
 * @description 获取当前页面路径
 */
function page() {
  var _pages$route, _pages;
  var pages = getCurrentPages();
  // 某些特殊情况下(比如页面进行redirectTo时的一些时机)，pages可能为空数组
  return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
}

/**
 * @description 获取当前路由栈实例数组
 */
function pages() {
  var pages = getCurrentPages();
  return pages;
}

/**
 * @description 修改uView内置属性值
 * @param {object} props 修改内置props属性
 * @param {object} config 修改内置config属性
 * @param {object} color 修改内置color属性
 * @param {object} zIndex 修改内置zIndex属性
 */
function setConfig(_ref3) {
  var _ref3$props = _ref3.props,
    props = _ref3$props === void 0 ? {} : _ref3$props,
    _ref3$config = _ref3.config,
    config = _ref3$config === void 0 ? {} : _ref3$config,
    _ref3$color = _ref3.color,
    color = _ref3$color === void 0 ? {} : _ref3$color,
    _ref3$zIndex = _ref3.zIndex,
    zIndex = _ref3$zIndex === void 0 ? {} : _ref3$zIndex;
  var deepMerge = uni.$u.deepMerge;
  uni.$u.config = deepMerge(uni.$u.config, config);
  uni.$u.props = deepMerge(uni.$u.props, props);
  uni.$u.color = deepMerge(uni.$u.color, color);
  uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
}
var _default = {
  range: range,
  getPx: getPx,
  sleep: sleep,
  os: os,
  sys: sys,
  random: random,
  guid: guid,
  $parent: $parent,
  addStyle: addStyle,
  addUnit: addUnit,
  deepClone: deepClone,
  deepMerge: deepMerge,
  error: error,
  randomArray: randomArray,
  timeFormat: timeFormat,
  timeFrom: timeFrom,
  trim: trim,
  queryParams: queryParams,
  toast: toast,
  type2icon: type2icon,
  priceFormat: priceFormat,
  getDuration: getDuration,
  padZero: padZero,
  formValidate: formValidate,
  getProperty: getProperty,
  setProperty: setProperty,
  page: page,
  pages: pages,
  setConfig: setConfig
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 70 */
/*!*****************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/function/digit.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
exports.divide = divide;
exports.enableBoundaryChecking = enableBoundaryChecking;
exports.minus = minus;
exports.plus = plus;
exports.round = round;
exports.times = times;
var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 71));
var _boundaryCheckingState = true; // 是否进行越界检查的全局开关

/**
 * 把错误的数据转正
 * @private
 * @example strip(0.09999999999999998)=0.1
 */
function strip(num) {
  var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  return +parseFloat(Number(num).toPrecision(precision));
}

/**
 * Return digits length of a number
 * @private
 * @param {*number} num Input number
 */
function digitLength(num) {
  // Get digit length of e
  var eSplit = num.toString().split(/[eE]/);
  var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  return len > 0 ? len : 0;
}

/**
 * 把小数转成整数,如果是小数则放大成整数
 * @private
 * @param {*number} num 输入数
 */
function float2Fixed(num) {
  if (num.toString().indexOf('e') === -1) {
    return Number(num.toString().replace('.', ''));
  }
  var dLen = digitLength(num);
  return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
}

/**
 * 检测数字是否越界，如果越界给出提示
 * @private
 * @param {*number} num 输入数
 */
function checkBoundary(num) {
  if (_boundaryCheckingState) {
    if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
      console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
    }
  }
}

/**
 * 把递归操作扁平迭代化
 * @param {number[]} arr 要操作的数字数组
 * @param {function} operation 迭代操作
 * @private
 */
function iteratorOperation(arr, operation) {
  var _arr = (0, _toArray2.default)(arr),
    num1 = _arr[0],
    num2 = _arr[1],
    others = _arr.slice(2);
  var res = operation(num1, num2);
  others.forEach(function (num) {
    res = operation(res, num);
  });
  return res;
}

/**
 * 高精度乘法
 * @export
 */
function times() {
  for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
    nums[_key] = arguments[_key];
  }
  if (nums.length > 2) {
    return iteratorOperation(nums, times);
  }
  var num1 = nums[0],
    num2 = nums[1];
  var num1Changed = float2Fixed(num1);
  var num2Changed = float2Fixed(num2);
  var baseNum = digitLength(num1) + digitLength(num2);
  var leftValue = num1Changed * num2Changed;
  checkBoundary(leftValue);
  return leftValue / Math.pow(10, baseNum);
}

/**
 * 高精度加法
 * @export
 */
function plus() {
  for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
    nums[_key2] = arguments[_key2];
  }
  if (nums.length > 2) {
    return iteratorOperation(nums, plus);
  }
  var num1 = nums[0],
    num2 = nums[1];
  // 取最大的小数位
  var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  // 把小数都转为整数然后再计算
  return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
}

/**
 * 高精度减法
 * @export
 */
function minus() {
  for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
    nums[_key3] = arguments[_key3];
  }
  if (nums.length > 2) {
    return iteratorOperation(nums, minus);
  }
  var num1 = nums[0],
    num2 = nums[1];
  var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
}

/**
 * 高精度除法
 * @export
 */
function divide() {
  for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
    nums[_key4] = arguments[_key4];
  }
  if (nums.length > 2) {
    return iteratorOperation(nums, divide);
  }
  var num1 = nums[0],
    num2 = nums[1];
  var num1Changed = float2Fixed(num1);
  var num2Changed = float2Fixed(num2);
  checkBoundary(num1Changed);
  checkBoundary(num2Changed);
  // 重要，这里必须用strip进行修正
  return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
}

/**
 * 四舍五入
 * @export
 */
function round(num, ratio) {
  var base = Math.pow(10, ratio);
  var result = divide(Math.round(Math.abs(times(num, base))), base);
  if (num < 0 && result !== 0) {
    result = times(result, -1);
  }
  // 位数不足则补0
  return result;
}

/**
 * 是否进行边界检查，默认开启
 * @param flag 标记开关，true 为开启，false 为关闭，默认为 true
 * @export
 */
function enableBoundaryChecking() {
  var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  _boundaryCheckingState = flag;
}
var _default = {
  times: times,
  plus: plus,
  minus: minus,
  divide: divide,
  round: round,
  enableBoundaryChecking: enableBoundaryChecking
};
exports.default = _default;

/***/ }),
/* 71 */
/*!********************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
function _toArray(arr) {
  return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
}
module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),
/* 72 */
/*!****************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/config.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
// 此版本发布于2022-06-17
var version = '2.0.33';

// 开发环境才提示，生产环境不会提示
if (true) {
  console.log("\n %c uView V".concat(version, " %c https://www.uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0;', 'color: #3c9cff;background: #ffffff; padding:5px 0;');
}
var _default = {
  v: version,
  version: version,
  // 主题名称
  type: ['primary', 'success', 'info', 'error', 'warning'],
  // 颜色部分，本来可以通过scss的:export导出供js使用，但是奈何nvue不支持
  color: {
    'u-primary': '#2979ff',
    'u-warning': '#ff9900',
    'u-success': '#19be6b',
    'u-error': '#fa3534',
    'u-info': '#909399',
    'u-main-color': '#303133',
    'u-content-color': '#606266',
    'u-tips-color': '#909399',
    'u-light-color': '#c0c4cc'
  },
  // 默认单位，可以通过配置为rpx，那么在用于传入组件大小参数为数值时，就默认为rpx
  unit: 'px'
};
exports.default = _default;

/***/ }),
/* 73 */
/*!***************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 72));
var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 74));
var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 75));
var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 76));
var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 77));
var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 78));
var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 79));
var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 80));
var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 81));
var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 82));
var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 83));
var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 84));
var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 85));
var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 86));
var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 87));
var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 88));
var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 89));
var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 90));
var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 91));
var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 92));
var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 93));
var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 94));
var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 95));
var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 96));
var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 97));
var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 98));
var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 99));
var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 100));
var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 101));
var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 102));
var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 103));
var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 104));
var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 105));
var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 106));
var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 107));
var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 108));
var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 109));
var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 110));
var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 111));
var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 112));
var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 113));
var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 114));
var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 115));
var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 116));
var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 117));
var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 118));
var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 119));
var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 120));
var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 122));
var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 123));
var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 124));
var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 125));
var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 126));
var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 127));
var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 128));
var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 129));
var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 130));
var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 131));
var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 132));
var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 133));
var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 134));
var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 135));
var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 136));
var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 137));
var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 138));
var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 139));
var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 140));
var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 141));
var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 142));
var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 143));
var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 144));
var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 145));
var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 146));
var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 147));
var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 148));
var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 149));
var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 150));
var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 151));
var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 152));
var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 153));
var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 154));
var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 155));
var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 156));
var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 157));
var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 158));
var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 159));
var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 160));
var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 161));
var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 162));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var color = _config.default.color;
var _default = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _actionSheet.default), _album.default), _alert.default), _avatar.default), _avatarGroup.default), _backtop.default), _badge.default), _button.default), _calendar.default), _carKeyboard.default), _cell.default), _cellGroup.default), _checkbox.default), _checkboxGroup.default), _circleProgress.default), _code.default), _codeInput.default), _col.default), _collapse.default), _collapseItem.default), _columnNotice.default), _countDown.default), _countTo.default), _datetimePicker.default), _divider.default), _empty.default), _form.default), _formItem.default), _gap.default), _grid.default), _gridItem.default), _icon.default), _image.default), _indexAnchor.default), _indexList.default), _input.default), _keyboard.default), _line.default), _lineProgress.default), _link.default), _list.default), _listItem.default), _loadingIcon.default), _loadingPage.default), _loadmore.default), _modal.default), _navbar.default), _noNetwork.default), _noticeBar.default), _notify.default), _numberBox.default), _numberKeyboard.default), _overlay.default), _parse.default), _picker.default), _popup.default), _radio.default), _radioGroup.default), _rate.default), _readMore.default), _row.default), _rowNotice.default), _scrollList.default), _search.default), _section.default), _skeleton.default), _slider.default), _statusBar.default), _steps.default), _stepsItem.default), _sticky.default), _subsection.default), _swipeAction.default), _swipeActionItem.default), _swiper.default), _swipterIndicator.default), _switch2.default), _tabbar.default), _tabbarItem.default), _tabs.default), _tag.default), _text.default), _textarea.default), _toast.default), _toolbar.default), _tooltip.default), _transition.default), _upload.default);
exports.default = _default;

/***/ }),
/* 74 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/actionSheet.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:44:35
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
 */
var _default = {
  // action-sheet组件
  actionSheet: {
    show: false,
    title: '',
    description: '',
    actions: function actions() {
      return [];
    },
    index: '',
    cancelText: '',
    closeOnClickAction: true,
    safeAreaInsetBottom: true,
    openType: '',
    closeOnClickOverlay: true,
    round: 0
  }
};
exports.default = _default;

/***/ }),
/* 75 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/album.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:47:24
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/album.js
 */
var _default = {
  // album 组件
  album: {
    urls: function urls() {
      return [];
    },
    keyName: '',
    singleSize: 180,
    multipleSize: 70,
    space: 6,
    singleMode: 'scaleToFill',
    multipleMode: 'aspectFill',
    maxCount: 9,
    previewFullImage: true,
    rowCount: 3,
    showMore: true
  }
};
exports.default = _default;

/***/ }),
/* 76 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/alert.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:48:53
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/alert.js
 */
var _default = {
  // alert警告组件
  alert: {
    title: '',
    type: 'warning',
    description: '',
    closable: false,
    showIcon: false,
    effect: 'light',
    center: false,
    fontSize: 14
  }
};
exports.default = _default;

/***/ }),
/* 77 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/avatar.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:49:22
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/avatar.js
 */
var _default = {
  // avatar 组件
  avatar: {
    src: '',
    shape: 'circle',
    size: 40,
    mode: 'scaleToFill',
    text: '',
    bgColor: '#c0c4cc',
    color: '#ffffff',
    fontSize: 18,
    icon: '',
    mpAvatar: false,
    randomBgColor: false,
    defaultUrl: '',
    colorIndex: '',
    name: ''
  }
};
exports.default = _default;

/***/ }),
/* 78 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/avatarGroup.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:49:55
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
 */
var _default = {
  // avatarGroup 组件
  avatarGroup: {
    urls: function urls() {
      return [];
    },
    maxCount: 5,
    shape: 'circle',
    mode: 'scaleToFill',
    showMore: true,
    size: 40,
    keyName: '',
    gap: 0.5,
    extraValue: 0
  }
};
exports.default = _default;

/***/ }),
/* 79 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/backtop.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:50:18
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/backtop.js
 */
var _default = {
  // backtop组件
  backtop: {
    mode: 'circle',
    icon: 'arrow-upward',
    text: '',
    duration: 100,
    scrollTop: 0,
    top: 400,
    bottom: 100,
    right: 20,
    zIndex: 9,
    iconStyle: function iconStyle() {
      return {
        color: '#909399',
        fontSize: '19px'
      };
    }
  }
};
exports.default = _default;

/***/ }),
/* 80 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/badge.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-23 19:51:50
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/badge.js
 */
var _default = {
  // 徽标数组件
  badge: {
    isDot: false,
    value: '',
    show: true,
    max: 999,
    type: 'error',
    showZero: false,
    bgColor: null,
    color: null,
    shape: 'circle',
    numberType: 'overflow',
    offset: function offset() {
      return [];
    },
    inverted: false,
    absolute: false
  }
};
exports.default = _default;

/***/ }),
/* 81 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/button.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:51:27
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/button.js
 */
var _default = {
  // button组件
  button: {
    hairline: false,
    type: 'info',
    size: 'normal',
    shape: 'square',
    plain: false,
    disabled: false,
    loading: false,
    loadingText: '',
    loadingMode: 'spinner',
    loadingSize: 15,
    openType: '',
    formType: '',
    appParameter: '',
    hoverStopPropagation: true,
    lang: 'en',
    sessionFrom: '',
    sendMessageTitle: '',
    sendMessagePath: '',
    sendMessageImg: '',
    showMessageCard: false,
    dataName: '',
    throttleTime: 0,
    hoverStartTime: 0,
    hoverStayTime: 200,
    text: '',
    icon: '',
    iconColor: '',
    color: ''
  }
};
exports.default = _default;

/***/ }),
/* 82 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/calendar.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:52:43
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/calendar.js
 */
var _default = {
  // calendar 组件
  calendar: {
    title: '日期选择',
    showTitle: true,
    showSubtitle: true,
    mode: 'single',
    startText: '开始',
    endText: '结束',
    customList: function customList() {
      return [];
    },
    color: '#3c9cff',
    minDate: 0,
    maxDate: 0,
    defaultDate: null,
    maxCount: Number.MAX_SAFE_INTEGER,
    // Infinity
    rowHeight: 56,
    formatter: null,
    showLunar: false,
    showMark: true,
    confirmText: '确定',
    confirmDisabledText: '确定',
    show: false,
    closeOnClickOverlay: false,
    readonly: false,
    showConfirm: true,
    maxRange: Number.MAX_SAFE_INTEGER,
    // Infinity
    rangePrompt: '',
    showRangePrompt: true,
    allowSameDay: false,
    round: 0,
    monthNum: 3
  }
};
exports.default = _default;

/***/ }),
/* 83 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/carKeyboard.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:53:20
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
 */
var _default = {
  // 车牌号键盘
  carKeyboard: {
    random: false
  }
};
exports.default = _default;

/***/ }),
/* 84 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/cell.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-23 20:53:09
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/cell.js
 */
var _default = {
  // cell组件的props
  cell: {
    customClass: '',
    title: '',
    label: '',
    value: '',
    icon: '',
    disabled: false,
    border: true,
    center: false,
    url: '',
    linkType: 'navigateTo',
    clickable: false,
    isLink: false,
    required: false,
    arrowDirection: '',
    iconStyle: {},
    rightIconStyle: {},
    rightIcon: 'arrow-right',
    titleStyle: {},
    size: '',
    stop: true,
    name: ''
  }
};
exports.default = _default;

/***/ }),
/* 85 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/cellGroup.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:54:16
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
 */
var _default = {
  // cell-group组件的props
  cellGroup: {
    title: '',
    border: true,
    customStyle: {}
  }
};
exports.default = _default;

/***/ }),
/* 86 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/checkbox.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-23 21:06:59
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/checkbox.js
 */
var _default = {
  // checkbox组件
  checkbox: {
    name: '',
    shape: '',
    size: '',
    checkbox: false,
    disabled: '',
    activeColor: '',
    inactiveColor: '',
    iconSize: '',
    iconColor: '',
    label: '',
    labelSize: '',
    labelColor: '',
    labelDisabled: ''
  }
};
exports.default = _default;

/***/ }),
/* 87 */
/*!*****************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/checkboxGroup.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:54:47
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
 */
var _default = {
  // checkbox-group组件
  checkboxGroup: {
    name: '',
    value: function value() {
      return [];
    },
    shape: 'square',
    disabled: false,
    activeColor: '#2979ff',
    inactiveColor: '#c8c9cc',
    size: 18,
    placement: 'row',
    labelSize: 14,
    labelColor: '#303133',
    labelDisabled: false,
    iconColor: '#ffffff',
    iconSize: 12,
    iconPlacement: 'left',
    borderBottom: false
  }
};
exports.default = _default;

/***/ }),
/* 88 */
/*!******************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/circleProgress.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:55:02
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
 */
var _default = {
  // circleProgress 组件
  circleProgress: {
    percentage: 30
  }
};
exports.default = _default;

/***/ }),
/* 89 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/code.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:55:27
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/code.js
 */
var _default = {
  // code 组件
  code: {
    seconds: 60,
    startText: '获取验证码',
    changeText: 'X秒重新获取',
    endText: '重新获取',
    keepRunning: false,
    uniqueKey: ''
  }
};
exports.default = _default;

/***/ }),
/* 90 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/codeInput.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:55:58
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/codeInput.js
 */
var _default = {
  // codeInput 组件
  codeInput: {
    adjustPosition: true,
    maxlength: 6,
    dot: false,
    mode: 'box',
    hairline: false,
    space: 10,
    value: '',
    focus: false,
    bold: false,
    color: '#606266',
    fontSize: 18,
    size: 35,
    disabledKeyboard: false,
    borderColor: '#c9cacc',
    disabledDot: true
  }
};
exports.default = _default;

/***/ }),
/* 91 */
/*!*******************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/col.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:56:12
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/col.js
 */
var _default = {
  // col 组件
  col: {
    span: 12,
    offset: 0,
    justify: 'start',
    align: 'stretch',
    textAlign: 'left'
  }
};
exports.default = _default;

/***/ }),
/* 92 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/collapse.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:56:30
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/collapse.js
 */
var _default = {
  // collapse 组件
  collapse: {
    value: null,
    accordion: false,
    border: true
  }
};
exports.default = _default;

/***/ }),
/* 93 */
/*!****************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/collapseItem.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:56:42
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
 */
var _default = {
  // collapseItem 组件
  collapseItem: {
    title: '',
    value: '',
    label: '',
    disabled: false,
    isLink: true,
    clickable: true,
    border: true,
    align: 'left',
    name: '',
    icon: '',
    duration: 300
  }
};
exports.default = _default;

/***/ }),
/* 94 */
/*!****************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/columnNotice.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:57:16
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
 */
var _default = {
  // columnNotice 组件
  columnNotice: {
    text: '',
    icon: 'volume',
    mode: '',
    color: '#f9ae3d',
    bgColor: '#fdf6ec',
    fontSize: 14,
    speed: 80,
    step: false,
    duration: 1500,
    disableTouch: true
  }
};
exports.default = _default;

/***/ }),
/* 95 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/countDown.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:11:29
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/countDown.js
 */
var _default = {
  // u-count-down 计时器组件
  countDown: {
    time: 0,
    format: 'HH:mm:ss',
    autoStart: true,
    millisecond: false
  }
};
exports.default = _default;

/***/ }),
/* 96 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/countTo.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:57:32
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/countTo.js
 */
var _default = {
  // countTo 组件
  countTo: {
    startVal: 0,
    endVal: 0,
    duration: 2000,
    autoplay: true,
    decimals: 0,
    useEasing: true,
    decimal: '.',
    color: '#606266',
    fontSize: 22,
    bold: false,
    separator: ''
  }
};
exports.default = _default;

/***/ }),
/* 97 */
/*!******************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/datetimePicker.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:57:48
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
 */
var _default = {
  // datetimePicker 组件
  datetimePicker: {
    show: false,
    showToolbar: true,
    value: '',
    title: '',
    mode: 'datetime',
    maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
    minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
    minHour: 0,
    maxHour: 23,
    minMinute: 0,
    maxMinute: 59,
    filter: null,
    formatter: null,
    loading: false,
    itemHeight: 44,
    cancelText: '取消',
    confirmText: '确认',
    cancelColor: '#909193',
    confirmColor: '#3c9cff',
    visibleItemCount: 5,
    closeOnClickOverlay: false,
    defaultIndex: function defaultIndex() {
      return [];
    }
  }
};
exports.default = _default;

/***/ }),
/* 98 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/divider.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:58:03
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/divider.js
 */
var _default = {
  // divider组件
  divider: {
    dashed: false,
    hairline: true,
    dot: false,
    textPosition: 'center',
    text: '',
    textSize: 14,
    textColor: '#909399',
    lineColor: '#dcdfe6'
  }
};
exports.default = _default;

/***/ }),
/* 99 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/empty.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:03:27
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/empty.js
 */
var _default = {
  // empty组件
  empty: {
    icon: '',
    text: '',
    textColor: '#c0c4cc',
    textSize: 14,
    iconColor: '#c0c4cc',
    iconSize: 90,
    mode: 'data',
    width: 160,
    height: 160,
    show: true,
    marginTop: 0
  }
};
exports.default = _default;

/***/ }),
/* 100 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/form.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:03:49
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/form.js
 */
var _default = {
  // form 组件
  form: {
    model: function model() {
      return {};
    },
    rules: function rules() {
      return {};
    },
    errorType: 'message',
    borderBottom: true,
    labelPosition: 'left',
    labelWidth: 45,
    labelAlign: 'left',
    labelStyle: function labelStyle() {
      return {};
    }
  }
};
exports.default = _default;

/***/ }),
/* 101 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/formItem.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:04:32
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/formItem.js
 */
var _default = {
  // formItem 组件
  formItem: {
    label: '',
    prop: '',
    borderBottom: '',
    labelWidth: '',
    rightIcon: '',
    leftIcon: '',
    required: false,
    leftIconStyle: ''
  }
};
exports.default = _default;

/***/ }),
/* 102 */
/*!*******************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/gap.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:05:25
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/gap.js
 */
var _default = {
  // gap组件
  gap: {
    bgColor: 'transparent',
    height: 20,
    marginTop: 0,
    marginBottom: 0,
    customStyle: {}
  }
};
exports.default = _default;

/***/ }),
/* 103 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/grid.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:05:57
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/grid.js
 */
var _default = {
  // grid组件
  grid: {
    col: 3,
    border: false,
    align: 'left'
  }
};
exports.default = _default;

/***/ }),
/* 104 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/gridItem.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:06:13
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/gridItem.js
 */
var _default = {
  // grid-item组件
  gridItem: {
    name: null,
    bgColor: 'transparent'
  }
};
exports.default = _default;

/***/ }),
/* 105 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/icon.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 72));
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 18:00:14
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/icon.js
 */

var color = _config.default.color;
var _default = {
  // icon组件
  icon: {
    name: '',
    color: color['u-content-color'],
    size: '16px',
    bold: false,
    index: '',
    hoverClass: '',
    customPrefix: 'uicon',
    label: '',
    labelPos: 'right',
    labelSize: '15px',
    labelColor: color['u-content-color'],
    space: '3px',
    imgMode: '',
    width: '',
    height: '',
    top: 0,
    stop: false
  }
};
exports.default = _default;

/***/ }),
/* 106 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/image.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:01:51
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/image.js
 */
var _default = {
  // image组件
  image: {
    src: '',
    mode: 'aspectFill',
    width: '300',
    height: '225',
    shape: 'square',
    radius: 0,
    lazyLoad: true,
    showMenuByLongpress: true,
    loadingIcon: 'photo',
    errorIcon: 'error-circle',
    showLoading: true,
    showError: true,
    fade: true,
    webp: false,
    duration: 500,
    bgColor: '#f3f4f6'
  }
};
exports.default = _default;

/***/ }),
/* 107 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/indexAnchor.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:13:15
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
 */
var _default = {
  // indexAnchor 组件
  indexAnchor: {
    text: '',
    color: '#606266',
    size: 14,
    bgColor: '#dedede',
    height: 32
  }
};
exports.default = _default;

/***/ }),
/* 108 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/indexList.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:13:35
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/indexList.js
 */
var _default = {
  // indexList 组件
  indexList: {
    inactiveColor: '#606266',
    activeColor: '#5677fc',
    indexList: function indexList() {
      return [];
    },
    sticky: true,
    customNavHeight: 0
  }
};
exports.default = _default;

/***/ }),
/* 109 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/input.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:13:55
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/input.js
 */
var _default = {
  // index 组件
  input: {
    value: '',
    type: 'text',
    fixed: false,
    disabled: false,
    disabledColor: '#f5f7fa',
    clearable: false,
    password: false,
    maxlength: -1,
    placeholder: null,
    placeholderClass: 'input-placeholder',
    placeholderStyle: 'color: #c0c4cc',
    showWordLimit: false,
    confirmType: 'done',
    confirmHold: false,
    holdKeyboard: false,
    focus: false,
    autoBlur: false,
    disableDefaultPadding: false,
    cursor: -1,
    cursorSpacing: 30,
    selectionStart: -1,
    selectionEnd: -1,
    adjustPosition: true,
    inputAlign: 'left',
    fontSize: '15px',
    color: '#303133',
    prefixIcon: '',
    prefixIconStyle: '',
    suffixIcon: '',
    suffixIconStyle: '',
    border: 'surround',
    readonly: false,
    shape: 'square',
    formatter: null
  }
};
exports.default = _default;

/***/ }),
/* 110 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/keyboard.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:07:49
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/keyboard.js
 */
var _default = {
  // 键盘组件
  keyboard: {
    mode: 'number',
    dotDisabled: false,
    tooltip: true,
    showTips: true,
    tips: '',
    showCancel: true,
    showConfirm: true,
    random: false,
    safeAreaInsetBottom: true,
    closeOnClickOverlay: true,
    show: false,
    overlay: true,
    zIndex: 10075,
    cancelText: '取消',
    confirmText: '确定',
    autoChange: false
  }
};
exports.default = _default;

/***/ }),
/* 111 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/line.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:04:49
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/line.js
 */
var _default = {
  // line组件
  line: {
    color: '#d6d7d9',
    length: '100%',
    direction: 'row',
    hairline: true,
    margin: 0,
    dashed: false
  }
};
exports.default = _default;

/***/ }),
/* 112 */
/*!****************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/lineProgress.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:14:11
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
 */
var _default = {
  // lineProgress 组件
  lineProgress: {
    activeColor: '#19be6b',
    inactiveColor: '#ececec',
    percentage: 0,
    showText: true,
    height: 12
  }
};
exports.default = _default;

/***/ }),
/* 113 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/link.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 72));
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:45:36
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/link.js
 */

var color = _config.default.color;
var _default = {
  // link超链接组件props参数
  link: {
    color: color['u-primary'],
    fontSize: 15,
    underLine: false,
    href: '',
    mpTips: '链接已复制，请在浏览器打开',
    lineColor: '',
    text: ''
  }
};
exports.default = _default;

/***/ }),
/* 114 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/list.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:14:53
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/list.js
 */
var _default = {
  // list 组件
  list: {
    showScrollbar: false,
    lowerThreshold: 50,
    upperThreshold: 0,
    scrollTop: 0,
    offsetAccuracy: 10,
    enableFlex: false,
    pagingEnabled: false,
    scrollable: true,
    scrollIntoView: '',
    scrollWithAnimation: false,
    enableBackToTop: false,
    height: 0,
    width: 0,
    preLoadScreen: 1
  }
};
exports.default = _default;

/***/ }),
/* 115 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/listItem.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:15:40
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/listItem.js
 */
var _default = {
  // listItem 组件
  listItem: {
    anchor: ''
  }
};
exports.default = _default;

/***/ }),
/* 116 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/loadingIcon.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 72));
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:45:47
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
 */

var color = _config.default.color;
var _default = {
  // loading-icon加载中图标组件
  loadingIcon: {
    show: true,
    color: color['u-tips-color'],
    textColor: color['u-tips-color'],
    vertical: false,
    mode: 'spinner',
    size: 24,
    textSize: 15,
    text: '',
    timingFunction: 'ease-in-out',
    duration: 1200,
    inactiveColor: ''
  }
};
exports.default = _default;

/***/ }),
/* 117 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/loadingPage.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:00:23
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
 */
var _default = {
  // loading-page组件
  loadingPage: {
    loadingText: '正在加载',
    image: '',
    loadingMode: 'circle',
    loading: false,
    bgColor: '#ffffff',
    color: '#C8C8C8',
    fontSize: 19,
    iconSize: 28,
    loadingColor: '#C8C8C8'
  }
};
exports.default = _default;

/***/ }),
/* 118 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/loadmore.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:15:26
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/loadmore.js
 */
var _default = {
  // loadmore 组件
  loadmore: {
    status: 'loadmore',
    bgColor: 'transparent',
    icon: true,
    fontSize: 14,
    iconSize: 17,
    color: '#606266',
    loadingIcon: 'spinner',
    loadmoreText: '加载更多',
    loadingText: '正在加载...',
    nomoreText: '没有更多了',
    isDot: false,
    iconColor: '#b7b7b7',
    marginTop: 10,
    marginBottom: 10,
    height: 'auto',
    line: false,
    lineColor: '#E6E8EB',
    dashed: false
  }
};
exports.default = _default;

/***/ }),
/* 119 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/modal.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:15:59
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/modal.js
 */
var _default = {
  // modal 组件
  modal: {
    show: false,
    title: '',
    content: '',
    confirmText: '确认',
    cancelText: '取消',
    showConfirmButton: true,
    showCancelButton: false,
    confirmColor: '#2979ff',
    cancelColor: '#606266',
    buttonReverse: false,
    zoom: true,
    asyncClose: false,
    closeOnClickOverlay: false,
    negativeTop: 0,
    width: '650rpx',
    confirmButtonShape: ''
  }
};
exports.default = _default;

/***/ }),
/* 120 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/navbar.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 121));
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:16:18
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/navbar.js
 */
var _default = {
  // navbar 组件
  navbar: {
    safeAreaInsetTop: true,
    placeholder: false,
    fixed: true,
    border: false,
    leftIcon: 'arrow-left',
    leftText: '',
    rightText: '',
    rightIcon: '',
    title: '',
    bgColor: '#ffffff',
    titleWidth: '400rpx',
    height: '44px',
    leftIconSize: 20,
    leftIconColor: _color.default.mainColor,
    autoBack: false,
    titleStyle: ''
  }
};
exports.default = _default;

/***/ }),
/* 121 */
/*!***************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/color.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
// 为了让用户能够自定义主题，会逐步弃用此文件，各颜色通过css提供
// 为了给某些特殊场景使用和向后兼容，无需删除此文件(2020-06-20)
var color = {
  primary: '#3c9cff',
  info: '#909399',
  default: '#909399',
  warning: '#f9ae3d',
  error: '#f56c6c',
  success: '#5ac725',
  mainColor: '#303133',
  contentColor: '#606266',
  tipsColor: '#909399',
  lightColor: '#c0c4cc',
  borderColor: '#e4e7ed'
};
var _default = color;
exports.default = _default;

/***/ }),
/* 122 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/noNetwork.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:16:39
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
 */
var _default = {
  // noNetwork
  noNetwork: {
    tips: '哎呀，网络信号丢失',
    zIndex: '',
    image: 'data:image/png;base64, '
  }
};
exports.default = _default;

/***/ }),
/* 123 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/noticeBar.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:17:13
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
 */
var _default = {
  // noticeBar
  noticeBar: {
    text: function text() {
      return [];
    },
    direction: 'row',
    step: false,
    icon: 'volume',
    mode: '',
    color: '#f9ae3d',
    bgColor: '#fdf6ec',
    speed: 80,
    fontSize: 14,
    duration: 2000,
    disableTouch: true,
    url: '',
    linkType: 'navigateTo'
  }
};
exports.default = _default;

/***/ }),
/* 124 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/notify.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:10:21
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/notify.js
 */
var _default = {
  // notify组件
  notify: {
    top: 0,
    type: 'primary',
    color: '#ffffff',
    bgColor: '',
    message: '',
    duration: 3000,
    fontSize: 15,
    safeAreaInsetTop: false
  }
};
exports.default = _default;

/***/ }),
/* 125 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/numberBox.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:11:46
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/numberBox.js
 */
var _default = {
  // 步进器组件
  numberBox: {
    name: '',
    value: 0,
    min: 1,
    max: Number.MAX_SAFE_INTEGER,
    step: 1,
    integer: false,
    disabled: false,
    disabledInput: false,
    asyncChange: false,
    inputWidth: 35,
    showMinus: true,
    showPlus: true,
    decimalLength: null,
    longPress: true,
    color: '#323233',
    buttonSize: 30,
    bgColor: '#EBECEE',
    cursorSpacing: 100,
    disableMinus: false,
    disablePlus: false,
    iconStyle: ''
  }
};
exports.default = _default;

/***/ }),
/* 126 */
/*!******************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/numberKeyboard.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:08:05
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
 */
var _default = {
  // 数字键盘
  numberKeyboard: {
    mode: 'number',
    dotDisabled: false,
    random: false
  }
};
exports.default = _default;

/***/ }),
/* 127 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/overlay.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:06:50
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/overlay.js
 */
var _default = {
  // overlay组件
  overlay: {
    show: false,
    zIndex: 10070,
    duration: 300,
    opacity: 0.5
  }
};
exports.default = _default;

/***/ }),
/* 128 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/parse.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:17:33
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/parse.js
 */
var _default = {
  // parse
  parse: {
    copyLink: true,
    errorImg: '',
    lazyLoad: false,
    loadingImg: '',
    pauseVideo: true,
    previewImg: true,
    setTitle: true,
    showImgMenu: true
  }
};
exports.default = _default;

/***/ }),
/* 129 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/picker.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:18:20
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/picker.js
 */
var _default = {
  // picker
  picker: {
    show: false,
    showToolbar: true,
    title: '',
    columns: function columns() {
      return [];
    },
    loading: false,
    itemHeight: 44,
    cancelText: '取消',
    confirmText: '确定',
    cancelColor: '#909193',
    confirmColor: '#3c9cff',
    visibleItemCount: 5,
    keyName: 'text',
    closeOnClickOverlay: false,
    defaultIndex: function defaultIndex() {
      return [];
    },
    immediateChange: false
  }
};
exports.default = _default;

/***/ }),
/* 130 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/popup.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:06:33
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/popup.js
 */
var _default = {
  // popup组件
  popup: {
    show: false,
    overlay: true,
    mode: 'bottom',
    duration: 300,
    closeable: false,
    overlayStyle: function overlayStyle() {},
    closeOnClickOverlay: true,
    zIndex: 10075,
    safeAreaInsetBottom: true,
    safeAreaInsetTop: false,
    closeIconPos: 'top-right',
    round: 0,
    zoom: true,
    bgColor: '',
    overlayOpacity: 0.5
  }
};
exports.default = _default;

/***/ }),
/* 131 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/radio.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:02:34
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/radio.js
 */
var _default = {
  // radio组件
  radio: {
    name: '',
    shape: '',
    disabled: '',
    labelDisabled: '',
    activeColor: '',
    inactiveColor: '',
    iconSize: '',
    labelSize: '',
    label: '',
    labelColor: '',
    size: '',
    iconColor: '',
    placement: ''
  }
};
exports.default = _default;

/***/ }),
/* 132 */
/*!**************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/radioGroup.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:03:12
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
 */
var _default = {
  // radio-group组件
  radioGroup: {
    value: '',
    disabled: false,
    shape: 'circle',
    activeColor: '#2979ff',
    inactiveColor: '#c8c9cc',
    name: '',
    size: 18,
    placement: 'row',
    label: '',
    labelColor: '#303133',
    labelSize: 14,
    labelDisabled: false,
    iconColor: '#ffffff',
    iconSize: 12,
    borderBottom: false,
    iconPlacement: 'left'
  }
};
exports.default = _default;

/***/ }),
/* 133 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/rate.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:05:09
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/rate.js
 */
var _default = {
  // rate组件
  rate: {
    value: 1,
    count: 5,
    disabled: false,
    size: 18,
    inactiveColor: '#b2b2b2',
    activeColor: '#FA3534',
    gutter: 4,
    minCount: 1,
    allowHalf: false,
    activeIcon: 'star-fill',
    inactiveIcon: 'star',
    touchable: true
  }
};
exports.default = _default;

/***/ }),
/* 134 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/readMore.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:18:41
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/readMore.js
 */
var _default = {
  // readMore
  readMore: {
    showHeight: 400,
    toggle: false,
    closeText: '展开阅读全文',
    openText: '收起',
    color: '#2979ff',
    fontSize: 14,
    textIndent: '2em',
    name: ''
  }
};
exports.default = _default;

/***/ }),
/* 135 */
/*!*******************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/row.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:18:58
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/row.js
 */
var _default = {
  // row
  row: {
    gutter: 0,
    justify: 'start',
    align: 'center'
  }
};
exports.default = _default;

/***/ }),
/* 136 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/rowNotice.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:19:13
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
 */
var _default = {
  // rowNotice
  rowNotice: {
    text: '',
    icon: 'volume',
    mode: '',
    color: '#f9ae3d',
    bgColor: '#fdf6ec',
    fontSize: 14,
    speed: 80
  }
};
exports.default = _default;

/***/ }),
/* 137 */
/*!**************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/scrollList.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:19:28
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/scrollList.js
 */
var _default = {
  // scrollList
  scrollList: {
    indicatorWidth: 50,
    indicatorBarWidth: 20,
    indicator: true,
    indicatorColor: '#f2f2f2',
    indicatorActiveColor: '#3c9cff',
    indicatorStyle: ''
  }
};
exports.default = _default;

/***/ }),
/* 138 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/search.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:19:45
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/search.js
 */
var _default = {
  // search
  search: {
    shape: 'round',
    bgColor: '#f2f2f2',
    placeholder: '请输入关键字',
    clearabled: true,
    focus: false,
    showAction: true,
    actionStyle: function actionStyle() {
      return {};
    },
    actionText: '搜索',
    inputAlign: 'left',
    inputStyle: function inputStyle() {
      return {};
    },
    disabled: false,
    borderColor: 'transparent',
    searchIconColor: '#909399',
    searchIconSize: 22,
    color: '#606266',
    placeholderColor: '#909399',
    searchIcon: 'search',
    margin: '0',
    animation: false,
    value: '',
    maxlength: '-1',
    height: 32,
    label: null
  }
};
exports.default = _default;

/***/ }),
/* 139 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/section.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:07:33
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/section.js
 */
var _default = {
  // u-section组件
  section: {
    title: '',
    subTitle: '更多',
    right: true,
    fontSize: 15,
    bold: true,
    color: '#303133',
    subColor: '#909399',
    showLine: true,
    lineColor: '',
    arrow: true
  }
};
exports.default = _default;

/***/ }),
/* 140 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/skeleton.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:20:14
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/skeleton.js
 */
var _default = {
  // skeleton
  skeleton: {
    loading: true,
    animate: true,
    rows: 0,
    rowsWidth: '100%',
    rowsHeight: 18,
    title: true,
    titleWidth: '50%',
    titleHeight: 18,
    avatar: false,
    avatarSize: 32,
    avatarShape: 'circle'
  }
};
exports.default = _default;

/***/ }),
/* 141 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/slider.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:08:25
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/slider.js
 */
var _default = {
  // slider组件
  slider: {
    value: 0,
    blockSize: 18,
    min: 0,
    max: 100,
    step: 1,
    activeColor: '#2979ff',
    inactiveColor: '#c0c4cc',
    blockColor: '#ffffff',
    showValue: false,
    disabled: false,
    blockStyle: function blockStyle() {}
  }
};
exports.default = _default;

/***/ }),
/* 142 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/statusBar.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:20:39
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/statusBar.js
 */
var _default = {
  // statusBar
  statusBar: {
    bgColor: 'transparent'
  }
};
exports.default = _default;

/***/ }),
/* 143 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/steps.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:12:37
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/steps.js
 */
var _default = {
  // steps组件
  steps: {
    direction: 'row',
    current: 0,
    activeColor: '#3c9cff',
    inactiveColor: '#969799',
    activeIcon: '',
    inactiveIcon: '',
    dot: false
  }
};
exports.default = _default;

/***/ }),
/* 144 */
/*!*************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/stepsItem.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:12:55
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
 */
var _default = {
  // steps-item组件
  stepsItem: {
    title: '',
    desc: '',
    iconSize: 17,
    error: false
  }
};
exports.default = _default;

/***/ }),
/* 145 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/sticky.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:01:30
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/sticky.js
 */
var _default = {
  // sticky组件
  sticky: {
    offsetTop: 0,
    customNavHeight: 0,
    disabled: false,
    bgColor: 'transparent',
    zIndex: '',
    index: ''
  }
};
exports.default = _default;

/***/ }),
/* 146 */
/*!**************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/subsection.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:12:20
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/subsection.js
 */
var _default = {
  // subsection组件
  subsection: {
    list: [],
    current: 0,
    activeColor: '#3c9cff',
    inactiveColor: '#303133',
    mode: 'button',
    fontSize: 12,
    bold: true,
    bgColor: '#eeeeef',
    keyName: 'name'
  }
};
exports.default = _default;

/***/ }),
/* 147 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/swipeAction.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:00:42
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
 */
var _default = {
  // swipe-action组件
  swipeAction: {
    autoClose: true
  }
};
exports.default = _default;

/***/ }),
/* 148 */
/*!*******************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/swipeActionItem.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:01:13
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
 */
var _default = {
  // swipeActionItem 组件
  swipeActionItem: {
    show: false,
    name: '',
    disabled: false,
    threshold: 20,
    autoClose: true,
    options: [],
    duration: 300
  }
};
exports.default = _default;

/***/ }),
/* 149 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/swiper.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:21:38
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/swiper.js
 */
var _default = {
  // swiper 组件
  swiper: {
    list: function list() {
      return [];
    },
    indicator: false,
    indicatorActiveColor: '#FFFFFF',
    indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
    indicatorStyle: '',
    indicatorMode: 'line',
    autoplay: true,
    current: 0,
    currentItemId: '',
    interval: 3000,
    duration: 300,
    circular: false,
    previousMargin: 0,
    nextMargin: 0,
    acceleration: false,
    displayMultipleItems: 1,
    easingFunction: 'default',
    keyName: 'url',
    imgMode: 'aspectFill',
    height: 130,
    bgColor: '#f3f4f6',
    radius: 4,
    loading: false,
    showTitle: false
  }
};
exports.default = _default;

/***/ }),
/* 150 */
/*!********************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/swipterIndicator.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:22:07
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
 */
var _default = {
  // swiperIndicator 组件
  swiperIndicator: {
    length: 0,
    current: 0,
    indicatorActiveColor: '',
    indicatorInactiveColor: '',
    indicatorMode: 'line'
  }
};
exports.default = _default;

/***/ }),
/* 151 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/switch.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:22:24
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/switch.js
 */
var _default = {
  // switch
  switch: {
    loading: false,
    disabled: false,
    size: 25,
    activeColor: '#2979ff',
    inactiveColor: '#ffffff',
    value: false,
    activeValue: true,
    inactiveValue: false,
    asyncChange: false,
    space: 0
  }
};
exports.default = _default;

/***/ }),
/* 152 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/tabbar.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:22:40
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/tabbar.js
 */
var _default = {
  // tabbar
  tabbar: {
    value: null,
    safeAreaInsetBottom: true,
    border: true,
    zIndex: 1,
    activeColor: '#1989fa',
    inactiveColor: '#7d7e80',
    fixed: true,
    placeholder: true
  }
};
exports.default = _default;

/***/ }),
/* 153 */
/*!**************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/tabbarItem.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:22:55
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
 */
var _default = {
  //
  tabbarItem: {
    name: null,
    icon: '',
    badge: null,
    dot: false,
    text: '',
    badgeStyle: 'top: 6px;right:2px;'
  }
};
exports.default = _default;

/***/ }),
/* 154 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/tabs.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:23:14
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/tabs.js
 */
var _default = {
  //
  tabs: {
    duration: 300,
    list: function list() {
      return [];
    },
    lineColor: '#3c9cff',
    activeStyle: function activeStyle() {
      return {
        color: '#303133'
      };
    },
    inactiveStyle: function inactiveStyle() {
      return {
        color: '#606266'
      };
    },
    lineWidth: 20,
    lineHeight: 3,
    lineBgSize: 'cover',
    itemStyle: function itemStyle() {
      return {
        height: '44px'
      };
    },
    scrollable: true,
    current: 0,
    keyName: 'name'
  }
};
exports.default = _default;

/***/ }),
/* 155 */
/*!*******************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/tag.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:23:37
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/tag.js
 */
var _default = {
  // tag 组件
  tag: {
    type: 'primary',
    disabled: false,
    size: 'medium',
    shape: 'square',
    text: '',
    bgColor: '',
    color: '',
    borderColor: '',
    closeColor: '#C6C7CB',
    name: '',
    plainFill: false,
    plain: false,
    closable: false,
    show: true,
    icon: ''
  }
};
exports.default = _default;

/***/ }),
/* 156 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/text.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:23:58
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/text.js
 */
var _default = {
  // text 组件
  text: {
    type: '',
    show: true,
    text: '',
    prefixIcon: '',
    suffixIcon: '',
    mode: '',
    href: '',
    format: '',
    call: false,
    openType: '',
    bold: false,
    block: false,
    lines: '',
    color: '#303133',
    size: 15,
    iconStyle: function iconStyle() {
      return {
        fontSize: '15px'
      };
    },
    decoration: 'none',
    margin: 0,
    lineHeight: '',
    align: 'left',
    wordWrap: 'normal'
  }
};
exports.default = _default;

/***/ }),
/* 157 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/textarea.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:24:32
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/textarea.js
 */
var _default = {
  // textarea 组件
  textarea: {
    value: '',
    placeholder: '',
    placeholderClass: 'textarea-placeholder',
    placeholderStyle: 'color: #c0c4cc',
    height: 70,
    confirmType: '',
    disabled: false,
    count: false,
    focus: false,
    autoHeight: false,
    fixed: false,
    cursorSpacing: 0,
    cursor: '',
    showConfirmBar: true,
    selectionStart: -1,
    selectionEnd: -1,
    adjustPosition: true,
    disableDefaultPadding: false,
    holdKeyboard: false,
    maxlength: 140,
    border: 'surround',
    formatter: null
  }
};
exports.default = _default;

/***/ }),
/* 158 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/toast.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:07:07
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/toast.js
 */
var _default = {
  // toast组件
  toast: {
    zIndex: 10090,
    loading: false,
    text: '',
    icon: '',
    type: '',
    loadingMode: '',
    show: '',
    overlay: false,
    position: 'center',
    params: function params() {},
    duration: 2000,
    isTab: false,
    url: '',
    callback: null,
    back: false
  }
};
exports.default = _default;

/***/ }),
/* 159 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/toolbar.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:24:55
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/toolbar.js
 */
var _default = {
  // toolbar 组件
  toolbar: {
    show: true,
    cancelText: '取消',
    confirmText: '确认',
    cancelColor: '#909193',
    confirmColor: '#3c9cff',
    title: ''
  }
};
exports.default = _default;

/***/ }),
/* 160 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/tooltip.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:25:14
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/tooltip.js
 */
var _default = {
  // tooltip 组件
  tooltip: {
    text: '',
    copyText: '',
    size: 14,
    color: '#606266',
    bgColor: 'transparent',
    direction: 'top',
    zIndex: 10071,
    showCopy: true,
    buttons: function buttons() {
      return [];
    },
    overlay: true,
    showToast: true
  }
};
exports.default = _default;

/***/ }),
/* 161 */
/*!**************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/transition.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 16:59:00
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/transition.js
 */
var _default = {
  // transition动画组件的props
  transition: {
    show: false,
    mode: 'fade',
    duration: '300',
    timingFunction: 'ease-out'
  }
};
exports.default = _default;

/***/ }),
/* 162 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/props/upload.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-20 16:44:21
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-20 17:09:50
 * @FilePath     : /u-view2.0/uview-ui/libs/config/props/upload.js
 */
var _default = {
  // upload组件
  upload: {
    accept: 'image',
    capture: function capture() {
      return ['album', 'camera'];
    },
    compressed: true,
    camera: 'back',
    maxDuration: 60,
    uploadIcon: 'camera-fill',
    uploadIconColor: '#D3D4D6',
    useBeforeRead: false,
    previewFullImage: true,
    maxCount: 52,
    disabled: false,
    imageMode: 'aspectFill',
    name: '',
    sizeType: function sizeType() {
      return ['original', 'compressed'];
    },
    multiple: false,
    deletable: true,
    maxSize: Number.MAX_VALUE,
    fileList: function fileList() {
      return [];
    },
    uploadText: '',
    width: 80,
    height: 80,
    previewImage: true
  }
};
exports.default = _default;

/***/ }),
/* 163 */
/*!****************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/config/zIndex.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
// uniapp在H5中各API的z-index值如下：
/**
 * actionsheet: 999
 * modal: 999
 * navigate: 998
 * tabbar: 998
 * toast: 999
 */
var _default = {
  toast: 10090,
  noNetwork: 10080,
  // popup包含popup，actionsheet，keyboard，picker的值
  popup: 10075,
  mask: 10070,
  navbar: 980,
  topTips: 975,
  sticky: 970,
  indexListSticky: 965
};
exports.default = _default;

/***/ }),
/* 164 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/function/platform.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/**
 * 注意：
 * 此部分内容，在vue-cli模式下，需要在vue.config.js加入如下内容才有效：
 * module.exports = {
 *     transpileDependencies: ['uview-v2']
 * }
 */

var platform = 'none';
platform = 'vue2';
platform = 'weixin';
platform = 'mp';
var _default = platform;
exports.default = _default;

/***/ }),
/* 165 */,
/* 166 */,
/* 167 */,
/* 168 */,
/* 169 */,
/* 170 */,
/* 171 */,
/* 172 */,
/* 173 */,
/* 174 */,
/* 175 */,
/* 176 */,
/* 177 */,
/* 178 */,
/* 179 */,
/* 180 */,
/* 181 */,
/* 182 */,
/* 183 */,
/* 184 */,
/* 185 */,
/* 186 */,
/* 187 */,
/* 188 */,
/* 189 */,
/* 190 */,
/* 191 */,
/* 192 */,
/* 193 */,
/* 194 */,
/* 195 */,
/* 196 */,
/* 197 */,
/* 198 */,
/* 199 */
/*!**************************************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/node_modules/.store/dayjs@1.11.7/node_modules/dayjs/dayjs.min.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
!function (t, e) {
  "object" == ( false ? undefined : _typeof(exports)) && "undefined" != typeof module ? module.exports = e() :  true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (e),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
				__WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
}(this, function () {
  "use strict";

  var t = 1e3,
    e = 6e4,
    n = 36e5,
    r = "millisecond",
    i = "second",
    s = "minute",
    u = "hour",
    a = "day",
    o = "week",
    f = "month",
    h = "quarter",
    c = "year",
    d = "date",
    l = "Invalid Date",
    $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
    y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
    M = {
      name: "en",
      weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
      months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
      ordinal: function ordinal(t) {
        var e = ["th", "st", "nd", "rd"],
          n = t % 100;
        return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
      }
    },
    m = function m(t, e, n) {
      var r = String(t);
      return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
    },
    v = {
      s: m,
      z: function z(t) {
        var e = -t.utcOffset(),
          n = Math.abs(e),
          r = Math.floor(n / 60),
          i = n % 60;
        return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
      },
      m: function t(e, n) {
        if (e.date() < n.date()) return -t(n, e);
        var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
          i = e.clone().add(r, f),
          s = n - i < 0,
          u = e.clone().add(r + (s ? -1 : 1), f);
        return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
      },
      a: function a(t) {
        return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
      },
      p: function p(t) {
        return {
          M: f,
          y: c,
          w: o,
          d: a,
          D: d,
          h: u,
          m: s,
          s: i,
          ms: r,
          Q: h
        }[t] || String(t || "").toLowerCase().replace(/s$/, "");
      },
      u: function u(t) {
        return void 0 === t;
      }
    },
    g = "en",
    D = {};
  D[g] = M;
  var p = function p(t) {
      return t instanceof _;
    },
    S = function t(e, n, r) {
      var i;
      if (!e) return g;
      if ("string" == typeof e) {
        var s = e.toLowerCase();
        D[s] && (i = s), n && (D[s] = n, i = s);
        var u = e.split("-");
        if (!i && u.length > 1) return t(u[0]);
      } else {
        var a = e.name;
        D[a] = e, i = a;
      }
      return !r && i && (g = i), i || !r && g;
    },
    w = function w(t, e) {
      if (p(t)) return t.clone();
      var n = "object" == _typeof(e) ? e : {};
      return n.date = t, n.args = arguments, new _(n);
    },
    O = v;
  O.l = S, O.i = p, O.w = function (t, e) {
    return w(t, {
      locale: e.$L,
      utc: e.$u,
      x: e.$x,
      $offset: e.$offset
    });
  };
  var _ = function () {
      function M(t) {
        this.$L = S(t.locale, null, !0), this.parse(t);
      }
      var m = M.prototype;
      return m.parse = function (t) {
        this.$d = function (t) {
          var e = t.date,
            n = t.utc;
          if (null === e) return new Date(NaN);
          if (O.u(e)) return new Date();
          if (e instanceof Date) return new Date(e);
          if ("string" == typeof e && !/Z$/i.test(e)) {
            var r = e.match($);
            if (r) {
              var i = r[2] - 1 || 0,
                s = (r[7] || "0").substring(0, 3);
              return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
            }
          }
          return new Date(e);
        }(t), this.$x = t.x || {}, this.init();
      }, m.init = function () {
        var t = this.$d;
        this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
      }, m.$utils = function () {
        return O;
      }, m.isValid = function () {
        return !(this.$d.toString() === l);
      }, m.isSame = function (t, e) {
        var n = w(t);
        return this.startOf(e) <= n && n <= this.endOf(e);
      }, m.isAfter = function (t, e) {
        return w(t) < this.startOf(e);
      }, m.isBefore = function (t, e) {
        return this.endOf(e) < w(t);
      }, m.$g = function (t, e, n) {
        return O.u(t) ? this[e] : this.set(n, t);
      }, m.unix = function () {
        return Math.floor(this.valueOf() / 1e3);
      }, m.valueOf = function () {
        return this.$d.getTime();
      }, m.startOf = function (t, e) {
        var n = this,
          r = !!O.u(e) || e,
          h = O.p(t),
          l = function l(t, e) {
            var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
            return r ? i : i.endOf(a);
          },
          $ = function $(t, e) {
            return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
          },
          y = this.$W,
          M = this.$M,
          m = this.$D,
          v = "set" + (this.$u ? "UTC" : "");
        switch (h) {
          case c:
            return r ? l(1, 0) : l(31, 11);
          case f:
            return r ? l(1, M) : l(0, M + 1);
          case o:
            var g = this.$locale().weekStart || 0,
              D = (y < g ? y + 7 : y) - g;
            return l(r ? m - D : m + (6 - D), M);
          case a:
          case d:
            return $(v + "Hours", 0);
          case u:
            return $(v + "Minutes", 1);
          case s:
            return $(v + "Seconds", 2);
          case i:
            return $(v + "Milliseconds", 3);
          default:
            return this.clone();
        }
      }, m.endOf = function (t) {
        return this.startOf(t, !1);
      }, m.$set = function (t, e) {
        var n,
          o = O.p(t),
          h = "set" + (this.$u ? "UTC" : ""),
          l = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],
          $ = o === a ? this.$D + (e - this.$W) : e;
        if (o === f || o === c) {
          var y = this.clone().set(d, 1);
          y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
        } else l && this.$d[l]($);
        return this.init(), this;
      }, m.set = function (t, e) {
        return this.clone().$set(t, e);
      }, m.get = function (t) {
        return this[O.p(t)]();
      }, m.add = function (r, h) {
        var d,
          l = this;
        r = Number(r);
        var $ = O.p(h),
          y = function y(t) {
            var e = w(l);
            return O.w(e.date(e.date() + Math.round(t * r)), l);
          };
        if ($ === f) return this.set(f, this.$M + r);
        if ($ === c) return this.set(c, this.$y + r);
        if ($ === a) return y(1);
        if ($ === o) return y(7);
        var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
          m = this.$d.getTime() + r * M;
        return O.w(m, this);
      }, m.subtract = function (t, e) {
        return this.add(-1 * t, e);
      }, m.format = function (t) {
        var e = this,
          n = this.$locale();
        if (!this.isValid()) return n.invalidDate || l;
        var r = t || "YYYY-MM-DDTHH:mm:ssZ",
          i = O.z(this),
          s = this.$H,
          u = this.$m,
          a = this.$M,
          o = n.weekdays,
          f = n.months,
          h = function h(t, n, i, s) {
            return t && (t[n] || t(e, r)) || i[n].slice(0, s);
          },
          c = function c(t) {
            return O.s(s % 12 || 12, t, "0");
          },
          d = n.meridiem || function (t, e, n) {
            var r = t < 12 ? "AM" : "PM";
            return n ? r.toLowerCase() : r;
          },
          $ = {
            YY: String(this.$y).slice(-2),
            YYYY: this.$y,
            M: a + 1,
            MM: O.s(a + 1, 2, "0"),
            MMM: h(n.monthsShort, a, f, 3),
            MMMM: h(f, a),
            D: this.$D,
            DD: O.s(this.$D, 2, "0"),
            d: String(this.$W),
            dd: h(n.weekdaysMin, this.$W, o, 2),
            ddd: h(n.weekdaysShort, this.$W, o, 3),
            dddd: o[this.$W],
            H: String(s),
            HH: O.s(s, 2, "0"),
            h: c(1),
            hh: c(2),
            a: d(s, u, !0),
            A: d(s, u, !1),
            m: String(u),
            mm: O.s(u, 2, "0"),
            s: String(this.$s),
            ss: O.s(this.$s, 2, "0"),
            SSS: O.s(this.$ms, 3, "0"),
            Z: i
          };
        return r.replace(y, function (t, e) {
          return e || $[t] || i.replace(":", "");
        });
      }, m.utcOffset = function () {
        return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
      }, m.diff = function (r, d, l) {
        var $,
          y = O.p(d),
          M = w(r),
          m = (M.utcOffset() - this.utcOffset()) * e,
          v = this - M,
          g = O.m(this, M);
        return g = ($ = {}, $[c] = g / 12, $[f] = g, $[h] = g / 3, $[o] = (v - m) / 6048e5, $[a] = (v - m) / 864e5, $[u] = v / n, $[s] = v / e, $[i] = v / t, $)[y] || v, l ? g : O.a(g);
      }, m.daysInMonth = function () {
        return this.endOf(f).$D;
      }, m.$locale = function () {
        return D[this.$L];
      }, m.locale = function (t, e) {
        if (!t) return this.$L;
        var n = this.clone(),
          r = S(t, e, !0);
        return r && (n.$L = r), n;
      }, m.clone = function () {
        return O.w(this.$d, this);
      }, m.toDate = function () {
        return new Date(this.valueOf());
      }, m.toJSON = function () {
        return this.isValid() ? this.toISOString() : null;
      }, m.toISOString = function () {
        return this.$d.toISOString();
      }, m.toString = function () {
        return this.$d.toUTCString();
      }, M;
    }(),
    T = _.prototype;
  return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function (t) {
    T[t[1]] = function (e) {
      return this.$g(e, t[0], t[1]);
    };
  }), w.extend = function (t, e) {
    return t.$i || (t(e, _, w), t.$i = !0), w;
  }, w.locale = S, w.isDayjs = p, w.unix = function (t) {
    return w(1e3 * t);
  }, w.en = D[g], w.Ls = D, w.p = {}, w;
});

/***/ }),
/* 200 */
/*!*********************************************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/node_modules/.store/dayjs@1.11.7/node_modules/dayjs/plugin/isBetween.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
!function (e, i) {
  "object" == ( false ? undefined : _typeof(exports)) && "undefined" != typeof module ? module.exports = i() :  true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (i),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
				__WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
}(this, function () {
  "use strict";

  return function (e, i, t) {
    i.prototype.isBetween = function (e, i, s, f) {
      var n = t(e),
        o = t(i),
        r = "(" === (f = f || "()")[0],
        u = ")" === f[1];
      return (r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));
    };
  };
});

/***/ }),
/* 201 */,
/* 202 */,
/* 203 */,
/* 204 */,
/* 205 */,
/* 206 */,
/* 207 */,
/* 208 */,
/* 209 */,
/* 210 */,
/* 211 */,
/* 212 */,
/* 213 */,
/* 214 */,
/* 215 */,
/* 216 */,
/* 217 */,
/* 218 */,
/* 219 */,
/* 220 */,
/* 221 */,
/* 222 */,
/* 223 */,
/* 224 */,
/* 225 */,
/* 226 */,
/* 227 */,
/* 228 */,
/* 229 */,
/* 230 */,
/* 231 */,
/* 232 */,
/* 233 */,
/* 234 */,
/* 235 */,
/* 236 */,
/* 237 */,
/* 238 */,
/* 239 */,
/* 240 */,
/* 241 */,
/* 242 */,
/* 243 */,
/* 244 */,
/* 245 */,
/* 246 */,
/* 247 */,
/* 248 */,
/* 249 */,
/* 250 */,
/* 251 */,
/* 252 */,
/* 253 */,
/* 254 */,
/* 255 */,
/* 256 */,
/* 257 */,
/* 258 */,
/* 259 */,
/* 260 */,
/* 261 */,
/* 262 */,
/* 263 */,
/* 264 */,
/* 265 */,
/* 266 */,
/* 267 */,
/* 268 */,
/* 269 */,
/* 270 */,
/* 271 */,
/* 272 */,
/* 273 */,
/* 274 */,
/* 275 */,
/* 276 */,
/* 277 */,
/* 278 */,
/* 279 */,
/* 280 */,
/* 281 */,
/* 282 */,
/* 283 */,
/* 284 */,
/* 285 */,
/* 286 */,
/* 287 */,
/* 288 */,
/* 289 */,
/* 290 */,
/* 291 */,
/* 292 */,
/* 293 */,
/* 294 */,
/* 295 */,
/* 296 */,
/* 297 */,
/* 298 */,
/* 299 */,
/* 300 */,
/* 301 */,
/* 302 */,
/* 303 */,
/* 304 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-swiper/props.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 列表数组，元素可为字符串，如为对象可通过keyName指定目标属性名
    list: {
      type: Array,
      default: uni.$u.props.swiper.list
    },
    // 是否显示面板指示器
    indicator: {
      type: Boolean,
      default: uni.$u.props.swiper.indicator
    },
    // 指示器非激活颜色
    indicatorActiveColor: {
      type: String,
      default: uni.$u.props.swiper.indicatorActiveColor
    },
    // 指示器的激活颜色
    indicatorInactiveColor: {
      type: String,
      default: uni.$u.props.swiper.indicatorInactiveColor
    },
    // 指示器样式，可通过bottom，left，right进行定位
    indicatorStyle: {
      type: [String, Object],
      default: uni.$u.props.swiper.indicatorStyle
    },
    // 指示器模式，line-线型，dot-点型
    indicatorMode: {
      type: String,
      default: uni.$u.props.swiper.indicatorMode
    },
    // 是否自动切换
    autoplay: {
      type: Boolean,
      default: uni.$u.props.swiper.autoplay
    },
    // 当前所在滑块的 index
    current: {
      type: [String, Number],
      default: uni.$u.props.swiper.current
    },
    // 当前所在滑块的 item-id ，不能与 current 被同时指定
    currentItemId: {
      type: String,
      default: uni.$u.props.swiper.currentItemId
    },
    // 滑块自动切换时间间隔
    interval: {
      type: [String, Number],
      default: uni.$u.props.swiper.interval
    },
    // 滑块切换过程所需时间
    duration: {
      type: [String, Number],
      default: uni.$u.props.swiper.duration
    },
    // 播放到末尾后是否重新回到开头
    circular: {
      type: Boolean,
      default: uni.$u.props.swiper.circular
    },
    // 前边距，可用于露出前一项的一小部分，nvue和支付宝不支持
    previousMargin: {
      type: [String, Number],
      default: uni.$u.props.swiper.previousMargin
    },
    // 后边距，可用于露出后一项的一小部分，nvue和支付宝不支持
    nextMargin: {
      type: [String, Number],
      default: uni.$u.props.swiper.nextMargin
    },
    // 当开启时，会根据滑动速度，连续滑动多屏，支付宝不支持
    acceleration: {
      type: Boolean,
      default: uni.$u.props.swiper.acceleration
    },
    // 同时显示的滑块数量，nvue、支付宝小程序不支持
    displayMultipleItems: {
      type: Number,
      default: uni.$u.props.swiper.displayMultipleItems
    },
    // 指定swiper切换缓动动画类型，有效值：default、linear、easeInCubic、easeOutCubic、easeInOutCubic
    // 只对微信小程序有效
    easingFunction: {
      type: String,
      default: uni.$u.props.swiper.easingFunction
    },
    // list数组中指定对象的目标属性名
    keyName: {
      type: String,
      default: uni.$u.props.swiper.keyName
    },
    // 图片的裁剪模式
    imgMode: {
      type: String,
      default: uni.$u.props.swiper.imgMode
    },
    // 组件高度
    height: {
      type: [String, Number],
      default: uni.$u.props.swiper.height
    },
    // 背景颜色
    bgColor: {
      type: String,
      default: uni.$u.props.swiper.bgColor
    },
    // 组件圆角，数值或带单位的字符串
    radius: {
      type: [String, Number],
      default: uni.$u.props.swiper.radius
    },
    // 是否加载中
    loading: {
      type: Boolean,
      default: uni.$u.props.swiper.loading
    },
    // 是否显示标题，要求数组对象中有title属性
    showTitle: {
      type: Boolean,
      default: uni.$u.props.swiper.showTitle
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 305 */,
/* 306 */,
/* 307 */,
/* 308 */,
/* 309 */,
/* 310 */,
/* 311 */,
/* 312 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-grid/props.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 分成几列
    col: {
      type: [String, Number],
      default: uni.$u.props.grid.col
    },
    // 是否显示边框
    border: {
      type: Boolean,
      default: uni.$u.props.grid.border
    },
    // 宫格对齐方式，表现为数量少的时候，靠左，居中，还是靠右
    align: {
      type: String,
      default: uni.$u.props.grid.align
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 313 */,
/* 314 */,
/* 315 */,
/* 316 */,
/* 317 */,
/* 318 */,
/* 319 */,
/* 320 */
/*!**************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-grid-item/props.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 宫格的name
    name: {
      type: [String, Number, null],
      default: uni.$u.props.gridItem.name
    },
    // 背景颜色
    bgColor: {
      type: String,
      default: uni.$u.props.gridItem.bgColor
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 321 */,
/* 322 */,
/* 323 */,
/* 324 */,
/* 325 */,
/* 326 */,
/* 327 */,
/* 328 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-icon/icons.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  'uicon-level': "\uE693",
  'uicon-column-line': "\uE68E",
  'uicon-checkbox-mark': "\uE807",
  'uicon-folder': "\uE7F5",
  'uicon-movie': "\uE7F6",
  'uicon-star-fill': "\uE669",
  'uicon-star': "\uE65F",
  'uicon-phone-fill': "\uE64F",
  'uicon-phone': "\uE622",
  'uicon-apple-fill': "\uE881",
  'uicon-chrome-circle-fill': "\uE885",
  'uicon-backspace': "\uE67B",
  'uicon-attach': "\uE632",
  'uicon-cut': "\uE948",
  'uicon-empty-car': "\uE602",
  'uicon-empty-coupon': "\uE682",
  'uicon-empty-address': "\uE646",
  'uicon-empty-favor': "\uE67C",
  'uicon-empty-permission': "\uE686",
  'uicon-empty-news': "\uE687",
  'uicon-empty-search': "\uE664",
  'uicon-github-circle-fill': "\uE887",
  'uicon-rmb': "\uE608",
  'uicon-person-delete-fill': "\uE66A",
  'uicon-reload': "\uE788",
  'uicon-order': "\uE68F",
  'uicon-server-man': "\uE6BC",
  'uicon-search': "\uE62A",
  'uicon-fingerprint': "\uE955",
  'uicon-more-dot-fill': "\uE630",
  'uicon-scan': "\uE662",
  'uicon-share-square': "\uE60B",
  'uicon-map': "\uE61D",
  'uicon-map-fill': "\uE64E",
  'uicon-tags': "\uE629",
  'uicon-tags-fill': "\uE651",
  'uicon-bookmark-fill': "\uE63B",
  'uicon-bookmark': "\uE60A",
  'uicon-eye': "\uE613",
  'uicon-eye-fill': "\uE641",
  'uicon-mic': "\uE64A",
  'uicon-mic-off': "\uE649",
  'uicon-calendar': "\uE66E",
  'uicon-calendar-fill': "\uE634",
  'uicon-trash': "\uE623",
  'uicon-trash-fill': "\uE658",
  'uicon-play-left': "\uE66D",
  'uicon-play-right': "\uE610",
  'uicon-minus': "\uE618",
  'uicon-plus': "\uE62D",
  'uicon-info': "\uE653",
  'uicon-info-circle': "\uE7D2",
  'uicon-info-circle-fill': "\uE64B",
  'uicon-question': "\uE715",
  'uicon-error': "\uE6D3",
  'uicon-close': "\uE685",
  'uicon-checkmark': "\uE6A8",
  'uicon-android-circle-fill': "\uE67E",
  'uicon-android-fill': "\uE67D",
  'uicon-ie': "\uE87B",
  'uicon-IE-circle-fill': "\uE889",
  'uicon-google': "\uE87A",
  'uicon-google-circle-fill': "\uE88A",
  'uicon-setting-fill': "\uE872",
  'uicon-setting': "\uE61F",
  'uicon-minus-square-fill': "\uE855",
  'uicon-plus-square-fill': "\uE856",
  'uicon-heart': "\uE7DF",
  'uicon-heart-fill': "\uE851",
  'uicon-camera': "\uE7D7",
  'uicon-camera-fill': "\uE870",
  'uicon-more-circle': "\uE63E",
  'uicon-more-circle-fill': "\uE645",
  'uicon-chat': "\uE620",
  'uicon-chat-fill': "\uE61E",
  'uicon-bag-fill': "\uE617",
  'uicon-bag': "\uE619",
  'uicon-error-circle-fill': "\uE62C",
  'uicon-error-circle': "\uE624",
  'uicon-close-circle': "\uE63F",
  'uicon-close-circle-fill': "\uE637",
  'uicon-checkmark-circle': "\uE63D",
  'uicon-checkmark-circle-fill': "\uE635",
  'uicon-question-circle-fill': "\uE666",
  'uicon-question-circle': "\uE625",
  'uicon-share': "\uE631",
  'uicon-share-fill': "\uE65E",
  'uicon-shopping-cart': "\uE621",
  'uicon-shopping-cart-fill': "\uE65D",
  'uicon-bell': "\uE609",
  'uicon-bell-fill': "\uE640",
  'uicon-list': "\uE650",
  'uicon-list-dot': "\uE616",
  'uicon-zhihu': "\uE6BA",
  'uicon-zhihu-circle-fill': "\uE709",
  'uicon-zhifubao': "\uE6B9",
  'uicon-zhifubao-circle-fill': "\uE6B8",
  'uicon-weixin-circle-fill': "\uE6B1",
  'uicon-weixin-fill': "\uE6B2",
  'uicon-twitter-circle-fill': "\uE6AB",
  'uicon-twitter': "\uE6AA",
  'uicon-taobao-circle-fill': "\uE6A7",
  'uicon-taobao': "\uE6A6",
  'uicon-weibo-circle-fill': "\uE6A5",
  'uicon-weibo': "\uE6A4",
  'uicon-qq-fill': "\uE6A1",
  'uicon-qq-circle-fill': "\uE6A0",
  'uicon-moments-circel-fill': "\uE69A",
  'uicon-moments': "\uE69B",
  'uicon-qzone': "\uE695",
  'uicon-qzone-circle-fill': "\uE696",
  'uicon-baidu-circle-fill': "\uE680",
  'uicon-baidu': "\uE681",
  'uicon-facebook-circle-fill': "\uE68A",
  'uicon-facebook': "\uE689",
  'uicon-car': "\uE60C",
  'uicon-car-fill': "\uE636",
  'uicon-warning-fill': "\uE64D",
  'uicon-warning': "\uE694",
  'uicon-clock-fill': "\uE638",
  'uicon-clock': "\uE60F",
  'uicon-edit-pen': "\uE612",
  'uicon-edit-pen-fill': "\uE66B",
  'uicon-email': "\uE611",
  'uicon-email-fill': "\uE642",
  'uicon-minus-circle': "\uE61B",
  'uicon-minus-circle-fill': "\uE652",
  'uicon-plus-circle': "\uE62E",
  'uicon-plus-circle-fill': "\uE661",
  'uicon-file-text': "\uE663",
  'uicon-file-text-fill': "\uE665",
  'uicon-pushpin': "\uE7E3",
  'uicon-pushpin-fill': "\uE86E",
  'uicon-grid': "\uE673",
  'uicon-grid-fill': "\uE678",
  'uicon-play-circle': "\uE647",
  'uicon-play-circle-fill': "\uE655",
  'uicon-pause-circle-fill': "\uE654",
  'uicon-pause': "\uE8FA",
  'uicon-pause-circle': "\uE643",
  'uicon-eye-off': "\uE648",
  'uicon-eye-off-outline': "\uE62B",
  'uicon-gift-fill': "\uE65C",
  'uicon-gift': "\uE65B",
  'uicon-rmb-circle-fill': "\uE657",
  'uicon-rmb-circle': "\uE677",
  'uicon-kefu-ermai': "\uE656",
  'uicon-server-fill': "\uE751",
  'uicon-coupon-fill': "\uE8C4",
  'uicon-coupon': "\uE8AE",
  'uicon-integral': "\uE704",
  'uicon-integral-fill': "\uE703",
  'uicon-home-fill': "\uE964",
  'uicon-home': "\uE965",
  'uicon-hourglass-half-fill': "\uE966",
  'uicon-hourglass': "\uE967",
  'uicon-account': "\uE628",
  'uicon-plus-people-fill': "\uE626",
  'uicon-minus-people-fill': "\uE615",
  'uicon-account-fill': "\uE614",
  'uicon-thumb-down-fill': "\uE726",
  'uicon-thumb-down': "\uE727",
  'uicon-thumb-up': "\uE733",
  'uicon-thumb-up-fill': "\uE72F",
  'uicon-lock-fill': "\uE979",
  'uicon-lock-open': "\uE973",
  'uicon-lock-opened-fill': "\uE974",
  'uicon-lock': "\uE97A",
  'uicon-red-packet-fill': "\uE690",
  'uicon-photo-fill': "\uE98B",
  'uicon-photo': "\uE98D",
  'uicon-volume-off-fill': "\uE659",
  'uicon-volume-off': "\uE644",
  'uicon-volume-fill': "\uE670",
  'uicon-volume': "\uE633",
  'uicon-red-packet': "\uE691",
  'uicon-download': "\uE63C",
  'uicon-arrow-up-fill': "\uE6B0",
  'uicon-arrow-down-fill': "\uE600",
  'uicon-play-left-fill': "\uE675",
  'uicon-play-right-fill': "\uE676",
  'uicon-rewind-left-fill': "\uE679",
  'uicon-rewind-right-fill': "\uE67A",
  'uicon-arrow-downward': "\uE604",
  'uicon-arrow-leftward': "\uE601",
  'uicon-arrow-rightward': "\uE603",
  'uicon-arrow-upward': "\uE607",
  'uicon-arrow-down': "\uE60D",
  'uicon-arrow-right': "\uE605",
  'uicon-arrow-left': "\uE60E",
  'uicon-arrow-up': "\uE606",
  'uicon-skip-back-left': "\uE674",
  'uicon-skip-forward-right': "\uE672",
  'uicon-rewind-right': "\uE66F",
  'uicon-rewind-left': "\uE671",
  'uicon-arrow-right-double': "\uE68D",
  'uicon-arrow-left-double': "\uE68C",
  'uicon-wifi-off': "\uE668",
  'uicon-wifi': "\uE667",
  'uicon-empty-data': "\uE62F",
  'uicon-empty-history': "\uE684",
  'uicon-empty-list': "\uE68B",
  'uicon-empty-page': "\uE627",
  'uicon-empty-order': "\uE639",
  'uicon-man': "\uE697",
  'uicon-woman': "\uE69C",
  'uicon-man-add': "\uE61C",
  'uicon-man-add-fill': "\uE64C",
  'uicon-man-delete': "\uE61A",
  'uicon-man-delete-fill': "\uE66A",
  'uicon-zh': "\uE70A",
  'uicon-en': "\uE692"
};
exports.default = _default;

/***/ }),
/* 329 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-icon/props.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 图标类名
    name: {
      type: String,
      default: uni.$u.props.icon.name
    },
    // 图标颜色，可接受主题色
    color: {
      type: String,
      default: uni.$u.props.icon.color
    },
    // 字体大小，单位px
    size: {
      type: [String, Number],
      default: uni.$u.props.icon.size
    },
    // 是否显示粗体
    bold: {
      type: Boolean,
      default: uni.$u.props.icon.bold
    },
    // 点击图标的时候传递事件出去的index（用于区分点击了哪一个）
    index: {
      type: [String, Number],
      default: uni.$u.props.icon.index
    },
    // 触摸图标时的类名
    hoverClass: {
      type: String,
      default: uni.$u.props.icon.hoverClass
    },
    // 自定义扩展前缀，方便用户扩展自己的图标库
    customPrefix: {
      type: String,
      default: uni.$u.props.icon.customPrefix
    },
    // 图标右边或者下面的文字
    label: {
      type: [String, Number],
      default: uni.$u.props.icon.label
    },
    // label的位置，只能右边或者下边
    labelPos: {
      type: String,
      default: uni.$u.props.icon.labelPos
    },
    // label的大小
    labelSize: {
      type: [String, Number],
      default: uni.$u.props.icon.labelSize
    },
    // label的颜色
    labelColor: {
      type: String,
      default: uni.$u.props.icon.labelColor
    },
    // label与图标的距离
    space: {
      type: [String, Number],
      default: uni.$u.props.icon.space
    },
    // 图片的mode
    imgMode: {
      type: String,
      default: uni.$u.props.icon.imgMode
    },
    // 用于显示图片小图标时，图片的宽度
    width: {
      type: [String, Number],
      default: uni.$u.props.icon.width
    },
    // 用于显示图片小图标时，图片的高度
    height: {
      type: [String, Number],
      default: uni.$u.props.icon.height
    },
    // 用于解决某些情况下，让图标垂直居中的用途
    top: {
      type: [String, Number],
      default: uni.$u.props.icon.top
    },
    // 是否阻止事件传播
    stop: {
      type: Boolean,
      default: uni.$u.props.icon.stop
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 330 */,
/* 331 */,
/* 332 */,
/* 333 */,
/* 334 */,
/* 335 */,
/* 336 */,
/* 337 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-tabs/props.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 滑块的移动过渡时间，单位ms
    duration: {
      type: Number,
      default: uni.$u.props.tabs.duration
    },
    // tabs标签数组
    list: {
      type: Array,
      default: uni.$u.props.tabs.list
    },
    // 滑块颜色
    lineColor: {
      type: String,
      default: uni.$u.props.tabs.lineColor
    },
    // 菜单选择中时的样式
    activeStyle: {
      type: [String, Object],
      default: uni.$u.props.tabs.activeStyle
    },
    // 菜单非选中时的样式
    inactiveStyle: {
      type: [String, Object],
      default: uni.$u.props.tabs.inactiveStyle
    },
    // 滑块长度
    lineWidth: {
      type: [String, Number],
      default: uni.$u.props.tabs.lineWidth
    },
    // 滑块高度
    lineHeight: {
      type: [String, Number],
      default: uni.$u.props.tabs.lineHeight
    },
    // 滑块背景显示大小，当滑块背景设置为图片时使用
    lineBgSize: {
      type: String,
      default: uni.$u.props.tabs.lineBgSize
    },
    // 菜单item的样式
    itemStyle: {
      type: [String, Object],
      default: uni.$u.props.tabs.itemStyle
    },
    // 菜单是否可滚动
    scrollable: {
      type: Boolean,
      default: uni.$u.props.tabs.scrollable
    },
    // 当前选中标签的索引
    current: {
      type: [Number, String],
      default: uni.$u.props.tabs.current
    },
    // 默认读取的键名
    keyName: {
      type: String,
      default: uni.$u.props.tabs.keyName
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 338 */,
/* 339 */,
/* 340 */,
/* 341 */,
/* 342 */,
/* 343 */,
/* 344 */,
/* 345 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-avatar/props.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 头像图片路径(不能为相对路径)
    src: {
      type: String,
      default: uni.$u.props.avatar.src
    },
    // 头像形状，circle-圆形，square-方形
    shape: {
      type: String,
      default: uni.$u.props.avatar.shape
    },
    // 头像尺寸
    size: {
      type: [String, Number],
      default: uni.$u.props.avatar.size
    },
    // 裁剪模式
    mode: {
      type: String,
      default: uni.$u.props.avatar.mode
    },
    // 显示的文字
    text: {
      type: String,
      default: uni.$u.props.avatar.text
    },
    // 背景色
    bgColor: {
      type: String,
      default: uni.$u.props.avatar.bgColor
    },
    // 文字颜色
    color: {
      type: String,
      default: uni.$u.props.avatar.color
    },
    // 文字大小
    fontSize: {
      type: [String, Number],
      default: uni.$u.props.avatar.fontSize
    },
    // 显示的图标
    icon: {
      type: String,
      default: uni.$u.props.avatar.icon
    },
    // 显示小程序头像，只对百度，微信，QQ小程序有效
    mpAvatar: {
      type: Boolean,
      default: uni.$u.props.avatar.mpAvatar
    },
    // 是否使用随机背景色
    randomBgColor: {
      type: Boolean,
      default: uni.$u.props.avatar.randomBgColor
    },
    // 加载失败的默认头像(组件有内置默认图片)
    defaultUrl: {
      type: String,
      default: uni.$u.props.avatar.defaultUrl
    },
    // 如果配置了randomBgColor为true，且配置了此值，则从默认的背景色数组中取出对应索引的颜色值，取值0-19之间
    colorIndex: {
      type: [String, Number],
      // 校验参数规则，索引在0-19之间
      validator: function validator(n) {
        return uni.$u.test.range(n, [0, 19]) || n === '';
      },
      default: uni.$u.props.avatar.colorIndex
    },
    // 组件标识符
    name: {
      type: String,
      default: uni.$u.props.avatar.name
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 346 */,
/* 347 */,
/* 348 */,
/* 349 */,
/* 350 */,
/* 351 */,
/* 352 */,
/* 353 */,
/* 354 */,
/* 355 */,
/* 356 */,
/* 357 */,
/* 358 */,
/* 359 */,
/* 360 */
/*!***************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/mixin/button.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    lang: String,
    sessionFrom: String,
    sendMessageTitle: String,
    sendMessagePath: String,
    sendMessageImg: String,
    showMessageCard: Boolean,
    appParameter: String,
    formType: String,
    openType: String
  }
};
exports.default = _default;

/***/ }),
/* 361 */
/*!*****************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/mixin/openType.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    openType: String
  },
  methods: {
    onGetUserInfo: function onGetUserInfo(event) {
      this.$emit('getuserinfo', event.detail);
    },
    onContact: function onContact(event) {
      this.$emit('contact', event.detail);
    },
    onGetPhoneNumber: function onGetPhoneNumber(event) {
      this.$emit('getphonenumber', event.detail);
    },
    onError: function onError(event) {
      this.$emit('error', event.detail);
    },
    onLaunchApp: function onLaunchApp(event) {
      this.$emit('launchapp', event.detail);
    },
    onOpenSetting: function onOpenSetting(event) {
      this.$emit('opensetting', event.detail);
    }
  }
};
exports.default = _default;

/***/ }),
/* 362 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-button/props.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/*
 * @Author       : LQ
 * @Description  :
 * @version      : 1.0
 * @Date         : 2021-08-16 10:04:04
 * @LastAuthor   : LQ
 * @lastTime     : 2021-08-16 10:04:24
 * @FilePath     : /u-view2.0/uview-ui/components/u-button/props.js
 */
var _default = {
  props: {
    // 是否细边框
    hairline: {
      type: Boolean,
      default: uni.$u.props.button.hairline
    },
    // 按钮的预置样式，info，primary，error，warning，success
    type: {
      type: String,
      default: uni.$u.props.button.type
    },
    // 按钮尺寸，large，normal，small，mini
    size: {
      type: String,
      default: uni.$u.props.button.size
    },
    // 按钮形状，circle（两边为半圆），square（带圆角）
    shape: {
      type: String,
      default: uni.$u.props.button.shape
    },
    // 按钮是否镂空
    plain: {
      type: Boolean,
      default: uni.$u.props.button.plain
    },
    // 是否禁止状态
    disabled: {
      type: Boolean,
      default: uni.$u.props.button.disabled
    },
    // 是否加载中
    loading: {
      type: Boolean,
      default: uni.$u.props.button.loading
    },
    // 加载中提示文字
    loadingText: {
      type: [String, Number],
      default: uni.$u.props.button.loadingText
    },
    // 加载状态图标类型
    loadingMode: {
      type: String,
      default: uni.$u.props.button.loadingMode
    },
    // 加载图标大小
    loadingSize: {
      type: [String, Number],
      default: uni.$u.props.button.loadingSize
    },
    // 开放能力，具体请看uniapp稳定关于button组件部分说明
    // https://uniapp.dcloud.io/component/button
    openType: {
      type: String,
      default: uni.$u.props.button.openType
    },
    // 用于 <form> 组件，点击分别会触发 <form> 组件的 submit/reset 事件
    // 取值为submit（提交表单），reset（重置表单）
    formType: {
      type: String,
      default: uni.$u.props.button.formType
    },
    // 打开 APP 时，向 APP 传递的参数，open-type=launchApp时有效
    // 只微信小程序、QQ小程序有效
    appParameter: {
      type: String,
      default: uni.$u.props.button.appParameter
    },
    // 指定是否阻止本节点的祖先节点出现点击态，微信小程序有效
    hoverStopPropagation: {
      type: Boolean,
      default: uni.$u.props.button.hoverStopPropagation
    },
    // 指定返回用户信息的语言，zh_CN 简体中文，zh_TW 繁体中文，en 英文。只微信小程序有效
    lang: {
      type: String,
      default: uni.$u.props.button.lang
    },
    // 会话来源，open-type="contact"时有效。只微信小程序有效
    sessionFrom: {
      type: String,
      default: uni.$u.props.button.sessionFrom
    },
    // 会话内消息卡片标题，open-type="contact"时有效
    // 默认当前标题，只微信小程序有效
    sendMessageTitle: {
      type: String,
      default: uni.$u.props.button.sendMessageTitle
    },
    // 会话内消息卡片点击跳转小程序路径，open-type="contact"时有效
    // 默认当前分享路径，只微信小程序有效
    sendMessagePath: {
      type: String,
      default: uni.$u.props.button.sendMessagePath
    },
    // 会话内消息卡片图片，open-type="contact"时有效
    // 默认当前页面截图，只微信小程序有效
    sendMessageImg: {
      type: String,
      default: uni.$u.props.button.sendMessageImg
    },
    // 是否显示会话内消息卡片，设置此参数为 true，用户进入客服会话会在右下角显示"可能要发送的小程序"提示，
    // 用户点击后可以快速发送小程序消息，open-type="contact"时有效
    showMessageCard: {
      type: Boolean,
      default: uni.$u.props.button.showMessageCard
    },
    // 额外传参参数，用于小程序的data-xxx属性，通过target.dataset.name获取
    dataName: {
      type: String,
      default: uni.$u.props.button.dataName
    },
    // 节流，一定时间内只能触发一次
    throttleTime: {
      type: [String, Number],
      default: uni.$u.props.button.throttleTime
    },
    // 按住后多久出现点击态，单位毫秒
    hoverStartTime: {
      type: [String, Number],
      default: uni.$u.props.button.hoverStartTime
    },
    // 手指松开后点击态保留时间，单位毫秒
    hoverStayTime: {
      type: [String, Number],
      default: uni.$u.props.button.hoverStayTime
    },
    // 按钮文字，之所以通过props传入，是因为slot传入的话
    // nvue中无法控制文字的样式
    text: {
      type: [String, Number],
      default: uni.$u.props.button.text
    },
    // 按钮图标
    icon: {
      type: String,
      default: uni.$u.props.button.icon
    },
    // 按钮图标
    iconColor: {
      type: String,
      default: uni.$u.props.button.icon
    },
    // 按钮颜色，支持传入linear-gradient渐变色
    color: {
      type: String,
      default: uni.$u.props.button.color
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 363 */,
/* 364 */,
/* 365 */,
/* 366 */,
/* 367 */,
/* 368 */,
/* 369 */,
/* 370 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-form/props.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 当前form的需要验证字段的集合
    model: {
      type: Object,
      default: uni.$u.props.form.model
    },
    // 验证规则
    rules: {
      type: [Object, Function, Array],
      default: uni.$u.props.form.rules
    },
    // 有错误时的提示方式，message-提示信息，toast-进行toast提示
    // border-bottom-下边框呈现红色，none-无提示
    errorType: {
      type: String,
      default: uni.$u.props.form.errorType
    },
    // 是否显示表单域的下划线边框
    borderBottom: {
      type: Boolean,
      default: uni.$u.props.form.borderBottom
    },
    // label的位置，left-左边，top-上边
    labelPosition: {
      type: String,
      default: uni.$u.props.form.labelPosition
    },
    // label的宽度，单位px
    labelWidth: {
      type: [String, Number],
      default: uni.$u.props.form.labelWidth
    },
    // lable字体的对齐方式
    labelAlign: {
      type: String,
      default: uni.$u.props.form.labelAlign
    },
    // lable的样式，对象形式
    labelStyle: {
      type: Object,
      default: uni.$u.props.form.labelStyle
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 371 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/util/async-validator.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _extends() {
  _extends = Object.assign || function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];
      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }
    return target;
  };
  return _extends.apply(this, arguments);
}

/* eslint no-console:0 */
var formatRegExp = /%[sdj%]/g;
var warning = function warning() {}; // don't print warning message when in production env or node runtime

if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"patient-wx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  warning = function warning(type, errors) {
    if (typeof console !== 'undefined' && console.warn) {
      if (errors.every(function (e) {
        return typeof e === 'string';
      })) {
        console.warn(type, errors);
      }
    }
  };
}
function convertFieldsError(errors) {
  if (!errors || !errors.length) return null;
  var fields = {};
  errors.forEach(function (error) {
    var field = error.field;
    fields[field] = fields[field] || [];
    fields[field].push(error);
  });
  return fields;
}
function format() {
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
    args[_key] = arguments[_key];
  }
  var i = 1;
  var f = args[0];
  var len = args.length;
  if (typeof f === 'function') {
    return f.apply(null, args.slice(1));
  }
  if (typeof f === 'string') {
    var str = String(f).replace(formatRegExp, function (x) {
      if (x === '%%') {
        return '%';
      }
      if (i >= len) {
        return x;
      }
      switch (x) {
        case '%s':
          return String(args[i++]);
        case '%d':
          return Number(args[i++]);
        case '%j':
          try {
            return JSON.stringify(args[i++]);
          } catch (_) {
            return '[Circular]';
          }
          break;
        default:
          return x;
      }
    });
    for (var arg = args[i]; i < len; arg = args[++i]) {
      str += " ".concat(arg);
    }
    return str;
  }
  return f;
}
function isNativeStringType(type) {
  return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
}
function isEmptyValue(value, type) {
  if (value === undefined || value === null) {
    return true;
  }
  if (type === 'array' && Array.isArray(value) && !value.length) {
    return true;
  }
  if (isNativeStringType(type) && typeof value === 'string' && !value) {
    return true;
  }
  return false;
}
function asyncParallelArray(arr, func, callback) {
  var results = [];
  var total = 0;
  var arrLength = arr.length;
  function count(errors) {
    results.push.apply(results, errors);
    total++;
    if (total === arrLength) {
      callback(results);
    }
  }
  arr.forEach(function (a) {
    func(a, count);
  });
}
function asyncSerialArray(arr, func, callback) {
  var index = 0;
  var arrLength = arr.length;
  function next(errors) {
    if (errors && errors.length) {
      callback(errors);
      return;
    }
    var original = index;
    index += 1;
    if (original < arrLength) {
      func(arr[original], next);
    } else {
      callback([]);
    }
  }
  next([]);
}
function flattenObjArr(objArr) {
  var ret = [];
  Object.keys(objArr).forEach(function (k) {
    ret.push.apply(ret, objArr[k]);
  });
  return ret;
}
function asyncMap(objArr, option, func, callback) {
  if (option.first) {
    var _pending = new Promise(function (resolve, reject) {
      var next = function next(errors) {
        callback(errors);
        return errors.length ? reject({
          errors: errors,
          fields: convertFieldsError(errors)
        }) : resolve();
      };
      var flattenArr = flattenObjArr(objArr);
      asyncSerialArray(flattenArr, func, next);
    });
    _pending.catch(function (e) {
      return e;
    });
    return _pending;
  }
  var firstFields = option.firstFields || [];
  if (firstFields === true) {
    firstFields = Object.keys(objArr);
  }
  var objArrKeys = Object.keys(objArr);
  var objArrLength = objArrKeys.length;
  var total = 0;
  var results = [];
  var pending = new Promise(function (resolve, reject) {
    var next = function next(errors) {
      results.push.apply(results, errors);
      total++;
      if (total === objArrLength) {
        callback(results);
        return results.length ? reject({
          errors: results,
          fields: convertFieldsError(results)
        }) : resolve();
      }
    };
    if (!objArrKeys.length) {
      callback(results);
      resolve();
    }
    objArrKeys.forEach(function (key) {
      var arr = objArr[key];
      if (firstFields.indexOf(key) !== -1) {
        asyncSerialArray(arr, func, next);
      } else {
        asyncParallelArray(arr, func, next);
      }
    });
  });
  pending.catch(function (e) {
    return e;
  });
  return pending;
}
function complementError(rule) {
  return function (oe) {
    if (oe && oe.message) {
      oe.field = oe.field || rule.fullField;
      return oe;
    }
    return {
      message: typeof oe === 'function' ? oe() : oe,
      field: oe.field || rule.fullField
    };
  };
}
function deepMerge(target, source) {
  if (source) {
    for (var s in source) {
      if (source.hasOwnProperty(s)) {
        var value = source[s];
        if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
          target[s] = _objectSpread(_objectSpread({}, target[s]), value);
        } else {
          target[s] = value;
        }
      }
    }
  }
  return target;
}

/**
 *  Rule for validating required fields.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function required(rule, value, source, errors, options, type) {
  if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
    errors.push(format(options.messages.required, rule.fullField));
  }
}

/**
 *  Rule for validating whitespace.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function whitespace(rule, value, source, errors, options) {
  if (/^\s+$/.test(value) || value === '') {
    errors.push(format(options.messages.whitespace, rule.fullField));
  }
}

/* eslint max-len:0 */

var pattern = {
  // http://emailregex.com/
  email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
};
var types = {
  integer: function integer(value) {
    return /^(-)?\d+$/.test(value);
  },
  float: function float(value) {
    return /^(-)?\d+(\.\d+)?$/.test(value);
  },
  array: function array(value) {
    return Array.isArray(value);
  },
  regexp: function regexp(value) {
    if (value instanceof RegExp) {
      return true;
    }
    try {
      return !!new RegExp(value);
    } catch (e) {
      return false;
    }
  },
  date: function date(value) {
    return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  },
  number: function number(value) {
    if (isNaN(value)) {
      return false;
    }

    // 修改源码，将字符串数值先转为数值
    return typeof +value === 'number';
  },
  object: function object(value) {
    return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  },
  method: function method(value) {
    return typeof value === 'function';
  },
  email: function email(value) {
    return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  },
  url: function url(value) {
    return typeof value === 'string' && !!value.match(pattern.url);
  },
  hex: function hex(value) {
    return typeof value === 'string' && !!value.match(pattern.hex);
  }
};
/**
 *  Rule for validating the type of a value.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function type(rule, value, source, errors, options) {
  if (rule.required && value === undefined) {
    required(rule, value, source, errors, options);
    return;
  }
  var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  var ruleType = rule.type;
  if (custom.indexOf(ruleType) > -1) {
    if (!types[ruleType](value)) {
      errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
    } // straight typeof check
  } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
    errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  }
}

/**
 *  Rule for validating minimum and maximum allowed values.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function range(rule, value, source, errors, options) {
  var len = typeof rule.len === 'number';
  var min = typeof rule.min === 'number';
  var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字（补充平面Supplementary Plane）

  var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  var val = value;
  var key = null;
  var num = typeof value === 'number';
  var str = typeof value === 'string';
  var arr = Array.isArray(value);
  if (num) {
    key = 'number';
  } else if (str) {
    key = 'string';
  } else if (arr) {
    key = 'array';
  } // if the value is not of a supported type for range validation
  // the validation rule rule should use the
  // type property to also test for a particular type

  if (!key) {
    return false;
  }
  if (arr) {
    val = value.length;
  }
  if (str) {
    // 处理码点大于U+010000的文字length属性不准确的bug，如"𠮷𠮷𠮷".lenght !== 3
    val = value.replace(spRegexp, '_').length;
  }
  if (len) {
    if (val !== rule.len) {
      errors.push(format(options.messages[key].len, rule.fullField, rule.len));
    }
  } else if (min && !max && val < rule.min) {
    errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  } else if (max && !min && val > rule.max) {
    errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  } else if (min && max && (val < rule.min || val > rule.max)) {
    errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  }
}
var ENUM = 'enum';
/**
 *  Rule for validating a value exists in an enumerable list.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function enumerable(rule, value, source, errors, options) {
  rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  if (rule[ENUM].indexOf(value) === -1) {
    errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  }
}

/**
 *  Rule for validating a regular expression pattern.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function pattern$1(rule, value, source, errors, options) {
  if (rule.pattern) {
    if (rule.pattern instanceof RegExp) {
      // if a RegExp instance is passed, reset `lastIndex` in case its `global`
      // flag is accidentally set to `true`, which in a validation scenario
      // is not necessary and the result might be misleading
      rule.pattern.lastIndex = 0;
      if (!rule.pattern.test(value)) {
        errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
      }
    } else if (typeof rule.pattern === 'string') {
      var _pattern = new RegExp(rule.pattern);
      if (!_pattern.test(value)) {
        errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
      }
    }
  }
}
var rules = {
  required: required,
  whitespace: whitespace,
  type: type,
  range: range,
  enum: enumerable,
  pattern: pattern$1
};

/**
 *  Performs validation for string types.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function string(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value, 'string') && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options, 'string');
    if (!isEmptyValue(value, 'string')) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
      rules.pattern(rule, value, source, errors, options);
      if (rule.whitespace === true) {
        rules.whitespace(rule, value, source, errors, options);
      }
    }
  }
  callback(errors);
}

/**
 *  Validates a function.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function method(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
}

/**
 *  Validates a number.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function number(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (value === '') {
      value = undefined;
    }
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
    }
  }
  callback(errors);
}

/**
 *  Validates a boolean.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function _boolean(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
}

/**
 *  Validates the regular expression type.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function regexp(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (!isEmptyValue(value)) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
}

/**
 *  Validates a number is an integer.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function integer(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
    }
  }
  callback(errors);
}

/**
 *  Validates a number is a floating point number.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function floatFn(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
    }
  }
  callback(errors);
}

/**
 *  Validates an array.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function array(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value, 'array') && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options, 'array');
    if (!isEmptyValue(value, 'array')) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
    }
  }
  callback(errors);
}

/**
 *  Validates an object.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function object(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
}
var ENUM$1 = 'enum';
/**
 *  Validates an enumerable list.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function enumerable$1(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules[ENUM$1](rule, value, source, errors, options);
    }
  }
  callback(errors);
}

/**
 *  Validates a regular expression pattern.
 *
 *  Performs validation when a rule only contains
 *  a pattern property but is not declared as a string type.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function pattern$2(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value, 'string') && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (!isEmptyValue(value, 'string')) {
      rules.pattern(rule, value, source, errors, options);
    }
  }
  callback(errors);
}
function date(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (!isEmptyValue(value)) {
      var dateObject;
      if (typeof value === 'number') {
        dateObject = new Date(value);
      } else {
        dateObject = value;
      }
      rules.type(rule, dateObject, source, errors, options);
      if (dateObject) {
        rules.range(rule, dateObject.getTime(), source, errors, options);
      }
    }
  }
  callback(errors);
}
function required$1(rule, value, callback, source, options) {
  var errors = [];
  var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  rules.required(rule, value, source, errors, options, type);
  callback(errors);
}
function type$1(rule, value, callback, source, options) {
  var ruleType = rule.type;
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value, ruleType) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options, ruleType);
    if (!isEmptyValue(value, ruleType)) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
}

/**
 *  Performs validation for any type.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

function any(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
  }
  callback(errors);
}
var validators = {
  string: string,
  method: method,
  number: number,
  boolean: _boolean,
  regexp: regexp,
  integer: integer,
  float: floatFn,
  array: array,
  object: object,
  enum: enumerable$1,
  pattern: pattern$2,
  date: date,
  url: type$1,
  hex: type$1,
  email: type$1,
  required: required$1,
  any: any
};
function newMessages() {
  return {
    default: 'Validation error on field %s',
    required: '%s is required',
    enum: '%s must be one of %s',
    whitespace: '%s cannot be empty',
    date: {
      format: '%s date %s is invalid for format %s',
      parse: '%s date could not be parsed, %s is invalid ',
      invalid: '%s date %s is invalid'
    },
    types: {
      string: '%s is not a %s',
      method: '%s is not a %s (function)',
      array: '%s is not an %s',
      object: '%s is not an %s',
      number: '%s is not a %s',
      date: '%s is not a %s',
      boolean: '%s is not a %s',
      integer: '%s is not an %s',
      float: '%s is not a %s',
      regexp: '%s is not a valid %s',
      email: '%s is not a valid %s',
      url: '%s is not a valid %s',
      hex: '%s is not a valid %s'
    },
    string: {
      len: '%s must be exactly %s characters',
      min: '%s must be at least %s characters',
      max: '%s cannot be longer than %s characters',
      range: '%s must be between %s and %s characters'
    },
    number: {
      len: '%s must equal %s',
      min: '%s cannot be less than %s',
      max: '%s cannot be greater than %s',
      range: '%s must be between %s and %s'
    },
    array: {
      len: '%s must be exactly %s in length',
      min: '%s cannot be less than %s in length',
      max: '%s cannot be greater than %s in length',
      range: '%s must be between %s and %s in length'
    },
    pattern: {
      mismatch: '%s value %s does not match pattern %s'
    },
    clone: function clone() {
      var cloned = JSON.parse(JSON.stringify(this));
      cloned.clone = this.clone;
      return cloned;
    }
  };
}
var messages = newMessages();

/**
 *  Encapsulates a validation schema.
 *
 *  @param descriptor An object declaring validation rules
 *  for this schema.
 */

function Schema(descriptor) {
  this.rules = null;
  this._messages = messages;
  this.define(descriptor);
}
Schema.prototype = {
  messages: function messages(_messages) {
    if (_messages) {
      this._messages = deepMerge(newMessages(), _messages);
    }
    return this._messages;
  },
  define: function define(rules) {
    if (!rules) {
      throw new Error('Cannot configure a schema with no rules');
    }
    if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
      throw new Error('Rules must be an object');
    }
    this.rules = {};
    var z;
    var item;
    for (z in rules) {
      if (rules.hasOwnProperty(z)) {
        item = rules[z];
        this.rules[z] = Array.isArray(item) ? item : [item];
      }
    }
  },
  validate: function validate(source_, o, oc) {
    var _this = this;
    if (o === void 0) {
      o = {};
    }
    if (oc === void 0) {
      oc = function oc() {};
    }
    var source = source_;
    var options = o;
    var callback = oc;
    if (typeof options === 'function') {
      callback = options;
      options = {};
    }
    if (!this.rules || Object.keys(this.rules).length === 0) {
      if (callback) {
        callback();
      }
      return Promise.resolve();
    }
    function complete(results) {
      var i;
      var errors = [];
      var fields = {};
      function add(e) {
        if (Array.isArray(e)) {
          var _errors;
          errors = (_errors = errors).concat.apply(_errors, e);
        } else {
          errors.push(e);
        }
      }
      for (i = 0; i < results.length; i++) {
        add(results[i]);
      }
      if (!errors.length) {
        errors = null;
        fields = null;
      } else {
        fields = convertFieldsError(errors);
      }
      callback(errors, fields);
    }
    if (options.messages) {
      var messages$1 = this.messages();
      if (messages$1 === messages) {
        messages$1 = newMessages();
      }
      deepMerge(messages$1, options.messages);
      options.messages = messages$1;
    } else {
      options.messages = this.messages();
    }
    var arr;
    var value;
    var series = {};
    var keys = options.keys || Object.keys(this.rules);
    keys.forEach(function (z) {
      arr = _this.rules[z];
      value = source[z];
      arr.forEach(function (r) {
        var rule = r;
        if (typeof rule.transform === 'function') {
          if (source === source_) {
            source = _objectSpread({}, source);
          }
          value = source[z] = rule.transform(value);
        }
        if (typeof rule === 'function') {
          rule = {
            validator: rule
          };
        } else {
          rule = _objectSpread({}, rule);
        }
        rule.validator = _this.getValidationMethod(rule);
        rule.field = z;
        rule.fullField = rule.fullField || z;
        rule.type = _this.getType(rule);
        if (!rule.validator) {
          return;
        }
        series[z] = series[z] || [];
        series[z].push({
          rule: rule,
          value: value,
          source: source,
          field: z
        });
      });
    });
    var errorFields = {};
    return asyncMap(series, options, function (data, doIt) {
      var rule = data.rule;
      var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
      deep = deep && (rule.required || !rule.required && data.value);
      rule.field = data.field;
      function addFullfield(key, schema) {
        return _objectSpread(_objectSpread({}, schema), {}, {
          fullField: "".concat(rule.fullField, ".").concat(key)
        });
      }
      function cb(e) {
        if (e === void 0) {
          e = [];
        }
        var errors = e;
        if (!Array.isArray(errors)) {
          errors = [errors];
        }
        if (!options.suppressWarning && errors.length) {
          Schema.warning('async-validator:', errors);
        }
        if (errors.length && rule.message) {
          errors = [].concat(rule.message);
        }
        errors = errors.map(complementError(rule));
        if (options.first && errors.length) {
          errorFields[rule.field] = 1;
          return doIt(errors);
        }
        if (!deep) {
          doIt(errors);
        } else {
          // if rule is required but the target object
          // does not exist fail at the rule level and don't
          // go deeper
          if (rule.required && !data.value) {
            if (rule.message) {
              errors = [].concat(rule.message).map(complementError(rule));
            } else if (options.error) {
              errors = [options.error(rule, format(options.messages.required, rule.field))];
            } else {
              errors = [];
            }
            return doIt(errors);
          }
          var fieldsSchema = {};
          if (rule.defaultField) {
            for (var k in data.value) {
              if (data.value.hasOwnProperty(k)) {
                fieldsSchema[k] = rule.defaultField;
              }
            }
          }
          fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
          for (var f in fieldsSchema) {
            if (fieldsSchema.hasOwnProperty(f)) {
              var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
              fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
            }
          }
          var schema = new Schema(fieldsSchema);
          schema.messages(options.messages);
          if (data.rule.options) {
            data.rule.options.messages = options.messages;
            data.rule.options.error = options.error;
          }
          schema.validate(data.value, data.rule.options || options, function (errs) {
            var finalErrors = [];
            if (errors && errors.length) {
              finalErrors.push.apply(finalErrors, errors);
            }
            if (errs && errs.length) {
              finalErrors.push.apply(finalErrors, errs);
            }
            doIt(finalErrors.length ? finalErrors : null);
          });
        }
      }
      var res;
      if (rule.asyncValidator) {
        res = rule.asyncValidator(rule, data.value, cb, data.source, options);
      } else if (rule.validator) {
        res = rule.validator(rule, data.value, cb, data.source, options);
        if (res === true) {
          cb();
        } else if (res === false) {
          cb(rule.message || "".concat(rule.field, " fails"));
        } else if (res instanceof Array) {
          cb(res);
        } else if (res instanceof Error) {
          cb(res.message);
        }
      }
      if (res && res.then) {
        res.then(function () {
          return cb();
        }, function (e) {
          return cb(e);
        });
      }
    }, function (results) {
      complete(results);
    });
  },
  getType: function getType(rule) {
    if (rule.type === undefined && rule.pattern instanceof RegExp) {
      rule.type = 'pattern';
    }
    if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
      throw new Error(format('Unknown rule type %s', rule.type));
    }
    return rule.type || 'string';
  },
  getValidationMethod: function getValidationMethod(rule) {
    if (typeof rule.validator === 'function') {
      return rule.validator;
    }
    var keys = Object.keys(rule);
    var messageIndex = keys.indexOf('message');
    if (messageIndex !== -1) {
      keys.splice(messageIndex, 1);
    }
    if (keys.length === 1 && keys[0] === 'required') {
      return validators.required;
    }
    return validators[this.getType(rule)] || false;
  }
};
Schema.register = function register(type, validator) {
  if (typeof validator !== 'function') {
    throw new Error('Cannot register a validator by type, validator is not a function');
  }
  validators[type] = validator;
};
Schema.warning = warning;
Schema.messages = messages;
var _default = Schema; // # sourceMappingURL=index.js.map
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 372)))

/***/ }),
/* 372 */
/*!********************************************************!*\
  !*** ./node_modules/node-libs-browser/mock/process.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

exports.nextTick = function nextTick(fn) {
    var args = Array.prototype.slice.call(arguments);
    args.shift();
    setTimeout(function () {
        fn.apply(null, args);
    }, 0);
};

exports.platform = exports.arch = 
exports.execPath = exports.title = 'browser';
exports.pid = 1;
exports.browser = true;
exports.env = {};
exports.argv = [];

exports.binding = function (name) {
	throw new Error('No such module. (Possibly not yet loaded)')
};

(function () {
    var cwd = '/';
    var path;
    exports.cwd = function () { return cwd };
    exports.chdir = function (dir) {
        if (!path) path = __webpack_require__(/*! path */ 373);
        cwd = path.resolve(dir, cwd);
    };
})();

exports.exit = exports.kill = 
exports.umask = exports.dlopen = 
exports.uptime = exports.memoryUsage = 
exports.uvCounters = function() {};
exports.features = {};


/***/ }),
/* 373 */
/*!***********************************************!*\
  !*** ./node_modules/path-browserify/index.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
// backported and transplited with Babel, with backwards-compat fixes

// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// resolves . and .. elements in a path array with directory names there
// must be no slashes, empty elements, or device names (c:\) in the array
// (so also no leading and trailing slashes - it does not distinguish
// relative and absolute paths)
function normalizeArray(parts, allowAboveRoot) {
  // if the path tries to go above the root, `up` ends up > 0
  var up = 0;
  for (var i = parts.length - 1; i >= 0; i--) {
    var last = parts[i];
    if (last === '.') {
      parts.splice(i, 1);
    } else if (last === '..') {
      parts.splice(i, 1);
      up++;
    } else if (up) {
      parts.splice(i, 1);
      up--;
    }
  }

  // if the path is allowed to go above the root, restore leading ..s
  if (allowAboveRoot) {
    for (; up--; up) {
      parts.unshift('..');
    }
  }

  return parts;
}

// path.resolve([from ...], to)
// posix version
exports.resolve = function() {
  var resolvedPath = '',
      resolvedAbsolute = false;

  for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
    var path = (i >= 0) ? arguments[i] : process.cwd();

    // Skip empty and invalid entries
    if (typeof path !== 'string') {
      throw new TypeError('Arguments to path.resolve must be strings');
    } else if (!path) {
      continue;
    }

    resolvedPath = path + '/' + resolvedPath;
    resolvedAbsolute = path.charAt(0) === '/';
  }

  // At this point the path should be resolved to a full absolute path, but
  // handle relative paths to be safe (might happen when process.cwd() fails)

  // Normalize the path
  resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
    return !!p;
  }), !resolvedAbsolute).join('/');

  return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
};

// path.normalize(path)
// posix version
exports.normalize = function(path) {
  var isAbsolute = exports.isAbsolute(path),
      trailingSlash = substr(path, -1) === '/';

  // Normalize the path
  path = normalizeArray(filter(path.split('/'), function(p) {
    return !!p;
  }), !isAbsolute).join('/');

  if (!path && !isAbsolute) {
    path = '.';
  }
  if (path && trailingSlash) {
    path += '/';
  }

  return (isAbsolute ? '/' : '') + path;
};

// posix version
exports.isAbsolute = function(path) {
  return path.charAt(0) === '/';
};

// posix version
exports.join = function() {
  var paths = Array.prototype.slice.call(arguments, 0);
  return exports.normalize(filter(paths, function(p, index) {
    if (typeof p !== 'string') {
      throw new TypeError('Arguments to path.join must be strings');
    }
    return p;
  }).join('/'));
};


// path.relative(from, to)
// posix version
exports.relative = function(from, to) {
  from = exports.resolve(from).substr(1);
  to = exports.resolve(to).substr(1);

  function trim(arr) {
    var start = 0;
    for (; start < arr.length; start++) {
      if (arr[start] !== '') break;
    }

    var end = arr.length - 1;
    for (; end >= 0; end--) {
      if (arr[end] !== '') break;
    }

    if (start > end) return [];
    return arr.slice(start, end - start + 1);
  }

  var fromParts = trim(from.split('/'));
  var toParts = trim(to.split('/'));

  var length = Math.min(fromParts.length, toParts.length);
  var samePartsLength = length;
  for (var i = 0; i < length; i++) {
    if (fromParts[i] !== toParts[i]) {
      samePartsLength = i;
      break;
    }
  }

  var outputParts = [];
  for (var i = samePartsLength; i < fromParts.length; i++) {
    outputParts.push('..');
  }

  outputParts = outputParts.concat(toParts.slice(samePartsLength));

  return outputParts.join('/');
};

exports.sep = '/';
exports.delimiter = ':';

exports.dirname = function (path) {
  if (typeof path !== 'string') path = path + '';
  if (path.length === 0) return '.';
  var code = path.charCodeAt(0);
  var hasRoot = code === 47 /*/*/;
  var end = -1;
  var matchedSlash = true;
  for (var i = path.length - 1; i >= 1; --i) {
    code = path.charCodeAt(i);
    if (code === 47 /*/*/) {
        if (!matchedSlash) {
          end = i;
          break;
        }
      } else {
      // We saw the first non-path separator
      matchedSlash = false;
    }
  }

  if (end === -1) return hasRoot ? '/' : '.';
  if (hasRoot && end === 1) {
    // return '//';
    // Backwards-compat fix:
    return '/';
  }
  return path.slice(0, end);
};

function basename(path) {
  if (typeof path !== 'string') path = path + '';

  var start = 0;
  var end = -1;
  var matchedSlash = true;
  var i;

  for (i = path.length - 1; i >= 0; --i) {
    if (path.charCodeAt(i) === 47 /*/*/) {
        // If we reached a path separator that was not part of a set of path
        // separators at the end of the string, stop now
        if (!matchedSlash) {
          start = i + 1;
          break;
        }
      } else if (end === -1) {
      // We saw the first non-path separator, mark this as the end of our
      // path component
      matchedSlash = false;
      end = i + 1;
    }
  }

  if (end === -1) return '';
  return path.slice(start, end);
}

// Uses a mixed approach for backwards-compatibility, as ext behavior changed
// in new Node.js versions, so only basename() above is backported here
exports.basename = function (path, ext) {
  var f = basename(path);
  if (ext && f.substr(-1 * ext.length) === ext) {
    f = f.substr(0, f.length - ext.length);
  }
  return f;
};

exports.extname = function (path) {
  if (typeof path !== 'string') path = path + '';
  var startDot = -1;
  var startPart = 0;
  var end = -1;
  var matchedSlash = true;
  // Track the state of characters (if any) we see before our first dot and
  // after any path separator we find
  var preDotState = 0;
  for (var i = path.length - 1; i >= 0; --i) {
    var code = path.charCodeAt(i);
    if (code === 47 /*/*/) {
        // If we reached a path separator that was not part of a set of path
        // separators at the end of the string, stop now
        if (!matchedSlash) {
          startPart = i + 1;
          break;
        }
        continue;
      }
    if (end === -1) {
      // We saw the first non-path separator, mark this as the end of our
      // extension
      matchedSlash = false;
      end = i + 1;
    }
    if (code === 46 /*.*/) {
        // If this is our first dot, mark it as the start of our extension
        if (startDot === -1)
          startDot = i;
        else if (preDotState !== 1)
          preDotState = 1;
    } else if (startDot !== -1) {
      // We saw a non-dot and non-path separator before our dot, so we should
      // have a good chance at having a non-empty extension
      preDotState = -1;
    }
  }

  if (startDot === -1 || end === -1 ||
      // We saw a non-dot character immediately before the dot
      preDotState === 0 ||
      // The (right-most) trimmed path component is exactly '..'
      preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
    return '';
  }
  return path.slice(startDot, end);
};

function filter (xs, f) {
    if (xs.filter) return xs.filter(f);
    var res = [];
    for (var i = 0; i < xs.length; i++) {
        if (f(xs[i], i, xs)) res.push(xs[i]);
    }
    return res;
}

// String.prototype.substr - negative index don't work in IE8
var substr = 'ab'.substr(-1) === 'b'
    ? function (str, start, len) { return str.substr(start, len) }
    : function (str, start, len) {
        if (start < 0) start = str.length + start;
        return str.substr(start, len);
    }
;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 372)))

/***/ }),
/* 374 */,
/* 375 */,
/* 376 */,
/* 377 */,
/* 378 */,
/* 379 */
/*!**************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-form-item/props.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // input的label提示语
    label: {
      type: String,
      default: uni.$u.props.formItem.label
    },
    // 绑定的值
    prop: {
      type: String,
      default: uni.$u.props.formItem.prop
    },
    // 是否显示表单域的下划线边框
    borderBottom: {
      type: [String, Boolean],
      default: uni.$u.props.formItem.borderBottom
    },
    // label的宽度，单位px
    labelWidth: {
      type: [String, Number],
      default: uni.$u.props.formItem.labelWidth
    },
    // 右侧图标
    rightIcon: {
      type: String,
      default: uni.$u.props.formItem.rightIcon
    },
    // 左侧图标
    leftIcon: {
      type: String,
      default: uni.$u.props.formItem.leftIcon
    },
    // 是否显示左边的必填星号，只作显示用，具体校验必填的逻辑，请在rules中配置
    required: {
      type: Boolean,
      default: uni.$u.props.formItem.required
    },
    leftIconStyle: {
      type: [String, Object],
      default: uni.$u.props.formItem.leftIconStyle
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 380 */,
/* 381 */,
/* 382 */,
/* 383 */,
/* 384 */,
/* 385 */,
/* 386 */,
/* 387 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-input/props.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 输入的值
    value: {
      type: [String, Number],
      default: uni.$u.props.input.value
    },
    // 输入框类型
    // number-数字输入键盘，app-vue下可以输入浮点数，app-nvue和小程序平台下只能输入整数
    // idcard-身份证输入键盘，微信、支付宝、百度、QQ小程序
    // digit-带小数点的数字键盘，App的nvue页面、微信、支付宝、百度、头条、QQ小程序
    // text-文本输入键盘
    type: {
      type: String,
      default: uni.$u.props.input.type
    },
    // 如果 textarea 是在一个 position:fixed 的区域，需要显示指定属性 fixed 为 true，
    // 兼容性：微信小程序、百度小程序、字节跳动小程序、QQ小程序
    fixed: {
      type: Boolean,
      default: uni.$u.props.input.fixed
    },
    // 是否禁用输入框
    disabled: {
      type: Boolean,
      default: uni.$u.props.input.disabled
    },
    // 禁用状态时的背景色
    disabledColor: {
      type: String,
      default: uni.$u.props.input.disabledColor
    },
    // 是否显示清除控件
    clearable: {
      type: Boolean,
      default: uni.$u.props.input.clearable
    },
    // 是否密码类型
    password: {
      type: Boolean,
      default: uni.$u.props.input.password
    },
    // 最大输入长度，设置为 -1 的时候不限制最大长度
    maxlength: {
      type: [String, Number],
      default: uni.$u.props.input.maxlength
    },
    // 	输入框为空时的占位符
    placeholder: {
      type: String,
      default: uni.$u.props.input.placeholder
    },
    // 指定placeholder的样式类，注意页面或组件的style中写了scoped时，需要在类名前写/deep/
    placeholderClass: {
      type: String,
      default: uni.$u.props.input.placeholderClass
    },
    // 指定placeholder的样式
    placeholderStyle: {
      type: [String, Object],
      default: uni.$u.props.input.placeholderStyle
    },
    // 是否显示输入字数统计，只在 type ="text"或type ="textarea"时有效
    showWordLimit: {
      type: Boolean,
      default: uni.$u.props.input.showWordLimit
    },
    // 设置右下角按钮的文字，有效值：send|search|next|go|done，兼容性详见uni-app文档
    // https://uniapp.dcloud.io/component/input
    // https://uniapp.dcloud.io/component/textarea
    confirmType: {
      type: String,
      default: uni.$u.props.input.confirmType
    },
    // 点击键盘右下角按钮时是否保持键盘不收起，H5无效
    confirmHold: {
      type: Boolean,
      default: uni.$u.props.input.confirmHold
    },
    // focus时，点击页面的时候不收起键盘，微信小程序有效
    holdKeyboard: {
      type: Boolean,
      default: uni.$u.props.input.holdKeyboard
    },
    // 自动获取焦点
    // 在 H5 平台能否聚焦以及软键盘是否跟随弹出，取决于当前浏览器本身的实现。nvue 页面不支持，需使用组件的 focus()、blur() 方法控制焦点
    focus: {
      type: Boolean,
      default: uni.$u.props.input.focus
    },
    // 键盘收起时，是否自动失去焦点，目前仅App3.0.0+有效
    autoBlur: {
      type: Boolean,
      default: uni.$u.props.input.autoBlur
    },
    // 是否去掉 iOS 下的默认内边距，仅微信小程序，且type=textarea时有效
    disableDefaultPadding: {
      type: Boolean,
      default: uni.$u.props.input.disableDefaultPadding
    },
    // 指定focus时光标的位置
    cursor: {
      type: [String, Number],
      default: uni.$u.props.input.cursor
    },
    // 输入框聚焦时底部与键盘的距离
    cursorSpacing: {
      type: [String, Number],
      default: uni.$u.props.input.cursorSpacing
    },
    // 光标起始位置，自动聚集时有效，需与selection-end搭配使用
    selectionStart: {
      type: [String, Number],
      default: uni.$u.props.input.selectionStart
    },
    // 光标结束位置，自动聚集时有效，需与selection-start搭配使用
    selectionEnd: {
      type: [String, Number],
      default: uni.$u.props.input.selectionEnd
    },
    // 键盘弹起时，是否自动上推页面
    adjustPosition: {
      type: Boolean,
      default: uni.$u.props.input.adjustPosition
    },
    // 输入框内容对齐方式，可选值为：left|center|right
    inputAlign: {
      type: String,
      default: uni.$u.props.input.inputAlign
    },
    // 输入框字体的大小
    fontSize: {
      type: [String, Number],
      default: uni.$u.props.input.fontSize
    },
    // 输入框字体颜色
    color: {
      type: String,
      default: uni.$u.props.input.color
    },
    // 输入框前置图标
    prefixIcon: {
      type: String,
      default: uni.$u.props.input.prefixIcon
    },
    // 前置图标样式，对象或字符串
    prefixIconStyle: {
      type: [String, Object],
      default: uni.$u.props.input.prefixIconStyle
    },
    // 输入框后置图标
    suffixIcon: {
      type: String,
      default: uni.$u.props.input.suffixIcon
    },
    // 后置图标样式，对象或字符串
    suffixIconStyle: {
      type: [String, Object],
      default: uni.$u.props.input.suffixIconStyle
    },
    // 边框类型，surround-四周边框，bottom-底部边框，none-无边框
    border: {
      type: String,
      default: uni.$u.props.input.border
    },
    // 是否只读，与disabled不同之处在于disabled会置灰组件，而readonly则不会
    readonly: {
      type: Boolean,
      default: uni.$u.props.input.readonly
    },
    // 输入框形状，circle-圆形，square-方形
    shape: {
      type: String,
      default: uni.$u.props.input.shape
    },
    // 用于处理或者过滤输入框内容的方法
    formatter: {
      type: [Function, null],
      default: uni.$u.props.input.formatter
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 388 */,
/* 389 */,
/* 390 */,
/* 391 */,
/* 392 */,
/* 393 */,
/* 394 */,
/* 395 */
/*!*****************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-action-sheet/props.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 操作菜单是否展示 （默认false）
    show: {
      type: Boolean,
      default: uni.$u.props.actionSheet.show
    },
    // 标题
    title: {
      type: String,
      default: uni.$u.props.actionSheet.title
    },
    // 选项上方的描述信息
    description: {
      type: String,
      default: uni.$u.props.actionSheet.description
    },
    // 数据
    actions: {
      type: Array,
      default: uni.$u.props.actionSheet.actions
    },
    // 取消按钮的文字，不为空时显示按钮
    cancelText: {
      type: String,
      default: uni.$u.props.actionSheet.cancelText
    },
    // 点击某个菜单项时是否关闭弹窗
    closeOnClickAction: {
      type: Boolean,
      default: uni.$u.props.actionSheet.closeOnClickAction
    },
    // 处理底部安全区（默认true）
    safeAreaInsetBottom: {
      type: Boolean,
      default: uni.$u.props.actionSheet.safeAreaInsetBottom
    },
    // 小程序的打开方式
    openType: {
      type: String,
      default: uni.$u.props.actionSheet.openType
    },
    // 点击遮罩是否允许关闭 (默认true)
    closeOnClickOverlay: {
      type: Boolean,
      default: uni.$u.props.actionSheet.closeOnClickOverlay
    },
    // 圆角值
    round: {
      type: [Boolean, String, Number],
      default: uni.$u.props.actionSheet.round
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 396 */,
/* 397 */,
/* 398 */,
/* 399 */,
/* 400 */,
/* 401 */,
/* 402 */,
/* 403 */
/*!********************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-datetime-picker/props.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 是否打开组件
    show: {
      type: Boolean,
      default: uni.$u.props.datetimePicker.show
    },
    // 是否展示顶部的操作栏
    showToolbar: {
      type: Boolean,
      default: uni.$u.props.datetimePicker.showToolbar
    },
    // 绑定值
    value: {
      type: [String, Number],
      default: uni.$u.props.datetimePicker.value
    },
    // 顶部标题
    title: {
      type: String,
      default: uni.$u.props.datetimePicker.title
    },
    // 展示格式，mode=date为日期选择，mode=time为时间选择，mode=year-month为年月选择，mode=datetime为日期时间选择
    mode: {
      type: String,
      default: uni.$u.props.datetimePicker.mode
    },
    // 可选的最大时间
    maxDate: {
      type: Number,
      // 最大默认值为后10年
      default: uni.$u.props.datetimePicker.maxDate
    },
    // 可选的最小时间
    minDate: {
      type: Number,
      // 最小默认值为前10年
      default: uni.$u.props.datetimePicker.minDate
    },
    // 可选的最小小时，仅mode=time有效
    minHour: {
      type: Number,
      default: uni.$u.props.datetimePicker.minHour
    },
    // 可选的最大小时，仅mode=time有效
    maxHour: {
      type: Number,
      default: uni.$u.props.datetimePicker.maxHour
    },
    // 可选的最小分钟，仅mode=time有效
    minMinute: {
      type: Number,
      default: uni.$u.props.datetimePicker.minMinute
    },
    // 可选的最大分钟，仅mode=time有效
    maxMinute: {
      type: Number,
      default: uni.$u.props.datetimePicker.maxMinute
    },
    // 选项过滤函数
    filter: {
      type: [Function, null],
      default: uni.$u.props.datetimePicker.filter
    },
    // 选项格式化函数
    formatter: {
      type: [Function, null],
      default: uni.$u.props.datetimePicker.formatter
    },
    // 是否显示加载中状态
    loading: {
      type: Boolean,
      default: uni.$u.props.datetimePicker.loading
    },
    // 各列中，单个选项的高度
    itemHeight: {
      type: [String, Number],
      default: uni.$u.props.datetimePicker.itemHeight
    },
    // 取消按钮的文字
    cancelText: {
      type: String,
      default: uni.$u.props.datetimePicker.cancelText
    },
    // 确认按钮的文字
    confirmText: {
      type: String,
      default: uni.$u.props.datetimePicker.confirmText
    },
    // 取消按钮的颜色
    cancelColor: {
      type: String,
      default: uni.$u.props.datetimePicker.cancelColor
    },
    // 确认按钮的颜色
    confirmColor: {
      type: String,
      default: uni.$u.props.datetimePicker.confirmColor
    },
    // 每列中可见选项的数量
    visibleItemCount: {
      type: [String, Number],
      default: uni.$u.props.datetimePicker.visibleItemCount
    },
    // 是否允许点击遮罩关闭选择器
    closeOnClickOverlay: {
      type: Boolean,
      default: uni.$u.props.datetimePicker.closeOnClickOverlay
    },
    // 各列的默认索引
    defaultIndex: {
      type: Array,
      default: uni.$u.props.datetimePicker.defaultIndex
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 404 */
/*!*************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/libs/util/dayjs.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
!function (t, e) {
  ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = e() :  true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (e),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
				__WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
}(this, function () {
  'use strict';

  var t = 'millisecond';
  var e = 'second';
  var n = 'minute';
  var r = 'hour';
  var i = 'day';
  var s = 'week';
  var u = 'month';
  var a = 'quarter';
  var o = 'year';
  var f = 'date';
  var h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/;
  var c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
  var d = {
    name: 'en',
    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_')
  };
  var $ = function $(t, e, n) {
    var r = String(t);
    return !r || r.length >= e ? t : "".concat(Array(e + 1 - r.length).join(n)).concat(t);
  };
  var l = {
    s: $,
    z: function z(t) {
      var e = -t.utcOffset();
      var n = Math.abs(e);
      var r = Math.floor(n / 60);
      var i = n % 60;
      return "".concat((e <= 0 ? '+' : '-') + $(r, 2, '0'), ":").concat($(i, 2, '0'));
    },
    m: function t(e, n) {
      if (e.date() < n.date()) return -t(n, e);
      var r = 12 * (n.year() - e.year()) + (n.month() - e.month());
      var i = e.clone().add(r, u);
      var s = n - i < 0;
      var a = e.clone().add(r + (s ? -1 : 1), u);
      return +(-(r + (n - i) / (s ? i - a : a - i)) || 0);
    },
    a: function a(t) {
      return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
    },
    p: function p(h) {
      return {
        M: u,
        y: o,
        w: s,
        d: i,
        D: f,
        h: r,
        m: n,
        s: e,
        ms: t,
        Q: a
      }[h] || String(h || '').toLowerCase().replace(/s$/, '');
    },
    u: function u(t) {
      return void 0 === t;
    }
  };
  var y = 'en';
  var M = {};
  M[y] = d;
  var m = function m(t) {
    return t instanceof S;
  };
  var D = function D(t, e, n) {
    var r;
    if (!t) return y;
    if (typeof t === 'string') M[t] && (r = t), e && (M[t] = e, r = t);else {
      var _i = t.name;
      M[_i] = t, r = _i;
    }
    return !n && r && (y = r), r || !n && y;
  };
  var v = function v(t, e) {
    if (m(t)) return t.clone();
    var n = _typeof(e) === 'object' ? e : {};
    return n.date = t, n.args = arguments, new S(n);
  };
  var g = l;
  g.l = D, g.i = m, g.w = function (t, e) {
    return v(t, {
      locale: e.$L,
      utc: e.$u,
      x: e.$x,
      $offset: e.$offset
    });
  };
  var S = function () {
    function d(t) {
      this.$L = D(t.locale, null, !0), this.parse(t);
    }
    var $ = d.prototype;
    return $.parse = function (t) {
      this.$d = function (t) {
        var e = t.date;
        var n = t.utc;
        if (e === null) return new Date(NaN);
        if (g.u(e)) return new Date();
        if (e instanceof Date) return new Date(e);
        if (typeof e === 'string' && !/Z$/i.test(e)) {
          var _r = e.match(h);
          if (_r) {
            var _i2 = _r[2] - 1 || 0;
            var _s = (_r[7] || '0').substring(0, 3);
            return n ? new Date(Date.UTC(_r[1], _i2, _r[3] || 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s)) : new Date(_r[1], _i2, _r[3] || 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s);
          }
        }
        return new Date(e);
      }(t), this.$x = t.x || {}, this.init();
    }, $.init = function () {
      var t = this.$d;
      this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
    }, $.$utils = function () {
      return g;
    }, $.isValid = function () {
      return !(this.$d.toString() === 'Invalid Date');
    }, $.isSame = function (t, e) {
      var n = v(t);
      return this.startOf(e) <= n && n <= this.endOf(e);
    }, $.isAfter = function (t, e) {
      return v(t) < this.startOf(e);
    }, $.isBefore = function (t, e) {
      return this.endOf(e) < v(t);
    }, $.$g = function (t, e, n) {
      return g.u(t) ? this[e] : this.set(n, t);
    }, $.unix = function () {
      return Math.floor(this.valueOf() / 1e3);
    }, $.valueOf = function () {
      return this.$d.getTime();
    }, $.startOf = function (t, a) {
      var h = this;
      var c = !!g.u(a) || a;
      var d = g.p(t);
      var $ = function $(t, e) {
        var n = g.w(h.$u ? Date.UTC(h.$y, e, t) : new Date(h.$y, e, t), h);
        return c ? n : n.endOf(i);
      };
      var l = function l(t, e) {
        return g.w(h.toDate()[t].apply(h.toDate('s'), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), h);
      };
      var y = this.$W;
      var M = this.$M;
      var m = this.$D;
      var D = "set".concat(this.$u ? 'UTC' : '');
      switch (d) {
        case o:
          return c ? $(1, 0) : $(31, 11);
        case u:
          return c ? $(1, M) : $(0, M + 1);
        case s:
          var v = this.$locale().weekStart || 0;
          var S = (y < v ? y + 7 : y) - v;
          return $(c ? m - S : m + (6 - S), M);
        case i:
        case f:
          return l("".concat(D, "Hours"), 0);
        case r:
          return l("".concat(D, "Minutes"), 1);
        case n:
          return l("".concat(D, "Seconds"), 2);
        case e:
          return l("".concat(D, "Milliseconds"), 3);
        default:
          return this.clone();
      }
    }, $.endOf = function (t) {
      return this.startOf(t, !1);
    }, $.$set = function (s, a) {
      var h;
      var c = g.p(s);
      var d = "set".concat(this.$u ? 'UTC' : '');
      var $ = (h = {}, h[i] = "".concat(d, "Date"), h[f] = "".concat(d, "Date"), h[u] = "".concat(d, "Month"), h[o] = "".concat(d, "FullYear"), h[r] = "".concat(d, "Hours"), h[n] = "".concat(d, "Minutes"), h[e] = "".concat(d, "Seconds"), h[t] = "".concat(d, "Milliseconds"), h)[c];
      var l = c === i ? this.$D + (a - this.$W) : a;
      if (c === u || c === o) {
        var _y = this.clone().set(f, 1);
        _y.$d[$](l), _y.init(), this.$d = _y.set(f, Math.min(this.$D, _y.daysInMonth())).$d;
      } else $ && this.$d[$](l);
      return this.init(), this;
    }, $.set = function (t, e) {
      return this.clone().$set(t, e);
    }, $.get = function (t) {
      return this[g.p(t)]();
    }, $.add = function (t, a) {
      var f;
      var h = this;
      t = Number(t);
      var c = g.p(a);
      var d = function d(e) {
        var n = v(h);
        return g.w(n.date(n.date() + Math.round(e * t)), h);
      };
      if (c === u) return this.set(u, this.$M + t);
      if (c === o) return this.set(o, this.$y + t);
      if (c === i) return d(1);
      if (c === s) return d(7);
      var $ = (f = {}, f[n] = 6e4, f[r] = 36e5, f[e] = 1e3, f)[c] || 1;
      var l = this.$d.getTime() + t * $;
      return g.w(l, this);
    }, $.subtract = function (t, e) {
      return this.add(-1 * t, e);
    }, $.format = function (t) {
      var e = this;
      if (!this.isValid()) return 'Invalid Date';
      var n = t || 'YYYY-MM-DDTHH:mm:ssZ';
      var r = g.z(this);
      var i = this.$locale();
      var s = this.$H;
      var u = this.$m;
      var a = this.$M;
      var o = i.weekdays;
      var f = i.months;
      var h = function h(t, r, i, s) {
        return t && (t[r] || t(e, n)) || i[r].substr(0, s);
      };
      var d = function d(t) {
        return g.s(s % 12 || 12, t, '0');
      };
      var $ = i.meridiem || function (t, e, n) {
        var r = t < 12 ? 'AM' : 'PM';
        return n ? r.toLowerCase() : r;
      };
      var l = {
        YY: String(this.$y).slice(-2),
        YYYY: this.$y,
        M: a + 1,
        MM: g.s(a + 1, 2, '0'),
        MMM: h(i.monthsShort, a, f, 3),
        MMMM: h(f, a),
        D: this.$D,
        DD: g.s(this.$D, 2, '0'),
        d: String(this.$W),
        dd: h(i.weekdaysMin, this.$W, o, 2),
        ddd: h(i.weekdaysShort, this.$W, o, 3),
        dddd: o[this.$W],
        H: String(s),
        HH: g.s(s, 2, '0'),
        h: d(1),
        hh: d(2),
        a: $(s, u, !0),
        A: $(s, u, !1),
        m: String(u),
        mm: g.s(u, 2, '0'),
        s: String(this.$s),
        ss: g.s(this.$s, 2, '0'),
        SSS: g.s(this.$ms, 3, '0'),
        Z: r
      };
      return n.replace(c, function (t, e) {
        return e || l[t] || r.replace(':', '');
      });
    }, $.utcOffset = function () {
      return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
    }, $.diff = function (t, f, h) {
      var c;
      var d = g.p(f);
      var $ = v(t);
      var l = 6e4 * ($.utcOffset() - this.utcOffset());
      var y = this - $;
      var M = g.m(this, $);
      return M = (c = {}, c[o] = M / 12, c[u] = M, c[a] = M / 3, c[s] = (y - l) / 6048e5, c[i] = (y - l) / 864e5, c[r] = y / 36e5, c[n] = y / 6e4, c[e] = y / 1e3, c)[d] || y, h ? M : g.a(M);
    }, $.daysInMonth = function () {
      return this.endOf(u).$D;
    }, $.$locale = function () {
      return M[this.$L];
    }, $.locale = function (t, e) {
      if (!t) return this.$L;
      var n = this.clone();
      var r = D(t, e, !0);
      return r && (n.$L = r), n;
    }, $.clone = function () {
      return g.w(this.$d, this);
    }, $.toDate = function () {
      return new Date(this.valueOf());
    }, $.toJSON = function () {
      return this.isValid() ? this.toISOString() : null;
    }, $.toISOString = function () {
      return this.$d.toISOString();
    }, $.toString = function () {
      return this.$d.toUTCString();
    }, d;
  }();
  var p = S.prototype;
  return v.prototype = p, [['$ms', t], ['$s', e], ['$m', n], ['$H', r], ['$W', i], ['$M', u], ['$y', o], ['$D', f]].forEach(function (t) {
    p[t[1]] = function (e) {
      return this.$g(e, t[0], t[1]);
    };
  }), v.extend = function (t, e) {
    return t.$i || (t(e, S, v), t.$i = !0), v;
  }, v.locale = D, v.isDayjs = m, v.unix = function (t) {
    return v(1e3 * t);
  }, v.en = M[y], v.Ls = M, v.p = {}, v;
});

/***/ }),
/* 405 */,
/* 406 */,
/* 407 */,
/* 408 */,
/* 409 */,
/* 410 */,
/* 411 */,
/* 412 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-parse/props.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    content: String,
    copyLink: {
      type: Boolean,
      default: uni.$u.props.parse.copyLink
    },
    domain: String,
    errorImg: {
      type: String,
      default: uni.$u.props.parse.errorImg
    },
    lazyLoad: {
      type: Boolean,
      default: uni.$u.props.parse.lazyLoad
    },
    loadingImg: {
      type: String,
      default: uni.$u.props.parse.loadingImg
    },
    pauseVideo: {
      type: Boolean,
      default: uni.$u.props.parse.pauseVideo
    },
    previewImg: {
      type: Boolean,
      default: uni.$u.props.parse.previewImg
    },
    scrollTable: Boolean,
    selectable: Boolean,
    setTitle: {
      type: Boolean,
      default: uni.$u.props.parse.setTitle
    },
    showImgMenu: {
      type: Boolean,
      default: uni.$u.props.parse.showImgMenu
    },
    tagStyle: Object,
    useAnchor: null
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 413 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-parse/parser.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni, wx) {

/**
 * @fileoverview html 解析器
 */
// 配置
var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var config = {
  // 信任的标签（保持标签名不变）
  trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
  // 块级标签（转为 div，其他的非信任标签转为 span）
  blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
  // 要移除的标签
  ignoreTags: makeMap('area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr'),
  // 自闭合的标签
  voidTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
  // html 实体
  entities: {
    lt: '<',
    gt: '>',
    quot: '"',
    apos: "'",
    ensp: "\u2002",
    emsp: "\u2003",
    nbsp: '\xA0',
    semi: ';',
    ndash: '–',
    mdash: '—',
    middot: '·',
    lsquo: '‘',
    rsquo: '’',
    ldquo: '“',
    rdquo: '”',
    bull: '•',
    hellip: '…'
  },
  // 默认的标签样式
  tagStyle: {
    address: 'font-style:italic',
    big: 'display:inline;font-size:1.2em',
    caption: 'display:table-caption;text-align:center',
    center: 'text-align:center',
    cite: 'font-style:italic',
    dd: 'margin-left:40px',
    mark: 'background-color:yellow',
    pre: 'font-family:monospace;white-space:pre',
    s: 'text-decoration:line-through',
    small: 'display:inline;font-size:0.8em',
    u: 'text-decoration:underline'
  }
};
var _uni$getSystemInfoSyn = uni.getSystemInfoSync(),
  windowWidth = _uni$getSystemInfoSyn.windowWidth;
var blankChar = makeMap(' ,\r,\n,\t,\f');
var idIndex = 0;

/**
 * @description 创建 map
 * @param {String} str 逗号分隔
 */

function makeMap(str) {
  var map = Object.create(null);
  var list = str.split(',');
  for (var i = list.length; i--;) {
    map[list[i]] = true;
  }
  return map;
}
/**
 * @description 解码 html 实体
 * @param {String} str 要解码的字符串
 * @param {Boolean} amp 要不要解码 &amp;
 * @returns {String} 解码后的字符串
 */

function decodeEntity(str, amp) {
  var i = str.indexOf('&');
  while (i != -1) {
    var j = str.indexOf(';', i + 3);
    var code = void 0;
    if (j == -1) break;
    if (str[i + 1] == '#') {
      // &#123; 形式的实体
      code = parseInt((str[i + 2] == 'x' ? '0' : '') + str.substring(i + 2, j));
      if (!isNaN(code)) str = str.substr(0, i) + String.fromCharCode(code) + str.substr(j + 1);
    } else {
      // &nbsp; 形式的实体
      code = str.substring(i + 1, j);
      if (config.entities[code] || code == 'amp' && amp) str = str.substr(0, i) + (config.entities[code] || '&') + str.substr(j + 1);
    }
    i = str.indexOf('&', i + 1);
  }
  return str;
}
/**
 * @description html 解析器
 * @param {Object} vm 组件实例
 */

function parser(vm) {
  this.options = vm || {};
  this.tagStyle = Object.assign(config.tagStyle, this.options.tagStyle);
  this.imgList = vm.imgList || [];
  this.plugins = vm.plugins || [];
  this.attrs = Object.create(null);
  this.stack = [];
  this.nodes = [];
}
/**
 * @description 执行解析
 * @param {String} content 要解析的文本
 */

parser.prototype.parse = function (content) {
  // 插件处理
  for (var i = this.plugins.length; i--;) {
    if (this.plugins[i].onUpdate) content = this.plugins[i].onUpdate(content, config) || content;
  }
  new lexer(this).parse(content); // 出栈未闭合的标签

  while (this.stack.length) {
    this.popNode();
  }
  return this.nodes;
};
/**
 * @description 将标签暴露出来（不被 rich-text 包含）
 */

parser.prototype.expose = function () {
  for (var i = this.stack.length; i--;) {
    var item = this.stack[i];
    if (item.name == 'a' || item.c) return;
    item.c = 1;
  }
};
/**
 * @description 处理插件
 * @param {Object} node 要处理的标签
 * @returns {Boolean} 是否要移除此标签
 */

parser.prototype.hook = function (node) {
  for (var i = this.plugins.length; i--;) {
    if (this.plugins[i].onParse && this.plugins[i].onParse(node, this) == false) return false;
  }
  return true;
};
/**
 * @description 将链接拼接上主域名
 * @param {String} url 需要拼接的链接
 * @returns {String} 拼接后的链接
 */

parser.prototype.getUrl = function (url) {
  var domain = this.options.domain;
  if (url[0] == '/') {
    // // 开头的补充协议名
    if (url[1] == '/') url = "".concat(domain ? domain.split('://')[0] : 'http', ":").concat(url); // 否则补充整个域名
    else if (domain) url = domain + url;
  } else if (domain && !url.includes('data:') && !url.includes('://')) url = "".concat(domain, "/").concat(url);
  return url;
};
/**
 * @description 解析样式表
 * @param {Object} node 标签
 * @returns {Object}
 */

parser.prototype.parseStyle = function (node) {
  var attrs = node.attrs;
  var list = (this.tagStyle[node.name] || '').split(';').concat((attrs.style || '').split(';'));
  var styleObj = {};
  var tmp = '';
  if (attrs.id) {
    // 暴露锚点
    if (this.options.useAnchor) this.expose();else if (node.name != 'img' && node.name != 'a' && node.name != 'video' && node.name != 'audio') attrs.id = void 0;
  } // 转换 width 和 height 属性

  if (attrs.width) {
    styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px');
    attrs.width = void 0;
  }
  if (attrs.height) {
    styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px');
    attrs.height = void 0;
  }
  for (var i = 0, len = list.length; i < len; i++) {
    var info = list[i].split(':');
    if (info.length < 2) continue;
    var key = info.shift().trim().toLowerCase();
    var value = info.join(':').trim(); // 兼容性的 css 不压缩

    if (value[0] == '-' && value.lastIndexOf('-') > 0 || value.includes('safe')) tmp += ';'.concat(key, ':').concat(value); // 重复的样式进行覆盖
    else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) {
      // 填充链接
      if (value.includes('url')) {
        var j = value.indexOf('(') + 1;
        if (j) {
          while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) {
            j++;
          }
          value = value.substr(0, j) + this.getUrl(value.substr(j));
        }
      } // 转换 rpx（rich-text 内部不支持 rpx）
      else if (value.includes('rpx')) {
        value = value.replace(/[0-9.]+\s*rpx/g, function ($) {
          return "".concat(parseFloat($) * windowWidth / 750, "px");
        });
      }
      styleObj[key] = value;
    }
  }
  node.attrs.style = tmp;
  return styleObj;
};
/**
 * @description 解析到标签名
 * @param {String} name 标签名
 * @private
 */

parser.prototype.onTagName = function (name) {
  this.tagName = this.xml ? name : name.toLowerCase();
  if (this.tagName == 'svg') this.xml = true; // svg 标签内大小写敏感
};
/**
 * @description 解析到属性名
 * @param {String} name 属性名
 * @private
 */

parser.prototype.onAttrName = function (name) {
  name = this.xml ? name : name.toLowerCase();
  if (name.substr(0, 5) == 'data-') {
    // data-src 自动转为 src
    if (name == 'data-src' && !this.attrs.src) this.attrName = 'src'; // a 和 img 标签保留 data- 的属性，可以在 imgtap 和 linktap 事件中使用
    else if (this.tagName == 'img' || this.tagName == 'a') this.attrName = name; // 剩余的移除以减小大小
    else this.attrName = void 0;
  } else {
    this.attrName = name;
    this.attrs[name] = 'T'; // boolean 型属性缺省设置
  }
};
/**
 * @description 解析到属性值
 * @param {String} val 属性值
 * @private
 */

parser.prototype.onAttrVal = function (val) {
  var name = this.attrName || ''; // 部分属性进行实体解码

  if (name == 'style' || name == 'href') this.attrs[name] = decodeEntity(val, true); // 拼接主域名
  else if (name.includes('src')) this.attrs[name] = this.getUrl(decodeEntity(val, true));else if (name) this.attrs[name] = val;
};
/**
 * @description 解析到标签开始
 * @param {Boolean} selfClose 是否有自闭合标识 />
 * @private
 */

parser.prototype.onOpenTag = function (selfClose) {
  // 拼装 node
  var node = Object.create(null);
  node.name = this.tagName;
  node.attrs = this.attrs;
  this.attrs = Object.create(null);
  var attrs = node.attrs;
  var parent = this.stack[this.stack.length - 1];
  var siblings = parent ? parent.children : this.nodes;
  var close = this.xml ? selfClose : config.voidTags[node.name]; // 转换 embed 标签

  if (node.name == 'embed') {
    var src = attrs.src || ''; // 按照后缀名和 type 将 embed 转为 video 或 audio

    if (src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8') || (attrs.type || '').includes('video')) node.name = 'video';else if (src.includes('.mp3') || src.includes('.wav') || src.includes('.aac') || src.includes('.m4a') || (attrs.type || '').includes('audio')) node.name = 'audio';
    if (attrs.autostart) attrs.autoplay = 'T';
    attrs.controls = 'T';
  }
  // 处理音视频

  if (node.name == 'video' || node.name == 'audio') {
    // 设置 id 以便获取 context
    if (node.name == 'video' && !attrs.id) attrs.id = "v".concat(idIndex++); // 没有设置 controls 也没有设置 autoplay 的自动设置 controls

    if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T'; // 用数组存储所有可用的 source

    node.src = [];
    if (attrs.src) {
      node.src.push(attrs.src);
      attrs.src = void 0;
    }
    this.expose();
  }
  // 处理自闭合标签

  if (close) {
    if (!this.hook(node) || config.ignoreTags[node.name]) {
      // 通过 base 标签设置主域名
      if (node.name == 'base' && !this.options.domain) this.options.domain = attrs.href;
      // 设置 source 标签（仅父节点为 video 或 audio 时有效）
      else if (node.name == 'source' && parent && (parent.name == 'video' || parent.name == 'audio') && attrs.src) parent.src.push(attrs.src);
      return;
    } // 解析 style

    var styleObj = this.parseStyle(node); // 处理图片

    if (node.name == 'img') {
      if (attrs.src) {
        // 标记 webp
        if (attrs.src.includes('webp')) node.webp = 'T'; // data url 图片如果没有设置 original-src 默认为不可预览的小图片

        if (attrs.src.includes('data:') && !attrs['original-src']) attrs.ignore = 'T';
        if (!attrs.ignore || node.webp || attrs.src.includes('cloud://')) {
          for (var i = this.stack.length; i--;) {
            var item = this.stack[i];
            if (item.name == 'a') {
              node.a = item.attrs;
              break;
            }
            var style = item.attrs.style || '';
            if (style.includes('flex:') && !style.includes('flex:0') && !style.includes('flex: 0') && (!styleObj.width || !styleObj.width.includes('%'))) {
              styleObj.width = '100% !important';
              styleObj.height = '';
              for (var j = i + 1; j < this.stack.length; j++) {
                this.stack[j].attrs.style = (this.stack[j].attrs.style || '').replace('inline-', '');
              }
            } else if (style.includes('flex') && styleObj.width == '100%') {
              for (var _j = i + 1; _j < this.stack.length; _j++) {
                var _style = this.stack[_j].attrs.style || '';
                if (!_style.includes(';width') && !_style.includes(' width') && _style.indexOf('width') != 0) {
                  styleObj.width = '';
                  break;
                }
              }
            } else if (style.includes('inline-block')) {
              if (styleObj.width && styleObj.width[styleObj.width.length - 1] == '%') {
                item.attrs.style += ";max-width:".concat(styleObj.width);
                styleObj.width = '';
              } else item.attrs.style += ';max-width:100%';
            }
            item.c = 1;
          }
          attrs.i = this.imgList.length.toString();
          var _src = attrs['original-src'] || attrs.src;
          if (this.imgList.includes(_src)) {
            // 如果有重复的链接则对域名进行随机大小写变换避免预览时错位
            var _i = _src.indexOf('://');
            if (_i != -1) {
              _i += 3;
              var newSrc = _src.substr(0, _i);
              for (; _i < _src.length; _i++) {
                if (_src[_i] == '/') break;
                newSrc += Math.random() > 0.5 ? _src[_i].toUpperCase() : _src[_i];
              }
              newSrc += _src.substr(_i);
              _src = newSrc;
            }
          }
          this.imgList.push(_src);
        }
      }
      if (styleObj.display == 'inline') styleObj.display = '';
      if (attrs.ignore) {
        styleObj['max-width'] = styleObj['max-width'] || '100%';
        attrs.style += ';-webkit-touch-callout:none';
      }
      // 设置的宽度超出屏幕，为避免变形，高度转为自动

      if (parseInt(styleObj.width) > windowWidth) styleObj.height = void 0; // 记录是否设置了宽高

      if (styleObj.width) {
        if (styleObj.width.includes('auto')) styleObj.width = '';else {
          node.w = 'T';
          if (styleObj.height && !styleObj.height.includes('auto')) node.h = 'T';
        }
      }
    } else if (node.name == 'svg') {
      siblings.push(node);
      this.stack.push(node);
      this.popNode();
      return;
    }
    for (var key in styleObj) {
      if (styleObj[key]) attrs.style += ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''));
    }
    attrs.style = attrs.style.substr(1) || void 0;
  } else {
    if (node.name == 'pre' || (attrs.style || '').includes('white-space') && attrs.style.includes('pre')) this.pre = node.pre = true;
    node.children = [];
    this.stack.push(node);
  } // 加入节点树

  siblings.push(node);
};
/**
 * @description 解析到标签结束
 * @param {String} name 标签名
 * @private
 */

parser.prototype.onCloseTag = function (name) {
  // 依次出栈到匹配为止
  name = this.xml ? name : name.toLowerCase();
  var i;
  for (i = this.stack.length; i--;) {
    if (this.stack[i].name == name) break;
  }
  if (i != -1) {
    while (this.stack.length > i) {
      this.popNode();
    }
  } else if (name == 'p' || name == 'br') {
    var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
    siblings.push({
      name: name,
      attrs: {}
    });
  }
};
/**
 * @description 处理标签出栈
 * @private
 */

parser.prototype.popNode = function () {
  var node = this.stack.pop();
  var attrs = node.attrs;
  var children = node.children;
  var parent = this.stack[this.stack.length - 1];
  var siblings = parent ? parent.children : this.nodes;
  if (!this.hook(node) || config.ignoreTags[node.name]) {
    // 获取标题
    if (node.name == 'title' && children.length && children[0].type == 'text' && this.options.setTitle) {
      uni.setNavigationBarTitle({
        title: children[0].text
      });
    }
    siblings.pop();
    return;
  }
  if (node.pre) {
    // 是否合并空白符标识
    node.pre = this.pre = void 0;
    for (var i = this.stack.length; i--;) {
      if (this.stack[i].pre) this.pre = true;
    }
  }
  var styleObj = {}; // 转换 svg

  if (node.name == 'svg') {
    var src = '';
    var _attrs = attrs,
      style = _attrs.style;
    attrs.style = '';
    attrs.xmlns = 'http://www.w3.org/2000/svg';
    (function traversal(node) {
      src += "<".concat(node.name);
      for (var item in node.attrs) {
        var val = node.attrs[item];
        if (val) {
          if (item == 'viewbox') item = 'viewBox';
          src += ' '.concat(item, '="').concat(val, '"');
        }
      }
      if (!node.children) src += '/>';else {
        src += '>';
        for (var _i2 = 0; _i2 < node.children.length; _i2++) {
          traversal(node.children[_i2]);
        }
        src += "</".concat(node.name, ">");
      }
    })(node);
    node.name = 'img';
    node.attrs = {
      src: "data:image/svg+xml;utf8,".concat(src.replace(/#/g, '%23')),
      style: style,
      ignore: 'T'
    };
    node.children = void 0;
    this.xml = false;
    return;
  }
  // 转换 align 属性

  if (attrs.align) {
    if (node.name == 'table') {
      if (attrs.align == 'center') styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto';else styleObj.float = attrs.align;
    } else styleObj['text-align'] = attrs.align;
    attrs.align = void 0;
  } // 转换 font 标签的属性

  if (node.name == 'font') {
    if (attrs.color) {
      styleObj.color = attrs.color;
      attrs.color = void 0;
    }
    if (attrs.face) {
      styleObj['font-family'] = attrs.face;
      attrs.face = void 0;
    }
    if (attrs.size) {
      var size = parseInt(attrs.size);
      if (!isNaN(size)) {
        if (size < 1) size = 1;else if (size > 7) size = 7;
        styleObj['font-size'] = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'][size - 1];
      }
      attrs.size = void 0;
    }
  }
  // 一些编辑器的自带 class

  if ((attrs.class || '').includes('align-center')) styleObj['text-align'] = 'center';
  Object.assign(styleObj, this.parseStyle(node));
  if (parseInt(styleObj.width) > windowWidth) {
    styleObj['max-width'] = '100%';
    styleObj['box-sizing'] = 'border-box';
  }
  if (config.blockTags[node.name]) node.name = 'div'; // 未知标签转为 span，避免无法显示
  else if (!config.trustTags[node.name] && !this.xml) node.name = 'span';
  if (node.name == 'a' || node.name == 'ad') this.expose();

  // 列表处理
  else if ((node.name == 'ul' || node.name == 'ol') && node.c) {
    var types = {
      a: 'lower-alpha',
      A: 'upper-alpha',
      i: 'lower-roman',
      I: 'upper-roman'
    };
    if (types[attrs.type]) {
      attrs.style += ";list-style-type:".concat(types[attrs.type]);
      attrs.type = void 0;
    }
    for (var _i4 = children.length; _i4--;) {
      if (children[_i4].name == 'li') children[_i4].c = 1;
    }
  } // 表格处理
  else if (node.name == 'table') {
    // cellpadding、cellspacing、border 这几个常用表格属性需要通过转换实现
    var padding = parseFloat(attrs.cellpadding);
    var spacing = parseFloat(attrs.cellspacing);
    var border = parseFloat(attrs.border);
    if (node.c) {
      // padding 和 spacing 默认 2
      if (isNaN(padding)) padding = 2;
      if (isNaN(spacing)) spacing = 2;
    }
    if (border) attrs.style += ";border:".concat(border, "px solid gray");
    if (node.flag && node.c) {
      // 有 colspan 或 rowspan 且含有链接的表格通过 grid 布局实现
      styleObj.display = 'grid';
      if (spacing) {
        styleObj['grid-gap'] = "".concat(spacing, "px");
        styleObj.padding = "".concat(spacing, "px");
      } // 无间隔的情况下避免边框重叠
      else if (border) attrs.style += ';border-left:0;border-top:0';
      var width = [];
      // 表格的列宽
      var trList = [];
      // tr 列表
      var cells = [];
      // 保存新的单元格
      var map = {}; // 被合并单元格占用的格子

      (function traversal(nodes) {
        for (var _i5 = 0; _i5 < nodes.length; _i5++) {
          if (nodes[_i5].name == 'tr') trList.push(nodes[_i5]);else traversal(nodes[_i5].children || []);
        }
      })(children);
      for (var row = 1; row <= trList.length; row++) {
        var col = 1;
        for (var j = 0; j < trList[row - 1].children.length; j++, col++) {
          var td = trList[row - 1].children[j];
          if (td.name == 'td' || td.name == 'th') {
            // 这个格子被上面的单元格占用，则列号++
            while (map["".concat(row, ".").concat(col)]) {
              col++;
            }
            var _style2 = td.attrs.style || '';
            var start = _style2.indexOf('width') ? _style2.indexOf(';width') : 0; // 提取出 td 的宽度

            if (start != -1) {
              var end = _style2.indexOf(';', start + 6);
              if (end == -1) end = _style2.length;
              if (!td.attrs.colspan) width[col] = _style2.substring(start ? start + 7 : 6, end);
              _style2 = _style2.substr(0, start) + _style2.substr(end);
            }
            _style2 += (border ? ';border:'.concat(border, 'px solid gray') + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ';padding:'.concat(padding, 'px') : ''); // 处理列合并

            if (td.attrs.colspan) {
              _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + parseInt(td.attrs.colspan));
              if (!td.attrs.rowspan) _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + 1);
              col += parseInt(td.attrs.colspan) - 1;
            } // 处理行合并

            if (td.attrs.rowspan) {
              _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + parseInt(td.attrs.rowspan));
              if (!td.attrs.colspan) _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + 1); // 记录下方单元格被占用

              for (var k = 1; k < td.attrs.rowspan; k++) {
                map["".concat(row + k, ".").concat(col)] = 1;
              }
            }
            if (_style2) td.attrs.style = _style2;
            cells.push(td);
          }
        }
        if (row == 1) {
          var temp = '';
          for (var _i6 = 1; _i6 < col; _i6++) {
            temp += "".concat(width[_i6] ? width[_i6] : 'auto', " ");
          }
          styleObj['grid-template-columns'] = temp;
        }
      }
      node.children = cells;
    } else {
      // 没有使用合并单元格的表格通过 table 布局实现
      if (node.c) styleObj.display = 'table';
      if (!isNaN(spacing)) styleObj['border-spacing'] = "".concat(spacing, "px");
      if (border || padding) {
        // 遍历
        (function traversal(nodes) {
          for (var _i7 = 0; _i7 < nodes.length; _i7++) {
            var _td = nodes[_i7];
            if (_td.name == 'th' || _td.name == 'td') {
              if (border) _td.attrs.style = 'border:'.concat(border, 'px solid gray;').concat(_td.attrs.style || '');
              if (padding) _td.attrs.style = 'padding:'.concat(padding, 'px;').concat(_td.attrs.style || '');
            } else if (_td.children) traversal(_td.children);
          }
        })(children);
      }
    } // 给表格添加一个单独的横向滚动层

    if (this.options.scrollTable && !(attrs.style || '').includes('inline')) {
      var table = _objectSpread({}, node);
      node.name = 'div';
      node.attrs = {
        style: 'overflow:auto'
      };
      node.children = [table];
      attrs = table.attrs;
    }
  } else if ((node.name == 'td' || node.name == 'th') && (attrs.colspan || attrs.rowspan)) {
    for (var _i8 = this.stack.length; _i8--;) {
      if (this.stack[_i8].name == 'table') {
        this.stack[_i8].flag = 1; // 指示含有合并单元格

        break;
      }
    }
  } // 转换 ruby
  else if (node.name == 'ruby') {
    node.name = 'span';
    for (var _i9 = 0; _i9 < children.length - 1; _i9++) {
      if (children[_i9].type == 'text' && children[_i9 + 1].name == 'rt') {
        children[_i9] = {
          name: 'div',
          attrs: {
            style: 'display:inline-block'
          },
          children: [{
            name: 'div',
            attrs: {
              style: 'font-size:50%;text-align:start'
            },
            children: children[_i9 + 1].children
          }, children[_i9]]
        };
        children.splice(_i9 + 1, 1);
      }
    }
  } else if (node.c) {
    node.c = 2;
    for (var _i10 = node.children.length; _i10--;) {
      if (!node.children[_i10].c || node.children[_i10].name == 'table') node.c = 1;
    }
  }
  if ((styleObj.display || '').includes('flex') && !node.c) {
    for (var _i11 = children.length; _i11--;) {
      var _item = children[_i11];
      if (_item.f) {
        _item.attrs.style = (_item.attrs.style || '') + _item.f;
        _item.f = void 0;
      }
    }
  } // flex 布局时部分样式需要提取到 rich-text 外层

  var flex = parent && (parent.attrs.style || '').includes('flex')
  // 检查基础库版本 virtualHost 是否可用
  && !(node.c && wx.getNFCAdapter);
  if (flex) node.f = ';max-width:100%';
  for (var key in styleObj) {
    if (styleObj[key]) {
      var val = ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''));
      if (flex && (key.includes('flex') && key != 'flex-direction' || key == 'align-self' || styleObj[key][0] == '-' || key == 'width' && val.includes('%'))) {
        node.f += val;
        if (key == 'width') attrs.style += ';width:100%';
      } else {
        attrs.style += val;
      }
    }
  }
  attrs.style = attrs.style.substr(1) || void 0;
};
/**
 * @description 解析到文本
 * @param {String} text 文本内容
 */

parser.prototype.onText = function (text) {
  if (!this.pre) {
    // 合并空白符
    var trim = '';
    var flag;
    for (var i = 0, len = text.length; i < len; i++) {
      if (!blankChar[text[i]]) trim += text[i];else {
        if (trim[trim.length - 1] != ' ') trim += ' ';
        if (text[i] == '\n' && !flag) flag = true;
      }
    } // 去除含有换行符的空串

    if (trim == ' ' && flag) return;
    text = trim;
  }
  var node = Object.create(null);
  node.type = 'text';
  node.text = decodeEntity(text);
  if (this.hook(node)) {
    var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
    siblings.push(node);
  }
};
/**
 * @description html 词法分析器
 * @param {Object} handler 高层处理器
 */

function lexer(handler) {
  this.handler = handler;
}
/**
 * @description 执行解析
 * @param {String} content 要解析的文本
 */

lexer.prototype.parse = function (content) {
  this.content = content || '';
  this.i = 0; // 标记解析位置

  this.start = 0; // 标记一个单词的开始位置

  this.state = this.text; // 当前状态

  for (var len = this.content.length; this.i != -1 && this.i < len;) {
    this.state();
  }
};
/**
 * @description 检查标签是否闭合
 * @param {String} method 如果闭合要进行的操作
 * @returns {Boolean} 是否闭合
 * @private
 */

lexer.prototype.checkClose = function (method) {
  var selfClose = this.content[this.i] == '/';
  if (this.content[this.i] == '>' || selfClose && this.content[this.i + 1] == '>') {
    if (method) this.handler[method](this.content.substring(this.start, this.i));
    this.i += selfClose ? 2 : 1;
    this.start = this.i;
    this.handler.onOpenTag(selfClose);
    if (this.handler.tagName == 'script') {
      this.i = this.content.indexOf('</', this.i);
      if (this.i != -1) {
        this.i += 2;
        this.start = this.i;
      }
      this.state = this.endTag;
    } else this.state = this.text;
    return true;
  }
  return false;
};
/**
 * @description 文本状态
 * @private
 */

lexer.prototype.text = function () {
  this.i = this.content.indexOf('<', this.i); // 查找最近的标签

  if (this.i == -1) {
    // 没有标签了
    if (this.start < this.content.length) this.handler.onText(this.content.substring(this.start, this.content.length));
    return;
  }
  var c = this.content[this.i + 1];
  if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
    // 标签开头
    if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i));
    this.start = ++this.i;
    this.state = this.tagName;
  } else if (c == '/' || c == '!' || c == '?') {
    if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i));
    var next = this.content[this.i + 2];
    if (c == '/' && (next >= 'a' && next <= 'z' || next >= 'A' && next <= 'Z')) {
      // 标签结尾
      this.i += 2;
      this.start = this.i;
      return this.state = this.endTag;
    } // 处理注释

    var end = '-->';
    if (c != '!' || this.content[this.i + 2] != '-' || this.content[this.i + 3] != '-') end = '>';
    this.i = this.content.indexOf(end, this.i);
    if (this.i != -1) {
      this.i += end.length;
      this.start = this.i;
    }
  } else this.i++;
};
/**
 * @description 标签名状态
 * @private
 */

lexer.prototype.tagName = function () {
  if (blankChar[this.content[this.i]]) {
    // 解析到标签名
    this.handler.onTagName(this.content.substring(this.start, this.i));
    while (blankChar[this.content[++this.i]]) {}
    if (this.i < this.content.length && !this.checkClose()) {
      this.start = this.i;
      this.state = this.attrName;
    }
  } else if (!this.checkClose('onTagName')) this.i++;
};
/**
 * @description 属性名状态
 * @private
 */

lexer.prototype.attrName = function () {
  var c = this.content[this.i];
  if (blankChar[c] || c == '=') {
    // 解析到属性名
    this.handler.onAttrName(this.content.substring(this.start, this.i));
    var needVal = c == '=';
    var len = this.content.length;
    while (++this.i < len) {
      c = this.content[this.i];
      if (!blankChar[c]) {
        if (this.checkClose()) return;
        if (needVal) {
          // 等号后遇到第一个非空字符
          this.start = this.i;
          return this.state = this.attrVal;
        }
        if (this.content[this.i] == '=') needVal = true;else {
          this.start = this.i;
          return this.state = this.attrName;
        }
      }
    }
  } else if (!this.checkClose('onAttrName')) this.i++;
};
/**
 * @description 属性值状态
 * @private
 */

lexer.prototype.attrVal = function () {
  var c = this.content[this.i];
  var len = this.content.length; // 有冒号的属性

  if (c == '"' || c == "'") {
    this.start = ++this.i;
    this.i = this.content.indexOf(c, this.i);
    if (this.i == -1) return;
    this.handler.onAttrVal(this.content.substring(this.start, this.i));
  } // 没有冒号的属性
  else {
    for (; this.i < len; this.i++) {
      if (blankChar[this.content[this.i]]) {
        this.handler.onAttrVal(this.content.substring(this.start, this.i));
        break;
      } else if (this.checkClose('onAttrVal')) return;
    }
  }
  while (blankChar[this.content[++this.i]]) {}
  if (this.i < len && !this.checkClose()) {
    this.start = this.i;
    this.state = this.attrName;
  }
};
/**
 * @description 结束标签状态
 * @returns {String} 结束的标签名
 * @private
 */

lexer.prototype.endTag = function () {
  var c = this.content[this.i];
  if (blankChar[c] || c == '>' || c == '/') {
    this.handler.onCloseTag(this.content.substring(this.start, this.i));
    if (c != '>') {
      this.i = this.content.indexOf('>', this.i);
      if (this.i == -1) return;
    }
    this.start = ++this.i;
    this.state = this.text;
  } else this.i++;
};
module.exports = parser;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))

/***/ }),
/* 414 */,
/* 415 */,
/* 416 */,
/* 417 */,
/* 418 */,
/* 419 */,
/* 420 */,
/* 421 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-empty/props.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 内置图标名称，或图片路径，建议绝对路径
    icon: {
      type: String,
      default: uni.$u.props.empty.icon
    },
    // 提示文字
    text: {
      type: String,
      default: uni.$u.props.empty.text
    },
    // 文字颜色
    textColor: {
      type: String,
      default: uni.$u.props.empty.textColor
    },
    // 文字大小
    textSize: {
      type: [String, Number],
      default: uni.$u.props.empty.textSize
    },
    // 图标的颜色
    iconColor: {
      type: String,
      default: uni.$u.props.empty.iconColor
    },
    // 图标的大小
    iconSize: {
      type: [String, Number],
      default: uni.$u.props.empty.iconSize
    },
    // 选择预置的图标类型
    mode: {
      type: String,
      default: uni.$u.props.empty.mode
    },
    //  图标宽度，单位px
    width: {
      type: [String, Number],
      default: uni.$u.props.empty.width
    },
    // 图标高度，单位px
    height: {
      type: [String, Number],
      default: uni.$u.props.empty.height
    },
    // 是否显示组件
    show: {
      type: Boolean,
      default: uni.$u.props.empty.show
    },
    // 组件距离上一个元素之间的距离，默认px单位
    marginTop: {
      type: [String, Number],
      default: uni.$u.props.empty.marginTop
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 422 */,
/* 423 */,
/* 424 */,
/* 425 */,
/* 426 */,
/* 427 */,
/* 428 */,
/* 429 */
/*!**************************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uni_modules/Sansnn-uQRCode/js_sdk/uqrcode/uqrcode.js ***!
  \**************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_RESULT__;//---------------------------------------------------------------------
// uQRCode二维码生成插件 v3.5.1
// 
// uQRCode是一款基于Javascript环境开发的二维码生成插件，适用所有Javascript运行环境的前端应用和Node.js。
// 
// Copyright (c) Sansnn uQRCode All rights reserved.
// 
// Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// 
// github地址：
//   https://github.com/Sansnn/uQRCode
// 
// npm地址：
//   https://www.npmjs.com/package/uqrcodejs
// 
// uni-app插件市场地址：
//   https://ext.dcloud.net.cn/plugin?id=1287
// 
// 复制使用请保留本段注释，感谢支持开源！
// 
//---------------------------------------------------------------------
//---------------------------------------------------------------------
// QRCode for JavaScript
//
// Copyright (c) 2009 Kazuhiko Arase
//
// URL: http://www.d-project.com/
//
// Licensed under the MIT license:
//   http://www.opensource.org/licenses/mit-license.php
//
// The word "QR Code" is registered trademark of 
// DENSO WAVE INCORPORATED
//   http://www.denso-wave.com/qrcode/faqpatent-e.html
//
//---------------------------------------------------------------------


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 62));
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 64));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var uQRCode;
!function () {
  function o(o) {
    this.mode = u.MODE_8BIT_BYTE, this.data = o;
  }
  function e(o, e) {
    this.typeNumber = o, this.errorCorrectLevel = e, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = new Array();
  }
  function r(o, e) {
    if (null == o.length) throw new Error(o.length + "/" + e);
    for (var r = 0; r < o.length && 0 == o[r];) {
      r++;
    }
    this.num = new Array(o.length - r + e);
    for (var t = 0; t < o.length - r; t++) {
      this.num[t] = o[t + r];
    }
  }
  function t(o, e) {
    this.totalCount = o, this.dataCount = e;
  }
  function i() {
    this.buffer = new Array(), this.length = 0;
  }
  function n() {
    function o(t, i, n) {
      t().then(function (o) {
        i(o);
      }).catch(function (o) {
        n(o);
      }).finally(function () {
        if (e.length) {
          var _r = e.shift();
          o(_r.task, _r.resolve, _r.reject);
        } else r = !1;
      });
    }
    var e = this.waitingQueue = [],
      r = this.isRunning = !1;
    this.exec = function (t) {
      return new Promise(function (i, n) {
        r ? e.push({
          task: t,
          resolve: i,
          reject: n
        }) : (r = !0, o(t, i, n));
      });
    };
  }
  function a(o, e) {
    var r = this.data = "",
      t = this.size = 200,
      i = this.typeNumber = -1,
      n = (this.errorCorrectLevel = d.H, this.useDynamicSize = !1, this.dynamicSize = void 0, this.margin = 0),
      u = (this.backgroundColor = "#FFFFFF", this.backgroundImageSrc = void 0, this.backgroundImageWidth = void 0),
      s = this.backgroundImageHeight = void 0,
      g = this.backgroundImageX = void 0,
      l = this.backgroundImageY = void 0,
      h = (this.backgroundImageAlpha = 1, this.backgroundImageBorderRadius = 0, this.foregroundColor = "#000000", this.foregroundImageSrc = void 0, this.foregroundImageWidth = void 0),
      m = this.foregroundImageHeight = void 0,
      c = this.foregroundImageX = void 0,
      f = this.foregroundImageY = void 0,
      v = this.foregroundImagePadding = 0,
      p = (this.foregroundImageBackgroundColor = "#FFFFFF", this.foregroundImageBorderRadius = 0),
      C = this.foregroundImageShadowOffsetX = 0,
      b = this.foregroundImageShadowOffsetY = 0,
      y = this.foregroundImageShadowBlur = 0,
      I = (this.foregroundImageShadowColor = "#808080", this.positionProbeBackgroundColor = void 0),
      k = this.positionProbeForegroundColor = void 0,
      w = (this.positionProbeImageSrc = void 0, this.positionProbeLeftUpperImageSrc = void 0),
      S = this.positionProbeRightUpperImageSrc = void 0,
      P = this.positionProbeLeftLowerImageSrc = void 0,
      B = this.separatorColor = void 0,
      T = this.positionAdjustBackgroundColor = void 0,
      L = this.positionAdjustForegroundColor = void 0,
      A = (this.positionAdjustImageSrc = void 0, this.timingBackgroundColor = void 0),
      D = this.timingForegroundColor = void 0,
      E = this.typeNumberBackgroundColor = void 0,
      N = this.typeNumberForegroundColor = void 0,
      x = this.darkBlockColor = void 0,
      R = (this.patterns = [], this.canvasContext = void 0);
    this.queue = !1, this.modules = [], this.moduleCount = 0, this.drawModules = [];
    Object.defineProperties(this, {
      data: {
        get: function get() {
          return "" !== r && void 0 !== r || console.error("[uQRCode]: data must be set!"), r;
        },
        set: function set(o) {
          r = o;
        }
      },
      size: {
        get: function get() {
          return t;
        },
        set: function set(o) {
          t = Number(o);
        }
      },
      typeNumber: {
        get: function get() {
          return i;
        },
        set: function set(o) {
          i = Number(o);
        }
      },
      margin: {
        get: function get() {
          return n;
        },
        set: function set(o) {
          n = Number(o);
        }
      },
      backgroundImageWidth: {
        get: function get() {
          return void 0 === u ? this.dynamicSize : this.useDynamicSize ? this.dynamicSize / this.size * u : u;
        },
        set: function set(o) {
          u = Number(o);
        }
      },
      backgroundImageHeight: {
        get: function get() {
          return void 0 === s ? this.dynamicSize : this.useDynamicSize ? this.dynamicSize / this.size * s : s;
        },
        set: function set(o) {
          s = Number(o);
        }
      },
      backgroundImageX: {
        get: function get() {
          return void 0 === g ? 0 : this.useDynamicSize ? this.dynamicSize / this.size * g : g;
        },
        set: function set(o) {
          g = Number(o);
        }
      },
      backgroundImageY: {
        get: function get() {
          return void 0 === l ? 0 : this.useDynamicSize ? this.dynamicSize / this.size * l : l;
        },
        set: function set(o) {
          l = Number(o);
        }
      },
      foregroundImageWidth: {
        get: function get() {
          return void 0 === h ? (this.dynamicSize - 2 * this.margin) / 4 : this.useDynamicSize ? this.dynamicSize / this.size * h : h;
        },
        set: function set(o) {
          h = Number(o);
        }
      },
      foregroundImageHeight: {
        get: function get() {
          return void 0 === m ? (this.dynamicSize - 2 * this.margin) / 4 : this.useDynamicSize ? this.dynamicSize / this.size * m : m;
        },
        set: function set(o) {
          m = Number(o);
        }
      },
      foregroundImageX: {
        get: function get() {
          return void 0 === c ? this.dynamicSize / 2 - this.foregroundImageWidth / 2 : this.useDynamicSize ? this.dynamicSize / this.size * c : c;
        },
        set: function set(o) {
          c = Number(o);
        }
      },
      foregroundImageY: {
        get: function get() {
          return void 0 === f ? this.dynamicSize / 2 - this.foregroundImageHeight / 2 : this.useDynamicSize ? this.dynamicSize / this.size * f : f;
        },
        set: function set(o) {
          f = Number(o);
        }
      },
      foregroundImagePadding: {
        get: function get() {
          return this.useDynamicSize ? this.dynamicSize / this.size * v : v;
        },
        set: function set(o) {
          v = Number(o);
        }
      },
      foregroundImageBorderRadius: {
        get: function get() {
          return this.useDynamicSize ? this.dynamicSize / this.size * p : p;
        },
        set: function set(o) {
          p = Number(o);
        }
      },
      foregroundImageShadowOffsetX: {
        get: function get() {
          return this.useDynamicSize ? this.dynamicSize / this.size * C : C;
        },
        set: function set(o) {
          C = Number(o);
        }
      },
      foregroundImageShadowOffsetY: {
        get: function get() {
          return this.useDynamicSize ? this.dynamicSize / this.size * b : b;
        },
        set: function set(o) {
          b = Number(o);
        }
      },
      foregroundImageShadowBlur: {
        get: function get() {
          return this.useDynamicSize ? this.dynamicSize / this.size * y : y;
        },
        set: function set(o) {
          y = Number(o);
        }
      },
      positionProbeBackgroundColor: {
        get: function get() {
          return I || this.backgroundColor;
        },
        set: function set(o) {
          I = o;
        }
      },
      positionProbeForegroundColor: {
        get: function get() {
          return k || this.foregroundColor;
        },
        set: function set(o) {
          k = o;
        }
      },
      positionProbeLeftUpperImageSrc: {
        get: function get() {
          return w || this.positionProbeImageSrc;
        },
        set: function set(o) {
          w = o;
        }
      },
      positionProbeRightUpperImageSrc: {
        get: function get() {
          return S || this.positionProbeImageSrc;
        },
        set: function set(o) {
          S = o;
        }
      },
      positionProbeLeftLowerImageSrc: {
        get: function get() {
          return P || this.positionProbeImageSrc;
        },
        set: function set(o) {
          P = o;
        }
      },
      separatorColor: {
        get: function get() {
          return B || this.backgroundColor;
        },
        set: function set(o) {
          B = o;
        }
      },
      positionAdjustBackgroundColor: {
        get: function get() {
          return T || this.backgroundColor;
        },
        set: function set(o) {
          T = o;
        }
      },
      positionAdjustForegroundColor: {
        get: function get() {
          return L || this.foregroundColor;
        },
        set: function set(o) {
          L = o;
        }
      },
      timingBackgroundColor: {
        get: function get() {
          return A || this.backgroundColor;
        },
        set: function set(o) {
          A = o;
        }
      },
      timingForegroundColor: {
        get: function get() {
          return D || this.foregroundColor;
        },
        set: function set(o) {
          D = o;
        }
      },
      typeNumberBackgroundColor: {
        get: function get() {
          return E || this.backgroundColor;
        },
        set: function set(o) {
          E = o;
        }
      },
      typeNumberForegroundColor: {
        get: function get() {
          return N || this.foregroundColor;
        },
        set: function set(o) {
          N = o;
        }
      },
      darkBlockColor: {
        get: function get() {
          return x || this.foregroundColor;
        },
        set: function set(o) {
          x = o;
        }
      },
      canvasContext: {
        get: function get() {
          return void 0 === R && console.error("[uQRCode]: use drawCanvas, you need to set the canvasContext!"), R;
        },
        set: function set(o) {
          R = a.getCanvasContext(o);
        }
      }
    }), o && this.setOptions(o), e && (this.canvasContext = a.getCanvasContext(e));
  }
  o.prototype = {
    getLength: function getLength(o) {
      return this.data.length;
    },
    write: function write(o) {
      for (var e = 0; e < this.data.length; e++) {
        o.put(this.data.charCodeAt(e), 8);
      }
    }
  }, e.prototype = {
    addData: function addData(e) {
      var r = new o(e);
      this.dataList.push(r), this.dataCache = null;
    },
    isDark: function isDark(o, e) {
      if (o < 0 || this.moduleCount <= o || e < 0 || this.moduleCount <= e) throw new Error(o + "," + e);
      return this.modules[o][e];
    },
    getModuleCount: function getModuleCount() {
      return this.moduleCount;
    },
    make: function make() {
      if (this.typeNumber < 1) {
        var o = 1;
        for (o = 1; o < 40; o++) {
          for (var e = t.getRSBlocks(o, this.errorCorrectLevel), r = new i(), n = 0, a = 0; a < e.length; a++) {
            n += e[a].dataCount;
          }
          for (a = 0; a < this.dataList.length; a++) {
            var u = this.dataList[a];
            r.put(u.mode, 4), r.put(u.getLength(), g.getLengthInBits(u.mode, o)), u.write(r);
          }
          if (r.getLengthInBits() <= 8 * n) break;
        }
        this.typeNumber = o;
      }
      this.makeImpl(!1, this.getBestMaskPattern());
    },
    makeImpl: function makeImpl(o, r) {
      this.moduleCount = 4 * this.typeNumber + 17, this.modules = new Array(this.moduleCount);
      for (var t = 0; t < this.moduleCount; t++) {
        this.modules[t] = new Array(this.moduleCount);
        for (var i = 0; i < this.moduleCount; i++) {
          this.modules[t][i] = null;
        }
      }
      this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(o, r), this.typeNumber >= 7 && this.setupTypeNumber(o), null == this.dataCache && (this.dataCache = e.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, r);
    },
    setupPositionProbePattern: function setupPositionProbePattern(o, e) {
      for (var r = -1; r <= 7; r++) {
        if (!(o + r <= -1 || this.moduleCount <= o + r)) for (var t = -1; t <= 7; t++) {
          e + t <= -1 || this.moduleCount <= e + t || (this.modules[o + r][e + t] = 0 <= r && r <= 6 && (0 == t || 6 == t) || 0 <= t && t <= 6 && (0 == r || 6 == r) || 2 <= r && r <= 4 && 2 <= t && t <= 4);
        }
      }
    },
    getBestMaskPattern: function getBestMaskPattern() {
      for (var o = 0, e = 0, r = 0; r < 8; r++) {
        this.makeImpl(!0, r);
        var t = g.getLostPoint(this);
        (0 == r || o > t) && (o = t, e = r);
      }
      return e;
    },
    createMovieClip: function createMovieClip(o, e, r) {
      var t = o.createEmptyMovieClip(e, r),
        i = 1;
      this.make();
      for (var n = 0; n < this.modules.length; n++) {
        for (var a = n * i, u = 0; u < this.modules[n].length; u++) {
          var d = u * i,
            s = this.modules[n][u];
          s && (t.beginFill(0, 100), t.moveTo(d, a), t.lineTo(d + i, a), t.lineTo(d + i, a + i), t.lineTo(d, a + i), t.endFill());
        }
      }
      return t;
    },
    setupTimingPattern: function setupTimingPattern() {
      for (var o = 8; o < this.moduleCount - 8; o++) {
        null == this.modules[o][6] && (this.modules[o][6] = o % 2 == 0);
      }
      for (var e = 8; e < this.moduleCount - 8; e++) {
        null == this.modules[6][e] && (this.modules[6][e] = e % 2 == 0);
      }
    },
    setupPositionAdjustPattern: function setupPositionAdjustPattern() {
      for (var o = g.getPatternPosition(this.typeNumber), e = 0; e < o.length; e++) {
        for (var r = 0; r < o.length; r++) {
          var t = o[e],
            i = o[r];
          if (null == this.modules[t][i]) for (var n = -2; n <= 2; n++) {
            for (var a = -2; a <= 2; a++) {
              this.modules[t + n][i + a] = -2 == n || 2 == n || -2 == a || 2 == a || 0 == n && 0 == a;
            }
          }
        }
      }
    },
    setupTypeNumber: function setupTypeNumber(o) {
      for (var e = g.getBCHTypeNumber(this.typeNumber), r = 0; r < 18; r++) {
        var t = !o && 1 == (e >> r & 1);
        this.modules[Math.floor(r / 3)][r % 3 + this.moduleCount - 8 - 3] = t;
      }
      for (r = 0; r < 18; r++) {
        t = !o && 1 == (e >> r & 1);
        this.modules[r % 3 + this.moduleCount - 8 - 3][Math.floor(r / 3)] = t;
      }
    },
    setupTypeInfo: function setupTypeInfo(o, e) {
      for (var r = this.errorCorrectLevel << 3 | e, t = g.getBCHTypeInfo(r), i = 0; i < 15; i++) {
        var n = !o && 1 == (t >> i & 1);
        i < 6 ? this.modules[i][8] = n : i < 8 ? this.modules[i + 1][8] = n : this.modules[this.moduleCount - 15 + i][8] = n;
      }
      for (i = 0; i < 15; i++) {
        n = !o && 1 == (t >> i & 1);
        i < 8 ? this.modules[8][this.moduleCount - i - 1] = n : i < 9 ? this.modules[8][15 - i - 1 + 1] = n : this.modules[8][15 - i - 1] = n;
      }
      this.modules[this.moduleCount - 8][8] = !o;
    },
    mapData: function mapData(o, e) {
      for (var r = -1, t = this.moduleCount - 1, i = 7, n = 0, a = this.moduleCount - 1; a > 0; a -= 2) {
        for (6 == a && a--;;) {
          for (var u = 0; u < 2; u++) {
            if (null == this.modules[t][a - u]) {
              var d = !1;
              n < o.length && (d = 1 == (o[n] >>> i & 1));
              var s = g.getMask(e, t, a - u);
              s && (d = !d), this.modules[t][a - u] = d, i--, -1 == i && (n++, i = 7);
            }
          }
          if (t += r, t < 0 || this.moduleCount <= t) {
            t -= r, r = -r;
            break;
          }
        }
      }
    }
  }, e.PAD0 = 236, e.PAD1 = 17, e.createData = function (o, r, n) {
    for (var a = t.getRSBlocks(o, r), u = new i(), d = 0; d < n.length; d++) {
      var s = n[d];
      u.put(s.mode, 4), u.put(s.getLength(), g.getLengthInBits(s.mode, o)), s.write(u);
    }
    var l = 0;
    for (d = 0; d < a.length; d++) {
      l += a[d].dataCount;
    }
    if (u.getLengthInBits() > 8 * l) throw new Error("code length overflow. (" + u.getLengthInBits() + ">" + 8 * l + ")");
    for (u.getLengthInBits() + 4 <= 8 * l && u.put(0, 4); u.getLengthInBits() % 8 != 0;) {
      u.putBit(!1);
    }
    for (; !(u.getLengthInBits() >= 8 * l || (u.put(e.PAD0, 8), u.getLengthInBits() >= 8 * l));) {
      u.put(e.PAD1, 8);
    }
    return e.createBytes(u, a);
  }, e.createBytes = function (o, e) {
    for (var t = 0, i = 0, n = 0, a = new Array(e.length), u = new Array(e.length), d = 0; d < e.length; d++) {
      var s = e[d].dataCount,
        l = e[d].totalCount - s;
      i = Math.max(i, s), n = Math.max(n, l), a[d] = new Array(s);
      for (var h = 0; h < a[d].length; h++) {
        a[d][h] = 255 & o.buffer[h + t];
      }
      t += s;
      var m = g.getErrorCorrectPolynomial(l),
        c = new r(a[d], m.getLength() - 1),
        f = c.mod(m);
      u[d] = new Array(m.getLength() - 1);
      for (h = 0; h < u[d].length; h++) {
        var v = h + f.getLength() - u[d].length;
        u[d][h] = v >= 0 ? f.get(v) : 0;
      }
    }
    var p = 0;
    for (h = 0; h < e.length; h++) {
      p += e[h].totalCount;
    }
    var C = new Array(p),
      b = 0;
    for (h = 0; h < i; h++) {
      for (d = 0; d < e.length; d++) {
        h < a[d].length && (C[b++] = a[d][h]);
      }
    }
    for (h = 0; h < n; h++) {
      for (d = 0; d < e.length; d++) {
        h < u[d].length && (C[b++] = u[d][h]);
      }
    }
    return C;
  };
  for (var u = {
      MODE_NUMBER: 1,
      MODE_ALPHA_NUM: 2,
      MODE_8BIT_BYTE: 4,
      MODE_KANJI: 8
    }, d = {
      L: 1,
      M: 0,
      Q: 3,
      H: 2
    }, s = {
      PATTERN000: 0,
      PATTERN001: 1,
      PATTERN010: 2,
      PATTERN011: 3,
      PATTERN100: 4,
      PATTERN101: 5,
      PATTERN110: 6,
      PATTERN111: 7
    }, g = {
      PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]],
      G15: 1335,
      G18: 7973,
      G15_MASK: 21522,
      getBCHTypeInfo: function getBCHTypeInfo(o) {
        for (var e = o << 10; g.getBCHDigit(e) - g.getBCHDigit(g.G15) >= 0;) {
          e ^= g.G15 << g.getBCHDigit(e) - g.getBCHDigit(g.G15);
        }
        return (o << 10 | e) ^ g.G15_MASK;
      },
      getBCHTypeNumber: function getBCHTypeNumber(o) {
        for (var e = o << 12; g.getBCHDigit(e) - g.getBCHDigit(g.G18) >= 0;) {
          e ^= g.G18 << g.getBCHDigit(e) - g.getBCHDigit(g.G18);
        }
        return o << 12 | e;
      },
      getBCHDigit: function getBCHDigit(o) {
        for (var e = 0; 0 != o;) {
          e++, o >>>= 1;
        }
        return e;
      },
      getPatternPosition: function getPatternPosition(o) {
        return g.PATTERN_POSITION_TABLE[o - 1];
      },
      getMask: function getMask(o, e, r) {
        switch (o) {
          case s.PATTERN000:
            return (e + r) % 2 == 0;
          case s.PATTERN001:
            return e % 2 == 0;
          case s.PATTERN010:
            return r % 3 == 0;
          case s.PATTERN011:
            return (e + r) % 3 == 0;
          case s.PATTERN100:
            return (Math.floor(e / 2) + Math.floor(r / 3)) % 2 == 0;
          case s.PATTERN101:
            return e * r % 2 + e * r % 3 == 0;
          case s.PATTERN110:
            return (e * r % 2 + e * r % 3) % 2 == 0;
          case s.PATTERN111:
            return (e * r % 3 + (e + r) % 2) % 2 == 0;
          default:
            throw new Error("bad maskPattern:" + o);
        }
      },
      getErrorCorrectPolynomial: function getErrorCorrectPolynomial(o) {
        for (var e = new r([1], 0), t = 0; t < o; t++) {
          e = e.multiply(new r([1, l.gexp(t)], 0));
        }
        return e;
      },
      getLengthInBits: function getLengthInBits(o, e) {
        if (1 <= e && e < 10) switch (o) {
          case u.MODE_NUMBER:
            return 10;
          case u.MODE_ALPHA_NUM:
            return 9;
          case u.MODE_8BIT_BYTE:
          case u.MODE_KANJI:
            return 8;
          default:
            throw new Error("mode:" + o);
        } else if (e < 27) switch (o) {
          case u.MODE_NUMBER:
            return 12;
          case u.MODE_ALPHA_NUM:
            return 11;
          case u.MODE_8BIT_BYTE:
            return 16;
          case u.MODE_KANJI:
            return 10;
          default:
            throw new Error("mode:" + o);
        } else {
          if (!(e < 41)) throw new Error("type:" + e);
          switch (o) {
            case u.MODE_NUMBER:
              return 14;
            case u.MODE_ALPHA_NUM:
              return 13;
            case u.MODE_8BIT_BYTE:
              return 16;
            case u.MODE_KANJI:
              return 12;
            default:
              throw new Error("mode:" + o);
          }
        }
      },
      getLostPoint: function getLostPoint(o) {
        for (var e = o.getModuleCount(), r = 0, t = 0; t < e; t++) {
          for (var i = 0; i < e; i++) {
            for (var n = 0, a = o.isDark(t, i), u = -1; u <= 1; u++) {
              if (!(t + u < 0 || e <= t + u)) for (var d = -1; d <= 1; d++) {
                i + d < 0 || e <= i + d || 0 == u && 0 == d || a == o.isDark(t + u, i + d) && n++;
              }
            }
            n > 5 && (r += 3 + n - 5);
          }
        }
        for (t = 0; t < e - 1; t++) {
          for (i = 0; i < e - 1; i++) {
            var s = 0;
            o.isDark(t, i) && s++, o.isDark(t + 1, i) && s++, o.isDark(t, i + 1) && s++, o.isDark(t + 1, i + 1) && s++, 0 != s && 4 != s || (r += 3);
          }
        }
        for (t = 0; t < e; t++) {
          for (i = 0; i < e - 6; i++) {
            o.isDark(t, i) && !o.isDark(t, i + 1) && o.isDark(t, i + 2) && o.isDark(t, i + 3) && o.isDark(t, i + 4) && !o.isDark(t, i + 5) && o.isDark(t, i + 6) && (r += 40);
          }
        }
        for (i = 0; i < e; i++) {
          for (t = 0; t < e - 6; t++) {
            o.isDark(t, i) && !o.isDark(t + 1, i) && o.isDark(t + 2, i) && o.isDark(t + 3, i) && o.isDark(t + 4, i) && !o.isDark(t + 5, i) && o.isDark(t + 6, i) && (r += 40);
          }
        }
        var g = 0;
        for (i = 0; i < e; i++) {
          for (t = 0; t < e; t++) {
            o.isDark(t, i) && g++;
          }
        }
        var l = Math.abs(100 * g / e / e - 50) / 5;
        return r += 10 * l, r;
      }
    }, l = {
      glog: function glog(o) {
        if (o < 1) throw new Error("glog(" + o + ")");
        return l.LOG_TABLE[o];
      },
      gexp: function gexp(o) {
        for (; o < 0;) {
          o += 255;
        }
        for (; o >= 256;) {
          o -= 255;
        }
        return l.EXP_TABLE[o];
      },
      EXP_TABLE: new Array(256),
      LOG_TABLE: new Array(256)
    }, h = 0; h < 8; h++) {
    l.EXP_TABLE[h] = 1 << h;
  }
  for (h = 8; h < 256; h++) {
    l.EXP_TABLE[h] = l.EXP_TABLE[h - 4] ^ l.EXP_TABLE[h - 5] ^ l.EXP_TABLE[h - 6] ^ l.EXP_TABLE[h - 8];
  }
  for (h = 0; h < 255; h++) {
    l.LOG_TABLE[l.EXP_TABLE[h]] = h;
  }
  r.prototype = {
    get: function get(o) {
      return this.num[o];
    },
    getLength: function getLength() {
      return this.num.length;
    },
    multiply: function multiply(o) {
      for (var e = new Array(this.getLength() + o.getLength() - 1), t = 0; t < this.getLength(); t++) {
        for (var i = 0; i < o.getLength(); i++) {
          e[t + i] ^= l.gexp(l.glog(this.get(t)) + l.glog(o.get(i)));
        }
      }
      return new r(e, 0);
    },
    mod: function mod(o) {
      if (this.getLength() - o.getLength() < 0) return this;
      for (var e = l.glog(this.get(0)) - l.glog(o.get(0)), t = new Array(this.getLength()), i = 0; i < this.getLength(); i++) {
        t[i] = this.get(i);
      }
      for (i = 0; i < o.getLength(); i++) {
        t[i] ^= l.gexp(l.glog(o.get(i)) + e);
      }
      return new r(t, 0).mod(o);
    }
  }, t.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], t.getRSBlocks = function (o, e) {
    var r = t.getRsBlockTable(o, e);
    if (null == r) throw new Error("bad rs block @ typeNumber:" + o + "/errorCorrectLevel:" + e);
    for (var i = r.length / 3, n = new Array(), a = 0; a < i; a++) {
      for (var u = r[3 * a + 0], d = r[3 * a + 1], s = r[3 * a + 2], g = 0; g < u; g++) {
        n.push(new t(d, s));
      }
    }
    return n;
  }, t.getRsBlockTable = function (o, e) {
    switch (e) {
      case d.L:
        return t.RS_BLOCK_TABLE[4 * (o - 1) + 0];
      case d.M:
        return t.RS_BLOCK_TABLE[4 * (o - 1) + 1];
      case d.Q:
        return t.RS_BLOCK_TABLE[4 * (o - 1) + 2];
      case d.H:
        return t.RS_BLOCK_TABLE[4 * (o - 1) + 3];
      default:
        return;
    }
  }, i.prototype = {
    get: function get(o) {
      var e = Math.floor(o / 8);
      return 1 == (this.buffer[e] >>> 7 - o % 8 & 1);
    },
    put: function put(o, e) {
      for (var r = 0; r < e; r++) {
        this.putBit(1 == (o >>> e - r - 1 & 1));
      }
    },
    getLengthInBits: function getLengthInBits() {
      return this.length;
    },
    putBit: function putBit(o) {
      var e = Math.floor(this.length / 8);
      this.buffer.length <= e && this.buffer.push(0), o && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
    }
  }, a.errorCorrectLevel = d, a.queue = new n(), a.queueLoadImage = new n(), a.isQueueLoadImage = !1, a.loadImageCache = [], a.utf16To8 = function (o) {
    for (var e, r = "", t = 0; t < o.length; t++) {
      e = o.charCodeAt(t), e >= 1 && e <= 127 ? r += o.charAt(t) : e > 2047 ? (r += String.fromCharCode(224 | e >> 12 & 15), r += String.fromCharCode(128 | e >> 6 & 63), r += String.fromCharCode(128 | e >> 0 & 63)) : (r += String.fromCharCode(192 | e >> 6 & 31), r += String.fromCharCode(128 | e >> 0 & 63));
    }
    return r;
  }, a.deepReplace = function () {
    var o = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
    var t;
    t = r ? o : _objectSpread({}, o);
    for (var _o in e) {
      var i = e[_o];
      null != i && (i.constructor == Object ? t[_o] = this.deepReplace(t[_o], i) : i.constructor != String || i ? t[_o] = i : t[_o] = t[_o]);
    }
    return t;
  }, a.getSomePropertyToNewObject = function () {
    var o = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
    var r = {};
    return e.forEach(function (e) {
      r[e] = o[e];
    }), r;
  }, a.getCanvasContext = function (o) {
    return o.setFillStyle = o.setFillStyle || function (e) {
      o.fillStyle = e;
    }, o.setFontSize = o.setFontSize || function (e) {
      o.font = "".concat(e, "px");
    }, o.setTextAlign = o.setTextAlign || function (e) {
      o.textAlign = e;
    }, o.setTextBaseline = o.setTextBaseline || function (e) {
      o.textBaseline = e;
    }, o.draw = o.draw || function (o, e) {
      e && e();
    }, o;
  }, a.getLoadImage = function (o) {
    return "function" == typeof o ? function (e) {
      var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
      return a.isQueueLoadImage ? a.queueLoadImage.exec(function () {
        return new Promise(function (t, i) {
          setTimeout(function () {
            var r = a.loadImageCache.find(function (o) {
              return o.src == e;
            });
            r ? t(r.img) : o(e).then(function (o) {
              a.loadImageCache.push({
                src: e,
                img: o
              }), t(o);
            }).catch(function (o) {
              i(o);
            });
          }, r ? 150 : 10);
        });
      }) : o(e);
    } : function (o) {
      return Promise.resolve(o);
    };
  };
  var m = a.loadImage = function (o) {
    return Promise.resolve(o);
  };
  Object.defineProperty(a, "loadImage", {
    get: function get() {
      return m;
    },
    set: function set(o) {
      m = a.getLoadImage(o);
    }
  }), a.prototype = {
    setOptions: function setOptions(o) {
      var e, r, t, i, n, u, d, s, g, l, h, m, c, f, v, p, C, b, y, I, k, w, S, P, B, T, L, A, D, E, N, x, R, z, _, M, O, F, j, H, X, Y, U, Q, G, K, W, q, J, $, V, Z, oo, eo, ro, to, io, no, ao, uo, so, go, lo, ho, mo, co, fo, vo, po, Co, bo, yo, Io, ko, wo, So, Po, Bo, To, Lo, Ao, Do, Eo, No, xo;
      o && a.deepReplace(this, {
        data: o.data || o.text,
        size: o.size,
        typeNumber: o.typeNumber,
        errorCorrectLevel: o.errorCorrectLevel,
        useDynamicSize: o.useDynamicSize,
        margin: o.margin,
        backgroundColor: o.backgroundColor || (null === (e = o.background) || void 0 === e ? void 0 : e.color),
        backgroundImageSrc: o.backgroundImageSrc || (null === (r = o.background) || void 0 === r ? void 0 : null === (t = r.image) || void 0 === t ? void 0 : t.src),
        backgroundImageWidth: o.backgroundImageWidth || (null === (i = o.background) || void 0 === i ? void 0 : null === (n = i.image) || void 0 === n ? void 0 : n.width),
        backgroundImageHeight: o.backgroundImageHeight || (null === (u = o.background) || void 0 === u ? void 0 : null === (d = u.image) || void 0 === d ? void 0 : d.height),
        backgroundImageX: o.backgroundImageX || (null === (s = o.background) || void 0 === s ? void 0 : null === (g = s.image) || void 0 === g ? void 0 : g.x),
        backgroundImageY: o.backgroundImageY || (null === (l = o.background) || void 0 === l ? void 0 : null === (h = l.image) || void 0 === h ? void 0 : h.y),
        backgroundImageAlpha: o.backgroundImageAlpha || (null === (m = o.background) || void 0 === m ? void 0 : null === (c = m.image) || void 0 === c ? void 0 : c.alpha),
        backgroundImageBorderRadius: o.backgroundImageBorderRadius || (null === (f = o.background) || void 0 === f ? void 0 : null === (v = f.image) || void 0 === v ? void 0 : v.borderRadius),
        foregroundColor: o.foregroundColor || (null === (p = o.foreground) || void 0 === p ? void 0 : p.color),
        foregroundImageSrc: o.foregroundImageSrc || (null === (C = o.foreground) || void 0 === C ? void 0 : null === (b = C.image) || void 0 === b ? void 0 : b.src),
        foregroundImageWidth: o.foregroundImageWidth || (null === (y = o.foreground) || void 0 === y ? void 0 : null === (I = y.image) || void 0 === I ? void 0 : I.width),
        foregroundImageHeight: o.foregroundImageHeight || (null === (k = o.foreground) || void 0 === k ? void 0 : null === (w = k.image) || void 0 === w ? void 0 : w.height),
        foregroundImageX: o.foregroundImageX || (null === (S = o.foreground) || void 0 === S ? void 0 : null === (P = S.image) || void 0 === P ? void 0 : P.x),
        foregroundImageY: o.foregroundImageY || (null === (B = o.foreground) || void 0 === B ? void 0 : null === (T = B.image) || void 0 === T ? void 0 : T.y),
        foregroundImagePadding: o.foregroundImagePadding || (null === (L = o.foreground) || void 0 === L ? void 0 : null === (A = L.image) || void 0 === A ? void 0 : A.padding),
        foregroundImageBackgroundColor: o.foregroundImageBackgroundColor || (null === (D = o.foreground) || void 0 === D ? void 0 : null === (E = D.image) || void 0 === E ? void 0 : E.backgroundColor),
        foregroundImageBorderRadius: o.foregroundImageBorderRadius || (null === (N = o.foreground) || void 0 === N ? void 0 : null === (x = N.image) || void 0 === x ? void 0 : x.borderRadius),
        foregroundImageShadowOffsetX: o.foregroundImageShadowOffsetX || (null === (R = o.foreground) || void 0 === R ? void 0 : null === (z = R.image) || void 0 === z ? void 0 : z.shadowOffsetX),
        foregroundImageShadowOffsetY: o.foregroundImageShadowOffsetY || (null === (_ = o.foreground) || void 0 === _ ? void 0 : null === (M = _.image) || void 0 === M ? void 0 : M.shadowOffsetY),
        foregroundImageShadowBlur: o.foregroundImageShadowBlur || (null === (O = o.foreground) || void 0 === O ? void 0 : null === (F = O.image) || void 0 === F ? void 0 : F.shadowBlur),
        foregroundImageShadowColor: o.foregroundImageShadowColor || (null === (j = o.foreground) || void 0 === j ? void 0 : null === (H = j.image) || void 0 === H ? void 0 : H.shadowColor),
        positionProbeBackgroundColor: o.positionProbeBackgroundColor || (null === (X = o.positionProbe) || void 0 === X ? void 0 : X.backgroundColor) || (null === (Y = o.positionDetection) || void 0 === Y ? void 0 : Y.backgroundColor),
        positionProbeForegroundColor: o.positionProbeForegroundColor || (null === (U = o.positionProbe) || void 0 === U ? void 0 : U.foregroundColor) || (null === (Q = o.positionDetection) || void 0 === Q ? void 0 : Q.foregroundColor),
        positionProbeImageSrc: o.positionProbeImageSrc || (null === (G = o.art) || void 0 === G ? void 0 : null === (K = G.positionProbe) || void 0 === K ? void 0 : K.imageSrc) || (null === (W = o.art) || void 0 === W ? void 0 : null === (q = W.positionDetection) || void 0 === q ? void 0 : q.image),
        positionProbeLeftUpperImageSrc: o.positionProbeLeftUpperImageSrc || (null === (J = o.art) || void 0 === J ? void 0 : null === ($ = J.positionProbe) || void 0 === $ ? void 0 : null === (V = $.leftUpper) || void 0 === V ? void 0 : V.imageSrc) || (null === (Z = o.art) || void 0 === Z ? void 0 : null === (oo = Z.positionDetection) || void 0 === oo ? void 0 : null === (eo = oo.upperLeft) || void 0 === eo ? void 0 : eo.image),
        positionProbeRightUpperImageSrc: o.positionProbeRightUpperImageSrc || (null === (ro = o.art) || void 0 === ro ? void 0 : null === (to = ro.positionProbe) || void 0 === to ? void 0 : null === (io = to.rightUpper) || void 0 === io ? void 0 : io.imageSrc) || (null === (no = o.art) || void 0 === no ? void 0 : null === (ao = no.positionDetection) || void 0 === ao ? void 0 : null === (uo = ao.upperRight) || void 0 === uo ? void 0 : uo.image),
        positionProbeLeftLowerImageSrc: o.positionProbeLeftLowerImageSrc || (null === (so = o.art) || void 0 === so ? void 0 : null === (go = so.positionProbe) || void 0 === go ? void 0 : null === (lo = go.leftLower) || void 0 === lo ? void 0 : lo.imageSrc) || (null === (ho = o.art) || void 0 === ho ? void 0 : null === (mo = ho.positionDetection) || void 0 === mo ? void 0 : null === (co = mo.lowerLeft) || void 0 === co ? void 0 : co.image),
        separatorColor: o.separatorColor || (null === (fo = o.separator) || void 0 === fo ? void 0 : fo.color),
        positionAdjustBackgroundColor: o.positionAdjustBackgroundColor || (null === (vo = o.positionAdjust) || void 0 === vo ? void 0 : vo.backgroundColor) || (null === (po = o.alignment) || void 0 === po ? void 0 : po.backgroundColor),
        positionAdjustForegroundColor: o.positionAdjustForegroundColor || (null === (Co = o.positionAdjust) || void 0 === Co ? void 0 : Co.foregroundColor) || (null === (bo = o.alignment) || void 0 === bo ? void 0 : bo.foregroundColor),
        positionAdjustImageSrc: o.positionAdjustImageSrc || (null === (yo = o.art) || void 0 === yo ? void 0 : null === (Io = yo.positionAdjust) || void 0 === Io ? void 0 : Io.imageSrc) || (null === (ko = o.art) || void 0 === ko ? void 0 : null === (wo = ko.alignment) || void 0 === wo ? void 0 : wo.image),
        timingBackgroundColor: o.timingBackgroundColor || (null === (So = o.timing) || void 0 === So ? void 0 : So.backgroundColor),
        timingForegroundColor: o.timingForegroundColor || (null === (Po = o.timing) || void 0 === Po ? void 0 : Po.foregroundColor),
        typeNumberBackgroundColor: o.typeNumberBackgroundColor || (null === (Bo = o.typeNumber) || void 0 === Bo ? void 0 : Bo.backgroundColor) || (null === (To = o.versionInformation) || void 0 === To ? void 0 : To.backgroundColor),
        typeNumberForegroundColor: o.typeNumberForegroundColor || (null === (Lo = o.typeNumber) || void 0 === Lo ? void 0 : Lo.foregroundColor) || (null === (Ao = o.versionInformation) || void 0 === Ao ? void 0 : Ao.foregroundColor),
        darkBlockColor: o.darkBlockColor || (null === (Do = o.darkBlock) || void 0 === Do ? void 0 : Do.color),
        patterns: o.patterns || (null === (Eo = o.art) || void 0 === Eo ? void 0 : Eo.patterns) || (null === (No = o.art) || void 0 === No ? void 0 : null === (xo = No.shape) || void 0 === xo ? void 0 : xo.map(function (o) {
          return o.imageSrc = o.image, o;
        })),
        queue: o.queue
      }, !0);
    },
    make: function make() {
      this.foregroundColor === this.backgroundColor && console.error("[uQRCode]: foregroundColor and backgroundColor cannot be the same!");
      var o = new e(this.typeNumber, this.errorCorrectLevel);
      o.addData(a.utf16To8(this.data.toString())), o.make(), this.typeNumber = o.typeNumber, this.modules = o.modules, this.moduleCount = o.moduleCount;
      var r = this.size - 2 * this.margin;
      this.dynamicSize = Math.ceil(r / o.moduleCount) * o.moduleCount + 2 * this.margin, this.useDynamicSize || (this.dynamicSize = this.size), this.paintData(), this.paintPositionProbe(), this.paintSeparator(), this.paintTiming(), this.paintPositionAdjust(), this.paintDarkBlock(), this.paintTypeNumber(), this.getDrawModules();
    },
    paintData: function paintData() {
      var o = this.dynamicSize,
        e = this.margin,
        r = this.backgroundColor,
        t = this.foregroundColor,
        i = this.modules,
        n = this.moduleCount,
        a = (o - 2 * e) / n;
      for (var u = 0; u < n; u++) {
        for (var d = 0; d < n; d++) {
          var s = i[u][d];
          i[u][d] = s ? {
            size: a,
            x: d * a + e,
            y: u * a + e,
            type: ["foreground"],
            color: t,
            isBlack: !0,
            isDrawn: !1
          } : {
            size: a,
            x: d * a + e,
            y: u * a + e,
            type: ["background"],
            color: r,
            isBlack: !1,
            isDrawn: !1
          };
        }
      }
    },
    paintPositionProbe: function paintPositionProbe() {
      var o = this.modules,
        e = this.moduleCount,
        r = this.positionProbeBackgroundColor,
        t = this.positionProbeForegroundColor,
        i = [[0, 0, 1], [1, 0, 1], [2, 0, 1], [3, 0, 1], [4, 0, 1], [5, 0, 1], [6, 0, 1], [0, 1, 1], [1, 1, 0], [2, 1, 0], [3, 1, 0], [4, 1, 0], [5, 1, 0], [6, 1, 1], [0, 2, 1], [1, 2, 0], [2, 2, 1], [3, 2, 1], [4, 2, 1], [5, 2, 0], [6, 2, 1], [0, 3, 1], [1, 3, 0], [2, 3, 1], [3, 3, 1], [4, 3, 1], [5, 3, 0], [6, 3, 1], [0, 4, 1], [1, 4, 0], [2, 4, 1], [3, 4, 1], [4, 4, 1], [5, 4, 0], [6, 4, 1], [0, 5, 1], [1, 5, 0], [2, 5, 0], [3, 5, 0], [4, 5, 0], [5, 5, 0], [6, 5, 1], [0, 6, 1], [1, 6, 1], [2, 6, 1], [3, 6, 1], [4, 6, 1], [5, 6, 1], [6, 6, 1]],
        n = e - 7;
      i.forEach(function (e) {
        var i = o[e[0]][e[1]],
          a = o[e[0] + n][e[1]],
          u = o[e[0]][e[1] + n];
        u.type.push("positionProbe"), a.type.push("positionProbe"), i.type.push("positionProbe"), i.color = 1 == e[2] ? t : r, a.color = 1 == e[2] ? t : r, u.color = 1 == e[2] ? t : r;
      });
    },
    paintSeparator: function paintSeparator() {
      var o = this.modules,
        e = this.moduleCount,
        r = this.separatorColor;
      [[7, 0], [7, 1], [7, 2], [7, 3], [7, 4], [7, 5], [7, 6], [7, 7], [0, 7], [1, 7], [2, 7], [3, 7], [4, 7], [5, 7], [6, 7]].forEach(function (t) {
        var i = o[t[0]][t[1]],
          n = o[e - t[0] - 1][t[1]],
          a = o[t[0]][e - t[1] - 1];
        a.type.push("separator"), n.type.push("separator"), i.type.push("separator"), i.color = r, n.color = r, a.color = r;
      });
    },
    paintPositionAdjust: function paintPositionAdjust() {
      var o = this.typeNumber,
        e = this.modules,
        r = this.moduleCount,
        t = this.foregroundColor,
        i = this.backgroundColor,
        n = this.positionAdjustForegroundColor,
        a = this.positionAdjustBackgroundColor,
        u = this.timingForegroundColor,
        d = this.timingBackgroundColor;
      var s = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]],
        g = s[o - 1];
      if (g) {
        var _o2 = [[-2, -2, 1], [-1, -2, 1], [0, -2, 1], [1, -2, 1], [2, -2, 1], [-2, -1, 1], [-1, -1, 0], [0, -1, 0], [1, -1, 0], [2, -1, 1], [-2, 0, 1], [-1, 0, 0], [0, 0, 1], [1, 0, 0], [2, 0, 1], [-2, 1, 1], [-1, 1, 0], [0, 1, 0], [1, 1, 0], [2, 1, 1], [-2, 2, 1], [-1, 2, 1], [0, 2, 1], [1, 2, 1], [2, 2, 1]],
          _s = g.length;
        for (var _l = 0; _l < _s; _l++) {
          var _loop = function _loop(_h) {
            var _x$y = {
                x: g[_l],
                y: g[_h]
              },
              s = _x$y.x,
              m = _x$y.y;
            s < 9 && m < 9 || s > r - 9 - 1 && m < 9 || m > r - 9 - 1 && s < 9 || _o2.forEach(function (o) {
              var r = e[s + o[0]][m + o[1]];
              r.type.push("positionAdjust"), r.type.includes("timing") ? 1 == o[2] ? r.color = n == t ? u : n : r.color = n == t && a == i ? d : a : r.color = 1 == o[2] ? n : a;
            });
          };
          for (var _h = 0; _h < _s; _h++) {
            _loop(_h);
          }
        }
      }
    },
    paintTiming: function paintTiming() {
      var o = this.modules,
        e = this.moduleCount,
        r = this.timingForegroundColor,
        t = this.timingBackgroundColor,
        i = e - 16;
      for (var _e = 0; _e < i; _e++) {
        var n = o[6][8 + _e],
          a = o[8 + _e][6];
        n.type.push("timing"), a.type.push("timing"), n.color = 1 & _e ^ 1 ? r : t, a.color = 1 & _e ^ 1 ? r : t;
      }
    },
    paintDarkBlock: function paintDarkBlock() {
      var o = this.modules,
        e = this.moduleCount,
        r = this.darkBlockColor;
      var t = o[e - 7 - 1][8];
      t.type.push("darkBlock"), t.color = r;
    },
    paintTypeNumber: function paintTypeNumber() {
      var o = this.typeNumber,
        e = this.modules,
        r = this.moduleCount,
        t = this.typeNumberBackgroundColor,
        i = this.typeNumberForegroundColor;
      if (o < 7) return e;
      var n = [0, 0, 0, 0, 0, 0, 0, "000111110010010100", "001000010110111100", "001001101010011001", "001010010011010011", "001011101111110110", "001100011101100010", "001101100001000111", "001110011000001101", "001111100100101000", "010000101101111000", "010001010001011101", "010010101000010111", "010011010100110010", "010100100110100110", "010101011010000011", "010110100011001001", "010111011111101100", "011000111011000100", "011001000111100001", "011010111110101011", "011011000010001110", "011100110000011010", "011101001100111111", "011110110101110101", "011111001001010000", "100000100111010101", "100001011011110000", "100010100010111010", "100011011110011111", "100100101100001011", "100101010000101110", "100110101001100100", "100111010101000001", "101000110001101001"];
      var a = n[o] + n[o],
        u = [r - 11, r - 10, r - 9],
        d = [[5, u[2]], [5, u[1]], [5, u[0]], [4, u[2]], [4, u[1]], [4, u[0]], [3, u[2]], [3, u[1]], [3, u[0]], [2, u[2]], [2, u[1]], [2, u[0]], [1, u[2]], [1, u[1]], [1, u[0]], [0, u[2]], [0, u[1]], [0, u[0]], [u[2], 5], [u[1], 5], [u[0], 5], [u[2], 4], [u[1], 4], [u[0], 4], [u[2], 3], [u[1], 3], [u[0], 3], [u[2], 2], [u[1], 2], [u[0], 2], [u[2], 1], [u[1], 1], [u[0], 1], [u[2], 0], [u[1], 0], [u[0], 0]];
      d.forEach(function (o, r) {
        var n = e[o[0]][o[1]];
        n.type.push("typeNumber"), n.color = "1" == a[r] ? i : t;
      });
    },
    getDrawModules: function getDrawModules() {
      var o = this.drawModules = [],
        e = this.modules,
        r = this.moduleCount,
        t = this.dynamicSize,
        i = this.backgroundColor,
        n = this.backgroundImageSrc,
        a = this.backgroundImageX,
        u = this.backgroundImageY,
        d = this.backgroundImageWidth,
        s = this.backgroundImageHeight,
        g = this.backgroundImageAlpha,
        l = this.backgroundImageBorderRadius,
        h = this.positionProbeLeftUpperImageSrc,
        m = this.positionProbeRightUpperImageSrc,
        c = this.positionProbeLeftLowerImageSrc,
        f = this.positionAdjustImageSrc,
        v = this.patterns,
        p = this.foregroundImageSrc,
        C = this.foregroundImageX,
        b = this.foregroundImageY,
        y = this.foregroundImageWidth,
        I = this.foregroundImageHeight,
        k = this.foregroundImagePadding,
        w = this.foregroundImageBackgroundColor,
        S = this.foregroundImageBorderRadius,
        P = this.foregroundImageShadowOffsetX,
        B = this.foregroundImageShadowOffsetY,
        T = this.foregroundImageShadowBlur,
        L = this.foregroundImageShadowColor;
      if (i && o.push({
        name: "background",
        type: "block",
        color: i,
        x: 0,
        y: 0,
        width: t,
        height: t
      }), n && o.push({
        name: "backgroundImage",
        type: "image",
        imageSrc: n,
        imageSource: "backgroundImageSrc",
        x: a,
        y: u,
        width: d,
        height: s,
        alpha: g,
        borderRadius: l
      }), h) {
        o.push({
          name: "foreground",
          type: "image",
          imageSrc: h,
          imageSource: "positionProbeLeftUpperImageSrc",
          x: e[0][0].x,
          y: e[0][0].y,
          width: e[0][7].x - e[0][0].x,
          height: e[7][0].y - e[0][0].y
        });
        for (var A = 0; A < 7; A++) {
          for (var D = 0; D < 7; D++) {
            var E = e[A][D];
            E.isDrawn = !0;
          }
        }
      }
      if (m) {
        o.push({
          name: "foreground",
          type: "image",
          imageSrc: m,
          imageSource: "positionProbeRightUpperImageSrc",
          x: e[0][r - 7].x,
          y: e[0][r - 7].y,
          width: e[0][r - 1].x - e[0][r - 7 - 1].x,
          height: e[7][r - 7 - 1].y - e[0][r - 7].y
        });
        for (A = 0; A < 7; A++) {
          for (D = 7; D > 0; D--) {
            E = e[A][r - D];
            E.isDrawn = !0;
          }
        }
      }
      if (c) {
        o.push({
          name: "foreground",
          type: "image",
          imageSrc: c,
          imageSource: "positionProbeLeftLowerImageSrc",
          x: e[r - 7][0].x,
          y: e[r - 7][0].y,
          width: e[r - 7][7].x - e[r - 7][0].x,
          height: e[r - 1][0].y - e[r - 7 - 1][0].y
        });
        for (A = 7; A > 0; A--) {
          for (D = 0; D < 7; D++) {
            E = e[r - A][D];
            E.isDrawn = !0;
          }
        }
      }
      if (f) {
        var _t = [];
        for (var N = 0; N < r; N++) {
          for (var x = 0; x < r; x++) {
            E = e[N][x];
            if (E.type.includes("positionAdjust") && !E.isSign) {
              for (var R = {
                  x: E.x,
                  y: E.y,
                  rowIndex: N,
                  columnIndex: x
                }, z = 1;;) {
                var _ = e[N + z][x];
                if (!_.type.includes("positionAdjust")) break;
                z++;
              }
              for (var M = 1;;) {
                _ = e[N][x + M];
                if (!_.type.includes("positionAdjust")) break;
                M++;
              }
              R.width = e[N][x + M].x - e[N][x].x, R.height = e[N + z][x].y - e[N][x].y, R.relativeLastRowIndex = z, R.relativeLastColumnIndex = M;
              for (A = 0; A < z; A++) {
                for (D = 0; D < M; D++) {
                  var O = e[N + A][x + D];
                  O.isSign = !0;
                }
              }
              _t.push(R);
            }
          }
        }
        _t.forEach(function (r) {
          o.push({
            name: "foreground",
            type: "image",
            imageSrc: f,
            imageSource: "positionAdjustImageSrc",
            x: r.x,
            y: r.y,
            width: r.width,
            height: r.height
          });
          for (var t = 0; t < r.relativeLastRowIndex; t++) {
            for (var i = 0; i < r.relativeLastColumnIndex; i++) {
              var n = e[r.rowIndex + t][r.columnIndex + i];
              n.isDrawn = !0;
            }
          }
        });
      }
      var F = v.filter(function (o) {
        return o.imageSrc;
      });
      if (F.length > 0) for (A = 0; A < F.length; A++) {
        var j = F[A];
        for (N = 0; N < r; N++) {
          for (x = 0; x < r; x++) {
            E = e[N][x];
            if (!E.isDrawn && (!j.isRandom || j.isRandom && 1 == parseInt(2 * Math.random()))) {
              var H = j.matrix.length,
                X = j.matrix[0].length,
                Y = !0;
              if (N + H <= r && x + X <= r) for (var U = 0; U < H && Y; U++) {
                for (var Q = 0; Q < X && Y; Q++) {
                  var G = j.matrix[U][Q],
                    K = e[N + U][x + Q];
                  Y = 1 == G && 1 == K.isBlack && !K.isDrawn || 0 == G && 0 == K.isBlack && !K.isDrawn || null == G && !K.isDrawn;
                }
              } else Y = !1;
              if (Y) {
                o.push({
                  name: "foreground",
                  type: "image",
                  imageSrc: j.imageSrc,
                  imageSource: "patterns[".concat(A, "].imageSrc"),
                  x: E.x,
                  y: E.y,
                  width: E.size * X,
                  height: E.size * H
                });
                for (U = 0; U < H; U++) {
                  for (Q = 0; Q < X; Q++) {
                    G = j.matrix[U][Q], K = e[N + U][x + Q];
                    null != G && (K.isDrawn = !0);
                  }
                }
              }
            }
          }
        }
      }
      for (N = 0; N < r; N++) {
        for (x = 0; x < r; x++) {
          E = e[N][x];
          E.isDrawn || E.color == i || (o.push({
            name: "foreground",
            type: "block",
            color: E.color,
            x: E.x,
            y: E.y,
            width: E.size,
            height: E.size
          }), E.isDrawn = !0);
        }
      }
      p && o.push({
        name: "foregroundImage",
        type: "image",
        imageSrc: p,
        imageSource: "foregroundImageSrc",
        x: C,
        y: b,
        width: y,
        height: I,
        padding: k,
        backgroundColor: w,
        borderRadius: S,
        shadowOffsetX: P,
        shadowOffsetY: B,
        shadowBlur: T,
        shadowColor: L
      });
    },
    drawCanvas: function drawCanvas() {
      var o = this.drawModules,
        e = this.canvasContext,
        r = this.foregroundColor,
        t = this.backgroundColor,
        i = this.queue;
      if (r === t) return Promise.reject({
        errmsg: "[uQRCode]: foregroundColor and backgroundColor cannot be the same!"
      });
      var n = /*#__PURE__*/function () {
        var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(r, t) {
          var n, u, d, s, g, l, h, m, c, f, v, p, C, b;
          return _regenerator.default.wrap(function _callee$(_context) {
            while (1) {
              switch (_context.prev = _context.next) {
                case 0:
                  e.draw(!1);
                  n = !1;
                  u = 0;
                case 3:
                  if (!(u < o.length)) {
                    _context.next = 27;
                    break;
                  }
                  d = o[u];
                  _context.t0 = (e.save(), d.type);
                  _context.next = _context.t0 === "block" ? 8 : _context.t0 === "image" ? 10 : 21;
                  break;
                case 8:
                  e.setFillStyle(d.color), e.fillRect(d.x, d.y, d.width, d.height);
                  return _context.abrupt("break", 21);
                case 10:
                  if ("backgroundImage" === d.name) {
                    s = d.x, g = d.y, l = d.width, h = d.height, m = d.borderRadius;
                    l < 2 * m && (m = l / 2), h < 2 * m && (m = h / 2), e.globalAlpha = d.alpha, e.beginPath(), e.moveTo(s + m, g), e.arcTo(s + l, g, s + l, g + h, m), e.arcTo(s + l, g + h, s, g + h, m), e.arcTo(s, g + h, s, g, m), e.arcTo(s, g, s + l, g, m), e.closePath(), e.strokeStyle = "rgba(0,0,0,0)", e.stroke(), e.clip();
                  } else if ("foregroundImage" === d.name) {
                    s = d.x, g = d.y, l = d.width, h = d.height, m = d.borderRadius;
                    l < 2 * m && (m = l / 2), h < 2 * m && (m = h / 2);
                    c = d.x - d.padding, f = d.y - d.padding, v = d.width + 2 * d.padding, p = d.height + 2 * d.padding, C = v / l * m;
                    v < 2 * C && (C = v / 2), p < 2 * C && (C = p / 2), e.save(), e.shadowOffsetX = d.shadowOffsetX, e.shadowOffsetY = d.shadowOffsetY, e.shadowBlur = d.shadowBlur, e.shadowColor = d.shadowColor, e.beginPath(), e.moveTo(c + C, f), e.arcTo(c + v, f, c + v, f + p, C), e.arcTo(c + v, f + p, c, f + p, C), e.arcTo(c, f + p, c, f, C), e.arcTo(c, f, c + v, f, C), e.closePath(), e.setFillStyle(d.backgroundColor), e.fill(), e.restore(), e.beginPath(), e.moveTo(c + C, f), e.arcTo(c + v, f, c + v, f + p, C), e.arcTo(c + v, f + p, c, f + p, C), e.arcTo(c, f + p, c, f, C), e.arcTo(c, f, c + v, f, C), e.closePath(), e.setFillStyle(d.padding > 0 ? d.backgroundColor : "rgba(0,0,0,0)"), e.fill(), e.beginPath(), e.moveTo(s + m, g), e.arcTo(s + l, g, s + l, g + h, m), e.arcTo(s + l, g + h, s, g + h, m), e.arcTo(s, g + h, s, g, m), e.arcTo(s, g, s + l, g, m), e.closePath(), e.strokeStyle = "rgba(0,0,0,0)", e.stroke(), e.clip();
                  }
                  _context.prev = 11;
                  _context.next = 14;
                  return a.loadImage(d.imageSrc);
                case 14:
                  b = _context.sent;
                  e.drawImage(b, d.x, d.y, d.width, d.height);
                  _context.next = 21;
                  break;
                case 18:
                  _context.prev = 18;
                  _context.t1 = _context["catch"](11);
                  console.error("[uQRCode]: ".concat(d.imageSource, " invalid!")), t({
                    errmsg: "[uQRCode]: ".concat(d.imageSource, " invalid!")
                  }), n = !0;
                case 21:
                  if (!n) {
                    _context.next = 23;
                    break;
                  }
                  return _context.abrupt("return");
                case 23:
                  i && e.draw(!0), e.restore();
                case 24:
                  u++;
                  _context.next = 3;
                  break;
                case 27:
                  e.draw(!0), setTimeout(r, 150);
                case 28:
                case "end":
                  return _context.stop();
              }
            }
          }, _callee, null, [[11, 18]]);
        }));
        return function n(_x, _x2) {
          return _ref.apply(this, arguments);
        };
      }();
      return new Promise(function (o, e) {
        i ? a.queue.exec(function () {
          return new Promise(function (o, e) {
            n(o, e);
          });
        }).then(function () {
          setTimeout(o, 150);
        }).catch(function (o) {
          e(o);
        }) : n(o, e);
      });
    },
    draw: function draw() {
      return this.drawCanvas();
    }
  }, uQRCode = a, uQRCode.export = function () {
    var o, e;
    o = "undefined" != typeof window ? window : global, e = uQRCode,  true && "object" == ( false ? undefined : (0, _typeof2.default)(exports)) ? module.exports = e :  true ? !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
      return e;
    }).call(exports, __webpack_require__, exports, module),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  };
}();
//---------------------------------------------------------------------
// 默认导出方式，非vite(vue3)使用该方式。
// ↓
//---------------------------------------------------------------------
// uQRCode.export();
//---------------------------------------------------------------------
// ES6导出方式，vite(vue3)使用该方式。
// ↓
//---------------------------------------------------------------------
var _default = uQRCode;
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/global.js */ 3)))

/***/ }),
/* 430 */,
/* 431 */,
/* 432 */,
/* 433 */,
/* 434 */,
/* 435 */,
/* 436 */,
/* 437 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-cell-group/props.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 分组标题
    title: {
      type: String,
      default: uni.$u.props.cellGroup.title
    },
    // 是否显示外边框
    border: {
      type: Boolean,
      default: uni.$u.props.cellGroup.border
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 438 */,
/* 439 */,
/* 440 */,
/* 441 */,
/* 442 */,
/* 443 */,
/* 444 */,
/* 445 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-cell/props.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default2 = {
  props: {
    // 标题
    title: {
      type: [String, Number],
      default: uni.$u.props.cell.title
    },
    // 标题下方的描述信息
    label: {
      type: [String, Number],
      default: uni.$u.props.cell.label
    },
    // 右侧的内容
    value: {
      type: [String, Number],
      default: uni.$u.props.cell.value
    },
    // 左侧图标名称，或者图片链接(本地文件建议使用绝对地址)
    icon: {
      type: String,
      default: uni.$u.props.cell.icon
    },
    // 是否禁用cell
    disabled: {
      type: Boolean,
      default: uni.$u.props.cell.disabled
    },
    // 是否显示下边框
    border: {
      type: Boolean,
      default: uni.$u.props.cell.border
    },
    // 内容是否垂直居中(主要是针对右侧的value部分)
    center: {
      type: Boolean,
      default: uni.$u.props.cell.center
    },
    // 点击后跳转的URL地址
    url: {
      type: String,
      default: uni.$u.props.cell.url
    },
    // 链接跳转的方式，内部使用的是uView封装的route方法，可能会进行拦截操作
    linkType: {
      type: String,
      default: uni.$u.props.cell.linkType
    },
    // 是否开启点击反馈(表现为点击时加上灰色背景)
    clickable: {
      type: Boolean,
      default: uni.$u.props.cell.clickable
    },
    // 是否展示右侧箭头并开启点击反馈
    isLink: {
      type: Boolean,
      default: uni.$u.props.cell.isLink
    },
    // 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
    required: {
      type: Boolean,
      default: uni.$u.props.cell.required
    },
    // 右侧的图标箭头
    rightIcon: {
      type: String,
      default: uni.$u.props.cell.rightIcon
    },
    // 右侧箭头的方向，可选值为：left，up，down
    arrowDirection: {
      type: String,
      default: uni.$u.props.cell.arrowDirection
    },
    // 左侧图标样式
    iconStyle: {
      type: [Object, String],
      default: function _default() {
        return uni.$u.props.cell.iconStyle;
      }
    },
    // 右侧箭头图标的样式
    rightIconStyle: {
      type: [Object, String],
      default: function _default() {
        return uni.$u.props.cell.rightIconStyle;
      }
    },
    // 标题的样式
    titleStyle: {
      type: [Object, String],
      default: function _default() {
        return uni.$u.props.cell.titleStyle;
      }
    },
    // 单位元的大小，可选值为large
    size: {
      type: String,
      default: uni.$u.props.cell.size
    },
    // 点击cell是否阻止事件传播
    stop: {
      type: Boolean,
      default: uni.$u.props.cell.stop
    },
    // 标识符，cell被点击时返回
    name: {
      type: [Number, String],
      default: uni.$u.props.cell.name
    }
  }
};
exports.default = _default2;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 446 */,
/* 447 */,
/* 448 */,
/* 449 */,
/* 450 */,
/* 451 */,
/* 452 */,
/* 453 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-picker/props.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 是否展示picker弹窗
    show: {
      type: Boolean,
      default: uni.$u.props.picker.show
    },
    // 是否展示顶部的操作栏
    showToolbar: {
      type: Boolean,
      default: uni.$u.props.picker.showToolbar
    },
    // 顶部标题
    title: {
      type: String,
      default: uni.$u.props.picker.title
    },
    // 对象数组，设置每一列的数据
    columns: {
      type: Array,
      default: uni.$u.props.picker.columns
    },
    // 是否显示加载中状态
    loading: {
      type: Boolean,
      default: uni.$u.props.picker.loading
    },
    // 各列中，单个选项的高度
    itemHeight: {
      type: [String, Number],
      default: uni.$u.props.picker.itemHeight
    },
    // 取消按钮的文字
    cancelText: {
      type: String,
      default: uni.$u.props.picker.cancelText
    },
    // 确认按钮的文字
    confirmText: {
      type: String,
      default: uni.$u.props.picker.confirmText
    },
    // 取消按钮的颜色
    cancelColor: {
      type: String,
      default: uni.$u.props.picker.cancelColor
    },
    // 确认按钮的颜色
    confirmColor: {
      type: String,
      default: uni.$u.props.picker.confirmColor
    },
    // 每列中可见选项的数量
    visibleItemCount: {
      type: [String, Number],
      default: uni.$u.props.picker.visibleItemCount
    },
    // 选项对象中，需要展示的属性键名
    keyName: {
      type: String,
      default: uni.$u.props.picker.keyName
    },
    // 是否允许点击遮罩关闭选择器
    closeOnClickOverlay: {
      type: Boolean,
      default: uni.$u.props.picker.closeOnClickOverlay
    },
    // 各列的默认索引
    defaultIndex: {
      type: Array,
      default: uni.$u.props.picker.defaultIndex
    },
    // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件，只在微信2.21.1及以上有效
    immediateChange: {
      type: Boolean,
      default: uni.$u.props.picker.immediateChange
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 454 */,
/* 455 */,
/* 456 */,
/* 457 */,
/* 458 */,
/* 459 */,
/* 460 */,
/* 461 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-count-down/props.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 倒计时时长，单位ms
    time: {
      type: [String, Number],
      default: uni.$u.props.countDown.time
    },
    // 时间格式，DD-日，HH-时，mm-分，ss-秒，SSS-毫秒
    format: {
      type: String,
      default: uni.$u.props.countDown.format
    },
    // 是否自动开始倒计时
    autoStart: {
      type: Boolean,
      default: uni.$u.props.countDown.autoStart
    },
    // 是否展示毫秒倒计时
    millisecond: {
      type: Boolean,
      default: uni.$u.props.countDown.millisecond
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 462 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-count-down/utils.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isSameSecond = isSameSecond;
exports.parseFormat = parseFormat;
exports.parseTimeData = parseTimeData;
// 补0，如1 -> 01
function padZero(num) {
  var targetLength = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
  var str = "".concat(num);
  while (str.length < targetLength) {
    str = "0".concat(str);
  }
  return str;
}
var SECOND = 1000;
var MINUTE = 60 * SECOND;
var HOUR = 60 * MINUTE;
var DAY = 24 * HOUR;
function parseTimeData(time) {
  var days = Math.floor(time / DAY);
  var hours = Math.floor(time % DAY / HOUR);
  var minutes = Math.floor(time % HOUR / MINUTE);
  var seconds = Math.floor(time % MINUTE / SECOND);
  var milliseconds = Math.floor(time % SECOND);
  return {
    days: days,
    hours: hours,
    minutes: minutes,
    seconds: seconds,
    milliseconds: milliseconds
  };
}
function parseFormat(format, timeData) {
  var days = timeData.days,
    hours = timeData.hours,
    minutes = timeData.minutes,
    seconds = timeData.seconds,
    milliseconds = timeData.milliseconds;
  // 如果格式化字符串中不存在DD(天)，则将天的时间转为小时中去
  if (format.indexOf('DD') === -1) {
    hours += days * 24;
  } else {
    // 对天补0
    format = format.replace('DD', padZero(days));
  }
  // 其他同理于DD的格式化处理方式
  if (format.indexOf('HH') === -1) {
    minutes += hours * 60;
  } else {
    format = format.replace('HH', padZero(hours));
  }
  if (format.indexOf('mm') === -1) {
    seconds += minutes * 60;
  } else {
    format = format.replace('mm', padZero(minutes));
  }
  if (format.indexOf('ss') === -1) {
    milliseconds += seconds * 1000;
  } else {
    format = format.replace('ss', padZero(seconds));
  }
  return format.replace('SSS', padZero(milliseconds, 3));
}
function isSameSecond(time1, time2) {
  return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
}

/***/ }),
/* 463 */,
/* 464 */,
/* 465 */,
/* 466 */,
/* 467 */,
/* 468 */,
/* 469 */,
/* 470 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-upload/utils.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni, wx) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.chooseFile = chooseFile;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function pickExclude(obj, keys) {
  // 某些情况下，type可能会为
  if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
    return {};
  }
  return Object.keys(obj).reduce(function (prev, key) {
    if (!keys.includes(key)) {
      prev[key] = obj[key];
    }
    return prev;
  }, {});
}
function formatImage(res) {
  return res.tempFiles.map(function (item) {
    return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
      type: 'image',
      url: item.path,
      thumb: item.path,
      size: item.size
    });
  });
}
function formatVideo(res) {
  return [_objectSpread(_objectSpread({}, pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
    type: 'video',
    url: res.tempFilePath,
    thumb: res.thumbTempFilePath,
    size: res.size
  })];
}
function formatMedia(res) {
  return res.tempFiles.map(function (item) {
    return _objectSpread(_objectSpread({}, pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
      type: res.type,
      url: item.tempFilePath,
      thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
      size: item.size
    });
  });
}
function formatFile(res) {
  return res.tempFiles.map(function (item) {
    return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
      url: item.path,
      size: item.size
    });
  });
}
function chooseFile(_ref) {
  var accept = _ref.accept,
    multiple = _ref.multiple,
    capture = _ref.capture,
    compressed = _ref.compressed,
    maxDuration = _ref.maxDuration,
    sizeType = _ref.sizeType,
    camera = _ref.camera,
    maxCount = _ref.maxCount;
  return new Promise(function (resolve, reject) {
    switch (accept) {
      case 'image':
        uni.chooseImage({
          count: multiple ? Math.min(maxCount, 9) : 1,
          sourceType: capture,
          sizeType: sizeType,
          success: function success(res) {
            return resolve(formatImage(res));
          },
          fail: reject
        });
        break;

      // 只有微信小程序才支持chooseMedia接口
      case 'media':
        wx.chooseMedia({
          count: multiple ? Math.min(maxCount, 9) : 1,
          sourceType: capture,
          maxDuration: maxDuration,
          sizeType: sizeType,
          camera: camera,
          success: function success(res) {
            return resolve(formatMedia(res));
          },
          fail: reject
        });
        break;
      case 'video':
        uni.chooseVideo({
          sourceType: capture,
          compressed: compressed,
          maxDuration: maxDuration,
          camera: camera,
          success: function success(res) {
            return resolve(formatVideo(res));
          },
          fail: reject
        });
        break;

      // 只有微信小程序才支持chooseMessageFile接口
      case 'file':
        wx.chooseMessageFile({
          count: multiple ? maxCount : 1,
          type: accept,
          success: function success(res) {
            return resolve(formatFile(res));
          },
          fail: reject
        });
        break;
      default:
        // 此为保底选项，在accept不为上面任意一项的时候选取全部文件

        wx.chooseMessageFile({
          count: multiple ? maxCount : 1,
          type: 'all',
          success: function success(res) {
            return resolve(formatFile(res));
          },
          fail: reject
        });
    }
  });
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))

/***/ }),
/* 471 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-upload/mixin.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  watch: {
    // 监听accept的变化，判断是否符合个平台要求
    // 只有微信小程序才支持选择媒体，文件类型，所以这里做一个判断提示
    accept: {
      immediate: true,
      handler: function handler(val) {}
    }
  }
};
exports.default = _default;

/***/ }),
/* 472 */
/*!***********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-upload/props.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 接受的文件类型, 可选值为all media image file video
    accept: {
      type: String,
      default: uni.$u.props.upload.accept
    },
    // 	图片或视频拾取模式，当accept为image类型时设置capture可选额外camera可以直接调起摄像头
    capture: {
      type: [String, Array],
      default: uni.$u.props.upload.capture
    },
    // 当accept为video时生效，是否压缩视频，默认为true
    compressed: {
      type: Boolean,
      default: uni.$u.props.upload.compressed
    },
    // 当accept为video时生效，可选值为back或front
    camera: {
      type: String,
      default: uni.$u.props.upload.camera
    },
    // 当accept为video时生效，拍摄视频最长拍摄时间，单位秒
    maxDuration: {
      type: Number,
      default: uni.$u.props.upload.maxDuration
    },
    // 上传区域的图标，只能内置图标
    uploadIcon: {
      type: String,
      default: uni.$u.props.upload.uploadIcon
    },
    // 上传区域的图标的颜色，默认
    uploadIconColor: {
      type: String,
      default: uni.$u.props.upload.uploadIconColor
    },
    // 是否开启文件读取前事件
    useBeforeRead: {
      type: Boolean,
      default: uni.$u.props.upload.useBeforeRead
    },
    // 读取后的处理函数
    afterRead: {
      type: Function,
      default: null
    },
    // 读取前的处理函数
    beforeRead: {
      type: Function,
      default: null
    },
    // 是否显示组件自带的图片预览功能
    previewFullImage: {
      type: Boolean,
      default: uni.$u.props.upload.previewFullImage
    },
    // 最大上传数量
    maxCount: {
      type: [String, Number],
      default: uni.$u.props.upload.maxCount
    },
    // 是否启用
    disabled: {
      type: Boolean,
      default: uni.$u.props.upload.disabled
    },
    // 预览上传的图片时的裁剪模式，和image组件mode属性一致
    imageMode: {
      type: String,
      default: uni.$u.props.upload.imageMode
    },
    // 标识符，可以在回调函数的第二项参数中获取
    name: {
      type: String,
      default: uni.$u.props.upload.name
    },
    // 所选的图片的尺寸, 可选值为original compressed
    sizeType: {
      type: Array,
      default: uni.$u.props.upload.sizeType
    },
    // 是否开启图片多选，部分安卓机型不支持
    multiple: {
      type: Boolean,
      default: uni.$u.props.upload.multiple
    },
    // 是否展示删除按钮
    deletable: {
      type: Boolean,
      default: uni.$u.props.upload.deletable
    },
    // 文件大小限制，单位为byte
    maxSize: {
      type: [String, Number],
      default: uni.$u.props.upload.maxSize
    },
    // 显示已上传的文件列表
    fileList: {
      type: Array,
      default: uni.$u.props.upload.fileList
    },
    // 上传区域的提示文字
    uploadText: {
      type: String,
      default: uni.$u.props.upload.uploadText
    },
    // 内部预览图片区域和选择图片按钮的区域宽度
    width: {
      type: [String, Number],
      default: uni.$u.props.upload.width
    },
    // 内部预览图片区域和选择图片按钮的区域高度
    height: {
      type: [String, Number],
      default: uni.$u.props.upload.height
    },
    // 是否在上传完成后展示预览图
    previewImage: {
      type: Boolean,
      default: uni.$u.props.upload.previewImage
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 473 */,
/* 474 */,
/* 475 */,
/* 476 */,
/* 477 */,
/* 478 */,
/* 479 */,
/* 480 */
/*!*****************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-loading-icon/props.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 是否显示组件
    show: {
      type: Boolean,
      default: uni.$u.props.loadingIcon.show
    },
    // 颜色
    color: {
      type: String,
      default: uni.$u.props.loadingIcon.color
    },
    // 提示文字颜色
    textColor: {
      type: String,
      default: uni.$u.props.loadingIcon.textColor
    },
    // 文字和图标是否垂直排列
    vertical: {
      type: Boolean,
      default: uni.$u.props.loadingIcon.vertical
    },
    // 模式选择，circle-圆形，spinner-花朵形，semicircle-半圆形
    mode: {
      type: String,
      default: uni.$u.props.loadingIcon.mode
    },
    // 图标大小，单位默认px
    size: {
      type: [String, Number],
      default: uni.$u.props.loadingIcon.size
    },
    // 文字大小
    textSize: {
      type: [String, Number],
      default: uni.$u.props.loadingIcon.textSize
    },
    // 文字内容
    text: {
      type: [String, Number],
      default: uni.$u.props.loadingIcon.text
    },
    // 动画模式
    timingFunction: {
      type: String,
      default: uni.$u.props.loadingIcon.timingFunction
    },
    // 动画执行周期时间
    duration: {
      type: [String, Number],
      default: uni.$u.props.loadingIcon.duration
    },
    // mode=circle时的暗边颜色
    inactiveColor: {
      type: String,
      default: uni.$u.props.loadingIcon.inactiveColor
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 481 */,
/* 482 */,
/* 483 */,
/* 484 */,
/* 485 */,
/* 486 */,
/* 487 */,
/* 488 */
/*!*********************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-swiper-indicator/props.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 轮播的长度
    length: {
      type: [String, Number],
      default: uni.$u.props.swiperIndicator.length
    },
    // 当前处于活动状态的轮播的索引
    current: {
      type: [String, Number],
      default: uni.$u.props.swiperIndicator.current
    },
    // 指示器非激活颜色
    indicatorActiveColor: {
      type: String,
      default: uni.$u.props.swiperIndicator.indicatorActiveColor
    },
    // 指示器的激活颜色
    indicatorInactiveColor: {
      type: String,
      default: uni.$u.props.swiperIndicator.indicatorInactiveColor
    },
    // 指示器模式，line-线型，dot-点型
    indicatorMode: {
      type: String,
      default: uni.$u.props.swiperIndicator.indicatorMode
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 489 */,
/* 490 */,
/* 491 */,
/* 492 */,
/* 493 */,
/* 494 */,
/* 495 */,
/* 496 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-badge/props.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 是否显示圆点
    isDot: {
      type: Boolean,
      default: uni.$u.props.badge.isDot
    },
    // 显示的内容
    value: {
      type: [Number, String],
      default: uni.$u.props.badge.value
    },
    // 是否显示
    show: {
      type: Boolean,
      default: uni.$u.props.badge.show
    },
    // 最大值，超过最大值会显示 '{max}+'
    max: {
      type: [Number, String],
      default: uni.$u.props.badge.max
    },
    // 主题类型，error|warning|success|primary
    type: {
      type: String,
      default: uni.$u.props.badge.type
    },
    // 当数值为 0 时，是否展示 Badge
    showZero: {
      type: Boolean,
      default: uni.$u.props.badge.showZero
    },
    // 背景颜色，优先级比type高，如设置，type参数会失效
    bgColor: {
      type: [String, null],
      default: uni.$u.props.badge.bgColor
    },
    // 字体颜色
    color: {
      type: [String, null],
      default: uni.$u.props.badge.color
    },
    // 徽标形状，circle-四角均为圆角，horn-左下角为直角
    shape: {
      type: String,
      default: uni.$u.props.badge.shape
    },
    // 设置数字的显示方式，overflow|ellipsis|limit
    // overflow会根据max字段判断，超出显示`${max}+`
    // ellipsis会根据max判断，超出显示`${max}...`
    // limit会依据1000作为判断条件，超出1000，显示`${value/1000}K`，比如2.2k、3.34w，最多保留2位小数
    numberType: {
      type: String,
      default: uni.$u.props.badge.numberType
    },
    // 设置badge的位置偏移，格式为 [x, y]，也即设置的为top和right的值，absolute为true时有效
    offset: {
      type: Array,
      default: uni.$u.props.badge.offset
    },
    // 是否反转背景和字体颜色
    inverted: {
      type: Boolean,
      default: uni.$u.props.badge.inverted
    },
    // 是否绝对定位
    absolute: {
      type: Boolean,
      default: uni.$u.props.badge.absolute
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 497 */,
/* 498 */,
/* 499 */,
/* 500 */,
/* 501 */,
/* 502 */,
/* 503 */,
/* 504 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-text/props.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 主题颜色
    type: {
      type: String,
      default: uni.$u.props.text.type
    },
    // 是否显示
    show: {
      type: Boolean,
      default: uni.$u.props.text.show
    },
    // 显示的值
    text: {
      type: [String, Number],
      default: uni.$u.props.text.text
    },
    // 前置图标
    prefixIcon: {
      type: String,
      default: uni.$u.props.text.prefixIcon
    },
    // 后置图标
    suffixIcon: {
      type: String,
      default: uni.$u.props.text.suffixIcon
    },
    // 文本处理的匹配模式
    // text-普通文本，price-价格，phone-手机号，name-姓名，date-日期，link-超链接
    mode: {
      type: String,
      default: uni.$u.props.text.mode
    },
    // mode=link下，配置的链接
    href: {
      type: String,
      default: uni.$u.props.text.href
    },
    // 格式化规则
    format: {
      type: [String, Function],
      default: uni.$u.props.text.format
    },
    // mode=phone时，点击文本是否拨打电话
    call: {
      type: Boolean,
      default: uni.$u.props.text.call
    },
    // 小程序的打开方式
    openType: {
      type: String,
      default: uni.$u.props.text.openType
    },
    // 是否粗体，默认normal
    bold: {
      type: Boolean,
      default: uni.$u.props.text.bold
    },
    // 是否块状
    block: {
      type: Boolean,
      default: uni.$u.props.text.block
    },
    // 文本显示的行数，如果设置，超出此行数，将会显示省略号
    lines: {
      type: [String, Number],
      default: uni.$u.props.text.lines
    },
    // 文本颜色
    color: {
      type: String,
      default: uni.$u.props.text.color
    },
    // 字体大小
    size: {
      type: [String, Number],
      default: uni.$u.props.text.size
    },
    // 图标的样式
    iconStyle: {
      type: [Object, String],
      default: uni.$u.props.text.iconStyle
    },
    // 文字装饰，下划线，中划线等，可选值 none|underline|line-through
    decoration: {
      tepe: String,
      default: uni.$u.props.text.decoration
    },
    // 外边距，对象、字符串，数值形式均可
    margin: {
      type: [Object, String, Number],
      default: uni.$u.props.text.margin
    },
    // 文本行高
    lineHeight: {
      type: [String, Number],
      default: uni.$u.props.text.lineHeight
    },
    // 文本对齐方式，可选值left|center|right
    align: {
      type: String,
      default: uni.$u.props.text.align
    },
    // 文字换行，可选值break-word|normal|anywhere
    wordWrap: {
      type: String,
      default: uni.$u.props.text.wordWrap
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 505 */,
/* 506 */,
/* 507 */,
/* 508 */,
/* 509 */,
/* 510 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-overlay/props.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 是否显示遮罩
    show: {
      type: Boolean,
      default: uni.$u.props.overlay.show
    },
    // 层级z-index
    zIndex: {
      type: [String, Number],
      default: uni.$u.props.overlay.zIndex
    },
    // 遮罩的过渡时间，单位为ms
    duration: {
      type: [String, Number],
      default: uni.$u.props.overlay.duration
    },
    // 不透明度值，当做rgba的第四个参数
    opacity: {
      type: [String, Number],
      default: uni.$u.props.overlay.opacity
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 511 */,
/* 512 */,
/* 513 */,
/* 514 */,
/* 515 */,
/* 516 */,
/* 517 */,
/* 518 */
/*!********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-gap/props.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 背景颜色（默认transparent）
    bgColor: {
      type: String,
      default: uni.$u.props.gap.bgColor
    },
    // 分割槽高度，单位px（默认30）
    height: {
      type: [String, Number],
      default: uni.$u.props.gap.height
    },
    // 与上一个组件的距离
    marginTop: {
      type: [String, Number],
      default: uni.$u.props.gap.marginTop
    },
    // 与下一个组件的距离
    marginBottom: {
      type: [String, Number],
      default: uni.$u.props.gap.marginBottom
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 519 */,
/* 520 */,
/* 521 */,
/* 522 */,
/* 523 */,
/* 524 */,
/* 525 */,
/* 526 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-line/props.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    color: {
      type: String,
      default: uni.$u.props.line.color
    },
    // 长度，竖向时表现为高度，横向时表现为长度，可以为百分比，带px单位的值等
    length: {
      type: [String, Number],
      default: uni.$u.props.line.length
    },
    // 线条方向，col-竖向，row-横向
    direction: {
      type: String,
      default: uni.$u.props.line.direction
    },
    // 是否显示细边框
    hairline: {
      type: Boolean,
      default: uni.$u.props.line.hairline
    },
    // 线条与上下左右元素的间距，字符串形式，如"30px"、"20px 30px"
    margin: {
      type: [String, Number],
      default: uni.$u.props.line.margin
    },
    // 是否虚线，true-虚线，false-实线
    dashed: {
      type: Boolean,
      default: uni.$u.props.line.dashed
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 527 */,
/* 528 */,
/* 529 */,
/* 530 */,
/* 531 */,
/* 532 */,
/* 533 */,
/* 534 */
/*!**********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-popup/props.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 是否展示弹窗
    show: {
      type: Boolean,
      default: uni.$u.props.popup.show
    },
    // 是否显示遮罩
    overlay: {
      type: Boolean,
      default: uni.$u.props.popup.overlay
    },
    // 弹出的方向，可选值为 top bottom right left center
    mode: {
      type: String,
      default: uni.$u.props.popup.mode
    },
    // 动画时长，单位ms
    duration: {
      type: [String, Number],
      default: uni.$u.props.popup.duration
    },
    // 是否显示关闭图标
    closeable: {
      type: Boolean,
      default: uni.$u.props.popup.closeable
    },
    // 自定义遮罩的样式
    overlayStyle: {
      type: [Object, String],
      default: uni.$u.props.popup.overlayStyle
    },
    // 点击遮罩是否关闭弹窗
    closeOnClickOverlay: {
      type: Boolean,
      default: uni.$u.props.popup.closeOnClickOverlay
    },
    // 层级
    zIndex: {
      type: [String, Number],
      default: uni.$u.props.popup.zIndex
    },
    // 是否为iPhoneX留出底部安全距离
    safeAreaInsetBottom: {
      type: Boolean,
      default: uni.$u.props.popup.safeAreaInsetBottom
    },
    // 是否留出顶部安全距离（状态栏高度）
    safeAreaInsetTop: {
      type: Boolean,
      default: uni.$u.props.popup.safeAreaInsetTop
    },
    // 自定义关闭图标位置，top-left为左上角，top-right为右上角，bottom-left为左下角，bottom-right为右下角
    closeIconPos: {
      type: String,
      default: uni.$u.props.popup.closeIconPos
    },
    // 是否显示圆角
    round: {
      type: [Boolean, String, Number],
      default: uni.$u.props.popup.round
    },
    // mode=center，也即中部弹出时，是否使用缩放模式
    zoom: {
      type: Boolean,
      default: uni.$u.props.popup.zoom
    },
    // 弹窗背景色，设置为transparent可去除白色背景
    bgColor: {
      type: String,
      default: uni.$u.props.popup.bgColor
    },
    // 遮罩的透明度，0-1之间
    overlayOpacity: {
      type: [Number, String],
      default: uni.$u.props.popup.overlayOpacity
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 535 */,
/* 536 */,
/* 537 */,
/* 538 */,
/* 539 */,
/* 540 */,
/* 541 */,
/* 542 */,
/* 543 */,
/* 544 */,
/* 545 */,
/* 546 */,
/* 547 */,
/* 548 */,
/* 549 */,
/* 550 */,
/* 551 */
/*!************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-toolbar/props.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 是否展示工具条
    show: {
      type: Boolean,
      default: uni.$u.props.toolbar.show
    },
    // 取消按钮的文字
    cancelText: {
      type: String,
      default: uni.$u.props.toolbar.cancelText
    },
    // 确认按钮的文字
    confirmText: {
      type: String,
      default: uni.$u.props.toolbar.confirmText
    },
    // 取消按钮的颜色
    cancelColor: {
      type: String,
      default: uni.$u.props.toolbar.cancelColor
    },
    // 确认按钮的颜色
    confirmColor: {
      type: String,
      default: uni.$u.props.toolbar.confirmColor
    },
    // 标题文字
    title: {
      type: String,
      default: uni.$u.props.toolbar.title
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 552 */,
/* 553 */,
/* 554 */,
/* 555 */,
/* 556 */,
/* 557 */,
/* 558 */,
/* 559 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-text/value.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  computed: {
    // 经处理后需要显示的值
    value: function value() {
      var text = this.text,
        mode = this.mode,
        format = this.format,
        href = this.href;
      // 价格类型
      if (mode === 'price') {
        // 如果text不为金额进行提示
        if (!/^\d+(\.\d+)?$/.test(text)) {
          uni.$u.error('金额模式下，text参数需要为金额格式');
        }
        // 进行格式化，判断用户传入的format参数为正则，或者函数，如果没有传入format，则使用默认的金额格式化处理
        if (uni.$u.test.func(format)) {
          // 如果用户传入的是函数，使用函数格式化
          return format(text);
        }
        // 如果format非正则，非函数，则使用默认的金额格式化方法进行操作
        return uni.$u.priceFormat(text, 2);
      }
      if (mode === 'date') {
        // 判断是否合法的日期或者时间戳
        !uni.$u.test.date(text) && uni.$u.error('日期模式下，text参数需要为日期或时间戳格式');
        // 进行格式化，判断用户传入的format参数为正则，或者函数，如果没有传入format，则使用默认的格式化处理
        if (uni.$u.test.func(format)) {
          // 如果用户传入的是函数，使用函数格式化
          return format(text);
        }
        if (format) {
          // 如果format非正则，非函数，则使用默认的时间格式化方法进行操作
          return uni.$u.timeFormat(text, format);
        }
        // 如果没有设置format，则设置为默认的时间格式化形式
        return uni.$u.timeFormat(text, 'yyyy-mm-dd');
      }
      if (mode === 'phone') {
        // 判断是否合法的手机号
        // !uni.$u.test.mobile(text) && uni.$u.error('手机号模式下，text参数需要为手机号码格式')
        if (uni.$u.test.func(format)) {
          // 如果用户传入的是函数，使用函数格式化
          return format(text);
        }
        if (format === 'encrypt') {
          // 如果format为encrypt，则将手机号进行星号加密处理
          return "".concat(text.substr(0, 3), "****").concat(text.substr(7));
        }
        return text;
      }
      if (mode === 'name') {
        // 判断是否合法的字符粗
        !(typeof text === 'string') && uni.$u.error('姓名模式下，text参数需要为字符串格式');
        if (uni.$u.test.func(format)) {
          // 如果用户传入的是函数，使用函数格式化
          return format(text);
        }
        if (format === 'encrypt') {
          // 如果format为encrypt，则将姓名进行星号加密处理
          return this.formatName(text);
        }
        return text;
      }
      if (mode === 'link') {
        // 判断是否合法的字符粗
        !uni.$u.test.url(href) && uni.$u.error('超链接模式下，href参数需要为URL格式');
        return text;
      }
      return text;
    }
  },
  methods: {
    // 默认的姓名脱敏规则
    formatName: function formatName(name) {
      var value = '';
      if (name.length === 2) {
        value = name.substr(0, 1) + '*';
      } else if (name.length > 2) {
        var char = '';
        for (var i = 0, len = name.length - 2; i < len; i++) {
          char += '*';
        }
        value = name.substr(0, 1) + char + name.substr(-1, 1);
      } else {
        value = name;
      }
      return value;
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 560 */,
/* 561 */,
/* 562 */,
/* 563 */,
/* 564 */,
/* 565 */,
/* 566 */,
/* 567 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-transition/props.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 是否展示组件
    show: {
      type: Boolean,
      default: uni.$u.props.transition.show
    },
    // 使用的动画模式
    mode: {
      type: String,
      default: uni.$u.props.transition.mode
    },
    // 动画的执行时间，单位ms
    duration: {
      type: [String, Number],
      default: uni.$u.props.transition.duration
    },
    // 使用的动画过渡函数
    timingFunction: {
      type: String,
      default: uni.$u.props.transition.timingFunction
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 568 */
/*!********************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-transition/transition.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 62));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 64));
var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 569));
// 定义一个一定时间后自动成功的promise，让调用nextTick方法处，进入下一个then方法
var nextTick = function nextTick() {
  return new Promise(function (resolve) {
    return setTimeout(resolve, 1000 / 50);
  });
};
// nvue动画模块实现细节抽离在外部文件

// 定义类名，通过给元素动态切换类名，赋予元素一定的css动画样式
var getClassNames = function getClassNames(name) {
  return {
    enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
    'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
    leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
    'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  };
};
var _default = {
  methods: {
    // 组件被点击发出事件
    clickHandler: function clickHandler() {
      this.$emit('click');
    },
    // vue版本的组件进场处理
    vueEnter: function vueEnter() {
      var _this = this;
      // 动画进入时的类名
      var classNames = getClassNames(this.mode);
      // 定义状态和发出动画进入前事件
      this.status = 'enter';
      this.$emit('beforeEnter');
      this.inited = true;
      this.display = true;
      this.classes = classNames.enter;
      this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
        return _regenerator.default.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                // 标识动画尚未结束
                _this.$emit('enter');
                _this.transitionEnded = false;
                // 组件动画进入后触发的事件
                _this.$emit('afterEnter');
                // 赋予组件enter-to类名
                _this.classes = classNames['enter-to'];
              case 4:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      })));
    },
    // 动画离场处理
    vueLeave: function vueLeave() {
      var _this2 = this;
      // 如果不是展示状态，无需执行逻辑
      if (!this.display) return;
      var classNames = getClassNames(this.mode);
      // 标记离开状态和发出事件
      this.status = 'leave';
      this.$emit('beforeLeave');
      // 获得类名
      this.classes = classNames.leave;
      this.$nextTick(function () {
        // 动画正在离场的状态
        _this2.transitionEnded = false;
        _this2.$emit('leave');
        // 组件执行动画，到了执行的执行时间后，执行一些额外处理
        setTimeout(_this2.onTransitionEnd, _this2.duration);
        _this2.classes = classNames['leave-to'];
      });
    },
    // 完成过渡后触发
    onTransitionEnd: function onTransitionEnd() {
      // 如果已经是结束的状态，无需再处理
      if (this.transitionEnded) return;
      this.transitionEnded = true;
      // 发出组件动画执行后的事件
      this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
      if (!this.show && this.display) {
        this.display = false;
        this.inited = false;
      }
    }
  }
};
exports.default = _default;

/***/ }),
/* 569 */
/*!**********************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-transition/nvue.ani-map.js ***!
  \**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  fade: {
    enter: {
      opacity: 0
    },
    'enter-to': {
      opacity: 1
    },
    leave: {
      opacity: 1
    },
    'leave-to': {
      opacity: 0
    }
  },
  'fade-up': {
    enter: {
      opacity: 0,
      transform: 'translateY(100%)'
    },
    'enter-to': {
      opacity: 1,
      transform: 'translateY(0)'
    },
    leave: {
      opacity: 1,
      transform: 'translateY(0)'
    },
    'leave-to': {
      opacity: 0,
      transform: 'translateY(100%)'
    }
  },
  'fade-down': {
    enter: {
      opacity: 0,
      transform: 'translateY(-100%)'
    },
    'enter-to': {
      opacity: 1,
      transform: 'translateY(0)'
    },
    leave: {
      opacity: 1,
      transform: 'translateY(0)'
    },
    'leave-to': {
      opacity: 0,
      transform: 'translateY(-100%)'
    }
  },
  'fade-left': {
    enter: {
      opacity: 0,
      transform: 'translateX(-100%)'
    },
    'enter-to': {
      opacity: 1,
      transform: 'translateY(0)'
    },
    leave: {
      opacity: 1,
      transform: 'translateY(0)'
    },
    'leave-to': {
      opacity: 0,
      transform: 'translateX(-100%)'
    }
  },
  'fade-right': {
    enter: {
      opacity: 0,
      transform: 'translateX(100%)'
    },
    'enter-to': {
      opacity: 1,
      transform: 'translateY(0)'
    },
    leave: {
      opacity: 1,
      transform: 'translateY(0)'
    },
    'leave-to': {
      opacity: 0,
      transform: 'translateX(100%)'
    }
  },
  'slide-up': {
    enter: {
      transform: 'translateY(100%)'
    },
    'enter-to': {
      transform: 'translateY(0)'
    },
    leave: {
      transform: 'translateY(0)'
    },
    'leave-to': {
      transform: 'translateY(100%)'
    }
  },
  'slide-down': {
    enter: {
      transform: 'translateY(-100%)'
    },
    'enter-to': {
      transform: 'translateY(0)'
    },
    leave: {
      transform: 'translateY(0)'
    },
    'leave-to': {
      transform: 'translateY(-100%)'
    }
  },
  'slide-left': {
    enter: {
      transform: 'translateX(-100%)'
    },
    'enter-to': {
      transform: 'translateY(0)'
    },
    leave: {
      transform: 'translateY(0)'
    },
    'leave-to': {
      transform: 'translateX(-100%)'
    }
  },
  'slide-right': {
    enter: {
      transform: 'translateX(100%)'
    },
    'enter-to': {
      transform: 'translateY(0)'
    },
    leave: {
      transform: 'translateY(0)'
    },
    'leave-to': {
      transform: 'translateX(100%)'
    }
  },
  zoom: {
    enter: {
      transform: 'scale(0.95)'
    },
    'enter-to': {
      transform: 'scale(1)'
    },
    leave: {
      transform: 'scale(1)'
    },
    'leave-to': {
      transform: 'scale(0.95)'
    }
  },
  'fade-zoom': {
    enter: {
      opacity: 0,
      transform: 'scale(0.95)'
    },
    'enter-to': {
      opacity: 1,
      transform: 'scale(1)'
    },
    leave: {
      opacity: 1,
      transform: 'scale(1)'
    },
    'leave-to': {
      opacity: 0,
      transform: 'scale(0.95)'
    }
  }
};
exports.default = _default;

/***/ }),
/* 570 */,
/* 571 */,
/* 572 */,
/* 573 */,
/* 574 */,
/* 575 */,
/* 576 */,
/* 577 */
/*!***************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-status-bar/props.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    bgColor: {
      type: String,
      default: uni.$u.props.statusBar.bgColor
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),
/* 578 */,
/* 579 */,
/* 580 */,
/* 581 */,
/* 582 */,
/* 583 */,
/* 584 */,
/* 585 */
/*!****************************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-safe-bottom/props.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {}
};
exports.default = _default;

/***/ }),
/* 586 */,
/* 587 */,
/* 588 */,
/* 589 */,
/* 590 */,
/* 591 */,
/* 592 */,
/* 593 */
/*!*********************************************************************!*\
  !*** D:/IdeaProject/patient-wx/uview-ui/components/u-link/props.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  props: {
    // 文字颜色
    color: {
      type: String,
      default: uni.$u.props.link.color
    },
    // 字体大小，单位px
    fontSize: {
      type: [String, Number],
      default: uni.$u.props.link.fontSize
    },
    // 是否显示下划线
    underLine: {
      type: Boolean,
      default: uni.$u.props.link.underLine
    },
    // 要跳转的链接
    href: {
      type: String,
      default: uni.$u.props.link.href
    },
    // 小程序中复制到粘贴板的提示语
    mpTips: {
      type: String,
      default: uni.$u.props.link.mpTips
    },
    // 下划线颜色
    lineColor: {
      type: String,
      default: uni.$u.props.link.lineColor
    },
    // 超链接的问题，不使用slot形式传入，是因为nvue下无法修改颜色
    text: {
      type: String,
      default: uni.$u.props.link.text
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ })
]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map