GitBucket
4.6.0
Toggle navigation
Sign in
Files
Branches
1
Tags
Issues
Pull Requests
Labels
Milestones
Wiki
08335
/
hivui-platform-template
hivui平台项目模板
Browse code
@中文描述:编辑器
@升级登记:1 @同步后端:0 @同步数据库:0 @同步配置:0 @向下兼容:1
master
1 parent
8d83d3d
commit
b70983fd743cb30d5bfe71333f3d5e0647a1eb97
zjw2004112
authored
on 2 Apr 2024
Showing
4 changed files
assets_platform/eap/eap.common.js
assets_platform/eap/eap.umd.js
assets_platform/eap/eap.umd.min.js
package.json
Ignore Space
Show notes
View
assets_platform/eap/eap.common.js
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ "00fd": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }), /***/ "03dd": /***/ (function(module, exports, __webpack_require__) { var isPrototype = __webpack_require__("eac5"), nativeKeys = __webpack_require__("57a5"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys; /***/ }), /***/ "0644": /***/ (function(module, exports, __webpack_require__) { var baseClone = __webpack_require__("3818"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4; /** * This method is like `_.clone` except that it recursively clones `value`. * * @static * @memberOf _ * @since 1.0.0 * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. * @see _.clone * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * * var deep = _.cloneDeep(objects); * console.log(deep[0] === objects[0]); * // => false */ function cloneDeep(value) { return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } module.exports = cloneDeep; /***/ }), /***/ "07c7": /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "07df": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _ITF2 = __webpack_require__("3c7c"); var _ITF3 = _interopRequireDefault(_ITF2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Calculate the checksum digit var checksum = function checksum(data) { var res = data.substr(0, 13).split('').map(function (num) { return parseInt(num, 10); }).reduce(function (sum, n, idx) { return sum + n * (3 - idx % 2 * 2); }, 0); return Math.ceil(res / 10) * 10 - res; }; var ITF14 = function (_ITF) { _inherits(ITF14, _ITF); function ITF14(data, options) { _classCallCheck(this, ITF14); // Add checksum if it does not exist if (data.search(/^[0-9]{13}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (ITF14.__proto__ || Object.getPrototypeOf(ITF14)).call(this, data, options)); } _createClass(ITF14, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === checksum(this.data); } }]); return ITF14; }(_ITF3.default); exports.default = ITF14; /***/ }), /***/ "087d": /***/ (function(module, exports) { /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } module.exports = arrayPush; /***/ }), /***/ "0a06": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var buildURL = __webpack_require__("30b5"); var InterceptorManager = __webpack_require__("f6b4"); var dispatchRequest = __webpack_require__("5270"); var mergeConfig = __webpack_require__("4a7b"); /** * Create a new instance of Axios * * @param {Object} instanceConfig The default config for the instance */ function Axios(instanceConfig) { this.defaults = instanceConfig; this.interceptors = { request: new InterceptorManager(), response: new InterceptorManager() }; } /** * Dispatch a request * * @param {Object} config The config specific for this request (merged with this.defaults) */ Axios.prototype.request = function request(config) { /*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API if (typeof config === 'string') { config = arguments[1] || {}; config.url = arguments[0]; } else { config = config || {}; } config = mergeConfig(this.defaults, config); // Set config.method if (config.method) { config.method = config.method.toLowerCase(); } else if (this.defaults.method) { config.method = this.defaults.method.toLowerCase(); } else { config.method = 'get'; } // Hook up interceptors middleware var chain = [dispatchRequest, undefined]; var promise = Promise.resolve(config); this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { chain.unshift(interceptor.fulfilled, interceptor.rejected); }); this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { chain.push(interceptor.fulfilled, interceptor.rejected); }); while (chain.length) { promise = promise.then(chain.shift(), chain.shift()); } return promise; }; Axios.prototype.getUri = function getUri(config) { config = mergeConfig(this.defaults, config); return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); }; // Provide aliases for supported request methods utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, config) { return this.request(mergeConfig(config || {}, { method: method, url: url })); }; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, data, config) { return this.request(mergeConfig(config || {}, { method: method, url: url, data: data })); }; }); module.exports = Axios; /***/ }), /***/ "0b07": /***/ (function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__("34ac"), getValue = __webpack_require__("3698"); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } module.exports = getNative; /***/ }), /***/ "0d24": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"), stubFalse = __webpack_require__("07c7"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "0df6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Syntactic sugar for invoking a function and expanding an array for arguments. * * Common use case would be to use `Function.prototype.apply`. * * ```js * function f(x, y, z) {} * var args = [1, 2, 3]; * f.apply(null, args); * ``` * * With `spread` this example can be re-written. * * ```js * spread(function(x, y, z) {})([1, 2, 3]); * ``` * * @param {Function} callback * @returns {Function} */ module.exports = function spread(callback) { return function wrap(arr) { return callback.apply(null, arr); }; }; /***/ }), /***/ "0f0f": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * The base implementation of `_.assignIn` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssignIn(object, source) { return object && copyObject(source, keysIn(source), object); } module.exports = baseAssignIn; /***/ }), /***/ "100e": /***/ (function(module, exports, __webpack_require__) { var identity = __webpack_require__("cd9d"), overRest = __webpack_require__("2286"), setToString = __webpack_require__("c1c9"); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { return setToString(overRest(func, start, identity), func + ''); } module.exports = baseRest; /***/ }), /***/ "1041": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbolsIn = __webpack_require__("a029"); /** * Copies own and inherited symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbolsIn(source, object) { return copyObject(source, getSymbolsIn(source), object); } module.exports = copySymbolsIn; /***/ }), /***/ "124f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // https://en.wikipedia.org/wiki/MSI_Barcode#Character_set_and_binary_lookup var MSI = function (_Barcode) { _inherits(MSI, _Barcode); function MSI(data, options) { _classCallCheck(this, MSI); return _possibleConstructorReturn(this, (MSI.__proto__ || Object.getPrototypeOf(MSI)).call(this, data, options)); } _createClass(MSI, [{ key: "encode", value: function encode() { // Start bits var ret = "110"; for (var i = 0; i < this.data.length; i++) { // Convert the character to binary (always 4 binary digits) var digit = parseInt(this.data[i]); var bin = digit.toString(2); bin = addZeroes(bin, 4 - bin.length); // Add 100 for every zero and 110 for every 1 for (var b = 0; b < bin.length; b++) { ret += bin[b] == "0" ? "100" : "110"; } } // End bits ret += "1001"; return { data: ret, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9]+$/) !== -1; } }]); return MSI; }(_Barcode3.default); function addZeroes(number, n) { for (var i = 0; i < n; i++) { number = "0" + number; } return number; } exports.default = MSI; /***/ }), /***/ "1290": /***/ (function(module, exports) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } module.exports = isKeyable; /***/ }), /***/ "1310": /***/ (function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }), /***/ "1368": /***/ (function(module, exports, __webpack_require__) { var coreJsData = __webpack_require__("da03"); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } module.exports = isMasked; /***/ }), /***/ "18d8": /***/ (function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__("234d"); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }), /***/ "1a2d": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var mapTag = '[object Map]'; /** * The base implementation of `_.isMap` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. */ function baseIsMap(value) { return isObjectLike(value) && getTag(value) == mapTag; } module.exports = baseIsMap; /***/ }), /***/ "1a8c": /***/ (function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }), /***/ "1ba5": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // http://www.barcodeisland.com/ean8.phtml // Calculate the checksum digit var checksum = function checksum(number) { var res = number.substr(0, 7).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a : sum + a * 3; }, 0); return (10 - res % 10) % 10; }; var EAN8 = function (_EAN) { _inherits(EAN8, _EAN); function EAN8(data, options) { _classCallCheck(this, EAN8); // Add checksum if it does not exist if (data.search(/^[0-9]{7}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (EAN8.__proto__ || Object.getPrototypeOf(EAN8)).call(this, data, options)); } _createClass(EAN8, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftText', this).call(this, 0, 4); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(0, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftEncode', this).call(this, data, 'LLLL'); } }, { key: 'rightText', value: function rightText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightText', this).call(this, 4, 4); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(4, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightEncode', this).call(this, data, 'RRRR'); } }]); return EAN8; }(_EAN3.default); exports.default = EAN8; /***/ }), /***/ "1bac": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbolsIn = __webpack_require__("a029"), keysIn = __webpack_require__("9934"); /** * Creates an array of own and inherited enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeysIn(object) { return baseGetAllKeys(object, keysIn, getSymbolsIn); } module.exports = getAllKeysIn; /***/ }), /***/ "1cec": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Promise = getNative(root, 'Promise'); module.exports = Promise; /***/ }), /***/ "1d2b": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function bind(fn, thisArg) { return function wrap() { var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { args[i] = arguments[i]; } return fn.apply(thisArg, args); }; }; /***/ }), /***/ "1efc": /***/ (function(module, exports) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; /***/ }), /***/ "1fc8": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet; /***/ }), /***/ "2286": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * A specialized version of `baseRest` which transforms the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @param {Function} transform The rest array transform. * @returns {Function} Returns the new function. */ function overRest(func, start, transform) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } module.exports = overRest; /***/ }), /***/ "234d": /***/ (function(module, exports, __webpack_require__) { var memoize = __webpack_require__("e380"); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } module.exports = memoizeCapped; /***/ }), /***/ "2411": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), createAssigner = __webpack_require__("2ec1"); /** * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} customizer The function to customize assigned values. * @returns {Object} Returns `object`. * @example * * function customizer(objValue, srcValue) { * if (_.isArray(objValue)) { * return objValue.concat(srcValue); * } * } * * var object = { 'a': [1], 'b': [2] }; * var other = { 'a': [3], 'b': [4] }; * * _.mergeWith(object, other, customizer); * // => { 'a': [1, 3], 'b': [2, 4] } */ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { baseMerge(object, source, srcIndex, customizer); }); module.exports = mergeWith; /***/ }), /***/ "241e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UPCE = exports.UPC = exports.EAN2 = exports.EAN5 = exports.EAN8 = exports.EAN13 = undefined; var _EAN = __webpack_require__("89a2"); var _EAN2 = _interopRequireDefault(_EAN); var _EAN3 = __webpack_require__("1ba5"); var _EAN4 = _interopRequireDefault(_EAN3); var _EAN5 = __webpack_require__("583f"); var _EAN6 = _interopRequireDefault(_EAN5); var _EAN7 = __webpack_require__("a5d2"); var _EAN8 = _interopRequireDefault(_EAN7); var _UPC = __webpack_require__("e8b2"); var _UPC2 = _interopRequireDefault(_UPC); var _UPCE = __webpack_require__("be98"); var _UPCE2 = _interopRequireDefault(_UPCE); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.EAN13 = _EAN2.default; exports.EAN8 = _EAN4.default; exports.EAN5 = _EAN6.default; exports.EAN2 = _EAN8.default; exports.UPC = _UPC2.default; exports.UPCE = _UPCE2.default; /***/ }), /***/ "2444": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__("c532"); var normalizeHeaderName = __webpack_require__("c8af"); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' }; function setContentTypeIfUnset(headers, value) { if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { headers['Content-Type'] = value; } } function getDefaultAdapter() { var adapter; if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter adapter = __webpack_require__("b50d"); } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { // For node use HTTP adapter adapter = __webpack_require__("b50d"); } return adapter; } var defaults = { adapter: getDefaultAdapter(), transformRequest: [function transformRequest(data, headers) { normalizeHeaderName(headers, 'Accept'); normalizeHeaderName(headers, 'Content-Type'); if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) ) { return data; } if (utils.isArrayBufferView(data)) { return data.buffer; } if (utils.isURLSearchParams(data)) { setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); return data.toString(); } if (utils.isObject(data)) { setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); return JSON.stringify(data); } return data; }], transformResponse: [function transformResponse(data) { /*eslint no-param-reassign:0*/ if (typeof data === 'string') { try { data = JSON.parse(data); } catch (e) { /* Ignore */ } } return data; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: function validateStatus(status) { return status >= 200 && status < 300; } }; defaults.headers = { common: { 'Accept': 'application/json, text/plain, */*' } }; utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); }); module.exports = defaults; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"))) /***/ }), /***/ "2474": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Uint8Array = root.Uint8Array; module.exports = Uint8Array; /***/ }), /***/ "2478": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } module.exports = mapCacheGet; /***/ }), /***/ "2524": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } module.exports = hashSet; /***/ }), /***/ "253c": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } module.exports = baseIsArguments; /***/ }), /***/ "28c9": /***/ (function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }), /***/ "29f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "2a4a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var START_BIN = exports.START_BIN = '1010'; var END_BIN = exports.END_BIN = '11101'; var BINARIES = exports.BINARIES = ['00110', '10001', '01001', '11000', '00101', '10100', '01100', '00011', '10010', '01010']; /***/ }), /***/ "2b3e": /***/ (function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__("585a"); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }), /***/ "2d7c": /***/ (function(module, exports) { /** * A specialized version of `_.filter` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. */ function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } module.exports = arrayFilter; /***/ }), /***/ "2d83": /***/ (function(module, exports, __webpack_require__) { "use strict"; var enhanceError = __webpack_require__("387f"); /** * Create an Error with the specified message, config, error code, request and response. * * @param {string} message The error message. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The created error. */ module.exports = function createError(message, config, code, request, response) { var error = new Error(message); return enhanceError(error, config, code, request, response); }; /***/ }), /***/ "2dcb": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /** Built-in value references. */ var getPrototype = overArg(Object.getPrototypeOf, Object); module.exports = getPrototype; /***/ }), /***/ "2e67": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function isCancel(value) { return !!(value && value.__CANCEL__); }; /***/ }), /***/ "2ec1": /***/ (function(module, exports, __webpack_require__) { var baseRest = __webpack_require__("100e"), isIterateeCall = __webpack_require__("9aff"); /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } module.exports = createAssigner; /***/ }), /***/ "2fcc": /***/ (function(module, exports) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } module.exports = stackDelete; /***/ }), /***/ "30b5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); function encode(val) { return encodeURIComponent(val). 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 */ module.exports = function buildURL(url, params, paramsSerializer) { /*eslint no-param-reassign:0*/ if (!params) { return url; } var serializedParams; if (paramsSerializer) { serializedParams = paramsSerializer(params); } else if (utils.isURLSearchParams(params)) { serializedParams = params.toString(); } else { var parts = []; utils.forEach(params, function serialize(val, key) { if (val === null || typeof val === 'undefined') { return; } if (utils.isArray(val)) { key = key + '[]'; } else { val = [val]; } utils.forEach(val, function parseValue(v) { if (utils.isDate(v)) { v = v.toISOString(); } else if (utils.isObject(v)) { v = JSON.stringify(v); } parts.push(encode(key) + '=' + 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; }; /***/ }), /***/ "30c9": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isLength = __webpack_require__("b218"); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /***/ "32b3": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignValue; /***/ }), /***/ "32f4": /***/ (function(module, exports, __webpack_require__) { var arrayFilter = __webpack_require__("2d7c"), stubArray = __webpack_require__("d327"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbols = !nativeGetSymbols ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; module.exports = getSymbols; /***/ }), /***/ "349c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE39 = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Code_39#Encoding var CODE39 = function (_Barcode) { _inherits(CODE39, _Barcode); function CODE39(data, options) { _classCallCheck(this, CODE39); data = data.toUpperCase(); // Calculate mod43 checksum if enabled if (options.mod43) { data += getCharacter(mod43checksum(data)); } return _possibleConstructorReturn(this, (CODE39.__proto__ || Object.getPrototypeOf(CODE39)).call(this, data, options)); } _createClass(CODE39, [{ key: "encode", value: function encode() { // First character is always a * var result = getEncoding("*"); // Take every character and add the binary representation to the result for (var i = 0; i < this.data.length; i++) { result += getEncoding(this.data[i]) + "0"; } // Last character is always a * result += getEncoding("*"); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1; } }]); return CODE39; }(_Barcode3.default); // All characters. The position in the array is the (checksum) value var characters = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", "*"]; // The decimal representation of the characters, is converted to the // corresponding binary with the getEncoding function var encodings = [20957, 29783, 23639, 30485, 20951, 29813, 23669, 20855, 29789, 23645, 29975, 23831, 30533, 22295, 30149, 24005, 21623, 29981, 23837, 22301, 30023, 23879, 30545, 22343, 30161, 24017, 21959, 30065, 23921, 22385, 29015, 18263, 29141, 17879, 29045, 18293, 17783, 29021, 18269, 17477, 17489, 17681, 20753, 35770]; // Get the binary representation of a character by converting the encodings // from decimal to binary function getEncoding(character) { return getBinary(characterValue(character)); } function getBinary(characterValue) { return encodings[characterValue].toString(2); } function getCharacter(characterValue) { return characters[characterValue]; } function characterValue(character) { return characters.indexOf(character); } function mod43checksum(data) { var checksum = 0; for (var i = 0; i < data.length; i++) { checksum += characterValue(data[i]); } checksum = checksum % 43; return checksum; } exports.CODE39 = CODE39; /***/ }), /***/ "34ac": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isMasked = __webpack_require__("1368"), isObject = __webpack_require__("1a8c"), toSource = __webpack_require__("dc57"); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } module.exports = baseIsNative; /***/ }), /***/ "3698": /***/ (function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }), /***/ "3729": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), getRawTag = __webpack_require__("00fd"), objectToString = __webpack_require__("29f3"); /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (symToStringTag && symToStringTag in Object(value)) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag; /***/ }), /***/ "3818": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), arrayEach = __webpack_require__("8057"), assignValue = __webpack_require__("32b3"), baseAssign = __webpack_require__("5b01"), baseAssignIn = __webpack_require__("0f0f"), cloneBuffer = __webpack_require__("e538"), copyArray = __webpack_require__("4359"), copySymbols = __webpack_require__("54eb"), copySymbolsIn = __webpack_require__("1041"), getAllKeys = __webpack_require__("a994"), getAllKeysIn = __webpack_require__("1bac"), getTag = __webpack_require__("42a2"), initCloneArray = __webpack_require__("c87c"), initCloneByTag = __webpack_require__("c2b6"), initCloneObject = __webpack_require__("fa21"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isMap = __webpack_require__("cc45"), isObject = __webpack_require__("1a8c"), isSet = __webpack_require__("d7ee"), keys = __webpack_require__("ec69"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values supported by `_.clone`. */ var cloneableTags = {}; cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; /** * The base implementation of `_.clone` and `_.cloneDeep` which tracks * traversed objects. * * @private * @param {*} value The value to clone. * @param {boolean} bitmask The bitmask flags. * 1 - Deep clone * 2 - Flatten inherited properties * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== undefined) { return result; } if (!isObject(value)) { return value; } var isArr = isArray(value); if (isArr) { result = initCloneArray(value); if (!isDeep) { return copyArray(value, result); } } else { var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; if (isBuffer(value)) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag(value, tag, isDeep); } } // Check for circular references and return its corresponding clone. stack || (stack = new Stack); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); if (isSet(value)) { value.forEach(function(subValue) { result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); }); return result; } if (isMap(value)) { value.forEach(function(subValue, key) { result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } var keysFunc = isFull ? (isFlat ? getAllKeysIn : getAllKeys) : (isFlat ? keysIn : keys); var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } module.exports = baseClone; /***/ }), /***/ "3852": /***/ (function(module, exports, __webpack_require__) { var baseHas = __webpack_require__("96f3"), hasPath = __webpack_require__("e2c0"); /** * Checks if `path` is a direct property of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = { 'a': { 'b': 2 } }; * var other = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.has(object, 'a'); * // => true * * _.has(object, 'a.b'); * // => true * * _.has(object, ['a', 'b']); * // => true * * _.has(other, 'a'); * // => false */ function has(object, path) { return object != null && hasPath(object, path, baseHas); } module.exports = has; /***/ }), /***/ "387f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Update an Error with the specified config, error code, and response. * * @param {Error} error The error to update. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The error. */ module.exports = function enhanceError(error, config, code, request, response) { error.config = config; if (code) { error.code = code; } error.request = request; error.response = response; error.isAxiosError = true; error.toJSON = function toJSON() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: this.config, code: this.code }; }; return error; }; /***/ }), /***/ "3934": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. (function standardBrowserEnv() { var msie = /(msie|trident)/i.test(navigator.userAgent); var urlParsingNode = document.createElement('a'); var originURL; /** * Parse a URL to discover it's components * * @param {String} url The URL to be parsed * @returns {Object} */ function resolveURL(url) { var href = url; if (msie) { // IE needs attribute set twice to normalize properties urlParsingNode.setAttribute('href', href); href = urlParsingNode.href; } urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils return { href: urlParsingNode.href, protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', host: urlParsingNode.host, search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', hostname: urlParsingNode.hostname, port: urlParsingNode.port, pathname: (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname }; } originURL = resolveURL(window.location.href); /** * Determine if a URL shares the same origin as the current location * * @param {String} requestURL The URL to test * @returns {boolean} True if URL shares the same origin, otherwise false */ return function isURLSameOrigin(requestURL) { var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; return (parsed.protocol === originURL.protocol && parsed.host === originURL.host); }; })() : // Non standard browser envs (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return function isURLSameOrigin() { return true; }; })() ); /***/ }), /***/ "39ff": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var WeakMap = getNative(root, 'WeakMap'); module.exports = WeakMap; /***/ }), /***/ "3b4a": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); module.exports = defineProperty; /***/ }), /***/ "3c35": /***/ (function(module, exports) { /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */ module.exports = __webpack_amd_options__; /* WEBPACK VAR INJECTION */}.call(this, {})) /***/ }), /***/ "3c7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("2a4a"); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ITF = function (_Barcode) { _inherits(ITF, _Barcode); function ITF() { _classCallCheck(this, ITF); return _possibleConstructorReturn(this, (ITF.__proto__ || Object.getPrototypeOf(ITF)).apply(this, arguments)); } _createClass(ITF, [{ key: 'valid', value: function valid() { return this.data.search(/^([0-9]{2})+$/) !== -1; } }, { key: 'encode', value: function encode() { var _this2 = this; // Calculate all the digit pairs var encoded = this.data.match(/.{2}/g).map(function (pair) { return _this2.encodePair(pair); }).join(''); return { data: _constants.START_BIN + encoded + _constants.END_BIN, text: this.text }; } // Calculate the data of a number pair }, { key: 'encodePair', value: function encodePair(pair) { var second = _constants.BINARIES[pair[1]]; return _constants.BINARIES[pair[0]].split('').map(function (first, idx) { return (first === '1' ? '111' : '1') + (second[idx] === '1' ? '000' : '0'); }).join(''); } }]); return ITF; }(_Barcode3.default); exports.default = ITF; /***/ }), /***/ "3f84": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"), baseRest = __webpack_require__("100e"), customDefaultsMerge = __webpack_require__("e031"), mergeWith = __webpack_require__("2411"); /** * This method is like `_.defaults` except that it recursively assigns * default properties. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 3.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.defaults * @example * * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); * // => { 'a': { 'b': 2, 'c': 3 } } */ var defaultsDeep = baseRest(function(args) { args.push(undefined, customDefaultsMerge); return apply(mergeWith, undefined, args); }); module.exports = defaultsDeep; /***/ }), /***/ "41c3": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"), isPrototype = __webpack_require__("eac5"), nativeKeysIn = __webpack_require__("ec8c"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } module.exports = baseKeysIn; /***/ }), /***/ "4245": /***/ (function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__("1290"); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } module.exports = getMapData; /***/ }), /***/ "42a2": /***/ (function(module, exports, __webpack_require__) { var DataView = __webpack_require__("b5a7"), Map = __webpack_require__("79bc"), Promise = __webpack_require__("1cec"), Set = __webpack_require__("c869"), WeakMap = __webpack_require__("39ff"), baseGetTag = __webpack_require__("3729"), toSource = __webpack_require__("dc57"); /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', promiseTag = '[object Promise]', setTag = '[object Set]', weakMapTag = '[object WeakMap]'; var dataViewTag = '[object DataView]'; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap); /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } module.exports = getTag; /***/ }), /***/ "4359": /***/ (function(module, exports) { /** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } module.exports = copyArray; /***/ }), /***/ "4362": /***/ (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__("df7c"); cwd = path.resolve(dir, cwd); }; })(); exports.exit = exports.kill = exports.umask = exports.dlopen = exports.uptime = exports.memoryUsage = exports.uvCounters = function() {}; exports.features = {}; /***/ }), /***/ "4461": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI11 = function (_MSI) { _inherits(MSI11, _MSI); function MSI11(data, options) { _classCallCheck(this, MSI11); return _possibleConstructorReturn(this, (MSI11.__proto__ || Object.getPrototypeOf(MSI11)).call(this, data + (0, _checksums.mod11)(data), options)); } return MSI11; }(_MSI3.default); exports.default = MSI11; /***/ }), /***/ "467f": /***/ (function(module, exports, __webpack_require__) { "use strict"; var createError = __webpack_require__("2d83"); /** * 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. */ module.exports = function settle(resolve, reject, response) { var validateStatus = response.config.validateStatus; if (!response.status || !validateStatus || validateStatus(response.status)) { resolve(response); } else { reject(createError( 'Request failed with status code ' + response.status, response.config, null, response.request, response )); } }; /***/ }), /***/ "4727": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI10 = function (_MSI) { _inherits(MSI10, _MSI); function MSI10(data, options) { _classCallCheck(this, MSI10); return _possibleConstructorReturn(this, (MSI10.__proto__ || Object.getPrototypeOf(MSI10)).call(this, data + (0, _checksums.mod10)(data), options)); } return MSI10; }(_MSI3.default); exports.default = MSI10; /***/ }), /***/ "49f4": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } module.exports = hashClear; /***/ }), /***/ "4a37": /***/ (function(module, exports, __webpack_require__) { !function(t,e){ true?module.exports=e():undefined}(this,function(){return function(t){function e(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(3)},function(t,e){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(void 0!==o&&null!==o){o=Object(o);for(var n=Object.keys(Object(o)),i=0,a=n.length;i<a;i++){var s=n[i],u=Object.getOwnPropertyDescriptor(o,s);void 0!==u&&u.enumerable&&(e[s]=o[s])}}}return e}})}()},function(t,e){"use strict";t.exports=function(){var t={};return t.utf16to8=function(t){var e,r,o,n;for(e="",o=t.length,r=0;r<o;r++)n=t.charCodeAt(r),n>=1&&n<=127?e+=t.charAt(r):n>2047?(e+=String.fromCharCode(224|n>>12&15),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|n>>0&63)):(e+=String.fromCharCode(192|n>>6&31),e+=String.fromCharCode(128|n>>0&63));return e},t.utf8to16=function(t){var e,r,o,n,i,a;for(e="",o=t.length,r=0;r<o;)switch(n=t.charCodeAt(r++),n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=t.charAt(r-1);break;case 12:case 13:i=t.charCodeAt(r++),e+=String.fromCharCode((31&n)<<6|63&i);break;case 14:i=t.charCodeAt(r++),a=t.charCodeAt(r++),e+=String.fromCharCode((15&n)<<12|(63&i)<<6|(63&a)<<0)}return e},t}()},function(t,e,r){"use strict";r(1),r(4);var o=r(2),n=function(){function t(t){var e=new QRCode(t.typeNumber,t.correctLevel);e.addData(t.text),e.make();var r=document.createElement("canvas");r.width=t.width,r.height=t.height;var o=r.getContext("2d"),n=(t.width-2*t.padding)/e.getModuleCount(),i=(t.height-2*t.padding)/e.getModuleCount();if(t.reverse){var a="rgba(0, 0, 0, 0)";o.fillStyle=a,t.foreground=a}else o.fillStyle=t.background;o.fillRect(0,0,r.width,r.height);for(var s=0;s<e.getModuleCount();s++)for(var u=0;u<e.getModuleCount();u++){o.fillStyle=e.isDark(s,u)?t.foreground:t.background;var h=Math.ceil((u+1)*n)-Math.floor(u*n),f=Math.ceil((s+1)*n)-Math.floor(s*n);o.fillRect(Math.round(u*n)+t.padding,Math.round(s*i)+t.padding,h,f)}return r}var e={};return e.getQrBase64=function(e,r){"string"!=typeof e&&(e=""),"string"==typeof r?r={text:r}:"object"!=typeof r&&(r={}),r=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},r);try{r.text=o.utf16to8(e)}catch(t){r.text=""+t}var n=t(r);return n.toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=n),t.exports=n},function(t,e){function r(t){this.mode=s.MODE_8BIT_BYTE,this.data=t}function o(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var o=0;o<t.length-r;o++)this.num[o]=t[o+r]}function i(t,e){this.totalCount=t,this.dataCount=e}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},o.prototype={addData:function(t){var e=new r(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),r=new a,o=0,n=0;n<e.length;n++)o+=e[n].dataCount;for(var n=0;n<this.dataList.length;n++){var s=this.dataList[n];r.put(s.mode,4),r.put(s.getLength(),f.getLengthInBits(s.mode,t)),s.write(r)}if(r.getLengthInBits()<=8*o)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4?this.modules[t+r][e+o]=!0:this.modules[t+r][e+o]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=f.getLostPoint(this);(0==r||t>o)&&(t=o,e=r)}return e},createMovieClip:function(t,e,r){var o=t.createEmptyMovieClip(e,r),n=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*n,s=0;s<this.modules[i].length;s++){var u=s*n,h=this.modules[i][s];h&&(o.beginFill(0,100),o.moveTo(u,a),o.lineTo(u+n,a),o.lineTo(u+n,a+n),o.lineTo(u,a+n),o.endFill())}return o},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%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(){for(var t=f.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var o=t[e],n=t[r];if(null==this.modules[o][n])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||2==i||a==-2||2==a||0==i&&0==a?this.modules[o+i][n+a]=!0:this.modules[o+i][n+a]=!1}},setupTypeNumber:function(t){for(var e=f.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(var r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,o=f.getBCHTypeInfo(r),n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(var n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,o=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[o][a-s]){var u=!1;i<t.length&&(u=1==(t[i]>>>n&1));var h=f.getMask(e,o,a-s);h&&(u=!u),this.modules[o][a-s]=u,n--,n==-1&&(i++,n=7)}if(o+=r,o<0||this.moduleCount<=o){o-=r,r=-r;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(t,e,r){for(var n=i.getRSBlocks(t,e),s=new a,u=0;u<r.length;u++){var h=r[u];s.put(h.mode,4),s.put(h.getLength(),f.getLengthInBits(h.mode,t)),h.write(s)}for(var l=0,u=0;u<n.length;u++)l+=n[u].dataCount;if(s.getLengthInBits()>8*l)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*l+")");for(s.getLengthInBits()+4<=8*l&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*l)break;if(s.put(o.PAD0,8),s.getLengthInBits()>=8*l)break;s.put(o.PAD1,8)}return o.createBytes(s,n)},o.createBytes=function(t,e){for(var r=0,o=0,i=0,a=new Array(e.length),s=new Array(e.length),u=0;u<e.length;u++){var h=e[u].dataCount,l=e[u].totalCount-h;o=Math.max(o,h),i=Math.max(i,l),a[u]=new Array(h);for(var g=0;g<a[u].length;g++)a[u][g]=255&t.buffer[g+r];r+=h;var c=f.getErrorCorrectPolynomial(l),d=new n(a[u],c.getLength()-1),v=d.mod(c);s[u]=new Array(c.getLength()-1);for(var g=0;g<s[u].length;g++){var m=g+v.getLength()-s[u].length;s[u][g]=m>=0?v.get(m):0}}for(var p=0,g=0;g<e.length;g++)p+=e[g].totalCount;for(var C=new Array(p),E=0,g=0;g<o;g++)for(var u=0;u<e.length;u++)g<a[u].length&&(C[E++]=a[u][g]);for(var g=0;g<i;g++)for(var u=0;u<e.length;u++)g<s[u].length&&(C[E++]=s[u][g]);return C};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},h={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={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(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<<f.getBCHDigit(e)-f.getBCHDigit(f.G15);return(t<<10|e)^f.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;f.getBCHDigit(e)-f.getBCHDigit(f.G18)>=0;)e^=f.G18<<f.getBCHDigit(e)-f.getBCHDigit(f.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case h.PATTERN000:return(e+r)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return r%3==0;case h.PATTERN011:return(e+r)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case h.PATTERN101:return e*r%2+e*r%3==0;case h.PATTERN110:return(e*r%2+e*r%3)%2==0;case h.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),r=0;r<t;r++)e=e.multiply(new n([1,l.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:return 8;case s.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,o=0;o<e;o++)for(var n=0;n<e;n++){for(var i=0,a=t.isDark(o,n),s=-1;s<=1;s++)if(!(o+s<0||e<=o+s))for(var u=-1;u<=1;u++)n+u<0||e<=n+u||0==s&&0==u||a==t.isDark(o+s,n+u)&&i++;i>5&&(r+=3+i-5)}for(var o=0;o<e-1;o++)for(var n=0;n<e-1;n++){var h=0;t.isDark(o,n)&&h++,t.isDark(o+1,n)&&h++,t.isDark(o,n+1)&&h++,t.isDark(o+1,n+1)&&h++,0!=h&&4!=h||(r+=3)}for(var o=0;o<e;o++)for(var n=0;n<e-6;n++)t.isDark(o,n)&&!t.isDark(o,n+1)&&t.isDark(o,n+2)&&t.isDark(o,n+3)&&t.isDark(o,n+4)&&!t.isDark(o,n+5)&&t.isDark(o,n+6)&&(r+=40);for(var n=0;n<e;n++)for(var o=0;o<e-6;o++)t.isDark(o,n)&&!t.isDark(o+1,n)&&t.isDark(o+2,n)&&t.isDark(o+3,n)&&t.isDark(o+4,n)&&!t.isDark(o+5,n)&&t.isDark(o+6,n)&&(r+=40);for(var f=0,n=0;n<e;n++)for(var o=0;o<e;o++)t.isDark(o,n)&&f++;var l=Math.abs(100*f/e/e-50)/5;return r+=10*l}},l={glog:function(t){if(t<1)throw new Error("glog("+t+")");return l.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return l.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)l.EXP_TABLE[g]=1<<g;for(var g=8;g<256;g++)l.EXP_TABLE[g]=l.EXP_TABLE[g-4]^l.EXP_TABLE[g-5]^l.EXP_TABLE[g-6]^l.EXP_TABLE[g-8];for(var g=0;g<255;g++)l.LOG_TABLE[l.EXP_TABLE[g]]=g;n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<t.getLength();o++)e[r+o]^=l.gexp(l.glog(this.get(r))+l.glog(t.get(o)));return new n(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=l.glog(this.get(0))-l.glog(t.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(var o=0;o<t.getLength();o++)r[o]^=l.gexp(l.glog(t.get(o))+e);return new n(r,0).mod(t)}},i.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]],i.getRSBlocks=function(t,e){var r=i.getRsBlockTable(t,e);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var o=r.length/3,n=new Array,a=0;a<o;a++)for(var s=r[3*a+0],u=r[3*a+1],h=r[3*a+2],f=0;f<s;f++)n.push(new i(u,h));return n},i.getRsBlockTable=function(t,e){switch(e){case u.L:return i.RS_BLOCK_TABLE[4*(t-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(t-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(t-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},a.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=u;try{t.exports={QRCode:o,QRErrorCorrectLevel:u}}catch(t){}}])}); /***/ }), /***/ "4a7b": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Config-specific merge-function which creates a new config-object * by merging two configuration objects together. * * @param {Object} config1 * @param {Object} config2 * @returns {Object} New object resulting from merging config2 to config1 */ module.exports = function mergeConfig(config1, config2) { // eslint-disable-next-line no-param-reassign config2 = config2 || {}; var config = {}; var valueFromConfig2Keys = ['url', 'method', 'data']; var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; var defaultToConfig2Keys = [ 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' ]; var directMergeKeys = ['validateStatus']; function getMergedValue(target, source) { if (utils.isPlainObject(target) && utils.isPlainObject(source)) { return utils.merge(target, source); } else if (utils.isPlainObject(source)) { return utils.merge({}, source); } else if (utils.isArray(source)) { return source.slice(); } return source; } function mergeDeepProperties(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } } utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } }); utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } }); utils.forEach(directMergeKeys, function merge(prop) { if (prop in config2) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (prop in config1) { config[prop] = getMergedValue(undefined, config1[prop]); } }); var axiosKeys = valueFromConfig2Keys .concat(mergeDeepPropertiesKeys) .concat(defaultToConfig2Keys) .concat(directMergeKeys); var otherKeys = Object .keys(config1) .concat(Object.keys(config2)) .filter(function filterAxiosKeys(key) { return axiosKeys.indexOf(key) === -1; }); utils.forEach(otherKeys, mergeDeepProperties); return config; }; /***/ }), /***/ "4b23": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // This is the master class, // it does require the start code to be included in the string var CODE128 = function (_Barcode) { _inherits(CODE128, _Barcode); function CODE128(data, options) { _classCallCheck(this, CODE128); // Get array of ascii codes from data var _this = _possibleConstructorReturn(this, (CODE128.__proto__ || Object.getPrototypeOf(CODE128)).call(this, data.substring(1), options)); _this.bytes = data.split('').map(function (char) { return char.charCodeAt(0); }); return _this; } _createClass(CODE128, [{ key: 'valid', value: function valid() { // ASCII value ranges 0-127, 200-211 return (/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data) ); } // The public encoding function }, { key: 'encode', value: function encode() { var bytes = this.bytes; // Remove the start code from the bytes and set its index var startIndex = bytes.shift() - 105; // Get start set by index var startSet = _constants.SET_BY_CODE[startIndex]; if (startSet === undefined) { throw new RangeError('The encoding does not start with a start character.'); } if (this.shouldEncodeAsEan128() === true) { bytes.unshift(_constants.FNC1); } // Start encode with the right type var encodingResult = CODE128.next(bytes, 1, startSet); return { text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, '') : this.text, data: // Add the start bits CODE128.getBar(startIndex) + // Add the encoded bits encodingResult.result + // Add the checksum CODE128.getBar((encodingResult.checksum + startIndex) % _constants.MODULO) + // Add the end bits CODE128.getBar(_constants.STOP) }; } // GS1-128/EAN-128 }, { key: 'shouldEncodeAsEan128', value: function shouldEncodeAsEan128() { var isEAN128 = this.options.ean128 || false; if (typeof isEAN128 === 'string') { isEAN128 = isEAN128.toLowerCase() === 'true'; } return isEAN128; } // Get a bar symbol by index }], [{ key: 'getBar', value: function getBar(index) { return _constants.BARS[index] ? _constants.BARS[index].toString() : ''; } // Correct an index by a set and shift it from the bytes array }, { key: 'correctIndex', value: function correctIndex(bytes, set) { if (set === _constants.SET_A) { var charCode = bytes.shift(); return charCode < 32 ? charCode + 64 : charCode - 32; } else if (set === _constants.SET_B) { return bytes.shift() - 32; } else { return (bytes.shift() - 48) * 10 + bytes.shift() - 48; } } }, { key: 'next', value: function next(bytes, pos, set) { if (!bytes.length) { return { result: '', checksum: 0 }; } var nextCode = void 0, index = void 0; // Special characters if (bytes[0] >= 200) { index = bytes.shift() - 105; var nextSet = _constants.SWAP[index]; // Swap to other set if (nextSet !== undefined) { nextCode = CODE128.next(bytes, pos + 1, nextSet); } // Continue on current set but encode a special character else { // Shift if ((set === _constants.SET_A || set === _constants.SET_B) && index === _constants.SHIFT) { // Convert the next character so that is encoded correctly bytes[0] = set === _constants.SET_A ? bytes[0] > 95 ? bytes[0] - 96 : bytes[0] : bytes[0] < 32 ? bytes[0] + 96 : bytes[0]; } nextCode = CODE128.next(bytes, pos + 1, set); } } // Continue encoding else { index = CODE128.correctIndex(bytes, set); nextCode = CODE128.next(bytes, pos + 1, set); } // Get the correct binary encoding and calculate the weight var enc = CODE128.getBar(index); var weight = index * pos; return { result: enc + nextCode.result, checksum: weight + nextCode.checksum }; } }]); return CODE128; }(_Barcode3.default); exports.default = CODE128; /***/ }), /***/ "4ced": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var ObjectRenderer = function () { function ObjectRenderer(object, encodings, options) { _classCallCheck(this, ObjectRenderer); this.object = object; this.encodings = encodings; this.options = options; } _createClass(ObjectRenderer, [{ key: "render", value: function render() { this.object.encodings = this.encodings; } }]); return ObjectRenderer; }(); exports.default = ObjectRenderer; /***/ }), /***/ "4f50": /***/ (function(module, exports, __webpack_require__) { var assignMergeValue = __webpack_require__("b760"), cloneBuffer = __webpack_require__("e538"), cloneTypedArray = __webpack_require__("c8fe"), copyArray = __webpack_require__("4359"), initCloneObject = __webpack_require__("fa21"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isArrayLikeObject = __webpack_require__("dcbe"), isBuffer = __webpack_require__("0d24"), isFunction = __webpack_require__("9520"), isObject = __webpack_require__("1a8c"), isPlainObject = __webpack_require__("60ed"), isTypedArray = __webpack_require__("73ac"), safeGet = __webpack_require__("8adb"), toPlainObject = __webpack_require__("8de2"); /** * A specialized version of `baseMerge` for arrays and objects which performs * deep merges and tracks traversed objects enabling objects with circular * references to be merged. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {string} key The key of the value to merge. * @param {number} srcIndex The index of `source`. * @param {Function} mergeFunc The function to merge values. * @param {Function} [customizer] The function to customize assigned values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); if (stacked) { assignMergeValue(object, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined; var isCommon = newValue === undefined; if (isCommon) { var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue); } else if (isBuff) { isCommon = false; newValue = cloneBuffer(srcValue, true); } else if (isTyped) { isCommon = false; newValue = cloneTypedArray(srcValue, true); } else { newValue = []; } } else if (isPlainObject(srcValue) || isArguments(srcValue)) { newValue = objValue; if (isArguments(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject(objValue) || isFunction(objValue)) { newValue = initCloneObject(srcValue); } } else { isCommon = false; } } if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack['delete'](srcValue); } assignMergeValue(object, key, newValue); } module.exports = baseMergeDeep; /***/ }), /***/ "50d8": /***/ (function(module, exports) { /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } module.exports = baseTimes; /***/ }), /***/ "5261": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = optionsFromStrings; // Convert string to integers/booleans where it should be function optionsFromStrings(options) { var intOptions = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"]; for (var intOption in intOptions) { if (intOptions.hasOwnProperty(intOption)) { intOption = intOptions[intOption]; if (typeof options[intOption] === "string") { options[intOption] = parseInt(options[intOption], 10); } } } if (typeof options["displayValue"] === "string") { options["displayValue"] = options["displayValue"] != "false"; } return options; } /***/ }), /***/ "5270": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var transformData = __webpack_require__("c401"); var isCancel = __webpack_require__("2e67"); var defaults = __webpack_require__("2444"); /** * Throws a `Cancel` if cancellation has been requested. */ function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } } /** * Dispatch a request to the server using the configured adapter. * * @param {object} config The config that is to be used for the request * @returns {Promise} The Promise to be fulfilled */ module.exports = function dispatchRequest(config) { throwIfCancellationRequested(config); // Ensure headers exist config.headers = config.headers || {}; // Transform request data config.data = transformData( config.data, config.headers, config.transformRequest ); // Flatten headers config.headers = utils.merge( config.headers.common || {}, config.headers[config.method] || {}, config.headers ); utils.forEach( ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) { delete config.headers[method]; } ); var adapter = config.adapter || defaults.adapter; return adapter(config).then(function onAdapterResolution(response) { throwIfCancellationRequested(config); // Transform response data response.data = transformData( response.data, response.headers, config.transformResponse ); return response; }, function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config); // Transform response data if (reason && reason.response) { reason.response.data = transformData( reason.response.data, reason.response.headers, config.transformResponse ); } } return Promise.reject(reason); }); }; /***/ }), /***/ "54eb": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbols = __webpack_require__("32f4"); /** * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbols(source, object) { return copyObject(source, getSymbols(source), object); } module.exports = copySymbols; /***/ }), /***/ "55a3": /***/ (function(module, exports) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; /***/ }), /***/ "5726": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("c243"); // Encode data string var encode = function encode(data, structure, separator) { var encoded = data.split('').map(function (val, idx) { return _constants.BINARIES[structure[idx]]; }).map(function (val, idx) { return val ? val[data[idx]] : ''; }); if (separator) { var last = data.length - 1; encoded = encoded.map(function (val, idx) { return idx < last ? val + separator : val; }); } return encoded.join(''); }; exports.default = encode; /***/ }), /***/ "57a5": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "583f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_5#Encoding var checksum = function checksum(data) { var result = data.split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 9 : sum + a * 3; }, 0); return result % 10; }; var EAN5 = function (_Barcode) { _inherits(EAN5, _Barcode); function EAN5(data, options) { _classCallCheck(this, EAN5); return _possibleConstructorReturn(this, (EAN5.__proto__ || Object.getPrototypeOf(EAN5)).call(this, data, options)); } _createClass(EAN5, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{5}$/) !== -1; } }, { key: 'encode', value: function encode() { var structure = _constants.EAN5_STRUCTURE[checksum(this.data)]; return { data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN5; }(_Barcode3.default); exports.default = EAN5; /***/ }), /***/ "585a": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; module.exports = freeGlobal; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) /***/ }), /***/ "5b01": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keys = __webpack_require__("ec69"); /** * The base implementation of `_.assign` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign(object, source) { return object && copyObject(source, keys(source), object); } module.exports = baseAssign; /***/ }), /***/ "5d89": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `dataView`. * * @private * @param {Object} dataView The data view to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned data view. */ function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } module.exports = cloneDataView; /***/ }), /***/ "5e2e": /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__("28c9"), listCacheDelete = __webpack_require__("69d5"), listCacheGet = __webpack_require__("b4c0"), listCacheHas = __webpack_require__("fba5"), listCacheSet = __webpack_require__("67ca"); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ "5f72": /***/ (function(module, exports) { module.exports = require("ELEMENT"); /***/ }), /***/ "6044": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); module.exports = nativeCreate; /***/ }), /***/ "60ed": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), getPrototype = __webpack_require__("2dcb"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var objectTag = '[object Object]'; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object); /** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { * this.a = 1; * } * * _.isPlainObject(new Foo); * // => false * * _.isPlainObject([1, 2, 3]); * // => false * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true * * _.isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } module.exports = isPlainObject; /***/ }), /***/ "6220": /***/ (function(module, exports, __webpack_require__) { var baseIsDate = __webpack_require__("b1d2"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsDate = nodeUtil && nodeUtil.isDate; /** * Checks if `value` is classified as a `Date` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); * // => true * * _.isDate('Mon April 23 2012'); * // => false */ var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; module.exports = isDate; /***/ }), /***/ "62c5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var _barcodes = __webpack_require__("ff84"); var _barcodes2 = _interopRequireDefault(_barcodes); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _linearizeEncodings = __webpack_require__("a2b0"); var _linearizeEncodings2 = _interopRequireDefault(_linearizeEncodings); var _fixOptions = __webpack_require__("79f1"); var _fixOptions2 = _interopRequireDefault(_fixOptions); var _getRenderProperties = __webpack_require__("b1d8"); var _getRenderProperties2 = _interopRequireDefault(_getRenderProperties); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _ErrorHandler = __webpack_require__("bd8a"); var _ErrorHandler2 = _interopRequireDefault(_ErrorHandler); var _exceptions = __webpack_require__("dca2"); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // The protype of the object returned from the JsBarcode() call // Help functions var API = function API() {}; // The first call of the library API // Will return an object with all barcodes calls and the data that is used // by the renderers // Default values // Exceptions // Import all the barcodes var JsBarcode = function JsBarcode(element, text, options) { var api = new API(); if (typeof element === "undefined") { throw Error("No element to render on was provided."); } // Variables that will be pased through the API calls api._renderProperties = (0, _getRenderProperties2.default)(element); api._encodings = []; api._options = _defaults2.default; api._errorHandler = new _ErrorHandler2.default(api); // If text is set, use the simple syntax (render the barcode directly) if (typeof text !== "undefined") { options = options || {}; if (!options.format) { options.format = autoSelectBarcode(); } api.options(options)[options.format](text, options).render(); } return api; }; // To make tests work TODO: remove JsBarcode.getModule = function (name) { return _barcodes2.default[name]; }; // Register all barcodes for (var name in _barcodes2.default) { if (_barcodes2.default.hasOwnProperty(name)) { // Security check if the propery is a prototype property registerBarcode(_barcodes2.default, name); } } function registerBarcode(barcodes, name) { API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) { var api = this; return api._errorHandler.wrapBarcodeCall(function () { // Ensure text is options.text options.text = typeof options.text === 'undefined' ? undefined : '' + options.text; var newOptions = (0, _merge2.default)(api._options, options); newOptions = (0, _optionsFromStrings2.default)(newOptions); var Encoder = barcodes[name]; var encoded = encode(text, Encoder, newOptions); api._encodings.push(encoded); return api; }); }; } // encode() handles the Encoder call and builds the binary string to be rendered function encode(text, Encoder, options) { // Ensure that text is a string text = "" + text; var encoder = new Encoder(text, options); // If the input is not valid for the encoder, throw error. // If the valid callback option is set, call it instead of throwing error if (!encoder.valid()) { throw new _exceptions.InvalidInputException(encoder.constructor.name, text); } // Make a request for the binary data (and other infromation) that should be rendered var encoded = encoder.encode(); // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] encoded = (0, _linearizeEncodings2.default)(encoded); // Merge for (var i = 0; i < encoded.length; i++) { encoded[i].options = (0, _merge2.default)(options, encoded[i].options); } return encoded; } function autoSelectBarcode() { // If CODE128 exists. Use it if (_barcodes2.default["CODE128"]) { return "CODE128"; } // Else, take the first (probably only) barcode return Object.keys(_barcodes2.default)[0]; } // Sets global encoder options // Added to the api by the JsBarcode function API.prototype.options = function (options) { this._options = (0, _merge2.default)(this._options, options); return this; }; // Will create a blank space (usually in between barcodes) API.prototype.blank = function (size) { var zeroes = new Array(size + 1).join("0"); this._encodings.push({ data: zeroes }); return this; }; // Initialize JsBarcode on all HTML elements defined. API.prototype.init = function () { // Should do nothing if no elements where found if (!this._renderProperties) { return; } // Make sure renderProperies is an array if (!Array.isArray(this._renderProperties)) { this._renderProperties = [this._renderProperties]; } var renderProperty; for (var i in this._renderProperties) { renderProperty = this._renderProperties[i]; var options = (0, _merge2.default)(this._options, renderProperty.options); if (options.format == "auto") { options.format = autoSelectBarcode(); } this._errorHandler.wrapBarcodeCall(function () { var text = options.value; var Encoder = _barcodes2.default[options.format.toUpperCase()]; var encoded = encode(text, Encoder, options); render(renderProperty, encoded, options); }); } }; // The render API call. Calls the real render function. API.prototype.render = function () { if (!this._renderProperties) { throw new _exceptions.NoElementException(); } if (Array.isArray(this._renderProperties)) { for (var i = 0; i < this._renderProperties.length; i++) { render(this._renderProperties[i], this._encodings, this._options); } } else { render(this._renderProperties, this._encodings, this._options); } return this; }; API.prototype._defaults = _defaults2.default; // Prepares the encodings and calls the renderer function render(renderProperties, encodings, options) { encodings = (0, _linearizeEncodings2.default)(encodings); for (var i = 0; i < encodings.length; i++) { encodings[i].options = (0, _merge2.default)(options, encodings[i].options); (0, _fixOptions2.default)(encodings[i].options); } (0, _fixOptions2.default)(options); var Renderer = renderProperties.renderer; var renderer = new Renderer(renderProperties.element, encodings, options); renderer.render(); if (renderProperties.afterRender) { renderProperties.afterRender(); } } // Export to browser if (typeof window !== "undefined") { window.JsBarcode = JsBarcode; } // Export to jQuery /*global jQuery */ if (typeof jQuery !== 'undefined') { jQuery.fn.JsBarcode = function (content, options) { var elementArray = []; jQuery(this).each(function () { elementArray.push(this); }); return JsBarcode(elementArray, content, options); }; } // Export to commonJS module.exports = JsBarcode; /***/ }), /***/ "62e4": /***/ (function(module, exports) { module.exports = function(module) { if (!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if (!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /***/ "6747": /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /***/ "67ca": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }), /***/ "69d5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }), /***/ "6e53": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mod10 = mod10; exports.mod11 = mod11; function mod10(number) { var sum = 0; for (var i = 0; i < number.length; i++) { var n = parseInt(number[i]); if ((i + number.length) % 2 === 0) { sum += n; } else { sum += n * 2 % 10 + Math.floor(n * 2 / 10); } } return (10 - sum % 10) % 10; } function mod11(number) { var sum = 0; var weights = [2, 3, 4, 5, 6, 7]; for (var i = 0; i < number.length; i++) { var n = parseInt(number[number.length - 1 - i]); sum += weights[i % weights.length] * n; } return (11 - sum % 11) % 11; } /***/ }), /***/ "6f24": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _auto = __webpack_require__("bb5d"); var _auto2 = _interopRequireDefault(_auto); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128AUTO = function (_CODE) { _inherits(CODE128AUTO, _CODE); function CODE128AUTO(data, options) { _classCallCheck(this, CODE128AUTO); // ASCII value ranges 0-127, 200-211 if (/^[\x00-\x7F\xC8-\xD3]+$/.test(data)) { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, (0, _auto2.default)(data), options)); } else { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, data, options)); } return _possibleConstructorReturn(_this); } return CODE128AUTO; }(_CODE3.default); exports.default = CODE128AUTO; /***/ }), /***/ "6f6c": /***/ (function(module, exports) { /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; /** * Creates a clone of `regexp`. * * @private * @param {Object} regexp The regexp to clone. * @returns {Object} Returns the cloned regexp. */ function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } module.exports = cloneRegExp; /***/ }), /***/ "6fcd": /***/ (function(module, exports, __webpack_require__) { var baseTimes = __webpack_require__("50d8"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isIndex = __webpack_require__("c098"), isTypedArray = __webpack_require__("73ac"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties. isIndex(key, length) ))) { result.push(key); } } return result; } module.exports = arrayLikeKeys; /***/ }), /***/ "70b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128B = function (_CODE) { _inherits(CODE128B, _CODE); function CODE128B(string, options) { _classCallCheck(this, CODE128B); return _possibleConstructorReturn(this, (CODE128B.__proto__ || Object.getPrototypeOf(CODE128B)).call(this, _constants.B_START_CHAR + string, options)); } _createClass(CODE128B, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.B_CHARS + '+$').test(this.data); } }]); return CODE128B; }(_CODE3.default); exports.default = CODE128B; /***/ }), /***/ "721a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var CanvasRenderer = function () { function CanvasRenderer(canvas, encodings, options) { _classCallCheck(this, CanvasRenderer); this.canvas = canvas; this.encodings = encodings; this.options = options; } _createClass(CanvasRenderer, [{ key: "render", value: function render() { // Abort if the browser does not support HTML5 canvas if (!this.canvas.getContext) { throw new Error('The browser does not support canvas.'); } this.prepareCanvas(); for (var i = 0; i < this.encodings.length; i++) { var encodingOptions = (0, _merge2.default)(this.options, this.encodings[i].options); this.drawCanvasBarcode(encodingOptions, this.encodings[i]); this.drawCanvasText(encodingOptions, this.encodings[i]); this.moveCanvasDrawing(this.encodings[i]); } this.restoreCanvas(); } }, { key: "prepareCanvas", value: function prepareCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.save(); (0, _shared.calculateEncodingAttributes)(this.encodings, this.options, ctx); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); this.canvas.width = totalWidth + this.options.marginLeft + this.options.marginRight; this.canvas.height = maxHeight; // Paint the canvas ctx.clearRect(0, 0, this.canvas.width, this.canvas.height); if (this.options.background) { ctx.fillStyle = this.options.background; ctx.fillRect(0, 0, this.canvas.width, this.canvas.height); } ctx.translate(this.options.marginLeft, 0); } }, { key: "drawCanvasBarcode", value: function drawCanvasBarcode(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.marginTop + options.fontSize + options.textMargin; } else { yFrom = options.marginTop; } ctx.fillStyle = options.lineColor; for (var b = 0; b < binary.length; b++) { var x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { ctx.fillRect(x, yFrom, options.width, options.height); } else if (binary[b]) { ctx.fillRect(x, yFrom, options.width, options.height * binary[b]); } } } }, { key: "drawCanvasText", value: function drawCanvasText(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Draw the text if displayValue is set if (options.displayValue) { var x, y; if (options.textPosition == "top") { y = options.marginTop + options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.marginTop + options.fontSize; } ctx.font = font; // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; ctx.textAlign = 'left'; } else if (options.textAlign == "right") { x = encoding.width - 1; ctx.textAlign = 'right'; } // In all other cases, center the text else { x = encoding.width / 2; ctx.textAlign = 'center'; } ctx.fillText(encoding.text, x, y); } } }, { key: "moveCanvasDrawing", value: function moveCanvasDrawing(encoding) { var ctx = this.canvas.getContext("2d"); ctx.translate(encoding.width, 0); } }, { key: "restoreCanvas", value: function restoreCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.restore(); } }]); return CanvasRenderer; }(); exports.default = CanvasRenderer; /***/ }), /***/ "72af": /***/ (function(module, exports, __webpack_require__) { var createBaseFor = __webpack_require__("99cd"); /** * The base implementation of `baseForOwn` which iterates over `object` * properties returned by `keysFunc` and invokes `iteratee` for each property. * Iteratee functions may exit iteration early by explicitly returning `false`. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ var baseFor = createBaseFor(); module.exports = baseFor; /***/ }), /***/ "72f0": /***/ (function(module, exports) { /** * Creates a function that returns `value`. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * * var objects = _.times(2, _.constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] * * console.log(objects[0] === objects[1]); * // => true */ function constant(value) { return function() { return value; }; } module.exports = constant; /***/ }), /***/ "73ac": /***/ (function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__("743f"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; module.exports = isTypedArray; /***/ }), /***/ "743f": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isLength = __webpack_require__("b218"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } module.exports = baseIsTypedArray; /***/ }), /***/ "752b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _canvas = __webpack_require__("721a"); var _canvas2 = _interopRequireDefault(_canvas); var _svg = __webpack_require__("be5e"); var _svg2 = _interopRequireDefault(_svg); var _object = __webpack_require__("4ced"); var _object2 = _interopRequireDefault(_object); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { CanvasRenderer: _canvas2.default, SVGRenderer: _svg2.default, ObjectRenderer: _object2.default }; /***/ }), /***/ "7530": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"); /** Built-in value references. */ var objectCreate = Object.create; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} proto The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function object() {} return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object; object.prototype = undefined; return result; }; }()); module.exports = baseCreate; /***/ }), /***/ "76dd": /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__("ce86"); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }), /***/ "7948": /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ "79bc": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); module.exports = Map; /***/ }), /***/ "79f1": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = fixOptions; function fixOptions(options) { // Fix the margins options.marginTop = options.marginTop || options.margin; options.marginBottom = options.marginBottom || options.margin; options.marginRight = options.marginRight || options.margin; options.marginLeft = options.marginLeft || options.margin; return options; } /***/ }), /***/ "7a48": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } module.exports = hashHas; /***/ }), /***/ "7a77": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * A `Cancel` is an object that is thrown when an operation is canceled. * * @class * @param {string=} message The message. */ function Cancel(message) { this.message = message; } Cancel.prototype.toString = function toString() { return 'Cancel' + (this.message ? ': ' + this.message : ''); }; Cancel.prototype.__CANCEL__ = true; module.exports = Cancel; /***/ }), /***/ "7aac": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie (function standardBrowserEnv() { return { write: function write(name, value, expires, path, domain, secure) { var cookie = []; cookie.push(name + '=' + encodeURIComponent(value)); if (utils.isNumber(expires)) { cookie.push('expires=' + new Date(expires).toGMTString()); } if (utils.isString(path)) { cookie.push('path=' + path); } if (utils.isString(domain)) { cookie.push('domain=' + domain); } if (secure === true) { cookie.push('secure'); } document.cookie = cookie.join('; '); }, read: function read(name) { var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); return (match ? decodeURIComponent(match[3]) : null); }, remove: function remove(name) { this.write(name, '', Date.now() - 86400000); } }; })() : // Non standard browser env (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return { write: function write() {}, read: function read() { return null; }, remove: function remove() {} }; })() ); /***/ }), /***/ "7b83": /***/ (function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__("7c64"), mapCacheDelete = __webpack_require__("93ed"), mapCacheGet = __webpack_require__("2478"), mapCacheHas = __webpack_require__("a524"), mapCacheSet = __webpack_require__("1fc8"); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; module.exports = MapCache; /***/ }), /***/ "7c64": /***/ (function(module, exports, __webpack_require__) { var Hash = __webpack_require__("e24b"), ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } module.exports = mapCacheClear; /***/ }), /***/ "7cb9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pharmacode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf var pharmacode = function (_Barcode) { _inherits(pharmacode, _Barcode); function pharmacode(data, options) { _classCallCheck(this, pharmacode); var _this = _possibleConstructorReturn(this, (pharmacode.__proto__ || Object.getPrototypeOf(pharmacode)).call(this, data, options)); _this.number = parseInt(data, 10); return _this; } _createClass(pharmacode, [{ key: "encode", value: function encode() { var z = this.number; var result = ""; // http://i.imgur.com/RMm4UDJ.png // (source: http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf, page: 34) while (!isNaN(z) && z != 0) { if (z % 2 === 0) { // Even result = "11100" + result; z = (z - 2) / 2; } else { // Odd result = "100" + result; z = (z - 1) / 2; } } // Remove the two last zeroes result = result.slice(0, -2); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.number >= 3 && this.number <= 131070; } }]); return pharmacode; }(_Barcode3.default); exports.pharmacode = pharmacode; /***/ }), /***/ "7d1f": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), isArray = __webpack_require__("6747"); /** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the keys of `object`. * @param {Function} symbolsFunc The function to get the symbols of `object`. * @returns {Array} Returns the array of property names and symbols. */ function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); } module.exports = baseGetAllKeys; /***/ }), /***/ "7e64": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), stackClear = __webpack_require__("efb6"), stackDelete = __webpack_require__("2fcc"), stackGet = __webpack_require__("802a"), stackHas = __webpack_require__("55a3"), stackSet = __webpack_require__("d02c"); /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } // Add methods to `Stack`. Stack.prototype.clear = stackClear; Stack.prototype['delete'] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; module.exports = Stack; /***/ }), /***/ "802a": /***/ (function(module, exports) { /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; /***/ }), /***/ "8057": /***/ (function(module, exports) { /** * A specialized version of `_.forEach` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns `array`. */ function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } module.exports = arrayEach; /***/ }), /***/ "805f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1110 = function (_MSI) { _inherits(MSI1110, _MSI); function MSI1110(data, options) { _classCallCheck(this, MSI1110); data += (0, _checksums.mod11)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1110.__proto__ || Object.getPrototypeOf(MSI1110)).call(this, data, options)); } return MSI1110; }(_MSI3.default); exports.default = MSI1110; /***/ }), /***/ "8237": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */ (function () { 'use strict'; var ERROR = 'input is invalid type'; var WINDOW = typeof window === 'object'; var root = WINDOW ? window : {}; if (root.JS_MD5_NO_WINDOW) { WINDOW = false; } var WEB_WORKER = !WINDOW && typeof self === 'object'; var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node; if (NODE_JS) { root = global; } else if (WEB_WORKER) { root = self; } var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports; var AMD = true && __webpack_require__("3c35"); var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined'; var HEX_CHARS = '0123456789abcdef'.split(''); var EXTRA = [128, 32768, 8388608, -2147483648]; var SHIFT = [0, 8, 16, 24]; var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64']; var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); var blocks = [], buffer8; if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); buffer8 = new Uint8Array(buffer); blocks = new Uint32Array(buffer); } if (root.JS_MD5_NO_NODE_JS || !Array.isArray) { Array.isArray = function (obj) { return Object.prototype.toString.call(obj) === '[object Array]'; }; } if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { ArrayBuffer.isView = function (obj) { return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; }; } /** * @method hex * @memberof md5 * @description Output hash as hex string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} Hex string * @example * md5.hex('The quick brown fox jumps over the lazy dog'); * // equal to * md5('The quick brown fox jumps over the lazy dog'); */ /** * @method digest * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.digest('The quick brown fox jumps over the lazy dog'); */ /** * @method array * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.array('The quick brown fox jumps over the lazy dog'); */ /** * @method arrayBuffer * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.arrayBuffer('The quick brown fox jumps over the lazy dog'); */ /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.buffer('The quick brown fox jumps over the lazy dog'); */ /** * @method base64 * @memberof md5 * @description Output hash as base64 string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} base64 string * @example * md5.base64('The quick brown fox jumps over the lazy dog'); */ var createOutputMethod = function (outputType) { return function (message) { return new Md5(true).update(message)[outputType](); }; }; /** * @method create * @memberof md5 * @description Create Md5 object * @returns {Md5} Md5 object. * @example * var hash = md5.create(); */ /** * @method update * @memberof md5 * @description Create and update Md5 object * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @example * var hash = md5.update('The quick brown fox jumps over the lazy dog'); * // equal to * var hash = md5.create(); * hash.update('The quick brown fox jumps over the lazy dog'); */ var createMethod = function () { var method = createOutputMethod('hex'); if (NODE_JS) { method = nodeWrap(method); } method.create = function () { return new Md5(); }; method.update = function (message) { return method.create().update(message); }; for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method[type] = createOutputMethod(type); } return method; }; var nodeWrap = function (method) { var crypto = eval("require('crypto')"); var Buffer = eval("require('buffer').Buffer"); var nodeMethod = function (message) { if (typeof message === 'string') { return crypto.createHash('md5').update(message, 'utf8').digest('hex'); } else { if (message === null || message === undefined) { throw ERROR; } else if (message.constructor === ArrayBuffer) { message = new Uint8Array(message); } } if (Array.isArray(message) || ArrayBuffer.isView(message) || message.constructor === Buffer) { return crypto.createHash('md5').update(new Buffer(message)).digest('hex'); } else { return method(message); } }; return nodeMethod; }; /** * Md5 class * @class Md5 * @description This is internal class. * @see {@link md5.create} */ function Md5(sharedMemory) { if (sharedMemory) { blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; this.blocks = blocks; this.buffer8 = buffer8; } else { if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); this.buffer8 = new Uint8Array(buffer); this.blocks = new Uint32Array(buffer); } else { this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } } this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0; this.finalized = this.hashed = false; this.first = true; } /** * @method update * @memberof Md5 * @instance * @description Update hash * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @see {@link md5.update} */ Md5.prototype.update = function (message) { if (this.finalized) { return; } var notString, type = typeof message; if (type !== 'string') { if (type === 'object') { if (message === null) { throw ERROR; } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) { message = new Uint8Array(message); } else if (!Array.isArray(message)) { if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) { throw ERROR; } } } else { throw ERROR; } notString = true; } var code, index = 0, i, length = message.length, blocks = this.blocks; var buffer8 = this.buffer8; while (index < length) { if (this.hashed) { this.hashed = false; blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } if (notString) { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { buffer8[i++] = message[index]; } } else { for (i = this.start; index < length && i < 64; ++index) { blocks[i >> 2] |= message[index] << SHIFT[i++ & 3]; } } } else { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { buffer8[i++] = code; } else if (code < 0x800) { buffer8[i++] = 0xc0 | (code >> 6); buffer8[i++] = 0x80 | (code & 0x3f); } else if (code < 0xd800 || code >= 0xe000) { buffer8[i++] = 0xe0 | (code >> 12); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); buffer8[i++] = 0xf0 | (code >> 18); buffer8[i++] = 0x80 | ((code >> 12) & 0x3f); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } } } else { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { blocks[i >> 2] |= code << SHIFT[i++ & 3]; } else if (code < 0x800) { blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else if (code < 0xd800 || code >= 0xe000) { blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } } } } this.lastByteIndex = i; this.bytes += i - this.start; if (i >= 64) { this.start = i - 64; this.hash(); this.hashed = true; } else { this.start = i; } } if (this.bytes > 4294967295) { this.hBytes += this.bytes / 4294967296 << 0; this.bytes = this.bytes % 4294967296; } return this; }; Md5.prototype.finalize = function () { if (this.finalized) { return; } this.finalized = true; var blocks = this.blocks, i = this.lastByteIndex; blocks[i >> 2] |= EXTRA[i & 3]; if (i >= 56) { if (!this.hashed) { this.hash(); } blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } blocks[14] = this.bytes << 3; blocks[15] = this.hBytes << 3 | this.bytes >>> 29; this.hash(); }; Md5.prototype.hash = function () { var a, b, c, d, bc, da, blocks = this.blocks; if (this.first) { a = blocks[0] - 680876937; a = (a << 7 | a >>> 25) - 271733879 << 0; d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708; d = (d << 12 | d >>> 20) + a << 0; c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375; c = (c << 17 | c >>> 15) + d << 0; b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209; b = (b << 22 | b >>> 10) + c << 0; } else { a = this.h0; b = this.h1; c = this.h2; d = this.h3; a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330; b = (b << 22 | b >>> 10) + c << 0; } a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[10] - 42063; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329; b = (b << 22 | b >>> 10) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734; b = (b << 20 | b >>> 12) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[5] - 378558; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[8] - 2022574463; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[11] + 1839030562; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[14] - 35309556; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[1] - 1530992060; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[4] + 1272893353; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[7] - 155497632; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[10] - 1094730640; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[13] + 681279174; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[0] - 358537222; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[3] - 722521979; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[6] + 76029189; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[9] - 640364487; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[12] - 421815835; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[15] + 530742520; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[2] - 995338651; b = (b << 23 | b >>> 9) + c << 0; a += (c ^ (b | ~d)) + blocks[0] - 198630844; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[7] + 1126891415; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[14] - 1416354905; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[5] - 57434055; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[12] + 1700485571; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[3] - 1894986606; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[10] - 1051523; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[1] - 2054922799; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[8] + 1873313359; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[15] - 30611744; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[6] - 1560198380; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[13] + 1309151649; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[4] - 145523070; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[11] - 1120210379; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[2] + 718787259; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[9] - 343485551; b = (b << 21 | b >>> 11) + c << 0; if (this.first) { this.h0 = a + 1732584193 << 0; this.h1 = b - 271733879 << 0; this.h2 = c - 1732584194 << 0; this.h3 = d + 271733878 << 0; this.first = false; } else { this.h0 = this.h0 + a << 0; this.h1 = this.h1 + b << 0; this.h2 = this.h2 + c << 0; this.h3 = this.h3 + d << 0; } }; /** * @method hex * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.hex(); */ Md5.prototype.hex = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] + HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] + HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] + HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] + HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] + HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] + HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] + HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] + HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] + HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] + HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] + HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] + HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] + HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] + HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] + HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F]; }; /** * @method toString * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.toString(); */ Md5.prototype.toString = Md5.prototype.hex; /** * @method digest * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.digest} * @example * hash.digest(); */ Md5.prototype.digest = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return [ h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF, h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF, h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF, h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF ]; }; /** * @method array * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.array} * @example * hash.array(); */ Md5.prototype.array = Md5.prototype.digest; /** * @method arrayBuffer * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.arrayBuffer} * @example * hash.arrayBuffer(); */ Md5.prototype.arrayBuffer = function () { this.finalize(); var buffer = new ArrayBuffer(16); var blocks = new Uint32Array(buffer); blocks[0] = this.h0; blocks[1] = this.h1; blocks[2] = this.h2; blocks[3] = this.h3; return buffer; }; /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.buffer} * @example * hash.buffer(); */ Md5.prototype.buffer = Md5.prototype.arrayBuffer; /** * @method base64 * @memberof Md5 * @instance * @description Output hash as base64 string * @returns {String} base64 string * @see {@link md5.base64} * @example * hash.base64(); */ Md5.prototype.base64 = function () { var v1, v2, v3, base64Str = '', bytes = this.array(); for (var i = 0; i < 15;) { v1 = bytes[i++]; v2 = bytes[i++]; v3 = bytes[i++]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] + BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] + BASE64_ENCODE_CHAR[v3 & 63]; } v1 = bytes[i]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4) & 63] + '=='; return base64Str; }; var exports = createMethod(); if (COMMON_JS) { module.exports = exports; } else { /** * @method md5 * @description Md5 hash function, export to global in browsers. * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} md5 hashes * @example * md5(''); // d41d8cd98f00b204e9800998ecf8427e * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6 * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0 * * // It also supports UTF-8 encoding * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07 * * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer` * md5([]); // d41d8cd98f00b204e9800998ecf8427e * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e */ root.md5 = exports; if (AMD) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } })(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"), __webpack_require__("c8ba"))) /***/ }), /***/ "83b9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var isAbsoluteURL = __webpack_require__("d925"); var combineURLs = __webpack_require__("e683"); /** * 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 */ module.exports = function buildFullPath(baseURL, requestedURL) { if (baseURL && !isAbsoluteURL(requestedURL)) { return combineURLs(baseURL, requestedURL); } return requestedURL; }; /***/ }), /***/ "852e": /***/ (function(module, exports, __webpack_require__) { /*! js-cookie v3.0.1 | MIT */ ; (function (global, factory) { true ? module.exports = factory() : undefined; }(this, (function () { 'use strict'; /* eslint-disable no-var */ function assign (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { target[key] = source[key]; } } return target } /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = { read: function (value) { if (value[0] === '"') { value = value.slice(1, -1); } return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) }, write: function (value) { return encodeURIComponent(value).replace( /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent ) } }; /* eslint-enable no-var */ /* eslint-disable no-var */ function init (converter, defaultAttributes) { function set (key, value, attributes) { if (typeof document === 'undefined') { return } attributes = assign({}, defaultAttributes, attributes); if (typeof attributes.expires === 'number') { attributes.expires = new Date(Date.now() + attributes.expires * 864e5); } if (attributes.expires) { attributes.expires = attributes.expires.toUTCString(); } key = encodeURIComponent(key) .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent) .replace(/[()]/g, escape); var stringifiedAttributes = ''; for (var attributeName in attributes) { if (!attributes[attributeName]) { continue } stringifiedAttributes += '; ' + attributeName; if (attributes[attributeName] === true) { continue } // Considers RFC 6265 section 5.2: // ... // 3. If the remaining unparsed-attributes contains a %x3B (";") // character: // Consume the characters of the unparsed-attributes up to, // not including, the first %x3B (";") character. // ... stringifiedAttributes += '=' + attributes[attributeName].split(';')[0]; } return (document.cookie = key + '=' + converter.write(value, key) + stringifiedAttributes) } function get (key) { if (typeof document === 'undefined' || (arguments.length && !key)) { return } // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. var cookies = document.cookie ? document.cookie.split('; ') : []; var jar = {}; for (var i = 0; i < cookies.length; i++) { var parts = cookies[i].split('='); var value = parts.slice(1).join('='); try { var foundKey = decodeURIComponent(parts[0]); jar[foundKey] = converter.read(value, foundKey); if (key === foundKey) { break } } catch (e) {} } return key ? jar[key] : jar } return Object.create( { set: set, get: get, remove: function (key, attributes) { set( key, '', assign({}, attributes, { expires: -1 }) ); }, withAttributes: function (attributes) { return init(this.converter, assign({}, this.attributes, attributes)) }, withConverter: function (converter) { return init(assign({}, this.converter, converter), this.attributes) } }, { attributes: { value: Object.freeze(defaultAttributes) }, converter: { value: Object.freeze(converter) } } ) } var api = init(defaultConverter, { path: '/' }); /* eslint-enable no-var */ return api; }))); /***/ }), /***/ "85e3": /***/ (function(module, exports) { /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } module.exports = apply; /***/ }), /***/ "872a": /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__("3b4a"); /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } module.exports = baseAssignValue; /***/ }), /***/ "8861": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1010 = function (_MSI) { _inherits(MSI1010, _MSI); function MSI1010(data, options) { _classCallCheck(this, MSI1010); data += (0, _checksums.mod10)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1010.__proto__ || Object.getPrototypeOf(MSI1010)).call(this, data, options)); } return MSI1010; }(_MSI3.default); exports.default = MSI1010; /***/ }), /***/ "8875": /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller // MIT license // source: https://github.com/amiller-gh/currentScript-polyfill // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505 (function (root, factory) { if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} }(typeof self !== 'undefined' ? self : this, function () { function getCurrentScript () { var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript') // for chrome if (!descriptor && 'currentScript' in document && document.currentScript) { return document.currentScript } // for other browsers with native support for currentScript if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) { return document.currentScript } // IE 8-10 support script readyState // IE 11+ & Firefox support stack trace try { throw new Error(); } catch (err) { // Find the second match for the "at" string to get file src url from stack. var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), scriptLocation = (stackDetails && stackDetails[1]) || false, line = (stackDetails && stackDetails[2]) || false, currentLocation = document.location.href.replace(document.location.hash, ''), pageSource, inlineScriptSourceRegExp, inlineScriptSource, scripts = document.getElementsByTagName('script'); // Live NodeList collection if (scriptLocation === currentLocation) { pageSource = document.documentElement.outerHTML; inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i'); inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim(); } for (var i = 0; i < scripts.length; i++) { // If ready state is interactive, return the script tag if (scripts[i].readyState === 'interactive') { return scripts[i]; } // If src matches, return the script tag if (scripts[i].src === scriptLocation) { return scripts[i]; } // If inline source matches, return the script tag if ( scriptLocation === currentLocation && scripts[i].innerHTML && scripts[i].innerHTML.trim() === inlineScriptSource ) { return scripts[i]; } } // If no match, return null return null; } }; return getCurrentScript })); /***/ }), /***/ "89a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _constants = __webpack_require__("c243"); var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Binary_encoding_of_data_digits_into_EAN-13_barcode // Calculate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit var checksum = function checksum(number) { var res = number.substr(0, 12).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 3 : sum + a; }, 0); return (10 - res % 10) % 10; }; var EAN13 = function (_EAN) { _inherits(EAN13, _EAN); function EAN13(data, options) { _classCallCheck(this, EAN13); // Add checksum if it does not exist if (data.search(/^[0-9]{12}$/) !== -1) { data += checksum(data); } // Adds a last character to the end of the barcode var _this = _possibleConstructorReturn(this, (EAN13.__proto__ || Object.getPrototypeOf(EAN13)).call(this, data, options)); _this.lastChar = options.lastChar; return _this; } _createClass(EAN13, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftText', this).call(this, 1, 6); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(1, 6); var structure = _constants.EAN13_STRUCTURE[this.data[0]]; return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftEncode', this).call(this, data, structure); } }, { key: 'rightText', value: function rightText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightText', this).call(this, 7, 6); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(7, 6); return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightEncode', this).call(this, data, 'RRRRRR'); } // The "standard" way of printing EAN13 barcodes with guard bars }, { key: 'encodeGuarded', value: function encodeGuarded() { var data = _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'encodeGuarded', this).call(this); // Extend data with left digit & last character if (this.options.displayValue) { data.unshift({ data: '000000000000', text: this.text.substr(0, 1), options: { textAlign: 'left', fontSize: this.fontSize } }); if (this.options.lastChar) { data.push({ data: '00' }); data.push({ data: '00000', text: this.options.lastChar, options: { fontSize: this.fontSize } }); } } return data; } }]); return EAN13; }(_EAN3.default); exports.default = EAN13; /***/ }), /***/ "8adb": /***/ (function(module, exports) { /** * Gets the value at `key`, unless `key` is "__proto__". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function safeGet(object, key) { if (key == '__proto__') { return; } return object[key]; } module.exports = safeGet; /***/ }), /***/ "8de2": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * Converts `value` to a plain object flattening inherited enumerable string * keyed properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns the converted plain object. * @example * * function Foo() { * this.b = 2; * } * * Foo.prototype.c = 3; * * _.assign({ 'a': 1 }, new Foo); * // => { 'a': 1, 'b': 2 } * * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); * // => { 'a': 1, 'b': 2, 'c': 3 } */ function toPlainObject(value) { return copyObject(value, keysIn(value)); } module.exports = toPlainObject; /***/ }), /***/ "8df4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var Cancel = __webpack_require__("7a77"); /** * A `CancelToken` is an object that can be used to request cancellation of an operation. * * @class * @param {Function} executor The executor function. */ function CancelToken(executor) { if (typeof executor !== 'function') { throw new TypeError('executor must be a function.'); } var resolvePromise; this.promise = new Promise(function promiseExecutor(resolve) { resolvePromise = resolve; }); var token = this; executor(function cancel(message) { if (token.reason) { // Cancellation has already been requested return; } token.reason = new Cancel(message); resolvePromise(token.reason); }); } /** * Throws a `Cancel` if cancellation has been requested. */ CancelToken.prototype.throwIfRequested = function throwIfRequested() { if (this.reason) { throw this.reason; } }; /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ CancelToken.source = function source() { var cancel; var token = new CancelToken(function executor(c) { cancel = c; }); return { token: token, cancel: cancel }; }; module.exports = CancelToken; /***/ }), /***/ "8e51": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MSI1110 = exports.MSI1010 = exports.MSI11 = exports.MSI10 = exports.MSI = undefined; var _MSI = __webpack_require__("124f"); var _MSI2 = _interopRequireDefault(_MSI); var _MSI3 = __webpack_require__("4727"); var _MSI4 = _interopRequireDefault(_MSI3); var _MSI5 = __webpack_require__("4461"); var _MSI6 = _interopRequireDefault(_MSI5); var _MSI7 = __webpack_require__("8861"); var _MSI8 = _interopRequireDefault(_MSI7); var _MSI9 = __webpack_require__("805f"); var _MSI10 = _interopRequireDefault(_MSI9); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.MSI = _MSI2.default; exports.MSI10 = _MSI4.default; exports.MSI11 = _MSI6.default; exports.MSI1010 = _MSI8.default; exports.MSI1110 = _MSI10.default; /***/ }), /***/ "8eeb": /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__("32b3"), baseAssignValue = __webpack_require__("872a"); /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } module.exports = copyObject; /***/ }), /***/ "91e9": /***/ (function(module, exports) { /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } module.exports = overArg; /***/ }), /***/ "93ed": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } module.exports = mapCacheDelete; /***/ }), /***/ "9520": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObject = __webpack_require__("1a8c"); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }), /***/ "9638": /***/ (function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }), /***/ "96f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.has` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHas(object, key) { return object != null && hasOwnProperty.call(object, key); } module.exports = baseHas; /***/ }), /***/ "9934": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeysIn = __webpack_require__("41c3"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } module.exports = keysIn; /***/ }), /***/ "99cd": /***/ (function(module, exports) { /** * Creates a base function for methods like `_.forIn` and `_.forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } module.exports = createBaseFor; /***/ }), /***/ "99d3": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__("585a"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); module.exports = nodeUtil; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "9aff": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"), isArrayLike = __webpack_require__("30c9"), isIndex = __webpack_require__("c098"), isObject = __webpack_require__("1a8c"); /** * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, * else `false`. */ function isIterateeCall(value, index, object) { if (!isObject(object)) { return false; } var type = typeof index; if (type == 'number' ? (isArrayLike(object) && isIndex(index, object.length)) : (type == 'string' && index in object) ) { return eq(object[index], value); } return false; } module.exports = isIterateeCall; /***/ }), /***/ "9e69": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Symbol = root.Symbol; module.exports = Symbol; /***/ }), /***/ "9ffa": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ITF14 = exports.ITF = undefined; var _ITF = __webpack_require__("3c7c"); var _ITF2 = _interopRequireDefault(_ITF); var _ITF3 = __webpack_require__("07df"); var _ITF4 = _interopRequireDefault(_ITF3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.ITF = _ITF2.default; exports.ITF14 = _ITF4.default; /***/ }), /***/ "a029": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), getPrototype = __webpack_require__("2dcb"), getSymbols = __webpack_require__("32f4"), stubArray = __webpack_require__("d327"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); object = getPrototype(object); } return result; }; module.exports = getSymbolsIn; /***/ }), /***/ "a2b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = linearizeEncodings; // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] function linearizeEncodings(encodings) { var linearEncodings = []; function nextLevel(encoded) { if (Array.isArray(encoded)) { for (var i = 0; i < encoded.length; i++) { nextLevel(encoded[i]); } } else { encoded.text = encoded.text || ""; encoded.data = encoded.data || ""; linearEncodings.push(encoded); } } nextLevel(encodings); return linearEncodings; } /***/ }), /***/ "a2db": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; /** * Creates a clone of the `symbol` object. * * @private * @param {Object} symbol The symbol object to clone. * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } module.exports = cloneSymbol; /***/ }), /***/ "a454": /***/ (function(module, exports, __webpack_require__) { var constant = __webpack_require__("72f0"), defineProperty = __webpack_require__("3b4a"), identity = __webpack_require__("cd9d"); /** * The base implementation of `setToString` without support for hot loop shorting. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, 'toString', { 'configurable': true, 'enumerable': false, 'value': constant(string), 'writable': true }); }; module.exports = baseSetToString; /***/ }), /***/ "a524": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { return getMapData(this, key).has(key); } module.exports = mapCacheHas; /***/ }), /***/ "a5d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_2#Encoding var EAN2 = function (_Barcode) { _inherits(EAN2, _Barcode); function EAN2(data, options) { _classCallCheck(this, EAN2); return _possibleConstructorReturn(this, (EAN2.__proto__ || Object.getPrototypeOf(EAN2)).call(this, data, options)); } _createClass(EAN2, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{2}$/) !== -1; } }, { key: 'encode', value: function encode() { // Choose the structure based on the number mod 4 var structure = _constants.EAN2_STRUCTURE[parseInt(this.data) % 4]; return { // Start bits + Encode the two digits with 01 in between data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN2; }(_Barcode3.default); exports.default = EAN2; /***/ }), /***/ "a994": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbols = __webpack_require__("32f4"), keys = __webpack_require__("ec69"); /** * Creates an array of own enumerable property names and symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeys(object) { return baseGetAllKeys(object, keys, getSymbols); } module.exports = getAllKeys; /***/ }), /***/ "aab3": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getOptionsFromElement(element) { var options = {}; for (var property in _defaults2.default) { if (_defaults2.default.hasOwnProperty(property)) { // jsbarcode-* if (element.hasAttribute("jsbarcode-" + property.toLowerCase())) { options[property] = element.getAttribute("jsbarcode-" + property.toLowerCase()); } // data-* if (element.hasAttribute("data-" + property.toLowerCase())) { options[property] = element.getAttribute("data-" + property.toLowerCase()); } } } options["value"] = element.getAttribute("jsbarcode-value") || element.getAttribute("data-value"); // Since all atributes are string they need to be converted to integers options = (0, _optionsFromStrings2.default)(options); return options; } exports.default = getOptionsFromElement; /***/ }), /***/ "ab5b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTotalWidthOfEncodings = exports.calculateEncodingAttributes = exports.getBarcodePadding = exports.getEncodingHeight = exports.getMaximumHeightOfEncodings = undefined; var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getEncodingHeight(encoding, options) { return options.height + (options.displayValue && encoding.text.length > 0 ? options.fontSize + options.textMargin : 0) + options.marginTop + options.marginBottom; } function getBarcodePadding(textWidth, barcodeWidth, options) { if (options.displayValue && barcodeWidth < textWidth) { if (options.textAlign == "center") { return Math.floor((textWidth - barcodeWidth) / 2); } else if (options.textAlign == "left") { return 0; } else if (options.textAlign == "right") { return Math.floor(textWidth - barcodeWidth); } } return 0; } function calculateEncodingAttributes(encodings, barcodeOptions, context) { for (var i = 0; i < encodings.length; i++) { var encoding = encodings[i]; var options = (0, _merge2.default)(barcodeOptions, encoding.options); // Calculate the width of the encoding var textWidth; if (options.displayValue) { textWidth = messureText(encoding.text, options, context); } else { textWidth = 0; } var barcodeWidth = encoding.data.length * options.width; encoding.width = Math.ceil(Math.max(textWidth, barcodeWidth)); encoding.height = getEncodingHeight(encoding, options); encoding.barcodePadding = getBarcodePadding(textWidth, barcodeWidth, options); } } function getTotalWidthOfEncodings(encodings) { var totalWidth = 0; for (var i = 0; i < encodings.length; i++) { totalWidth += encodings[i].width; } return totalWidth; } function getMaximumHeightOfEncodings(encodings) { var maxHeight = 0; for (var i = 0; i < encodings.length; i++) { if (encodings[i].height > maxHeight) { maxHeight = encodings[i].height; } } return maxHeight; } function messureText(string, options, context) { var ctx; if (context) { ctx = context; } else if (typeof document !== "undefined") { ctx = document.createElement("canvas").getContext("2d"); } else { // If the text cannot be messured we will return 0. // This will make some barcode with big text render incorrectly return 0; } ctx.font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Calculate the width of the encoding var measureTextResult = ctx.measureText(string); if (!measureTextResult) { // Some implementations don't implement measureText and return undefined. // If the text cannot be measured we will return 0. // This will make some barcode with big text render incorrectly return 0; } var size = measureTextResult.width; return size; } exports.getMaximumHeightOfEncodings = getMaximumHeightOfEncodings; exports.getEncodingHeight = getEncodingHeight; exports.getBarcodePadding = getBarcodePadding; exports.calculateEncodingAttributes = calculateEncodingAttributes; exports.getTotalWidthOfEncodings = getTotalWidthOfEncodings; /***/ }), /***/ "b047": /***/ (function(module, exports) { /** * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. */ function baseUnary(func) { return function(value) { return func(value); }; } module.exports = baseUnary; /***/ }), /***/ "b1d2": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var dateTag = '[object Date]'; /** * The base implementation of `_.isDate` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { return isObjectLike(value) && baseGetTag(value) == dateTag; } module.exports = baseIsDate; /***/ }), /***/ "b1d8": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* global HTMLImageElement */ /* global HTMLCanvasElement */ /* global SVGElement */ var _getOptionsFromElement = __webpack_require__("aab3"); var _getOptionsFromElement2 = _interopRequireDefault(_getOptionsFromElement); var _renderers = __webpack_require__("752b"); var _renderers2 = _interopRequireDefault(_renderers); var _exceptions = __webpack_require__("dca2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Takes an element and returns an object with information about how // it should be rendered // This could also return an array with these objects // { // element: The element that the renderer should draw on // renderer: The name of the renderer // afterRender (optional): If something has to done after the renderer // completed, calls afterRender (function) // options (optional): Options that can be defined in the element // } function getRenderProperties(element) { // If the element is a string, query select call again if (typeof element === "string") { return querySelectedRenderProperties(element); } // If element is array. Recursivly call with every object in the array else if (Array.isArray(element)) { var returnArray = []; for (var i = 0; i < element.length; i++) { returnArray.push(getRenderProperties(element[i])); } return returnArray; } // If element, render on canvas and set the uri as src else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLImageElement) { return newCanvasRenderProperties(element); } // If SVG else if (element && element.nodeName && element.nodeName.toLowerCase() === 'svg' || typeof SVGElement !== 'undefined' && element instanceof SVGElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.SVGRenderer }; } // If canvas (in browser) else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLCanvasElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.CanvasRenderer }; } // If canvas (in node) else if (element && element.getContext) { return { element: element, renderer: _renderers2.default.CanvasRenderer }; } else if (element && (typeof element === "undefined" ? "undefined" : _typeof(element)) === 'object' && !element.nodeName) { return { element: element, renderer: _renderers2.default.ObjectRenderer }; } else { throw new _exceptions.InvalidElementException(); } } function querySelectedRenderProperties(string) { var selector = document.querySelectorAll(string); if (selector.length === 0) { return undefined; } else { var returnArray = []; for (var i = 0; i < selector.length; i++) { returnArray.push(getRenderProperties(selector[i])); } return returnArray; } } function newCanvasRenderProperties(imgElement) { var canvas = document.createElement('canvas'); return { element: canvas, options: (0, _getOptionsFromElement2.default)(imgElement), renderer: _renderers2.default.CanvasRenderer, afterRender: function afterRender() { imgElement.setAttribute("src", canvas.toDataURL()); } }; } exports.default = getRenderProperties; /***/ }), /***/ "b218": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; /***/ }), /***/ "b4c0": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } module.exports = listCacheGet; /***/ }), /***/ "b50d": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var settle = __webpack_require__("467f"); var cookies = __webpack_require__("7aac"); var buildURL = __webpack_require__("30b5"); var buildFullPath = __webpack_require__("83b9"); var parseHeaders = __webpack_require__("c345"); var isURLSameOrigin = __webpack_require__("3934"); var createError = __webpack_require__("2d83"); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { var requestData = config.data; var requestHeaders = config.headers; if (utils.isFormData(requestData)) { delete requestHeaders['Content-Type']; // Let the browser set it } if ( (utils.isBlob(requestData) || utils.isFile(requestData)) && requestData.type ) { delete requestHeaders['Content-Type']; // Let the browser set it } var request = new XMLHttpRequest(); // HTTP basic authentication if (config.auth) { var username = config.auth.username || ''; var password = unescape(encodeURIComponent(config.auth.password)) || ''; requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); } var fullPath = buildFullPath(config.baseURL, config.url); request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); // Set the request timeout in MS request.timeout = config.timeout; // Listen for ready state request.onreadystatechange = function handleLoad() { if (!request || request.readyState !== 4) { return; } // The request errored out and we didn't get a response, this will be // handled by onerror instead // With one exception: request that using file: protocol, most browsers // will return status as 0 even though it's a successful request if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { return; } // Prepare the response var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; var response = { data: responseData, status: request.status, statusText: request.statusText, headers: responseHeaders, config: config, request: request }; settle(resolve, reject, response); // Clean up request request = null; }; // Handle browser request cancellation (as opposed to a manual cancellation) request.onabort = function handleAbort() { if (!request) { return; } reject(createError('Request aborted', config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Handle low level network errors request.onerror = function handleError() { // Real errors are hidden from us by the browser // onerror should only fire if it's a network error reject(createError('Network Error', config, null, request)); // Clean up request request = null; }; // Handle timeout request.ontimeout = function handleTimeout() { var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; if (config.timeoutErrorMessage) { timeoutErrorMessage = config.timeoutErrorMessage; } reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Add xsrf header // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined; if (xsrfValue) { requestHeaders[config.xsrfHeaderName] = xsrfValue; } } // Add headers to the request if ('setRequestHeader' in request) { utils.forEach(requestHeaders, function setRequestHeader(val, key) { if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { // Remove Content-Type if data is undefined delete requestHeaders[key]; } else { // Otherwise add header to the request request.setRequestHeader(key, val); } }); } // Add withCredentials to request if needed if (!utils.isUndefined(config.withCredentials)) { request.withCredentials = !!config.withCredentials; } // Add responseType to request if needed if (config.responseType) { try { request.responseType = config.responseType; } catch (e) { // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. if (config.responseType !== 'json') { throw e; } } } // Handle progress if needed if (typeof config.onDownloadProgress === 'function') { request.addEventListener('progress', config.onDownloadProgress); } // Not all browsers support upload events if (typeof config.onUploadProgress === 'function' && request.upload) { request.upload.addEventListener('progress', config.onUploadProgress); } if (config.cancelToken) { // Handle cancellation config.cancelToken.promise.then(function onCanceled(cancel) { if (!request) { return; } request.abort(); reject(cancel); // Clean up request request = null; }); } if (!requestData) { requestData = null; } // Send the request request.send(requestData); }); }; /***/ }), /***/ "b5a7": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var DataView = getNative(root, 'DataView'); module.exports = DataView; /***/ }), /***/ "b760": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** * This function is like `assignValue` except that it doesn't assign * `undefined` values. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignMergeValue(object, key, value) { if ((value !== undefined && !eq(object[key], value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignMergeValue; /***/ }), /***/ "bb5d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("f08e"); // Match Set functions var matchSetALength = function matchSetALength(string) { return string.match(new RegExp('^' + _constants.A_CHARS + '*'))[0].length; }; var matchSetBLength = function matchSetBLength(string) { return string.match(new RegExp('^' + _constants.B_CHARS + '*'))[0].length; }; var matchSetC = function matchSetC(string) { return string.match(new RegExp('^' + _constants.C_CHARS + '*'))[0]; }; // CODE128A or CODE128B function autoSelectFromAB(string, isA) { var ranges = isA ? _constants.A_CHARS : _constants.B_CHARS; var untilC = string.match(new RegExp('^(' + ranges + '+?)(([0-9]{2}){2,})([^0-9]|$)')); if (untilC) { return untilC[1] + String.fromCharCode(204) + autoSelectFromC(string.substring(untilC[1].length)); } var chars = string.match(new RegExp('^' + ranges + '+'))[0]; if (chars.length === string.length) { return string; } return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA); } // CODE128C function autoSelectFromC(string) { var cMatch = matchSetC(string); var length = cMatch.length; if (length === string.length) { return string; } string = string.substring(length); // Select A/B depending on the longest match var isA = matchSetALength(string) >= matchSetBLength(string); return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA); } // Detect Code Set (A, B or C) and format the string exports.default = function (string) { var newString = void 0; var cLength = matchSetC(string).length; // Select 128C if the string start with enough digits if (cLength >= 2) { newString = _constants.C_START_CHAR + autoSelectFromC(string); } else { // Select A/B depending on the longest match var isA = matchSetALength(string) > matchSetBLength(string); newString = (isA ? _constants.A_START_CHAR : _constants.B_START_CHAR) + autoSelectFromAB(string, isA); } return newString.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, // Any sequence between 205 and 206 characters function (match, char) { return String.fromCharCode(203) + char; }); }; /***/ }), /***/ "bbc0": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED ? undefined : result; } return hasOwnProperty.call(data, key) ? data[key] : undefined; } module.exports = hashGet; /***/ }), /***/ "bc3a": /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("cee4"); /***/ }), /***/ "bd8a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /*eslint no-console: 0 */ var ErrorHandler = function () { function ErrorHandler(api) { _classCallCheck(this, ErrorHandler); this.api = api; } _createClass(ErrorHandler, [{ key: "handleCatch", value: function handleCatch(e) { // If babel supported extending of Error in a correct way instanceof would be used here if (e.name === "InvalidInputException") { if (this.api._options.valid !== this.api._defaults.valid) { this.api._options.valid(false); } else { throw e.message; } } else { throw e; } this.api.render = function () {}; } }, { key: "wrapBarcodeCall", value: function wrapBarcodeCall(func) { try { var result = func.apply(undefined, arguments); this.api._options.valid(true); return result; } catch (e) { this.handleCatch(e); return this.api; } } }]); return ErrorHandler; }(); exports.default = ErrorHandler; /***/ }), /***/ "bdfe": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Base class for EAN8 & EAN13 var EAN = function (_Barcode) { _inherits(EAN, _Barcode); function EAN(data, options) { _classCallCheck(this, EAN); // Make sure the font is not bigger than the space between the guard bars var _this = _possibleConstructorReturn(this, (EAN.__proto__ || Object.getPrototypeOf(EAN)).call(this, data, options)); _this.fontSize = !options.flat && options.fontSize > options.width * 10 ? options.width * 10 : options.fontSize; // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(EAN, [{ key: 'encode', value: function encode() { return this.options.flat ? this.encodeFlat() : this.encodeGuarded(); } }, { key: 'leftText', value: function leftText(from, to) { return this.text.substr(from, to); } }, { key: 'leftEncode', value: function leftEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'rightText', value: function rightText(from, to) { return this.text.substr(from, to); } }, { key: 'rightEncode', value: function rightEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'encodeGuarded', value: function encodeGuarded() { var textOptions = { fontSize: this.fontSize }; var guardOptions = { height: this.guardHeight }; return [{ data: _constants.SIDE_BIN, options: guardOptions }, { data: this.leftEncode(), text: this.leftText(), options: textOptions }, { data: _constants.MIDDLE_BIN, options: guardOptions }, { data: this.rightEncode(), text: this.rightText(), options: textOptions }, { data: _constants.SIDE_BIN, options: guardOptions }]; } }, { key: 'encodeFlat', value: function encodeFlat() { var data = [_constants.SIDE_BIN, this.leftEncode(), _constants.MIDDLE_BIN, this.rightEncode(), _constants.SIDE_BIN]; return { data: data.join(''), text: this.text }; } }]); return EAN; }(_Barcode3.default); exports.default = EAN; /***/ }), /***/ "be5e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var svgns = "http://www.w3.org/2000/svg"; var SVGRenderer = function () { function SVGRenderer(svg, encodings, options) { _classCallCheck(this, SVGRenderer); this.svg = svg; this.encodings = encodings; this.options = options; this.document = options.xmlDocument || document; } _createClass(SVGRenderer, [{ key: "render", value: function render() { var currentX = this.options.marginLeft; this.prepareSVG(); for (var i = 0; i < this.encodings.length; i++) { var encoding = this.encodings[i]; var encodingOptions = (0, _merge2.default)(this.options, encoding.options); var group = this.createGroup(currentX, encodingOptions.marginTop, this.svg); this.setGroupOptions(group, encodingOptions); this.drawSvgBarcode(group, encodingOptions, encoding); this.drawSVGText(group, encodingOptions, encoding); currentX += encoding.width; } } }, { key: "prepareSVG", value: function prepareSVG() { // Clear the SVG while (this.svg.firstChild) { this.svg.removeChild(this.svg.firstChild); } (0, _shared.calculateEncodingAttributes)(this.encodings, this.options); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); var width = totalWidth + this.options.marginLeft + this.options.marginRight; this.setSvgAttributes(width, maxHeight); if (this.options.background) { this.drawRect(0, 0, width, maxHeight, this.svg).setAttribute("style", "fill:" + this.options.background + ";"); } } }, { key: "drawSvgBarcode", value: function drawSvgBarcode(parent, options, encoding) { var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.fontSize + options.textMargin; } else { yFrom = 0; } var barWidth = 0; var x = 0; for (var b = 0; b < binary.length; b++) { x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { barWidth++; } else if (barWidth > 0) { this.drawRect(x - options.width * barWidth, yFrom, options.width * barWidth, options.height, parent); barWidth = 0; } } // Last draw is needed since the barcode ends with 1 if (barWidth > 0) { this.drawRect(x - options.width * (barWidth - 1), yFrom, options.width * barWidth, options.height, parent); } } }, { key: "drawSVGText", value: function drawSVGText(parent, options, encoding) { var textElem = this.document.createElementNS(svgns, 'text'); // Draw the text if displayValue is set if (options.displayValue) { var x, y; textElem.setAttribute("style", "font:" + options.fontOptions + " " + options.fontSize + "px " + options.font); if (options.textPosition == "top") { y = options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.fontSize; } // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; textElem.setAttribute("text-anchor", "start"); } else if (options.textAlign == "right") { x = encoding.width - 1; textElem.setAttribute("text-anchor", "end"); } // In all other cases, center the text else { x = encoding.width / 2; textElem.setAttribute("text-anchor", "middle"); } textElem.setAttribute("x", x); textElem.setAttribute("y", y); textElem.appendChild(this.document.createTextNode(encoding.text)); parent.appendChild(textElem); } } }, { key: "setSvgAttributes", value: function setSvgAttributes(width, height) { var svg = this.svg; svg.setAttribute("width", width + "px"); svg.setAttribute("height", height + "px"); svg.setAttribute("x", "0px"); svg.setAttribute("y", "0px"); svg.setAttribute("viewBox", "0 0 " + width + " " + height); svg.setAttribute("xmlns", svgns); svg.setAttribute("version", "1.1"); svg.setAttribute("style", "transform: translate(0,0)"); } }, { key: "createGroup", value: function createGroup(x, y, parent) { var group = this.document.createElementNS(svgns, 'g'); group.setAttribute("transform", "translate(" + x + ", " + y + ")"); parent.appendChild(group); return group; } }, { key: "setGroupOptions", value: function setGroupOptions(group, options) { group.setAttribute("style", "fill:" + options.lineColor + ";"); } }, { key: "drawRect", value: function drawRect(x, y, width, height, parent) { var rect = this.document.createElementNS(svgns, 'rect'); rect.setAttribute("x", x); rect.setAttribute("y", y); rect.setAttribute("width", width); rect.setAttribute("height", height); parent.appendChild(rect); return rect; } }]); return SVGRenderer; }(); exports.default = SVGRenderer; /***/ }), /***/ "be98": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _UPC = __webpack_require__("e8b2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding // // UPC-E documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#UPC-E var EXPANSIONS = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"]; var PARITIES = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]]; var UPCE = function (_Barcode) { _inherits(UPCE, _Barcode); function UPCE(data, options) { _classCallCheck(this, UPCE); var _this = _possibleConstructorReturn(this, (UPCE.__proto__ || Object.getPrototypeOf(UPCE)).call(this, data, options)); // Code may be 6 or 8 digits; // A 7 digit code is ambiguous as to whether the extra digit // is a UPC-A check or number system digit. _this.isValid = false; if (data.search(/^[0-9]{6}$/) !== -1) { _this.middleDigits = data; _this.upcA = expandToUPCA(data, "0"); _this.text = options.text || '' + _this.upcA[0] + data + _this.upcA[_this.upcA.length - 1]; _this.isValid = true; } else if (data.search(/^[01][0-9]{7}$/) !== -1) { _this.middleDigits = data.substring(1, data.length - 1); _this.upcA = expandToUPCA(_this.middleDigits, data[0]); if (_this.upcA[_this.upcA.length - 1] === data[data.length - 1]) { _this.isValid = true; } else { // checksum mismatch return _possibleConstructorReturn(_this); } } else { return _possibleConstructorReturn(_this); } _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPCE, [{ key: 'valid', value: function valid() { return this.isValid; } }, { key: 'encode', value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: 'flatEncoding', value: function flatEncoding() { var result = ""; result += "101"; result += this.encodeMiddleDigits(); result += "010101"; return { data: result, text: this.text }; } }, { key: 'guardedEncoding', value: function guardedEncoding() { var result = []; // Add the UPC-A number system digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[0], options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101", options: { height: this.guardHeight } }); // Add the 6 UPC-E digits result.push({ data: this.encodeMiddleDigits(), text: this.text.substring(1, 7), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: "010101", options: { height: this.guardHeight } }); // Add the UPC-A check digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[7], options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }, { key: 'encodeMiddleDigits', value: function encodeMiddleDigits() { var numberSystem = this.upcA[0]; var checkDigit = this.upcA[this.upcA.length - 1]; var parity = PARITIES[parseInt(checkDigit)][parseInt(numberSystem)]; return (0, _encoder2.default)(this.middleDigits, parity); } }]); return UPCE; }(_Barcode3.default); function expandToUPCA(middleDigits, numberSystem) { var lastUpcE = parseInt(middleDigits[middleDigits.length - 1]); var expansion = EXPANSIONS[lastUpcE]; var result = ""; var digitIndex = 0; for (var i = 0; i < expansion.length; i++) { var c = expansion[i]; if (c === 'X') { result += middleDigits[digitIndex++]; } else { result += c; } } result = '' + numberSystem + result; return '' + result + (0, _UPC.checksum)(result); } exports.default = UPCE; /***/ }), /***/ "c098": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == 'number' || (type != 'symbol' && reIsUint.test(value))) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; /***/ }), /***/ "c17b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.codabar = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding specification: // http://www.barcodeisland.com/codabar.phtml var codabar = function (_Barcode) { _inherits(codabar, _Barcode); function codabar(data, options) { _classCallCheck(this, codabar); if (data.search(/^[0-9\-\$\:\.\+\/]+$/) === 0) { data = "A" + data + "A"; } var _this = _possibleConstructorReturn(this, (codabar.__proto__ || Object.getPrototypeOf(codabar)).call(this, data.toUpperCase(), options)); _this.text = _this.options.text || _this.text.replace(/[A-D]/g, ''); return _this; } _createClass(codabar, [{ key: "valid", value: function valid() { return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1; } }, { key: "encode", value: function encode() { var result = []; var encodings = this.getEncodings(); for (var i = 0; i < this.data.length; i++) { result.push(encodings[this.data.charAt(i)]); // for all characters except the last, append a narrow-space ("0") if (i !== this.data.length - 1) { result.push("0"); } } return { text: this.text, data: result.join('') }; } }, { key: "getEncodings", value: function getEncodings() { return { "0": "101010011", "1": "101011001", "2": "101001011", "3": "110010101", "4": "101101001", "5": "110101001", "6": "100101011", "7": "100101101", "8": "100110101", "9": "110100101", "-": "101001101", "$": "101100101", ":": "1101011011", "/": "1101101011", ".": "1101101101", "+": "1011011011", "A": "1011001001", "B": "1001001011", "C": "1010010011", "D": "1010011001" }; } }]); return codabar; }(_Barcode3.default); exports.codabar = codabar; /***/ }), /***/ "c1c9": /***/ (function(module, exports, __webpack_require__) { var baseSetToString = __webpack_require__("a454"), shortOut = __webpack_require__("f3c1"); /** * Sets the `toString` method of `func` to return `string`. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var setToString = shortOut(baseSetToString); module.exports = setToString; /***/ }), /***/ "c243": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Standard start end and middle bits var SIDE_BIN = exports.SIDE_BIN = '101'; var MIDDLE_BIN = exports.MIDDLE_BIN = '01010'; var BINARIES = exports.BINARIES = { 'L': [// The L (left) type of encoding '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'G': [// The G type of encoding '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'], 'R': [// The R (right) type of encoding '1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100'], 'O': [// The O (odd) encoding for UPC-E '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'E': [// The E (even) encoding for UPC-E '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'] }; // Define the EAN-2 structure var EAN2_STRUCTURE = exports.EAN2_STRUCTURE = ['LL', 'LG', 'GL', 'GG']; // Define the EAN-5 structure var EAN5_STRUCTURE = exports.EAN5_STRUCTURE = ['GGLLL', 'GLGLL', 'GLLGL', 'GLLLG', 'LGGLL', 'LLGGL', 'LLLGG', 'LGLGL', 'LGLLG', 'LLGLG']; // Define the EAN-13 structure var EAN13_STRUCTURE = exports.EAN13_STRUCTURE = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL']; /***/ }), /***/ "c2b6": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"), cloneDataView = __webpack_require__("5d89"), cloneRegExp = __webpack_require__("6f6c"), cloneSymbol = __webpack_require__("a2db"), cloneTypedArray = __webpack_require__("c8fe"); /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', mapTag = '[object Map]', numberTag = '[object Number]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** * Initializes an object clone based on its `toStringTag`. * * **Note:** This function only supports cloning values with tags of * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. * * @private * @param {Object} object The object to clone. * @param {string} tag The `toStringTag` of the object to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the initialized clone. */ function initCloneByTag(object, tag, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag: return cloneArrayBuffer(object); case boolTag: case dateTag: return new Ctor(+object); case dataViewTag: return cloneDataView(object, isDeep); case float32Tag: case float64Tag: case int8Tag: case int16Tag: case int32Tag: case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: return cloneTypedArray(object, isDeep); case mapTag: return new Ctor; case numberTag: case stringTag: return new Ctor(object); case regexpTag: return cloneRegExp(object); case setTag: return new Ctor; case symbolTag: return cloneSymbol(object); } } module.exports = initCloneByTag; /***/ }), /***/ "c345": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); // Headers whose duplicates are ignored by node // c.f. https://nodejs.org/api/http.html#http_message_headers var ignoreDuplicateOf = [ 'age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent' ]; /** * Parse headers into an object * * ``` * Date: Wed, 27 Aug 2014 08:58:49 GMT * Content-Type: application/json * Connection: keep-alive * Transfer-Encoding: chunked * ``` * * @param {String} headers Headers needing to be parsed * @returns {Object} Headers parsed into an object */ module.exports = function parseHeaders(headers) { var parsed = {}; var key; var val; var i; if (!headers) { return parsed; } utils.forEach(headers.split('\n'), function parser(line) { i = line.indexOf(':'); key = utils.trim(line.substr(0, i)).toLowerCase(); val = utils.trim(line.substr(i + 1)); if (key) { if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { return; } if (key === 'set-cookie') { parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); } else { parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; } } }); return parsed; }; /***/ }), /***/ "c3fc": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var setTag = '[object Set]'; /** * The base implementation of `_.isSet` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. */ function baseIsSet(value) { return isObjectLike(value) && getTag(value) == setTag; } module.exports = baseIsSet; /***/ }), /***/ "c401": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Transform the data for a request or a response * * @param {Object|String} data The data to be transformed * @param {Array} headers The headers for the request or response * @param {Array|Function} fns A single function or Array of functions * @returns {*} The resulting transformed data */ module.exports = function transformData(data, headers, fns) { /*eslint no-param-reassign:0*/ utils.forEach(fns, function transform(fn) { data = fn(data, headers); }); return data; }; /***/ }), /***/ "c532": /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__("1d2b"); /*global toString:true*/ // utils is a library of generic helper functions non-specific to axios 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 undefined * * @param {Object} val The value to test * @returns {boolean} True if the value is undefined, otherwise false */ function isUndefined(val) { return typeof val === 'undefined'; } /** * Determine if a value is a Buffer * * @param {Object} val The value to test * @returns {boolean} True if value is a Buffer, otherwise false */ function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); } /** * Determine if a value is an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is an ArrayBuffer, otherwise false */ function isArrayBuffer(val) { return toString.call(val) === '[object ArrayBuffer]'; } /** * Determine if a value is a FormData * * @param {Object} val The value to test * @returns {boolean} True if value is an FormData, otherwise false */ function isFormData(val) { return (typeof FormData !== 'undefined') && (val instanceof FormData); } /** * Determine if a value is a view on an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false */ function isArrayBufferView(val) { var result; if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { result = ArrayBuffer.isView(val); } else { result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); } return result; } /** * Determine if a value is a String * * @param {Object} val The value to test * @returns {boolean} True if value is a String, otherwise false */ function isString(val) { return typeof val === 'string'; } /** * Determine if a value is a Number * * @param {Object} val The value to test * @returns {boolean} True if value is a Number, otherwise false */ function isNumber(val) { return typeof val === 'number'; } /** * 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 && typeof val === 'object'; } /** * Determine if a value is a plain Object * * @param {Object} val The value to test * @return {boolean} True if value is a plain Object, otherwise false */ function isPlainObject(val) { if (toString.call(val) !== '[object Object]') { return false; } var prototype = Object.getPrototypeOf(val); return prototype === null || prototype === Object.prototype; } /** * 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 File * * @param {Object} val The value to test * @returns {boolean} True if value is a File, otherwise false */ function isFile(val) { return toString.call(val) === '[object File]'; } /** * Determine if a value is a Blob * * @param {Object} val The value to test * @returns {boolean} True if value is a Blob, otherwise false */ function isBlob(val) { return toString.call(val) === '[object Blob]'; } /** * Determine if a value is a Function * * @param {Object} val The value to test * @returns {boolean} True if value is a Function, otherwise false */ function isFunction(val) { return toString.call(val) === '[object Function]'; } /** * Determine if a value is a Stream * * @param {Object} val The value to test * @returns {boolean} True if value is a Stream, otherwise false */ function isStream(val) { return isObject(val) && isFunction(val.pipe); } /** * 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; } /** * Trim excess whitespace off the beginning and end of a string * * @param {String} str The String to trim * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); } /** * Determine if we're running in a standard browser environment * * This allows axios to run in a web worker, and react-native. * Both environments support XMLHttpRequest, but not fully standard globals. * * web workers: * typeof window -> undefined * typeof document -> undefined * * react-native: * navigator.product -> 'ReactNative' * nativescript * navigator.product -> 'NativeScript' or 'NS' */ function isStandardBrowserEnv() { if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) { return false; } return ( typeof window !== 'undefined' && typeof document !== 'undefined' ); } /** * 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 (typeof 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); } } } } /** * Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multiple objects contain the same key the later object in * the arguments list will take precedence. * * Example: * * ```js * var result = merge({foo: 123}, {foo: 456}); * console.log(result.foo); // outputs 456 * ``` * * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function merge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (isPlainObject(result[key]) && isPlainObject(val)) { result[key] = merge(result[key], val); } else if (isPlainObject(val)) { result[key] = merge({}, val); } else if (isArray(val)) { result[key] = val.slice(); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Extends object a by mutably adding to it the properties of object b. * * @param {Object} a The object to be extended * @param {Object} b The object to copy properties from * @param {Object} thisArg The object to bind function to * @return {Object} The resulting value of object a */ function extend(a, b, thisArg) { forEach(b, function assignValue(val, key) { if (thisArg && typeof val === 'function') { a[key] = bind(val, thisArg); } else { a[key] = val; } }); return a; } /** * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) * * @param {string} content with BOM * @return {string} content value without BOM */ function stripBOM(content) { if (content.charCodeAt(0) === 0xFEFF) { content = content.slice(1); } return content; } module.exports = { isArray: isArray, isArrayBuffer: isArrayBuffer, isBuffer: isBuffer, isFormData: isFormData, isArrayBufferView: isArrayBufferView, isString: isString, isNumber: isNumber, isObject: isObject, isPlainObject: isPlainObject, isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, isFunction: isFunction, isStream: isStream, isURLSearchParams: isURLSearchParams, isStandardBrowserEnv: isStandardBrowserEnv, forEach: forEach, merge: merge, extend: extend, trim: trim, stripBOM: stripBOM }; /***/ }), /***/ "c869": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Set = getNative(root, 'Set'); module.exports = Set; /***/ }), /***/ "c87c": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Initializes an array clone. * * @private * @param {Array} array The array to clone. * @returns {Array} Returns the initialized clone. */ function initCloneArray(array) { var length = array.length, result = new array.constructor(length); // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { result.index = array.index; result.input = array.input; } return result; } module.exports = initCloneArray; /***/ }), /***/ "c8af": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = function normalizeHeaderName(headers, normalizedName) { utils.forEach(headers, function processHeader(value, name) { if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { headers[normalizedName] = value; delete headers[name]; } }); }; /***/ }), /***/ "c8ba": /***/ (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; /***/ }), /***/ "c8fe": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `typedArray`. * * @private * @param {Object} typedArray The typed array to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned typed array. */ function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } module.exports = cloneTypedArray; /***/ }), /***/ "ca32": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var defaults = { width: 2, height: 100, format: "auto", displayValue: true, fontOptions: "", font: "monospace", text: undefined, textAlign: "center", textPosition: "bottom", textMargin: 2, fontSize: 20, background: "#ffffff", lineColor: "#000000", margin: 10, marginTop: undefined, marginBottom: undefined, marginLeft: undefined, marginRight: undefined, valid: function valid() {} }; exports.default = defaults; /***/ }), /***/ "cb5a": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } module.exports = assocIndexOf; /***/ }), /***/ "cc45": /***/ (function(module, exports, __webpack_require__) { var baseIsMap = __webpack_require__("1a2d"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsMap = nodeUtil && nodeUtil.isMap; /** * Checks if `value` is classified as a `Map` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * * _.isMap(new Map); * // => true * * _.isMap(new WeakMap); * // => false */ var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; module.exports = isMap; /***/ }), /***/ "cd9d": /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "ce86": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), arrayMap = __webpack_require__("7948"), isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = baseToString; /***/ }), /***/ "cee4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var bind = __webpack_require__("1d2b"); var Axios = __webpack_require__("0a06"); var mergeConfig = __webpack_require__("4a7b"); var defaults = __webpack_require__("2444"); /** * Create an instance of Axios * * @param {Object} defaultConfig The default config for the instance * @return {Axios} A new instance of Axios */ function createInstance(defaultConfig) { var context = new Axios(defaultConfig); var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance utils.extend(instance, Axios.prototype, context); // Copy context to instance utils.extend(instance, context); return instance; } // Create the default instance to be exported var axios = createInstance(defaults); // Expose Axios class to allow class inheritance axios.Axios = Axios; // Factory for creating new instances axios.create = function create(instanceConfig) { return createInstance(mergeConfig(axios.defaults, instanceConfig)); }; // Expose Cancel & CancelToken axios.Cancel = __webpack_require__("7a77"); axios.CancelToken = __webpack_require__("8df4"); axios.isCancel = __webpack_require__("2e67"); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; axios.spread = __webpack_require__("0df6"); module.exports = axios; // Allow use of default import syntax in TypeScript module.exports.default = axios; /***/ }), /***/ "d02c": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"), MapCache = __webpack_require__("7b83"); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet; /***/ }), /***/ "d327": /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "d370": /***/ (function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__("253c"), isObjectLike = __webpack_require__("1310"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }), /***/ "d7ee": /***/ (function(module, exports, __webpack_require__) { var baseIsSet = __webpack_require__("c3fc"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsSet = nodeUtil && nodeUtil.isSet; /** * Checks if `value` is classified as a `Set` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * * _.isSet(new Set); * // => true * * _.isSet(new WeakSet); * // => false */ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; module.exports = isSet; /***/ }), /***/ "d925": /***/ (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 */ module.exports = 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); }; /***/ }), /***/ "da03": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Used to detect overreaching core-js shims. */ var coreJsData = root['__core-js_shared__']; module.exports = coreJsData; /***/ }), /***/ "da3d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE128C = exports.CODE128B = exports.CODE128A = exports.CODE128 = undefined; var _CODE128_AUTO = __webpack_require__("6f24"); var _CODE128_AUTO2 = _interopRequireDefault(_CODE128_AUTO); var _CODE128A = __webpack_require__("e8c9"); var _CODE128A2 = _interopRequireDefault(_CODE128A); var _CODE128B = __webpack_require__("70b0"); var _CODE128B2 = _interopRequireDefault(_CODE128B); var _CODE128C = __webpack_require__("ed3f"); var _CODE128C2 = _interopRequireDefault(_CODE128C); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.CODE128 = _CODE128_AUTO2.default; exports.CODE128A = _CODE128A2.default; exports.CODE128B = _CODE128B2.default; exports.CODE128C = _CODE128C2.default; /***/ }), /***/ "dc57": /***/ (function(module, exports) { /** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource; /***/ }), /***/ "dca2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var InvalidInputException = function (_Error) { _inherits(InvalidInputException, _Error); function InvalidInputException(symbology, input) { _classCallCheck(this, InvalidInputException); var _this = _possibleConstructorReturn(this, (InvalidInputException.__proto__ || Object.getPrototypeOf(InvalidInputException)).call(this)); _this.name = "InvalidInputException"; _this.symbology = symbology; _this.input = input; _this.message = '"' + _this.input + '" is not a valid input for ' + _this.symbology; return _this; } return InvalidInputException; }(Error); var InvalidElementException = function (_Error2) { _inherits(InvalidElementException, _Error2); function InvalidElementException() { _classCallCheck(this, InvalidElementException); var _this2 = _possibleConstructorReturn(this, (InvalidElementException.__proto__ || Object.getPrototypeOf(InvalidElementException)).call(this)); _this2.name = "InvalidElementException"; _this2.message = "Not supported type to render on"; return _this2; } return InvalidElementException; }(Error); var NoElementException = function (_Error3) { _inherits(NoElementException, _Error3); function NoElementException() { _classCallCheck(this, NoElementException); var _this3 = _possibleConstructorReturn(this, (NoElementException.__proto__ || Object.getPrototypeOf(NoElementException)).call(this)); _this3.name = "NoElementException"; _this3.message = "No element to render on."; return _this3; } return NoElementException; }(Error); exports.InvalidInputException = InvalidInputException; exports.InvalidElementException = InvalidElementException; exports.NoElementException = NoElementException; /***/ }), /***/ "dcbe": /***/ (function(module, exports, __webpack_require__) { var isArrayLike = __webpack_require__("30c9"), isObjectLike = __webpack_require__("1310"); /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } module.exports = isArrayLikeObject; /***/ }), /***/ "df7c": /***/ (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__("4362"))) /***/ }), /***/ "e031": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), isObject = __webpack_require__("1a8c"); /** * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source * objects into destination objects that are passed thru. * * @private * @param {*} objValue The destination value. * @param {*} srcValue The source value. * @param {string} key The key of the property to merge. * @param {Object} object The parent object of `objValue`. * @param {Object} source The parent object of `srcValue`. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. * @returns {*} Returns the value to assign. */ function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { if (isObject(objValue) && isObject(srcValue)) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, objValue); baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack); stack['delete'](srcValue); } return objValue; } module.exports = customDefaultsMerge; /***/ }), /***/ "e24b": /***/ (function(module, exports, __webpack_require__) { var hashClear = __webpack_require__("49f4"), hashDelete = __webpack_require__("1efc"), hashGet = __webpack_require__("bbc0"), hashHas = __webpack_require__("7a48"), hashSet = __webpack_require__("2524"); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; module.exports = Hash; /***/ }), /***/ "e2c0": /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__("e2e4"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isIndex = __webpack_require__("c098"), isLength = __webpack_require__("b218"), toKey = __webpack_require__("f4d6"); /** * Checks if `path` exists on `object`. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @param {Function} hasFunc The function to check properties. * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { path = castPath(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } module.exports = hasPath; /***/ }), /***/ "e2e4": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isKey = __webpack_require__("f608"), stringToPath = __webpack_require__("18d8"), toString = __webpack_require__("76dd"); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }), /***/ "e380": /***/ (function(module, exports, __webpack_require__) { var MapCache = __webpack_require__("7b83"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; module.exports = memoize; /***/ }), /***/ "e538": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; /** * Creates a clone of `buffer`. * * @private * @param {Buffer} buffer The buffer to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Buffer} Returns the cloned buffer. */ function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } module.exports = cloneBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "e683": /***/ (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 */ module.exports = function combineURLs(baseURL, relativeURL) { return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; }; /***/ }), /***/ "e762": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Barcode = function Barcode(data, options) { _classCallCheck(this, Barcode); this.data = data; this.text = options.text || data; this.options = options; }; exports.default = Barcode; /***/ }), /***/ "e8b2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); exports.checksum = checksum; var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding var UPC = function (_Barcode) { _inherits(UPC, _Barcode); function UPC(data, options) { _classCallCheck(this, UPC); // Add checksum if it does not exist if (data.search(/^[0-9]{11}$/) !== -1) { data += checksum(data); } var _this = _possibleConstructorReturn(this, (UPC.__proto__ || Object.getPrototypeOf(UPC)).call(this, data, options)); _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPC, [{ key: "valid", value: function valid() { return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == checksum(this.data); } }, { key: "encode", value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: "flatEncoding", value: function flatEncoding() { var result = ""; result += "101"; result += (0, _encoder2.default)(this.data.substr(0, 6), "LLLLLL"); result += "01010"; result += (0, _encoder2.default)(this.data.substr(6, 6), "RRRRRR"); result += "101"; return { data: result, text: this.text }; } }, { key: "guardedEncoding", value: function guardedEncoding() { var result = []; // Add the first digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(0, 1), options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101" + (0, _encoder2.default)(this.data[0], "L"), options: { height: this.guardHeight } }); // Add the left side result.push({ data: (0, _encoder2.default)(this.data.substr(1, 5), "LLLLL"), text: this.text.substr(1, 5), options: { fontSize: this.fontSize } }); // Add the middle bits result.push({ data: "01010", options: { height: this.guardHeight } }); // Add the right side result.push({ data: (0, _encoder2.default)(this.data.substr(6, 5), "RRRRR"), text: this.text.substr(6, 5), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: (0, _encoder2.default)(this.data[11], "R") + "101", options: { height: this.guardHeight } }); // Add the last digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(11, 1), options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }]); return UPC; }(_Barcode3.default); // Calulate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit function checksum(number) { var result = 0; var i; for (i = 1; i < 11; i += 2) { result += parseInt(number[i]); } for (i = 0; i < 11; i += 2) { result += parseInt(number[i]) * 3; } return (10 - result % 10) % 10; } exports.default = UPC; /***/ }), /***/ "e8c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128A = function (_CODE) { _inherits(CODE128A, _CODE); function CODE128A(string, options) { _classCallCheck(this, CODE128A); return _possibleConstructorReturn(this, (CODE128A.__proto__ || Object.getPrototypeOf(CODE128A)).call(this, _constants.A_START_CHAR + string, options)); } _createClass(CODE128A, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.A_CHARS + '+$').test(this.data); } }]); return CODE128A; }(_CODE3.default); exports.default = CODE128A; /***/ }), /***/ "eac5": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } module.exports = isPrototype; /***/ }), /***/ "ec69": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeys = __webpack_require__("03dd"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = keys; /***/ }), /***/ "ec8c": /***/ (function(module, exports) { /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } module.exports = nativeKeysIn; /***/ }), /***/ "ed27": /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"hi-eap\",\"version\":\"1.2.88\",\"description\":\"A utils Library for hi-eap. Smart Client Platform\",\"main\":\"eap.umd.min.js\",\"homepage\":\"http://hieap.cn\",\"scripts\":{\"build:eap\":\"cross-env NODE_LIB=eap vue-cli-service build --target lib --name eap --dest hi-eap ./src/eap/index.js\"},\"dependencies\":{},\"devDependencies\":{},\"eslintIgnore\":[\"**/*.md\"]}"); /***/ }), /***/ "ed3f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128C = function (_CODE) { _inherits(CODE128C, _CODE); function CODE128C(string, options) { _classCallCheck(this, CODE128C); return _possibleConstructorReturn(this, (CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options)); } _createClass(CODE128C, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data); } }]); return CODE128C; }(_CODE3.default); exports.default = CODE128C; /***/ }), /***/ "efb6": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } module.exports = stackClear; /***/ }), /***/ "f08e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _SET_BY_CODE; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // constants for internal usage var SET_A = exports.SET_A = 0; var SET_B = exports.SET_B = 1; var SET_C = exports.SET_C = 2; // Special characters var SHIFT = exports.SHIFT = 98; var START_A = exports.START_A = 103; var START_B = exports.START_B = 104; var START_C = exports.START_C = 105; var MODULO = exports.MODULO = 103; var STOP = exports.STOP = 106; var FNC1 = exports.FNC1 = 207; // Get set by start code var SET_BY_CODE = exports.SET_BY_CODE = (_SET_BY_CODE = {}, _defineProperty(_SET_BY_CODE, START_A, SET_A), _defineProperty(_SET_BY_CODE, START_B, SET_B), _defineProperty(_SET_BY_CODE, START_C, SET_C), _SET_BY_CODE); // Get next set by code var SWAP = exports.SWAP = { 101: SET_A, 100: SET_B, 99: SET_C }; var A_START_CHAR = exports.A_START_CHAR = String.fromCharCode(208); // START_A + 105 var B_START_CHAR = exports.B_START_CHAR = String.fromCharCode(209); // START_B + 105 var C_START_CHAR = exports.C_START_CHAR = String.fromCharCode(210); // START_C + 105 // 128A (Code Set A) // ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4 var A_CHARS = exports.A_CHARS = "[\x00-\x5F\xC8-\xCF]"; // 128B (Code Set B) // ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4 var B_CHARS = exports.B_CHARS = "[\x20-\x7F\xC8-\xCF]"; // 128C (Code Set C) // 00–99 (encodes two digits with a single code point) and FNC1 var C_CHARS = exports.C_CHARS = "(\xCF*[0-9]{2}\xCF*)"; // CODE128 includes 107 symbols: // 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one) // Each symbol consist of three black bars (1) and three white spaces (0). var BARS = exports.BARS = [11011001100, 11001101100, 11001100110, 10010011000, 10010001100, 10001001100, 10011001000, 10011000100, 10001100100, 11001001000, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011000, 11011000110, 11000110110, 10100011000, 10001011000, 10001000110, 10110001000, 10001101000, 10001100010, 11010001000, 11000101000, 11000100010, 10110111000, 10110001110, 10001101110, 10111011000, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101000, 11011100010, 11011101110, 11101011000, 11101000110, 11100010110, 11101101000, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 10100110000, 10100001100, 10010110000, 10010000110, 10000101100, 10000100110, 10110010000, 10110000100, 10011010000, 10011000010, 10000110100, 10000110010, 11000010010, 11001010000, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111000, 10100011110, 10001011110, 10111101000, 10111100010, 11110101000, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 11010010000, 11010011100, 1100011101011]; /***/ }), /***/ "f3c1": /***/ (function(module, exports) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ var HOT_COUNT = 800, HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeNow = Date.now; /** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. */ function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(undefined, arguments); }; } module.exports = shortOut; /***/ }), /***/ "f4d6": /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }), /***/ "f608": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }), /***/ "f6b4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); 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) { utils.forEach(this.handlers, function forEachHandler(h) { if (h !== null) { fn(h); } }); }; module.exports = InterceptorManager; /***/ }), /***/ "f8af": /***/ (function(module, exports, __webpack_require__) { var Uint8Array = __webpack_require__("2474"); /** * Creates a clone of `arrayBuffer`. * * @private * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array(result).set(new Uint8Array(arrayBuffer)); return result; } module.exports = cloneArrayBuffer; /***/ }), /***/ "f909": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), assignMergeValue = __webpack_require__("b760"), baseFor = __webpack_require__("72af"), baseMergeDeep = __webpack_require__("4f50"), isObject = __webpack_require__("1a8c"), keysIn = __webpack_require__("9934"), safeGet = __webpack_require__("8adb"); /** * The base implementation of `_.merge` without support for multiple sources. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {number} srcIndex The index of `source`. * @param {Function} [customizer] The function to customize merged values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } baseFor(source, function(srcValue, key) { if (isObject(srcValue)) { stack || (stack = new Stack); baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); } else { var newValue = customizer ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack) : undefined; if (newValue === undefined) { newValue = srcValue; } assignMergeValue(object, key, newValue); } }, keysIn); } module.exports = baseMerge; /***/ }), /***/ "fa21": /***/ (function(module, exports, __webpack_require__) { var baseCreate = __webpack_require__("7530"), getPrototype = __webpack_require__("2dcb"), isPrototype = __webpack_require__("eac5"); /** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { return (typeof object.constructor == 'function' && !isPrototype(object)) ? baseCreate(getPrototype(object)) : {}; } module.exports = initCloneObject; /***/ }), /***/ "fb15": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "user", function() { return /* reexport */ user; }); __webpack_require__.d(__webpack_exports__, "ajax", function() { return /* reexport */ ajax; }); __webpack_require__.d(__webpack_exports__, "request", function() { return /* reexport */ eap_request; }); __webpack_require__.d(__webpack_exports__, "mergeConfig", function() { return /* reexport */ mergeConfig; }); __webpack_require__.d(__webpack_exports__, "lang", function() { return /* reexport */ eap_lang; }); __webpack_require__.d(__webpack_exports__, "utils", function() { return /* reexport */ eap_utils; }); __webpack_require__.d(__webpack_exports__, "page", function() { return /* reexport */ page; }); __webpack_require__.d(__webpack_exports__, "dataHelper", function() { return /* reexport */ eap_dataHelper; }); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js // This file is imported into lib/wc client bundles. if (typeof window !== 'undefined') { var currentScript = window.document.currentScript if (true) { var getCurrentScript = __webpack_require__("8875") currentScript = getCurrentScript() // for backward compatibility, because previously we directly included the polyfill if (!('currentScript' in document)) { Object.defineProperty(document, 'currentScript', { get: getCurrentScript }) } } var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) if (src) { __webpack_require__.p = src[1] // eslint-disable-line } } // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = (null); // EXTERNAL MODULE: ./node_modules/axios/index.js var axios = __webpack_require__("bc3a"); var axios_default = /*#__PURE__*/__webpack_require__.n(axios); // EXTERNAL MODULE: ./node_modules/js-cookie/dist/js.cookie.js var js_cookie = __webpack_require__("852e"); var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie); // CONCATENATED MODULE: ./src/utils/token.js /* harmony default export */ var utils_token = ("d23290d0-f840-46d4-8401-ae815cc05c9a"); // CONCATENATED MODULE: ./src/eap/user/auth.js const TokenKey = 'EAP-Token' function getToken() { let token = js_cookie_default.a.get(TokenKey) let env = Object({"NODE_ENV":"production","VUE_APP_BASE_API":"http://192.168.4.106:7777","BASE_URL":"/"}); if (!token && env.NODE_ENV == "development") { return utils_token; } return token; } function setToken(token) { return js_cookie_default.a.set(TokenKey, token) } function removeToken() { return js_cookie_default.a.remove(TokenKey) } /* harmony default export */ var auth = ({ getToken, setToken, removeToken, }); // EXTERNAL MODULE: external "ELEMENT" var external_ELEMENT_ = __webpack_require__("5f72"); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/types.js /* harmony default export */ var types = ({ "string" :"dbString", "int" :"dbInt", "float" :"dbFloat", "double" :"dbDouble", "text" :"dbText ", "boolean" :"dbBoolean ", "datetime" :"dbDatetime ", "timestamp" :"dbTimestamp " }); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/keys.js /* harmony default export */ var keys = ({ "pageIndex": "pageNum", "pageSize": "pageSize", "body": "__body", "funcpath":"__funcpath", "returnTotal":"__returnCount", "zcQuery":"__zcQuery", "slaveEntities":"__slaveEntities", "modelFilePath":"modelFilePath", "slaveExport":"__slaveExport", "sheetStyle":"__sheetStyle", "sheetDatas":"__sheetDatas", "viewItemId":"viewItemId" }); // EXTERNAL MODULE: ./node_modules/lodash/has.js var has = __webpack_require__("3852"); var has_default = /*#__PURE__*/__webpack_require__.n(has); // EXTERNAL MODULE: ./node_modules/lodash/isDate.js var isDate = __webpack_require__("6220"); var isDate_default = /*#__PURE__*/__webpack_require__.n(isDate); // CONCATENATED MODULE: ./src/hiSetting.js const hiSetting = { //项目名 projectName: 'eap5csxm/admin', pName: "eap5csxm", pUser: "admin", //接口返回消息弹窗模式,默认为消息提示(自动消失),msgBox为消息弹窗(需手动确定关闭) messageType: "msgBox", //请求对象 // request: eap.request,//eap对象还没有加载 // ajax: eap.ajax,//eap对象还没有加载 //部署目录 deployDir: "", //服务器域名 url: "http://192.168.4.105:7777", //编辑器脚本路径 editorResDir: "", //服务名称 serverName: "", //默认服务url serverUrl: "", //用户信息 userInfo: "/sys/user/detail", //登录页url loginUrl: "/login.html", //小登录窗口登录页url miniLoginUrl: "/login.html", //首页url mainPageUrl: "/main.html", //大数据保存webscoketUrl saveWsUrl:"/ws/progress/{id}", //数据保存url saveUrl: "/data/save", //'/data/save', //数据查询url queryUrl: "/data/query", //'/data/query', //excel导出心跳 exportExcelHeartbeatUrl: "/export/dataexcel/status", //导入URL excelImportUrl: "/import/exceldata", //ws excel导入数据 wsExcelImportUrl: "/ws/import/exceldata", //导出URL exportUrl: "/export/dataexcel", exportPathUrl: "/export/dataexcel/path", exportNewUrl: "/export/dataexcelnew", //页面初始化接口 pageInitUrl: "/data/page/permit", //数据策略url policyUrl: "/data/policy", //下推目标取url flowUrlByPush:"/sys/auth/query-flowux", //附件上传url upload: "/file/upload", //附件下载url download: "/file/download", //附件查看url review: "/file/static/preview", //附件上传url publicupload: "/file/public/upload", //附件下载url publicdownload: "/file/public/download", //附件查看url publicreview: "/file/public/preview", //流程信息url getFlowInfo: "/flow/open", getApprovalInfo: "/flow/getApprovalInfo", processFlow: "/flow/processFlow", umpireOrder: "/flow/umpireOrder", queryTask: "/flow/queryTask", withdrawtask: "/flow/withdrawtask", taskDiagram: "/flow/taskDiagram", ganttChart: "/flow/ganttChart", openOrdernumber: "/flow/openOrdernumber", //默认查询操作符 queryOperate: 'like', //数据返回超时时间 requestTimeout: 140 * 1000, //是否单点登录 isSingleLogin: false, //单点登录页 singleLoginUrl: "", //单点登出页 singleLogoutUrl: "", } /* harmony default export */ var src_hiSetting = (hiSetting); // CONCATENATED MODULE: ./src/base/utils/src/date.js /** * showdoc * @catalog API/工具/Date * @title 日期基础类 * @className ClientDate * @modifier static * @method DateFunc * @demo */ const DATE = { timeSchemeKey: { "today": "today", "yesterday": "yesterday", "week": "week", "month": "month", "premonth": "premonth", "quarter": "quarter", "year": "year", "days7": "days7", "days28": "days28", "days84": "days84", "halfyear": "halfyear", "oneyear": "oneyear" }, /** * showdoc * @catalog API/工具/Date * @title 日期格式化 * @description 将条件转成字符结果 * @method format * @param date 必选 Date|String 需要格式化日期 * @param format 必选 String 格式化类型 * @return Date * @number 60 */ format: function (date, format) { if (!date) return ""; if (typeof date == "string") date = DATE.strToDate(date); format = format.replace(/HH/, "hh"); var o = { "M+": date.getMonth() + 1, // month "d+": date.getDate(), // day "D+": date.getDate(), // day "h+": date.getHours(), // hour "H+": date.getHours(), // hour "m+": date.getMinutes(), // minute "s+": date.getSeconds(), // second "q+": Math.floor((date.getMonth() + 3) / 3), // quarter "S": date.getMilliseconds() // millisecond } if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); if (/(Y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(format)) format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); return format; }, /** * showdoc * @catalog API/工具/Date * @title 获取服务端时间 * @description 服务端当前时间 * @method getServerTimeNow * @return Date * @number 60 */ getServerTimeNow() { let serverTimeNow = ""; window.eap.ajax({ url: window.HIVUI_SETTING.getNowTimeUrl, method: "GET",//可不传,默认post async: false,//可不传,默认true success: function (response) { serverTimeNow = response.dataPack; }, fail: function () { } }); return serverTimeNow; }, /** * showdoc * @catalog API/工具/Date * @title 毫秒差间隔 * @description dt1与dt2日期之间毫秒差间隔 * @method milliSecondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ milliSecondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); return Math.abs(dt1.getTime() - dt2.getTime()); }, /** * showdoc * @catalog API/工具/Date * @title 秒差间隔 * @description dt1与dt2日期之间秒差间隔 * @method secondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ secondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getTime() - dt2.getTime()) / 1000); }, /** * showdoc * @catalog API/工具/Date * @title 分钟差间隔 * @description dt1与dt2日期之间分钟差间隔 * @method minutesBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 分差 minutesBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 60))); }, /** * showdoc * @catalog API/工具/Date * @title 时差间隔 * @description dt1与dt2日期之间时差间隔 * @method hoursBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 小时差 hoursBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600))); }, /** * showdoc * @catalog API/工具/Date * @title 天差间隔 * @description dt1与dt2日期之间天差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @param isAbs 选填 是否 返回绝对值 * @return Int * @number 60 */ daysBetween: function (dt1, dt2, isAbs) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; dt1 = this.strFormatDate(this.format(dt1, "yyyy-MM-dd")); dt2 = this.strFormatDate(this.format(dt2, "yyyy-MM-dd")); if (isAbs) return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24))); else return Math.floor((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24)); }, /** * showdoc * @catalog API/工具/Date * @title 月差间隔 * @description dt1与dt2日期之间月差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ monthsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getFullYear() - dt2.getFullYear()) * 12) + Math.abs(dt1.getMonth() - dt2.getMonth()); }, /** * showdoc * @catalog API/工具/Date * @title 年差间隔 * @description dt1与dt2日期之间年差间隔 * @method yearsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ yearsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs(dt1.getFullYear() - dt2.getFullYear()); }, /** * showdoc * @catalog API/工具/Date * @title 获取中文星期 * @description 获取中文星期 * @method getWeekCn * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeekCn: function (dt) { var dayNames = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); if (typeof dt == "string") dt = DATE.strToDate(dt); return dayNames[dt.getDay()]; }, /** * showdoc * @catalog API/工具/Date * @title 获取数字星期 * @description 获取数字星期 * @url getWeek(dt) * @method getWeek(dt) * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeek: function (dt) { if (typeof dt == "string") dt = DATE.strToDate(dt); return dt.getDay(); }, /** * showdoc * @catalog API/工具/Date * @title 是否时间日期 * @description 是否时间日期 * @method isDateTime * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDateTime: function (dateString) { if (dateString.trim() == "") return false; // 年月日时分秒正则表达式 var r = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/); var r1 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}).(\d{1,6})$/); var r2 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2})$/); if (r == null && r1 == null && r2 == null) { return false; } r = r || r1 || r2; if (r.length == 6) {// 时间格式为:2018-04-11 17:31 var d1 = new Date(r[1], r[2] - 1, r[3], r[4], r[5]); let num = (d1.getFullYear() == r[1] && (d1.getMonth() + 1) == r[2] && d1.getDate() == r[3] && d1.getHours() == r[4] && d1 .getMinutes() == r[5]); if (num == 0) { return false; } else return true; } var d = new Date(r[1], r[2] - 1, r[3], r[4], r[5], r[6]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[2] && d.getDate() == r[3] && d.getHours() == r[4] && d.getMinutes() == r[5] && d.getSeconds() == r[6]); if (num == 0) { return false; } return (num != 0); }, /** * showdoc * @catalog API/工具/Date * @title 是否日期类型 * @description 是否日期类型 * @method isDate * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDate: function (dateString) { if (dateString == "") return true; // 年月日正则表达式 var r = dateString.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); if (r == null) { return false; } var d = new Date(r[1], r[3] - 1, r[4]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[3] && d .getDate() == r[4]); if (num == 0) { return false; } return (num != 0); }, dateof: function (dt, type) { let result; if (!dt) return ""; if (typeof dt == "string") dt = DATE.strToDate(dt); switch (type) { case "y": result = dt.getFullYear(); break; case "m": result = dt.getMonth() + 1; break; case "min": result = dt.getMinutes(); break; case "time": result = DATE.format("yyyy-MM-dd hh:mm:ss"); break; case "date": result = DATE.format('yyyy-MM-dd'); break; case "weekCn": result = dt.week(); break; case "week": result = dt.getDay(); break; case "weekInYear": var first = new Date(dt.getFullYear(), 0, 1); var n = parseInt("1065432".charAt(first.getDay())); n = dt.getTime() - first.getTime() - n * 24 * 60 * 60 * 1000; n = Math.ceil(n / (7 * 24 * 60 * 60 * 1000)); result = first.getDay() != 1 ? (n + 1) : n; break; default: result = ""; } return result; }, /** * showdoc * @catalog API/工具/Date * @title 字符转换指定日期类型 * @description 字符转换指定日期类型 * @method strFormatDate * @param strDate 必选 String 日期时间 * @param strFormat 必选 String 格式化类型 * @return Date * @number 60 */ strFormatDate: function (strDate, strFormat) { if (strDate == "" || strDate == null) return ""; let d = DATE.strToDate(strDate); if (!strFormat) return d; return d.format(strFormat); }, /** * showdoc * @catalog API/工具/Date * @title 字符转换日期类型 * @description 字符转换日期类型 * @method strToDate * @param dataStr 必选 String 日期时间 * @return Date * @number 60 */ strToDate: function (dataStr) { if (!dataStr) return ""; if (dataStr && dataStr.constructor === Date) { // 2010.08.02 // 已经是时间类型,就不过滤。 return dataStr; } if (typeof dataStr == "string") { if (dataStr.indexOf('.') > -1) // 2010.07.13 08335 cai dataStr = dataStr.split('.')[0]; dataStr = dataStr.replace(/-/g, "/"); } // 只有时间字符串 01521 if ((dataStr.indexOf("-") == -1 && dataStr.indexOf("/") == -1) && dataStr.indexOf(".") == -1 && dataStr.indexOf(":") != -1) dataStr = DATE.dateOf(new Date()) + " " + dataStr; var arr = dataStr.split(/[- :]/); var arr1 = dataStr.split(/[/ :]/) if (dataStr != "" && (arr.length == 1 && arr1.length == 1)) { // 当:dataStr:1,返回:2010-01-01 // 00:00:00 console.log(dataStr + " Invalid Date") return ""; } return new Date(Date.parse(dataStr)); } , /** * showdoc * @catalog API/工具/Date * @title 获得季度的第一天 * @description 获得季度的第一天 * @method getQuarterStartDay * @param dataStr 必选 Date 日期时间 * @return Date * @number 60 */ getQuarterStartDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 0, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 3, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 6, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 9, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本季度的结束日期 * @description 获得本季度的结束日期 * @method getQuarterEndDate * @return Date * @number 60 */ getQuarterEndDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 2, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 6, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 8, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 11, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的开始日期 * @description 获得本年度的开始日期 * @method getYearStartDate * @return Date * @number 60 */ getYearStartDate: function () { var now = new Date(); var yearFirstDay = new Date(now.getFullYear(), 0, 1); return this.format(yearFirstDay, "yyyy-MM-dd"); //return yearFirstDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的结束日期 * @description 获得本年度的结束日期 * @method getYearEndDate * @return Date * @number 60 */ getYearEndDate: function () { var now = new Date(); var yearLastDay = new Date(now.getFullYear(), 11, 31); return this.format(yearLastDay, "yyyy-MM-dd"); //return yearLastDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得某月的天数 * @description 获得某月的天数 * @method getMonthDays * @param myMonth,myYear 必选 int 月份 * @param myMonth,myYear 必选 int 年份 * @return Int * @number 60 */ getMonthDays: function (myMonth, myYear) { if (myYear == undefined) { var now = new Date(); myYear = now.getFullYear(); } myMonth--; var d = new Date(myYear, myMonth, 1); d.setDate(d.getDate() + 32 - d.getDate()); return (32 - d.getDate()) }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的开始日期 * @description 获得本周的开始日期 * @method getWeekStartDate * @return Date * @number 60 */ getWeekStartDate: function () { var now = new Date(); var weekStartDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() - now.getDay()); return this.format(weekStartDate, "yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的结束日期 * @description 获得本周的结束日期 * @method getWeekEndDate * @return Date * @number 60 */ getWeekEndDate: function () { var now = new Date(); var weekEndDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() + (6 - now.getDay())); return this.format(weekEndDate, "yyyy-MM-dd"); //return weekEndDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的开始日期 * @description 获得本月的开始日期 * @method getMonthStartDate * @param dateVal 必选 Date|String 日期 * @return Date * @number 60 */ getMonthStartDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); var monthStartDate = new Date(now.getFullYear(), now.getMonth(), 1); return this.format(monthStartDate, "yyyy-MM-dd"); //monthStartDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的结束日期 * @description 获得本月的结束日期 * @method getMonthEndDate * @return Date * @number 60 */ getMonthEndDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); let year = now.getFullYear(); let month = now.getMonth(); var tempDate = new Date(new Date(year, month + 1, 1).getTime() - 1000 * 60 * 60 * 24) return this.format(tempDate, "yyyy-MM-dd"); //return tempDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获当前时间 * @description 获当前时间 * @method now * @param format 可选 String 格式化 * @return Date * @number 60 */ now: function () { let format = "yyyy-MM-dd hh:mm:ss"; return this.format(new Date(), format); }, currentNow: function () { return new Date(); }, /** * showdoc * @catalog API/工具/Date * @title 获时间方案 * @description 获时间方案 * @method TimeScheme * @param name 必选 String 方案名称 * @return Date * @number 60 */ TimeScheme: function (name,split) { split = split ||"到"; var startTime = ` 00:00:00${split}`, endTime = " 23:59:59"; switch (name) { case "today": return this.format(this.strToDate(this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "yesterday": return this .format(this.dateAdd("d", -1, this.now()), "yyyy-MM-dd") + startTime + this.format(this.dateAdd("d", -1, this .now()), "yyyy-MM-dd") + endTime; case "week": return this.getWeekStartDate() + startTime + this.getWeekEndDate() + endTime; case "month": return this.getMonthStartDate() + startTime + this.getMonthEndDate() + endTime; case "quarter": return this.getQuarterStartDate() + startTime + this.getQuarterEndDate() + endTime; case "year": return this.getYearStartDate() + startTime + this.getYearEndDate() + endTime; case "days7": return this.format(this.dateAdd("d", -7, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days28": return this.format(this.dateAdd("d", -28, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days84": return this.format(this.dateAdd("d", -84, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "halfyear": return this.format(this.dateAdd("d", -180, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "oneyear": return this.format(this.dateAdd("d", -365, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; } }, daysInMonth: function (year, month) { if (month == 1) { if (year % 4 == 0 && year % 100 != 0) return 29; else return 28; } else if ((month <= 6 && month % 2 == 0) || (month = true && month % 2 == 1)) return 31; else return 30; }, /** * showdoc * @catalog API/工具/Date * @title 加减日期 * @description 在日期中添加或者减去指定的时间间隔天数 * @method dateAdd * @param datepart 必选 String 间隔类型:y:年,q:季度,m:月,d:天,h:小时,mi:分,s:秒 * @param number 必选 Int 间隔数,正数表示加,负数表示减 * @param dtDate 必选 Date * @return Date * @number 60 */ dateAdd: function (datepart, number, dtDate) { if (typeof dtDate == "string") dtDate = DATE.strToDate(dtDate); var date = new Date(dtDate); datepart = (datepart || 'd').toLowerCase(); let diff = parseInt(number); let tempdate; switch (datepart) { case "y": // 年 tempdate = date.setYear(date.getFullYear() + diff) break; case "q": // 季度 tempdate = date.setMonth(date.getMonth() + (diff * 3)) break; case "m": // 月 var sYear = date.getFullYear(); var sMonth = date.getMonth(); var nextY = sYear; var nextM = sMonth; //如果当前月+要加上的月>11 这里之所以用11是因为 js的月份从0开始 if ((sMonth + diff) > 11) { nextY = sYear + 1; nextM = parseInt(sMonth + diff) - 12; } else { nextM = date.getMonth() + diff } var daysInNextMonth = this.daysInMonth(nextY, nextM); var day = date.getDate(); if (day > daysInNextMonth) { day = daysInNextMonth; } //eDate = new Date(nextY, nextM, day); tempdate = new Date(nextY, nextM, day); break; case "d": // 天 tempdate = date.setDate(date.getDate() + diff); break; case "h": // 时 tempdate = date.setHours(date.getHours() + diff); break; case "mi": // 分 tempdate = date.setMinutes(date.getMinutes() + diff); break; case "s": // 秒 tempdate = date.setSeconds(date.getSeconds() + diff) break; default: tempdate = date.setDate(date.getDate() + diff); break; } return new Date(tempdate); } } /* harmony default export */ var date = (DATE); // CONCATENATED MODULE: ./src/base/utils/src/number.js /** * showdoc * @catalog API/工具/Number * @title 数值基础类 * @className NumberFunc * @modifier static * @method NumberFunc * @demo */ const NUM = { /** * showdoc * @catalog API/工具/Number * @title 除法函数,用来得到精确的除法结果 * @description 除法函数,用来得到精确的除法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 被除数 * @param arg2 必选 Number 除数 * @return float * @number 60 */ accDiv : function(arg1, arg2) { var t1 = 0, t2 = 0, r1, r2; try { t1 = arg1.toString().split(".")[1].length } catch (e) { t1 = 0; } try { t2 = arg2.toString().split(".")[1].length } catch (e) { t2 = 0; } r1 = Number(arg1.toString().replace(".", "")) r2 = Number(arg2.toString().replace(".", "")) return (r1 / r2) * Math.pow(10, t2 - t1); }, /** * showdoc * @catalog API/工具/Number * @title 乘法函数,用来得到精确的乘法结果 * @description 乘法函数,用来得到精确的乘法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 乘数 * @param arg2 必选 Number 乘数 * @return float * @number 60 */ accMul : function(arg1, arg2) { var m = 0, s1 = arg1.toString(), s2 = arg2.toString(); try { m += s1.split(".")[1].length } catch (e) { m = 0; } try { m += s2.split(".")[1].length } catch (e) { m += 0; } return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m) }, /** * showdoc * @catalog API/工具/Number * @title 加法函数,用来得到精确的加法结果 * @description 加法函数,用来得到精确的加法结果 * @url accAdd(arg1,arg2) * @method accAdd * @param arg1 必选 Number 加数 * @param arg2 必选 Number 加数 * @return float * @number 60 */ accAdd : function(arg1, arg2) { var r1, r2, m; try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 } try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 } m = Math.pow(10, Math.max(r1, r2)) return (NUM.accMul(arg1, m) + NUM.accMul(arg2, m)) / m }, toFixed(number,length) { var carry = 0; //存放进位标志 var num,multiple; //num为原浮点数放大multiple倍后的数,multiple为10的length次方 var str = number + ''; //将调用该方法的数字转为字符串 var dot = str.indexOf("."); //找到小数点的位置 if(str.substr(dot+length+1,1)>=5) carry=1; //找到要进行舍入的数的位置,手动判断是否大于等于5,满足条件进位标志置为1 multiple = Math.pow(10,length); //设置浮点数要扩大的倍数 num = Math.floor(number * multiple) + carry; //去掉舍入位后的所有数,然后加上我们的手动进位数 var result = num/multiple + ''; //将进位后的整数再缩小为原浮点数 /* * 处理进位后无小数 */ dot = result.indexOf("."); if(dot < 0){ result += '.'; dot = result.indexOf("."); } /* * 处理多次进位 */ var len = result.length - (dot+1); if(len < length){ for(var i = 0; i < length - len; i++){ result += 0; } } return result; }, /** * showdoc * @catalog API/工具/Number * @title 中文数字格式化 * @description 中文数字格式化 * @url formatCn(n) * @method formatCn * @param n 必选 Number 数字 * @return string * @number 60 */ formatCn(n) { let fraction = ['角', '分']; let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]; let head = n < 0 ? '欠' : ''; n = Math.abs(n); let s = ''; for (let i = 0; i < fraction.length; i++) { s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); } s = s || '整'; n = Math.floor(n); for (let i = 0; i < unit[0].length && n > 0; i++) { let p = ''; for (let j = 0; j < unit[1].length && n > 0; j++) { p = digit[n % 10] + unit[1][j] + p; n = Math.floor(n / 10); } s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s; } return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); }, /** * showdoc * @catalog API/工具/Number * @title 数值格式化 * @description 数值格式化 * @url formatString(v,formatstring) * @method formatString * @param v 必选 Number 数字 * @param strign 必选 string 格式化 * @return string * @number 60 */ format: function (v, formatString) { if (!formatString) { formatString = "000,0.00"; //return v; } if(formatString.indexOf("¥")>-1) { formatString = "¥000,0.00"; } if (isFinite(v)) { v = parseFloat(v); } if (formatString.indexOf('%') > -1) { v = v * 100; } v = !isNaN(v) ? v : NaN; if (isNaN(v)) { return ''; } let formatCleanRe = /[^\d\.]/g; let comma = ",", dec = '.', neg = v < 0, hasComma, psplit, fnum, cnum, parr, j, m, n, i; v = Math.abs(v); // if (formatString.substr(formatString.length - 2) == '/i') { // I18NFormatCleanRe = new RegExp('[^\\d\\' // + UtilFormat.decimalSeparator + ']', 'g'); // formatString = formatString.substr(0, formatString.length - 2); // hasComma = formatString.indexOf(comma) != -1; // psplit = formatString.replace(I18NFormatCleanRe, '').split(dec); // } else hasComma = formatString.indexOf(',') != -1; psplit = formatString.replace(formatCleanRe, '').split('.'); if (psplit.length > 2) { alert("对比格式无效") // alert("瀵规瘮璧锋棤鏁堟牸寮忥紒"); // </debug> } else if (psplit.length > 1) { let precision = psplit[1].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(precision); } else { let precision = psplit[0].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(0); } fnum = v.toString(); psplit = fnum.split('.'); if (hasComma) { cnum = psplit[0]; parr = []; j = cnum.length; m = Math.floor(j / 3); n = cnum.length % 3 || 3; for (i = 0; i < j; i += n) { if (i !== 0) { n = 3; } parr[parr.length] = cnum.substr(i, n); m -= 1; } fnum = parr.join(comma); if (psplit[1]) { fnum += dec + psplit[1]; } } else { if (psplit[1]) { fnum = psplit[0] + dec + psplit[1]; } } if (neg) { neg = fnum.replace(/[^1-9]/g, '') !== ''; } return (neg ? '-' : '') + formatString.replace(/[\d,?\.?]+/, fnum); } } /* harmony default export */ var number = (NUM); // EXTERNAL MODULE: ./node_modules/js-md5/src/md5.js var md5 = __webpack_require__("8237"); var md5_default = /*#__PURE__*/__webpack_require__.n(md5); // CONCATENATED MODULE: ./src/base/utils/src/pyconst.js const pyconst_pinyin = { 'a': '\u554a\u963f\u9515', 'ai': '\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u7839\u953f\u972d', 'an': '\u978d\u6c28\u5b89\u4ffa\u6309\u6697\u5cb8\u80fa\u6848\u8c19\u57ef\u63de\u72b4\u5eb5\u6849\u94f5\u9e4c\u9878\u9eef', 'ang': '\u80ae\u6602\u76ce', 'ao': '\u51f9\u6556\u71ac\u7ff1\u8884\u50b2\u5965\u61ca\u6fb3\u5773\u62d7\u55f7\u5662\u5c99\u5ed2\u9068\u5aaa\u9a9c\u8071\u87af\u93ca\u9ccc\u93d6', 'ba': '\u82ad\u634c\u6252\u53ed\u5427\u7b06\u516b\u75a4\u5df4\u62d4\u8dcb\u9776\u628a\u8019\u575d\u9738\u7f62\u7238\u8307\u83dd\u8406\u636d\u5c9c\u705e\u6777\u94af\u7c91\u9c85\u9b43', 'bai': '\u767d\u67cf\u767e\u6446\u4f70\u8d25\u62dc\u7a17\u859c\u63b0\u97b4', 'ban': '\u6591\u73ed\u642c\u6273\u822c\u9881\u677f\u7248\u626e\u62cc\u4f34\u74e3\u534a\u529e\u7eca\u962a\u5742\u8c73\u94a3\u7622\u764d\u8228', 'bang': '\u90a6\u5e2e\u6886\u699c\u8180\u7ed1\u68d2\u78c5\u868c\u9551\u508d\u8c24\u84a1\u8783', 'bao': '\u82de\u80de\u5305\u8912\u96f9\u4fdd\u5821\u9971\u5b9d\u62b1\u62a5\u66b4\u8c79\u9c8d\u7206\u52f9\u8446\u5b80\u5b62\u7172\u9e28\u8913\u8db5\u9f85', 'bo': '\u5265\u8584\u73bb\u83e0\u64ad\u62e8\u94b5\u6ce2\u535a\u52c3\u640f\u94c2\u7b94\u4f2f\u5e1b\u8236\u8116\u818a\u6e24\u6cca\u9a73\u4eb3\u8543\u5575\u997d\u6a97\u64d8\u7934\u94b9\u9e41\u7c38\u8ddb', 'bei': '\u676f\u7891\u60b2\u5351\u5317\u8f88\u80cc\u8d1d\u94a1\u500d\u72c8\u5907\u60eb\u7119\u88ab\u5b5b\u9642\u90b6\u57e4\u84d3\u5457\u602b\u6096\u789a\u9e4e\u8919\u943e', 'ben': '\u5954\u82ef\u672c\u7b28\u755a\u574c\u951b', 'beng': '\u5d29\u7ef7\u752d\u6cf5\u8e66\u8ff8\u552a\u5623\u750f', 'bi': '\u903c\u9f3b\u6bd4\u9119\u7b14\u5f7c\u78a7\u84d6\u853d\u6bd5\u6bd9\u6bd6\u5e01\u5e87\u75f9\u95ed\u655d\u5f0a\u5fc5\u8f9f\u58c1\u81c2\u907f\u965b\u5315\u4ef3\u4ffe\u8298\u835c\u8378\u5421\u54d4\u72f4\u5eb3\u610e\u6ed7\u6fde\u5f3c\u59a3\u5a62\u5b16\u74a7\u8d32\u7540\u94cb\u79d5\u88e8\u7b5a\u7b85\u7be6\u822d\u895e\u8df8\u9ac0', 'bian': '\u97ad\u8fb9\u7f16\u8d2c\u6241\u4fbf\u53d8\u535e\u8fa8\u8fa9\u8fab\u904d\u533e\u5f01\u82c4\u5fed\u6c74\u7f0f\u7178\u782d\u78a5\u7a39\u7a86\u8759\u7b3e\u9cca', 'biao': '\u6807\u5f6a\u8198\u8868\u5a4a\u9aa0\u98d1\u98d9\u98da\u706c\u9556\u9573\u762d\u88f1\u9cd4', 'bie': '\u9cd6\u618b\u522b\u762a\u8e69\u9cd8', 'bin': '\u5f6c\u658c\u6fd2\u6ee8\u5bbe\u6448\u50a7\u6d5c\u7f24\u73a2\u6ba1\u8191\u9554\u9acc\u9b13', 'bing': '\u5175\u51b0\u67c4\u4e19\u79c9\u997c\u70b3\u75c5\u5e76\u7980\u90b4\u6452\u7ee0\u678b\u69df\u71f9', 'bu': '\u6355\u535c\u54fa\u8865\u57e0\u4e0d\u5e03\u6b65\u7c3f\u90e8\u6016\u62ca\u535f\u900b\u74ff\u6661\u949a\u91ad', 'ca': '\u64e6\u5693\u7924', 'cai': '\u731c\u88c1\u6750\u624d\u8d22\u776c\u8e29\u91c7\u5f69\u83dc\u8521', 'can': '\u9910\u53c2\u8695\u6b8b\u60ed\u60e8\u707f\u9a96\u74a8\u7cb2\u9eea', 'cang': '\u82cd\u8231\u4ed3\u6ca7\u85cf\u4f27', 'cao': '\u64cd\u7cd9\u69fd\u66f9\u8349\u8279\u5608\u6f15\u87ac\u825a', 'ce': '\u5395\u7b56\u4fa7\u518c\u6d4b\u5202\u5e3b\u607b', 'ceng': '\u5c42\u8e6d\u564c', 'cha': '\u63d2\u53c9\u832c\u8336\u67e5\u78b4\u643d\u5bdf\u5c94\u5dee\u8be7\u7339\u9987\u6c4a\u59f9\u6748\u6942\u69ce\u6aab\u9497\u9538\u9572\u8869', 'chai': '\u62c6\u67f4\u8c7a\u4faa\u8308\u7625\u867f\u9f87', 'chan': '\u6400\u63ba\u8749\u998b\u8c17\u7f20\u94f2\u4ea7\u9610\u98a4\u5181\u8c04\u8c36\u8487\u5edb\u5fcf\u6f7a\u6fb6\u5b71\u7fbc\u5a75\u5b17\u9aa3\u89c7\u7985\u9561\u88e3\u87fe\u8e94', 'chang': '\u660c\u7316\u573a\u5c1d\u5e38\u957f\u507f\u80a0\u5382\u655e\u7545\u5531\u5021\u4f25\u9b2f\u82cc\u83d6\u5f9c\u6005\u60dd\u960a\u5a3c\u5ae6\u6636\u6c05\u9cb3', 'chao': '\u8d85\u6284\u949e\u671d\u5632\u6f6e\u5de2\u5435\u7092\u600a\u7ec9\u6641\u8016', 'che': '\u8f66\u626f\u64a4\u63a3\u5f7b\u6f88\u577c\u5c6e\u7817', 'chen': '\u90f4\u81e3\u8fb0\u5c18\u6668\u5ff1\u6c89\u9648\u8d81\u886c\u79f0\u8c0c\u62bb\u55d4\u5bb8\u741b\u6987\u809c\u80c2\u789c\u9f80', 'cheng': '\u6491\u57ce\u6a59\u6210\u5448\u4e58\u7a0b\u60e9\u6f84\u8bda\u627f\u901e\u9a8b\u79e4\u57d5\u5d4a\u5fb5\u6d48\u67a8\u67fd\u6a18\u665f\u584d\u77a0\u94d6\u88ce\u86cf\u9172', 'chi': '\u5403\u75f4\u6301\u5319\u6c60\u8fdf\u5f1b\u9a70\u803b\u9f7f\u4f88\u5c3a\u8d64\u7fc5\u65a5\u70bd\u50ba\u5880\u82aa\u830c\u640b\u53f1\u54e7\u557b\u55e4\u5f73\u996c\u6cb2\u5ab8\u6555\u80dd\u7719\u7735\u9e31\u761b\u892b\u86a9\u87ad\u7b1e\u7bea\u8c49\u8e05\u8e1f\u9b51', 'chong': '\u5145\u51b2\u866b\u5d07\u5ba0\u833a\u5fe1\u61a7\u94f3\u825f', 'chou': '\u62bd\u916c\u7574\u8e0c\u7a20\u6101\u7b79\u4ec7\u7ef8\u7785\u4e11\u4fe6\u5733\u5e31\u60c6\u6eb4\u59af\u7633\u96e0\u9c8b', 'chu': '\u81ed\u521d\u51fa\u6a71\u53a8\u8e87\u9504\u96cf\u6ec1\u9664\u695a\u7840\u50a8\u77d7\u6410\u89e6\u5904\u4e8d\u520d\u61b7\u7ecc\u6775\u696e\u6a17\u870d\u8e70\u9edc', 'chuan': '\u63e3\u5ddd\u7a7f\u693d\u4f20\u8239\u5598\u4e32\u63be\u821b\u60f4\u9044\u5ddb\u6c1a\u948f\u9569\u8221', 'chuang': '\u75ae\u7a97\u5e62\u5e8a\u95ef\u521b\u6006', 'chui': '\u5439\u708a\u6376\u9524\u5782\u9672\u68f0\u69cc', 'chun': '\u6625\u693f\u9187\u5507\u6df3\u7eaf\u8822\u4fc3\u83bc\u6c8c\u80ab\u6710\u9e51\u877d', 'chuo': '\u6233\u7ef0\u851f\u8fb6\u8f8d\u955e\u8e14\u9f8a', 'ci': '\u75b5\u8328\u78c1\u96cc\u8f9e\u6148\u74f7\u8bcd\u6b64\u523a\u8d50\u6b21\u8360\u5472\u5d6f\u9e5a\u8785\u7ccd\u8d91', 'cong': '\u806a\u8471\u56f1\u5306\u4ece\u4e1b\u506c\u82c1\u6dd9\u9aa2\u742e\u7481\u679e', 'cu': '\u51d1\u7c97\u918b\u7c07\u731d\u6b82\u8e59', 'cuan': '\u8e7f\u7be1\u7a9c\u6c46\u64ba\u6615\u7228', 'cui': '\u6467\u5d14\u50ac\u8106\u7601\u7cb9\u6dec\u7fe0\u8403\u60b4\u7480\u69b1\u96b9', 'cun': '\u6751\u5b58\u5bf8\u78cb\u5fd6\u76b4', 'cuo': '\u64ae\u6413\u63aa\u632b\u9519\u539d\u811e\u9509\u77ec\u75e4\u9e7e\u8e49\u8e9c', 'da': '\u642d\u8fbe\u7b54\u7629\u6253\u5927\u8037\u54d2\u55d2\u601b\u59b2\u75b8\u8921\u7b2a\u977c\u9791', 'dai': '\u5446\u6b79\u50a3\u6234\u5e26\u6b86\u4ee3\u8d37\u888b\u5f85\u902e\u6020\u57ed\u7519\u5454\u5cb1\u8fe8\u902f\u9a80\u7ed0\u73b3\u9edb', 'dan': '\u803d\u62c5\u4e39\u5355\u90f8\u63b8\u80c6\u65e6\u6c2e\u4f46\u60ee\u6de1\u8bde\u5f39\u86cb\u4ebb\u510b\u5369\u840f\u5556\u6fb9\u6a90\u6b9a\u8d55\u7708\u7605\u8043\u7baa', 'dang': '\u5f53\u6321\u515a\u8361\u6863\u8c20\u51fc\u83ea\u5b95\u7800\u94db\u88c6', 'dao': '\u5200\u6363\u8e48\u5012\u5c9b\u7977\u5bfc\u5230\u7a3b\u60bc\u9053\u76d7\u53e8\u5541\u5fc9\u6d2e\u6c18\u7118\u5fd1\u7e9b', 'de': '\u5fb7\u5f97\u7684\u951d', 'deng': '\u8e6c\u706f\u767b\u7b49\u77aa\u51f3\u9093\u5654\u5d9d\u6225\u78f4\u956b\u7c26', 'di': '\u5824\u4f4e\u6ef4\u8fea\u654c\u7b1b\u72c4\u6da4\u7fdf\u5ae1\u62b5\u5e95\u5730\u8482\u7b2c\u5e1d\u5f1f\u9012\u7f14\u6c10\u7c74\u8bcb\u8c1b\u90b8\u577b\u839c\u837b\u5600\u5a23\u67e2\u68e3\u89cc\u7825\u78b2\u7747\u955d\u7f9d\u9ab6', 'dian': '\u98a0\u6382\u6ec7\u7898\u70b9\u5178\u975b\u57ab\u7535\u4f43\u7538\u5e97\u60e6\u5960\u6dc0\u6bbf\u4e36\u963d\u576b\u57dd\u5dc5\u73b7\u765c\u766b\u7c1f\u8e2e', 'diao': '\u7889\u53fc\u96d5\u51cb\u5201\u6389\u540a\u9493\u8c03\u8f7a\u94de\u8729\u7c9c\u8c82', 'die': '\u8dcc\u7239\u789f\u8776\u8fed\u8c0d\u53e0\u4f5a\u57a4\u581e\u63f2\u558b\u6e2b\u8f76\u7252\u74de\u8936\u800b\u8e40\u9cbd\u9cce', 'ding': '\u4e01\u76ef\u53ee\u9489\u9876\u9f0e\u952d\u5b9a\u8ba2\u4e22\u4ec3\u5576\u738e\u815a\u7887\u753a\u94e4\u7594\u8035\u914a', 'dong': '\u4e1c\u51ac\u8463\u61c2\u52a8\u680b\u4f97\u606b\u51bb\u6d1e\u578c\u549a\u5cbd\u5cd2\u5902\u6c21\u80e8\u80f4\u7850\u9e2b', 'dou': '\u515c\u6296\u6597\u9661\u8c46\u9017\u75d8\u8538\u94ad\u7aa6\u7aac\u86aa\u7bfc\u9161', 'du': '\u90fd\u7763\u6bd2\u728a\u72ec\u8bfb\u5835\u7779\u8d4c\u675c\u9540\u809a\u5ea6\u6e21\u5992\u828f\u561f\u6e0e\u691f\u6a50\u724d\u8839\u7b03\u9ad1\u9ee9', 'duan': '\u7aef\u77ed\u953b\u6bb5\u65ad\u7f0e\u5f56\u6934\u7145\u7c16', 'dui': '\u5806\u5151\u961f\u5bf9\u603c\u619d\u7893', 'dun': '\u58a9\u5428\u8e72\u6566\u987f\u56e4\u949d\u76fe\u9041\u7096\u7818\u7905\u76f9\u9566\u8db8', 'duo': '\u6387\u54c6\u591a\u593a\u579b\u8eb2\u6735\u8dfa\u8235\u5241\u60f0\u5815\u5484\u54da\u7f0d\u67c1\u94ce\u88f0\u8e31', 'e': '\u86fe\u5ce8\u9e45\u4fc4\u989d\u8bb9\u5a25\u6076\u5384\u627c\u904f\u9102\u997f\u5669\u8c14\u57a9\u57ad\u82ca\u83aa\u843c\u5443\u6115\u5c59\u5a40\u8f6d\u66f7\u816d\u786a\u9507\u9537\u9e57\u989a\u9cc4', 'en': '\u6069\u84bd\u6441\u5514\u55ef', 'er': '\u800c\u513f\u8033\u5c14\u9975\u6d31\u4e8c\u8d30\u8fe9\u73e5\u94d2\u9e38\u9c95', 'fa': '\u53d1\u7f5a\u7b4f\u4f10\u4e4f\u9600\u6cd5\u73d0\u57a1\u781d', 'fan': '\u85e9\u5e06\u756a\u7ffb\u6a0a\u77fe\u9492\u7e41\u51e1\u70e6\u53cd\u8fd4\u8303\u8d29\u72af\u996d\u6cdb\u8629\u5e61\u72ad\u68b5\u6535\u71d4\u7548\u8e6f', 'fang': '\u574a\u82b3\u65b9\u80aa\u623f\u9632\u59a8\u4eff\u8bbf\u7eba\u653e\u531a\u90a1\u5f77\u94ab\u822b\u9c82', 'fei': '\u83f2\u975e\u5561\u98de\u80a5\u532a\u8bfd\u5420\u80ba\u5e9f\u6cb8\u8d39\u82be\u72d2\u60b1\u6ddd\u5983\u7ecb\u7eef\u69a7\u8153\u6590\u6249\u7953\u7829\u9544\u75f1\u871a\u7bda\u7fe1\u970f\u9cb1', 'fen': '\u82ac\u915a\u5429\u6c1b\u5206\u7eb7\u575f\u711a\u6c7e\u7c89\u594b\u4efd\u5fff\u6124\u7caa\u507e\u7035\u68fc\u610d\u9cbc\u9f22', 'feng': '\u4e30\u5c01\u67ab\u8702\u5cf0\u950b\u98ce\u75af\u70fd\u9022\u51af\u7f1d\u8bbd\u5949\u51e4\u4ff8\u9146\u8451\u6ca3\u781c', 'fu': '\u4f5b\u5426\u592b\u6577\u80a4\u5b75\u6276\u62c2\u8f90\u5e45\u6c1f\u7b26\u4f0f\u4fd8\u670d\u6d6e\u6daa\u798f\u88b1\u5f17\u752b\u629a\u8f85\u4fef\u91dc\u65a7\u812f\u8151\u5e9c\u8150\u8d74\u526f\u8986\u8d4b\u590d\u5085\u4ed8\u961c\u7236\u8179\u8d1f\u5bcc\u8ba3\u9644\u5987\u7f1a\u5490\u5310\u51eb\u90db\u8299\u82fb\u832f\u83a9\u83d4\u544b\u5e5e\u6ecf\u8274\u5b5a\u9a78\u7ec2\u6874\u8d59\u9efb\u9efc\u7f58\u7a03\u99a5\u864d\u86a8\u8709\u8760\u876e\u9eb8\u8dba\u8dd7\u9cc6', 'ga': '\u5676\u560e\u86e4\u5c2c\u5477\u5c15\u5c1c\u65ee\u9486', 'gai': '\u8be5\u6539\u6982\u9499\u76d6\u6e89\u4e10\u9654\u5793\u6224\u8d45\u80f2', 'gan': '\u5e72\u7518\u6746\u67d1\u7aff\u809d\u8d76\u611f\u79c6\u6562\u8d63\u5769\u82f7\u5c34\u64c0\u6cd4\u6de6\u6f89\u7ec0\u6a44\u65f0\u77f8\u75b3\u9150', 'gang': '\u5188\u521a\u94a2\u7f38\u809b\u7eb2\u5c97\u6e2f\u6206\u7f61\u9883\u7b7b', 'gong': '\u6760\u5de5\u653b\u529f\u606d\u9f9a\u4f9b\u8eac\u516c\u5bab\u5f13\u5de9\u6c5e\u62f1\u8d21\u5171\u857b\u5efe\u54a3\u73d9\u80b1\u86a3\u86e9\u89e5', 'gao': '\u7bd9\u768b\u9ad8\u818f\u7f94\u7cd5\u641e\u9550\u7a3f\u544a\u777e\u8bf0\u90dc\u84bf\u85c1\u7f1f\u69d4\u69c1\u6772\u9506', 'ge': '\u54e5\u6b4c\u6401\u6208\u9e3d\u80f3\u7599\u5272\u9769\u845b\u683c\u9601\u9694\u94ec\u4e2a\u5404\u9b32\u4ee1\u54ff\u5865\u55dd\u7ea5\u643f\u8188\u784c\u94ea\u9549\u88bc\u988c\u867c\u8238\u9abc\u9ac2', 'gei': '\u7ed9', 'gen': '\u6839\u8ddf\u4e98\u831b\u54cf\u826e', 'geng': '\u8015\u66f4\u5e9a\u7fb9\u57c2\u803f\u6897\u54fd\u8d53\u9ca0', 'gou': '\u94a9\u52fe\u6c9f\u82df\u72d7\u57a2\u6784\u8d2d\u591f\u4f5d\u8bdf\u5ca3\u9058\u5abe\u7f11\u89cf\u5f40\u9e32\u7b31\u7bdd\u97b2', 'gu': '\u8f9c\u83c7\u5495\u7b8d\u4f30\u6cbd\u5b64\u59d1\u9f13\u53e4\u86ca\u9aa8\u8c37\u80a1\u6545\u987e\u56fa\u96c7\u560f\u8bc2\u83f0\u54cc\u5d2e\u6c69\u688f\u8f71\u726f\u727f\u80cd\u81cc\u6bc2\u77bd\u7f5f\u94b4\u9522\u74e0\u9e2a\u9e44\u75fc\u86c4\u9164\u89da\u9cb4\u9ab0\u9e58', 'gua': '\u522e\u74dc\u5250\u5be1\u6302\u8902\u5366\u8bd6\u5471\u681d\u9e39', 'guai': '\u4e56\u62d0\u602a\u54d9', 'guan': '\u68fa\u5173\u5b98\u51a0\u89c2\u7ba1\u9986\u7f50\u60ef\u704c\u8d2f\u500c\u839e\u63bc\u6dab\u76e5\u9e73\u9ccf', 'guang': '\u5149\u5e7f\u901b\u72b7\u6844\u80f1\u7592', 'gui': '\u7470\u89c4\u572d\u7845\u5f52\u9f9f\u95fa\u8f68\u9b3c\u8be1\u7678\u6842\u67dc\u8dea\u8d35\u523d\u5326\u523f\u5e8b\u5b84\u59ab\u6867\u7085\u6677\u7688\u7c0b\u9c91\u9cdc', 'gun': '\u8f8a\u6eda\u68cd\u4e28\u886e\u7ef2\u78d9\u9ca7', 'guo': '\u9505\u90ed\u56fd\u679c\u88f9\u8fc7\u9998\u8803\u57da\u63b4\u5459\u56d7\u5e3c\u5d1e\u7313\u6901\u8662\u951e\u8052\u872e\u873e\u8748', 'ha': '\u54c8', 'hai': '\u9ab8\u5b69\u6d77\u6c26\u4ea5\u5bb3\u9a87\u54b4\u55e8\u988f\u91a2', 'han': '\u9163\u61a8\u90af\u97e9\u542b\u6db5\u5bd2\u51fd\u558a\u7f55\u7ff0\u64bc\u634d\u65f1\u61be\u608d\u710a\u6c57\u6c49\u9097\u83e1\u6496\u961a\u701a\u6657\u7113\u9894\u86b6\u9f3e', 'hen': '\u592f\u75d5\u5f88\u72e0\u6068', 'hang': '\u676d\u822a\u6c86\u7ed7\u73e9\u6841', 'hao': '\u58d5\u568e\u8c6a\u6beb\u90dd\u597d\u8017\u53f7\u6d69\u8585\u55e5\u5686\u6fe0\u704f\u660a\u7693\u98a2\u869d', 'he': '\u5475\u559d\u8377\u83cf\u6838\u79be\u548c\u4f55\u5408\u76d2\u8c89\u9602\u6cb3\u6db8\u8d6b\u8910\u9e64\u8d3a\u8bc3\u52be\u58d1\u85ff\u55d1\u55ec\u9616\u76cd\u86b5\u7fee', 'hei': '\u563f\u9ed1', 'heng': '\u54fc\u4ea8\u6a2a\u8861\u6052\u8a07\u8605', 'hong': '\u8f70\u54c4\u70d8\u8679\u9e3f\u6d2a\u5b8f\u5f18\u7ea2\u9ec9\u8ba7\u836d\u85a8\u95f3\u6cd3', 'hou': '\u5589\u4faf\u7334\u543c\u539a\u5019\u540e\u5820\u5f8c\u9005\u760a\u7bcc\u7cc7\u9c8e\u9aba', 'hu': '\u547c\u4e4e\u5ffd\u745a\u58f6\u846b\u80e1\u8774\u72d0\u7cca\u6e56\u5f27\u864e\u552c\u62a4\u4e92\u6caa\u6237\u51b1\u553f\u56eb\u5cb5\u7322\u6019\u60da\u6d52\u6ef9\u7425\u69f2\u8f77\u89f3\u70c0\u7173\u623d\u6248\u795c\u9e55\u9e71\u7b0f\u9190\u659b', 'hua': '\u82b1\u54d7\u534e\u733e\u6ed1\u753b\u5212\u5316\u8bdd\u5290\u6d4d\u9a85\u6866\u94e7\u7a1e', 'huai': '\u69d0\u5f8a\u6000\u6dee\u574f\u8fd8\u8e1d', 'huan': '\u6b22\u73af\u6853\u7f13\u6362\u60a3\u5524\u75ea\u8c62\u7115\u6da3\u5ba6\u5e7b\u90c7\u5942\u57b8\u64d0\u571c\u6d39\u6d63\u6f36\u5bf0\u902d\u7f33\u953e\u9ca9\u9b1f', 'huang': '\u8352\u614c\u9ec4\u78fa\u8757\u7c27\u7687\u51f0\u60f6\u714c\u6643\u5e4c\u604d\u8c0e\u968d\u5fa8\u6e5f\u6f62\u9051\u749c\u8093\u7640\u87e5\u7bc1\u9cc7', 'hui': '\u7070\u6325\u8f89\u5fbd\u6062\u86d4\u56de\u6bc1\u6094\u6167\u5349\u60e0\u6666\u8d3f\u79fd\u4f1a\u70e9\u6c47\u8bb3\u8bf2\u7ed8\u8bd9\u8334\u835f\u8559\u54d5\u5599\u96b3\u6d04\u5f57\u7f0b\u73f2\u6656\u605a\u867a\u87ea\u9ebe', 'hun': '\u8364\u660f\u5a5a\u9b42\u6d51\u6df7\u8be8\u9984\u960d\u6eb7\u7f17', 'huo': '\u8c41\u6d3b\u4f19\u706b\u83b7\u6216\u60d1\u970d\u8d27\u7978\u6509\u56af\u5925\u94ac\u952a\u956c\u8020\u8816', 'ji': '\u51fb\u573e\u57fa\u673a\u7578\u7a3d\u79ef\u7b95\u808c\u9965\u8ff9\u6fc0\u8ba5\u9e21\u59ec\u7ee9\u7f09\u5409\u6781\u68d8\u8f91\u7c4d\u96c6\u53ca\u6025\u75be\u6c72\u5373\u5ac9\u7ea7\u6324\u51e0\u810a\u5df1\u84df\u6280\u5180\u5b63\u4f0e\u796d\u5242\u60b8\u6d4e\u5bc4\u5bc2\u8ba1\u8bb0\u65e2\u5fcc\u9645\u5993\u7ee7\u7eaa\u5c45\u4e0c\u4e69\u525e\u4f76\u4f74\u8114\u58bc\u82a8\u82b0\u8401\u84ba\u857a\u638e\u53fd\u54ad\u54dc\u5527\u5c8c\u5d74\u6d0e\u5f50\u5c50\u9aa5\u757f\u7391\u696b\u6b9b\u621f\u6222\u8d4d\u89ca\u7284\u9f51\u77f6\u7f81\u5d47\u7a37\u7620\u7635\u866e\u7b08\u7b04\u66a8\u8dfb\u8dfd\u9701\u9c9a\u9cab\u9afb\u9e82', 'jia': '\u5609\u67b7\u5939\u4f73\u5bb6\u52a0\u835a\u988a\u8d3e\u7532\u94be\u5047\u7a3c\u4ef7\u67b6\u9a7e\u5ac1\u4f3d\u90cf\u62ee\u5cac\u6d43\u8fe6\u73c8\u621b\u80db\u605d\u94d7\u9553\u75c2\u86f1\u7b33\u8888\u8dcf', 'jian': '\u6b7c\u76d1\u575a\u5c16\u7b3a\u95f4\u714e\u517c\u80a9\u8270\u5978\u7f04\u8327\u68c0\u67ec\u78b1\u7877\u62e3\u6361\u7b80\u4fed\u526a\u51cf\u8350\u69db\u9274\u8df5\u8d31\u89c1\u952e\u7bad\u4ef6\u5065\u8230\u5251\u996f\u6e10\u6e85\u6da7\u5efa\u50ed\u8c0f\u8c2b\u83c5\u84b9\u641b\u56dd\u6e54\u8e47\u8b07\u7f23\u67a7\u67d9\u6957\u620b\u622c\u726e\u728d\u6bfd\u8171\u7751\u950f\u9e63\u88e5\u7b15\u7bb4\u7fe6\u8dbc\u8e3a\u9ca3\u97af', 'jiang': '\u50f5\u59dc\u5c06\u6d46\u6c5f\u7586\u848b\u6868\u5956\u8bb2\u5320\u9171\u964d\u8333\u6d1a\u7edb\u7f30\u729f\u7913\u8029\u7ce8\u8c47', 'jiao': '\u8549\u6912\u7901\u7126\u80f6\u4ea4\u90ca\u6d47\u9a84\u5a07\u56bc\u6405\u94f0\u77eb\u4fa5\u811a\u72e1\u89d2\u997a\u7f34\u7ede\u527f\u6559\u9175\u8f7f\u8f83\u53eb\u4f7c\u50ec\u832d\u6322\u564d\u5ce4\u5fbc\u59e3\u7e9f\u656b\u768e\u9e6a\u86df\u91ae\u8de4\u9c9b', 'jie': '\u7a96\u63ed\u63a5\u7686\u79f8\u8857\u9636\u622a\u52ab\u8282\u6854\u6770\u6377\u776b\u7aed\u6d01\u7ed3\u89e3\u59d0\u6212\u85c9\u82a5\u754c\u501f\u4ecb\u75a5\u8beb\u5c4a\u5048\u8ba6\u8bd8\u5588\u55df\u736c\u5a55\u5b51\u6840\u7352\u78a3\u9534\u7596\u88b7\u9889\u86a7\u7faf\u9c92\u9ab1\u9aeb', 'jin': '\u5dfe\u7b4b\u65a4\u91d1\u4eca\u6d25\u895f\u7d27\u9526\u4ec5\u8c28\u8fdb\u9773\u664b\u7981\u8fd1\u70ec\u6d78\u5c3d\u537a\u8369\u5807\u5664\u9991\u5ed1\u5997\u7f19\u747e\u69ff\u8d46\u89d0\u9485\u9513\u887f\u77dc', 'jing': '\u52b2\u8346\u5162\u830e\u775b\u6676\u9cb8\u4eac\u60ca\u7cbe\u7cb3\u7ecf\u4e95\u8b66\u666f\u9888\u9759\u5883\u656c\u955c\u5f84\u75c9\u9756\u7adf\u7ade\u51c0\u522d\u5106\u9631\u83c1\u734d\u61ac\u6cfe\u8ff3\u5f2a\u5a67\u80bc\u80eb\u8148\u65cc', 'jiong': '\u70af\u7a98\u5182\u8fe5\u6243', 'jiu': '\u63ea\u7a76\u7ea0\u7396\u97ed\u4e45\u7078\u4e5d\u9152\u53a9\u6551\u65e7\u81fc\u8205\u548e\u5c31\u759a\u50e6\u557e\u9604\u67e9\u6855\u9e6b\u8d73\u9b0f', 'ju': '\u97a0\u62d8\u72d9\u75bd\u9a79\u83ca\u5c40\u5480\u77e9\u4e3e\u6cae\u805a\u62d2\u636e\u5de8\u5177\u8ddd\u8e1e\u952f\u4ff1\u53e5\u60e7\u70ac\u5267\u5028\u8bb5\u82e3\u82f4\u8392\u63ac\u907d\u5c66\u741a\u67b8\u6910\u6998\u6989\u6a58\u728b\u98d3\u949c\u9514\u7aad\u88fe\u8d84\u91b5\u8e3d\u9f83\u96ce\u97ab', 'juan': '\u6350\u9e43\u5a1f\u5026\u7737\u5377\u7ee2\u9104\u72f7\u6d93\u684a\u8832\u9529\u954c\u96bd', 'jue': '\u6485\u652b\u6289\u6398\u5014\u7235\u89c9\u51b3\u8bc0\u7edd\u53a5\u5282\u8c32\u77cd\u8568\u5658\u5d1b\u7357\u5b53\u73cf\u6877\u6a5b\u721d\u9562\u8e76\u89d6', 'jun': '\u5747\u83cc\u94a7\u519b\u541b\u5cfb\u4fca\u7ae3\u6d5a\u90e1\u9a8f\u6343\u72fb\u76b2\u7b60\u9e87', 'ka': '\u5580\u5496\u5361\u4f67\u5494\u80e9', 'ke': '\u54af\u5777\u82db\u67ef\u68f5\u78d5\u9897\u79d1\u58f3\u54b3\u53ef\u6e34\u514b\u523b\u5ba2\u8bfe\u5ca2\u606a\u6e98\u9a92\u7f02\u73c2\u8f72\u6c2a\u778c\u94b6\u75b4\u7aa0\u874c\u9ac1', 'kai': '\u5f00\u63e9\u6977\u51ef\u6168\u5240\u57b2\u8488\u5ffe\u607a\u94e0\u950e', 'kan': '\u520a\u582a\u52d8\u574e\u780d\u770b\u4f83\u51f5\u83b0\u83b6\u6221\u9f9b\u77b0', 'kang': '\u5eb7\u6177\u7ce0\u625b\u6297\u4ea2\u7095\u5751\u4f09\u95f6\u94aa', 'kao': '\u8003\u62f7\u70e4\u9760\u5c3b\u6832\u7292\u94d0', 'ken': '\u80af\u5543\u57a6\u6073\u57a0\u88c9\u9880', 'keng': '\u542d\u5fd0\u94ff', 'kong': '\u7a7a\u6050\u5b54\u63a7\u5025\u5d06\u7b9c', 'kou': '\u62a0\u53e3\u6263\u5bc7\u82a4\u853b\u53e9\u770d\u7b58', 'ku': '\u67af\u54ed\u7a9f\u82e6\u9177\u5e93\u88e4\u5233\u5800\u55be\u7ed4\u9ab7', 'kua': '\u5938\u57ae\u630e\u8de8\u80ef\u4f89', 'kuai': '\u5757\u7b77\u4fa9\u5feb\u84af\u90d0\u8489\u72ef\u810d', 'kuan': '\u5bbd\u6b3e\u9acb', 'kuang': '\u5321\u7b50\u72c2\u6846\u77ff\u7736\u65f7\u51b5\u8bd3\u8bf3\u909d\u5739\u593c\u54d0\u7ea9\u8d36', 'kui': '\u4e8f\u76d4\u5cbf\u7aa5\u8475\u594e\u9b41\u5080\u9988\u6127\u6e83\u9997\u532e\u5914\u9697\u63c6\u55b9\u559f\u609d\u6126\u9615\u9035\u668c\u777d\u8069\u8770\u7bd1\u81fe\u8dec', 'kun': '\u5764\u6606\u6346\u56f0\u6083\u9603\u7428\u951f\u918c\u9cb2\u9ae1', 'kuo': '\u62ec\u6269\u5ed3\u9614\u86de', 'la': '\u5783\u62c9\u5587\u8721\u814a\u8fa3\u5566\u524c\u647a\u908b\u65ef\u782c\u760c', 'lai': '\u83b1\u6765\u8d56\u5d03\u5f95\u6d9e\u6fd1\u8d49\u7750\u94fc\u765e\u7c41', 'lan': '\u84dd\u5a6a\u680f\u62e6\u7bee\u9611\u5170\u6f9c\u8c30\u63fd\u89c8\u61d2\u7f06\u70c2\u6ee5\u5549\u5c9a\u61d4\u6f24\u6984\u6593\u7f71\u9567\u8934', 'lang': '\u7405\u6994\u72fc\u5eca\u90ce\u6717\u6d6a\u83a8\u8497\u5577\u9606\u9512\u7a02\u8782', 'lao': '\u635e\u52b3\u7262\u8001\u4f6c\u59e5\u916a\u70d9\u6d9d\u5520\u5d02\u6833\u94d1\u94f9\u75e8\u91aa', 'le': '\u52d2\u4e50\u808b\u4ec2\u53fb\u561e\u6cd0\u9cd3', 'lei': '\u96f7\u956d\u857e\u78ca\u7d2f\u5121\u5792\u64c2\u7c7b\u6cea\u7fb8\u8bd4\u837d\u54a7\u6f2f\u5ad8\u7f27\u6a91\u8012\u9179', 'ling': '\u68f1\u51b7\u62ce\u73b2\u83f1\u96f6\u9f84\u94c3\u4f36\u7f9a\u51cc\u7075\u9675\u5cad\u9886\u53e6\u4ee4\u9143\u5844\u82d3\u5464\u56f9\u6ce0\u7eeb\u67c3\u68c2\u74f4\u8046\u86c9\u7fce\u9cae', 'leng': '\u695e\u6123', 'li': '\u5398\u68a8\u7281\u9ece\u7bf1\u72f8\u79bb\u6f13\u7406\u674e\u91cc\u9ca4\u793c\u8389\u8354\u540f\u6817\u4e3d\u5389\u52b1\u783e\u5386\u5229\u5088\u4f8b\u4fd0\u75e2\u7acb\u7c92\u6ca5\u96b6\u529b\u7483\u54e9\u4fea\u4fda\u90e6\u575c\u82c8\u8385\u84e0\u85dc\u6369\u5456\u5533\u55b1\u7301\u6ea7\u6fa7\u9026\u5a0c\u5ae0\u9a8a\u7f21\u73de\u67a5\u680e\u8f79\u623e\u783a\u8a48\u7f79\u9502\u9e42\u75a0\u75ac\u86ce\u870a\u8821\u7b20\u7be5\u7c9d\u91b4\u8dde\u96f3\u9ca1\u9ce2\u9ee7', 'lian': '\u4fe9\u8054\u83b2\u8fde\u9570\u5ec9\u601c\u6d9f\u5e18\u655b\u8138\u94fe\u604b\u70bc\u7ec3\u631b\u8539\u5941\u6f4b\u6fc2\u5a08\u740f\u695d\u6b93\u81c1\u81a6\u88e2\u880a\u9ca2', 'liang': '\u7cae\u51c9\u6881\u7cb1\u826f\u4e24\u8f86\u91cf\u667e\u4eae\u8c05\u589a\u690b\u8e09\u9753\u9b49', 'liao': '\u64a9\u804a\u50da\u7597\u71ce\u5be5\u8fbd\u6f66\u4e86\u6482\u9563\u5ed6\u6599\u84fc\u5c25\u5639\u7360\u5bee\u7f2d\u948c\u9e69\u8022', 'lie': '\u5217\u88c2\u70c8\u52a3\u730e\u51bd\u57d2\u6d0c\u8d94\u8e90\u9b23', 'lin': '\u7433\u6797\u78f7\u9716\u4e34\u90bb\u9cde\u6dcb\u51db\u8d41\u541d\u853a\u5d99\u5eea\u9074\u6aa9\u8f9a\u77b5\u7cbc\u8e8f\u9e9f', 'liu': '\u6e9c\u7409\u69b4\u786b\u998f\u7559\u5218\u7624\u6d41\u67f3\u516d\u62a1\u507b\u848c\u6cd6\u6d4f\u905b\u9a9d\u7efa\u65d2\u7198\u950d\u954f\u9e68\u938f', 'long': '\u9f99\u804b\u5499\u7b3c\u7abf\u9686\u5784\u62e2\u9647\u5f04\u5785\u830f\u6cf7\u73d1\u680a\u80e7\u783b\u7643', 'lou': '\u697c\u5a04\u6402\u7bd3\u6f0f\u964b\u55bd\u5d5d\u9542\u7618\u8027\u877c\u9ac5', 'lu': '\u82a6\u5362\u9885\u5e90\u7089\u63b3\u5364\u864f\u9c81\u9e93\u788c\u9732\u8def\u8d42\u9e7f\u6f5e\u7984\u5f55\u9646\u622e\u5786\u6445\u64b8\u565c\u6cf8\u6e0c\u6f09\u7490\u680c\u6a79\u8f73\u8f82\u8f98\u6c07\u80ea\u9565\u9e2c\u9e6d\u7c0f\u823b\u9c88', 'lv': '\u9a74\u5415\u94dd\u4fa3\u65c5\u5c65\u5c61\u7f15\u8651\u6c2f\u5f8b\u7387\u6ee4\u7eff\u634b\u95fe\u6988\u8182\u7a06\u891b', 'luan': '\u5ce6\u5b6a\u6ee6\u5375\u4e71\u683e\u9e3e\u92ae', 'lue': '\u63a0\u7565\u950a', 'lun': '\u8f6e\u4f26\u4ed1\u6ca6\u7eb6\u8bba\u56f5', 'luo': '\u841d\u87ba\u7f57\u903b\u9523\u7ba9\u9aa1\u88f8\u843d\u6d1b\u9a86\u7edc\u502e\u8366\u645e\u7321\u6cfa\u6924\u8136\u9559\u7630\u96d2', 'ma': '\u5988\u9ebb\u739b\u7801\u8682\u9a6c\u9a82\u561b\u5417\u551b\u72b8\u5b37\u6769\u9ebd', 'mai': '\u57cb\u4e70\u9ea6\u5356\u8fc8\u8109\u52a2\u836c\u54aa\u973e', 'man': '\u7792\u9992\u86ee\u6ee1\u8513\u66fc\u6162\u6f2b\u8c29\u5881\u5e54\u7f26\u71b3\u9558\u989f\u87a8\u9cd7\u9794', 'mang': '\u8292\u832b\u76f2\u5fd9\u83bd\u9099\u6f2d\u6726\u786d\u87d2', 'meng': '\u6c13\u840c\u8499\u6aac\u76df\u9530\u731b\u68a6\u5b5f\u52d0\u750d\u77a2\u61f5\u791e\u867b\u8722\u8813\u824b\u8268\u9efe', 'miao': '\u732b\u82d7\u63cf\u7784\u85d0\u79d2\u6e3a\u5e99\u5999\u55b5\u9088\u7f08\u7f2a\u676a\u6dfc\u7707\u9e4b\u8731', 'mao': '\u8305\u951a\u6bdb\u77db\u94c6\u536f\u8302\u5192\u5e3d\u8c8c\u8d38\u4f94\u88a4\u52d6\u8306\u5cc1\u7441\u6634\u7266\u8004\u65c4\u61cb\u7780\u86d1\u8765\u87ca\u9ae6', 'me': '\u4e48', 'mei': '\u73ab\u679a\u6885\u9176\u9709\u7164\u6ca1\u7709\u5a92\u9541\u6bcf\u7f8e\u6627\u5bd0\u59b9\u5a9a\u5776\u8393\u5d4b\u7338\u6d7c\u6e44\u6963\u9545\u9e5b\u8882\u9b45', 'men': '\u95e8\u95f7\u4eec\u626a\u739f\u7116\u61d1\u9494', 'mi': '\u772f\u919a\u9761\u7cdc\u8ff7\u8c1c\u5f25\u7c73\u79d8\u89c5\u6ccc\u871c\u5bc6\u5e42\u8288\u5196\u8c27\u863c\u5627\u7315\u736f\u6c68\u5b93\u5f2d\u8112\u6549\u7cf8\u7e3b\u9e8b', 'mian': '\u68c9\u7720\u7ef5\u5195\u514d\u52c9\u5a29\u7f05\u9762\u6c94\u6e4e\u817c\u7704', 'mie': '\u8511\u706d\u54a9\u881b\u7bfe', 'min': '\u6c11\u62bf\u76bf\u654f\u60af\u95fd\u82e0\u5cb7\u95f5\u6cef\u73c9', 'ming': '\u660e\u879f\u9e23\u94ed\u540d\u547d\u51a5\u8317\u6e9f\u669d\u7791\u9169', 'miu': '\u8c2c', 'mo': '\u6478\u6479\u8611\u6a21\u819c\u78e8\u6469\u9b54\u62b9\u672b\u83ab\u58a8\u9ed8\u6cab\u6f20\u5bde\u964c\u8c1f\u8309\u84e6\u998d\u5aeb\u9546\u79e3\u763c\u8031\u87c6\u8c8a\u8c98', 'mou': '\u8c0b\u725f\u67d0\u53b6\u54de\u5a7a\u7738\u936a', 'mu': '\u62c7\u7261\u4ea9\u59c6\u6bcd\u5893\u66ae\u5e55\u52df\u6155\u6728\u76ee\u7766\u7267\u7a46\u4eeb\u82dc\u5452\u6c90\u6bea\u94bc', 'na': '\u62ff\u54ea\u5450\u94a0\u90a3\u5a1c\u7eb3\u5185\u637a\u80ad\u954e\u8872\u7bac', 'nai': '\u6c16\u4e43\u5976\u8010\u5948\u9f10\u827f\u8418\u67f0', 'nan': '\u5357\u7537\u96be\u56ca\u5583\u56e1\u6960\u8169\u877b\u8d67', 'nao': '\u6320\u8111\u607c\u95f9\u5b6c\u57b4\u7331\u7459\u7847\u94d9\u86f2', 'ne': '\u6dd6\u5462\u8bb7', 'nei': '\u9981', 'nen': '\u5ae9\u80fd\u6798\u6041', 'ni': '\u59ae\u9713\u502a\u6ce5\u5c3c\u62df\u4f60\u533f\u817b\u9006\u6eba\u4f32\u576d\u730a\u6029\u6ee0\u6635\u65ce\u7962\u615d\u7768\u94cc\u9cb5', 'nian': '\u852b\u62c8\u5e74\u78be\u64b5\u637b\u5ff5\u5eff\u8f87\u9ecf\u9c87\u9cb6', 'niang': '\u5a18\u917f', 'niao': '\u9e1f\u5c3f\u8311\u5b32\u8132\u8885', 'nie': '\u634f\u8042\u5b7d\u556e\u954a\u954d\u6d85\u4e5c\u9667\u8616\u55eb\u8080\u989e\u81ec\u8e51', 'nin': '\u60a8\u67e0', 'ning': '\u72de\u51dd\u5b81\u62e7\u6cde\u4f5e\u84e5\u549b\u752f\u804d', 'niu': '\u725b\u626d\u94ae\u7ebd\u72c3\u5ff8\u599e\u86b4', 'nong': '\u8113\u6d53\u519c\u4fac', 'nu': '\u5974\u52aa\u6012\u5476\u5e11\u5f29\u80ec\u5b65\u9a7d', 'nv': '\u5973\u6067\u9495\u8844', 'nuan': '\u6696', 'nuenue': '\u8650', 'nue': '\u759f\u8c11', 'nuo': '\u632a\u61e6\u7cef\u8bfa\u50a9\u6426\u558f\u9518', 'ou': '\u54e6\u6b27\u9e25\u6bb4\u85d5\u5455\u5076\u6ca4\u6004\u74ef\u8026', 'pa': '\u556a\u8db4\u722c\u5e15\u6015\u7436\u8469\u7b62', 'pai': '\u62cd\u6392\u724c\u5f98\u6e43\u6d3e\u4ff3\u848e', 'pan': '\u6500\u6f58\u76d8\u78d0\u76fc\u7554\u5224\u53db\u723f\u6cee\u88a2\u897b\u87e0\u8e52', 'pang': '\u4e53\u5e9e\u65c1\u802a\u80d6\u6ec2\u9004', 'pao': '\u629b\u5486\u5228\u70ae\u888d\u8dd1\u6ce1\u530f\u72cd\u5e96\u812c\u75b1', 'pei': '\u5478\u80da\u57f9\u88f4\u8d54\u966a\u914d\u4f69\u6c9b\u638a\u8f94\u5e14\u6de0\u65c6\u952b\u9185\u9708', 'pen': '\u55b7\u76c6\u6e53', 'peng': '\u7830\u62a8\u70f9\u6f8e\u5f6d\u84ec\u68da\u787c\u7bf7\u81a8\u670b\u9e4f\u6367\u78b0\u576f\u580b\u562d\u6026\u87db', 'pi': '\u7812\u9739\u6279\u62ab\u5288\u7435\u6bd7\u5564\u813e\u75b2\u76ae\u5339\u75de\u50fb\u5c41\u8b6c\u4e15\u9674\u90b3\u90eb\u572e\u9f19\u64d7\u567c\u5e80\u5ab2\u7eb0\u6787\u7513\u7765\u7f74\u94cd\u75e6\u7656\u758b\u868d\u8c94', 'pian': '\u7bc7\u504f\u7247\u9a97\u8c1d\u9a88\u728f\u80fc\u890a\u7fe9\u8e41', 'piao': '\u98d8\u6f02\u74e2\u7968\u527d\u560c\u5ad6\u7f25\u6b8d\u779f\u87b5', 'pie': '\u6487\u77a5\u4e3f\u82e4\u6c15', 'pin': '\u62fc\u9891\u8d2b\u54c1\u8058\u62da\u59d8\u5ad4\u6980\u725d\u98a6', 'ping': '\u4e52\u576a\u82f9\u840d\u5e73\u51ed\u74f6\u8bc4\u5c4f\u4fdc\u5a09\u67b0\u9c86', 'po': '\u5761\u6cfc\u9887\u5a46\u7834\u9b44\u8feb\u7c95\u53f5\u9131\u6ea5\u73c0\u948b\u94b7\u76a4\u7b38', 'pou': '\u5256\u88d2\u8e23', 'pu': '\u6251\u94fa\u4ec6\u8386\u8461\u83e9\u84b2\u57d4\u6734\u5703\u666e\u6d66\u8c31\u66dd\u7011\u530d\u5657\u6fee\u749e\u6c06\u9564\u9568\u8e7c', 'qi': '\u671f\u6b3a\u6816\u621a\u59bb\u4e03\u51c4\u6f06\u67d2\u6c8f\u5176\u68cb\u5947\u6b67\u7566\u5d0e\u8110\u9f50\u65d7\u7948\u7941\u9a91\u8d77\u5c82\u4e5e\u4f01\u542f\u5951\u780c\u5668\u6c14\u8fc4\u5f03\u6c7d\u6ce3\u8bab\u4e9f\u4e93\u573b\u8291\u840b\u847a\u5601\u5c7a\u5c90\u6c54\u6dc7\u9a90\u7eee\u742a\u7426\u675e\u6864\u69ed\u6b39\u797a\u61a9\u789b\u86f4\u871e\u7da6\u7dae\u8dbf\u8e4a\u9ccd\u9e92', 'qia': '\u6390\u6070\u6d3d\u845c', 'qian': '\u7275\u6266\u948e\u94c5\u5343\u8fc1\u7b7e\u4edf\u8c26\u4e7e\u9ed4\u94b1\u94b3\u524d\u6f5c\u9063\u6d45\u8c34\u5811\u5d4c\u6b20\u6b49\u4f65\u9621\u828a\u82a1\u8368\u63ae\u5c8d\u60ad\u614a\u9a9e\u6434\u8930\u7f31\u6920\u80b7\u6106\u94a4\u8654\u7b9d', 'qiang': '\u67aa\u545b\u8154\u7f8c\u5899\u8537\u5f3a\u62a2\u5af1\u6a2f\u6217\u709d\u9516\u9535\u956a\u8941\u8723\u7f9f\u8deb\u8dc4', 'qiao': '\u6a47\u9539\u6572\u6084\u6865\u77a7\u4e54\u4fa8\u5de7\u9798\u64ac\u7fd8\u5ced\u4fcf\u7a8d\u5281\u8bee\u8c2f\u835e\u6100\u6194\u7f32\u6a35\u6bf3\u7857\u8df7\u9792', 'qie': '\u5207\u8304\u4e14\u602f\u7a83\u90c4\u553c\u60ec\u59be\u6308\u9532\u7ba7', 'qin': '\u94a6\u4fb5\u4eb2\u79e6\u7434\u52e4\u82b9\u64d2\u79bd\u5bdd\u6c81\u82a9\u84c1\u8572\u63ff\u5423\u55ea\u5659\u6eb1\u6a8e\u8793\u887e', 'qing': '\u9752\u8f7b\u6c22\u503e\u537f\u6e05\u64ce\u6674\u6c30\u60c5\u9877\u8bf7\u5e86\u5029\u82d8\u570a\u6aa0\u78ec\u873b\u7f44\u7b90\u8b26\u9cad\u9ee5', 'qiong': '\u743c\u7a77\u909b\u8315\u7a79\u7b47\u928e', 'qiu': '\u79cb\u4e18\u90b1\u7403\u6c42\u56da\u914b\u6cc5\u4fc5\u6c3d\u5def\u827d\u72b0\u6e6b\u9011\u9052\u6978\u8d47\u9e20\u866c\u86af\u8764\u88d8\u7cd7\u9cc5\u9f3d', 'qu': '\u8d8b\u533a\u86c6\u66f2\u8eaf\u5c48\u9a71\u6e20\u53d6\u5a36\u9f8b\u8da3\u53bb\u8bce\u52ac\u8556\u8627\u5c96\u8862\u9612\u74a9\u89d1\u6c0d\u795b\u78f2\u766f\u86d0\u883c\u9eb4\u77bf\u9ee2', 'quan': '\u5708\u98a7\u6743\u919b\u6cc9\u5168\u75ca\u62f3\u72ac\u5238\u529d\u8be0\u8343\u737e\u609b\u7efb\u8f81\u754e\u94e8\u8737\u7b4c\u9b08', 'que': '\u7f3a\u7094\u7638\u5374\u9e4a\u69b7\u786e\u96c0\u9619\u60ab', 'qun': '\u88d9\u7fa4\u9021', 'ran': '\u7136\u71c3\u5189\u67d3\u82d2\u9aef', 'rang': '\u74e4\u58e4\u6518\u56b7\u8ba9\u79b3\u7a70', 'rao': '\u9976\u6270\u7ed5\u835b\u5a06\u6861', 'ruo': '\u60f9\u82e5\u5f31', 're': '\u70ed\u504c', 'ren': '\u58ec\u4ec1\u4eba\u5fcd\u97e7\u4efb\u8ba4\u5203\u598a\u7eab\u4ede\u834f\u845a\u996a\u8f6b\u7a14\u887d', 'reng': '\u6254\u4ecd', 'ri': '\u65e5', 'rong': '\u620e\u8338\u84c9\u8363\u878d\u7194\u6eb6\u5bb9\u7ed2\u5197\u5d58\u72e8\u7f1b\u6995\u877e', 'rou': '\u63c9\u67d4\u8089\u7cc5\u8e42\u97a3', 'ru': '\u8339\u8815\u5112\u5b7a\u5982\u8fb1\u4e73\u6c5d\u5165\u8925\u84d0\u85b7\u5685\u6d33\u6ebd\u6fe1\u94f7\u8966\u98a5', 'ruan': '\u8f6f\u962e\u670a', 'rui': '\u854a\u745e\u9510\u82ae\u8564\u777f\u868b', 'run': '\u95f0\u6da6', 'sa': '\u6492\u6d12\u8428\u5345\u4ee8\u6332\u98d2', 'sai': '\u816e\u9cc3\u585e\u8d5b\u567b', 'san': '\u4e09\u53c1\u4f1e\u6563\u5f61\u9993\u6c35\u6bf5\u7cc1\u9730', 'sang': '\u6851\u55d3\u4e27\u6421\u78c9\u98a1', 'sao': '\u6414\u9a9a\u626b\u5ac2\u57fd\u81ca\u7619\u9ccb', 'se': '\u745f\u8272\u6da9\u556c\u94e9\u94ef\u7a51', 'sen': '\u68ee', 'seng': '\u50e7', 'sha': '\u838e\u7802\u6740\u5239\u6c99\u7eb1\u50bb\u5565\u715e\u810e\u6b43\u75e7\u88df\u970e\u9ca8', 'shai': '\u7b5b\u6652\u917e', 'shan': '\u73ca\u82eb\u6749\u5c71\u5220\u717d\u886b\u95ea\u9655\u64c5\u8d61\u81b3\u5584\u6c55\u6247\u7f2e\u5261\u8baa\u912f\u57cf\u829f\u6f78\u59d7\u9a9f\u81bb\u9490\u759d\u87ee\u8222\u8dda\u9cdd', 'shang': '\u5892\u4f24\u5546\u8d4f\u664c\u4e0a\u5c1a\u88f3\u57a7\u7ef1\u6b87\u71b5\u89de', 'shao': '\u68a2\u634e\u7a0d\u70e7\u828d\u52fa\u97f6\u5c11\u54e8\u90b5\u7ecd\u52ad\u82d5\u6f72\u86f8\u7b24\u7b72\u8244', 'she': '\u5962\u8d4a\u86c7\u820c\u820d\u8d66\u6444\u5c04\u6151\u6d89\u793e\u8bbe\u538d\u4f58\u731e\u7572\u9e9d', 'shen': '\u7837\u7533\u547b\u4f38\u8eab\u6df1\u5a20\u7ec5\u795e\u6c88\u5ba1\u5a76\u751a\u80be\u614e\u6e17\u8bdc\u8c02\u5432\u54c2\u6e16\u6939\u77e7\u8703', 'sheng': '\u58f0\u751f\u7525\u7272\u5347\u7ef3\u7701\u76db\u5269\u80dc\u5723\u4e1e\u6e11\u5ab5\u771a\u7b19', 'shi': '\u5e08\u5931\u72ee\u65bd\u6e7f\u8bd7\u5c38\u8671\u5341\u77f3\u62fe\u65f6\u4ec0\u98df\u8680\u5b9e\u8bc6\u53f2\u77e2\u4f7f\u5c4e\u9a76\u59cb\u5f0f\u793a\u58eb\u4e16\u67ff\u4e8b\u62ed\u8a93\u901d\u52bf\u662f\u55dc\u566c\u9002\u4ed5\u4f8d\u91ca\u9970\u6c0f\u5e02\u6043\u5ba4\u89c6\u8bd5\u8c25\u57d8\u83b3\u84cd\u5f11\u5511\u9963\u8f7c\u8006\u8d33\u70bb\u793b\u94c8\u94ca\u87ab\u8210\u7b6e\u8c55\u9ca5\u9cba', 'shou': '\u6536\u624b\u9996\u5b88\u5bff\u6388\u552e\u53d7\u7626\u517d\u624c\u72e9\u7ef6\u824f', 'shu': '\u852c\u67a2\u68b3\u6b8a\u6292\u8f93\u53d4\u8212\u6dd1\u758f\u4e66\u8d4e\u5b70\u719f\u85af\u6691\u66d9\u7f72\u8700\u9ecd\u9f20\u5c5e\u672f\u8ff0\u6811\u675f\u620d\u7ad6\u5885\u5eb6\u6570\u6f31\u6055\u500f\u587e\u83fd\u5fc4\u6cad\u6d91\u6f8d\u59dd\u7ebe\u6bf9\u8167\u6bb3\u956f\u79eb\u9e6c', 'shua': '\u5237\u800d\u5530\u6dae', 'shuai': '\u6454\u8870\u7529\u5e05\u87c0', 'shuan': '\u6813\u62f4\u95e9', 'shuang': '\u971c\u53cc\u723d\u5b40', 'shui': '\u8c01\u6c34\u7761\u7a0e', 'shun': '\u542e\u77ac\u987a\u821c\u6042', 'shuo': '\u8bf4\u7855\u6714\u70c1\u84b4\u6420\u55cd\u6fef\u5981\u69ca\u94c4', 'si': '\u65af\u6495\u5636\u601d\u79c1\u53f8\u4e1d\u6b7b\u8086\u5bfa\u55e3\u56db\u4f3a\u4f3c\u9972\u5df3\u53ae\u4fdf\u5155\u83e5\u549d\u6c5c\u6cd7\u6f8c\u59d2\u9a77\u7f0c\u7940\u7960\u9536\u9e36\u801c\u86f3\u7b25', 'song': '\u677e\u8038\u6002\u9882\u9001\u5b8b\u8bbc\u8bf5\u51c7\u83d8\u5d27\u5d69\u5fea\u609a\u6dde\u7ae6', 'sou': '\u641c\u8258\u64de\u55fd\u53df\u55d6\u55fe\u998a\u6eb2\u98d5\u778d\u953c\u878b', 'su': '\u82cf\u9165\u4fd7\u7d20\u901f\u7c9f\u50f3\u5851\u6eaf\u5bbf\u8bc9\u8083\u5919\u8c21\u850c\u55c9\u612b\u7c0c\u89eb\u7a23', 'suan': '\u9178\u849c\u7b97', 'sui': '\u867d\u968b\u968f\u7ee5\u9ad3\u788e\u5c81\u7a57\u9042\u96a7\u795f\u84d1\u51ab\u8c07\u6fc9\u9083\u71e7\u772d\u7762', 'sun': '\u5b59\u635f\u7b0b\u836a\u72f2\u98e7\u69ab\u8de3\u96bc', 'suo': '\u68ad\u5506\u7f29\u7410\u7d22\u9501\u6240\u5522\u55e6\u5a11\u686b\u7743\u7fa7', 'ta': '\u584c\u4ed6\u5b83\u5979\u5854\u736d\u631e\u8e4b\u8e0f\u95fc\u6ebb\u9062\u69bb\u6c93', 'tai': '\u80ce\u82d4\u62ac\u53f0\u6cf0\u915e\u592a\u6001\u6c70\u90b0\u85b9\u80bd\u70b1\u949b\u8dc6\u9c90', 'tan': '\u574d\u644a\u8d2a\u762b\u6ee9\u575b\u6a80\u75f0\u6f6d\u8c2d\u8c08\u5766\u6bef\u8892\u78b3\u63a2\u53f9\u70ad\u90ef\u8548\u6619\u94bd\u952c\u8983', 'tang': '\u6c64\u5858\u642a\u5802\u68e0\u819b\u5510\u7cd6\u50a5\u9967\u6e8f\u746d\u94f4\u9557\u8025\u8797\u87b3\u7fb0\u91a3', 'thang': '\u5018\u8eba\u6dcc', 'theng': '\u8d9f\u70eb', 'tao': '\u638f\u6d9b\u6ed4\u7ee6\u8404\u6843\u9003\u6dd8\u9676\u8ba8\u5957\u6311\u9f17\u5555\u97ec\u9955', 'te': '\u7279', 'teng': '\u85e4\u817e\u75bc\u8a8a\u6ed5', 'ti': '\u68af\u5254\u8e22\u9511\u63d0\u9898\u8e44\u557c\u4f53\u66ff\u568f\u60d5\u6d95\u5243\u5c49\u8351\u608c\u9016\u7ee8\u7f07\u9e48\u88fc\u918d', 'tian': '\u5929\u6dfb\u586b\u7530\u751c\u606c\u8214\u8146\u63ad\u5fdd\u9617\u6b84\u754b\u94bf\u86ba', 'tiao': '\u6761\u8fe2\u773a\u8df3\u4f7b\u7967\u94eb\u7a95\u9f86\u9ca6', 'tie': '\u8d34\u94c1\u5e16\u841c\u992e', 'ting': '\u5385\u542c\u70c3\u6c40\u5ef7\u505c\u4ead\u5ead\u633a\u8247\u839b\u8476\u5a77\u6883\u8713\u9706', 'tong': '\u901a\u6850\u916e\u77b3\u540c\u94dc\u5f64\u7ae5\u6876\u6345\u7b52\u7edf\u75db\u4f5f\u50ee\u4edd\u833c\u55f5\u6078\u6f7c\u783c', 'tou': '\u5077\u6295\u5934\u900f\u4ea0', 'tu': '\u51f8\u79c3\u7a81\u56fe\u5f92\u9014\u6d82\u5c60\u571f\u5410\u5154\u580d\u837c\u83df\u948d\u9174', 'tuan': '\u6e4d\u56e2\u7583', 'tui': '\u63a8\u9893\u817f\u8715\u892a\u9000\u5fd2\u717a', 'tun': '\u541e\u5c6f\u81c0\u9968\u66be\u8c5a\u7a80', 'tuo': '\u62d6\u6258\u8131\u9e35\u9640\u9a6e\u9a7c\u692d\u59a5\u62d3\u553e\u4e47\u4f57\u5768\u5eb9\u6cb1\u67dd\u7823\u7ba8\u8204\u8dce\u9f0d', 'wa': '\u6316\u54c7\u86d9\u6d3c\u5a03\u74e6\u889c\u4f64\u5a32\u817d', 'wai': '\u6b6a\u5916', 'wan': '\u8c4c\u5f2f\u6e7e\u73a9\u987d\u4e38\u70f7\u5b8c\u7897\u633d\u665a\u7696\u60cb\u5b9b\u5a49\u4e07\u8155\u525c\u8284\u82cb\u83c0\u7ea8\u7efe\u742c\u8118\u7579\u873f\u7ba2', 'wang': '\u6c6a\u738b\u4ea1\u6789\u7f51\u5f80\u65fa\u671b\u5fd8\u5984\u7f54\u5c22\u60d8\u8f8b\u9b4d', 'wei': '\u5a01\u5dcd\u5fae\u5371\u97e6\u8fdd\u6845\u56f4\u552f\u60df\u4e3a\u6f4d\u7ef4\u82c7\u840e\u59d4\u4f1f\u4f2a\u5c3e\u7eac\u672a\u851a\u5473\u754f\u80c3\u5582\u9b4f\u4f4d\u6e2d\u8c13\u5c09\u6170\u536b\u502d\u504e\u8bff\u9688\u8473\u8587\u5e0f\u5e37\u5d34\u5d6c\u7325\u732c\u95f1\u6ca9\u6d27\u6da0\u9036\u5a13\u73ae\u97ea\u8ece\u709c\u7168\u71a8\u75ff\u8249\u9c94', 'wen': '\u761f\u6e29\u868a\u6587\u95fb\u7eb9\u543b\u7a33\u7d0a\u95ee\u520e\u6120\u960c\u6c76\u74ba\u97eb\u6b81\u96ef', 'weng': '\u55e1\u7fc1\u74ee\u84ca\u8579', 'wo': '\u631d\u8717\u6da1\u7a9d\u6211\u65a1\u5367\u63e1\u6c83\u83b4\u5e44\u6e25\u674c\u809f\u9f8c', 'wu': '\u5deb\u545c\u94a8\u4e4c\u6c61\u8bec\u5c4b\u65e0\u829c\u68a7\u543e\u5434\u6bcb\u6b66\u4e94\u6342\u5348\u821e\u4f0d\u4fae\u575e\u620a\u96fe\u6664\u7269\u52ff\u52a1\u609f\u8bef\u5140\u4ef5\u9622\u90ac\u572c\u82b4\u5e91\u6003\u5fe4\u6d6f\u5be4\u8fd5\u59a9\u9a9b\u727e\u7110\u9e49\u9e5c\u8708\u92c8\u9f2f', 'xi': '\u6614\u7199\u6790\u897f\u7852\u77fd\u6670\u563b\u5438\u9521\u727a\u7a00\u606f\u5e0c\u6089\u819d\u5915\u60dc\u7184\u70ef\u6eaa\u6c50\u7280\u6a84\u88ad\u5e2d\u4e60\u5ab3\u559c\u94e3\u6d17\u7cfb\u9699\u620f\u7ec6\u50d6\u516e\u96b0\u90d7\u831c\u8478\u84f0\u595a\u550f\u5f99\u9969\u960b\u6d60\u6dc5\u5c63\u5b09\u73ba\u6a28\u66e6\u89cb\u6b37\u71b9\u798a\u79a7\u94b8\u7699\u7a78\u8725\u87cb\u823e\u7fb2\u7c9e\u7fd5\u91af\u9f37', 'xia': '\u778e\u867e\u5323\u971e\u8f96\u6687\u5ce1\u4fa0\u72ed\u4e0b\u53a6\u590f\u5413\u6380\u846d\u55c4\u72ce\u9050\u7455\u7856\u7615\u7f45\u9ee0', 'xian': '\u9528\u5148\u4ed9\u9c9c\u7ea4\u54b8\u8d24\u8854\u8237\u95f2\u6d8e\u5f26\u5acc\u663e\u9669\u73b0\u732e\u53bf\u817a\u9985\u7fa1\u5baa\u9677\u9650\u7ebf\u51bc\u85d3\u5c98\u7303\u66b9\u5a34\u6c19\u7946\u9e47\u75eb\u86ac\u7b45\u7c7c\u9170\u8df9', 'xiang': '\u76f8\u53a2\u9576\u9999\u7bb1\u8944\u6e58\u4e61\u7fd4\u7965\u8be6\u60f3\u54cd\u4eab\u9879\u5df7\u6a61\u50cf\u5411\u8c61\u8297\u8459\u9977\u5ea0\u9aa7\u7f03\u87d3\u9c9e\u98e8', 'xiao': '\u8427\u785d\u9704\u524a\u54ee\u56a3\u9500\u6d88\u5bb5\u6dc6\u6653\u5c0f\u5b5d\u6821\u8096\u5578\u7b11\u6548\u54d3\u54bb\u5d24\u6f47\u900d\u9a81\u7ee1\u67ad\u67b5\u7b71\u7bab\u9b48', 'xie': '\u6954\u4e9b\u6b47\u874e\u978b\u534f\u631f\u643a\u90aa\u659c\u80c1\u8c10\u5199\u68b0\u5378\u87f9\u61c8\u6cc4\u6cfb\u8c22\u5c51\u5055\u4eb5\u52f0\u71ee\u85a4\u64b7\u5ee8\u7023\u9082\u7ec1\u7f2c\u69ad\u698d\u6b59\u8e9e', 'xin': '\u85aa\u82af\u950c\u6b23\u8f9b\u65b0\u5ffb\u5fc3\u4fe1\u8845\u56df\u99a8\u8398\u6b46\u94fd\u946b', 'xing': '\u661f\u8165\u7329\u60fa\u5174\u5211\u578b\u5f62\u90a2\u884c\u9192\u5e78\u674f\u6027\u59d3\u9649\u8347\u8365\u64e4\u60bb\u784e', 'xiong': '\u5144\u51f6\u80f8\u5308\u6c79\u96c4\u718a\u828e', 'xiu': '\u4f11\u4fee\u7f9e\u673d\u55c5\u9508\u79c0\u8896\u7ee3\u83a0\u5cab\u9990\u5ea5\u9e3a\u8c85\u9af9', 'xu': '\u589f\u620c\u9700\u865a\u5618\u987b\u5f90\u8bb8\u84c4\u9157\u53d9\u65ed\u5e8f\u755c\u6064\u7d6e\u5a7f\u7eea\u7eed\u8bb4\u8be9\u5729\u84ff\u6035\u6d2b\u6e86\u987c\u6829\u7166\u7809\u76f1\u80e5\u7cc8\u9191', 'xuan': '\u8f69\u55a7\u5ba3\u60ac\u65cb\u7384\u9009\u7663\u7729\u7eda\u5107\u8c16\u8431\u63ce\u9994\u6ceb\u6d35\u6e32\u6f29\u7487\u6966\u6684\u70ab\u714a\u78b9\u94c9\u955f\u75c3', 'xue': '\u9774\u859b\u5b66\u7a74\u96ea\u8840\u5671\u6cf6\u9cd5', 'xun': '\u52cb\u718f\u5faa\u65ec\u8be2\u5bfb\u9a6f\u5de1\u6b89\u6c5b\u8bad\u8baf\u900a\u8fc5\u5dfd\u57d9\u8340\u85b0\u5ccb\u5f87\u6d54\u66db\u7aa8\u91ba\u9c9f', 'ya': '\u538b\u62bc\u9e26\u9e2d\u5440\u4e2b\u82bd\u7259\u869c\u5d16\u8859\u6daf\u96c5\u54d1\u4e9a\u8bb6\u4f22\u63e0\u5416\u5c88\u8fd3\u5a05\u740a\u6860\u6c29\u7811\u775a\u75d6', 'yan': '\u7109\u54bd\u9609\u70df\u6df9\u76d0\u4e25\u7814\u8712\u5ca9\u5ef6\u8a00\u989c\u960e\u708e\u6cbf\u5944\u63a9\u773c\u884d\u6f14\u8273\u5830\u71d5\u538c\u781a\u96c1\u5501\u5f66\u7130\u5bb4\u8c1a\u9a8c\u53a3\u9765\u8d5d\u4fe8\u5043\u5156\u8ba0\u8c33\u90fe\u9122\u82ab\u83f8\u5d26\u6079\u95eb\u960f\u6d07\u6e6e\u6edf\u598d\u5ae3\u7430\u664f\u80ed\u814c\u7131\u7f68\u7b75\u917d\u9b47\u990d\u9f39', 'yang': '\u6b83\u592e\u9e2f\u79e7\u6768\u626c\u4f6f\u75a1\u7f8a\u6d0b\u9633\u6c27\u4ef0\u75d2\u517b\u6837\u6f3e\u5f89\u600f\u6cf1\u7080\u70ca\u6059\u86d8\u9785', 'yao': '\u9080\u8170\u5996\u7476\u6447\u5c27\u9065\u7a91\u8c23\u59da\u54ac\u8200\u836f\u8981\u8000\u592d\u723b\u5406\u5d3e\u5fad\u7039\u5e7a\u73e7\u6773\u66dc\u80b4\u9e5e\u7a88\u7e47\u9cd0', 'ye': '\u6930\u564e\u8036\u7237\u91ce\u51b6\u4e5f\u9875\u6396\u4e1a\u53f6\u66f3\u814b\u591c\u6db2\u8c12\u90ba\u63f6\u9980\u6654\u70e8\u94d8', 'yi': '\u4e00\u58f9\u533b\u63d6\u94f1\u4f9d\u4f0a\u8863\u9890\u5937\u9057\u79fb\u4eea\u80f0\u7591\u6c82\u5b9c\u59e8\u5f5d\u6905\u8681\u501a\u5df2\u4e59\u77e3\u4ee5\u827a\u6291\u6613\u9091\u5c79\u4ebf\u5f79\u81c6\u9038\u8084\u75ab\u4ea6\u88d4\u610f\u6bc5\u5fc6\u4e49\u76ca\u6ea2\u8be3\u8bae\u8c0a\u8bd1\u5f02\u7ffc\u7fcc\u7ece\u5208\u5293\u4f7e\u8bd2\u572a\u572f\u57f8\u61ff\u82e1\u858f\u5f08\u5955\u6339\u5f0b\u5453\u54a6\u54bf\u566b\u5cc4\u5db7\u7317\u9974\u603f\u6021\u6092\u6f2a\u8fe4\u9a7f\u7f22\u6baa\u8d3b\u65d6\u71a0\u9487\u9552\u9571\u75cd\u7617\u7654\u7fca\u8864\u8734\u8223\u7fbf\u7ff3\u914f\u9edf', 'yin': '\u8335\u836b\u56e0\u6bb7\u97f3\u9634\u59fb\u541f\u94f6\u6deb\u5bc5\u996e\u5c39\u5f15\u9690\u5370\u80e4\u911e\u5819\u831a\u5591\u72fa\u5924\u6c24\u94df\u763e\u8693\u972a\u9f88', 'ying': '\u82f1\u6a31\u5a74\u9e70\u5e94\u7f28\u83b9\u8424\u8425\u8367\u8747\u8fce\u8d62\u76c8\u5f71\u9896\u786c\u6620\u5b34\u90e2\u8314\u83ba\u8426\u6484\u5624\u81ba\u6ee2\u6f46\u701b\u745b\u748e\u6979\u9e66\u763f\u988d\u7f42', 'yo': '\u54df\u5537', 'yong': '\u62e5\u4f63\u81c3\u75c8\u5eb8\u96cd\u8e0a\u86f9\u548f\u6cf3\u6d8c\u6c38\u607f\u52c7\u7528\u4fd1\u58c5\u5889\u6175\u9095\u955b\u752c\u9cd9\u9954', 'you': '\u5e7d\u4f18\u60a0\u5fe7\u5c24\u7531\u90ae\u94c0\u72b9\u6cb9\u6e38\u9149\u6709\u53cb\u53f3\u4f51\u91c9\u8bf1\u53c8\u5e7c\u5363\u6538\u4f91\u83b8\u5466\u56ff\u5ba5\u67da\u7337\u7256\u94d5\u75a3\u8763\u9c7f\u9edd\u9f2c', 'yu': '\u8fc2\u6de4\u4e8e\u76c2\u6986\u865e\u611a\u8206\u4f59\u4fde\u903e\u9c7c\u6109\u6e1d\u6e14\u9685\u4e88\u5a31\u96e8\u4e0e\u5c7f\u79b9\u5b87\u8bed\u7fbd\u7389\u57df\u828b\u90c1\u5401\u9047\u55bb\u5cea\u5fa1\u6108\u6b32\u72f1\u80b2\u8a89\u6d74\u5bd3\u88d5\u9884\u8c6b\u9a6d\u79ba\u6bd3\u4f1b\u4fe3\u8c00\u8c15\u8438\u84e3\u63c4\u5581\u5704\u5709\u5d5b\u72f3\u996b\u5ebe\u9608\u59aa\u59a4\u7ea1\u745c\u6631\u89ce\u8174\u6b24\u65bc\u715c\u71e0\u807f\u94b0\u9e46\u7610\u7600\u7ab3\u8753\u7afd\u8201\u96e9\u9f89', 'yuan': '\u9e33\u6e0a\u51a4\u5143\u57a3\u8881\u539f\u63f4\u8f95\u56ed\u5458\u5706\u733f\u6e90\u7f18\u8fdc\u82d1\u613f\u6028\u9662\u586c\u6c85\u5a9b\u7457\u6a7c\u7230\u7722\u9e22\u8788\u9f0b', 'yue': '\u66f0\u7ea6\u8d8a\u8dc3\u94a5\u5cb3\u7ca4\u6708\u60a6\u9605\u9fa0\u6a3e\u5216\u94ba', 'yun': '\u8018\u4e91\u90e7\u5300\u9668\u5141\u8fd0\u8574\u915d\u6655\u97f5\u5b55\u90d3\u82b8\u72c1\u607d\u7ead\u6b92\u6600\u6c32', 'za': '\u531d\u7838\u6742\u62f6\u5482', 'zai': '\u683d\u54c9\u707e\u5bb0\u8f7d\u518d\u5728\u54b1\u5d3d\u753e', 'zan': '\u6512\u6682\u8d5e\u74d2\u661d\u7c2a\u7ccc\u8db1\u933e', 'zang': '\u8d43\u810f\u846c\u5958\u6215\u81e7', 'zao': '\u906d\u7cdf\u51ff\u85fb\u67a3\u65e9\u6fa1\u86a4\u8e81\u566a\u9020\u7682\u7076\u71e5\u5523\u7f2b', 'ze': '\u8d23\u62e9\u5219\u6cfd\u4ec4\u8d5c\u5567\u8fee\u6603\u7b2e\u7ba6\u8234', 'zei': '\u8d3c', 'zen': '\u600e\u8c2e', 'zeng': '\u589e\u618e\u66fe\u8d60\u7f2f\u7511\u7f7e\u9503', 'zha': '\u624e\u55b3\u6e23\u672d\u8f67\u94e1\u95f8\u7728\u6805\u69a8\u548b\u4e4d\u70b8\u8bc8\u63f8\u5412\u54a4\u54f3\u600d\u781f\u75c4\u86b1\u9f44', 'zhai': '\u6458\u658b\u5b85\u7a84\u503a\u5be8\u7826', 'zhan': '\u77bb\u6be1\u8a79\u7c98\u6cbe\u76cf\u65a9\u8f97\u5d2d\u5c55\u8638\u6808\u5360\u6218\u7ad9\u6e5b\u7efd\u8c35\u640c\u65c3', 'zhang': '\u6a1f\u7ae0\u5f70\u6f33\u5f20\u638c\u6da8\u6756\u4e08\u5e10\u8d26\u4ed7\u80c0\u7634\u969c\u4ec9\u9123\u5e5b\u5d82\u7350\u5adc\u748b\u87d1', 'zhao': '\u62db\u662d\u627e\u6cbc\u8d75\u7167\u7f69\u5146\u8087\u53ec\u722a\u8bcf\u68f9\u948a\u7b0a', 'zhe': '\u906e\u6298\u54f2\u86f0\u8f99\u8005\u9517\u8517\u8fd9\u6d59\u8c2a\u966c\u67d8\u8f84\u78d4\u9e67\u891a\u8707\u8d6d', 'zhen': '\u73cd\u659f\u771f\u7504\u7827\u81fb\u8d1e\u9488\u4fa6\u6795\u75b9\u8bca\u9707\u632f\u9547\u9635\u7f1c\u6862\u699b\u8f78\u8d48\u80d7\u6715\u796f\u755b\u9e29', 'zheng': '\u84b8\u6323\u7741\u5f81\u72f0\u4e89\u6014\u6574\u62ef\u6b63\u653f\u5e27\u75c7\u90d1\u8bc1\u8be4\u5ce5\u94b2\u94ee\u7b5d', 'zhi': '\u829d\u679d\u652f\u5431\u8718\u77e5\u80a2\u8102\u6c41\u4e4b\u7ec7\u804c\u76f4\u690d\u6b96\u6267\u503c\u4f84\u5740\u6307\u6b62\u8dbe\u53ea\u65e8\u7eb8\u5fd7\u631a\u63b7\u81f3\u81f4\u7f6e\u5e1c\u5cd9\u5236\u667a\u79e9\u7a1a\u8d28\u7099\u75d4\u6ede\u6cbb\u7a92\u536e\u965f\u90c5\u57f4\u82b7\u646d\u5e19\u5fee\u5f58\u54ab\u9a98\u6809\u67b3\u6800\u684e\u8f75\u8f7e\u6534\u8d3d\u81a3\u7949\u7957\u9ef9\u96c9\u9e37\u75e3\u86ed\u7d77\u916f\u8dd6\u8e2c\u8e2f\u8c78\u89ef', 'zhong': '\u4e2d\u76c5\u5fe0\u949f\u8877\u7ec8\u79cd\u80bf\u91cd\u4ef2\u4f17\u51a2\u953a\u87bd\u8202\u822f\u8e35', 'zhou': '\u821f\u5468\u5dde\u6d32\u8bcc\u7ca5\u8f74\u8098\u5e1a\u5492\u76b1\u5b99\u663c\u9aa4\u5544\u7740\u501c\u8bf9\u836e\u9b3b\u7ea3\u80c4\u78a1\u7c40\u8233\u914e\u9cb7', 'zhu': '\u73e0\u682a\u86db\u6731\u732a\u8bf8\u8bdb\u9010\u7af9\u70db\u716e\u62c4\u77a9\u5631\u4e3b\u8457\u67f1\u52a9\u86c0\u8d2e\u94f8\u7b51\u4f4f\u6ce8\u795d\u9a7b\u4f2b\u4f8f\u90be\u82ce\u8331\u6d19\u6e1a\u6f74\u9a7a\u677c\u69e0\u6a65\u70b7\u94e2\u75b0\u7603\u86b0\u7afa\u7bb8\u7fe5\u8e85\u9e88', 'zhua': '\u6293', 'zhuai': '\u62fd', 'zhuan': '\u4e13\u7816\u8f6c\u64b0\u8d5a\u7bc6\u629f\u556d\u989b', 'zhuang': '\u6869\u5e84\u88c5\u5986\u649e\u58ee\u72b6\u4e2c', 'zhui': '\u690e\u9525\u8ffd\u8d58\u5760\u7f00\u8411\u9a93\u7f12', 'zhun': '\u8c06\u51c6', 'zhuo': '\u6349\u62d9\u5353\u684c\u7422\u8301\u914c\u707c\u6d4a\u502c\u8bfc\u5ef4\u855e\u64e2\u555c\u6d5e\u6dbf\u6753\u712f\u799a\u65ab', 'zi': '\u5179\u54a8\u8d44\u59ff\u6ecb\u6dc4\u5b5c\u7d2b\u4ed4\u7c7d\u6ed3\u5b50\u81ea\u6e0d\u5b57\u8c18\u5d6b\u59ca\u5b73\u7f01\u6893\u8f8e\u8d40\u6063\u7726\u9531\u79ed\u8014\u7b2b\u7ca2\u89dc\u8a3e\u9cbb\u9aed', 'zong': '\u9b03\u68d5\u8e2a\u5b97\u7efc\u603b\u7eb5\u8159\u7cbd', 'zou': '\u90b9\u8d70\u594f\u63cd\u9139\u9cb0', 'zu': '\u79df\u8db3\u5352\u65cf\u7956\u8bc5\u963b\u7ec4\u4fce\u83f9\u5550\u5f82\u9a75\u8e74', 'zuan': '\u94bb\u7e82\u6525\u7f35', 'zui': '\u5634\u9189\u6700\u7f6a', 'zun': '\u5c0a\u9075\u6499\u6a3d\u9cdf', 'zuo': '\u6628\u5de6\u4f50\u67de\u505a\u4f5c\u5750\u5ea7\u961d\u963c\u80d9\u795a\u9162', 'cou': '\u85ae\u6971\u8f8f\u8160', 'nang': '\u652e\u54dd\u56d4\u9995\u66e9', 'o': '\u5594', 'dia': '\u55f2', 'chuai': '\u562c\u81aa\u8e39', 'cen': '\u5c91\u6d94', 'diu': '\u94e5', 'nou': '\u8028', 'fou': '\u7f36', 'bia': '\u9adf' }; // CONCATENATED MODULE: ./src/base/utils/src/vue-py.js // import { pinyin } from './pyconst.js'; /* harmony default export */ var vue_py = ({ chineseToPinYin: function (l1) { var l2 = l1.length; var I1 = ''; var reg = new RegExp('[a-zA-Z0-9]'); var zmReg = new RegExp('[a-zA-Z]'); for (var i = 0; i < l2; i++) { var val = l1.substr(i, 1); if(reg.test(val)) { I1 += val; continue; } var name = this.arraySearch(val, pyconst_pinyin); if (reg.test(val)) { I1 += val; } else if (name !== false) { I1 += name; } } I1 = I1.replace(/ /g, '-'); while (I1.indexOf('--') > 0) { I1 = I1.replace('--', '-'); } return I1; }, arraySearch: function (l1, l2) { for (var name in pyconst_pinyin) { if (pyconst_pinyin[name].indexOf(l1) !== -1) { return this.ucfirst(name); } } return false; }, ucfirst: function (l1) { if (l1.length > 0) { var first = l1.substr(0, 1).toUpperCase(); var spare = l1.substr(1, l1.length); return first + spare; } } }); // EXTERNAL MODULE: ./node_modules/jr-qrcode/dist/jr-qrcode.js var jr_qrcode = __webpack_require__("4a37"); var jr_qrcode_default = /*#__PURE__*/__webpack_require__.n(jr_qrcode); // EXTERNAL MODULE: ./node_modules/jsbarcode/bin/JsBarcode.js var JsBarcode = __webpack_require__("62c5"); var JsBarcode_default = /*#__PURE__*/__webpack_require__.n(JsBarcode); // CONCATENATED MODULE: ./src/base/utils/src/string.js /** * showdoc * @catalog API/工具/Date * @title 字符串基础类 * @className ClientString * @modifier static * @method StringFunc * @demo */ const STR = { /** * showdoc * @catalog API/工具/String * @title 生成MD5 * @description 生成MD5 * @method md5 * @param str 必选 String 需生成的字符 * @return String * @number 60 */ md5: function (str) { return md5_default()(str); }, /** * showdoc * @catalog API/工具/String * @title 获取中文首字母拼音 * @description 获取中文首字母拼音 * @method getFirstPY * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getFirstPY: function (str) { if (!str) return ""; let SX = '', pinyin; str = str.toUpperCase(); if (str.constructor == Array) { pinyin = []; for (let i = 0; i < str.length; i++) { pinyin.push(vue_py.chineseToPinYin(str[i])); } } else pinyin = vue_py.chineseToPinYin(str); if (pinyin.constructor == Array) { let result = []; for (let j = 0; j < pinyin.length; j++) { let tempPY = pinyin[j], tempSX = ""; for (let i = 0; i < tempPY.length; i++) { let c = tempPY.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { tempSX += c; } } result.push(tempSX.toLowerCase()); } return result; } else { for (let i = 0; i < pinyin.length; i++) { let c = pinyin.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { SX += c; } } return SX.toLowerCase(); } }, /** * showdoc * @catalog API/工具/String * @title 下载地址 * @description 获取下载地址 * @url getDownloadUrl(url,fileName) * @method getDownloadUrl * @param url 必选 url * @param fileName 必选 文件名 * @return String * @number 60 */ getDownloadUrl(url, fileName) { return window.eap.utils.biz.getDownloadUrl(url, fileName);; }, /** * showdoc * @catalog API/工具/String * @title 获取中文全拼音 * @description 获取中文全拼音 * @url getPinyin(str) * @method getPinyin * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getPinyin: function (str) { let result = []; if (!str) return ""; if (str.constructor == Array) { for (let i = 0; i < str.length; i++) { result.push(vue_py.chineseToPinYin(str[i]).toLowerCase()); } return result; } else return vue_py.chineseToPinYin(str).toLowerCase(); }, /** * showdoc * @catalog API/工具/String * @title 获取指定范围随机数 * @description 获取中文全拼音 * @url randomInt(min, max) * @method randomInt * @param min 必选 Int 起止数字 * @param max 必选 Int 结束数字 * @return String * @number 60 */ randomInt: function (min, max) { var Range = max - min; var Rand = Math.random(); return (min + Math.round(Rand * Range)); }, /** * showdoc * @catalog API/工具/String * @title 获取功能/流程路径 * @description 获取功能/流程路径 * @url getBizUrl(url) * @method getBizUrl * @param url 必选 url * @return String * @number 60 */ getBizUrl(url) { if (window.eap) return window.eap.utils.biz.getUrl(url); return url }, /** * showdoc * @catalog API/工具/String * @title 获取url地址栏参数 * @description 获取功能/流程路径 * @method getUrlValue * @param name 必选 name * @param url 选填 url * @return String * @number 60 */ getUrlValue: function (name, url) { var str = url || window.location.href; if (str.indexOf("&" + name) != -1 || str.indexOf("?" + name) != -1) { var pos_start = "" if (str.indexOf("?" + name) > -1) pos_start = str.indexOf("?" + name) + name.length + 2; else pos_start = str.indexOf("&" + name) + name.length + 2; var pos_end = str.indexOf("&", pos_start); if (pos_end == -1) { return str.substring(pos_start); } else { return str.substring(pos_start, pos_end) } } else { return ""; } }, /** * showdoc * @catalog API/工具/String * @title 设置url地址栏参数 * @description 获取功能/流程路径 * @url getUrlValue(name, url) * @method setUrlValue * @param url 选填 url * @param name 选填 name * @param pValue 选填 pValue * @return String * @number 60 */ setUrlValue: function (url, pName, pValue) { if (url == null || url == '') { return ''; } var arrUrl = url.split('?'); if (arrUrl.length <= 1) { return url + '?' + pName + '=' + pValue; } var paramArr = arrUrl[1].split('&'); var isAdd = true; for (var i = 0; i < paramArr.length; i++) { var valueArr = paramArr[i].split('='); if (valueArr[0] == pName) { paramArr[i] = pName + '=' + pValue; isAdd = false; } } if (isAdd) { paramArr[paramArr.length] = pName + '=' + pValue; } return arrUrl[0] + '?' + paramArr.join('&'); }, /** * showdoc * @catalog API/工具/String * @title 获取指定长度的ID * @description 获取指定长度的ID * @url id(len) * @method id * @param len 必选 Int 长度 * @return String * @number 60 */ id: function (len) { return (function (len, radix) { var chars = '012abcdefghuwxyz34MNOPQRSTUV567ijklmnopqrst89ABCDEFGHIJKLWXYZ' .split(''); // var chars = Scp.String.newGUID().replace(/-/g,"").split(""); var uuid = [], i; radix = radix || chars.length; if (len) { // Compact form for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix]; } else { // rfc4122, version 4 form var r; // rfc4122 requires these characters uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-'; uuid[14] = '4'; // Fill in random data. At i==19 set the high bits of clock // sequence as // per rfc4122, sec. 4.1.5 for (i = 0; i < 36; i++) { if (!uuid[i]) { r = 0 | Math.random() * 16; uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r]; } } } return uuid.join(''); })(len || 6, 61); }, /** * showdoc * @catalog API/工具/String * @title 获取GUID * @description 获取GUID * @url guid() * @method guid * @return String * @number 60 */ guid: function () { var nowDateTime = new Date(); var myRandom1 = this.randomInt(1, 1000); var myRandom2 = this.randomInt(1, 1000); var myRandom3 = this.randomInt(1, 1000); var decodeStr = nowDateTime.valueOf() + "-" + nowDateTime.getMilliseconds() + "-" + myRandom1 + "-" + myRandom2 + "-" + myRandom3; var encodeStr = this.md5(decodeStr); var guid = encodeStr.substring(0, 8) + "-" + encodeStr.substring(8, 12) + "-" + encodeStr.substring(12, 16) + "-" + encodeStr.substring(16, 20) + "-" + encodeStr.substring(20, 32); return guid.toUpperCase(); }, /** * showdoc * @catalog API/工具/String * @title 字符格式化 * @description 字符格式化 * @url format() * @method format(str,$1,$2,$3......) * @param str 必选 String 需格式化的字符 * @param $1 必选 String 需替换的$1 * @param $2 必选 String 需替换的$2 * @param $3 必选 String 需替换的$3 * @return String * @number 60 */ format: function () { if (arguments.length == 0) return ''; var argArray = Array.prototype.slice.call(arguments); var result = argArray.shift(); if (argArray.length == 1 && typeof (argArray[0]) == "object") { var args = argArray[0]; for (var key in args) { if (args[key] != undefined) { let reg = new RegExp("({" + key + "})", "g"); result = result.replace(reg, args[key]); } } } else { for (var i = 0; i < argArray.length; i++) { if (argArray[i] != undefined) { let reg = new RegExp("({)" + i + "(})", "g"); result = result.replace(reg, argArray[i]); } } } return result; }, controlGuid(key) { return (key || '').replace(/[.|#|@|*|\?|\(|\)|<|>|\{|\|\^|\$}]/gi, '_') + '_' + STR.id(8); }, /** * showdoc * @catalog API/工具/String * @title 转换人民币大写 * @description 转换人民币大写 * @method upperMoney * @param numberValue 必选 numberValue * @return String * @number 60 */ upperMoney(numberValue) { var numberValue = new String(Math.round(Math.abs(numberValue) * 100)); // 数字金额 var chineseValue = ""; // 转换后的汉字金额 var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 var String2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; // 对应单位 var len = numberValue.length; // numberValue 的字符串长度 var Ch1; // 数字的汉语读法 var Ch2; // 数字位的汉字读法 var nZero = 0; // 用来计算连续的零值的个数 var String3; // 指定位置的数值 if (len > 15) { alert("超出计算范围"); return ""; } if (numberValue == 0) { chineseValue = "零元整"; return chineseValue; } String2 = String2.substr(String2.length - len, len); // 取出对应位数的STRING2的值 for (var i = 0; i < len; i++) { String3 = parseInt(numberValue.substr(i, 1), 10); // 取出需转换的某一位的值 if (i != (len - 3) && i != (len - 7) && i != (len - 11) && i != (len - 15)) { if (String3 == 0) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } } else { // 该位是万亿,亿,万,元位等关键位 if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 != 0 && nZero == 0) { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 == 0 && nZero >= 3) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else { Ch1 = ""; Ch2 = String2.substr(i, 1); nZero = nZero + 1; } if (i == (len - 11) || i == (len - 3)) { // 如果该位是亿位或元位,则必须写上 Ch2 = String2.substr(i, 1); } } chineseValue = chineseValue + Ch1 + Ch2; } if (String3 == 0) { // 最后一位(分)为0时,加上“整” chineseValue = chineseValue + "整"; } return chineseValue; }, /** * showdoc * @catalog API/工具/String * @title 分解附件 * @description 分解附件 * @url format() * @method splitAttach * @param val 必选 附件值 * @return String * @number 60 */ splitAttach(val) { var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } list.push({ name: arr[i].split(";")[0], size: arr[i].split(";")[1], path: arr[i].split(";")[2], url: `${path}?relativePath=${arr[i].split(";")[2]}`, }); } return list; }, /** * showdoc * @catalog API/工具/String * @title 附件图片地址 * @description 附件图片地址 * @url format() * @method splitAttachImgUrl * @param val 必选 附件值 * @return String * @number 60 */ splitAttachImgUrl(val) { if (!val) return; var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } if (arr[i].split(";").length > 2) { list = this.splitAttach(val) break; } else { if (arr[0].indexOf("http://") != -1) { list.push({ url: arr[0], }); } else { list.push({ url: `${path}?relativePath=${arr[0]}`, }); } } } return list[0].url; }, /** * showdoc * @catalog API/工具/String * @title 获取二维码 * @description 生成二维码Base64 URL * @url getQrcode(text, options) * @method getQrcode * @param text 必选,要生成二维码的字符,支持中文 string * @param options 配置对象 object * @return String * @number 60 */ getQrcode(text, options = {}) { if (!text) return; let imgBase64 = jr_qrcode_default.a.getQrBase64(text, options); return imgBase64 }, /** * showdoc * @catalog API/工具/String * @title 获取条形码 * @description 生成条形码Base64 URL * @url getBarcode(text, options) * @method getBarcode * @param text 必选,要生成条形码的字符 string * @param options 配置对象 object * @return String * @number 60 */ getBarcode(text, options = {}) { if (!text) return; var canvas = document.createElement("canvas") JsBarcode_default()(canvas, text, options) return canvas.toDataURL("image/png") } } /* harmony default export */ var string = (STR); // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js const GLOBAL_LANG_HIUI = { "hi_common_cancel": "取消", "hi_common_confirm": "确定", //03472 //03472 "hi_query_all": '全部', "hi_query_noempty": "不能为空!", "hi_query_sysscheme": "系统方案", "hi_query_reset": "重置", "hi_query_btnname": "查询", "hi_query_more": "更多", "hi_order_defaultall": "综合", "hi_timescheme_month": '本月', "hi_timescheme_yeartonow": "今年至今", "hi_timescheme_last6month": "最近六个月", "hi_timescheme_today": "本日", "hi_timescheme_yesterday": "昨日", "hi_timescheme_last7days": "近7天", "hi_timescheme_last28days": "近28天", "hi_timescheme_last84days": "近84天", "hi_timescheme_startdate": "开始日期", "hi_timescheme_enddate": "结束日期", "hi_timescheme_year": "本年度", "hi_timescheme_week": "本周", "hi_timescheme_quarter": "本季度", "hi_timescheme_split": "到", "hi_timescheme_halfyear": "近半年", "hi_timescheme_oneyear": "近一年", "hi_pushdata_linkSelect": "请选择需要打开的链接!", "hi_pushdata_hasAuth": "当前请求功能您没有权限访问!", "hi_pushdata_requestError": "请求异常", "hi_treequery_placeholder": "输入关键字进行过滤", "hi_numberrange_splitstr": "到", "hi_datalist_nodata": "暂无数据!", "hi_importexcel_uploadname": "Excel上传", "hi_importexcel_templatename": "模板下载", "hi_importexcel_noallowfile": "不支持上传{0}格式!", "hi_importexcel_limitfilesize": "限制上传文件大小为{0}M!", "hi_exportexcel_exportname": "Excel导出", "hi_exportexcel_buildfile": "文件生成中", "hi_exportexcel_isdownload": "是否取消文件下载?", "hi_dataRequest_request": "数据请求中", "hi_dataRequest_isCacel": "是否取消请求?", "hi_dataRequest_tip": "提示", "hi_dataRequest_tip": "提示", "hi_dataRequest_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_builddatacomplate": "数据生成完成!", "hi_expression_close": "关闭", "hi_expression_confirm": "关闭", "hi_expression_dialogname": "表达式", //03472 //01521 begin "hi_page_confirm": "确定", "hi_page_cancel": "取消", "hi_page_prompt": "提示", "hi_page_cannotBeNull": "不能为空", "hi_page_outOfRange": "输入的字符超出", "hi_page_dataPromptNotSubmitted": "检测到有未提交的数据,是否还原", "hi_page_dataNotModified": "数据未修改", "hi_page_initializing": "正在初始化..", //01521 end "hi_table_file": "个文件", "hi_table_index": "序号", "hi_table_operate": "操作", "hi_table_add": "新增", "hi_table_del": "删除", "hi_table_addsub": "新增子节点", "hi_table_emptyText": "暂无数据", "hi_table_confirmFilter": "筛选", "hi_table_resetFilter": "重置", "hi_table_clearFilter": "全部", "hi_table_sumText": "合计", "hi_table_lockCol": "锁定列", "hi_table_unlockCol": "解锁列", "hi_table_fillUp": "向上填充", "hi_table_fillDown": "向下填充", "hi_table_copy": "复制", "hi_table_copyRow": "复制整行", "hi_table_copyCol": "复制整列", "hi_table_copyCell": "复制单元格", "hi_table_download": "下载", "hi_table_downloadAll": "下载所有", "hi_table_downloadSelect": "选中下载", "hi_table_maxAddNode": "最多只能添加{0}级节点", "hi_table_yesterday": "昨天", "hi_table_today": "今天", "hi_table_aweek": "一周", "hi_table_paste": "粘贴", "hi_table_pasteRow": "指定位整行粘贴", "hi_table_pasteCol": "指定位整列粘贴", "hi_table_pasteMsg": "navigator.clipboard 仅支持通过 HTTPS 提供的页面", "hi_table_colSetting": "字段配置", "hi_table_colsConfig": "列表字段配置", // 12112 "hi_messagebox_title": "提示", "hi_messagebox_confirm": "确定", "hi_messagebox_cancel": "取消", "hi_toolbar_add": "添加", "hi_toolbar_del": "删除", "hi_toolbar_reset": "取消", "hi_toolbar_save": "保存", "hi_toolbar_submit": "提交", "hi_toolbar_callout": "调单", "hi_toolbar_nexttache": "流转", "hi_toolbar_backtache": "回退", "hi_toolbar_signout": "加签", "hi_toolbar_processSign": "处理加签", "hi_toolbar_turnOut": "转办", "hi_toolbar_terminate": "终止", "hi_toolbar_umpire": "反审", "hi_toolbar_monitor": "流程监控", "hi_toolbar_savesuccess": "数据保存成功", "hi_toolbar_processflowsuccess": "流程处理成功", "hi_toolbar_limitequals": "请选择相同的:", "hi_toolbar_limitnoequals": "请选择不同的:", "hi_toolbar_limitnoequals1": "相同记录已跳过!", "hi_toolbar_finished": "流程结束", "hi_toolbar_actors": "下个执行者", "hi_toolbar_loader": "数据处理中...", "hi_toolbar_agree": "同意", "hi_toolbar_disagree": "不同意", "hi_toolbar_selectOneError": "至少选择一个执行者!", "hi_toolbar_removeallhint": "确定要删除所有记录吗?", "hi_toolbar_cancelhint": "确定要取消吗?", "hi_toolbar_umpirehint": "确定要启用反审吗?", "hi_toolbar_savehint": "数据未保存,是否保存数据?", "hi_toolbar_circulationway": "返回方式", "hi_toolbar_circulationway_default": "重新流转", "hi_toolbar_circulationway_again": "原路返回", "hi_toolbar_performType": "原路返回", "hi_toolbar_performType1": "独占", "hi_toolbar_performType2": "会签", "hi_toolbar_performType3": "顺序", "hi_toolbar_signType_BeforSign": "前加签", "hi_toolbar_signType_AfterSign": "后加签", "hi_toolbar_approvecomments": "审批意见", "hi_toolbar_assigneeLabel": "额外办理人", "hi_toolbar_previousName": "上一节点", "hi_toolbar_processor": "处理人", "hi_toolbar_previousCount": "节点处理人:共", "hi_toolbar_previousCount2": "人审批", "hi_toolbar_processortime": "处理时间", "hi_toolbar_username": "用户名", "hi_toolbar_userid": "用户ID", "hi_toolbar_userorgname": "编制名", "hi_toolbar_bzid": "编制ID", "hi_toolbar_collapse": "收起", "hi_toolbar_expand": "展开", "hi_form_required": " 必填!", "hi_tree_search": "输入关键字进行过滤", "hi_tree_addPeerBtn": "添加同级", "hi_tree_add": "添加", "hi_tree_edit": "编辑", "hi_tree_del": "删除", "hi_tree_noNode": "节点不存在", "hi_tree_removehint": "请先删除子节点!", "hi_calendar_add": "新增日程", "hi_calendar_refresh": "刷新", "hi_calendar_month": "月", "hi_calendar_week": "周", "hi_calendar_day": "日", "hi_calendar_between": "到", "hi_calendar_prevMonth": '上个月', "hi_calendar_nextMonth": '下个月', "hi_calendar_today": '今天', "hi_calendar_time": '时间', "hi_select_placeholder": "请选择", "hi_selectGrid_queryname": "请输入关键词", "hi_dataSelect_hasselect": "当前记录已选!", "hi_dataSelect_selectOneError": "至少选择一条记录!", "hi_dataSelect_Loading": "数据加载中...", "hi_dataSelect_selectall": "全选", "hi_dataSelect_clear": "清空", "hi_dataSelect_selectAdd": "添加选中", "hi_dataSelect_selectclear": "删除选中", "hi_dataSelect_queryCdionsNull": "明细条件未传!", "hi_dataSelect_numberFieldNull": "未配置单号!", "hi_dataSelect_nosoucredataset": "来源数据集不存在", "hi_dataSelect_noin": "数据不在查找范围内!", "hi_upload_deleteTip": '按 delete 键可删除', "hi_upload_uploadName": "点击上传", "hi_upload_delete": '删除', "hi_upload_removeall": '清空', "hi_upload_preview": '查看图片', "hi_upload_continue": '继续上传', "hi_upload_limit": "当前限制选择{0}个文件,本次选择了{1}个文件,共选择了{2}个文件", "hi_upload_fileExtension": "后缀为", "hi_upload_limitcount": "数量不超过{0}个", "hi_upload_fileSize": "大小不超过{0}M", "hi_upload_hint": "只能上传[ {0} ]文件", "hi_upload_fileExtensionLimit": "不支持上传{0}格式!", "hi_upload_files": "个文件", "hi_imagecropper_dialogtitle": "切图", "hi_imagecropper_select": "选择封面", "hi_imagecropper_scalebig": "放大", "hi_imagecropper_scalesmall": "缩小", "hi_imagecropper_rotateLeft": "左旋转", "hi_imagecropper_rotateRight": "右旋转", "hi_imagecropper_upload": "上传封面", "hi_imagecropper_error":"图片类型要求", "hi_mapSelect_translate": "坐标转换失败!", "hi_page_pageInit": "没有找到初始化接口配置,请在环境配置中新增pageInitUrl节点配置", "hi_page_pagecontrolstate": "页面控件状态", "hi_monitor_approvalRecord": "审批记录", "hi_monitor_flow": "流程", "hi_monitor_displayname": "流程名称", "hi_monitor_ordernumber": "流程编号", "hi_monitor_createtime": "创建时间", "hi_monitor_finishtime": "完成时间", "hi_monitor_flowstate": "流程状态", "hi_monitor_finish": "已完成", "hi_monitor_taskname": "任务名称", "hi_monitor_noReceived": "未接收", "hi_monitor_timeConsuming": "耗时", "hi_monitor_approver": "审批人", "hi_monitor_processingStatus": "处理状态", "hi_monitor_processe": "需处理", "hi_monitor_postscript": "附言", "hi_monitor_flowchart": "流程图", "hi_monitor_gantt": "甘特图", "hi_monitor_processed": "已处理", "hi_monitor_back": "回退", "hi_monitor_sysAuto": "系统自动流转", "hi_monitor_terminate": "终止", "hi_monitor_cancel": "取消", "hi_monitor_transfer": "转办", "hi_monitor_taskWithdraw": "任务撤回", "hi_monitor_tsBeforSigning": "前加签中", "hi_monitor_tsAfterSigning": "后加签中", "hi_monitor_tsBeforSignDW": "前加签处理", "hi_monitor_tsAfterSignDW": "后加签处理", "hi_monitor_tsBeforSigned": "已前加签", "hi_monitor_tsAfterSigned": "已后加签", "hi_monitor_day": "天", "hi_monitor_hour": "小时", "hi_monitor_Min": "分", "hi_monitor_second": "秒", "hi_monitor_gantt_dept": "所属部门", "hi_monitor_gantt_role": "岗位职称", "hi_dbType_AuditPoint_0": "已审核", "hi_dbType_AuditPoint_1": "运行中", "hi_dbType_AuditPoint_2": "审批中", "hi_dbType_AuditPoint_99": "终止", "hi_dbType_boolean_yes": "是", "hi_dbType_boolean_no": "否" } /* harmony default export */ var zh_CN = (GLOBAL_LANG_HIUI); // CONCATENATED MODULE: ./src/locale/global.js const t = function (key) { let globalLang = (window.GLOBAL_LANG_HIUI || {}); let lang = Object.assign({}, zh_CN, globalLang); return lang[key] || key; }; // CONCATENATED MODULE: ./src/base/utils/src/dbType.js let _this = { dbString: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, type: "dbString", formType: { element: "el-input" } }, dbInt: { format: function (v, format) { v = parseInt(v); if (format == "eleAuditPoint") { let val = "" switch (v) { case 0: val = t("hi_dbType_AuditPoint_0") break; case 1: val = t("hi_dbType_AuditPoint_1") break; case 99: val = t("hi_dbType_AuditPoint_99") break; case 2: val = t("hi_dbType_AuditPoint_2") break; default: val = isNaN(v) ? "" : v } return val; } if (typeof (format) == "function") { return format.call(window, v); } if (isNaN(v)) { return ""; } v = v * 1; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } let val = _this.dbInt.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, // 数值型默认值不设置 defautlVal: 0, type: "dbInt", queryType: { element: "HiNumberRange" }, formType: { element: "hi-number", props: { precision: 0, "controls-position": "right" } } }, dbFloat: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbFloat.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbFloat", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbDouble: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbDouble.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbDouble", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbText: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (!format) return v; return v; }, type: "dbText", formType: { element: "el-input", props: { type: "textarea", rows: 5 } }, queryType: { element: "el-input", props: { } }, gridType: { element: "hi-textarea", props: { popup: true, rows: 5 } } }, dbBoolean: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v === "") { return ""; } if (typeof v != "boolean") { if (v * 1 == v) { v = parseInt(v); } } return (typeof v == "boolean" || typeof v == "number") ? (v ? t("hi_dbType_boolean_yes") : t("hi_dbType_boolean_no")) : v; }, formatView: function (v, format) { return _this.dbBoolean.format(v, format); }, parse: function (v) { if (v == "yes" || v == "是" || v == "1" || v == "true" || v == "y") return true; else return false; }, type: "dbBoolean", queryType: { element: "el-checkbox", props: { } }, formType: { element: "el-checkbox", props: { } } }, dbDatetime: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, /** * @property datetime.type * @description datetime类型 * @type {String} * @final * @static */ type: "dbDatetime", queryType: { element: "HiTimeScheme" }, formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbTimestamp: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, type: "dbTimestamp", formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbBasic: { type: "dbBasic" }, dbArray: { type: "dbArray" }, dbObject: { type: "dbObject" }, dbList: { type: "dbList" } } _this.dbDate = _this.dbDatetime; /* harmony default export */ var dbType = (_this); // CONCATENATED MODULE: ./src/base/utils/src/bom.js const bom = { getUrlParam(name) { let search = window.location.search; search = search.substring(1, search.length) let values = search.split("&"); let result = {}; for (let i = 0; i < values.length; i++) { const element = values[i]; let _val = element.split("="); result[_val[0]] = _val[1]; } if (name) return result[name]; return result; }, //打开链接 openUrl(url, paramters={}, method='get', target) { //创建form表单 let id = "formid" + (new Date()).valueOf(); if (!url.toLowerCase().startsWith("http") && window.eap) { url = window.eap.utils.biz.getUrl(url); } var formredwin = document.createElement("form"); formredwin.method = method || "get"; document.body.appendChild(formredwin); formredwin.target = target; formredwin.action = url for (var item in paramters) { if(url.indexOf(item+"=")>-1) continue; var inputObj = document.getElementById(`${id}_${item}`); if (inputObj) { inputObj.value = paramters[item]; } else { var opt = document.createElement("input"); opt.type = "hidden"; opt.name = item; opt.value = paramters[item]; formredwin.appendChild(opt); } } formredwin.submit(); formredwin.parentNode.removeChild(formredwin); }, mergeDefaultCfg(defaultCmp, controlCfg) { var result = null; var tempdefaultCmp = defaultCmp; for (var key in controlCfg) { if ((typeof controlCfg[key]) == "object") { controlCfg[key] = bom.recursionCfg(tempdefaultCmp, controlCfg[key]); } if (key == "crlName" && tempdefaultCmp[controlCfg["crlName"]] != undefined) { controlCfg = Object.assign({}, tempdefaultCmp[controlCfg["crlName"]], controlCfg); } } return controlCfg; }, recursionCfg(defaultCmp, recuCfg) { var tempdefaultCmp = defaultCmp; var result = null; for (var key in recuCfg) { if ((typeof recuCfg[key]) == "object") { recuCfg[key] = bom.recursionCfg(tempdefaultCmp, recuCfg[key]); } if (key == "crlName" && tempdefaultCmp[recuCfg["crlName"]] != undefined) { recuCfg = Object.assign({}, tempdefaultCmp[recuCfg["crlName"]], recuCfg); } } return recuCfg; } } /* harmony default export */ var src_bom = (bom); // CONCATENATED MODULE: ./src/base/utils/index.js let utils_date=date; let utils_number=number; let utils_string=string; let utils_dbType = dbType; let utils_bom = src_bom; /* harmony default export */ var utils = ({ date: utils_date,number: utils_number,string: utils_string,dbType: utils_dbType,bom: utils_bom }); let DateUtil=date; let NumberUtil=number; let StringUtil=string; let DbTypeUtil = dbType; let BomUtil = src_bom; // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/where.js const defOperate = "=" let where_WhereCondition = class WhereCondition { constructor(config) { config = config || {}; this.className = 'WhereCondition' this.enabled = null,// 新添加的 this.sign = null,// 操作符 this.name = null,// 属性 this.dataType = null,// 数据类型 this.tablefilter = null,// tablefilter this.value = null,// 值 this.enabled = true, this.setValue(config.name, config.value, config.dataType, config.sign, config.tablefilter); } setValue(property, value, dataType, operator, tablefilter) { this.sign = operator || "eq"; this.name = property || ""; this.dataType = dataType || types.string; this.value = value; this.enabled = true; this.tablefilter = tablefilter == undefined ? false : tablefilter; } getValue() { return { sign: this.sign, name: this.name, tablefilter: this.tablefilter, dataType: this.dataType, value: this.value, enabled: true }; } }; let where_Where = class Where { /** * showdoc * @title 查询条件 * @className Where * @method Where */ constructor(config, params = []) { config = config || {}; this.params = params this.className = 'Where' this.join = null this.items = null // _.extend(this, config); if (config.junction) config.join = config.junction; if (!config.join) config.join = "and"; if (config.criterionData == null) { if (!config.join) config.join = "and"; this.setWhereData(config.join, []); } else { var paramsDataType = typeof (config.criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(config.criterionData);//$.parseJSON(config.criterionData); break; case "object": objParamsData = config.criterionData; break; } this.setCriterionData(objParamsData); } } setValue(join, items) { this.setWhereData(join, items); } setWhereData(join, items) { this.join = join || "and"; this.items = items || []; } // setCriterionData(criterionData) { var paramsDataType = typeof (criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(criterionData); break; case "object": objParamsData = criterionData; break; } this.join = objParamsData.join || "and"; this.items = []; this.recursiveSetCriteria(this, objParamsData.items); } recursiveSetCriteria(where, items) { var me = this; if (items == null || items.length == 0) { where.items = []; return; } var subLen = items.length; for (var i = 0; i < subLen; i++) { var subItem = items[i]; if (subItem.join) { var whereItem = new Where({ join: subItem.join }); this.recursiveSetCriteria(whereItem, subItem.items); where.addWhere(whereItem); } else { if (subItem.sign) { var fieldName = subItem.name.replace("&[", "").replace("]", ""); fieldName = fieldName.replace("this.get('", "").replace( "')", ""); if (typeof subItem.value == "function") { var tempVal = me.filterValue(subItem.value) where.addCondition(fieldName, tempVal, subItem.dataType, subItem.sign, false, subItem.tablefilter); } else where.addCondition(fieldName, subItem.value, subItem.dataType, subItem.sign, false, subItem.tablefilter); } } } } // 过滤表达式 filterValue(valueExpress) { var me = this, val; val = valueExpress.call(this, ...this.params); return val; } /** * showdoc * @catalog API/工具/Where条件 * @title 添加where条件 * @description 添加where条件 * @method addWhere * @param where 必选 Where where条件 * @return void * @number 60 */ addWhere(where) { // if (where) { let isFind = false; for (let i = 0; i < this.items.length; i++) { let itemstr = JSON.stringify(this.items[i]) if (itemstr == JSON.stringify(where.toJSON())) { isFind = true; break; } } if (!isFind) this.items.push(where); } } /** * showdoc * @title 添加字段条件 * @description 添加字段条件 * @method addCondition * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param operator 必选 String 操作符(eq,noteq,in,notin,gt,lt,isnull,isnotnull,gteq,lteq,like,likeLeft,likeRight) * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ addCondition(property, value, dataType, operator, isCover, tablefilter) { if (value === null || value == undefined || value === "null") { operator = "isnull"; value = "null"; } if (operator === "isnull") value = "null"; //采用后端默认值 if (!operator && window.HIVUI_SETTING) operator = window.HIVUI_SETTING.queryOperate || 'eq'; if (!operator) operator = 'eq'; let value1, operateArray = ["in", "notIn"]; if (typeof value === "function") { value = value.call(); } if (isDate_default()(value)) { value = utils_date.format(value, 'yyyy-MM-dd hh:mm:ss') } if (operateArray.indexOf(operator) > -1 && value && (!(value instanceof Array))) { value1 = (value + "").split(","); } else { value1 = value; } if (isCover) for (var i = 0; i < this.items.length; i++) { if (property == this.items[i].name) { this.items[i].value = value1; this.items[i].tablefilter = tablefilter; this.items[i].dataType = dataType || types.string; this.items[i].sign = operator; return; } } var condition = new where_WhereCondition({ name: property, tablefilter: tablefilter, value: value1, sign: operator, dataType: dataType || types.string }); this.items.push(condition); } add(property, value, dataType, isCover, tablefilter) { this.addEqual(property, value, dataType, isCover, tablefilter) } _addEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "eq", isCover, tablefilter); } _addArray(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover, tablefilter); } _addNotIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } _addIsNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnull", isCover, tablefilter); } _addIsNotNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnotnull", isCover, tablefilter); } _addNotEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "noteq", isCover, tablefilter); } _addGreaterThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gt", isCover, tablefilter); } _addLessThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lt", isCover, tablefilter); } _addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gteq", isCover, tablefilter); } _addLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "like", isCover, tablefilter); } _addLessThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lteq", isCover, tablefilter); } _addLeftLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeLeft", isCover, tablefilter); } _addRightLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeRight", isCover, tablefilter); } /** * showdoc * @title 添加等于(=)操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method eq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ eq(property, value, dataType, isCover, tablefilter) { this._addEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加默认操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method def * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ def(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, null, isCover, tablefilter) } /** * showdoc * @title 添加in操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method in * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ in(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover , tablefilter); } /** * showdoc * @title 添加notin操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method notIn * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ notIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } /** * showdoc * @title 添加inRange 内操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method inRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ inRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "inRange", isCover , tablefilter); } /** * showdoc * @title 添加outRange 外操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method outRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ outRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "outRange", isCover, tablefilter); } /** * showdoc * @title 添加between操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method between * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ between(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "between", isCover, tablefilter); } /** * showdoc * @title 添加noteq不等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method noteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ noteq(property, value, dataType, isCover, tablefilter) { this._addNotEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gt(property, value, dataType, isCover, tablefilter) { this._addGreaterThan(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gteq(property, value, dataType, isCover, tablefilter) { this._addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加小于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lt(property, value, dataType, isCover, tablefilter) { this._addLessThan(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加小于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lteq(property, value, dataType, isCover, tablefilter) { this._addLessThanAndEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method like * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ like(property, value, dataType, vtype, isCover, tablefilter) { this._addLike(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加左like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method leftLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ leftLike(property, value, dataType, isCover, tablefilter) { this._addLeftLike(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加右like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method rightLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ rightLike(property, value, dataType, isCover, tablefilter) { this._addRightLike(property, value, dataType, isCover, tablefilter); } getItemByIndex(i) { return this.items[i]; } deleteItemByIndex(i) { this.items.splice(i, 1); } getData() { var len = this.items.length; if (len == 0) { return null; } var whereData = { join: this.join, items: [] }; for (var i = 0; i < len; i++) { var item = this.items[i]; this.recursiveWhereData(whereData, item); } return whereData; } recursiveWhereData(whereData, item) { if (item.items) { var subLen = item.items.length; if (subLen > 0) { var subWhereData = { join: item.join, items: [] }; for (var i = 0; i < subLen; i++) { var subItem = item.items[i]; this.recursiveWhereData(subWhereData, subItem); } whereData.items.push(subWhereData); } } else { var itemCondition = item.getValue(); whereData.items.push(itemCondition); } } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件JSON数据 * @description 获取where条件JSON数据 * @method toJSON() * @return json * @number 60 */ toJSON() { return this.getData(); } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件字符串数据 * @description 获取where条件字符串数据 * @url toStr() * @method toStr() * @return String * @number 60 */ toStr() { return JSON.stringify(this.getData()); } /** * showdoc * @catalog API/工具/Where条件 * @title 根据字段ID返回该字段条件对象 * @description 根据字段ID返回该字段条件对象 * @param key 必选 String 字段名 * @method getConditionByKey(key) * @return json * @number 60 */ getConditionByKey(key) { var len = this.items.length; for (var i = 0; i < len; i++) { var item = this.items[i]; if (item.name && item.name == key) { return item; } else { if (!item.items || item.items.length == 0) return null; let _item = this._recursionWhere1(item.items, key); if (_item != null) return _item; } } return null; } _recursionWhere1(items, key) { var i = 0, len = items.length; for (; i < len; i++) { let item = items[i] if (item.name && item.name == key) return item if (item.name) continue; if (!item.items || item.items.length == 0) return null; item.items.length > 0 && this._recursionWhere1(item.items, key); } } // 应用存储过程 setCustomWhere(join) { var where = new Where({ join: join || "and" }); var i = 0, len = this.items.length; for (; i < len; i++) { if (this.items[i].name) { where.addCondition(this.items[i].name, this.items[i].value, this.items[i].dataType, this.items[i].sign, this.items[i].isCover, this.items[i].tablefilter); } else this._recursionWhere(where, this.items[i].items); } this.join = where.join; this.items = where.items; } // 递归where 所有 _recursionWhere(where, items) { var i = 0, len = items.length; for (; i < len; i++) { if (items[i].name) where.addCondition(items[i].name, items[i].value, items[i].dataType, items[i].sign, items[i].isCover, items[i].tablefilter); else this._recursionWhere(where, items[i].items); } } isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (has_default()(this, pageIndexKey) && has_default()(this, pageSizeKey)) return true; else return false; } setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起止页 getPageIndex * @description 获取当前where起止页。 * @url getPageIndex() * @method getPageIndex() * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 getPageSize * @description 获取当前where每页显示多少条。 * @url getPageSize() * @method getPageSize() * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } where_Where.prototype.equal = where_Where.prototype.eq /* harmony default export */ var queryHelper_where = (where_Where); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/orders.js class Orders { /** * showdoc * @title 查询排序 * @className Orders * @method Orders */ constructor(config) { config = config || {}; this.orderData = []; if (config.orderData) { this.orderData = config.orderData; } } getOrderItemModel() { return { name: "", desc: "", type: "desc" }; } /** * showdoc * @title 添加降序条件 * @description 添加降序条件 * @method addDesc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addDesc(property, desc) { this.addOrder(property, "desc", desc); } /** * showdoc * @catalog API/工具/Orders排序 * @title 添加升序 * @description 添加升序条件 * @method addAsc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void */ addAsc(property, desc) { this.addOrder(property, "asc", desc); } /** * showdoc * @title 添加排序 * @description 添加排序 * @method addOrder * @param property 必选 String 字段名 * @param type 必选 String 排序类型 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addOrder(property, type, desc) { var orderItem = this.getOrderItemModel(); orderItem.name = property; orderItem.desc = desc; orderItem.type = type this.orderData.push(orderItem); } /** * showdoc * @title 获取order排序JSON数据 * @description 获取order排序JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { return this.orderData; } /** * showdoc * @title 获取order排序字符串数据 * @description 获取order排序字符串数据 * @method toStr * @return json * @number 60 */ toStr() { return JSON.stringify(this.orderData); } } // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/param.js class param_Param { /** * showdoc * @title 查询参数 * @className Param * @description 查询参数 * @method Param */ constructor(config) { config = config || {}; this.orders = null this.className = 'Params' this.paramKey = "queryParam" // _.extend(this, config); this.where = config.where || new queryHelper_where(); this.returnTotal = config.returnTotal; this.zcQuery = config.zcQuery; this.modelFilePath = config.modelFilePath || ""; this.orders = config.orders; this.slaveEntities = config.slaveEntities || []; if (config.initData) { this.setJsonParamsData(config.initData); } if (config.paramsData) { this.setJsonParamsData(config.paramsData); } if (config.whereData) { this.setJsonWhereData(config.whereData); } } createWhereByModel(values, model) { model = model || {} let where = new queryHelper_where(); for (let field in values) { let bizFiled = model.fields ? model.fields[field] : null; let val = values[field] if (val != null && val != "" && val != undefined) { if (bizFiled) { where[bizFiled.operate](field, val) } else { if (utils.isArray(val)) where.in(field, val) else where.def(field, val) } } } if (this.where) this.where.addConditions(where) else this.where = where; return where; } setJsonWhereData(whereData) { // 判断传入的值是否字符 if (!whereData) return; this.where = new queryHelper_where({ criterionData: whereData }); } setJsonParamsData(paramsData) { // 判断传入的值是否字符 if (!paramsData) return; var paramsDataType = typeof (paramsData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(paramsData); break; case "object": objParamsData = paramsData; break; } if (objParamsData.queryCdions) { this.where = new queryHelper_where({ criterionData: objParamsData.queryCdions }); } if (objParamsData.orders) { this.orders = new Orders({ orderData: objParamsData.orders }); } if (objParamsData.having) { this.having = new queryHelper_where({ criterionData: objParamsData.having.criterion }); } if (objParamsData.groupBy) { this.groupBy = objParamsData.groupBy } } /** * showdoc * @catalog API/工具/Param参数 * @title 设置分组 * @description 设置分组 * @method setGroup * @param groupFields 必选 Array 分组字段 * @return void * @number 60 */ setGroup(groupFields) { this.groupBy = groupFields; } /** * showdoc * @title 获取分组 * @description 获取分组 * @method getGroup * @return Array */ getGroup() { return this.groupBy; } /** * showdoc * @title 获取where条件 * @description 获取where条件 * @method getWhere * @return Where * @number 60 */ getWhere() { return this.where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置where条件 * @description 设置where条件 * @method setWhere * @param where 必选 where where条件 * @return void * @number 60 */ setWhere(where) { this.where = where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置Having条件 * @description 设置Having条件 * @method setHaving * @param where 必选 where where条件 * @return void * @number 60 */ setHaving(where) { this.having = where; } /** * showdoc * @title 获取Having条件 * @description 获取Having条件 * @method getHaving * @return void * @number 60 */ getHaving() { return this.having; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取排序条件 * @description 获取排序条件 * @method getOrders * @return void * @number 60 */ getOrders() { return this.orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置排序条件 * @description 设置排序条件 * @method setOrders * @param orders 必选 order对象 * @return void * @number 60 */ setOrders(orders) { this.orders = orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询JSON数据 * @description 获取查询JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { var params = {}; // params.having = {}; if (this.where) { var mycriterion = this.where.toJSON(); if (mycriterion) { params.queryCdions = this.where.toJSON(); } } /* * // if (this.having) { // var mycriterion = this.having.toJSON(); // * if (mycriterion) { // // params.having.criterion = * this.having.toJSON(); // } // } */ if (this.groupBy) { params.groupBy = this.groupBy; } if (this.orders) { params.orderBy = this.orders.toJSON(); } return params; } decodeStr(s) { return unescape(s.replace(/\\(u[0-9a-fA-F]{4})/gm, '%$1')); } setSlaveEntities(params){ this.slaveEntities = params; } toStringWithKey() { var json = {}, param = {}; // param[this.paramKey] = this.toJSON() let body = JSON.stringify(this.toJSON()); json[keys.body] = body; json[keys.pageIndex] = this[keys.pageIndex] || this.where[keys.pageIndex]; json[keys.pageSize] = this[keys.pageSize] || this.where[keys.pageSize]; json[keys.returnTotal] = this.returnTotal; json[keys.modelFilePath] = this.modelFilePath; json[keys.zcQuery] = this.zcQuery; if(this.slaveEntities.length>0) { var _slaveEntities = []; for(var i = 0;i<this.slaveEntities.length;i++) { _slaveEntities.push(this.slaveEntities[i].toStringWithKey()); } json[keys.slaveEntities] = JSON.stringify(_slaveEntities); } return json;// this.toJSON(); } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询字符串数据 * @description 获取查询字符串数据 * @method toStr * @return String * @number 60 */ toStr() { return JSON.stringify(this.toJSON()); } /** * showdoc * @title 是否有翻页条件 * @description 是否有翻页条件 * @method isPaging * @return boolean * @number 60 */ isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (_has(this, pageIndexKey) && _has(this, pageSizeKey)) return true; else return false; } /** * showdoc * @title 设置翻页 * @description 设置翻页 * @method setPage * @param pageIndex 必选 Int 起止页 * @param pageSize 必选 Int 每页显示多少条 * @return void * @number 60 */ setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起始页 * @description 获取当前where起始页 * @method getPageIndex * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 * @description 获取当前where每页显示多少条 * @method getPageSize * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } // EXTERNAL MODULE: ./node_modules/lodash/isArray.js var isArray = __webpack_require__("6747"); var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/index.js //行转列 let queryHelper_rowToCol = (data, rowField, colField, valField) => { let result = [], row = {}; if (data.length > 0) { let rowSign = row[rowField] = data[0][rowField]; data.forEach(element => { //标识不一样就创建行 if (rowSign != element[rowField]) { result.push(row); row = {}; rowSign = element[rowField] row[rowField] = rowSign; } row[element[colField]] = element[valField] }); result.push(row); } return result; } let query = (param, modelFile, funcPath, { request, url, method, pn, extParam, viewItemId, rowToCol,async,success,fail}) => { let data = { "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data = paramInstance.toStringWithKey() } data.modelFilePath = modelFile; data[keys.funcpath] = funcPath; data[keys.viewItemId] = viewItemId; //将来要移到url中 //data.funcPath = funcPath; if (extParam) { Object.assign(data, extParam); } let promise //let dataUrl = url + "/" + modelFile; let dataUrl = url; funcPath = funcPath || "" if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } promise = request({ url: dataUrl, method: method || 'post', async:async, data: data, success:success, fail:fail }) // promise.then(res => { // //行转列 // if (rowToCol && rowToCol.rowField) { // res.dataPack.row = rowToCol(res.dataPack.row) // } // }) return promise } let getExportParam = ({ request, url, csv }) => { let params = { csv } return request({ url, method: 'get', params }) } let exportData = (param, modelFile, funcPath, { request, url, method, pn, viewItemId, extParam }) => { let data = { // "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data[keys.body] = paramInstance.toJSON()//paramInstance.toStringWithKey() data[keys.pageIndex] = paramInstance.where[keys.pageIndex]; data[keys.pageSize] = paramInstance.where[keys.pageSize]; data[keys.viewItemId] = viewItemId; //delete data[keys.zcQuery] //delete data[keys.returnTotal] } data[keys.funcpath] = funcPath; data.modelFilePath = modelFile; // if (param.zcQuery) // data[keys.slaveExport] = param.zcQuery //将来要移到url中 //data.funcPath = funcPath; if (extParam) { if (extParam.sheetStyle) { data[keys.sheetStyle] = extParam.sheetStyle; delete extParam.sheetStyle } if (extParam[keys.slaveExport] !== undefined) { data[keys.slaveExport] = extParam[keys.slaveExport]; delete extParam[keys.slaveExport] } } if (data[keys.slaveExport] == undefined && param.zcQuery) data[keys.slaveExport] = param.zcQuery let promise //let dataUrl = url + "/" + modelFile; let dataUrl; funcPath = funcPath || "" dataUrl = url; if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } let psotData = {} if (data.title) { psotData.title = data.title; delete data.title; } psotData[keys.sheetDatas] = JSON.stringify([data]) psotData.__isIntercept = false; if (extParam) psotData = Object.assign(psotData, extParam); promise = request({ url: dataUrl, method: method || 'post', data: psotData }) return promise } /* harmony default export */ var queryHelper = ({ Param: param_Param, Where: queryHelper_where, types: types, Orders: Orders, query, exportData, rowToCol: queryHelper_rowToCol, getExportParam }); // EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js var cloneDeep = __webpack_require__("0644"); var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); // CONCATENATED MODULE: ./src/base/dataHelper/src/saveHelper/index.js const paramKey = { //subSetkeyVal:"$subSetkeyVal", root: '__body', version: "__version", data: 'data', funcPath: "__funcpath", modelFile: 'modelFilePath', funcFile: 'fpath', state: '$state', old: '$old', insertStateVal: 'rsInsert', updateStateVal: 'rsUpdate', removeStateVal: 'rsDelete', overrideStateVal: 'rsOverride', normalStateVal: "rsNormal", viewItemId: "viewItemId" } /** * showdoc * @title 数据保存包 * @className HiDataHelper * @description 数据保存包 * @method SavePackHelper * @demo * let modelFile = "数据集实体路径"; * let funcPath = "功能路径"; * let old={FNUMBER:"DH-2210-2201",FIELD1:'data1',FIELD2:'data2'}; //原始数据中必须包含主键字段值 * let data = {FIELD1:'d1',FIELD2:'d2'}; * let saveHelper = this.createSaveHelper(modelFile,funcPath); //在页面上下文,创建saveHelper * saveHelper.update(old,data); //组装更新包 * saveHelper.add({FNUMBER:"NEW-YYMMDD-9999",FIELD1:'a2',FIELD2:'a2'}); //组装新增包 * saveHelper.remove({FNUMBER:"DH-2210-2200"}); //组装删除包,删除数据中必须包含主键字段值 * saveHelper.save().then(res=>{ * //保存成功 * if(res.status==200){ * * } * }) */ class saveHelper_SavePackHelper { /** * @title 构造函数 * @description 保存助手构造函数 * @method HiDataHelper * @param modelFile 必选 string 数据集路径 * @param options 必选 json 请求选项 * @param options.request 必选 axios 请求对象 * @param options.url 必选 url 请求rul * @param options.pn 选填 pn 项目ID * @return HiDataHelper */ constructor(modelFile, funcPath, { request, url, wsUrl, pn, viewItemId, extParam, colToRow }) { this.className = "SavePackHelper" this.modelFile = modelFile; this.request = request; this.colToRow = colToRow; this.viewItemId = viewItemId; this._appendSavePack = []; funcPath = (funcPath || "") this.url = url; this.wsUrl = wsUrl; // if (url.endsWith("/") == false && funcPath.startsWith("/") == false) // this.url = url + "/" + (funcPath || ""); // else // this.url = url + (funcPath || ""); this.funcPath = funcPath; this.extParam = extParam; this.pn = pn; this.dataPacks = {}; this.dataPacks[paramKey.data] = []; this.dataPacks[paramKey.modelFile] = this.modelFile; //this.dataPacks[paramKey.funcPath] = this.funcPath; } //新增或删除包行转列 insertOrDeletePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {} _row[dynamic.rowField] = data[rowField] || (new Date()).valueOf(); for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) continue; let row = cloneDeep_default()(_row); row[colField] = colName; row[valField] = data[colName]; result.push(row); } return result; } //更新包行转列 updatePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {}, _$old = {} _$old[dynamic.rowField] = data[paramKey.old][rowField] for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) { continue; } let row = cloneDeep_default()(_row); let $old = cloneDeep_default()(_$old); row[valField] = data[colName]; $old[valField] = data[paramKey.old][colName]; $old[colField] = colName; row[paramKey.old] = $old; result.push(row); } return result; } //转数据 conversion(data) { if (data) { const result = {} for (const key in data) { const val = data[key] if (val === undefined) continue; if (isDate_default()(val)) { result[key] = utils_date.format(val, 'yyyy-MM-dd hh:mm:ss') } else if (val != null && typeof (val) == 'object' && !val[paramKey.modelFile]) { result[key] = JSON.stringify(val); } else { // if (paramKey.subSetkeyVal == val[paramKey.modelFile]){ // delete val[paramKey.modelFile] // } result[key] = val } } return result } } normal(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.normalStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 新增数据 * @description 新增数据 * @method add * @param data 必选 json 数据 * @return void */ add(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.insertStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 更新数据 * @description 更新数据 * @method update * @param old 必选 json 旧数据(原数据)必须包含主键字段 * @param data 必选 json 新数据(要更新的数据) * @return void * @demo * update({primaryField:1,Field1:0},{Field1:1,Field2:2}) */ update(old, data) { var me = this var row = {} data = this.conversion(data) old = this.conversion(old) for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.updateStateVal row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } setRedundant(old, data) { } /** * showdoc * @title 重写数据 * @description 重写数据包,数据库中有该数据就更新,没有则新增 * @method override * @param old 必选 json 旧数据(原数据) * @param data 必选 json 新数据(要更新或新增的数据)必须包含主键字段 * @return void * @number 400 */ override(old, data) { if (!data) { data = old; old = null; } if (old) old = this.conversion(old) data = this.conversion(data) var me = this var row = {} for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.overrideStateVal if (old) row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } /** * showdoc * @title 删除数据 * @description 删除数据 * @method remove * @param data 必选 json 要删除据数据,必须包含主键字段 * @return void */ remove(data) { var me = this data[paramKey.state] = paramKey.removeStateVal data = this.conversion(data) if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * @title 获取数据包字符串 * @method toString * @description 获取数据包字符串 */ toString() { return JSON.stringify(this.dataPacks) } /** * showdoc * @title 清空数据包 * @description 清空数据包 * @method clear * @return void */ clear() { this.dataPacks = {} } /** * showdoc * @title 获取数据包 * @description 获取数据包 * @method getDataPack * @return json */ getDataPack() { return this.dataPacks } /** * showdoc * @title 是否含有数据包 * @description 是否含有数据包 * @method isEmpty * @return boolean */ isEmpty() { if (this.dataPacks[paramKey.data] && this.dataPacks[paramKey.data].length > 0) return false; return true; } /** * showdoc * @title 追加保存包 * @description 追加保存包 * @method appendSavePack * @param savePack 必选 json 保存包 * @return void */ appendSavePack(savePack) { this._appendSavePack.push(savePack) } /** * showdoc * @title 提交数据 * @description 提交数据 * @method save * @param options 非必选 json 提交时的附加参数 * @param beforeSubmitCallBack 非必选 json 提交前回调,参数:options, param * @return Promise */ save(options, beforeSubmitCallBack) { options = options || {}; let param = {} this._appendSavePack.unshift(this.getDataPack()) param[paramKey.root] = JSON.stringify(this._appendSavePack) // param[paramKey.version] = "1.0.0" param[paramKey.funcPath] = this.funcPath; param[paramKey.viewItemId] = this.viewItemId; if (this.extParam) Object.assign(param, this.extParam); Object.assign(param, options) if (beforeSubmitCallBack) { beforeSubmitCallBack.call(this, options, param, param[paramKey.root]); } let url = this.url if (this.pn) { if (url.indexOf('?') == -1) url = url + "?pn=" + this.pn; else url = url + "&pn=" + this.pn; } if (options.wsid) { if (url.indexOf('?') == -1) url = url + "?wsid=" + options.wsid; else url = url + "&wsid=" + options.wsid; } let showError = options.showError; delete options.showError; return this.request({ url: url, method: 'post', showError, data: param }) } wsSave(options={}, beforeSubmitCallBack) { let id = (new Date()).valueOf(); if (!this.wsUrl) { throw new Error("未配置webscoket保存地址[saveWsUrl]") } let wsUrl = this.wsUrl.replace("{id}",id); let ws = new WebSocket(wsUrl); let me = this; ws.addEventListener("open",function(){ options.wsid = id; options.showError = false, me.save(options, beforeSubmitCallBack) }) return ws; } } // CONCATENATED MODULE: ./src/base/dataHelper/src/flowHelper/index.js // 审批意见 let getApprovalInfo = ({ request, url, ftaskguid, flowtype }) => { let promise let dataUrl = url || src_hiSetting.getApprovalInfo if (ftaskguid) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?ftaskguid=" + ftaskguid; else dataUrl = dataUrl + "&ftaskguid=" + ftaskguid; } if (flowtype) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?flowtype=" + flowtype; else dataUrl = dataUrl + "&flowtype=" + flowtype; } promise = request({ url: dataUrl, method: 'post' }) return promise } // 处理流程 let processFlow = ({ request, url, data, param }) => { let promise; let dataUrl = url || src_hiSetting.processFlow; let __data = { __body: JSON.stringify(data), } if (param) { Object.assign(__data, param) } promise = request({ url: dataUrl, data: __data, method: 'post' }) return promise } // 任务中心查询 let queryTask = ({ request, url, param }) => { let promise; let dataUrl = url || src_hiSetting.queryTask; promise = request({ url: dataUrl, data: param, method: 'post' }) return promise } // 打开流程接口 let getFlowInfo = ({ request, url, data }) => { let promise; promise = request({ url: url || src_hiSetting.getFlowInfo, data: data, method: 'post' }) return promise } // 单号打开流程接口 let openOrdernumber = ({ request, fordernumber, url }) => { let promise; let dataUrl = url || src_hiSetting.openOrdernumber; let openurl = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: openurl, method: 'get' }) return promise } // 撤回 let withdrawtask = ({ request, url, ftaskguid }) => { let promise; let dataUrl = url || src_hiSetting.withdrawtask; let path = `${dataUrl}?ftaskguid=${ftaskguid}` promise = request({ url: path, method: 'get' }) return promise } // 反审 let umpireOrder = ({ request, url, fordernumber }) => { let promise; let dataUrl = url || src_hiSetting.umpireOrder; let path = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let taskDiagram = ({ request, url, forderguid, fmodelpath, fversion }) => { let promise; let dataUrl = url || src_hiSetting.taskDiagram; let path = `${dataUrl}?fmodelpath=${fmodelpath}${fversion ? ("&fversion=" + fversion) : ""}` if (forderguid) { path = path + "&forderguid=" + forderguid } promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let ganttChart = ({ request, url, fordernumber }) => { let promise; let path; let dataUrl = url || src_hiSetting.ganttChart; if (fordernumber) { path = dataUrl + "?fordernumber=" + fordernumber } promise = request({ url: path, method: 'get' }) return promise } /* harmony default export */ var flowHelper = ({ getApprovalInfo, processFlow, queryTask, getFlowInfo, withdrawtask, taskDiagram, ganttChart, openOrdernumber, umpireOrder }); // CONCATENATED MODULE: ./src/base/dataHelper/src/funcHelper/index.js // 打开功能接口 let getFuncInfo = ({ request, url, data }) => { let promise; promise = request({ url: url, data: data, method: 'post' }) return promise } /* harmony default export */ var funcHelper = ({ getFuncInfo }); // CONCATENATED MODULE: ./src/base/dataHelper/src/index.js /* harmony default export */ var dataHelper_src = ({ queryHelper: queryHelper, saveHelper: saveHelper_SavePackHelper, flowHelper: flowHelper, funcHelper: funcHelper }); // CONCATENATED MODULE: ./src/base/dataHelper/index.js /* harmony default export */ var dataHelper = (dataHelper_src); // CONCATENATED MODULE: ./src/eap/user/org.js //调用org方法时一定要在service.js/initUser()之后 function getCurrentUser() { return window.eap.userInfo || {}; } function getMainUser() { if (window.eap.userInfo && window.eap.userInfo.main) return window.eap.userInfo.main; else if (window.eap.userInfo) return window.eap.userInfo; return {} } /* harmony default export */ var org = ({ /** * 当前用户ID * * @return */ userId: function () { return getMainUser().fuserid || ""; }, /** * 当前用户姓名 * * @return */ userName: function () { return getMainUser().fusername || ""; }, /** * 当前用户部门ID * * @return */ deptId: function () { return getMainUser().fdeptid || ""; }, /** * 当前用户部门名称 * * @return */ deptName: function () { return getMainUser().fdeptname || ""; }, /** * 当前用户岗位ID * * @return */ roleId: function () { return getMainUser().froleid || ""; }, /** * 当前用户岗位名称 * * @return */ roleName: function () { return getMainUser().frolename || ""; }, /** * 当前用户组织机构路径 * * @return */ orgPath: function () { return getMainUser().fuserorgpath || ""; }, orgName: function () { return getMainUser().forgname || ""; }, orgId: function () { return getMainUser().forgid || ""; }, //直属上级用户ID superId: function () { return getCurrentUser().fsuperuserid || ""; }, //直属上级用户姓名 superName: function () { return getCurrentUser().fsuperusername || ""; }, /***********编制******************************************************************************************* */ //用户编制ID bzId: function () { return getCurrentUser().fbzid || ""; }, //用户编制名称 bzName: function () { return getCurrentUser().fbzname || ""; }, //用户编制部门ID bzDeptId: function () { return getCurrentUser().fdeptid || ""; }, //用户编制部门名称 bzDeptName: function () { return getCurrentUser().fdeptname || ""; }, //用户编制岗位ID bzRoleId: function () { return getCurrentUser().froleid || ""; }, //用户编制岗位名称 bzRoleName: function () { return getCurrentUser().frolename || ""; }, //用户编制机构路径 bzOrgPath: function () { return getCurrentUser().fuserorgpath || ""; }, //用户编制机构名称 bzOrgName: function () { return getCurrentUser().forgname || ""; }, //用户编制机构ID bzOrgId: function () { return getCurrentUser().forgid || "" }, //当前用户所属公司的机构与部门ID orgDeptId:function(){ return (getCurrentUser().forgid || "") + "." + (getCurrentUser().fdeptid || ""); }, //当前用户所属公司的机构与部门名称 orgDeptName:function(){ return (getCurrentUser().forgname || "") + "." + (getCurrentUser().fdeptname || ""); }, //直属上级编制ID bzSuperId: function () { return getCurrentUser().fsuperbzid || ""; }, //直属上级编制名称 bzSuperName: function () { return getCurrentUser().fsuperbzname || ""; }, /** * 当前用户saas部门ID * * @return */ saasDeptId: function () { return getCurrentUser().fdeptid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /** * 当前用户saas岗位ID * * @return */ saasRoleId: function () { return getCurrentUser().froleid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /**********代理********************************************************************************************** */ /** * 当前代理用户ID * * @return */ proxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fuserid; }, /** * 当前代理用户姓名 * * @return */ proxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fusername; }, /** * 当前代理编制ID * * @return */ bzProxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzid; }, /** * 当前代理编制名称 * * @return */ bzProxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzname }, /******************************************************************************************************** */ /** * 根据岗位ID获取用户编制号列表,逗号隔开 * * @param roleId * @return */ getBzByRole: function (roleId) { return [] }, /** * 根据部门ID获取用户编制号列表,逗号隔开 * * @param deptId * @return */ getBzByDept: function (deptId) { return ""; }, /** * 根据当前用户岗位ID获取编制号列表,逗号隔开 * * @return */ getBzByRole: function () { return getBzByRole(roleId()); }, /** * 根据当前用户部门ID获取编制号列表,逗号隔开 * * @return */ getBzByDept: function () { return getBzByDept(deptId()); }, }); // CONCATENATED MODULE: ./src/eap/utils/biz.js const modelPath = "/platf/useroperate/entity/SysUseroperate.xml"; function getWsUrl(url){ //补全URL if (!(url.toLowerCase().startsWith("ws://") || url.toLowerCase().startsWith("wss://"))) { let site = window.HIVUI_SETTING.url site = site.replace("https", "wss") site = site.replace("http", "ws") if (url.startsWith("/")) url = site + url; else url = site + "/" + url; } if (window.HIVUI_SETTING.projectName && url.indexOf('pn=') == -1 ) { let pn = window.HIVUI_SETTING.projectName; if (url.indexOf('?') == -1) url = url + "?pn=" + pn else url = url + "&pn=" + pn } return url; } function getUrl(url) { let project = window.HIVUI_SETTING.project || window.HIVUI_SETTING.projectName || ""; if (project.indexOf("/") != -1) project = project.split("/")[0] if (url.indexOf(".pro") != -1) { let _url = url; let param = ""; if (_url.indexOf("?") != -1) { _url = _url.substring(0, _url.lastIndexOf("?")) param = url.substring(url.lastIndexOf("?")) } let extName = _url.substring(_url.lastIndexOf(".")) url = _url.replace(/\.\w+/g, "") + extName + param; } if (project) { let arrUrl = url.split("/"); if (arrUrl[0] != "") arrUrl[0] = project; else arrUrl[1] = project; url = arrUrl.join("/"); } let newUrl = ""; if (url.startsWith("/")) newUrl = newUrl + url; else newUrl = newUrl + "/" + url; if (window.HIVUI_SETTING.projectName) { if (url.indexOf("?") != -1) newUrl = newUrl + "&pn=" + window.HIVUI_SETTING.projectName; else newUrl = newUrl + "?pn=" + window.HIVUI_SETTING.projectName; } return newUrl; } /* harmony default export */ var biz = ({ getWsUrl, createNumber() { return "NEW-YYMMDD-9999" }, //下载地址 getDownloadUrl(url, fileName) { var fileExtension = url.substr( url.lastIndexOf(".") + 1 ); var file_path = ""; if (!fileName) { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}`; } else { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}&name=${fileName}.${fileExtension}`; } return file_path; }, //删除用户数据 delUserData(key, type) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.remove({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }); return saveHelper.save(); }, //查询用户数据 async getUserData(key, type) { var where = new dataHelper.queryHelper.Where({ junction: 'and' }); where.addCondition("FKEY", key, "dbString"); where.addCondition("FTYPE", type, "dbString"); where.addCondition("FUSERID", org.bzId(), "dbString"); var param = new dataHelper.queryHelper.Param({ where: where }); let result = await dataHelper.queryHelper.query(param, modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.queryUrl, pn: window.HIVUI_SETTING.projectName }); if (result.dataPack.rows.length > 0) return result.dataPack.rows[0].FVALUE; return null; }, //保存数据 saveUserData(key, data, type, desc) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.override({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }, { FKEY: key, FUSERID: org.bzId(), FTYPE: type, FVALUE: typeof data == "string" ? data : JSON.stringify(data), FNAME: desc || "" }); return saveHelper.save(); } , getUrl, getResUrl(url) { return HIVUI_SETTING.deployDir + getUrl(url); } }); // CONCATENATED MODULE: ./src/eap/utils/index.js /* harmony default export */ var eap_utils = ({ biz: biz, FormFunc: biz, DateFunc: utils.date, NumberFunc: utils.number, StringFunc: utils.string, BomFunc: utils.bom, OrgFunc: org }); // CONCATENATED MODULE: ./src/eap/axios.js // create an axios instance const service = axios_default.a.create({ baseURL: "http://192.168.4.106:7777", timeout: 30 * 1000 // request timeout }) let hasMessageFunc = true; try { hasMessageFunc = !!(hasMessageFunc && external_ELEMENT_["Message"]); } catch (e) { hasMessageFunc = false; } service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8' // request拦截器 service.interceptors.request.use( config => { if (config.headers['Content-Type'] === undefined) { config.headers['Content-Type'] = 'application/json;charset=UTF-8' } const token = getToken(); //默认显示请求成功的返回信息 if(typeof(config.showSuccessTips)=="undefined"){ config.showSuccessTips=true; } //默认显示请求失败的返回信息 if(typeof(config.showError)=="undefined"){ config.showError=true; } if (token && !config.noToken && !(config.url.startsWith("http") && !config.url.startsWith(window.HIVUI_SETTING.url))) { config.headers['Authorization'] = 'Bearer ' + token; } let __localeLang = js_cookie_default.a.get("locale"); if (__localeLang) {//设置语言包 if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.locale = __localeLang; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "locale", __localeLang); } } if (window.HIVUI_SETTING) { let site = window.HIVUI_SETTING.url //补全URL if (!config.url.toLowerCase().startsWith("http")) { if (config.url.startsWith("/")) config.url = site + config.url; else config.url = site + "/" + config.url; } if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName && config.url.indexOf('pn=') == -1 && !(config.params && config.params.pn)) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } //岗位ID if (window.scpRequestData && window.scpRequestData.fbzid) { let fbzid = window.scpRequestData.fbzid; if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.fbzid = fbzid; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "fbzid", fbzid); } } } // 如果接口需要签名, 则通过请求时,headers中传递sign参数true const iSSign = config.headers['sign']; if (iSSign || iSSign === undefined) { const timeStamp = new Date().getTime().toString().substr(0, 10); config.headers['timeStamp'] = timeStamp; //config.headers['signature'] = sign(config, nonce, timeStamp, store.getters.appSecret) } //开启下载流模式 if (config.isDownload) { config.responseType = 'blob'; delete config.isDownload; } return config }, error => { // do something with request error return Promise.reject(error) } ) function MessageFunc(opt, res = {}) {//detailMsg\msg\message let messageCustomClass = eap_utils.StringFunc.id(8); let __position = { top: 15, margin: 20, right: 15 }; let isMsgBox = window.HIVUI_SETTING.messageType == "msgBox"; if (opt.showClose) {//关闭按钮多偏移 __position.margin += 15; __position.right += 25; } if (isMsgBox) { __position.top = 0; __position.right = 0; __position.margin = 20; } let msgTpl = `<div class="zhcDetailMsg" style="max-height:200px;min-height: 20px;padding:3px 0;word-break:break-all;margin-right: ${__position.margin}px;overflow:auto;transition:all 0.3s;"><span>${res.msg || res.resmessage}</span><i class="el-icon-caret-right" title="${(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || '弹出报错详情'}" style="position: absolute;top:${__position.top}px;right:${__position.right}px;font-size:18px;color:#F56C6C;cursor:pointer;transition:all 0.3s;"></i></div>`; let msgVue = null; let isShowDetail = res.detailMsg && (res.detailMsg != opt.message); opt.customClass = messageCustomClass; if (isMsgBox) { if (isShowDetail) { opt.message = msgTpl; } else { opt.message = `<div style="max-height:200px;word-break:break-all;overflow:auto;">${opt.message}</div>`; } msgVue = Object(external_ELEMENT_["MessageBox"])({ ...{ title: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_msgTips) || "消息提示", confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_define) || '确定', dangerouslyUseHTMLString: true }, ...opt }); } else { if (isShowDetail) { opt.message = msgTpl; opt.dangerouslyUseHTMLString = true; } msgVue = Object(external_ELEMENT_["Message"])(opt); } if (isShowDetail) { let arrowBtn = document.querySelector("." + messageCustomClass + " .zhcDetailMsg>i"); arrowBtn.onclick = () => { if (arrowBtn.previousSibling.className == "zhcDetailMsg") { arrowBtn.previousSibling.innerText = res.msg || res.resmessage; arrowBtn.previousSibling.className = ""; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || "弹出报错详情"; arrowBtn.style.color = "#F56C6C"; arrowBtn.style.transform = "rotate(0)"; } else { arrowBtn.previousSibling.innerText = res.detailMsg; arrowBtn.previousSibling.className = "zhcDetailMsg"; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_hideErrorDetail) || "收起报错详情"; arrowBtn.style.color = ""; arrowBtn.style.transform = "rotate(90deg)"; } }; } } function for401(isSkip) { // Alert('你已被登出,,点击确认按钮进入登录页', '登录超时', { // confirmButtonText: '确定', // callback: action => { // window.location.href = window.appsettings.login; // } // }); if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { let loginUrl = window.HIVUI_SETTING.customLoginUrl||window.HIVUI_SETTING.loginUrl if (window.HIVUI_SETTING.isSingleLogin) { loginUrl = window.HIVUI_SETTING.singleLoginUrl; if (loginUrl.endsWith("=")) { let params = window.location.search.slice(1).split("&").filter(item => { if (item.indexOf("ticket") == -1) { return item } }); let currPageUrl = window.location.origin + window.location.pathname; if (window.HIVUI_SETTING.mainPageUrl.indexOf(currPageUrl) == -1) { params.push("eapReturnUrl=" + currPageUrl); currPageUrl = window.HIVUI_SETTING.mainPageUrl; } currPageUrl = currPageUrl.replace(/#\//g, ""); loginUrl = loginUrl + currPageUrl + (params.length > 0 ? '?' : '') + params.join("&"); } } else { if (!loginUrl.endsWith("#/")) { loginUrl += "#/"; } loginUrl += "?eapReturnUrl=" + encodeURIComponent(window.location.href); } if ((top.window.mainPageInitErrorJump) || isSkip) { window.location.href = loginUrl; } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { window.location.href = loginUrl; }); } } } service.interceptors.response.use(response => { if (response.config.responseType == "arraybuffer") { return response; } if (response.config.normalResult) return response; const res = response.data; if (res.type == "application/octet-stream" || response.headers["content-type"] == "application/octet-stream") { return response; } else if (response.config.responseType == "blob") { //流数据抛错,将blob类型重新转换成json let fileReader = new FileReader(); fileReader.readAsText(res, 'utf-8'); fileReader.onload = function () { let __data = JSON.parse(fileReader.result); return hasMessageFunc && MessageFunc({ message: __data.msg || __data.message || 'Error', type: 'error', showClose: true, }, res) } return Promise.reject(res) } if (response.status != "200" || (response.data.status && response.data.status != "200")) { let data = {} try { data = JSON.parse(response.config.data) } catch (ex) { } if (data.__isIntercept === false) { if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return Promise.reject(res) } setTimeout(()=>{ hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res); },0); if (res.status == 401 || (res.data && res.data.status == 401)) { for401(response.config.isSkip); return Promise.reject(error) } //return Promise.reject(new Error(res.message || 'Error')) return Promise.reject(res, JSON.parse(response.config.data || "{}")) } else { res.dataPack = res.dataPack || res.data if ((res.detailMsg || res.msg) && response.config.showSuccessTips) { hasMessageFunc && MessageFunc({ message: res.detailMsg || res.msg || 'Error', type: (res.popupbox && res.popupbox.type) || 'success', showClose: true, duration: 5 * 1000 }, res); } if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return res } }, error => { let res = error.response; if(error.config&&!error.config.showError){ return; } if (!res) { hasMessageFunc && MessageFunc({ message: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_responseNull) || '后端请求返回出错,请联系开发人员', type: 'error', showClose: true, duration: 5 * 1000 }); return; } let data = {} try { data = JSON.parse(res.config.data) } catch (ex) { } if (data.__isIntercept === false) { return Promise.reject(error) } if (res.status == 401 || (res.data && res.data.status == 401)) { for401(res.config.isSkip); return Promise.reject(error) } console.log('err' + error)// for debug // Message({ // message: error.message, // type: 'error', // duration: 5 * 1000 // }) return Promise.reject(error) }); /* harmony default export */ var eap_axios = (service); function ajax(config) { const token = getToken(); if (window.HIVUI_SETTING) { if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } } //创建XMLHttpRequest对象 let url = config.url || ""; let method = config.method || "GET"; let data = config.data || {}; let success = config.success; let async = config.async == undefined ? true : config.async; let fail = config.fail; var xhr = new XMLHttpRequest(); //true表示异步 xhr.open(method, url, async); if (config.timeout && async === true) xhr.timeout = config.timeout; xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8'); if (token && !config.noToken && !(url.startsWith("http") && !url.startsWith(window.HIVUI_SETTING.url))) { xhr.setRequestHeader('Authorization', 'Bearer ' + token); } if (JSON.stringify(data) != "{}") { xhr.send(JSON.stringify(data)); } else { xhr.send(); } if (async == false) { if (xhr.status == 200) { var res = JSON.parse(xhr.responseText); success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } else { xhr.onreadystatechange = function () { // readyState == 4说明请求已完成 if (xhr.readyState == 4) { if (xhr.status == 200 || xhr.status == "200") { var res = JSON.parse(xhr.responseText); //responseText:从服务器获得数据 success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } }; } } // CONCATENATED MODULE: ./src/eap/request.js let request_service = eap_axios; //export default service /* harmony default export */ var eap_request = (function (cfg) { if ((window.isElectron || top.window.isElectron)) { var urlsCallback if (window.electronCfg) urlsCallback = window.electronCfg.urlCallback if (top.window.electronCfg) urlsCallback = top.window.electronCfg.urlCallback for (var key in urlsCallback) { if (cfg.url.indexOf(key) > -1) return urlsCallback[key](cfg); } } return eap_axios(cfg); }); // CONCATENATED MODULE: ./src/eap/user/service.js var service_request = eap_request; // if (window.HIVUI_SETTING) // request = window.HIVUI_SETTING.request; // else { // window.HIVUI_SETTING = hiSetting // } /** * 登陆 * @param {Id} 系统Id */ function login(userName, pwd) { var data = { username: userName.trim(), password: md5_default()(pwd) }; let _promise=service_request({ url: window.HIVUI_SETTING.login||(window.HIVUI_SETTING.serverUrl+"/login/sso-login"), method: 'post', data: data }); _promise.then(res=>{ const data = res if(data.token){ setToken(data.token); } if(location.hash=="#miniLogin"){//外部调用登录接口时小登录判断 if(eap_utils.StringFunc.getUrlValue("questType")=="ajax"){ top.window.SysPage&&top.window.SysPage.closeMiniLogin(eap_utils.StringFunc.getUrlValue("isRefresh")); }else{ location.reload(); } } }); return _promise; } /** * 登出 */ function logout() { if(!getToken()){ return new Promise((resolve, reject)=>{ resolve(); }); } let _promise=service_request({ url: window.HIVUI_SETTING.logout||(window.HIVUI_SETTING.serverUrl+"/login/sso-logout"), method: 'post' }); _promise.then(res=>{ removeToken(); }); return _promise; } /** * 获取用户信息 * @param {data} */ function getInfo(data) { return service_request({ url: window.HIVUI_SETTING.userInfo, method: 'post', data: data }) } function initUser(data) { let promise = getInfo(data) promise.then(res => { if (!window.eap) window.eap = {} window.eap.userInfo = res.dataPack; }) return promise; } //修改密码 function modifyPw(oldPwd, newPwd) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/user/update-pwd", method: 'post', data: { oldPwd, newPwd } }) } //获取岗位列表 function getBzList(data) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/auth/func-multi-bz", method: 'post', data: data }) } /** * 解锁账户 * @param {data} */ function unlock(userId,pwd) { var data = { userId: userId.trim(), password: md5_default()(pwd) }; return service_request({ url: window.HIVUI_SETTING.serverUrl + "/login/unlock", method: 'post', data: data }) } /* harmony default export */ var user_service = ({ login, logout, getInfo, modifyPw, getBzList, unlock }); // CONCATENATED MODULE: ./src/eap/user/index.js /* harmony default export */ var user = ({ service: user_service,auth: auth }); // CONCATENATED MODULE: ./src/eap/page/index.js /* harmony default export */ var page = ({ closepage() { if (top.window.SysPage && top.window.SysPage.closePage) { top.window.SysPage.closePage(); } else { window.close(); } }, /* title:标签页名称,不传则默认显示功能名称 url:标签页访问地址 params:携带参数 method:传"get"/"post"参数,不传默认为get target:传"me"/"_blank",me为当前标签页覆盖打开,_blank为必定新标签打开,不传参数则默认同url标签覆盖,不同的url打开新标签 */ newPage(title,url,params,method,target){ if(url&&url.indexOf("http")!=0){ url=location.origin+(top.window.deployDir?("/"+top.window.deployDir):'') + (top.window.pName?("/"+top.window.pName):'') + url; } if (top.window.SysPage && top.window.SysPage.newPage) { top.window.SysPage.newPage(title,url,params,method,target); } else { window.open(url,"_blank"); } } }); // CONCATENATED MODULE: ./src/eap/dataHelper/index.js //(param, modelFile, funcPath, { request, url, method, pn, extParam }) let dataHelper_query = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.queryUrl; // //request, url, method, pn, extParam return dataHelper.queryHelper.query(param, modelFile, funcPath, options) } let dataHelper_exportData = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName if (!options.url && setting) options.url = setting.exportUrl; //{ request, url, method, pn, extParam } return dataHelper.queryHelper.exportData(param, modelFile, funcPath, options) } class dataHelper_SaveHelper extends dataHelper.saveHelper { constructor(modelFile, funcPath, options = {}) { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.saveUrl; //{ request, url, pn, extParam } super(modelFile, funcPath, options); } } /* harmony default export */ var eap_dataHelper = ({ query: dataHelper_query, exportData: dataHelper_exportData, Param: dataHelper.queryHelper.Param, Where: dataHelper.queryHelper.Where, types: dataHelper.queryHelper.types, Orders: dataHelper.queryHelper.Orders, SaveHelper: dataHelper_SaveHelper }); // EXTERNAL MODULE: ./node_modules/lodash/defaultsDeep.js var defaultsDeep = __webpack_require__("3f84"); var defaultsDeep_default = /*#__PURE__*/__webpack_require__.n(defaultsDeep); // EXTERNAL MODULE: ./package_eap.json var package_eap = __webpack_require__("ed27"); // CONCATENATED MODULE: ./src/eap/index.js function mergeConfig() { let args = [...arguments] return defaultsDeep_default()(...args) } let eap_lang = { get(key) { //return Vue.prototype.$t(key) let keys = {} if (window.lang && window.lang.keys) keys = window.lang.keys; return keys[key] || key; } } /* harmony default export */ var eap = ({ user: user,ajax: ajax, request: eap_request, mergeConfig, lang: eap_lang, utils: eap_utils, page: page, dataHelper: eap_dataHelper, }); //加载默认设至到全局 if (!window.HIVUI_SETTING) { window.HIVUI_SETTING = src_hiSetting; //console.log("已加载默认配置:", hiSetting) } window.lang = eap_lang //输出版本信息 console.log( '%c hi-eap-basic %c v'.concat(package_eap.version, ' '), 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #ff8e15; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;', ); //console.log(process.env.NODE_VER) // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (eap); /***/ }), /***/ "fba5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }), /***/ "fbb2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GenericBarcode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var GenericBarcode = function (_Barcode) { _inherits(GenericBarcode, _Barcode); function GenericBarcode(data, options) { _classCallCheck(this, GenericBarcode); return _possibleConstructorReturn(this, (GenericBarcode.__proto__ || Object.getPrototypeOf(GenericBarcode)).call(this, data, options)); // Sets this.data and this.text } // Return the corresponding binary numbers for the data provided _createClass(GenericBarcode, [{ key: "encode", value: function encode() { return { data: "10101010101010101010101010101010101010101", text: this.text }; } // Resturn true/false if the string provided is valid for this encoder }, { key: "valid", value: function valid() { return true; } }]); return GenericBarcode; }(_Barcode3.default); exports.GenericBarcode = GenericBarcode; /***/ }), /***/ "fd7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _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; }; exports.default = function (old, replaceObj) { return _extends({}, old, replaceObj); }; /***/ }), /***/ "ff84": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE = __webpack_require__("349c"); var _CODE2 = __webpack_require__("da3d"); var _EAN_UPC = __webpack_require__("241e"); var _ITF = __webpack_require__("9ffa"); var _MSI = __webpack_require__("8e51"); var _pharmacode = __webpack_require__("7cb9"); var _codabar = __webpack_require__("c17b"); var _GenericBarcode = __webpack_require__("fbb2"); exports.default = { CODE39: _CODE.CODE39, CODE128: _CODE2.CODE128, CODE128A: _CODE2.CODE128A, CODE128B: _CODE2.CODE128B, CODE128C: _CODE2.CODE128C, EAN13: _EAN_UPC.EAN13, EAN8: _EAN_UPC.EAN8, EAN5: _EAN_UPC.EAN5, EAN2: _EAN_UPC.EAN2, UPC: _EAN_UPC.UPC, UPCE: _EAN_UPC.UPCE, ITF14: _ITF.ITF14, ITF: _ITF.ITF, MSI: _MSI.MSI, MSI10: _MSI.MSI10, MSI11: _MSI.MSI11, MSI1010: _MSI.MSI1010, MSI1110: _MSI.MSI1110, pharmacode: _pharmacode.pharmacode, codabar: _codabar.codabar, GenericBarcode: _GenericBarcode.GenericBarcode }; /***/ }), /***/ "ffd6": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && baseGetTag(value) == symbolTag); } module.exports = isSymbol; /***/ }) /******/ }); //# sourceMappingURL=eap.common.js.map
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ "00fd": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }), /***/ "03dd": /***/ (function(module, exports, __webpack_require__) { var isPrototype = __webpack_require__("eac5"), nativeKeys = __webpack_require__("57a5"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys; /***/ }), /***/ "0644": /***/ (function(module, exports, __webpack_require__) { var baseClone = __webpack_require__("3818"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4; /** * This method is like `_.clone` except that it recursively clones `value`. * * @static * @memberOf _ * @since 1.0.0 * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. * @see _.clone * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * * var deep = _.cloneDeep(objects); * console.log(deep[0] === objects[0]); * // => false */ function cloneDeep(value) { return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } module.exports = cloneDeep; /***/ }), /***/ "07c7": /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "07df": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _ITF2 = __webpack_require__("3c7c"); var _ITF3 = _interopRequireDefault(_ITF2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Calculate the checksum digit var checksum = function checksum(data) { var res = data.substr(0, 13).split('').map(function (num) { return parseInt(num, 10); }).reduce(function (sum, n, idx) { return sum + n * (3 - idx % 2 * 2); }, 0); return Math.ceil(res / 10) * 10 - res; }; var ITF14 = function (_ITF) { _inherits(ITF14, _ITF); function ITF14(data, options) { _classCallCheck(this, ITF14); // Add checksum if it does not exist if (data.search(/^[0-9]{13}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (ITF14.__proto__ || Object.getPrototypeOf(ITF14)).call(this, data, options)); } _createClass(ITF14, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === checksum(this.data); } }]); return ITF14; }(_ITF3.default); exports.default = ITF14; /***/ }), /***/ "087d": /***/ (function(module, exports) { /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } module.exports = arrayPush; /***/ }), /***/ "0a06": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var buildURL = __webpack_require__("30b5"); var InterceptorManager = __webpack_require__("f6b4"); var dispatchRequest = __webpack_require__("5270"); var mergeConfig = __webpack_require__("4a7b"); /** * Create a new instance of Axios * * @param {Object} instanceConfig The default config for the instance */ function Axios(instanceConfig) { this.defaults = instanceConfig; this.interceptors = { request: new InterceptorManager(), response: new InterceptorManager() }; } /** * Dispatch a request * * @param {Object} config The config specific for this request (merged with this.defaults) */ Axios.prototype.request = function request(config) { /*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API if (typeof config === 'string') { config = arguments[1] || {}; config.url = arguments[0]; } else { config = config || {}; } config = mergeConfig(this.defaults, config); // Set config.method if (config.method) { config.method = config.method.toLowerCase(); } else if (this.defaults.method) { config.method = this.defaults.method.toLowerCase(); } else { config.method = 'get'; } // Hook up interceptors middleware var chain = [dispatchRequest, undefined]; var promise = Promise.resolve(config); this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { chain.unshift(interceptor.fulfilled, interceptor.rejected); }); this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { chain.push(interceptor.fulfilled, interceptor.rejected); }); while (chain.length) { promise = promise.then(chain.shift(), chain.shift()); } return promise; }; Axios.prototype.getUri = function getUri(config) { config = mergeConfig(this.defaults, config); return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); }; // Provide aliases for supported request methods utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, config) { return this.request(mergeConfig(config || {}, { method: method, url: url })); }; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, data, config) { return this.request(mergeConfig(config || {}, { method: method, url: url, data: data })); }; }); module.exports = Axios; /***/ }), /***/ "0b07": /***/ (function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__("34ac"), getValue = __webpack_require__("3698"); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } module.exports = getNative; /***/ }), /***/ "0d24": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"), stubFalse = __webpack_require__("07c7"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "0df6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Syntactic sugar for invoking a function and expanding an array for arguments. * * Common use case would be to use `Function.prototype.apply`. * * ```js * function f(x, y, z) {} * var args = [1, 2, 3]; * f.apply(null, args); * ``` * * With `spread` this example can be re-written. * * ```js * spread(function(x, y, z) {})([1, 2, 3]); * ``` * * @param {Function} callback * @returns {Function} */ module.exports = function spread(callback) { return function wrap(arr) { return callback.apply(null, arr); }; }; /***/ }), /***/ "0f0f": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * The base implementation of `_.assignIn` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssignIn(object, source) { return object && copyObject(source, keysIn(source), object); } module.exports = baseAssignIn; /***/ }), /***/ "100e": /***/ (function(module, exports, __webpack_require__) { var identity = __webpack_require__("cd9d"), overRest = __webpack_require__("2286"), setToString = __webpack_require__("c1c9"); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { return setToString(overRest(func, start, identity), func + ''); } module.exports = baseRest; /***/ }), /***/ "1041": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbolsIn = __webpack_require__("a029"); /** * Copies own and inherited symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbolsIn(source, object) { return copyObject(source, getSymbolsIn(source), object); } module.exports = copySymbolsIn; /***/ }), /***/ "124f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // https://en.wikipedia.org/wiki/MSI_Barcode#Character_set_and_binary_lookup var MSI = function (_Barcode) { _inherits(MSI, _Barcode); function MSI(data, options) { _classCallCheck(this, MSI); return _possibleConstructorReturn(this, (MSI.__proto__ || Object.getPrototypeOf(MSI)).call(this, data, options)); } _createClass(MSI, [{ key: "encode", value: function encode() { // Start bits var ret = "110"; for (var i = 0; i < this.data.length; i++) { // Convert the character to binary (always 4 binary digits) var digit = parseInt(this.data[i]); var bin = digit.toString(2); bin = addZeroes(bin, 4 - bin.length); // Add 100 for every zero and 110 for every 1 for (var b = 0; b < bin.length; b++) { ret += bin[b] == "0" ? "100" : "110"; } } // End bits ret += "1001"; return { data: ret, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9]+$/) !== -1; } }]); return MSI; }(_Barcode3.default); function addZeroes(number, n) { for (var i = 0; i < n; i++) { number = "0" + number; } return number; } exports.default = MSI; /***/ }), /***/ "1290": /***/ (function(module, exports) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } module.exports = isKeyable; /***/ }), /***/ "1310": /***/ (function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }), /***/ "1368": /***/ (function(module, exports, __webpack_require__) { var coreJsData = __webpack_require__("da03"); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } module.exports = isMasked; /***/ }), /***/ "18d8": /***/ (function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__("234d"); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }), /***/ "1a2d": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var mapTag = '[object Map]'; /** * The base implementation of `_.isMap` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. */ function baseIsMap(value) { return isObjectLike(value) && getTag(value) == mapTag; } module.exports = baseIsMap; /***/ }), /***/ "1a8c": /***/ (function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }), /***/ "1ba5": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // http://www.barcodeisland.com/ean8.phtml // Calculate the checksum digit var checksum = function checksum(number) { var res = number.substr(0, 7).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a : sum + a * 3; }, 0); return (10 - res % 10) % 10; }; var EAN8 = function (_EAN) { _inherits(EAN8, _EAN); function EAN8(data, options) { _classCallCheck(this, EAN8); // Add checksum if it does not exist if (data.search(/^[0-9]{7}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (EAN8.__proto__ || Object.getPrototypeOf(EAN8)).call(this, data, options)); } _createClass(EAN8, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftText', this).call(this, 0, 4); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(0, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftEncode', this).call(this, data, 'LLLL'); } }, { key: 'rightText', value: function rightText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightText', this).call(this, 4, 4); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(4, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightEncode', this).call(this, data, 'RRRR'); } }]); return EAN8; }(_EAN3.default); exports.default = EAN8; /***/ }), /***/ "1bac": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbolsIn = __webpack_require__("a029"), keysIn = __webpack_require__("9934"); /** * Creates an array of own and inherited enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeysIn(object) { return baseGetAllKeys(object, keysIn, getSymbolsIn); } module.exports = getAllKeysIn; /***/ }), /***/ "1cec": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Promise = getNative(root, 'Promise'); module.exports = Promise; /***/ }), /***/ "1d2b": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function bind(fn, thisArg) { return function wrap() { var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { args[i] = arguments[i]; } return fn.apply(thisArg, args); }; }; /***/ }), /***/ "1efc": /***/ (function(module, exports) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; /***/ }), /***/ "1fc8": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet; /***/ }), /***/ "2286": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * A specialized version of `baseRest` which transforms the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @param {Function} transform The rest array transform. * @returns {Function} Returns the new function. */ function overRest(func, start, transform) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } module.exports = overRest; /***/ }), /***/ "234d": /***/ (function(module, exports, __webpack_require__) { var memoize = __webpack_require__("e380"); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } module.exports = memoizeCapped; /***/ }), /***/ "2411": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), createAssigner = __webpack_require__("2ec1"); /** * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} customizer The function to customize assigned values. * @returns {Object} Returns `object`. * @example * * function customizer(objValue, srcValue) { * if (_.isArray(objValue)) { * return objValue.concat(srcValue); * } * } * * var object = { 'a': [1], 'b': [2] }; * var other = { 'a': [3], 'b': [4] }; * * _.mergeWith(object, other, customizer); * // => { 'a': [1, 3], 'b': [2, 4] } */ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { baseMerge(object, source, srcIndex, customizer); }); module.exports = mergeWith; /***/ }), /***/ "241e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UPCE = exports.UPC = exports.EAN2 = exports.EAN5 = exports.EAN8 = exports.EAN13 = undefined; var _EAN = __webpack_require__("89a2"); var _EAN2 = _interopRequireDefault(_EAN); var _EAN3 = __webpack_require__("1ba5"); var _EAN4 = _interopRequireDefault(_EAN3); var _EAN5 = __webpack_require__("583f"); var _EAN6 = _interopRequireDefault(_EAN5); var _EAN7 = __webpack_require__("a5d2"); var _EAN8 = _interopRequireDefault(_EAN7); var _UPC = __webpack_require__("e8b2"); var _UPC2 = _interopRequireDefault(_UPC); var _UPCE = __webpack_require__("be98"); var _UPCE2 = _interopRequireDefault(_UPCE); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.EAN13 = _EAN2.default; exports.EAN8 = _EAN4.default; exports.EAN5 = _EAN6.default; exports.EAN2 = _EAN8.default; exports.UPC = _UPC2.default; exports.UPCE = _UPCE2.default; /***/ }), /***/ "2444": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__("c532"); var normalizeHeaderName = __webpack_require__("c8af"); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' }; function setContentTypeIfUnset(headers, value) { if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { headers['Content-Type'] = value; } } function getDefaultAdapter() { var adapter; if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter adapter = __webpack_require__("b50d"); } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { // For node use HTTP adapter adapter = __webpack_require__("b50d"); } return adapter; } var defaults = { adapter: getDefaultAdapter(), transformRequest: [function transformRequest(data, headers) { normalizeHeaderName(headers, 'Accept'); normalizeHeaderName(headers, 'Content-Type'); if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) ) { return data; } if (utils.isArrayBufferView(data)) { return data.buffer; } if (utils.isURLSearchParams(data)) { setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); return data.toString(); } if (utils.isObject(data)) { setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); return JSON.stringify(data); } return data; }], transformResponse: [function transformResponse(data) { /*eslint no-param-reassign:0*/ if (typeof data === 'string') { try { data = JSON.parse(data); } catch (e) { /* Ignore */ } } return data; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: function validateStatus(status) { return status >= 200 && status < 300; } }; defaults.headers = { common: { 'Accept': 'application/json, text/plain, */*' } }; utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); }); module.exports = defaults; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"))) /***/ }), /***/ "2474": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Uint8Array = root.Uint8Array; module.exports = Uint8Array; /***/ }), /***/ "2478": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } module.exports = mapCacheGet; /***/ }), /***/ "2524": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } module.exports = hashSet; /***/ }), /***/ "253c": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } module.exports = baseIsArguments; /***/ }), /***/ "28c9": /***/ (function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }), /***/ "29f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "2a4a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var START_BIN = exports.START_BIN = '1010'; var END_BIN = exports.END_BIN = '11101'; var BINARIES = exports.BINARIES = ['00110', '10001', '01001', '11000', '00101', '10100', '01100', '00011', '10010', '01010']; /***/ }), /***/ "2b3e": /***/ (function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__("585a"); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }), /***/ "2d7c": /***/ (function(module, exports) { /** * A specialized version of `_.filter` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. */ function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } module.exports = arrayFilter; /***/ }), /***/ "2d83": /***/ (function(module, exports, __webpack_require__) { "use strict"; var enhanceError = __webpack_require__("387f"); /** * Create an Error with the specified message, config, error code, request and response. * * @param {string} message The error message. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The created error. */ module.exports = function createError(message, config, code, request, response) { var error = new Error(message); return enhanceError(error, config, code, request, response); }; /***/ }), /***/ "2dcb": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /** Built-in value references. */ var getPrototype = overArg(Object.getPrototypeOf, Object); module.exports = getPrototype; /***/ }), /***/ "2e67": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function isCancel(value) { return !!(value && value.__CANCEL__); }; /***/ }), /***/ "2ec1": /***/ (function(module, exports, __webpack_require__) { var baseRest = __webpack_require__("100e"), isIterateeCall = __webpack_require__("9aff"); /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } module.exports = createAssigner; /***/ }), /***/ "2fcc": /***/ (function(module, exports) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } module.exports = stackDelete; /***/ }), /***/ "30b5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); function encode(val) { return encodeURIComponent(val). 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 */ module.exports = function buildURL(url, params, paramsSerializer) { /*eslint no-param-reassign:0*/ if (!params) { return url; } var serializedParams; if (paramsSerializer) { serializedParams = paramsSerializer(params); } else if (utils.isURLSearchParams(params)) { serializedParams = params.toString(); } else { var parts = []; utils.forEach(params, function serialize(val, key) { if (val === null || typeof val === 'undefined') { return; } if (utils.isArray(val)) { key = key + '[]'; } else { val = [val]; } utils.forEach(val, function parseValue(v) { if (utils.isDate(v)) { v = v.toISOString(); } else if (utils.isObject(v)) { v = JSON.stringify(v); } parts.push(encode(key) + '=' + 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; }; /***/ }), /***/ "30c9": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isLength = __webpack_require__("b218"); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /***/ "32b3": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignValue; /***/ }), /***/ "32f4": /***/ (function(module, exports, __webpack_require__) { var arrayFilter = __webpack_require__("2d7c"), stubArray = __webpack_require__("d327"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbols = !nativeGetSymbols ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; module.exports = getSymbols; /***/ }), /***/ "349c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE39 = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Code_39#Encoding var CODE39 = function (_Barcode) { _inherits(CODE39, _Barcode); function CODE39(data, options) { _classCallCheck(this, CODE39); data = data.toUpperCase(); // Calculate mod43 checksum if enabled if (options.mod43) { data += getCharacter(mod43checksum(data)); } return _possibleConstructorReturn(this, (CODE39.__proto__ || Object.getPrototypeOf(CODE39)).call(this, data, options)); } _createClass(CODE39, [{ key: "encode", value: function encode() { // First character is always a * var result = getEncoding("*"); // Take every character and add the binary representation to the result for (var i = 0; i < this.data.length; i++) { result += getEncoding(this.data[i]) + "0"; } // Last character is always a * result += getEncoding("*"); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1; } }]); return CODE39; }(_Barcode3.default); // All characters. The position in the array is the (checksum) value var characters = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", "*"]; // The decimal representation of the characters, is converted to the // corresponding binary with the getEncoding function var encodings = [20957, 29783, 23639, 30485, 20951, 29813, 23669, 20855, 29789, 23645, 29975, 23831, 30533, 22295, 30149, 24005, 21623, 29981, 23837, 22301, 30023, 23879, 30545, 22343, 30161, 24017, 21959, 30065, 23921, 22385, 29015, 18263, 29141, 17879, 29045, 18293, 17783, 29021, 18269, 17477, 17489, 17681, 20753, 35770]; // Get the binary representation of a character by converting the encodings // from decimal to binary function getEncoding(character) { return getBinary(characterValue(character)); } function getBinary(characterValue) { return encodings[characterValue].toString(2); } function getCharacter(characterValue) { return characters[characterValue]; } function characterValue(character) { return characters.indexOf(character); } function mod43checksum(data) { var checksum = 0; for (var i = 0; i < data.length; i++) { checksum += characterValue(data[i]); } checksum = checksum % 43; return checksum; } exports.CODE39 = CODE39; /***/ }), /***/ "34ac": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isMasked = __webpack_require__("1368"), isObject = __webpack_require__("1a8c"), toSource = __webpack_require__("dc57"); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } module.exports = baseIsNative; /***/ }), /***/ "3698": /***/ (function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }), /***/ "3729": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), getRawTag = __webpack_require__("00fd"), objectToString = __webpack_require__("29f3"); /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (symToStringTag && symToStringTag in Object(value)) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag; /***/ }), /***/ "3818": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), arrayEach = __webpack_require__("8057"), assignValue = __webpack_require__("32b3"), baseAssign = __webpack_require__("5b01"), baseAssignIn = __webpack_require__("0f0f"), cloneBuffer = __webpack_require__("e538"), copyArray = __webpack_require__("4359"), copySymbols = __webpack_require__("54eb"), copySymbolsIn = __webpack_require__("1041"), getAllKeys = __webpack_require__("a994"), getAllKeysIn = __webpack_require__("1bac"), getTag = __webpack_require__("42a2"), initCloneArray = __webpack_require__("c87c"), initCloneByTag = __webpack_require__("c2b6"), initCloneObject = __webpack_require__("fa21"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isMap = __webpack_require__("cc45"), isObject = __webpack_require__("1a8c"), isSet = __webpack_require__("d7ee"), keys = __webpack_require__("ec69"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values supported by `_.clone`. */ var cloneableTags = {}; cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; /** * The base implementation of `_.clone` and `_.cloneDeep` which tracks * traversed objects. * * @private * @param {*} value The value to clone. * @param {boolean} bitmask The bitmask flags. * 1 - Deep clone * 2 - Flatten inherited properties * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== undefined) { return result; } if (!isObject(value)) { return value; } var isArr = isArray(value); if (isArr) { result = initCloneArray(value); if (!isDeep) { return copyArray(value, result); } } else { var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; if (isBuffer(value)) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag(value, tag, isDeep); } } // Check for circular references and return its corresponding clone. stack || (stack = new Stack); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); if (isSet(value)) { value.forEach(function(subValue) { result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); }); return result; } if (isMap(value)) { value.forEach(function(subValue, key) { result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } var keysFunc = isFull ? (isFlat ? getAllKeysIn : getAllKeys) : (isFlat ? keysIn : keys); var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } module.exports = baseClone; /***/ }), /***/ "3852": /***/ (function(module, exports, __webpack_require__) { var baseHas = __webpack_require__("96f3"), hasPath = __webpack_require__("e2c0"); /** * Checks if `path` is a direct property of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = { 'a': { 'b': 2 } }; * var other = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.has(object, 'a'); * // => true * * _.has(object, 'a.b'); * // => true * * _.has(object, ['a', 'b']); * // => true * * _.has(other, 'a'); * // => false */ function has(object, path) { return object != null && hasPath(object, path, baseHas); } module.exports = has; /***/ }), /***/ "387f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Update an Error with the specified config, error code, and response. * * @param {Error} error The error to update. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The error. */ module.exports = function enhanceError(error, config, code, request, response) { error.config = config; if (code) { error.code = code; } error.request = request; error.response = response; error.isAxiosError = true; error.toJSON = function toJSON() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: this.config, code: this.code }; }; return error; }; /***/ }), /***/ "3934": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. (function standardBrowserEnv() { var msie = /(msie|trident)/i.test(navigator.userAgent); var urlParsingNode = document.createElement('a'); var originURL; /** * Parse a URL to discover it's components * * @param {String} url The URL to be parsed * @returns {Object} */ function resolveURL(url) { var href = url; if (msie) { // IE needs attribute set twice to normalize properties urlParsingNode.setAttribute('href', href); href = urlParsingNode.href; } urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils return { href: urlParsingNode.href, protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', host: urlParsingNode.host, search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', hostname: urlParsingNode.hostname, port: urlParsingNode.port, pathname: (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname }; } originURL = resolveURL(window.location.href); /** * Determine if a URL shares the same origin as the current location * * @param {String} requestURL The URL to test * @returns {boolean} True if URL shares the same origin, otherwise false */ return function isURLSameOrigin(requestURL) { var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; return (parsed.protocol === originURL.protocol && parsed.host === originURL.host); }; })() : // Non standard browser envs (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return function isURLSameOrigin() { return true; }; })() ); /***/ }), /***/ "39ff": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var WeakMap = getNative(root, 'WeakMap'); module.exports = WeakMap; /***/ }), /***/ "3b4a": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); module.exports = defineProperty; /***/ }), /***/ "3c35": /***/ (function(module, exports) { /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */ module.exports = __webpack_amd_options__; /* WEBPACK VAR INJECTION */}.call(this, {})) /***/ }), /***/ "3c7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("2a4a"); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ITF = function (_Barcode) { _inherits(ITF, _Barcode); function ITF() { _classCallCheck(this, ITF); return _possibleConstructorReturn(this, (ITF.__proto__ || Object.getPrototypeOf(ITF)).apply(this, arguments)); } _createClass(ITF, [{ key: 'valid', value: function valid() { return this.data.search(/^([0-9]{2})+$/) !== -1; } }, { key: 'encode', value: function encode() { var _this2 = this; // Calculate all the digit pairs var encoded = this.data.match(/.{2}/g).map(function (pair) { return _this2.encodePair(pair); }).join(''); return { data: _constants.START_BIN + encoded + _constants.END_BIN, text: this.text }; } // Calculate the data of a number pair }, { key: 'encodePair', value: function encodePair(pair) { var second = _constants.BINARIES[pair[1]]; return _constants.BINARIES[pair[0]].split('').map(function (first, idx) { return (first === '1' ? '111' : '1') + (second[idx] === '1' ? '000' : '0'); }).join(''); } }]); return ITF; }(_Barcode3.default); exports.default = ITF; /***/ }), /***/ "3f84": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"), baseRest = __webpack_require__("100e"), customDefaultsMerge = __webpack_require__("e031"), mergeWith = __webpack_require__("2411"); /** * This method is like `_.defaults` except that it recursively assigns * default properties. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 3.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.defaults * @example * * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); * // => { 'a': { 'b': 2, 'c': 3 } } */ var defaultsDeep = baseRest(function(args) { args.push(undefined, customDefaultsMerge); return apply(mergeWith, undefined, args); }); module.exports = defaultsDeep; /***/ }), /***/ "41c3": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"), isPrototype = __webpack_require__("eac5"), nativeKeysIn = __webpack_require__("ec8c"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } module.exports = baseKeysIn; /***/ }), /***/ "4245": /***/ (function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__("1290"); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } module.exports = getMapData; /***/ }), /***/ "42a2": /***/ (function(module, exports, __webpack_require__) { var DataView = __webpack_require__("b5a7"), Map = __webpack_require__("79bc"), Promise = __webpack_require__("1cec"), Set = __webpack_require__("c869"), WeakMap = __webpack_require__("39ff"), baseGetTag = __webpack_require__("3729"), toSource = __webpack_require__("dc57"); /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', promiseTag = '[object Promise]', setTag = '[object Set]', weakMapTag = '[object WeakMap]'; var dataViewTag = '[object DataView]'; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap); /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } module.exports = getTag; /***/ }), /***/ "4359": /***/ (function(module, exports) { /** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } module.exports = copyArray; /***/ }), /***/ "4362": /***/ (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__("df7c"); cwd = path.resolve(dir, cwd); }; })(); exports.exit = exports.kill = exports.umask = exports.dlopen = exports.uptime = exports.memoryUsage = exports.uvCounters = function() {}; exports.features = {}; /***/ }), /***/ "4461": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI11 = function (_MSI) { _inherits(MSI11, _MSI); function MSI11(data, options) { _classCallCheck(this, MSI11); return _possibleConstructorReturn(this, (MSI11.__proto__ || Object.getPrototypeOf(MSI11)).call(this, data + (0, _checksums.mod11)(data), options)); } return MSI11; }(_MSI3.default); exports.default = MSI11; /***/ }), /***/ "467f": /***/ (function(module, exports, __webpack_require__) { "use strict"; var createError = __webpack_require__("2d83"); /** * 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. */ module.exports = function settle(resolve, reject, response) { var validateStatus = response.config.validateStatus; if (!response.status || !validateStatus || validateStatus(response.status)) { resolve(response); } else { reject(createError( 'Request failed with status code ' + response.status, response.config, null, response.request, response )); } }; /***/ }), /***/ "4727": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI10 = function (_MSI) { _inherits(MSI10, _MSI); function MSI10(data, options) { _classCallCheck(this, MSI10); return _possibleConstructorReturn(this, (MSI10.__proto__ || Object.getPrototypeOf(MSI10)).call(this, data + (0, _checksums.mod10)(data), options)); } return MSI10; }(_MSI3.default); exports.default = MSI10; /***/ }), /***/ "49f4": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } module.exports = hashClear; /***/ }), /***/ "4a37": /***/ (function(module, exports, __webpack_require__) { !function(t,e){ true?module.exports=e():undefined}(this,function(){return function(t){function e(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(3)},function(t,e){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(void 0!==o&&null!==o){o=Object(o);for(var n=Object.keys(Object(o)),i=0,a=n.length;i<a;i++){var s=n[i],u=Object.getOwnPropertyDescriptor(o,s);void 0!==u&&u.enumerable&&(e[s]=o[s])}}}return e}})}()},function(t,e){"use strict";t.exports=function(){var t={};return t.utf16to8=function(t){var e,r,o,n;for(e="",o=t.length,r=0;r<o;r++)n=t.charCodeAt(r),n>=1&&n<=127?e+=t.charAt(r):n>2047?(e+=String.fromCharCode(224|n>>12&15),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|n>>0&63)):(e+=String.fromCharCode(192|n>>6&31),e+=String.fromCharCode(128|n>>0&63));return e},t.utf8to16=function(t){var e,r,o,n,i,a;for(e="",o=t.length,r=0;r<o;)switch(n=t.charCodeAt(r++),n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=t.charAt(r-1);break;case 12:case 13:i=t.charCodeAt(r++),e+=String.fromCharCode((31&n)<<6|63&i);break;case 14:i=t.charCodeAt(r++),a=t.charCodeAt(r++),e+=String.fromCharCode((15&n)<<12|(63&i)<<6|(63&a)<<0)}return e},t}()},function(t,e,r){"use strict";r(1),r(4);var o=r(2),n=function(){function t(t){var e=new QRCode(t.typeNumber,t.correctLevel);e.addData(t.text),e.make();var r=document.createElement("canvas");r.width=t.width,r.height=t.height;var o=r.getContext("2d"),n=(t.width-2*t.padding)/e.getModuleCount(),i=(t.height-2*t.padding)/e.getModuleCount();if(t.reverse){var a="rgba(0, 0, 0, 0)";o.fillStyle=a,t.foreground=a}else o.fillStyle=t.background;o.fillRect(0,0,r.width,r.height);for(var s=0;s<e.getModuleCount();s++)for(var u=0;u<e.getModuleCount();u++){o.fillStyle=e.isDark(s,u)?t.foreground:t.background;var h=Math.ceil((u+1)*n)-Math.floor(u*n),f=Math.ceil((s+1)*n)-Math.floor(s*n);o.fillRect(Math.round(u*n)+t.padding,Math.round(s*i)+t.padding,h,f)}return r}var e={};return e.getQrBase64=function(e,r){"string"!=typeof e&&(e=""),"string"==typeof r?r={text:r}:"object"!=typeof r&&(r={}),r=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},r);try{r.text=o.utf16to8(e)}catch(t){r.text=""+t}var n=t(r);return n.toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=n),t.exports=n},function(t,e){function r(t){this.mode=s.MODE_8BIT_BYTE,this.data=t}function o(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var o=0;o<t.length-r;o++)this.num[o]=t[o+r]}function i(t,e){this.totalCount=t,this.dataCount=e}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},o.prototype={addData:function(t){var e=new r(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),r=new a,o=0,n=0;n<e.length;n++)o+=e[n].dataCount;for(var n=0;n<this.dataList.length;n++){var s=this.dataList[n];r.put(s.mode,4),r.put(s.getLength(),f.getLengthInBits(s.mode,t)),s.write(r)}if(r.getLengthInBits()<=8*o)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4?this.modules[t+r][e+o]=!0:this.modules[t+r][e+o]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=f.getLostPoint(this);(0==r||t>o)&&(t=o,e=r)}return e},createMovieClip:function(t,e,r){var o=t.createEmptyMovieClip(e,r),n=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*n,s=0;s<this.modules[i].length;s++){var u=s*n,h=this.modules[i][s];h&&(o.beginFill(0,100),o.moveTo(u,a),o.lineTo(u+n,a),o.lineTo(u+n,a+n),o.lineTo(u,a+n),o.endFill())}return o},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%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(){for(var t=f.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var o=t[e],n=t[r];if(null==this.modules[o][n])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||2==i||a==-2||2==a||0==i&&0==a?this.modules[o+i][n+a]=!0:this.modules[o+i][n+a]=!1}},setupTypeNumber:function(t){for(var e=f.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(var r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,o=f.getBCHTypeInfo(r),n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(var n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,o=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[o][a-s]){var u=!1;i<t.length&&(u=1==(t[i]>>>n&1));var h=f.getMask(e,o,a-s);h&&(u=!u),this.modules[o][a-s]=u,n--,n==-1&&(i++,n=7)}if(o+=r,o<0||this.moduleCount<=o){o-=r,r=-r;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(t,e,r){for(var n=i.getRSBlocks(t,e),s=new a,u=0;u<r.length;u++){var h=r[u];s.put(h.mode,4),s.put(h.getLength(),f.getLengthInBits(h.mode,t)),h.write(s)}for(var l=0,u=0;u<n.length;u++)l+=n[u].dataCount;if(s.getLengthInBits()>8*l)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*l+")");for(s.getLengthInBits()+4<=8*l&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*l)break;if(s.put(o.PAD0,8),s.getLengthInBits()>=8*l)break;s.put(o.PAD1,8)}return o.createBytes(s,n)},o.createBytes=function(t,e){for(var r=0,o=0,i=0,a=new Array(e.length),s=new Array(e.length),u=0;u<e.length;u++){var h=e[u].dataCount,l=e[u].totalCount-h;o=Math.max(o,h),i=Math.max(i,l),a[u]=new Array(h);for(var g=0;g<a[u].length;g++)a[u][g]=255&t.buffer[g+r];r+=h;var c=f.getErrorCorrectPolynomial(l),d=new n(a[u],c.getLength()-1),v=d.mod(c);s[u]=new Array(c.getLength()-1);for(var g=0;g<s[u].length;g++){var m=g+v.getLength()-s[u].length;s[u][g]=m>=0?v.get(m):0}}for(var p=0,g=0;g<e.length;g++)p+=e[g].totalCount;for(var C=new Array(p),E=0,g=0;g<o;g++)for(var u=0;u<e.length;u++)g<a[u].length&&(C[E++]=a[u][g]);for(var g=0;g<i;g++)for(var u=0;u<e.length;u++)g<s[u].length&&(C[E++]=s[u][g]);return C};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},h={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={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(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<<f.getBCHDigit(e)-f.getBCHDigit(f.G15);return(t<<10|e)^f.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;f.getBCHDigit(e)-f.getBCHDigit(f.G18)>=0;)e^=f.G18<<f.getBCHDigit(e)-f.getBCHDigit(f.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case h.PATTERN000:return(e+r)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return r%3==0;case h.PATTERN011:return(e+r)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case h.PATTERN101:return e*r%2+e*r%3==0;case h.PATTERN110:return(e*r%2+e*r%3)%2==0;case h.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),r=0;r<t;r++)e=e.multiply(new n([1,l.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:return 8;case s.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,o=0;o<e;o++)for(var n=0;n<e;n++){for(var i=0,a=t.isDark(o,n),s=-1;s<=1;s++)if(!(o+s<0||e<=o+s))for(var u=-1;u<=1;u++)n+u<0||e<=n+u||0==s&&0==u||a==t.isDark(o+s,n+u)&&i++;i>5&&(r+=3+i-5)}for(var o=0;o<e-1;o++)for(var n=0;n<e-1;n++){var h=0;t.isDark(o,n)&&h++,t.isDark(o+1,n)&&h++,t.isDark(o,n+1)&&h++,t.isDark(o+1,n+1)&&h++,0!=h&&4!=h||(r+=3)}for(var o=0;o<e;o++)for(var n=0;n<e-6;n++)t.isDark(o,n)&&!t.isDark(o,n+1)&&t.isDark(o,n+2)&&t.isDark(o,n+3)&&t.isDark(o,n+4)&&!t.isDark(o,n+5)&&t.isDark(o,n+6)&&(r+=40);for(var n=0;n<e;n++)for(var o=0;o<e-6;o++)t.isDark(o,n)&&!t.isDark(o+1,n)&&t.isDark(o+2,n)&&t.isDark(o+3,n)&&t.isDark(o+4,n)&&!t.isDark(o+5,n)&&t.isDark(o+6,n)&&(r+=40);for(var f=0,n=0;n<e;n++)for(var o=0;o<e;o++)t.isDark(o,n)&&f++;var l=Math.abs(100*f/e/e-50)/5;return r+=10*l}},l={glog:function(t){if(t<1)throw new Error("glog("+t+")");return l.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return l.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)l.EXP_TABLE[g]=1<<g;for(var g=8;g<256;g++)l.EXP_TABLE[g]=l.EXP_TABLE[g-4]^l.EXP_TABLE[g-5]^l.EXP_TABLE[g-6]^l.EXP_TABLE[g-8];for(var g=0;g<255;g++)l.LOG_TABLE[l.EXP_TABLE[g]]=g;n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<t.getLength();o++)e[r+o]^=l.gexp(l.glog(this.get(r))+l.glog(t.get(o)));return new n(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=l.glog(this.get(0))-l.glog(t.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(var o=0;o<t.getLength();o++)r[o]^=l.gexp(l.glog(t.get(o))+e);return new n(r,0).mod(t)}},i.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]],i.getRSBlocks=function(t,e){var r=i.getRsBlockTable(t,e);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var o=r.length/3,n=new Array,a=0;a<o;a++)for(var s=r[3*a+0],u=r[3*a+1],h=r[3*a+2],f=0;f<s;f++)n.push(new i(u,h));return n},i.getRsBlockTable=function(t,e){switch(e){case u.L:return i.RS_BLOCK_TABLE[4*(t-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(t-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(t-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},a.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=u;try{t.exports={QRCode:o,QRErrorCorrectLevel:u}}catch(t){}}])}); /***/ }), /***/ "4a7b": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Config-specific merge-function which creates a new config-object * by merging two configuration objects together. * * @param {Object} config1 * @param {Object} config2 * @returns {Object} New object resulting from merging config2 to config1 */ module.exports = function mergeConfig(config1, config2) { // eslint-disable-next-line no-param-reassign config2 = config2 || {}; var config = {}; var valueFromConfig2Keys = ['url', 'method', 'data']; var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; var defaultToConfig2Keys = [ 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' ]; var directMergeKeys = ['validateStatus']; function getMergedValue(target, source) { if (utils.isPlainObject(target) && utils.isPlainObject(source)) { return utils.merge(target, source); } else if (utils.isPlainObject(source)) { return utils.merge({}, source); } else if (utils.isArray(source)) { return source.slice(); } return source; } function mergeDeepProperties(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } } utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } }); utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } }); utils.forEach(directMergeKeys, function merge(prop) { if (prop in config2) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (prop in config1) { config[prop] = getMergedValue(undefined, config1[prop]); } }); var axiosKeys = valueFromConfig2Keys .concat(mergeDeepPropertiesKeys) .concat(defaultToConfig2Keys) .concat(directMergeKeys); var otherKeys = Object .keys(config1) .concat(Object.keys(config2)) .filter(function filterAxiosKeys(key) { return axiosKeys.indexOf(key) === -1; }); utils.forEach(otherKeys, mergeDeepProperties); return config; }; /***/ }), /***/ "4b23": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // This is the master class, // it does require the start code to be included in the string var CODE128 = function (_Barcode) { _inherits(CODE128, _Barcode); function CODE128(data, options) { _classCallCheck(this, CODE128); // Get array of ascii codes from data var _this = _possibleConstructorReturn(this, (CODE128.__proto__ || Object.getPrototypeOf(CODE128)).call(this, data.substring(1), options)); _this.bytes = data.split('').map(function (char) { return char.charCodeAt(0); }); return _this; } _createClass(CODE128, [{ key: 'valid', value: function valid() { // ASCII value ranges 0-127, 200-211 return (/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data) ); } // The public encoding function }, { key: 'encode', value: function encode() { var bytes = this.bytes; // Remove the start code from the bytes and set its index var startIndex = bytes.shift() - 105; // Get start set by index var startSet = _constants.SET_BY_CODE[startIndex]; if (startSet === undefined) { throw new RangeError('The encoding does not start with a start character.'); } if (this.shouldEncodeAsEan128() === true) { bytes.unshift(_constants.FNC1); } // Start encode with the right type var encodingResult = CODE128.next(bytes, 1, startSet); return { text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, '') : this.text, data: // Add the start bits CODE128.getBar(startIndex) + // Add the encoded bits encodingResult.result + // Add the checksum CODE128.getBar((encodingResult.checksum + startIndex) % _constants.MODULO) + // Add the end bits CODE128.getBar(_constants.STOP) }; } // GS1-128/EAN-128 }, { key: 'shouldEncodeAsEan128', value: function shouldEncodeAsEan128() { var isEAN128 = this.options.ean128 || false; if (typeof isEAN128 === 'string') { isEAN128 = isEAN128.toLowerCase() === 'true'; } return isEAN128; } // Get a bar symbol by index }], [{ key: 'getBar', value: function getBar(index) { return _constants.BARS[index] ? _constants.BARS[index].toString() : ''; } // Correct an index by a set and shift it from the bytes array }, { key: 'correctIndex', value: function correctIndex(bytes, set) { if (set === _constants.SET_A) { var charCode = bytes.shift(); return charCode < 32 ? charCode + 64 : charCode - 32; } else if (set === _constants.SET_B) { return bytes.shift() - 32; } else { return (bytes.shift() - 48) * 10 + bytes.shift() - 48; } } }, { key: 'next', value: function next(bytes, pos, set) { if (!bytes.length) { return { result: '', checksum: 0 }; } var nextCode = void 0, index = void 0; // Special characters if (bytes[0] >= 200) { index = bytes.shift() - 105; var nextSet = _constants.SWAP[index]; // Swap to other set if (nextSet !== undefined) { nextCode = CODE128.next(bytes, pos + 1, nextSet); } // Continue on current set but encode a special character else { // Shift if ((set === _constants.SET_A || set === _constants.SET_B) && index === _constants.SHIFT) { // Convert the next character so that is encoded correctly bytes[0] = set === _constants.SET_A ? bytes[0] > 95 ? bytes[0] - 96 : bytes[0] : bytes[0] < 32 ? bytes[0] + 96 : bytes[0]; } nextCode = CODE128.next(bytes, pos + 1, set); } } // Continue encoding else { index = CODE128.correctIndex(bytes, set); nextCode = CODE128.next(bytes, pos + 1, set); } // Get the correct binary encoding and calculate the weight var enc = CODE128.getBar(index); var weight = index * pos; return { result: enc + nextCode.result, checksum: weight + nextCode.checksum }; } }]); return CODE128; }(_Barcode3.default); exports.default = CODE128; /***/ }), /***/ "4ced": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var ObjectRenderer = function () { function ObjectRenderer(object, encodings, options) { _classCallCheck(this, ObjectRenderer); this.object = object; this.encodings = encodings; this.options = options; } _createClass(ObjectRenderer, [{ key: "render", value: function render() { this.object.encodings = this.encodings; } }]); return ObjectRenderer; }(); exports.default = ObjectRenderer; /***/ }), /***/ "4f50": /***/ (function(module, exports, __webpack_require__) { var assignMergeValue = __webpack_require__("b760"), cloneBuffer = __webpack_require__("e538"), cloneTypedArray = __webpack_require__("c8fe"), copyArray = __webpack_require__("4359"), initCloneObject = __webpack_require__("fa21"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isArrayLikeObject = __webpack_require__("dcbe"), isBuffer = __webpack_require__("0d24"), isFunction = __webpack_require__("9520"), isObject = __webpack_require__("1a8c"), isPlainObject = __webpack_require__("60ed"), isTypedArray = __webpack_require__("73ac"), safeGet = __webpack_require__("8adb"), toPlainObject = __webpack_require__("8de2"); /** * A specialized version of `baseMerge` for arrays and objects which performs * deep merges and tracks traversed objects enabling objects with circular * references to be merged. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {string} key The key of the value to merge. * @param {number} srcIndex The index of `source`. * @param {Function} mergeFunc The function to merge values. * @param {Function} [customizer] The function to customize assigned values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); if (stacked) { assignMergeValue(object, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined; var isCommon = newValue === undefined; if (isCommon) { var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue); } else if (isBuff) { isCommon = false; newValue = cloneBuffer(srcValue, true); } else if (isTyped) { isCommon = false; newValue = cloneTypedArray(srcValue, true); } else { newValue = []; } } else if (isPlainObject(srcValue) || isArguments(srcValue)) { newValue = objValue; if (isArguments(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject(objValue) || isFunction(objValue)) { newValue = initCloneObject(srcValue); } } else { isCommon = false; } } if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack['delete'](srcValue); } assignMergeValue(object, key, newValue); } module.exports = baseMergeDeep; /***/ }), /***/ "50d8": /***/ (function(module, exports) { /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } module.exports = baseTimes; /***/ }), /***/ "5261": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = optionsFromStrings; // Convert string to integers/booleans where it should be function optionsFromStrings(options) { var intOptions = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"]; for (var intOption in intOptions) { if (intOptions.hasOwnProperty(intOption)) { intOption = intOptions[intOption]; if (typeof options[intOption] === "string") { options[intOption] = parseInt(options[intOption], 10); } } } if (typeof options["displayValue"] === "string") { options["displayValue"] = options["displayValue"] != "false"; } return options; } /***/ }), /***/ "5270": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var transformData = __webpack_require__("c401"); var isCancel = __webpack_require__("2e67"); var defaults = __webpack_require__("2444"); /** * Throws a `Cancel` if cancellation has been requested. */ function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } } /** * Dispatch a request to the server using the configured adapter. * * @param {object} config The config that is to be used for the request * @returns {Promise} The Promise to be fulfilled */ module.exports = function dispatchRequest(config) { throwIfCancellationRequested(config); // Ensure headers exist config.headers = config.headers || {}; // Transform request data config.data = transformData( config.data, config.headers, config.transformRequest ); // Flatten headers config.headers = utils.merge( config.headers.common || {}, config.headers[config.method] || {}, config.headers ); utils.forEach( ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) { delete config.headers[method]; } ); var adapter = config.adapter || defaults.adapter; return adapter(config).then(function onAdapterResolution(response) { throwIfCancellationRequested(config); // Transform response data response.data = transformData( response.data, response.headers, config.transformResponse ); return response; }, function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config); // Transform response data if (reason && reason.response) { reason.response.data = transformData( reason.response.data, reason.response.headers, config.transformResponse ); } } return Promise.reject(reason); }); }; /***/ }), /***/ "54eb": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbols = __webpack_require__("32f4"); /** * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbols(source, object) { return copyObject(source, getSymbols(source), object); } module.exports = copySymbols; /***/ }), /***/ "55a3": /***/ (function(module, exports) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; /***/ }), /***/ "5726": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("c243"); // Encode data string var encode = function encode(data, structure, separator) { var encoded = data.split('').map(function (val, idx) { return _constants.BINARIES[structure[idx]]; }).map(function (val, idx) { return val ? val[data[idx]] : ''; }); if (separator) { var last = data.length - 1; encoded = encoded.map(function (val, idx) { return idx < last ? val + separator : val; }); } return encoded.join(''); }; exports.default = encode; /***/ }), /***/ "57a5": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "583f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_5#Encoding var checksum = function checksum(data) { var result = data.split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 9 : sum + a * 3; }, 0); return result % 10; }; var EAN5 = function (_Barcode) { _inherits(EAN5, _Barcode); function EAN5(data, options) { _classCallCheck(this, EAN5); return _possibleConstructorReturn(this, (EAN5.__proto__ || Object.getPrototypeOf(EAN5)).call(this, data, options)); } _createClass(EAN5, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{5}$/) !== -1; } }, { key: 'encode', value: function encode() { var structure = _constants.EAN5_STRUCTURE[checksum(this.data)]; return { data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN5; }(_Barcode3.default); exports.default = EAN5; /***/ }), /***/ "585a": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; module.exports = freeGlobal; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) /***/ }), /***/ "5b01": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keys = __webpack_require__("ec69"); /** * The base implementation of `_.assign` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign(object, source) { return object && copyObject(source, keys(source), object); } module.exports = baseAssign; /***/ }), /***/ "5d89": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `dataView`. * * @private * @param {Object} dataView The data view to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned data view. */ function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } module.exports = cloneDataView; /***/ }), /***/ "5e2e": /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__("28c9"), listCacheDelete = __webpack_require__("69d5"), listCacheGet = __webpack_require__("b4c0"), listCacheHas = __webpack_require__("fba5"), listCacheSet = __webpack_require__("67ca"); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ "5f72": /***/ (function(module, exports) { module.exports = require("ELEMENT"); /***/ }), /***/ "6044": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); module.exports = nativeCreate; /***/ }), /***/ "60ed": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), getPrototype = __webpack_require__("2dcb"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var objectTag = '[object Object]'; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object); /** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { * this.a = 1; * } * * _.isPlainObject(new Foo); * // => false * * _.isPlainObject([1, 2, 3]); * // => false * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true * * _.isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } module.exports = isPlainObject; /***/ }), /***/ "6220": /***/ (function(module, exports, __webpack_require__) { var baseIsDate = __webpack_require__("b1d2"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsDate = nodeUtil && nodeUtil.isDate; /** * Checks if `value` is classified as a `Date` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); * // => true * * _.isDate('Mon April 23 2012'); * // => false */ var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; module.exports = isDate; /***/ }), /***/ "62c5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var _barcodes = __webpack_require__("ff84"); var _barcodes2 = _interopRequireDefault(_barcodes); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _linearizeEncodings = __webpack_require__("a2b0"); var _linearizeEncodings2 = _interopRequireDefault(_linearizeEncodings); var _fixOptions = __webpack_require__("79f1"); var _fixOptions2 = _interopRequireDefault(_fixOptions); var _getRenderProperties = __webpack_require__("b1d8"); var _getRenderProperties2 = _interopRequireDefault(_getRenderProperties); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _ErrorHandler = __webpack_require__("bd8a"); var _ErrorHandler2 = _interopRequireDefault(_ErrorHandler); var _exceptions = __webpack_require__("dca2"); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // The protype of the object returned from the JsBarcode() call // Help functions var API = function API() {}; // The first call of the library API // Will return an object with all barcodes calls and the data that is used // by the renderers // Default values // Exceptions // Import all the barcodes var JsBarcode = function JsBarcode(element, text, options) { var api = new API(); if (typeof element === "undefined") { throw Error("No element to render on was provided."); } // Variables that will be pased through the API calls api._renderProperties = (0, _getRenderProperties2.default)(element); api._encodings = []; api._options = _defaults2.default; api._errorHandler = new _ErrorHandler2.default(api); // If text is set, use the simple syntax (render the barcode directly) if (typeof text !== "undefined") { options = options || {}; if (!options.format) { options.format = autoSelectBarcode(); } api.options(options)[options.format](text, options).render(); } return api; }; // To make tests work TODO: remove JsBarcode.getModule = function (name) { return _barcodes2.default[name]; }; // Register all barcodes for (var name in _barcodes2.default) { if (_barcodes2.default.hasOwnProperty(name)) { // Security check if the propery is a prototype property registerBarcode(_barcodes2.default, name); } } function registerBarcode(barcodes, name) { API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) { var api = this; return api._errorHandler.wrapBarcodeCall(function () { // Ensure text is options.text options.text = typeof options.text === 'undefined' ? undefined : '' + options.text; var newOptions = (0, _merge2.default)(api._options, options); newOptions = (0, _optionsFromStrings2.default)(newOptions); var Encoder = barcodes[name]; var encoded = encode(text, Encoder, newOptions); api._encodings.push(encoded); return api; }); }; } // encode() handles the Encoder call and builds the binary string to be rendered function encode(text, Encoder, options) { // Ensure that text is a string text = "" + text; var encoder = new Encoder(text, options); // If the input is not valid for the encoder, throw error. // If the valid callback option is set, call it instead of throwing error if (!encoder.valid()) { throw new _exceptions.InvalidInputException(encoder.constructor.name, text); } // Make a request for the binary data (and other infromation) that should be rendered var encoded = encoder.encode(); // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] encoded = (0, _linearizeEncodings2.default)(encoded); // Merge for (var i = 0; i < encoded.length; i++) { encoded[i].options = (0, _merge2.default)(options, encoded[i].options); } return encoded; } function autoSelectBarcode() { // If CODE128 exists. Use it if (_barcodes2.default["CODE128"]) { return "CODE128"; } // Else, take the first (probably only) barcode return Object.keys(_barcodes2.default)[0]; } // Sets global encoder options // Added to the api by the JsBarcode function API.prototype.options = function (options) { this._options = (0, _merge2.default)(this._options, options); return this; }; // Will create a blank space (usually in between barcodes) API.prototype.blank = function (size) { var zeroes = new Array(size + 1).join("0"); this._encodings.push({ data: zeroes }); return this; }; // Initialize JsBarcode on all HTML elements defined. API.prototype.init = function () { // Should do nothing if no elements where found if (!this._renderProperties) { return; } // Make sure renderProperies is an array if (!Array.isArray(this._renderProperties)) { this._renderProperties = [this._renderProperties]; } var renderProperty; for (var i in this._renderProperties) { renderProperty = this._renderProperties[i]; var options = (0, _merge2.default)(this._options, renderProperty.options); if (options.format == "auto") { options.format = autoSelectBarcode(); } this._errorHandler.wrapBarcodeCall(function () { var text = options.value; var Encoder = _barcodes2.default[options.format.toUpperCase()]; var encoded = encode(text, Encoder, options); render(renderProperty, encoded, options); }); } }; // The render API call. Calls the real render function. API.prototype.render = function () { if (!this._renderProperties) { throw new _exceptions.NoElementException(); } if (Array.isArray(this._renderProperties)) { for (var i = 0; i < this._renderProperties.length; i++) { render(this._renderProperties[i], this._encodings, this._options); } } else { render(this._renderProperties, this._encodings, this._options); } return this; }; API.prototype._defaults = _defaults2.default; // Prepares the encodings and calls the renderer function render(renderProperties, encodings, options) { encodings = (0, _linearizeEncodings2.default)(encodings); for (var i = 0; i < encodings.length; i++) { encodings[i].options = (0, _merge2.default)(options, encodings[i].options); (0, _fixOptions2.default)(encodings[i].options); } (0, _fixOptions2.default)(options); var Renderer = renderProperties.renderer; var renderer = new Renderer(renderProperties.element, encodings, options); renderer.render(); if (renderProperties.afterRender) { renderProperties.afterRender(); } } // Export to browser if (typeof window !== "undefined") { window.JsBarcode = JsBarcode; } // Export to jQuery /*global jQuery */ if (typeof jQuery !== 'undefined') { jQuery.fn.JsBarcode = function (content, options) { var elementArray = []; jQuery(this).each(function () { elementArray.push(this); }); return JsBarcode(elementArray, content, options); }; } // Export to commonJS module.exports = JsBarcode; /***/ }), /***/ "62e4": /***/ (function(module, exports) { module.exports = function(module) { if (!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if (!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /***/ "6747": /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /***/ "67ca": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }), /***/ "69d5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }), /***/ "6e53": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mod10 = mod10; exports.mod11 = mod11; function mod10(number) { var sum = 0; for (var i = 0; i < number.length; i++) { var n = parseInt(number[i]); if ((i + number.length) % 2 === 0) { sum += n; } else { sum += n * 2 % 10 + Math.floor(n * 2 / 10); } } return (10 - sum % 10) % 10; } function mod11(number) { var sum = 0; var weights = [2, 3, 4, 5, 6, 7]; for (var i = 0; i < number.length; i++) { var n = parseInt(number[number.length - 1 - i]); sum += weights[i % weights.length] * n; } return (11 - sum % 11) % 11; } /***/ }), /***/ "6f24": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _auto = __webpack_require__("bb5d"); var _auto2 = _interopRequireDefault(_auto); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128AUTO = function (_CODE) { _inherits(CODE128AUTO, _CODE); function CODE128AUTO(data, options) { _classCallCheck(this, CODE128AUTO); // ASCII value ranges 0-127, 200-211 if (/^[\x00-\x7F\xC8-\xD3]+$/.test(data)) { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, (0, _auto2.default)(data), options)); } else { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, data, options)); } return _possibleConstructorReturn(_this); } return CODE128AUTO; }(_CODE3.default); exports.default = CODE128AUTO; /***/ }), /***/ "6f6c": /***/ (function(module, exports) { /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; /** * Creates a clone of `regexp`. * * @private * @param {Object} regexp The regexp to clone. * @returns {Object} Returns the cloned regexp. */ function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } module.exports = cloneRegExp; /***/ }), /***/ "6fcd": /***/ (function(module, exports, __webpack_require__) { var baseTimes = __webpack_require__("50d8"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isIndex = __webpack_require__("c098"), isTypedArray = __webpack_require__("73ac"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties. isIndex(key, length) ))) { result.push(key); } } return result; } module.exports = arrayLikeKeys; /***/ }), /***/ "70b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128B = function (_CODE) { _inherits(CODE128B, _CODE); function CODE128B(string, options) { _classCallCheck(this, CODE128B); return _possibleConstructorReturn(this, (CODE128B.__proto__ || Object.getPrototypeOf(CODE128B)).call(this, _constants.B_START_CHAR + string, options)); } _createClass(CODE128B, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.B_CHARS + '+$').test(this.data); } }]); return CODE128B; }(_CODE3.default); exports.default = CODE128B; /***/ }), /***/ "721a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var CanvasRenderer = function () { function CanvasRenderer(canvas, encodings, options) { _classCallCheck(this, CanvasRenderer); this.canvas = canvas; this.encodings = encodings; this.options = options; } _createClass(CanvasRenderer, [{ key: "render", value: function render() { // Abort if the browser does not support HTML5 canvas if (!this.canvas.getContext) { throw new Error('The browser does not support canvas.'); } this.prepareCanvas(); for (var i = 0; i < this.encodings.length; i++) { var encodingOptions = (0, _merge2.default)(this.options, this.encodings[i].options); this.drawCanvasBarcode(encodingOptions, this.encodings[i]); this.drawCanvasText(encodingOptions, this.encodings[i]); this.moveCanvasDrawing(this.encodings[i]); } this.restoreCanvas(); } }, { key: "prepareCanvas", value: function prepareCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.save(); (0, _shared.calculateEncodingAttributes)(this.encodings, this.options, ctx); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); this.canvas.width = totalWidth + this.options.marginLeft + this.options.marginRight; this.canvas.height = maxHeight; // Paint the canvas ctx.clearRect(0, 0, this.canvas.width, this.canvas.height); if (this.options.background) { ctx.fillStyle = this.options.background; ctx.fillRect(0, 0, this.canvas.width, this.canvas.height); } ctx.translate(this.options.marginLeft, 0); } }, { key: "drawCanvasBarcode", value: function drawCanvasBarcode(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.marginTop + options.fontSize + options.textMargin; } else { yFrom = options.marginTop; } ctx.fillStyle = options.lineColor; for (var b = 0; b < binary.length; b++) { var x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { ctx.fillRect(x, yFrom, options.width, options.height); } else if (binary[b]) { ctx.fillRect(x, yFrom, options.width, options.height * binary[b]); } } } }, { key: "drawCanvasText", value: function drawCanvasText(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Draw the text if displayValue is set if (options.displayValue) { var x, y; if (options.textPosition == "top") { y = options.marginTop + options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.marginTop + options.fontSize; } ctx.font = font; // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; ctx.textAlign = 'left'; } else if (options.textAlign == "right") { x = encoding.width - 1; ctx.textAlign = 'right'; } // In all other cases, center the text else { x = encoding.width / 2; ctx.textAlign = 'center'; } ctx.fillText(encoding.text, x, y); } } }, { key: "moveCanvasDrawing", value: function moveCanvasDrawing(encoding) { var ctx = this.canvas.getContext("2d"); ctx.translate(encoding.width, 0); } }, { key: "restoreCanvas", value: function restoreCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.restore(); } }]); return CanvasRenderer; }(); exports.default = CanvasRenderer; /***/ }), /***/ "72af": /***/ (function(module, exports, __webpack_require__) { var createBaseFor = __webpack_require__("99cd"); /** * The base implementation of `baseForOwn` which iterates over `object` * properties returned by `keysFunc` and invokes `iteratee` for each property. * Iteratee functions may exit iteration early by explicitly returning `false`. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ var baseFor = createBaseFor(); module.exports = baseFor; /***/ }), /***/ "72f0": /***/ (function(module, exports) { /** * Creates a function that returns `value`. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * * var objects = _.times(2, _.constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] * * console.log(objects[0] === objects[1]); * // => true */ function constant(value) { return function() { return value; }; } module.exports = constant; /***/ }), /***/ "73ac": /***/ (function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__("743f"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; module.exports = isTypedArray; /***/ }), /***/ "743f": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isLength = __webpack_require__("b218"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } module.exports = baseIsTypedArray; /***/ }), /***/ "752b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _canvas = __webpack_require__("721a"); var _canvas2 = _interopRequireDefault(_canvas); var _svg = __webpack_require__("be5e"); var _svg2 = _interopRequireDefault(_svg); var _object = __webpack_require__("4ced"); var _object2 = _interopRequireDefault(_object); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { CanvasRenderer: _canvas2.default, SVGRenderer: _svg2.default, ObjectRenderer: _object2.default }; /***/ }), /***/ "7530": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"); /** Built-in value references. */ var objectCreate = Object.create; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} proto The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function object() {} return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object; object.prototype = undefined; return result; }; }()); module.exports = baseCreate; /***/ }), /***/ "76dd": /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__("ce86"); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }), /***/ "7948": /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ "79bc": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); module.exports = Map; /***/ }), /***/ "79f1": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = fixOptions; function fixOptions(options) { // Fix the margins options.marginTop = options.marginTop || options.margin; options.marginBottom = options.marginBottom || options.margin; options.marginRight = options.marginRight || options.margin; options.marginLeft = options.marginLeft || options.margin; return options; } /***/ }), /***/ "7a48": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } module.exports = hashHas; /***/ }), /***/ "7a77": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * A `Cancel` is an object that is thrown when an operation is canceled. * * @class * @param {string=} message The message. */ function Cancel(message) { this.message = message; } Cancel.prototype.toString = function toString() { return 'Cancel' + (this.message ? ': ' + this.message : ''); }; Cancel.prototype.__CANCEL__ = true; module.exports = Cancel; /***/ }), /***/ "7aac": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie (function standardBrowserEnv() { return { write: function write(name, value, expires, path, domain, secure) { var cookie = []; cookie.push(name + '=' + encodeURIComponent(value)); if (utils.isNumber(expires)) { cookie.push('expires=' + new Date(expires).toGMTString()); } if (utils.isString(path)) { cookie.push('path=' + path); } if (utils.isString(domain)) { cookie.push('domain=' + domain); } if (secure === true) { cookie.push('secure'); } document.cookie = cookie.join('; '); }, read: function read(name) { var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); return (match ? decodeURIComponent(match[3]) : null); }, remove: function remove(name) { this.write(name, '', Date.now() - 86400000); } }; })() : // Non standard browser env (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return { write: function write() {}, read: function read() { return null; }, remove: function remove() {} }; })() ); /***/ }), /***/ "7b83": /***/ (function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__("7c64"), mapCacheDelete = __webpack_require__("93ed"), mapCacheGet = __webpack_require__("2478"), mapCacheHas = __webpack_require__("a524"), mapCacheSet = __webpack_require__("1fc8"); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; module.exports = MapCache; /***/ }), /***/ "7c64": /***/ (function(module, exports, __webpack_require__) { var Hash = __webpack_require__("e24b"), ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } module.exports = mapCacheClear; /***/ }), /***/ "7cb9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pharmacode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf var pharmacode = function (_Barcode) { _inherits(pharmacode, _Barcode); function pharmacode(data, options) { _classCallCheck(this, pharmacode); var _this = _possibleConstructorReturn(this, (pharmacode.__proto__ || Object.getPrototypeOf(pharmacode)).call(this, data, options)); _this.number = parseInt(data, 10); return _this; } _createClass(pharmacode, [{ key: "encode", value: function encode() { var z = this.number; var result = ""; // http://i.imgur.com/RMm4UDJ.png // (source: http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf, page: 34) while (!isNaN(z) && z != 0) { if (z % 2 === 0) { // Even result = "11100" + result; z = (z - 2) / 2; } else { // Odd result = "100" + result; z = (z - 1) / 2; } } // Remove the two last zeroes result = result.slice(0, -2); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.number >= 3 && this.number <= 131070; } }]); return pharmacode; }(_Barcode3.default); exports.pharmacode = pharmacode; /***/ }), /***/ "7d1f": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), isArray = __webpack_require__("6747"); /** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the keys of `object`. * @param {Function} symbolsFunc The function to get the symbols of `object`. * @returns {Array} Returns the array of property names and symbols. */ function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); } module.exports = baseGetAllKeys; /***/ }), /***/ "7e64": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), stackClear = __webpack_require__("efb6"), stackDelete = __webpack_require__("2fcc"), stackGet = __webpack_require__("802a"), stackHas = __webpack_require__("55a3"), stackSet = __webpack_require__("d02c"); /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } // Add methods to `Stack`. Stack.prototype.clear = stackClear; Stack.prototype['delete'] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; module.exports = Stack; /***/ }), /***/ "802a": /***/ (function(module, exports) { /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; /***/ }), /***/ "8057": /***/ (function(module, exports) { /** * A specialized version of `_.forEach` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns `array`. */ function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } module.exports = arrayEach; /***/ }), /***/ "805f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1110 = function (_MSI) { _inherits(MSI1110, _MSI); function MSI1110(data, options) { _classCallCheck(this, MSI1110); data += (0, _checksums.mod11)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1110.__proto__ || Object.getPrototypeOf(MSI1110)).call(this, data, options)); } return MSI1110; }(_MSI3.default); exports.default = MSI1110; /***/ }), /***/ "8237": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */ (function () { 'use strict'; var ERROR = 'input is invalid type'; var WINDOW = typeof window === 'object'; var root = WINDOW ? window : {}; if (root.JS_MD5_NO_WINDOW) { WINDOW = false; } var WEB_WORKER = !WINDOW && typeof self === 'object'; var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node; if (NODE_JS) { root = global; } else if (WEB_WORKER) { root = self; } var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports; var AMD = true && __webpack_require__("3c35"); var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined'; var HEX_CHARS = '0123456789abcdef'.split(''); var EXTRA = [128, 32768, 8388608, -2147483648]; var SHIFT = [0, 8, 16, 24]; var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64']; var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); var blocks = [], buffer8; if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); buffer8 = new Uint8Array(buffer); blocks = new Uint32Array(buffer); } if (root.JS_MD5_NO_NODE_JS || !Array.isArray) { Array.isArray = function (obj) { return Object.prototype.toString.call(obj) === '[object Array]'; }; } if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { ArrayBuffer.isView = function (obj) { return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; }; } /** * @method hex * @memberof md5 * @description Output hash as hex string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} Hex string * @example * md5.hex('The quick brown fox jumps over the lazy dog'); * // equal to * md5('The quick brown fox jumps over the lazy dog'); */ /** * @method digest * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.digest('The quick brown fox jumps over the lazy dog'); */ /** * @method array * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.array('The quick brown fox jumps over the lazy dog'); */ /** * @method arrayBuffer * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.arrayBuffer('The quick brown fox jumps over the lazy dog'); */ /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.buffer('The quick brown fox jumps over the lazy dog'); */ /** * @method base64 * @memberof md5 * @description Output hash as base64 string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} base64 string * @example * md5.base64('The quick brown fox jumps over the lazy dog'); */ var createOutputMethod = function (outputType) { return function (message) { return new Md5(true).update(message)[outputType](); }; }; /** * @method create * @memberof md5 * @description Create Md5 object * @returns {Md5} Md5 object. * @example * var hash = md5.create(); */ /** * @method update * @memberof md5 * @description Create and update Md5 object * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @example * var hash = md5.update('The quick brown fox jumps over the lazy dog'); * // equal to * var hash = md5.create(); * hash.update('The quick brown fox jumps over the lazy dog'); */ var createMethod = function () { var method = createOutputMethod('hex'); if (NODE_JS) { method = nodeWrap(method); } method.create = function () { return new Md5(); }; method.update = function (message) { return method.create().update(message); }; for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method[type] = createOutputMethod(type); } return method; }; var nodeWrap = function (method) { var crypto = eval("require('crypto')"); var Buffer = eval("require('buffer').Buffer"); var nodeMethod = function (message) { if (typeof message === 'string') { return crypto.createHash('md5').update(message, 'utf8').digest('hex'); } else { if (message === null || message === undefined) { throw ERROR; } else if (message.constructor === ArrayBuffer) { message = new Uint8Array(message); } } if (Array.isArray(message) || ArrayBuffer.isView(message) || message.constructor === Buffer) { return crypto.createHash('md5').update(new Buffer(message)).digest('hex'); } else { return method(message); } }; return nodeMethod; }; /** * Md5 class * @class Md5 * @description This is internal class. * @see {@link md5.create} */ function Md5(sharedMemory) { if (sharedMemory) { blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; this.blocks = blocks; this.buffer8 = buffer8; } else { if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); this.buffer8 = new Uint8Array(buffer); this.blocks = new Uint32Array(buffer); } else { this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } } this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0; this.finalized = this.hashed = false; this.first = true; } /** * @method update * @memberof Md5 * @instance * @description Update hash * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @see {@link md5.update} */ Md5.prototype.update = function (message) { if (this.finalized) { return; } var notString, type = typeof message; if (type !== 'string') { if (type === 'object') { if (message === null) { throw ERROR; } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) { message = new Uint8Array(message); } else if (!Array.isArray(message)) { if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) { throw ERROR; } } } else { throw ERROR; } notString = true; } var code, index = 0, i, length = message.length, blocks = this.blocks; var buffer8 = this.buffer8; while (index < length) { if (this.hashed) { this.hashed = false; blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } if (notString) { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { buffer8[i++] = message[index]; } } else { for (i = this.start; index < length && i < 64; ++index) { blocks[i >> 2] |= message[index] << SHIFT[i++ & 3]; } } } else { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { buffer8[i++] = code; } else if (code < 0x800) { buffer8[i++] = 0xc0 | (code >> 6); buffer8[i++] = 0x80 | (code & 0x3f); } else if (code < 0xd800 || code >= 0xe000) { buffer8[i++] = 0xe0 | (code >> 12); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); buffer8[i++] = 0xf0 | (code >> 18); buffer8[i++] = 0x80 | ((code >> 12) & 0x3f); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } } } else { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { blocks[i >> 2] |= code << SHIFT[i++ & 3]; } else if (code < 0x800) { blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else if (code < 0xd800 || code >= 0xe000) { blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } } } } this.lastByteIndex = i; this.bytes += i - this.start; if (i >= 64) { this.start = i - 64; this.hash(); this.hashed = true; } else { this.start = i; } } if (this.bytes > 4294967295) { this.hBytes += this.bytes / 4294967296 << 0; this.bytes = this.bytes % 4294967296; } return this; }; Md5.prototype.finalize = function () { if (this.finalized) { return; } this.finalized = true; var blocks = this.blocks, i = this.lastByteIndex; blocks[i >> 2] |= EXTRA[i & 3]; if (i >= 56) { if (!this.hashed) { this.hash(); } blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } blocks[14] = this.bytes << 3; blocks[15] = this.hBytes << 3 | this.bytes >>> 29; this.hash(); }; Md5.prototype.hash = function () { var a, b, c, d, bc, da, blocks = this.blocks; if (this.first) { a = blocks[0] - 680876937; a = (a << 7 | a >>> 25) - 271733879 << 0; d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708; d = (d << 12 | d >>> 20) + a << 0; c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375; c = (c << 17 | c >>> 15) + d << 0; b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209; b = (b << 22 | b >>> 10) + c << 0; } else { a = this.h0; b = this.h1; c = this.h2; d = this.h3; a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330; b = (b << 22 | b >>> 10) + c << 0; } a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[10] - 42063; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329; b = (b << 22 | b >>> 10) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734; b = (b << 20 | b >>> 12) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[5] - 378558; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[8] - 2022574463; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[11] + 1839030562; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[14] - 35309556; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[1] - 1530992060; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[4] + 1272893353; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[7] - 155497632; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[10] - 1094730640; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[13] + 681279174; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[0] - 358537222; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[3] - 722521979; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[6] + 76029189; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[9] - 640364487; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[12] - 421815835; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[15] + 530742520; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[2] - 995338651; b = (b << 23 | b >>> 9) + c << 0; a += (c ^ (b | ~d)) + blocks[0] - 198630844; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[7] + 1126891415; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[14] - 1416354905; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[5] - 57434055; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[12] + 1700485571; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[3] - 1894986606; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[10] - 1051523; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[1] - 2054922799; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[8] + 1873313359; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[15] - 30611744; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[6] - 1560198380; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[13] + 1309151649; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[4] - 145523070; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[11] - 1120210379; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[2] + 718787259; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[9] - 343485551; b = (b << 21 | b >>> 11) + c << 0; if (this.first) { this.h0 = a + 1732584193 << 0; this.h1 = b - 271733879 << 0; this.h2 = c - 1732584194 << 0; this.h3 = d + 271733878 << 0; this.first = false; } else { this.h0 = this.h0 + a << 0; this.h1 = this.h1 + b << 0; this.h2 = this.h2 + c << 0; this.h3 = this.h3 + d << 0; } }; /** * @method hex * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.hex(); */ Md5.prototype.hex = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] + HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] + HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] + HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] + HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] + HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] + HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] + HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] + HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] + HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] + HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] + HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] + HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] + HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] + HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] + HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F]; }; /** * @method toString * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.toString(); */ Md5.prototype.toString = Md5.prototype.hex; /** * @method digest * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.digest} * @example * hash.digest(); */ Md5.prototype.digest = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return [ h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF, h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF, h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF, h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF ]; }; /** * @method array * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.array} * @example * hash.array(); */ Md5.prototype.array = Md5.prototype.digest; /** * @method arrayBuffer * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.arrayBuffer} * @example * hash.arrayBuffer(); */ Md5.prototype.arrayBuffer = function () { this.finalize(); var buffer = new ArrayBuffer(16); var blocks = new Uint32Array(buffer); blocks[0] = this.h0; blocks[1] = this.h1; blocks[2] = this.h2; blocks[3] = this.h3; return buffer; }; /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.buffer} * @example * hash.buffer(); */ Md5.prototype.buffer = Md5.prototype.arrayBuffer; /** * @method base64 * @memberof Md5 * @instance * @description Output hash as base64 string * @returns {String} base64 string * @see {@link md5.base64} * @example * hash.base64(); */ Md5.prototype.base64 = function () { var v1, v2, v3, base64Str = '', bytes = this.array(); for (var i = 0; i < 15;) { v1 = bytes[i++]; v2 = bytes[i++]; v3 = bytes[i++]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] + BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] + BASE64_ENCODE_CHAR[v3 & 63]; } v1 = bytes[i]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4) & 63] + '=='; return base64Str; }; var exports = createMethod(); if (COMMON_JS) { module.exports = exports; } else { /** * @method md5 * @description Md5 hash function, export to global in browsers. * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} md5 hashes * @example * md5(''); // d41d8cd98f00b204e9800998ecf8427e * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6 * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0 * * // It also supports UTF-8 encoding * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07 * * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer` * md5([]); // d41d8cd98f00b204e9800998ecf8427e * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e */ root.md5 = exports; if (AMD) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } })(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"), __webpack_require__("c8ba"))) /***/ }), /***/ "83b9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var isAbsoluteURL = __webpack_require__("d925"); var combineURLs = __webpack_require__("e683"); /** * 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 */ module.exports = function buildFullPath(baseURL, requestedURL) { if (baseURL && !isAbsoluteURL(requestedURL)) { return combineURLs(baseURL, requestedURL); } return requestedURL; }; /***/ }), /***/ "852e": /***/ (function(module, exports, __webpack_require__) { /*! js-cookie v3.0.1 | MIT */ ; (function (global, factory) { true ? module.exports = factory() : undefined; }(this, (function () { 'use strict'; /* eslint-disable no-var */ function assign (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { target[key] = source[key]; } } return target } /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = { read: function (value) { if (value[0] === '"') { value = value.slice(1, -1); } return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) }, write: function (value) { return encodeURIComponent(value).replace( /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent ) } }; /* eslint-enable no-var */ /* eslint-disable no-var */ function init (converter, defaultAttributes) { function set (key, value, attributes) { if (typeof document === 'undefined') { return } attributes = assign({}, defaultAttributes, attributes); if (typeof attributes.expires === 'number') { attributes.expires = new Date(Date.now() + attributes.expires * 864e5); } if (attributes.expires) { attributes.expires = attributes.expires.toUTCString(); } key = encodeURIComponent(key) .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent) .replace(/[()]/g, escape); var stringifiedAttributes = ''; for (var attributeName in attributes) { if (!attributes[attributeName]) { continue } stringifiedAttributes += '; ' + attributeName; if (attributes[attributeName] === true) { continue } // Considers RFC 6265 section 5.2: // ... // 3. If the remaining unparsed-attributes contains a %x3B (";") // character: // Consume the characters of the unparsed-attributes up to, // not including, the first %x3B (";") character. // ... stringifiedAttributes += '=' + attributes[attributeName].split(';')[0]; } return (document.cookie = key + '=' + converter.write(value, key) + stringifiedAttributes) } function get (key) { if (typeof document === 'undefined' || (arguments.length && !key)) { return } // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. var cookies = document.cookie ? document.cookie.split('; ') : []; var jar = {}; for (var i = 0; i < cookies.length; i++) { var parts = cookies[i].split('='); var value = parts.slice(1).join('='); try { var foundKey = decodeURIComponent(parts[0]); jar[foundKey] = converter.read(value, foundKey); if (key === foundKey) { break } } catch (e) {} } return key ? jar[key] : jar } return Object.create( { set: set, get: get, remove: function (key, attributes) { set( key, '', assign({}, attributes, { expires: -1 }) ); }, withAttributes: function (attributes) { return init(this.converter, assign({}, this.attributes, attributes)) }, withConverter: function (converter) { return init(assign({}, this.converter, converter), this.attributes) } }, { attributes: { value: Object.freeze(defaultAttributes) }, converter: { value: Object.freeze(converter) } } ) } var api = init(defaultConverter, { path: '/' }); /* eslint-enable no-var */ return api; }))); /***/ }), /***/ "85e3": /***/ (function(module, exports) { /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } module.exports = apply; /***/ }), /***/ "872a": /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__("3b4a"); /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } module.exports = baseAssignValue; /***/ }), /***/ "8861": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1010 = function (_MSI) { _inherits(MSI1010, _MSI); function MSI1010(data, options) { _classCallCheck(this, MSI1010); data += (0, _checksums.mod10)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1010.__proto__ || Object.getPrototypeOf(MSI1010)).call(this, data, options)); } return MSI1010; }(_MSI3.default); exports.default = MSI1010; /***/ }), /***/ "8875": /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller // MIT license // source: https://github.com/amiller-gh/currentScript-polyfill // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505 (function (root, factory) { if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} }(typeof self !== 'undefined' ? self : this, function () { function getCurrentScript () { var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript') // for chrome if (!descriptor && 'currentScript' in document && document.currentScript) { return document.currentScript } // for other browsers with native support for currentScript if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) { return document.currentScript } // IE 8-10 support script readyState // IE 11+ & Firefox support stack trace try { throw new Error(); } catch (err) { // Find the second match for the "at" string to get file src url from stack. var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), scriptLocation = (stackDetails && stackDetails[1]) || false, line = (stackDetails && stackDetails[2]) || false, currentLocation = document.location.href.replace(document.location.hash, ''), pageSource, inlineScriptSourceRegExp, inlineScriptSource, scripts = document.getElementsByTagName('script'); // Live NodeList collection if (scriptLocation === currentLocation) { pageSource = document.documentElement.outerHTML; inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i'); inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim(); } for (var i = 0; i < scripts.length; i++) { // If ready state is interactive, return the script tag if (scripts[i].readyState === 'interactive') { return scripts[i]; } // If src matches, return the script tag if (scripts[i].src === scriptLocation) { return scripts[i]; } // If inline source matches, return the script tag if ( scriptLocation === currentLocation && scripts[i].innerHTML && scripts[i].innerHTML.trim() === inlineScriptSource ) { return scripts[i]; } } // If no match, return null return null; } }; return getCurrentScript })); /***/ }), /***/ "89a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _constants = __webpack_require__("c243"); var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Binary_encoding_of_data_digits_into_EAN-13_barcode // Calculate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit var checksum = function checksum(number) { var res = number.substr(0, 12).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 3 : sum + a; }, 0); return (10 - res % 10) % 10; }; var EAN13 = function (_EAN) { _inherits(EAN13, _EAN); function EAN13(data, options) { _classCallCheck(this, EAN13); // Add checksum if it does not exist if (data.search(/^[0-9]{12}$/) !== -1) { data += checksum(data); } // Adds a last character to the end of the barcode var _this = _possibleConstructorReturn(this, (EAN13.__proto__ || Object.getPrototypeOf(EAN13)).call(this, data, options)); _this.lastChar = options.lastChar; return _this; } _createClass(EAN13, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftText', this).call(this, 1, 6); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(1, 6); var structure = _constants.EAN13_STRUCTURE[this.data[0]]; return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftEncode', this).call(this, data, structure); } }, { key: 'rightText', value: function rightText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightText', this).call(this, 7, 6); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(7, 6); return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightEncode', this).call(this, data, 'RRRRRR'); } // The "standard" way of printing EAN13 barcodes with guard bars }, { key: 'encodeGuarded', value: function encodeGuarded() { var data = _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'encodeGuarded', this).call(this); // Extend data with left digit & last character if (this.options.displayValue) { data.unshift({ data: '000000000000', text: this.text.substr(0, 1), options: { textAlign: 'left', fontSize: this.fontSize } }); if (this.options.lastChar) { data.push({ data: '00' }); data.push({ data: '00000', text: this.options.lastChar, options: { fontSize: this.fontSize } }); } } return data; } }]); return EAN13; }(_EAN3.default); exports.default = EAN13; /***/ }), /***/ "8adb": /***/ (function(module, exports) { /** * Gets the value at `key`, unless `key` is "__proto__". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function safeGet(object, key) { if (key == '__proto__') { return; } return object[key]; } module.exports = safeGet; /***/ }), /***/ "8de2": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * Converts `value` to a plain object flattening inherited enumerable string * keyed properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns the converted plain object. * @example * * function Foo() { * this.b = 2; * } * * Foo.prototype.c = 3; * * _.assign({ 'a': 1 }, new Foo); * // => { 'a': 1, 'b': 2 } * * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); * // => { 'a': 1, 'b': 2, 'c': 3 } */ function toPlainObject(value) { return copyObject(value, keysIn(value)); } module.exports = toPlainObject; /***/ }), /***/ "8df4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var Cancel = __webpack_require__("7a77"); /** * A `CancelToken` is an object that can be used to request cancellation of an operation. * * @class * @param {Function} executor The executor function. */ function CancelToken(executor) { if (typeof executor !== 'function') { throw new TypeError('executor must be a function.'); } var resolvePromise; this.promise = new Promise(function promiseExecutor(resolve) { resolvePromise = resolve; }); var token = this; executor(function cancel(message) { if (token.reason) { // Cancellation has already been requested return; } token.reason = new Cancel(message); resolvePromise(token.reason); }); } /** * Throws a `Cancel` if cancellation has been requested. */ CancelToken.prototype.throwIfRequested = function throwIfRequested() { if (this.reason) { throw this.reason; } }; /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ CancelToken.source = function source() { var cancel; var token = new CancelToken(function executor(c) { cancel = c; }); return { token: token, cancel: cancel }; }; module.exports = CancelToken; /***/ }), /***/ "8e51": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MSI1110 = exports.MSI1010 = exports.MSI11 = exports.MSI10 = exports.MSI = undefined; var _MSI = __webpack_require__("124f"); var _MSI2 = _interopRequireDefault(_MSI); var _MSI3 = __webpack_require__("4727"); var _MSI4 = _interopRequireDefault(_MSI3); var _MSI5 = __webpack_require__("4461"); var _MSI6 = _interopRequireDefault(_MSI5); var _MSI7 = __webpack_require__("8861"); var _MSI8 = _interopRequireDefault(_MSI7); var _MSI9 = __webpack_require__("805f"); var _MSI10 = _interopRequireDefault(_MSI9); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.MSI = _MSI2.default; exports.MSI10 = _MSI4.default; exports.MSI11 = _MSI6.default; exports.MSI1010 = _MSI8.default; exports.MSI1110 = _MSI10.default; /***/ }), /***/ "8eeb": /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__("32b3"), baseAssignValue = __webpack_require__("872a"); /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } module.exports = copyObject; /***/ }), /***/ "91e9": /***/ (function(module, exports) { /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } module.exports = overArg; /***/ }), /***/ "93ed": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } module.exports = mapCacheDelete; /***/ }), /***/ "9520": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObject = __webpack_require__("1a8c"); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }), /***/ "9638": /***/ (function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }), /***/ "96f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.has` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHas(object, key) { return object != null && hasOwnProperty.call(object, key); } module.exports = baseHas; /***/ }), /***/ "9934": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeysIn = __webpack_require__("41c3"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } module.exports = keysIn; /***/ }), /***/ "99cd": /***/ (function(module, exports) { /** * Creates a base function for methods like `_.forIn` and `_.forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } module.exports = createBaseFor; /***/ }), /***/ "99d3": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__("585a"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); module.exports = nodeUtil; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "9aff": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"), isArrayLike = __webpack_require__("30c9"), isIndex = __webpack_require__("c098"), isObject = __webpack_require__("1a8c"); /** * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, * else `false`. */ function isIterateeCall(value, index, object) { if (!isObject(object)) { return false; } var type = typeof index; if (type == 'number' ? (isArrayLike(object) && isIndex(index, object.length)) : (type == 'string' && index in object) ) { return eq(object[index], value); } return false; } module.exports = isIterateeCall; /***/ }), /***/ "9e69": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Symbol = root.Symbol; module.exports = Symbol; /***/ }), /***/ "9ffa": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ITF14 = exports.ITF = undefined; var _ITF = __webpack_require__("3c7c"); var _ITF2 = _interopRequireDefault(_ITF); var _ITF3 = __webpack_require__("07df"); var _ITF4 = _interopRequireDefault(_ITF3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.ITF = _ITF2.default; exports.ITF14 = _ITF4.default; /***/ }), /***/ "a029": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), getPrototype = __webpack_require__("2dcb"), getSymbols = __webpack_require__("32f4"), stubArray = __webpack_require__("d327"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); object = getPrototype(object); } return result; }; module.exports = getSymbolsIn; /***/ }), /***/ "a2b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = linearizeEncodings; // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] function linearizeEncodings(encodings) { var linearEncodings = []; function nextLevel(encoded) { if (Array.isArray(encoded)) { for (var i = 0; i < encoded.length; i++) { nextLevel(encoded[i]); } } else { encoded.text = encoded.text || ""; encoded.data = encoded.data || ""; linearEncodings.push(encoded); } } nextLevel(encodings); return linearEncodings; } /***/ }), /***/ "a2db": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; /** * Creates a clone of the `symbol` object. * * @private * @param {Object} symbol The symbol object to clone. * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } module.exports = cloneSymbol; /***/ }), /***/ "a454": /***/ (function(module, exports, __webpack_require__) { var constant = __webpack_require__("72f0"), defineProperty = __webpack_require__("3b4a"), identity = __webpack_require__("cd9d"); /** * The base implementation of `setToString` without support for hot loop shorting. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, 'toString', { 'configurable': true, 'enumerable': false, 'value': constant(string), 'writable': true }); }; module.exports = baseSetToString; /***/ }), /***/ "a524": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { return getMapData(this, key).has(key); } module.exports = mapCacheHas; /***/ }), /***/ "a5d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_2#Encoding var EAN2 = function (_Barcode) { _inherits(EAN2, _Barcode); function EAN2(data, options) { _classCallCheck(this, EAN2); return _possibleConstructorReturn(this, (EAN2.__proto__ || Object.getPrototypeOf(EAN2)).call(this, data, options)); } _createClass(EAN2, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{2}$/) !== -1; } }, { key: 'encode', value: function encode() { // Choose the structure based on the number mod 4 var structure = _constants.EAN2_STRUCTURE[parseInt(this.data) % 4]; return { // Start bits + Encode the two digits with 01 in between data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN2; }(_Barcode3.default); exports.default = EAN2; /***/ }), /***/ "a994": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbols = __webpack_require__("32f4"), keys = __webpack_require__("ec69"); /** * Creates an array of own enumerable property names and symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeys(object) { return baseGetAllKeys(object, keys, getSymbols); } module.exports = getAllKeys; /***/ }), /***/ "aab3": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getOptionsFromElement(element) { var options = {}; for (var property in _defaults2.default) { if (_defaults2.default.hasOwnProperty(property)) { // jsbarcode-* if (element.hasAttribute("jsbarcode-" + property.toLowerCase())) { options[property] = element.getAttribute("jsbarcode-" + property.toLowerCase()); } // data-* if (element.hasAttribute("data-" + property.toLowerCase())) { options[property] = element.getAttribute("data-" + property.toLowerCase()); } } } options["value"] = element.getAttribute("jsbarcode-value") || element.getAttribute("data-value"); // Since all atributes are string they need to be converted to integers options = (0, _optionsFromStrings2.default)(options); return options; } exports.default = getOptionsFromElement; /***/ }), /***/ "ab5b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTotalWidthOfEncodings = exports.calculateEncodingAttributes = exports.getBarcodePadding = exports.getEncodingHeight = exports.getMaximumHeightOfEncodings = undefined; var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getEncodingHeight(encoding, options) { return options.height + (options.displayValue && encoding.text.length > 0 ? options.fontSize + options.textMargin : 0) + options.marginTop + options.marginBottom; } function getBarcodePadding(textWidth, barcodeWidth, options) { if (options.displayValue && barcodeWidth < textWidth) { if (options.textAlign == "center") { return Math.floor((textWidth - barcodeWidth) / 2); } else if (options.textAlign == "left") { return 0; } else if (options.textAlign == "right") { return Math.floor(textWidth - barcodeWidth); } } return 0; } function calculateEncodingAttributes(encodings, barcodeOptions, context) { for (var i = 0; i < encodings.length; i++) { var encoding = encodings[i]; var options = (0, _merge2.default)(barcodeOptions, encoding.options); // Calculate the width of the encoding var textWidth; if (options.displayValue) { textWidth = messureText(encoding.text, options, context); } else { textWidth = 0; } var barcodeWidth = encoding.data.length * options.width; encoding.width = Math.ceil(Math.max(textWidth, barcodeWidth)); encoding.height = getEncodingHeight(encoding, options); encoding.barcodePadding = getBarcodePadding(textWidth, barcodeWidth, options); } } function getTotalWidthOfEncodings(encodings) { var totalWidth = 0; for (var i = 0; i < encodings.length; i++) { totalWidth += encodings[i].width; } return totalWidth; } function getMaximumHeightOfEncodings(encodings) { var maxHeight = 0; for (var i = 0; i < encodings.length; i++) { if (encodings[i].height > maxHeight) { maxHeight = encodings[i].height; } } return maxHeight; } function messureText(string, options, context) { var ctx; if (context) { ctx = context; } else if (typeof document !== "undefined") { ctx = document.createElement("canvas").getContext("2d"); } else { // If the text cannot be messured we will return 0. // This will make some barcode with big text render incorrectly return 0; } ctx.font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Calculate the width of the encoding var measureTextResult = ctx.measureText(string); if (!measureTextResult) { // Some implementations don't implement measureText and return undefined. // If the text cannot be measured we will return 0. // This will make some barcode with big text render incorrectly return 0; } var size = measureTextResult.width; return size; } exports.getMaximumHeightOfEncodings = getMaximumHeightOfEncodings; exports.getEncodingHeight = getEncodingHeight; exports.getBarcodePadding = getBarcodePadding; exports.calculateEncodingAttributes = calculateEncodingAttributes; exports.getTotalWidthOfEncodings = getTotalWidthOfEncodings; /***/ }), /***/ "b047": /***/ (function(module, exports) { /** * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. */ function baseUnary(func) { return function(value) { return func(value); }; } module.exports = baseUnary; /***/ }), /***/ "b1d2": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var dateTag = '[object Date]'; /** * The base implementation of `_.isDate` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { return isObjectLike(value) && baseGetTag(value) == dateTag; } module.exports = baseIsDate; /***/ }), /***/ "b1d8": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* global HTMLImageElement */ /* global HTMLCanvasElement */ /* global SVGElement */ var _getOptionsFromElement = __webpack_require__("aab3"); var _getOptionsFromElement2 = _interopRequireDefault(_getOptionsFromElement); var _renderers = __webpack_require__("752b"); var _renderers2 = _interopRequireDefault(_renderers); var _exceptions = __webpack_require__("dca2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Takes an element and returns an object with information about how // it should be rendered // This could also return an array with these objects // { // element: The element that the renderer should draw on // renderer: The name of the renderer // afterRender (optional): If something has to done after the renderer // completed, calls afterRender (function) // options (optional): Options that can be defined in the element // } function getRenderProperties(element) { // If the element is a string, query select call again if (typeof element === "string") { return querySelectedRenderProperties(element); } // If element is array. Recursivly call with every object in the array else if (Array.isArray(element)) { var returnArray = []; for (var i = 0; i < element.length; i++) { returnArray.push(getRenderProperties(element[i])); } return returnArray; } // If element, render on canvas and set the uri as src else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLImageElement) { return newCanvasRenderProperties(element); } // If SVG else if (element && element.nodeName && element.nodeName.toLowerCase() === 'svg' || typeof SVGElement !== 'undefined' && element instanceof SVGElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.SVGRenderer }; } // If canvas (in browser) else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLCanvasElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.CanvasRenderer }; } // If canvas (in node) else if (element && element.getContext) { return { element: element, renderer: _renderers2.default.CanvasRenderer }; } else if (element && (typeof element === "undefined" ? "undefined" : _typeof(element)) === 'object' && !element.nodeName) { return { element: element, renderer: _renderers2.default.ObjectRenderer }; } else { throw new _exceptions.InvalidElementException(); } } function querySelectedRenderProperties(string) { var selector = document.querySelectorAll(string); if (selector.length === 0) { return undefined; } else { var returnArray = []; for (var i = 0; i < selector.length; i++) { returnArray.push(getRenderProperties(selector[i])); } return returnArray; } } function newCanvasRenderProperties(imgElement) { var canvas = document.createElement('canvas'); return { element: canvas, options: (0, _getOptionsFromElement2.default)(imgElement), renderer: _renderers2.default.CanvasRenderer, afterRender: function afterRender() { imgElement.setAttribute("src", canvas.toDataURL()); } }; } exports.default = getRenderProperties; /***/ }), /***/ "b218": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; /***/ }), /***/ "b4c0": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } module.exports = listCacheGet; /***/ }), /***/ "b50d": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var settle = __webpack_require__("467f"); var cookies = __webpack_require__("7aac"); var buildURL = __webpack_require__("30b5"); var buildFullPath = __webpack_require__("83b9"); var parseHeaders = __webpack_require__("c345"); var isURLSameOrigin = __webpack_require__("3934"); var createError = __webpack_require__("2d83"); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { var requestData = config.data; var requestHeaders = config.headers; if (utils.isFormData(requestData)) { delete requestHeaders['Content-Type']; // Let the browser set it } if ( (utils.isBlob(requestData) || utils.isFile(requestData)) && requestData.type ) { delete requestHeaders['Content-Type']; // Let the browser set it } var request = new XMLHttpRequest(); // HTTP basic authentication if (config.auth) { var username = config.auth.username || ''; var password = unescape(encodeURIComponent(config.auth.password)) || ''; requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); } var fullPath = buildFullPath(config.baseURL, config.url); request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); // Set the request timeout in MS request.timeout = config.timeout; // Listen for ready state request.onreadystatechange = function handleLoad() { if (!request || request.readyState !== 4) { return; } // The request errored out and we didn't get a response, this will be // handled by onerror instead // With one exception: request that using file: protocol, most browsers // will return status as 0 even though it's a successful request if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { return; } // Prepare the response var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; var response = { data: responseData, status: request.status, statusText: request.statusText, headers: responseHeaders, config: config, request: request }; settle(resolve, reject, response); // Clean up request request = null; }; // Handle browser request cancellation (as opposed to a manual cancellation) request.onabort = function handleAbort() { if (!request) { return; } reject(createError('Request aborted', config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Handle low level network errors request.onerror = function handleError() { // Real errors are hidden from us by the browser // onerror should only fire if it's a network error reject(createError('Network Error', config, null, request)); // Clean up request request = null; }; // Handle timeout request.ontimeout = function handleTimeout() { var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; if (config.timeoutErrorMessage) { timeoutErrorMessage = config.timeoutErrorMessage; } reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Add xsrf header // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined; if (xsrfValue) { requestHeaders[config.xsrfHeaderName] = xsrfValue; } } // Add headers to the request if ('setRequestHeader' in request) { utils.forEach(requestHeaders, function setRequestHeader(val, key) { if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { // Remove Content-Type if data is undefined delete requestHeaders[key]; } else { // Otherwise add header to the request request.setRequestHeader(key, val); } }); } // Add withCredentials to request if needed if (!utils.isUndefined(config.withCredentials)) { request.withCredentials = !!config.withCredentials; } // Add responseType to request if needed if (config.responseType) { try { request.responseType = config.responseType; } catch (e) { // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. if (config.responseType !== 'json') { throw e; } } } // Handle progress if needed if (typeof config.onDownloadProgress === 'function') { request.addEventListener('progress', config.onDownloadProgress); } // Not all browsers support upload events if (typeof config.onUploadProgress === 'function' && request.upload) { request.upload.addEventListener('progress', config.onUploadProgress); } if (config.cancelToken) { // Handle cancellation config.cancelToken.promise.then(function onCanceled(cancel) { if (!request) { return; } request.abort(); reject(cancel); // Clean up request request = null; }); } if (!requestData) { requestData = null; } // Send the request request.send(requestData); }); }; /***/ }), /***/ "b5a7": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var DataView = getNative(root, 'DataView'); module.exports = DataView; /***/ }), /***/ "b760": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** * This function is like `assignValue` except that it doesn't assign * `undefined` values. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignMergeValue(object, key, value) { if ((value !== undefined && !eq(object[key], value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignMergeValue; /***/ }), /***/ "bb5d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("f08e"); // Match Set functions var matchSetALength = function matchSetALength(string) { return string.match(new RegExp('^' + _constants.A_CHARS + '*'))[0].length; }; var matchSetBLength = function matchSetBLength(string) { return string.match(new RegExp('^' + _constants.B_CHARS + '*'))[0].length; }; var matchSetC = function matchSetC(string) { return string.match(new RegExp('^' + _constants.C_CHARS + '*'))[0]; }; // CODE128A or CODE128B function autoSelectFromAB(string, isA) { var ranges = isA ? _constants.A_CHARS : _constants.B_CHARS; var untilC = string.match(new RegExp('^(' + ranges + '+?)(([0-9]{2}){2,})([^0-9]|$)')); if (untilC) { return untilC[1] + String.fromCharCode(204) + autoSelectFromC(string.substring(untilC[1].length)); } var chars = string.match(new RegExp('^' + ranges + '+'))[0]; if (chars.length === string.length) { return string; } return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA); } // CODE128C function autoSelectFromC(string) { var cMatch = matchSetC(string); var length = cMatch.length; if (length === string.length) { return string; } string = string.substring(length); // Select A/B depending on the longest match var isA = matchSetALength(string) >= matchSetBLength(string); return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA); } // Detect Code Set (A, B or C) and format the string exports.default = function (string) { var newString = void 0; var cLength = matchSetC(string).length; // Select 128C if the string start with enough digits if (cLength >= 2) { newString = _constants.C_START_CHAR + autoSelectFromC(string); } else { // Select A/B depending on the longest match var isA = matchSetALength(string) > matchSetBLength(string); newString = (isA ? _constants.A_START_CHAR : _constants.B_START_CHAR) + autoSelectFromAB(string, isA); } return newString.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, // Any sequence between 205 and 206 characters function (match, char) { return String.fromCharCode(203) + char; }); }; /***/ }), /***/ "bbc0": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED ? undefined : result; } return hasOwnProperty.call(data, key) ? data[key] : undefined; } module.exports = hashGet; /***/ }), /***/ "bc3a": /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("cee4"); /***/ }), /***/ "bd8a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /*eslint no-console: 0 */ var ErrorHandler = function () { function ErrorHandler(api) { _classCallCheck(this, ErrorHandler); this.api = api; } _createClass(ErrorHandler, [{ key: "handleCatch", value: function handleCatch(e) { // If babel supported extending of Error in a correct way instanceof would be used here if (e.name === "InvalidInputException") { if (this.api._options.valid !== this.api._defaults.valid) { this.api._options.valid(false); } else { throw e.message; } } else { throw e; } this.api.render = function () {}; } }, { key: "wrapBarcodeCall", value: function wrapBarcodeCall(func) { try { var result = func.apply(undefined, arguments); this.api._options.valid(true); return result; } catch (e) { this.handleCatch(e); return this.api; } } }]); return ErrorHandler; }(); exports.default = ErrorHandler; /***/ }), /***/ "bdfe": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Base class for EAN8 & EAN13 var EAN = function (_Barcode) { _inherits(EAN, _Barcode); function EAN(data, options) { _classCallCheck(this, EAN); // Make sure the font is not bigger than the space between the guard bars var _this = _possibleConstructorReturn(this, (EAN.__proto__ || Object.getPrototypeOf(EAN)).call(this, data, options)); _this.fontSize = !options.flat && options.fontSize > options.width * 10 ? options.width * 10 : options.fontSize; // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(EAN, [{ key: 'encode', value: function encode() { return this.options.flat ? this.encodeFlat() : this.encodeGuarded(); } }, { key: 'leftText', value: function leftText(from, to) { return this.text.substr(from, to); } }, { key: 'leftEncode', value: function leftEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'rightText', value: function rightText(from, to) { return this.text.substr(from, to); } }, { key: 'rightEncode', value: function rightEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'encodeGuarded', value: function encodeGuarded() { var textOptions = { fontSize: this.fontSize }; var guardOptions = { height: this.guardHeight }; return [{ data: _constants.SIDE_BIN, options: guardOptions }, { data: this.leftEncode(), text: this.leftText(), options: textOptions }, { data: _constants.MIDDLE_BIN, options: guardOptions }, { data: this.rightEncode(), text: this.rightText(), options: textOptions }, { data: _constants.SIDE_BIN, options: guardOptions }]; } }, { key: 'encodeFlat', value: function encodeFlat() { var data = [_constants.SIDE_BIN, this.leftEncode(), _constants.MIDDLE_BIN, this.rightEncode(), _constants.SIDE_BIN]; return { data: data.join(''), text: this.text }; } }]); return EAN; }(_Barcode3.default); exports.default = EAN; /***/ }), /***/ "be5e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var svgns = "http://www.w3.org/2000/svg"; var SVGRenderer = function () { function SVGRenderer(svg, encodings, options) { _classCallCheck(this, SVGRenderer); this.svg = svg; this.encodings = encodings; this.options = options; this.document = options.xmlDocument || document; } _createClass(SVGRenderer, [{ key: "render", value: function render() { var currentX = this.options.marginLeft; this.prepareSVG(); for (var i = 0; i < this.encodings.length; i++) { var encoding = this.encodings[i]; var encodingOptions = (0, _merge2.default)(this.options, encoding.options); var group = this.createGroup(currentX, encodingOptions.marginTop, this.svg); this.setGroupOptions(group, encodingOptions); this.drawSvgBarcode(group, encodingOptions, encoding); this.drawSVGText(group, encodingOptions, encoding); currentX += encoding.width; } } }, { key: "prepareSVG", value: function prepareSVG() { // Clear the SVG while (this.svg.firstChild) { this.svg.removeChild(this.svg.firstChild); } (0, _shared.calculateEncodingAttributes)(this.encodings, this.options); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); var width = totalWidth + this.options.marginLeft + this.options.marginRight; this.setSvgAttributes(width, maxHeight); if (this.options.background) { this.drawRect(0, 0, width, maxHeight, this.svg).setAttribute("style", "fill:" + this.options.background + ";"); } } }, { key: "drawSvgBarcode", value: function drawSvgBarcode(parent, options, encoding) { var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.fontSize + options.textMargin; } else { yFrom = 0; } var barWidth = 0; var x = 0; for (var b = 0; b < binary.length; b++) { x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { barWidth++; } else if (barWidth > 0) { this.drawRect(x - options.width * barWidth, yFrom, options.width * barWidth, options.height, parent); barWidth = 0; } } // Last draw is needed since the barcode ends with 1 if (barWidth > 0) { this.drawRect(x - options.width * (barWidth - 1), yFrom, options.width * barWidth, options.height, parent); } } }, { key: "drawSVGText", value: function drawSVGText(parent, options, encoding) { var textElem = this.document.createElementNS(svgns, 'text'); // Draw the text if displayValue is set if (options.displayValue) { var x, y; textElem.setAttribute("style", "font:" + options.fontOptions + " " + options.fontSize + "px " + options.font); if (options.textPosition == "top") { y = options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.fontSize; } // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; textElem.setAttribute("text-anchor", "start"); } else if (options.textAlign == "right") { x = encoding.width - 1; textElem.setAttribute("text-anchor", "end"); } // In all other cases, center the text else { x = encoding.width / 2; textElem.setAttribute("text-anchor", "middle"); } textElem.setAttribute("x", x); textElem.setAttribute("y", y); textElem.appendChild(this.document.createTextNode(encoding.text)); parent.appendChild(textElem); } } }, { key: "setSvgAttributes", value: function setSvgAttributes(width, height) { var svg = this.svg; svg.setAttribute("width", width + "px"); svg.setAttribute("height", height + "px"); svg.setAttribute("x", "0px"); svg.setAttribute("y", "0px"); svg.setAttribute("viewBox", "0 0 " + width + " " + height); svg.setAttribute("xmlns", svgns); svg.setAttribute("version", "1.1"); svg.setAttribute("style", "transform: translate(0,0)"); } }, { key: "createGroup", value: function createGroup(x, y, parent) { var group = this.document.createElementNS(svgns, 'g'); group.setAttribute("transform", "translate(" + x + ", " + y + ")"); parent.appendChild(group); return group; } }, { key: "setGroupOptions", value: function setGroupOptions(group, options) { group.setAttribute("style", "fill:" + options.lineColor + ";"); } }, { key: "drawRect", value: function drawRect(x, y, width, height, parent) { var rect = this.document.createElementNS(svgns, 'rect'); rect.setAttribute("x", x); rect.setAttribute("y", y); rect.setAttribute("width", width); rect.setAttribute("height", height); parent.appendChild(rect); return rect; } }]); return SVGRenderer; }(); exports.default = SVGRenderer; /***/ }), /***/ "be98": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _UPC = __webpack_require__("e8b2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding // // UPC-E documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#UPC-E var EXPANSIONS = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"]; var PARITIES = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]]; var UPCE = function (_Barcode) { _inherits(UPCE, _Barcode); function UPCE(data, options) { _classCallCheck(this, UPCE); var _this = _possibleConstructorReturn(this, (UPCE.__proto__ || Object.getPrototypeOf(UPCE)).call(this, data, options)); // Code may be 6 or 8 digits; // A 7 digit code is ambiguous as to whether the extra digit // is a UPC-A check or number system digit. _this.isValid = false; if (data.search(/^[0-9]{6}$/) !== -1) { _this.middleDigits = data; _this.upcA = expandToUPCA(data, "0"); _this.text = options.text || '' + _this.upcA[0] + data + _this.upcA[_this.upcA.length - 1]; _this.isValid = true; } else if (data.search(/^[01][0-9]{7}$/) !== -1) { _this.middleDigits = data.substring(1, data.length - 1); _this.upcA = expandToUPCA(_this.middleDigits, data[0]); if (_this.upcA[_this.upcA.length - 1] === data[data.length - 1]) { _this.isValid = true; } else { // checksum mismatch return _possibleConstructorReturn(_this); } } else { return _possibleConstructorReturn(_this); } _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPCE, [{ key: 'valid', value: function valid() { return this.isValid; } }, { key: 'encode', value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: 'flatEncoding', value: function flatEncoding() { var result = ""; result += "101"; result += this.encodeMiddleDigits(); result += "010101"; return { data: result, text: this.text }; } }, { key: 'guardedEncoding', value: function guardedEncoding() { var result = []; // Add the UPC-A number system digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[0], options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101", options: { height: this.guardHeight } }); // Add the 6 UPC-E digits result.push({ data: this.encodeMiddleDigits(), text: this.text.substring(1, 7), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: "010101", options: { height: this.guardHeight } }); // Add the UPC-A check digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[7], options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }, { key: 'encodeMiddleDigits', value: function encodeMiddleDigits() { var numberSystem = this.upcA[0]; var checkDigit = this.upcA[this.upcA.length - 1]; var parity = PARITIES[parseInt(checkDigit)][parseInt(numberSystem)]; return (0, _encoder2.default)(this.middleDigits, parity); } }]); return UPCE; }(_Barcode3.default); function expandToUPCA(middleDigits, numberSystem) { var lastUpcE = parseInt(middleDigits[middleDigits.length - 1]); var expansion = EXPANSIONS[lastUpcE]; var result = ""; var digitIndex = 0; for (var i = 0; i < expansion.length; i++) { var c = expansion[i]; if (c === 'X') { result += middleDigits[digitIndex++]; } else { result += c; } } result = '' + numberSystem + result; return '' + result + (0, _UPC.checksum)(result); } exports.default = UPCE; /***/ }), /***/ "c098": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == 'number' || (type != 'symbol' && reIsUint.test(value))) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; /***/ }), /***/ "c17b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.codabar = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding specification: // http://www.barcodeisland.com/codabar.phtml var codabar = function (_Barcode) { _inherits(codabar, _Barcode); function codabar(data, options) { _classCallCheck(this, codabar); if (data.search(/^[0-9\-\$\:\.\+\/]+$/) === 0) { data = "A" + data + "A"; } var _this = _possibleConstructorReturn(this, (codabar.__proto__ || Object.getPrototypeOf(codabar)).call(this, data.toUpperCase(), options)); _this.text = _this.options.text || _this.text.replace(/[A-D]/g, ''); return _this; } _createClass(codabar, [{ key: "valid", value: function valid() { return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1; } }, { key: "encode", value: function encode() { var result = []; var encodings = this.getEncodings(); for (var i = 0; i < this.data.length; i++) { result.push(encodings[this.data.charAt(i)]); // for all characters except the last, append a narrow-space ("0") if (i !== this.data.length - 1) { result.push("0"); } } return { text: this.text, data: result.join('') }; } }, { key: "getEncodings", value: function getEncodings() { return { "0": "101010011", "1": "101011001", "2": "101001011", "3": "110010101", "4": "101101001", "5": "110101001", "6": "100101011", "7": "100101101", "8": "100110101", "9": "110100101", "-": "101001101", "$": "101100101", ":": "1101011011", "/": "1101101011", ".": "1101101101", "+": "1011011011", "A": "1011001001", "B": "1001001011", "C": "1010010011", "D": "1010011001" }; } }]); return codabar; }(_Barcode3.default); exports.codabar = codabar; /***/ }), /***/ "c1c9": /***/ (function(module, exports, __webpack_require__) { var baseSetToString = __webpack_require__("a454"), shortOut = __webpack_require__("f3c1"); /** * Sets the `toString` method of `func` to return `string`. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var setToString = shortOut(baseSetToString); module.exports = setToString; /***/ }), /***/ "c243": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Standard start end and middle bits var SIDE_BIN = exports.SIDE_BIN = '101'; var MIDDLE_BIN = exports.MIDDLE_BIN = '01010'; var BINARIES = exports.BINARIES = { 'L': [// The L (left) type of encoding '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'G': [// The G type of encoding '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'], 'R': [// The R (right) type of encoding '1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100'], 'O': [// The O (odd) encoding for UPC-E '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'E': [// The E (even) encoding for UPC-E '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'] }; // Define the EAN-2 structure var EAN2_STRUCTURE = exports.EAN2_STRUCTURE = ['LL', 'LG', 'GL', 'GG']; // Define the EAN-5 structure var EAN5_STRUCTURE = exports.EAN5_STRUCTURE = ['GGLLL', 'GLGLL', 'GLLGL', 'GLLLG', 'LGGLL', 'LLGGL', 'LLLGG', 'LGLGL', 'LGLLG', 'LLGLG']; // Define the EAN-13 structure var EAN13_STRUCTURE = exports.EAN13_STRUCTURE = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL']; /***/ }), /***/ "c2b6": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"), cloneDataView = __webpack_require__("5d89"), cloneRegExp = __webpack_require__("6f6c"), cloneSymbol = __webpack_require__("a2db"), cloneTypedArray = __webpack_require__("c8fe"); /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', mapTag = '[object Map]', numberTag = '[object Number]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** * Initializes an object clone based on its `toStringTag`. * * **Note:** This function only supports cloning values with tags of * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. * * @private * @param {Object} object The object to clone. * @param {string} tag The `toStringTag` of the object to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the initialized clone. */ function initCloneByTag(object, tag, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag: return cloneArrayBuffer(object); case boolTag: case dateTag: return new Ctor(+object); case dataViewTag: return cloneDataView(object, isDeep); case float32Tag: case float64Tag: case int8Tag: case int16Tag: case int32Tag: case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: return cloneTypedArray(object, isDeep); case mapTag: return new Ctor; case numberTag: case stringTag: return new Ctor(object); case regexpTag: return cloneRegExp(object); case setTag: return new Ctor; case symbolTag: return cloneSymbol(object); } } module.exports = initCloneByTag; /***/ }), /***/ "c345": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); // Headers whose duplicates are ignored by node // c.f. https://nodejs.org/api/http.html#http_message_headers var ignoreDuplicateOf = [ 'age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent' ]; /** * Parse headers into an object * * ``` * Date: Wed, 27 Aug 2014 08:58:49 GMT * Content-Type: application/json * Connection: keep-alive * Transfer-Encoding: chunked * ``` * * @param {String} headers Headers needing to be parsed * @returns {Object} Headers parsed into an object */ module.exports = function parseHeaders(headers) { var parsed = {}; var key; var val; var i; if (!headers) { return parsed; } utils.forEach(headers.split('\n'), function parser(line) { i = line.indexOf(':'); key = utils.trim(line.substr(0, i)).toLowerCase(); val = utils.trim(line.substr(i + 1)); if (key) { if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { return; } if (key === 'set-cookie') { parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); } else { parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; } } }); return parsed; }; /***/ }), /***/ "c3fc": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var setTag = '[object Set]'; /** * The base implementation of `_.isSet` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. */ function baseIsSet(value) { return isObjectLike(value) && getTag(value) == setTag; } module.exports = baseIsSet; /***/ }), /***/ "c401": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Transform the data for a request or a response * * @param {Object|String} data The data to be transformed * @param {Array} headers The headers for the request or response * @param {Array|Function} fns A single function or Array of functions * @returns {*} The resulting transformed data */ module.exports = function transformData(data, headers, fns) { /*eslint no-param-reassign:0*/ utils.forEach(fns, function transform(fn) { data = fn(data, headers); }); return data; }; /***/ }), /***/ "c532": /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__("1d2b"); /*global toString:true*/ // utils is a library of generic helper functions non-specific to axios 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 undefined * * @param {Object} val The value to test * @returns {boolean} True if the value is undefined, otherwise false */ function isUndefined(val) { return typeof val === 'undefined'; } /** * Determine if a value is a Buffer * * @param {Object} val The value to test * @returns {boolean} True if value is a Buffer, otherwise false */ function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); } /** * Determine if a value is an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is an ArrayBuffer, otherwise false */ function isArrayBuffer(val) { return toString.call(val) === '[object ArrayBuffer]'; } /** * Determine if a value is a FormData * * @param {Object} val The value to test * @returns {boolean} True if value is an FormData, otherwise false */ function isFormData(val) { return (typeof FormData !== 'undefined') && (val instanceof FormData); } /** * Determine if a value is a view on an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false */ function isArrayBufferView(val) { var result; if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { result = ArrayBuffer.isView(val); } else { result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); } return result; } /** * Determine if a value is a String * * @param {Object} val The value to test * @returns {boolean} True if value is a String, otherwise false */ function isString(val) { return typeof val === 'string'; } /** * Determine if a value is a Number * * @param {Object} val The value to test * @returns {boolean} True if value is a Number, otherwise false */ function isNumber(val) { return typeof val === 'number'; } /** * 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 && typeof val === 'object'; } /** * Determine if a value is a plain Object * * @param {Object} val The value to test * @return {boolean} True if value is a plain Object, otherwise false */ function isPlainObject(val) { if (toString.call(val) !== '[object Object]') { return false; } var prototype = Object.getPrototypeOf(val); return prototype === null || prototype === Object.prototype; } /** * 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 File * * @param {Object} val The value to test * @returns {boolean} True if value is a File, otherwise false */ function isFile(val) { return toString.call(val) === '[object File]'; } /** * Determine if a value is a Blob * * @param {Object} val The value to test * @returns {boolean} True if value is a Blob, otherwise false */ function isBlob(val) { return toString.call(val) === '[object Blob]'; } /** * Determine if a value is a Function * * @param {Object} val The value to test * @returns {boolean} True if value is a Function, otherwise false */ function isFunction(val) { return toString.call(val) === '[object Function]'; } /** * Determine if a value is a Stream * * @param {Object} val The value to test * @returns {boolean} True if value is a Stream, otherwise false */ function isStream(val) { return isObject(val) && isFunction(val.pipe); } /** * 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; } /** * Trim excess whitespace off the beginning and end of a string * * @param {String} str The String to trim * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); } /** * Determine if we're running in a standard browser environment * * This allows axios to run in a web worker, and react-native. * Both environments support XMLHttpRequest, but not fully standard globals. * * web workers: * typeof window -> undefined * typeof document -> undefined * * react-native: * navigator.product -> 'ReactNative' * nativescript * navigator.product -> 'NativeScript' or 'NS' */ function isStandardBrowserEnv() { if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) { return false; } return ( typeof window !== 'undefined' && typeof document !== 'undefined' ); } /** * 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 (typeof 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); } } } } /** * Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multiple objects contain the same key the later object in * the arguments list will take precedence. * * Example: * * ```js * var result = merge({foo: 123}, {foo: 456}); * console.log(result.foo); // outputs 456 * ``` * * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function merge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (isPlainObject(result[key]) && isPlainObject(val)) { result[key] = merge(result[key], val); } else if (isPlainObject(val)) { result[key] = merge({}, val); } else if (isArray(val)) { result[key] = val.slice(); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Extends object a by mutably adding to it the properties of object b. * * @param {Object} a The object to be extended * @param {Object} b The object to copy properties from * @param {Object} thisArg The object to bind function to * @return {Object} The resulting value of object a */ function extend(a, b, thisArg) { forEach(b, function assignValue(val, key) { if (thisArg && typeof val === 'function') { a[key] = bind(val, thisArg); } else { a[key] = val; } }); return a; } /** * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) * * @param {string} content with BOM * @return {string} content value without BOM */ function stripBOM(content) { if (content.charCodeAt(0) === 0xFEFF) { content = content.slice(1); } return content; } module.exports = { isArray: isArray, isArrayBuffer: isArrayBuffer, isBuffer: isBuffer, isFormData: isFormData, isArrayBufferView: isArrayBufferView, isString: isString, isNumber: isNumber, isObject: isObject, isPlainObject: isPlainObject, isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, isFunction: isFunction, isStream: isStream, isURLSearchParams: isURLSearchParams, isStandardBrowserEnv: isStandardBrowserEnv, forEach: forEach, merge: merge, extend: extend, trim: trim, stripBOM: stripBOM }; /***/ }), /***/ "c869": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Set = getNative(root, 'Set'); module.exports = Set; /***/ }), /***/ "c87c": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Initializes an array clone. * * @private * @param {Array} array The array to clone. * @returns {Array} Returns the initialized clone. */ function initCloneArray(array) { var length = array.length, result = new array.constructor(length); // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { result.index = array.index; result.input = array.input; } return result; } module.exports = initCloneArray; /***/ }), /***/ "c8af": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = function normalizeHeaderName(headers, normalizedName) { utils.forEach(headers, function processHeader(value, name) { if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { headers[normalizedName] = value; delete headers[name]; } }); }; /***/ }), /***/ "c8ba": /***/ (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; /***/ }), /***/ "c8fe": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `typedArray`. * * @private * @param {Object} typedArray The typed array to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned typed array. */ function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } module.exports = cloneTypedArray; /***/ }), /***/ "ca32": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var defaults = { width: 2, height: 100, format: "auto", displayValue: true, fontOptions: "", font: "monospace", text: undefined, textAlign: "center", textPosition: "bottom", textMargin: 2, fontSize: 20, background: "#ffffff", lineColor: "#000000", margin: 10, marginTop: undefined, marginBottom: undefined, marginLeft: undefined, marginRight: undefined, valid: function valid() {} }; exports.default = defaults; /***/ }), /***/ "cb5a": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } module.exports = assocIndexOf; /***/ }), /***/ "cc45": /***/ (function(module, exports, __webpack_require__) { var baseIsMap = __webpack_require__("1a2d"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsMap = nodeUtil && nodeUtil.isMap; /** * Checks if `value` is classified as a `Map` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * * _.isMap(new Map); * // => true * * _.isMap(new WeakMap); * // => false */ var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; module.exports = isMap; /***/ }), /***/ "cd9d": /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "ce86": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), arrayMap = __webpack_require__("7948"), isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = baseToString; /***/ }), /***/ "cee4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var bind = __webpack_require__("1d2b"); var Axios = __webpack_require__("0a06"); var mergeConfig = __webpack_require__("4a7b"); var defaults = __webpack_require__("2444"); /** * Create an instance of Axios * * @param {Object} defaultConfig The default config for the instance * @return {Axios} A new instance of Axios */ function createInstance(defaultConfig) { var context = new Axios(defaultConfig); var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance utils.extend(instance, Axios.prototype, context); // Copy context to instance utils.extend(instance, context); return instance; } // Create the default instance to be exported var axios = createInstance(defaults); // Expose Axios class to allow class inheritance axios.Axios = Axios; // Factory for creating new instances axios.create = function create(instanceConfig) { return createInstance(mergeConfig(axios.defaults, instanceConfig)); }; // Expose Cancel & CancelToken axios.Cancel = __webpack_require__("7a77"); axios.CancelToken = __webpack_require__("8df4"); axios.isCancel = __webpack_require__("2e67"); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; axios.spread = __webpack_require__("0df6"); module.exports = axios; // Allow use of default import syntax in TypeScript module.exports.default = axios; /***/ }), /***/ "d02c": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"), MapCache = __webpack_require__("7b83"); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet; /***/ }), /***/ "d327": /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "d370": /***/ (function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__("253c"), isObjectLike = __webpack_require__("1310"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }), /***/ "d7ee": /***/ (function(module, exports, __webpack_require__) { var baseIsSet = __webpack_require__("c3fc"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsSet = nodeUtil && nodeUtil.isSet; /** * Checks if `value` is classified as a `Set` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * * _.isSet(new Set); * // => true * * _.isSet(new WeakSet); * // => false */ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; module.exports = isSet; /***/ }), /***/ "d925": /***/ (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 */ module.exports = 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); }; /***/ }), /***/ "da03": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Used to detect overreaching core-js shims. */ var coreJsData = root['__core-js_shared__']; module.exports = coreJsData; /***/ }), /***/ "da3d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE128C = exports.CODE128B = exports.CODE128A = exports.CODE128 = undefined; var _CODE128_AUTO = __webpack_require__("6f24"); var _CODE128_AUTO2 = _interopRequireDefault(_CODE128_AUTO); var _CODE128A = __webpack_require__("e8c9"); var _CODE128A2 = _interopRequireDefault(_CODE128A); var _CODE128B = __webpack_require__("70b0"); var _CODE128B2 = _interopRequireDefault(_CODE128B); var _CODE128C = __webpack_require__("ed3f"); var _CODE128C2 = _interopRequireDefault(_CODE128C); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.CODE128 = _CODE128_AUTO2.default; exports.CODE128A = _CODE128A2.default; exports.CODE128B = _CODE128B2.default; exports.CODE128C = _CODE128C2.default; /***/ }), /***/ "dc57": /***/ (function(module, exports) { /** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource; /***/ }), /***/ "dca2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var InvalidInputException = function (_Error) { _inherits(InvalidInputException, _Error); function InvalidInputException(symbology, input) { _classCallCheck(this, InvalidInputException); var _this = _possibleConstructorReturn(this, (InvalidInputException.__proto__ || Object.getPrototypeOf(InvalidInputException)).call(this)); _this.name = "InvalidInputException"; _this.symbology = symbology; _this.input = input; _this.message = '"' + _this.input + '" is not a valid input for ' + _this.symbology; return _this; } return InvalidInputException; }(Error); var InvalidElementException = function (_Error2) { _inherits(InvalidElementException, _Error2); function InvalidElementException() { _classCallCheck(this, InvalidElementException); var _this2 = _possibleConstructorReturn(this, (InvalidElementException.__proto__ || Object.getPrototypeOf(InvalidElementException)).call(this)); _this2.name = "InvalidElementException"; _this2.message = "Not supported type to render on"; return _this2; } return InvalidElementException; }(Error); var NoElementException = function (_Error3) { _inherits(NoElementException, _Error3); function NoElementException() { _classCallCheck(this, NoElementException); var _this3 = _possibleConstructorReturn(this, (NoElementException.__proto__ || Object.getPrototypeOf(NoElementException)).call(this)); _this3.name = "NoElementException"; _this3.message = "No element to render on."; return _this3; } return NoElementException; }(Error); exports.InvalidInputException = InvalidInputException; exports.InvalidElementException = InvalidElementException; exports.NoElementException = NoElementException; /***/ }), /***/ "dcbe": /***/ (function(module, exports, __webpack_require__) { var isArrayLike = __webpack_require__("30c9"), isObjectLike = __webpack_require__("1310"); /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } module.exports = isArrayLikeObject; /***/ }), /***/ "df7c": /***/ (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__("4362"))) /***/ }), /***/ "e031": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), isObject = __webpack_require__("1a8c"); /** * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source * objects into destination objects that are passed thru. * * @private * @param {*} objValue The destination value. * @param {*} srcValue The source value. * @param {string} key The key of the property to merge. * @param {Object} object The parent object of `objValue`. * @param {Object} source The parent object of `srcValue`. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. * @returns {*} Returns the value to assign. */ function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { if (isObject(objValue) && isObject(srcValue)) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, objValue); baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack); stack['delete'](srcValue); } return objValue; } module.exports = customDefaultsMerge; /***/ }), /***/ "e24b": /***/ (function(module, exports, __webpack_require__) { var hashClear = __webpack_require__("49f4"), hashDelete = __webpack_require__("1efc"), hashGet = __webpack_require__("bbc0"), hashHas = __webpack_require__("7a48"), hashSet = __webpack_require__("2524"); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; module.exports = Hash; /***/ }), /***/ "e2c0": /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__("e2e4"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isIndex = __webpack_require__("c098"), isLength = __webpack_require__("b218"), toKey = __webpack_require__("f4d6"); /** * Checks if `path` exists on `object`. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @param {Function} hasFunc The function to check properties. * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { path = castPath(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } module.exports = hasPath; /***/ }), /***/ "e2e4": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isKey = __webpack_require__("f608"), stringToPath = __webpack_require__("18d8"), toString = __webpack_require__("76dd"); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }), /***/ "e380": /***/ (function(module, exports, __webpack_require__) { var MapCache = __webpack_require__("7b83"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; module.exports = memoize; /***/ }), /***/ "e538": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; /** * Creates a clone of `buffer`. * * @private * @param {Buffer} buffer The buffer to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Buffer} Returns the cloned buffer. */ function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } module.exports = cloneBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "e683": /***/ (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 */ module.exports = function combineURLs(baseURL, relativeURL) { return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; }; /***/ }), /***/ "e762": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Barcode = function Barcode(data, options) { _classCallCheck(this, Barcode); this.data = data; this.text = options.text || data; this.options = options; }; exports.default = Barcode; /***/ }), /***/ "e8b2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); exports.checksum = checksum; var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding var UPC = function (_Barcode) { _inherits(UPC, _Barcode); function UPC(data, options) { _classCallCheck(this, UPC); // Add checksum if it does not exist if (data.search(/^[0-9]{11}$/) !== -1) { data += checksum(data); } var _this = _possibleConstructorReturn(this, (UPC.__proto__ || Object.getPrototypeOf(UPC)).call(this, data, options)); _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPC, [{ key: "valid", value: function valid() { return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == checksum(this.data); } }, { key: "encode", value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: "flatEncoding", value: function flatEncoding() { var result = ""; result += "101"; result += (0, _encoder2.default)(this.data.substr(0, 6), "LLLLLL"); result += "01010"; result += (0, _encoder2.default)(this.data.substr(6, 6), "RRRRRR"); result += "101"; return { data: result, text: this.text }; } }, { key: "guardedEncoding", value: function guardedEncoding() { var result = []; // Add the first digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(0, 1), options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101" + (0, _encoder2.default)(this.data[0], "L"), options: { height: this.guardHeight } }); // Add the left side result.push({ data: (0, _encoder2.default)(this.data.substr(1, 5), "LLLLL"), text: this.text.substr(1, 5), options: { fontSize: this.fontSize } }); // Add the middle bits result.push({ data: "01010", options: { height: this.guardHeight } }); // Add the right side result.push({ data: (0, _encoder2.default)(this.data.substr(6, 5), "RRRRR"), text: this.text.substr(6, 5), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: (0, _encoder2.default)(this.data[11], "R") + "101", options: { height: this.guardHeight } }); // Add the last digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(11, 1), options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }]); return UPC; }(_Barcode3.default); // Calulate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit function checksum(number) { var result = 0; var i; for (i = 1; i < 11; i += 2) { result += parseInt(number[i]); } for (i = 0; i < 11; i += 2) { result += parseInt(number[i]) * 3; } return (10 - result % 10) % 10; } exports.default = UPC; /***/ }), /***/ "e8c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128A = function (_CODE) { _inherits(CODE128A, _CODE); function CODE128A(string, options) { _classCallCheck(this, CODE128A); return _possibleConstructorReturn(this, (CODE128A.__proto__ || Object.getPrototypeOf(CODE128A)).call(this, _constants.A_START_CHAR + string, options)); } _createClass(CODE128A, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.A_CHARS + '+$').test(this.data); } }]); return CODE128A; }(_CODE3.default); exports.default = CODE128A; /***/ }), /***/ "eac5": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } module.exports = isPrototype; /***/ }), /***/ "ec69": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeys = __webpack_require__("03dd"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = keys; /***/ }), /***/ "ec8c": /***/ (function(module, exports) { /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } module.exports = nativeKeysIn; /***/ }), /***/ "ed27": /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"hi-eap\",\"version\":\"1.2.87\",\"description\":\"A utils Library for hi-eap. Smart Client Platform\",\"main\":\"eap.umd.min.js\",\"homepage\":\"http://hieap.cn\",\"scripts\":{\"build:eap\":\"cross-env NODE_LIB=eap vue-cli-service build --target lib --name eap --dest hi-eap ./src/eap/index.js\"},\"dependencies\":{},\"devDependencies\":{},\"eslintIgnore\":[\"**/*.md\"]}"); /***/ }), /***/ "ed3f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128C = function (_CODE) { _inherits(CODE128C, _CODE); function CODE128C(string, options) { _classCallCheck(this, CODE128C); return _possibleConstructorReturn(this, (CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options)); } _createClass(CODE128C, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data); } }]); return CODE128C; }(_CODE3.default); exports.default = CODE128C; /***/ }), /***/ "efb6": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } module.exports = stackClear; /***/ }), /***/ "f08e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _SET_BY_CODE; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // constants for internal usage var SET_A = exports.SET_A = 0; var SET_B = exports.SET_B = 1; var SET_C = exports.SET_C = 2; // Special characters var SHIFT = exports.SHIFT = 98; var START_A = exports.START_A = 103; var START_B = exports.START_B = 104; var START_C = exports.START_C = 105; var MODULO = exports.MODULO = 103; var STOP = exports.STOP = 106; var FNC1 = exports.FNC1 = 207; // Get set by start code var SET_BY_CODE = exports.SET_BY_CODE = (_SET_BY_CODE = {}, _defineProperty(_SET_BY_CODE, START_A, SET_A), _defineProperty(_SET_BY_CODE, START_B, SET_B), _defineProperty(_SET_BY_CODE, START_C, SET_C), _SET_BY_CODE); // Get next set by code var SWAP = exports.SWAP = { 101: SET_A, 100: SET_B, 99: SET_C }; var A_START_CHAR = exports.A_START_CHAR = String.fromCharCode(208); // START_A + 105 var B_START_CHAR = exports.B_START_CHAR = String.fromCharCode(209); // START_B + 105 var C_START_CHAR = exports.C_START_CHAR = String.fromCharCode(210); // START_C + 105 // 128A (Code Set A) // ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4 var A_CHARS = exports.A_CHARS = "[\x00-\x5F\xC8-\xCF]"; // 128B (Code Set B) // ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4 var B_CHARS = exports.B_CHARS = "[\x20-\x7F\xC8-\xCF]"; // 128C (Code Set C) // 00–99 (encodes two digits with a single code point) and FNC1 var C_CHARS = exports.C_CHARS = "(\xCF*[0-9]{2}\xCF*)"; // CODE128 includes 107 symbols: // 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one) // Each symbol consist of three black bars (1) and three white spaces (0). var BARS = exports.BARS = [11011001100, 11001101100, 11001100110, 10010011000, 10010001100, 10001001100, 10011001000, 10011000100, 10001100100, 11001001000, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011000, 11011000110, 11000110110, 10100011000, 10001011000, 10001000110, 10110001000, 10001101000, 10001100010, 11010001000, 11000101000, 11000100010, 10110111000, 10110001110, 10001101110, 10111011000, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101000, 11011100010, 11011101110, 11101011000, 11101000110, 11100010110, 11101101000, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 10100110000, 10100001100, 10010110000, 10010000110, 10000101100, 10000100110, 10110010000, 10110000100, 10011010000, 10011000010, 10000110100, 10000110010, 11000010010, 11001010000, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111000, 10100011110, 10001011110, 10111101000, 10111100010, 11110101000, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 11010010000, 11010011100, 1100011101011]; /***/ }), /***/ "f3c1": /***/ (function(module, exports) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ var HOT_COUNT = 800, HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeNow = Date.now; /** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. */ function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(undefined, arguments); }; } module.exports = shortOut; /***/ }), /***/ "f4d6": /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }), /***/ "f608": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }), /***/ "f6b4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); 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) { utils.forEach(this.handlers, function forEachHandler(h) { if (h !== null) { fn(h); } }); }; module.exports = InterceptorManager; /***/ }), /***/ "f8af": /***/ (function(module, exports, __webpack_require__) { var Uint8Array = __webpack_require__("2474"); /** * Creates a clone of `arrayBuffer`. * * @private * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array(result).set(new Uint8Array(arrayBuffer)); return result; } module.exports = cloneArrayBuffer; /***/ }), /***/ "f909": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), assignMergeValue = __webpack_require__("b760"), baseFor = __webpack_require__("72af"), baseMergeDeep = __webpack_require__("4f50"), isObject = __webpack_require__("1a8c"), keysIn = __webpack_require__("9934"), safeGet = __webpack_require__("8adb"); /** * The base implementation of `_.merge` without support for multiple sources. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {number} srcIndex The index of `source`. * @param {Function} [customizer] The function to customize merged values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } baseFor(source, function(srcValue, key) { if (isObject(srcValue)) { stack || (stack = new Stack); baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); } else { var newValue = customizer ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack) : undefined; if (newValue === undefined) { newValue = srcValue; } assignMergeValue(object, key, newValue); } }, keysIn); } module.exports = baseMerge; /***/ }), /***/ "fa21": /***/ (function(module, exports, __webpack_require__) { var baseCreate = __webpack_require__("7530"), getPrototype = __webpack_require__("2dcb"), isPrototype = __webpack_require__("eac5"); /** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { return (typeof object.constructor == 'function' && !isPrototype(object)) ? baseCreate(getPrototype(object)) : {}; } module.exports = initCloneObject; /***/ }), /***/ "fb15": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "user", function() { return /* reexport */ user; }); __webpack_require__.d(__webpack_exports__, "ajax", function() { return /* reexport */ ajax; }); __webpack_require__.d(__webpack_exports__, "request", function() { return /* reexport */ eap_request; }); __webpack_require__.d(__webpack_exports__, "mergeConfig", function() { return /* reexport */ mergeConfig; }); __webpack_require__.d(__webpack_exports__, "lang", function() { return /* reexport */ eap_lang; }); __webpack_require__.d(__webpack_exports__, "utils", function() { return /* reexport */ eap_utils; }); __webpack_require__.d(__webpack_exports__, "page", function() { return /* reexport */ page; }); __webpack_require__.d(__webpack_exports__, "dataHelper", function() { return /* reexport */ eap_dataHelper; }); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js // This file is imported into lib/wc client bundles. if (typeof window !== 'undefined') { var currentScript = window.document.currentScript if (true) { var getCurrentScript = __webpack_require__("8875") currentScript = getCurrentScript() // for backward compatibility, because previously we directly included the polyfill if (!('currentScript' in document)) { Object.defineProperty(document, 'currentScript', { get: getCurrentScript }) } } var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) if (src) { __webpack_require__.p = src[1] // eslint-disable-line } } // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = (null); // EXTERNAL MODULE: ./node_modules/axios/index.js var axios = __webpack_require__("bc3a"); var axios_default = /*#__PURE__*/__webpack_require__.n(axios); // EXTERNAL MODULE: ./node_modules/js-cookie/dist/js.cookie.js var js_cookie = __webpack_require__("852e"); var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie); // CONCATENATED MODULE: ./src/utils/token.js /* harmony default export */ var utils_token = ("d23290d0-f840-46d4-8401-ae815cc05c9a"); // CONCATENATED MODULE: ./src/eap/user/auth.js const TokenKey = 'EAP-Token' function getToken() { let token = js_cookie_default.a.get(TokenKey) let env = Object({"NODE_ENV":"production","VUE_APP_BASE_API":"http://192.168.4.106:7777","BASE_URL":"/"}); if (!token && env.NODE_ENV == "development") { return utils_token; } return token; } function setToken(token) { return js_cookie_default.a.set(TokenKey, token) } function removeToken() { return js_cookie_default.a.remove(TokenKey) } /* harmony default export */ var auth = ({ getToken, setToken, removeToken, }); // EXTERNAL MODULE: external "ELEMENT" var external_ELEMENT_ = __webpack_require__("5f72"); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/types.js /* harmony default export */ var types = ({ "string" :"dbString", "int" :"dbInt", "float" :"dbFloat", "double" :"dbDouble", "text" :"dbText ", "boolean" :"dbBoolean ", "datetime" :"dbDatetime ", "timestamp" :"dbTimestamp " }); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/keys.js /* harmony default export */ var keys = ({ "pageIndex": "pageNum", "pageSize": "pageSize", "body": "__body", "funcpath":"__funcpath", "returnTotal":"__returnCount", "zcQuery":"__zcQuery", "slaveEntities":"__slaveEntities", "modelFilePath":"modelFilePath", "slaveExport":"__slaveExport", "sheetStyle":"__sheetStyle", "sheetDatas":"__sheetDatas", "viewItemId":"viewItemId" }); // EXTERNAL MODULE: ./node_modules/lodash/has.js var has = __webpack_require__("3852"); var has_default = /*#__PURE__*/__webpack_require__.n(has); // EXTERNAL MODULE: ./node_modules/lodash/isDate.js var isDate = __webpack_require__("6220"); var isDate_default = /*#__PURE__*/__webpack_require__.n(isDate); // CONCATENATED MODULE: ./src/hiSetting.js const hiSetting = { //项目名 projectName: 'eap5csxm/admin', pName: "eap5csxm", pUser: "admin", //接口返回消息弹窗模式,默认为消息提示(自动消失),msgBox为消息弹窗(需手动确定关闭) messageType: "msgBox", //请求对象 // request: eap.request,//eap对象还没有加载 // ajax: eap.ajax,//eap对象还没有加载 //部署目录 deployDir: "", //服务器域名 url: "http://192.168.4.105:7777", //编辑器脚本路径 editorResDir: "", //服务名称 serverName: "", //默认服务url serverUrl: "", //用户信息 userInfo: "/sys/user/detail", //登录页url loginUrl: "/login.html", //小登录窗口登录页url miniLoginUrl: "/login.html", //首页url mainPageUrl: "/main.html", //大数据保存webscoketUrl saveWsUrl:"/ws/progress/{id}", //数据保存url saveUrl: "/data/save", //'/data/save', //数据查询url queryUrl: "/data/query", //'/data/query', //excel导出心跳 exportExcelHeartbeatUrl: "/export/dataexcel/status", //导入URL excelImportUrl: "/import/exceldata", //ws excel导入数据 wsExcelImportUrl: "/ws/import/exceldata", //导出URL exportUrl: "/export/dataexcel", exportPathUrl: "/export/dataexcel/path", exportNewUrl: "/export/dataexcelnew", //页面初始化接口 pageInitUrl: "/data/page/permit", //数据策略url policyUrl: "/data/policy", //下推目标取url flowUrlByPush:"/sys/auth/query-flowux", //附件上传url upload: "/file/upload", //附件下载url download: "/file/download", //附件查看url review: "/file/static/preview", //附件上传url publicupload: "/file/public/upload", //附件下载url publicdownload: "/file/public/download", //附件查看url publicreview: "/file/public/preview", //流程信息url getFlowInfo: "/flow/open", getApprovalInfo: "/flow/getApprovalInfo", processFlow: "/flow/processFlow", umpireOrder: "/flow/umpireOrder", queryTask: "/flow/queryTask", withdrawtask: "/flow/withdrawtask", taskDiagram: "/flow/taskDiagram", ganttChart: "/flow/ganttChart", openOrdernumber: "/flow/openOrdernumber", //默认查询操作符 queryOperate: 'like', //数据返回超时时间 requestTimeout: 140 * 1000, //是否单点登录 isSingleLogin: false, //单点登录页 singleLoginUrl: "", //单点登出页 singleLogoutUrl: "", } /* harmony default export */ var src_hiSetting = (hiSetting); // CONCATENATED MODULE: ./src/base/utils/src/date.js /** * showdoc * @catalog API/工具/Date * @title 日期基础类 * @className ClientDate * @modifier static * @method DateFunc * @demo */ const DATE = { timeSchemeKey: { "today": "today", "yesterday": "yesterday", "week": "week", "month": "month", "premonth": "premonth", "quarter": "quarter", "year": "year", "days7": "days7", "days28": "days28", "days84": "days84", "halfyear": "halfyear", "oneyear": "oneyear" }, /** * showdoc * @catalog API/工具/Date * @title 日期格式化 * @description 将条件转成字符结果 * @method format * @param date 必选 Date|String 需要格式化日期 * @param format 必选 String 格式化类型 * @return Date * @number 60 */ format: function (date, format) { if (!date) return ""; if (typeof date == "string") date = DATE.strToDate(date); format = format.replace(/HH/, "hh"); var o = { "M+": date.getMonth() + 1, // month "d+": date.getDate(), // day "D+": date.getDate(), // day "h+": date.getHours(), // hour "H+": date.getHours(), // hour "m+": date.getMinutes(), // minute "s+": date.getSeconds(), // second "q+": Math.floor((date.getMonth() + 3) / 3), // quarter "S": date.getMilliseconds() // millisecond } if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); if (/(Y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(format)) format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); return format; }, /** * showdoc * @catalog API/工具/Date * @title 获取服务端时间 * @description 服务端当前时间 * @method getServerTimeNow * @return Date * @number 60 */ getServerTimeNow() { let serverTimeNow = ""; window.eap.ajax({ url: window.HIVUI_SETTING.getNowTimeUrl, method: "GET",//可不传,默认post async: false,//可不传,默认true success: function (response) { serverTimeNow = response.dataPack; }, fail: function () { } }); return serverTimeNow; }, /** * showdoc * @catalog API/工具/Date * @title 毫秒差间隔 * @description dt1与dt2日期之间毫秒差间隔 * @method milliSecondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ milliSecondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); return Math.abs(dt1.getTime() - dt2.getTime()); }, /** * showdoc * @catalog API/工具/Date * @title 秒差间隔 * @description dt1与dt2日期之间秒差间隔 * @method secondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ secondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getTime() - dt2.getTime()) / 1000); }, /** * showdoc * @catalog API/工具/Date * @title 分钟差间隔 * @description dt1与dt2日期之间分钟差间隔 * @method minutesBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 分差 minutesBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 60))); }, /** * showdoc * @catalog API/工具/Date * @title 时差间隔 * @description dt1与dt2日期之间时差间隔 * @method hoursBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 小时差 hoursBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600))); }, /** * showdoc * @catalog API/工具/Date * @title 天差间隔 * @description dt1与dt2日期之间天差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @param isAbs 选填 是否 返回绝对值 * @return Int * @number 60 */ daysBetween: function (dt1, dt2, isAbs) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; dt1 = this.strFormatDate(this.format(dt1, "yyyy-MM-dd")); dt2 = this.strFormatDate(this.format(dt2, "yyyy-MM-dd")); if (isAbs) return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24))); else return Math.floor((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24)); }, /** * showdoc * @catalog API/工具/Date * @title 月差间隔 * @description dt1与dt2日期之间月差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ monthsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getFullYear() - dt2.getFullYear()) * 12) + Math.abs(dt1.getMonth() - dt2.getMonth()); }, /** * showdoc * @catalog API/工具/Date * @title 年差间隔 * @description dt1与dt2日期之间年差间隔 * @method yearsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ yearsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs(dt1.getFullYear() - dt2.getFullYear()); }, /** * showdoc * @catalog API/工具/Date * @title 获取中文星期 * @description 获取中文星期 * @method getWeekCn * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeekCn: function (dt) { var dayNames = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); if (typeof dt == "string") dt = DATE.strToDate(dt); return dayNames[dt.getDay()]; }, /** * showdoc * @catalog API/工具/Date * @title 获取数字星期 * @description 获取数字星期 * @url getWeek(dt) * @method getWeek(dt) * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeek: function (dt) { if (typeof dt == "string") dt = DATE.strToDate(dt); return dt.getDay(); }, /** * showdoc * @catalog API/工具/Date * @title 是否时间日期 * @description 是否时间日期 * @method isDateTime * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDateTime: function (dateString) { if (dateString.trim() == "") return false; // 年月日时分秒正则表达式 var r = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/); var r1 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}).(\d{1,6})$/); var r2 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2})$/); if (r == null && r1 == null && r2 == null) { return false; } r = r || r1 || r2; if (r.length == 6) {// 时间格式为:2018-04-11 17:31 var d1 = new Date(r[1], r[2] - 1, r[3], r[4], r[5]); let num = (d1.getFullYear() == r[1] && (d1.getMonth() + 1) == r[2] && d1.getDate() == r[3] && d1.getHours() == r[4] && d1 .getMinutes() == r[5]); if (num == 0) { return false; } else return true; } var d = new Date(r[1], r[2] - 1, r[3], r[4], r[5], r[6]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[2] && d.getDate() == r[3] && d.getHours() == r[4] && d.getMinutes() == r[5] && d.getSeconds() == r[6]); if (num == 0) { return false; } return (num != 0); }, /** * showdoc * @catalog API/工具/Date * @title 是否日期类型 * @description 是否日期类型 * @method isDate * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDate: function (dateString) { if (dateString == "") return true; // 年月日正则表达式 var r = dateString.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); if (r == null) { return false; } var d = new Date(r[1], r[3] - 1, r[4]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[3] && d .getDate() == r[4]); if (num == 0) { return false; } return (num != 0); }, dateof: function (dt, type) { let result; if (!dt) return ""; if (typeof dt == "string") dt = DATE.strToDate(dt); switch (type) { case "y": result = dt.getFullYear(); break; case "m": result = dt.getMonth() + 1; break; case "min": result = dt.getMinutes(); break; case "time": result = DATE.format("yyyy-MM-dd hh:mm:ss"); break; case "date": result = DATE.format('yyyy-MM-dd'); break; case "weekCn": result = dt.week(); break; case "week": result = dt.getDay(); break; case "weekInYear": var first = new Date(dt.getFullYear(), 0, 1); var n = parseInt("1065432".charAt(first.getDay())); n = dt.getTime() - first.getTime() - n * 24 * 60 * 60 * 1000; n = Math.ceil(n / (7 * 24 * 60 * 60 * 1000)); result = first.getDay() != 1 ? (n + 1) : n; break; default: result = ""; } return result; }, /** * showdoc * @catalog API/工具/Date * @title 字符转换指定日期类型 * @description 字符转换指定日期类型 * @method strFormatDate * @param strDate 必选 String 日期时间 * @param strFormat 必选 String 格式化类型 * @return Date * @number 60 */ strFormatDate: function (strDate, strFormat) { if (strDate == "" || strDate == null) return ""; let d = DATE.strToDate(strDate); if (!strFormat) return d; return d.format(strFormat); }, /** * showdoc * @catalog API/工具/Date * @title 字符转换日期类型 * @description 字符转换日期类型 * @method strToDate * @param dataStr 必选 String 日期时间 * @return Date * @number 60 */ strToDate: function (dataStr) { if (!dataStr) return ""; if (dataStr && dataStr.constructor === Date) { // 2010.08.02 // 已经是时间类型,就不过滤。 return dataStr; } if (typeof dataStr == "string") { if (dataStr.indexOf('.') > -1) // 2010.07.13 08335 cai dataStr = dataStr.split('.')[0]; dataStr = dataStr.replace(/-/g, "/"); } // 只有时间字符串 01521 if ((dataStr.indexOf("-") == -1 && dataStr.indexOf("/") == -1) && dataStr.indexOf(".") == -1 && dataStr.indexOf(":") != -1) dataStr = DATE.dateOf(new Date()) + " " + dataStr; var arr = dataStr.split(/[- :]/); var arr1 = dataStr.split(/[/ :]/) if (dataStr != "" && (arr.length == 1 && arr1.length == 1)) { // 当:dataStr:1,返回:2010-01-01 // 00:00:00 console.log(dataStr + " Invalid Date") return ""; } return new Date(Date.parse(dataStr)); } , /** * showdoc * @catalog API/工具/Date * @title 获得季度的第一天 * @description 获得季度的第一天 * @method getQuarterStartDay * @param dataStr 必选 Date 日期时间 * @return Date * @number 60 */ getQuarterStartDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 0, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 3, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 6, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 9, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本季度的结束日期 * @description 获得本季度的结束日期 * @method getQuarterEndDate * @return Date * @number 60 */ getQuarterEndDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 2, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 6, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 8, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 11, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的开始日期 * @description 获得本年度的开始日期 * @method getYearStartDate * @return Date * @number 60 */ getYearStartDate: function () { var now = new Date(); var yearFirstDay = new Date(now.getFullYear(), 0, 1); return this.format(yearFirstDay, "yyyy-MM-dd"); //return yearFirstDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的结束日期 * @description 获得本年度的结束日期 * @method getYearEndDate * @return Date * @number 60 */ getYearEndDate: function () { var now = new Date(); var yearLastDay = new Date(now.getFullYear(), 11, 31); return this.format(yearLastDay, "yyyy-MM-dd"); //return yearLastDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得某月的天数 * @description 获得某月的天数 * @method getMonthDays * @param myMonth,myYear 必选 int 月份 * @param myMonth,myYear 必选 int 年份 * @return Int * @number 60 */ getMonthDays: function (myMonth, myYear) { if (myYear == undefined) { var now = new Date(); myYear = now.getFullYear(); } myMonth--; var d = new Date(myYear, myMonth, 1); d.setDate(d.getDate() + 32 - d.getDate()); return (32 - d.getDate()) }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的开始日期 * @description 获得本周的开始日期 * @method getWeekStartDate * @return Date * @number 60 */ getWeekStartDate: function () { var now = new Date(); var weekStartDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() - now.getDay()); return this.format(weekStartDate, "yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的结束日期 * @description 获得本周的结束日期 * @method getWeekEndDate * @return Date * @number 60 */ getWeekEndDate: function () { var now = new Date(); var weekEndDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() + (6 - now.getDay())); return this.format(weekEndDate, "yyyy-MM-dd"); //return weekEndDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的开始日期 * @description 获得本月的开始日期 * @method getMonthStartDate * @param dateVal 必选 Date|String 日期 * @return Date * @number 60 */ getMonthStartDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); var monthStartDate = new Date(now.getFullYear(), now.getMonth(), 1); return this.format(monthStartDate, "yyyy-MM-dd"); //monthStartDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的结束日期 * @description 获得本月的结束日期 * @method getMonthEndDate * @return Date * @number 60 */ getMonthEndDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); let year = now.getFullYear(); let month = now.getMonth(); var tempDate = new Date(new Date(year, month + 1, 1).getTime() - 1000 * 60 * 60 * 24) return this.format(tempDate, "yyyy-MM-dd"); //return tempDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获当前时间 * @description 获当前时间 * @method now * @param format 可选 String 格式化 * @return Date * @number 60 */ now: function () { let format = "yyyy-MM-dd hh:mm:ss"; return this.format(new Date(), format); }, currentNow: function () { return new Date(); }, /** * showdoc * @catalog API/工具/Date * @title 获时间方案 * @description 获时间方案 * @method TimeScheme * @param name 必选 String 方案名称 * @return Date * @number 60 */ TimeScheme: function (name,split) { split = split ||"到"; var startTime = ` 00:00:00${split}`, endTime = " 23:59:59"; switch (name) { case "today": return this.format(this.strToDate(this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "yesterday": return this .format(this.dateAdd("d", -1, this.now()), "yyyy-MM-dd") + startTime + this.format(this.dateAdd("d", -1, this .now()), "yyyy-MM-dd") + endTime; case "week": return this.getWeekStartDate() + startTime + this.getWeekEndDate() + endTime; case "month": return this.getMonthStartDate() + startTime + this.getMonthEndDate() + endTime; case "quarter": return this.getQuarterStartDate() + startTime + this.getQuarterEndDate() + endTime; case "year": return this.getYearStartDate() + startTime + this.getYearEndDate() + endTime; case "days7": return this.format(this.dateAdd("d", -7, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days28": return this.format(this.dateAdd("d", -28, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days84": return this.format(this.dateAdd("d", -84, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "halfyear": return this.format(this.dateAdd("d", -180, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "oneyear": return this.format(this.dateAdd("d", -365, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; } }, daysInMonth: function (year, month) { if (month == 1) { if (year % 4 == 0 && year % 100 != 0) return 29; else return 28; } else if ((month <= 6 && month % 2 == 0) || (month = true && month % 2 == 1)) return 31; else return 30; }, /** * showdoc * @catalog API/工具/Date * @title 加减日期 * @description 在日期中添加或者减去指定的时间间隔天数 * @method dateAdd * @param datepart 必选 String 间隔类型:y:年,q:季度,m:月,d:天,h:小时,mi:分,s:秒 * @param number 必选 Int 间隔数,正数表示加,负数表示减 * @param dtDate 必选 Date * @return Date * @number 60 */ dateAdd: function (datepart, number, dtDate) { if (typeof dtDate == "string") dtDate = DATE.strToDate(dtDate); var date = new Date(dtDate); datepart = (datepart || 'd').toLowerCase(); let diff = parseInt(number); let tempdate; switch (datepart) { case "y": // 年 tempdate = date.setYear(date.getFullYear() + diff) break; case "q": // 季度 tempdate = date.setMonth(date.getMonth() + (diff * 3)) break; case "m": // 月 var sYear = date.getFullYear(); var sMonth = date.getMonth(); var nextY = sYear; var nextM = sMonth; //如果当前月+要加上的月>11 这里之所以用11是因为 js的月份从0开始 if ((sMonth + diff) > 11) { nextY = sYear + 1; nextM = parseInt(sMonth + diff) - 12; } else { nextM = date.getMonth() + diff } var daysInNextMonth = this.daysInMonth(nextY, nextM); var day = date.getDate(); if (day > daysInNextMonth) { day = daysInNextMonth; } //eDate = new Date(nextY, nextM, day); tempdate = new Date(nextY, nextM, day); break; case "d": // 天 tempdate = date.setDate(date.getDate() + diff); break; case "h": // 时 tempdate = date.setHours(date.getHours() + diff); break; case "mi": // 分 tempdate = date.setMinutes(date.getMinutes() + diff); break; case "s": // 秒 tempdate = date.setSeconds(date.getSeconds() + diff) break; default: tempdate = date.setDate(date.getDate() + diff); break; } return new Date(tempdate); } } /* harmony default export */ var date = (DATE); // CONCATENATED MODULE: ./src/base/utils/src/number.js /** * showdoc * @catalog API/工具/Number * @title 数值基础类 * @className NumberFunc * @modifier static * @method NumberFunc * @demo */ const NUM = { /** * showdoc * @catalog API/工具/Number * @title 除法函数,用来得到精确的除法结果 * @description 除法函数,用来得到精确的除法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 被除数 * @param arg2 必选 Number 除数 * @return float * @number 60 */ accDiv : function(arg1, arg2) { var t1 = 0, t2 = 0, r1, r2; try { t1 = arg1.toString().split(".")[1].length } catch (e) { t1 = 0; } try { t2 = arg2.toString().split(".")[1].length } catch (e) { t2 = 0; } r1 = Number(arg1.toString().replace(".", "")) r2 = Number(arg2.toString().replace(".", "")) return (r1 / r2) * Math.pow(10, t2 - t1); }, /** * showdoc * @catalog API/工具/Number * @title 乘法函数,用来得到精确的乘法结果 * @description 乘法函数,用来得到精确的乘法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 乘数 * @param arg2 必选 Number 乘数 * @return float * @number 60 */ accMul : function(arg1, arg2) { var m = 0, s1 = arg1.toString(), s2 = arg2.toString(); try { m += s1.split(".")[1].length } catch (e) { m = 0; } try { m += s2.split(".")[1].length } catch (e) { m += 0; } return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m) }, /** * showdoc * @catalog API/工具/Number * @title 加法函数,用来得到精确的加法结果 * @description 加法函数,用来得到精确的加法结果 * @url accAdd(arg1,arg2) * @method accAdd * @param arg1 必选 Number 加数 * @param arg2 必选 Number 加数 * @return float * @number 60 */ accAdd : function(arg1, arg2) { var r1, r2, m; try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 } try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 } m = Math.pow(10, Math.max(r1, r2)) return (NUM.accMul(arg1, m) + NUM.accMul(arg2, m)) / m }, toFixed(number,length) { var carry = 0; //存放进位标志 var num,multiple; //num为原浮点数放大multiple倍后的数,multiple为10的length次方 var str = number + ''; //将调用该方法的数字转为字符串 var dot = str.indexOf("."); //找到小数点的位置 if(str.substr(dot+length+1,1)>=5) carry=1; //找到要进行舍入的数的位置,手动判断是否大于等于5,满足条件进位标志置为1 multiple = Math.pow(10,length); //设置浮点数要扩大的倍数 num = Math.floor(number * multiple) + carry; //去掉舍入位后的所有数,然后加上我们的手动进位数 var result = num/multiple + ''; //将进位后的整数再缩小为原浮点数 /* * 处理进位后无小数 */ dot = result.indexOf("."); if(dot < 0){ result += '.'; dot = result.indexOf("."); } /* * 处理多次进位 */ var len = result.length - (dot+1); if(len < length){ for(var i = 0; i < length - len; i++){ result += 0; } } return result; }, /** * showdoc * @catalog API/工具/Number * @title 中文数字格式化 * @description 中文数字格式化 * @url formatCn(n) * @method formatCn * @param n 必选 Number 数字 * @return string * @number 60 */ formatCn(n) { let fraction = ['角', '分']; let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]; let head = n < 0 ? '欠' : ''; n = Math.abs(n); let s = ''; for (let i = 0; i < fraction.length; i++) { s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); } s = s || '整'; n = Math.floor(n); for (let i = 0; i < unit[0].length && n > 0; i++) { let p = ''; for (let j = 0; j < unit[1].length && n > 0; j++) { p = digit[n % 10] + unit[1][j] + p; n = Math.floor(n / 10); } s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s; } return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); }, /** * showdoc * @catalog API/工具/Number * @title 数值格式化 * @description 数值格式化 * @url formatString(v,formatstring) * @method formatString * @param v 必选 Number 数字 * @param strign 必选 string 格式化 * @return string * @number 60 */ format: function (v, formatString) { if (!formatString) { formatString = "000,0.00"; //return v; } if(formatString.indexOf("¥")>-1) { formatString = "¥000,0.00"; } if (isFinite(v)) { v = parseFloat(v); } if (formatString.indexOf('%') > -1) { v = v * 100; } v = !isNaN(v) ? v : NaN; if (isNaN(v)) { return ''; } let formatCleanRe = /[^\d\.]/g; let comma = ",", dec = '.', neg = v < 0, hasComma, psplit, fnum, cnum, parr, j, m, n, i; v = Math.abs(v); // if (formatString.substr(formatString.length - 2) == '/i') { // I18NFormatCleanRe = new RegExp('[^\\d\\' // + UtilFormat.decimalSeparator + ']', 'g'); // formatString = formatString.substr(0, formatString.length - 2); // hasComma = formatString.indexOf(comma) != -1; // psplit = formatString.replace(I18NFormatCleanRe, '').split(dec); // } else hasComma = formatString.indexOf(',') != -1; psplit = formatString.replace(formatCleanRe, '').split('.'); if (psplit.length > 2) { alert("对比格式无效") // alert("瀵规瘮璧锋棤鏁堟牸寮忥紒"); // </debug> } else if (psplit.length > 1) { let precision = psplit[1].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(precision); } else { let precision = psplit[0].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(0); } fnum = v.toString(); psplit = fnum.split('.'); if (hasComma) { cnum = psplit[0]; parr = []; j = cnum.length; m = Math.floor(j / 3); n = cnum.length % 3 || 3; for (i = 0; i < j; i += n) { if (i !== 0) { n = 3; } parr[parr.length] = cnum.substr(i, n); m -= 1; } fnum = parr.join(comma); if (psplit[1]) { fnum += dec + psplit[1]; } } else { if (psplit[1]) { fnum = psplit[0] + dec + psplit[1]; } } if (neg) { neg = fnum.replace(/[^1-9]/g, '') !== ''; } return (neg ? '-' : '') + formatString.replace(/[\d,?\.?]+/, fnum); } } /* harmony default export */ var number = (NUM); // EXTERNAL MODULE: ./node_modules/js-md5/src/md5.js var md5 = __webpack_require__("8237"); var md5_default = /*#__PURE__*/__webpack_require__.n(md5); // CONCATENATED MODULE: ./src/base/utils/src/pyconst.js const pyconst_pinyin = { 'a': '\u554a\u963f\u9515', 'ai': '\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u7839\u953f\u972d', 'an': '\u978d\u6c28\u5b89\u4ffa\u6309\u6697\u5cb8\u80fa\u6848\u8c19\u57ef\u63de\u72b4\u5eb5\u6849\u94f5\u9e4c\u9878\u9eef', 'ang': '\u80ae\u6602\u76ce', 'ao': '\u51f9\u6556\u71ac\u7ff1\u8884\u50b2\u5965\u61ca\u6fb3\u5773\u62d7\u55f7\u5662\u5c99\u5ed2\u9068\u5aaa\u9a9c\u8071\u87af\u93ca\u9ccc\u93d6', 'ba': '\u82ad\u634c\u6252\u53ed\u5427\u7b06\u516b\u75a4\u5df4\u62d4\u8dcb\u9776\u628a\u8019\u575d\u9738\u7f62\u7238\u8307\u83dd\u8406\u636d\u5c9c\u705e\u6777\u94af\u7c91\u9c85\u9b43', 'bai': '\u767d\u67cf\u767e\u6446\u4f70\u8d25\u62dc\u7a17\u859c\u63b0\u97b4', 'ban': '\u6591\u73ed\u642c\u6273\u822c\u9881\u677f\u7248\u626e\u62cc\u4f34\u74e3\u534a\u529e\u7eca\u962a\u5742\u8c73\u94a3\u7622\u764d\u8228', 'bang': '\u90a6\u5e2e\u6886\u699c\u8180\u7ed1\u68d2\u78c5\u868c\u9551\u508d\u8c24\u84a1\u8783', 'bao': '\u82de\u80de\u5305\u8912\u96f9\u4fdd\u5821\u9971\u5b9d\u62b1\u62a5\u66b4\u8c79\u9c8d\u7206\u52f9\u8446\u5b80\u5b62\u7172\u9e28\u8913\u8db5\u9f85', 'bo': '\u5265\u8584\u73bb\u83e0\u64ad\u62e8\u94b5\u6ce2\u535a\u52c3\u640f\u94c2\u7b94\u4f2f\u5e1b\u8236\u8116\u818a\u6e24\u6cca\u9a73\u4eb3\u8543\u5575\u997d\u6a97\u64d8\u7934\u94b9\u9e41\u7c38\u8ddb', 'bei': '\u676f\u7891\u60b2\u5351\u5317\u8f88\u80cc\u8d1d\u94a1\u500d\u72c8\u5907\u60eb\u7119\u88ab\u5b5b\u9642\u90b6\u57e4\u84d3\u5457\u602b\u6096\u789a\u9e4e\u8919\u943e', 'ben': '\u5954\u82ef\u672c\u7b28\u755a\u574c\u951b', 'beng': '\u5d29\u7ef7\u752d\u6cf5\u8e66\u8ff8\u552a\u5623\u750f', 'bi': '\u903c\u9f3b\u6bd4\u9119\u7b14\u5f7c\u78a7\u84d6\u853d\u6bd5\u6bd9\u6bd6\u5e01\u5e87\u75f9\u95ed\u655d\u5f0a\u5fc5\u8f9f\u58c1\u81c2\u907f\u965b\u5315\u4ef3\u4ffe\u8298\u835c\u8378\u5421\u54d4\u72f4\u5eb3\u610e\u6ed7\u6fde\u5f3c\u59a3\u5a62\u5b16\u74a7\u8d32\u7540\u94cb\u79d5\u88e8\u7b5a\u7b85\u7be6\u822d\u895e\u8df8\u9ac0', 'bian': '\u97ad\u8fb9\u7f16\u8d2c\u6241\u4fbf\u53d8\u535e\u8fa8\u8fa9\u8fab\u904d\u533e\u5f01\u82c4\u5fed\u6c74\u7f0f\u7178\u782d\u78a5\u7a39\u7a86\u8759\u7b3e\u9cca', 'biao': '\u6807\u5f6a\u8198\u8868\u5a4a\u9aa0\u98d1\u98d9\u98da\u706c\u9556\u9573\u762d\u88f1\u9cd4', 'bie': '\u9cd6\u618b\u522b\u762a\u8e69\u9cd8', 'bin': '\u5f6c\u658c\u6fd2\u6ee8\u5bbe\u6448\u50a7\u6d5c\u7f24\u73a2\u6ba1\u8191\u9554\u9acc\u9b13', 'bing': '\u5175\u51b0\u67c4\u4e19\u79c9\u997c\u70b3\u75c5\u5e76\u7980\u90b4\u6452\u7ee0\u678b\u69df\u71f9', 'bu': '\u6355\u535c\u54fa\u8865\u57e0\u4e0d\u5e03\u6b65\u7c3f\u90e8\u6016\u62ca\u535f\u900b\u74ff\u6661\u949a\u91ad', 'ca': '\u64e6\u5693\u7924', 'cai': '\u731c\u88c1\u6750\u624d\u8d22\u776c\u8e29\u91c7\u5f69\u83dc\u8521', 'can': '\u9910\u53c2\u8695\u6b8b\u60ed\u60e8\u707f\u9a96\u74a8\u7cb2\u9eea', 'cang': '\u82cd\u8231\u4ed3\u6ca7\u85cf\u4f27', 'cao': '\u64cd\u7cd9\u69fd\u66f9\u8349\u8279\u5608\u6f15\u87ac\u825a', 'ce': '\u5395\u7b56\u4fa7\u518c\u6d4b\u5202\u5e3b\u607b', 'ceng': '\u5c42\u8e6d\u564c', 'cha': '\u63d2\u53c9\u832c\u8336\u67e5\u78b4\u643d\u5bdf\u5c94\u5dee\u8be7\u7339\u9987\u6c4a\u59f9\u6748\u6942\u69ce\u6aab\u9497\u9538\u9572\u8869', 'chai': '\u62c6\u67f4\u8c7a\u4faa\u8308\u7625\u867f\u9f87', 'chan': '\u6400\u63ba\u8749\u998b\u8c17\u7f20\u94f2\u4ea7\u9610\u98a4\u5181\u8c04\u8c36\u8487\u5edb\u5fcf\u6f7a\u6fb6\u5b71\u7fbc\u5a75\u5b17\u9aa3\u89c7\u7985\u9561\u88e3\u87fe\u8e94', 'chang': '\u660c\u7316\u573a\u5c1d\u5e38\u957f\u507f\u80a0\u5382\u655e\u7545\u5531\u5021\u4f25\u9b2f\u82cc\u83d6\u5f9c\u6005\u60dd\u960a\u5a3c\u5ae6\u6636\u6c05\u9cb3', 'chao': '\u8d85\u6284\u949e\u671d\u5632\u6f6e\u5de2\u5435\u7092\u600a\u7ec9\u6641\u8016', 'che': '\u8f66\u626f\u64a4\u63a3\u5f7b\u6f88\u577c\u5c6e\u7817', 'chen': '\u90f4\u81e3\u8fb0\u5c18\u6668\u5ff1\u6c89\u9648\u8d81\u886c\u79f0\u8c0c\u62bb\u55d4\u5bb8\u741b\u6987\u809c\u80c2\u789c\u9f80', 'cheng': '\u6491\u57ce\u6a59\u6210\u5448\u4e58\u7a0b\u60e9\u6f84\u8bda\u627f\u901e\u9a8b\u79e4\u57d5\u5d4a\u5fb5\u6d48\u67a8\u67fd\u6a18\u665f\u584d\u77a0\u94d6\u88ce\u86cf\u9172', 'chi': '\u5403\u75f4\u6301\u5319\u6c60\u8fdf\u5f1b\u9a70\u803b\u9f7f\u4f88\u5c3a\u8d64\u7fc5\u65a5\u70bd\u50ba\u5880\u82aa\u830c\u640b\u53f1\u54e7\u557b\u55e4\u5f73\u996c\u6cb2\u5ab8\u6555\u80dd\u7719\u7735\u9e31\u761b\u892b\u86a9\u87ad\u7b1e\u7bea\u8c49\u8e05\u8e1f\u9b51', 'chong': '\u5145\u51b2\u866b\u5d07\u5ba0\u833a\u5fe1\u61a7\u94f3\u825f', 'chou': '\u62bd\u916c\u7574\u8e0c\u7a20\u6101\u7b79\u4ec7\u7ef8\u7785\u4e11\u4fe6\u5733\u5e31\u60c6\u6eb4\u59af\u7633\u96e0\u9c8b', 'chu': '\u81ed\u521d\u51fa\u6a71\u53a8\u8e87\u9504\u96cf\u6ec1\u9664\u695a\u7840\u50a8\u77d7\u6410\u89e6\u5904\u4e8d\u520d\u61b7\u7ecc\u6775\u696e\u6a17\u870d\u8e70\u9edc', 'chuan': '\u63e3\u5ddd\u7a7f\u693d\u4f20\u8239\u5598\u4e32\u63be\u821b\u60f4\u9044\u5ddb\u6c1a\u948f\u9569\u8221', 'chuang': '\u75ae\u7a97\u5e62\u5e8a\u95ef\u521b\u6006', 'chui': '\u5439\u708a\u6376\u9524\u5782\u9672\u68f0\u69cc', 'chun': '\u6625\u693f\u9187\u5507\u6df3\u7eaf\u8822\u4fc3\u83bc\u6c8c\u80ab\u6710\u9e51\u877d', 'chuo': '\u6233\u7ef0\u851f\u8fb6\u8f8d\u955e\u8e14\u9f8a', 'ci': '\u75b5\u8328\u78c1\u96cc\u8f9e\u6148\u74f7\u8bcd\u6b64\u523a\u8d50\u6b21\u8360\u5472\u5d6f\u9e5a\u8785\u7ccd\u8d91', 'cong': '\u806a\u8471\u56f1\u5306\u4ece\u4e1b\u506c\u82c1\u6dd9\u9aa2\u742e\u7481\u679e', 'cu': '\u51d1\u7c97\u918b\u7c07\u731d\u6b82\u8e59', 'cuan': '\u8e7f\u7be1\u7a9c\u6c46\u64ba\u6615\u7228', 'cui': '\u6467\u5d14\u50ac\u8106\u7601\u7cb9\u6dec\u7fe0\u8403\u60b4\u7480\u69b1\u96b9', 'cun': '\u6751\u5b58\u5bf8\u78cb\u5fd6\u76b4', 'cuo': '\u64ae\u6413\u63aa\u632b\u9519\u539d\u811e\u9509\u77ec\u75e4\u9e7e\u8e49\u8e9c', 'da': '\u642d\u8fbe\u7b54\u7629\u6253\u5927\u8037\u54d2\u55d2\u601b\u59b2\u75b8\u8921\u7b2a\u977c\u9791', 'dai': '\u5446\u6b79\u50a3\u6234\u5e26\u6b86\u4ee3\u8d37\u888b\u5f85\u902e\u6020\u57ed\u7519\u5454\u5cb1\u8fe8\u902f\u9a80\u7ed0\u73b3\u9edb', 'dan': '\u803d\u62c5\u4e39\u5355\u90f8\u63b8\u80c6\u65e6\u6c2e\u4f46\u60ee\u6de1\u8bde\u5f39\u86cb\u4ebb\u510b\u5369\u840f\u5556\u6fb9\u6a90\u6b9a\u8d55\u7708\u7605\u8043\u7baa', 'dang': '\u5f53\u6321\u515a\u8361\u6863\u8c20\u51fc\u83ea\u5b95\u7800\u94db\u88c6', 'dao': '\u5200\u6363\u8e48\u5012\u5c9b\u7977\u5bfc\u5230\u7a3b\u60bc\u9053\u76d7\u53e8\u5541\u5fc9\u6d2e\u6c18\u7118\u5fd1\u7e9b', 'de': '\u5fb7\u5f97\u7684\u951d', 'deng': '\u8e6c\u706f\u767b\u7b49\u77aa\u51f3\u9093\u5654\u5d9d\u6225\u78f4\u956b\u7c26', 'di': '\u5824\u4f4e\u6ef4\u8fea\u654c\u7b1b\u72c4\u6da4\u7fdf\u5ae1\u62b5\u5e95\u5730\u8482\u7b2c\u5e1d\u5f1f\u9012\u7f14\u6c10\u7c74\u8bcb\u8c1b\u90b8\u577b\u839c\u837b\u5600\u5a23\u67e2\u68e3\u89cc\u7825\u78b2\u7747\u955d\u7f9d\u9ab6', 'dian': '\u98a0\u6382\u6ec7\u7898\u70b9\u5178\u975b\u57ab\u7535\u4f43\u7538\u5e97\u60e6\u5960\u6dc0\u6bbf\u4e36\u963d\u576b\u57dd\u5dc5\u73b7\u765c\u766b\u7c1f\u8e2e', 'diao': '\u7889\u53fc\u96d5\u51cb\u5201\u6389\u540a\u9493\u8c03\u8f7a\u94de\u8729\u7c9c\u8c82', 'die': '\u8dcc\u7239\u789f\u8776\u8fed\u8c0d\u53e0\u4f5a\u57a4\u581e\u63f2\u558b\u6e2b\u8f76\u7252\u74de\u8936\u800b\u8e40\u9cbd\u9cce', 'ding': '\u4e01\u76ef\u53ee\u9489\u9876\u9f0e\u952d\u5b9a\u8ba2\u4e22\u4ec3\u5576\u738e\u815a\u7887\u753a\u94e4\u7594\u8035\u914a', 'dong': '\u4e1c\u51ac\u8463\u61c2\u52a8\u680b\u4f97\u606b\u51bb\u6d1e\u578c\u549a\u5cbd\u5cd2\u5902\u6c21\u80e8\u80f4\u7850\u9e2b', 'dou': '\u515c\u6296\u6597\u9661\u8c46\u9017\u75d8\u8538\u94ad\u7aa6\u7aac\u86aa\u7bfc\u9161', 'du': '\u90fd\u7763\u6bd2\u728a\u72ec\u8bfb\u5835\u7779\u8d4c\u675c\u9540\u809a\u5ea6\u6e21\u5992\u828f\u561f\u6e0e\u691f\u6a50\u724d\u8839\u7b03\u9ad1\u9ee9', 'duan': '\u7aef\u77ed\u953b\u6bb5\u65ad\u7f0e\u5f56\u6934\u7145\u7c16', 'dui': '\u5806\u5151\u961f\u5bf9\u603c\u619d\u7893', 'dun': '\u58a9\u5428\u8e72\u6566\u987f\u56e4\u949d\u76fe\u9041\u7096\u7818\u7905\u76f9\u9566\u8db8', 'duo': '\u6387\u54c6\u591a\u593a\u579b\u8eb2\u6735\u8dfa\u8235\u5241\u60f0\u5815\u5484\u54da\u7f0d\u67c1\u94ce\u88f0\u8e31', 'e': '\u86fe\u5ce8\u9e45\u4fc4\u989d\u8bb9\u5a25\u6076\u5384\u627c\u904f\u9102\u997f\u5669\u8c14\u57a9\u57ad\u82ca\u83aa\u843c\u5443\u6115\u5c59\u5a40\u8f6d\u66f7\u816d\u786a\u9507\u9537\u9e57\u989a\u9cc4', 'en': '\u6069\u84bd\u6441\u5514\u55ef', 'er': '\u800c\u513f\u8033\u5c14\u9975\u6d31\u4e8c\u8d30\u8fe9\u73e5\u94d2\u9e38\u9c95', 'fa': '\u53d1\u7f5a\u7b4f\u4f10\u4e4f\u9600\u6cd5\u73d0\u57a1\u781d', 'fan': '\u85e9\u5e06\u756a\u7ffb\u6a0a\u77fe\u9492\u7e41\u51e1\u70e6\u53cd\u8fd4\u8303\u8d29\u72af\u996d\u6cdb\u8629\u5e61\u72ad\u68b5\u6535\u71d4\u7548\u8e6f', 'fang': '\u574a\u82b3\u65b9\u80aa\u623f\u9632\u59a8\u4eff\u8bbf\u7eba\u653e\u531a\u90a1\u5f77\u94ab\u822b\u9c82', 'fei': '\u83f2\u975e\u5561\u98de\u80a5\u532a\u8bfd\u5420\u80ba\u5e9f\u6cb8\u8d39\u82be\u72d2\u60b1\u6ddd\u5983\u7ecb\u7eef\u69a7\u8153\u6590\u6249\u7953\u7829\u9544\u75f1\u871a\u7bda\u7fe1\u970f\u9cb1', 'fen': '\u82ac\u915a\u5429\u6c1b\u5206\u7eb7\u575f\u711a\u6c7e\u7c89\u594b\u4efd\u5fff\u6124\u7caa\u507e\u7035\u68fc\u610d\u9cbc\u9f22', 'feng': '\u4e30\u5c01\u67ab\u8702\u5cf0\u950b\u98ce\u75af\u70fd\u9022\u51af\u7f1d\u8bbd\u5949\u51e4\u4ff8\u9146\u8451\u6ca3\u781c', 'fu': '\u4f5b\u5426\u592b\u6577\u80a4\u5b75\u6276\u62c2\u8f90\u5e45\u6c1f\u7b26\u4f0f\u4fd8\u670d\u6d6e\u6daa\u798f\u88b1\u5f17\u752b\u629a\u8f85\u4fef\u91dc\u65a7\u812f\u8151\u5e9c\u8150\u8d74\u526f\u8986\u8d4b\u590d\u5085\u4ed8\u961c\u7236\u8179\u8d1f\u5bcc\u8ba3\u9644\u5987\u7f1a\u5490\u5310\u51eb\u90db\u8299\u82fb\u832f\u83a9\u83d4\u544b\u5e5e\u6ecf\u8274\u5b5a\u9a78\u7ec2\u6874\u8d59\u9efb\u9efc\u7f58\u7a03\u99a5\u864d\u86a8\u8709\u8760\u876e\u9eb8\u8dba\u8dd7\u9cc6', 'ga': '\u5676\u560e\u86e4\u5c2c\u5477\u5c15\u5c1c\u65ee\u9486', 'gai': '\u8be5\u6539\u6982\u9499\u76d6\u6e89\u4e10\u9654\u5793\u6224\u8d45\u80f2', 'gan': '\u5e72\u7518\u6746\u67d1\u7aff\u809d\u8d76\u611f\u79c6\u6562\u8d63\u5769\u82f7\u5c34\u64c0\u6cd4\u6de6\u6f89\u7ec0\u6a44\u65f0\u77f8\u75b3\u9150', 'gang': '\u5188\u521a\u94a2\u7f38\u809b\u7eb2\u5c97\u6e2f\u6206\u7f61\u9883\u7b7b', 'gong': '\u6760\u5de5\u653b\u529f\u606d\u9f9a\u4f9b\u8eac\u516c\u5bab\u5f13\u5de9\u6c5e\u62f1\u8d21\u5171\u857b\u5efe\u54a3\u73d9\u80b1\u86a3\u86e9\u89e5', 'gao': '\u7bd9\u768b\u9ad8\u818f\u7f94\u7cd5\u641e\u9550\u7a3f\u544a\u777e\u8bf0\u90dc\u84bf\u85c1\u7f1f\u69d4\u69c1\u6772\u9506', 'ge': '\u54e5\u6b4c\u6401\u6208\u9e3d\u80f3\u7599\u5272\u9769\u845b\u683c\u9601\u9694\u94ec\u4e2a\u5404\u9b32\u4ee1\u54ff\u5865\u55dd\u7ea5\u643f\u8188\u784c\u94ea\u9549\u88bc\u988c\u867c\u8238\u9abc\u9ac2', 'gei': '\u7ed9', 'gen': '\u6839\u8ddf\u4e98\u831b\u54cf\u826e', 'geng': '\u8015\u66f4\u5e9a\u7fb9\u57c2\u803f\u6897\u54fd\u8d53\u9ca0', 'gou': '\u94a9\u52fe\u6c9f\u82df\u72d7\u57a2\u6784\u8d2d\u591f\u4f5d\u8bdf\u5ca3\u9058\u5abe\u7f11\u89cf\u5f40\u9e32\u7b31\u7bdd\u97b2', 'gu': '\u8f9c\u83c7\u5495\u7b8d\u4f30\u6cbd\u5b64\u59d1\u9f13\u53e4\u86ca\u9aa8\u8c37\u80a1\u6545\u987e\u56fa\u96c7\u560f\u8bc2\u83f0\u54cc\u5d2e\u6c69\u688f\u8f71\u726f\u727f\u80cd\u81cc\u6bc2\u77bd\u7f5f\u94b4\u9522\u74e0\u9e2a\u9e44\u75fc\u86c4\u9164\u89da\u9cb4\u9ab0\u9e58', 'gua': '\u522e\u74dc\u5250\u5be1\u6302\u8902\u5366\u8bd6\u5471\u681d\u9e39', 'guai': '\u4e56\u62d0\u602a\u54d9', 'guan': '\u68fa\u5173\u5b98\u51a0\u89c2\u7ba1\u9986\u7f50\u60ef\u704c\u8d2f\u500c\u839e\u63bc\u6dab\u76e5\u9e73\u9ccf', 'guang': '\u5149\u5e7f\u901b\u72b7\u6844\u80f1\u7592', 'gui': '\u7470\u89c4\u572d\u7845\u5f52\u9f9f\u95fa\u8f68\u9b3c\u8be1\u7678\u6842\u67dc\u8dea\u8d35\u523d\u5326\u523f\u5e8b\u5b84\u59ab\u6867\u7085\u6677\u7688\u7c0b\u9c91\u9cdc', 'gun': '\u8f8a\u6eda\u68cd\u4e28\u886e\u7ef2\u78d9\u9ca7', 'guo': '\u9505\u90ed\u56fd\u679c\u88f9\u8fc7\u9998\u8803\u57da\u63b4\u5459\u56d7\u5e3c\u5d1e\u7313\u6901\u8662\u951e\u8052\u872e\u873e\u8748', 'ha': '\u54c8', 'hai': '\u9ab8\u5b69\u6d77\u6c26\u4ea5\u5bb3\u9a87\u54b4\u55e8\u988f\u91a2', 'han': '\u9163\u61a8\u90af\u97e9\u542b\u6db5\u5bd2\u51fd\u558a\u7f55\u7ff0\u64bc\u634d\u65f1\u61be\u608d\u710a\u6c57\u6c49\u9097\u83e1\u6496\u961a\u701a\u6657\u7113\u9894\u86b6\u9f3e', 'hen': '\u592f\u75d5\u5f88\u72e0\u6068', 'hang': '\u676d\u822a\u6c86\u7ed7\u73e9\u6841', 'hao': '\u58d5\u568e\u8c6a\u6beb\u90dd\u597d\u8017\u53f7\u6d69\u8585\u55e5\u5686\u6fe0\u704f\u660a\u7693\u98a2\u869d', 'he': '\u5475\u559d\u8377\u83cf\u6838\u79be\u548c\u4f55\u5408\u76d2\u8c89\u9602\u6cb3\u6db8\u8d6b\u8910\u9e64\u8d3a\u8bc3\u52be\u58d1\u85ff\u55d1\u55ec\u9616\u76cd\u86b5\u7fee', 'hei': '\u563f\u9ed1', 'heng': '\u54fc\u4ea8\u6a2a\u8861\u6052\u8a07\u8605', 'hong': '\u8f70\u54c4\u70d8\u8679\u9e3f\u6d2a\u5b8f\u5f18\u7ea2\u9ec9\u8ba7\u836d\u85a8\u95f3\u6cd3', 'hou': '\u5589\u4faf\u7334\u543c\u539a\u5019\u540e\u5820\u5f8c\u9005\u760a\u7bcc\u7cc7\u9c8e\u9aba', 'hu': '\u547c\u4e4e\u5ffd\u745a\u58f6\u846b\u80e1\u8774\u72d0\u7cca\u6e56\u5f27\u864e\u552c\u62a4\u4e92\u6caa\u6237\u51b1\u553f\u56eb\u5cb5\u7322\u6019\u60da\u6d52\u6ef9\u7425\u69f2\u8f77\u89f3\u70c0\u7173\u623d\u6248\u795c\u9e55\u9e71\u7b0f\u9190\u659b', 'hua': '\u82b1\u54d7\u534e\u733e\u6ed1\u753b\u5212\u5316\u8bdd\u5290\u6d4d\u9a85\u6866\u94e7\u7a1e', 'huai': '\u69d0\u5f8a\u6000\u6dee\u574f\u8fd8\u8e1d', 'huan': '\u6b22\u73af\u6853\u7f13\u6362\u60a3\u5524\u75ea\u8c62\u7115\u6da3\u5ba6\u5e7b\u90c7\u5942\u57b8\u64d0\u571c\u6d39\u6d63\u6f36\u5bf0\u902d\u7f33\u953e\u9ca9\u9b1f', 'huang': '\u8352\u614c\u9ec4\u78fa\u8757\u7c27\u7687\u51f0\u60f6\u714c\u6643\u5e4c\u604d\u8c0e\u968d\u5fa8\u6e5f\u6f62\u9051\u749c\u8093\u7640\u87e5\u7bc1\u9cc7', 'hui': '\u7070\u6325\u8f89\u5fbd\u6062\u86d4\u56de\u6bc1\u6094\u6167\u5349\u60e0\u6666\u8d3f\u79fd\u4f1a\u70e9\u6c47\u8bb3\u8bf2\u7ed8\u8bd9\u8334\u835f\u8559\u54d5\u5599\u96b3\u6d04\u5f57\u7f0b\u73f2\u6656\u605a\u867a\u87ea\u9ebe', 'hun': '\u8364\u660f\u5a5a\u9b42\u6d51\u6df7\u8be8\u9984\u960d\u6eb7\u7f17', 'huo': '\u8c41\u6d3b\u4f19\u706b\u83b7\u6216\u60d1\u970d\u8d27\u7978\u6509\u56af\u5925\u94ac\u952a\u956c\u8020\u8816', 'ji': '\u51fb\u573e\u57fa\u673a\u7578\u7a3d\u79ef\u7b95\u808c\u9965\u8ff9\u6fc0\u8ba5\u9e21\u59ec\u7ee9\u7f09\u5409\u6781\u68d8\u8f91\u7c4d\u96c6\u53ca\u6025\u75be\u6c72\u5373\u5ac9\u7ea7\u6324\u51e0\u810a\u5df1\u84df\u6280\u5180\u5b63\u4f0e\u796d\u5242\u60b8\u6d4e\u5bc4\u5bc2\u8ba1\u8bb0\u65e2\u5fcc\u9645\u5993\u7ee7\u7eaa\u5c45\u4e0c\u4e69\u525e\u4f76\u4f74\u8114\u58bc\u82a8\u82b0\u8401\u84ba\u857a\u638e\u53fd\u54ad\u54dc\u5527\u5c8c\u5d74\u6d0e\u5f50\u5c50\u9aa5\u757f\u7391\u696b\u6b9b\u621f\u6222\u8d4d\u89ca\u7284\u9f51\u77f6\u7f81\u5d47\u7a37\u7620\u7635\u866e\u7b08\u7b04\u66a8\u8dfb\u8dfd\u9701\u9c9a\u9cab\u9afb\u9e82', 'jia': '\u5609\u67b7\u5939\u4f73\u5bb6\u52a0\u835a\u988a\u8d3e\u7532\u94be\u5047\u7a3c\u4ef7\u67b6\u9a7e\u5ac1\u4f3d\u90cf\u62ee\u5cac\u6d43\u8fe6\u73c8\u621b\u80db\u605d\u94d7\u9553\u75c2\u86f1\u7b33\u8888\u8dcf', 'jian': '\u6b7c\u76d1\u575a\u5c16\u7b3a\u95f4\u714e\u517c\u80a9\u8270\u5978\u7f04\u8327\u68c0\u67ec\u78b1\u7877\u62e3\u6361\u7b80\u4fed\u526a\u51cf\u8350\u69db\u9274\u8df5\u8d31\u89c1\u952e\u7bad\u4ef6\u5065\u8230\u5251\u996f\u6e10\u6e85\u6da7\u5efa\u50ed\u8c0f\u8c2b\u83c5\u84b9\u641b\u56dd\u6e54\u8e47\u8b07\u7f23\u67a7\u67d9\u6957\u620b\u622c\u726e\u728d\u6bfd\u8171\u7751\u950f\u9e63\u88e5\u7b15\u7bb4\u7fe6\u8dbc\u8e3a\u9ca3\u97af', 'jiang': '\u50f5\u59dc\u5c06\u6d46\u6c5f\u7586\u848b\u6868\u5956\u8bb2\u5320\u9171\u964d\u8333\u6d1a\u7edb\u7f30\u729f\u7913\u8029\u7ce8\u8c47', 'jiao': '\u8549\u6912\u7901\u7126\u80f6\u4ea4\u90ca\u6d47\u9a84\u5a07\u56bc\u6405\u94f0\u77eb\u4fa5\u811a\u72e1\u89d2\u997a\u7f34\u7ede\u527f\u6559\u9175\u8f7f\u8f83\u53eb\u4f7c\u50ec\u832d\u6322\u564d\u5ce4\u5fbc\u59e3\u7e9f\u656b\u768e\u9e6a\u86df\u91ae\u8de4\u9c9b', 'jie': '\u7a96\u63ed\u63a5\u7686\u79f8\u8857\u9636\u622a\u52ab\u8282\u6854\u6770\u6377\u776b\u7aed\u6d01\u7ed3\u89e3\u59d0\u6212\u85c9\u82a5\u754c\u501f\u4ecb\u75a5\u8beb\u5c4a\u5048\u8ba6\u8bd8\u5588\u55df\u736c\u5a55\u5b51\u6840\u7352\u78a3\u9534\u7596\u88b7\u9889\u86a7\u7faf\u9c92\u9ab1\u9aeb', 'jin': '\u5dfe\u7b4b\u65a4\u91d1\u4eca\u6d25\u895f\u7d27\u9526\u4ec5\u8c28\u8fdb\u9773\u664b\u7981\u8fd1\u70ec\u6d78\u5c3d\u537a\u8369\u5807\u5664\u9991\u5ed1\u5997\u7f19\u747e\u69ff\u8d46\u89d0\u9485\u9513\u887f\u77dc', 'jing': '\u52b2\u8346\u5162\u830e\u775b\u6676\u9cb8\u4eac\u60ca\u7cbe\u7cb3\u7ecf\u4e95\u8b66\u666f\u9888\u9759\u5883\u656c\u955c\u5f84\u75c9\u9756\u7adf\u7ade\u51c0\u522d\u5106\u9631\u83c1\u734d\u61ac\u6cfe\u8ff3\u5f2a\u5a67\u80bc\u80eb\u8148\u65cc', 'jiong': '\u70af\u7a98\u5182\u8fe5\u6243', 'jiu': '\u63ea\u7a76\u7ea0\u7396\u97ed\u4e45\u7078\u4e5d\u9152\u53a9\u6551\u65e7\u81fc\u8205\u548e\u5c31\u759a\u50e6\u557e\u9604\u67e9\u6855\u9e6b\u8d73\u9b0f', 'ju': '\u97a0\u62d8\u72d9\u75bd\u9a79\u83ca\u5c40\u5480\u77e9\u4e3e\u6cae\u805a\u62d2\u636e\u5de8\u5177\u8ddd\u8e1e\u952f\u4ff1\u53e5\u60e7\u70ac\u5267\u5028\u8bb5\u82e3\u82f4\u8392\u63ac\u907d\u5c66\u741a\u67b8\u6910\u6998\u6989\u6a58\u728b\u98d3\u949c\u9514\u7aad\u88fe\u8d84\u91b5\u8e3d\u9f83\u96ce\u97ab', 'juan': '\u6350\u9e43\u5a1f\u5026\u7737\u5377\u7ee2\u9104\u72f7\u6d93\u684a\u8832\u9529\u954c\u96bd', 'jue': '\u6485\u652b\u6289\u6398\u5014\u7235\u89c9\u51b3\u8bc0\u7edd\u53a5\u5282\u8c32\u77cd\u8568\u5658\u5d1b\u7357\u5b53\u73cf\u6877\u6a5b\u721d\u9562\u8e76\u89d6', 'jun': '\u5747\u83cc\u94a7\u519b\u541b\u5cfb\u4fca\u7ae3\u6d5a\u90e1\u9a8f\u6343\u72fb\u76b2\u7b60\u9e87', 'ka': '\u5580\u5496\u5361\u4f67\u5494\u80e9', 'ke': '\u54af\u5777\u82db\u67ef\u68f5\u78d5\u9897\u79d1\u58f3\u54b3\u53ef\u6e34\u514b\u523b\u5ba2\u8bfe\u5ca2\u606a\u6e98\u9a92\u7f02\u73c2\u8f72\u6c2a\u778c\u94b6\u75b4\u7aa0\u874c\u9ac1', 'kai': '\u5f00\u63e9\u6977\u51ef\u6168\u5240\u57b2\u8488\u5ffe\u607a\u94e0\u950e', 'kan': '\u520a\u582a\u52d8\u574e\u780d\u770b\u4f83\u51f5\u83b0\u83b6\u6221\u9f9b\u77b0', 'kang': '\u5eb7\u6177\u7ce0\u625b\u6297\u4ea2\u7095\u5751\u4f09\u95f6\u94aa', 'kao': '\u8003\u62f7\u70e4\u9760\u5c3b\u6832\u7292\u94d0', 'ken': '\u80af\u5543\u57a6\u6073\u57a0\u88c9\u9880', 'keng': '\u542d\u5fd0\u94ff', 'kong': '\u7a7a\u6050\u5b54\u63a7\u5025\u5d06\u7b9c', 'kou': '\u62a0\u53e3\u6263\u5bc7\u82a4\u853b\u53e9\u770d\u7b58', 'ku': '\u67af\u54ed\u7a9f\u82e6\u9177\u5e93\u88e4\u5233\u5800\u55be\u7ed4\u9ab7', 'kua': '\u5938\u57ae\u630e\u8de8\u80ef\u4f89', 'kuai': '\u5757\u7b77\u4fa9\u5feb\u84af\u90d0\u8489\u72ef\u810d', 'kuan': '\u5bbd\u6b3e\u9acb', 'kuang': '\u5321\u7b50\u72c2\u6846\u77ff\u7736\u65f7\u51b5\u8bd3\u8bf3\u909d\u5739\u593c\u54d0\u7ea9\u8d36', 'kui': '\u4e8f\u76d4\u5cbf\u7aa5\u8475\u594e\u9b41\u5080\u9988\u6127\u6e83\u9997\u532e\u5914\u9697\u63c6\u55b9\u559f\u609d\u6126\u9615\u9035\u668c\u777d\u8069\u8770\u7bd1\u81fe\u8dec', 'kun': '\u5764\u6606\u6346\u56f0\u6083\u9603\u7428\u951f\u918c\u9cb2\u9ae1', 'kuo': '\u62ec\u6269\u5ed3\u9614\u86de', 'la': '\u5783\u62c9\u5587\u8721\u814a\u8fa3\u5566\u524c\u647a\u908b\u65ef\u782c\u760c', 'lai': '\u83b1\u6765\u8d56\u5d03\u5f95\u6d9e\u6fd1\u8d49\u7750\u94fc\u765e\u7c41', 'lan': '\u84dd\u5a6a\u680f\u62e6\u7bee\u9611\u5170\u6f9c\u8c30\u63fd\u89c8\u61d2\u7f06\u70c2\u6ee5\u5549\u5c9a\u61d4\u6f24\u6984\u6593\u7f71\u9567\u8934', 'lang': '\u7405\u6994\u72fc\u5eca\u90ce\u6717\u6d6a\u83a8\u8497\u5577\u9606\u9512\u7a02\u8782', 'lao': '\u635e\u52b3\u7262\u8001\u4f6c\u59e5\u916a\u70d9\u6d9d\u5520\u5d02\u6833\u94d1\u94f9\u75e8\u91aa', 'le': '\u52d2\u4e50\u808b\u4ec2\u53fb\u561e\u6cd0\u9cd3', 'lei': '\u96f7\u956d\u857e\u78ca\u7d2f\u5121\u5792\u64c2\u7c7b\u6cea\u7fb8\u8bd4\u837d\u54a7\u6f2f\u5ad8\u7f27\u6a91\u8012\u9179', 'ling': '\u68f1\u51b7\u62ce\u73b2\u83f1\u96f6\u9f84\u94c3\u4f36\u7f9a\u51cc\u7075\u9675\u5cad\u9886\u53e6\u4ee4\u9143\u5844\u82d3\u5464\u56f9\u6ce0\u7eeb\u67c3\u68c2\u74f4\u8046\u86c9\u7fce\u9cae', 'leng': '\u695e\u6123', 'li': '\u5398\u68a8\u7281\u9ece\u7bf1\u72f8\u79bb\u6f13\u7406\u674e\u91cc\u9ca4\u793c\u8389\u8354\u540f\u6817\u4e3d\u5389\u52b1\u783e\u5386\u5229\u5088\u4f8b\u4fd0\u75e2\u7acb\u7c92\u6ca5\u96b6\u529b\u7483\u54e9\u4fea\u4fda\u90e6\u575c\u82c8\u8385\u84e0\u85dc\u6369\u5456\u5533\u55b1\u7301\u6ea7\u6fa7\u9026\u5a0c\u5ae0\u9a8a\u7f21\u73de\u67a5\u680e\u8f79\u623e\u783a\u8a48\u7f79\u9502\u9e42\u75a0\u75ac\u86ce\u870a\u8821\u7b20\u7be5\u7c9d\u91b4\u8dde\u96f3\u9ca1\u9ce2\u9ee7', 'lian': '\u4fe9\u8054\u83b2\u8fde\u9570\u5ec9\u601c\u6d9f\u5e18\u655b\u8138\u94fe\u604b\u70bc\u7ec3\u631b\u8539\u5941\u6f4b\u6fc2\u5a08\u740f\u695d\u6b93\u81c1\u81a6\u88e2\u880a\u9ca2', 'liang': '\u7cae\u51c9\u6881\u7cb1\u826f\u4e24\u8f86\u91cf\u667e\u4eae\u8c05\u589a\u690b\u8e09\u9753\u9b49', 'liao': '\u64a9\u804a\u50da\u7597\u71ce\u5be5\u8fbd\u6f66\u4e86\u6482\u9563\u5ed6\u6599\u84fc\u5c25\u5639\u7360\u5bee\u7f2d\u948c\u9e69\u8022', 'lie': '\u5217\u88c2\u70c8\u52a3\u730e\u51bd\u57d2\u6d0c\u8d94\u8e90\u9b23', 'lin': '\u7433\u6797\u78f7\u9716\u4e34\u90bb\u9cde\u6dcb\u51db\u8d41\u541d\u853a\u5d99\u5eea\u9074\u6aa9\u8f9a\u77b5\u7cbc\u8e8f\u9e9f', 'liu': '\u6e9c\u7409\u69b4\u786b\u998f\u7559\u5218\u7624\u6d41\u67f3\u516d\u62a1\u507b\u848c\u6cd6\u6d4f\u905b\u9a9d\u7efa\u65d2\u7198\u950d\u954f\u9e68\u938f', 'long': '\u9f99\u804b\u5499\u7b3c\u7abf\u9686\u5784\u62e2\u9647\u5f04\u5785\u830f\u6cf7\u73d1\u680a\u80e7\u783b\u7643', 'lou': '\u697c\u5a04\u6402\u7bd3\u6f0f\u964b\u55bd\u5d5d\u9542\u7618\u8027\u877c\u9ac5', 'lu': '\u82a6\u5362\u9885\u5e90\u7089\u63b3\u5364\u864f\u9c81\u9e93\u788c\u9732\u8def\u8d42\u9e7f\u6f5e\u7984\u5f55\u9646\u622e\u5786\u6445\u64b8\u565c\u6cf8\u6e0c\u6f09\u7490\u680c\u6a79\u8f73\u8f82\u8f98\u6c07\u80ea\u9565\u9e2c\u9e6d\u7c0f\u823b\u9c88', 'lv': '\u9a74\u5415\u94dd\u4fa3\u65c5\u5c65\u5c61\u7f15\u8651\u6c2f\u5f8b\u7387\u6ee4\u7eff\u634b\u95fe\u6988\u8182\u7a06\u891b', 'luan': '\u5ce6\u5b6a\u6ee6\u5375\u4e71\u683e\u9e3e\u92ae', 'lue': '\u63a0\u7565\u950a', 'lun': '\u8f6e\u4f26\u4ed1\u6ca6\u7eb6\u8bba\u56f5', 'luo': '\u841d\u87ba\u7f57\u903b\u9523\u7ba9\u9aa1\u88f8\u843d\u6d1b\u9a86\u7edc\u502e\u8366\u645e\u7321\u6cfa\u6924\u8136\u9559\u7630\u96d2', 'ma': '\u5988\u9ebb\u739b\u7801\u8682\u9a6c\u9a82\u561b\u5417\u551b\u72b8\u5b37\u6769\u9ebd', 'mai': '\u57cb\u4e70\u9ea6\u5356\u8fc8\u8109\u52a2\u836c\u54aa\u973e', 'man': '\u7792\u9992\u86ee\u6ee1\u8513\u66fc\u6162\u6f2b\u8c29\u5881\u5e54\u7f26\u71b3\u9558\u989f\u87a8\u9cd7\u9794', 'mang': '\u8292\u832b\u76f2\u5fd9\u83bd\u9099\u6f2d\u6726\u786d\u87d2', 'meng': '\u6c13\u840c\u8499\u6aac\u76df\u9530\u731b\u68a6\u5b5f\u52d0\u750d\u77a2\u61f5\u791e\u867b\u8722\u8813\u824b\u8268\u9efe', 'miao': '\u732b\u82d7\u63cf\u7784\u85d0\u79d2\u6e3a\u5e99\u5999\u55b5\u9088\u7f08\u7f2a\u676a\u6dfc\u7707\u9e4b\u8731', 'mao': '\u8305\u951a\u6bdb\u77db\u94c6\u536f\u8302\u5192\u5e3d\u8c8c\u8d38\u4f94\u88a4\u52d6\u8306\u5cc1\u7441\u6634\u7266\u8004\u65c4\u61cb\u7780\u86d1\u8765\u87ca\u9ae6', 'me': '\u4e48', 'mei': '\u73ab\u679a\u6885\u9176\u9709\u7164\u6ca1\u7709\u5a92\u9541\u6bcf\u7f8e\u6627\u5bd0\u59b9\u5a9a\u5776\u8393\u5d4b\u7338\u6d7c\u6e44\u6963\u9545\u9e5b\u8882\u9b45', 'men': '\u95e8\u95f7\u4eec\u626a\u739f\u7116\u61d1\u9494', 'mi': '\u772f\u919a\u9761\u7cdc\u8ff7\u8c1c\u5f25\u7c73\u79d8\u89c5\u6ccc\u871c\u5bc6\u5e42\u8288\u5196\u8c27\u863c\u5627\u7315\u736f\u6c68\u5b93\u5f2d\u8112\u6549\u7cf8\u7e3b\u9e8b', 'mian': '\u68c9\u7720\u7ef5\u5195\u514d\u52c9\u5a29\u7f05\u9762\u6c94\u6e4e\u817c\u7704', 'mie': '\u8511\u706d\u54a9\u881b\u7bfe', 'min': '\u6c11\u62bf\u76bf\u654f\u60af\u95fd\u82e0\u5cb7\u95f5\u6cef\u73c9', 'ming': '\u660e\u879f\u9e23\u94ed\u540d\u547d\u51a5\u8317\u6e9f\u669d\u7791\u9169', 'miu': '\u8c2c', 'mo': '\u6478\u6479\u8611\u6a21\u819c\u78e8\u6469\u9b54\u62b9\u672b\u83ab\u58a8\u9ed8\u6cab\u6f20\u5bde\u964c\u8c1f\u8309\u84e6\u998d\u5aeb\u9546\u79e3\u763c\u8031\u87c6\u8c8a\u8c98', 'mou': '\u8c0b\u725f\u67d0\u53b6\u54de\u5a7a\u7738\u936a', 'mu': '\u62c7\u7261\u4ea9\u59c6\u6bcd\u5893\u66ae\u5e55\u52df\u6155\u6728\u76ee\u7766\u7267\u7a46\u4eeb\u82dc\u5452\u6c90\u6bea\u94bc', 'na': '\u62ff\u54ea\u5450\u94a0\u90a3\u5a1c\u7eb3\u5185\u637a\u80ad\u954e\u8872\u7bac', 'nai': '\u6c16\u4e43\u5976\u8010\u5948\u9f10\u827f\u8418\u67f0', 'nan': '\u5357\u7537\u96be\u56ca\u5583\u56e1\u6960\u8169\u877b\u8d67', 'nao': '\u6320\u8111\u607c\u95f9\u5b6c\u57b4\u7331\u7459\u7847\u94d9\u86f2', 'ne': '\u6dd6\u5462\u8bb7', 'nei': '\u9981', 'nen': '\u5ae9\u80fd\u6798\u6041', 'ni': '\u59ae\u9713\u502a\u6ce5\u5c3c\u62df\u4f60\u533f\u817b\u9006\u6eba\u4f32\u576d\u730a\u6029\u6ee0\u6635\u65ce\u7962\u615d\u7768\u94cc\u9cb5', 'nian': '\u852b\u62c8\u5e74\u78be\u64b5\u637b\u5ff5\u5eff\u8f87\u9ecf\u9c87\u9cb6', 'niang': '\u5a18\u917f', 'niao': '\u9e1f\u5c3f\u8311\u5b32\u8132\u8885', 'nie': '\u634f\u8042\u5b7d\u556e\u954a\u954d\u6d85\u4e5c\u9667\u8616\u55eb\u8080\u989e\u81ec\u8e51', 'nin': '\u60a8\u67e0', 'ning': '\u72de\u51dd\u5b81\u62e7\u6cde\u4f5e\u84e5\u549b\u752f\u804d', 'niu': '\u725b\u626d\u94ae\u7ebd\u72c3\u5ff8\u599e\u86b4', 'nong': '\u8113\u6d53\u519c\u4fac', 'nu': '\u5974\u52aa\u6012\u5476\u5e11\u5f29\u80ec\u5b65\u9a7d', 'nv': '\u5973\u6067\u9495\u8844', 'nuan': '\u6696', 'nuenue': '\u8650', 'nue': '\u759f\u8c11', 'nuo': '\u632a\u61e6\u7cef\u8bfa\u50a9\u6426\u558f\u9518', 'ou': '\u54e6\u6b27\u9e25\u6bb4\u85d5\u5455\u5076\u6ca4\u6004\u74ef\u8026', 'pa': '\u556a\u8db4\u722c\u5e15\u6015\u7436\u8469\u7b62', 'pai': '\u62cd\u6392\u724c\u5f98\u6e43\u6d3e\u4ff3\u848e', 'pan': '\u6500\u6f58\u76d8\u78d0\u76fc\u7554\u5224\u53db\u723f\u6cee\u88a2\u897b\u87e0\u8e52', 'pang': '\u4e53\u5e9e\u65c1\u802a\u80d6\u6ec2\u9004', 'pao': '\u629b\u5486\u5228\u70ae\u888d\u8dd1\u6ce1\u530f\u72cd\u5e96\u812c\u75b1', 'pei': '\u5478\u80da\u57f9\u88f4\u8d54\u966a\u914d\u4f69\u6c9b\u638a\u8f94\u5e14\u6de0\u65c6\u952b\u9185\u9708', 'pen': '\u55b7\u76c6\u6e53', 'peng': '\u7830\u62a8\u70f9\u6f8e\u5f6d\u84ec\u68da\u787c\u7bf7\u81a8\u670b\u9e4f\u6367\u78b0\u576f\u580b\u562d\u6026\u87db', 'pi': '\u7812\u9739\u6279\u62ab\u5288\u7435\u6bd7\u5564\u813e\u75b2\u76ae\u5339\u75de\u50fb\u5c41\u8b6c\u4e15\u9674\u90b3\u90eb\u572e\u9f19\u64d7\u567c\u5e80\u5ab2\u7eb0\u6787\u7513\u7765\u7f74\u94cd\u75e6\u7656\u758b\u868d\u8c94', 'pian': '\u7bc7\u504f\u7247\u9a97\u8c1d\u9a88\u728f\u80fc\u890a\u7fe9\u8e41', 'piao': '\u98d8\u6f02\u74e2\u7968\u527d\u560c\u5ad6\u7f25\u6b8d\u779f\u87b5', 'pie': '\u6487\u77a5\u4e3f\u82e4\u6c15', 'pin': '\u62fc\u9891\u8d2b\u54c1\u8058\u62da\u59d8\u5ad4\u6980\u725d\u98a6', 'ping': '\u4e52\u576a\u82f9\u840d\u5e73\u51ed\u74f6\u8bc4\u5c4f\u4fdc\u5a09\u67b0\u9c86', 'po': '\u5761\u6cfc\u9887\u5a46\u7834\u9b44\u8feb\u7c95\u53f5\u9131\u6ea5\u73c0\u948b\u94b7\u76a4\u7b38', 'pou': '\u5256\u88d2\u8e23', 'pu': '\u6251\u94fa\u4ec6\u8386\u8461\u83e9\u84b2\u57d4\u6734\u5703\u666e\u6d66\u8c31\u66dd\u7011\u530d\u5657\u6fee\u749e\u6c06\u9564\u9568\u8e7c', 'qi': '\u671f\u6b3a\u6816\u621a\u59bb\u4e03\u51c4\u6f06\u67d2\u6c8f\u5176\u68cb\u5947\u6b67\u7566\u5d0e\u8110\u9f50\u65d7\u7948\u7941\u9a91\u8d77\u5c82\u4e5e\u4f01\u542f\u5951\u780c\u5668\u6c14\u8fc4\u5f03\u6c7d\u6ce3\u8bab\u4e9f\u4e93\u573b\u8291\u840b\u847a\u5601\u5c7a\u5c90\u6c54\u6dc7\u9a90\u7eee\u742a\u7426\u675e\u6864\u69ed\u6b39\u797a\u61a9\u789b\u86f4\u871e\u7da6\u7dae\u8dbf\u8e4a\u9ccd\u9e92', 'qia': '\u6390\u6070\u6d3d\u845c', 'qian': '\u7275\u6266\u948e\u94c5\u5343\u8fc1\u7b7e\u4edf\u8c26\u4e7e\u9ed4\u94b1\u94b3\u524d\u6f5c\u9063\u6d45\u8c34\u5811\u5d4c\u6b20\u6b49\u4f65\u9621\u828a\u82a1\u8368\u63ae\u5c8d\u60ad\u614a\u9a9e\u6434\u8930\u7f31\u6920\u80b7\u6106\u94a4\u8654\u7b9d', 'qiang': '\u67aa\u545b\u8154\u7f8c\u5899\u8537\u5f3a\u62a2\u5af1\u6a2f\u6217\u709d\u9516\u9535\u956a\u8941\u8723\u7f9f\u8deb\u8dc4', 'qiao': '\u6a47\u9539\u6572\u6084\u6865\u77a7\u4e54\u4fa8\u5de7\u9798\u64ac\u7fd8\u5ced\u4fcf\u7a8d\u5281\u8bee\u8c2f\u835e\u6100\u6194\u7f32\u6a35\u6bf3\u7857\u8df7\u9792', 'qie': '\u5207\u8304\u4e14\u602f\u7a83\u90c4\u553c\u60ec\u59be\u6308\u9532\u7ba7', 'qin': '\u94a6\u4fb5\u4eb2\u79e6\u7434\u52e4\u82b9\u64d2\u79bd\u5bdd\u6c81\u82a9\u84c1\u8572\u63ff\u5423\u55ea\u5659\u6eb1\u6a8e\u8793\u887e', 'qing': '\u9752\u8f7b\u6c22\u503e\u537f\u6e05\u64ce\u6674\u6c30\u60c5\u9877\u8bf7\u5e86\u5029\u82d8\u570a\u6aa0\u78ec\u873b\u7f44\u7b90\u8b26\u9cad\u9ee5', 'qiong': '\u743c\u7a77\u909b\u8315\u7a79\u7b47\u928e', 'qiu': '\u79cb\u4e18\u90b1\u7403\u6c42\u56da\u914b\u6cc5\u4fc5\u6c3d\u5def\u827d\u72b0\u6e6b\u9011\u9052\u6978\u8d47\u9e20\u866c\u86af\u8764\u88d8\u7cd7\u9cc5\u9f3d', 'qu': '\u8d8b\u533a\u86c6\u66f2\u8eaf\u5c48\u9a71\u6e20\u53d6\u5a36\u9f8b\u8da3\u53bb\u8bce\u52ac\u8556\u8627\u5c96\u8862\u9612\u74a9\u89d1\u6c0d\u795b\u78f2\u766f\u86d0\u883c\u9eb4\u77bf\u9ee2', 'quan': '\u5708\u98a7\u6743\u919b\u6cc9\u5168\u75ca\u62f3\u72ac\u5238\u529d\u8be0\u8343\u737e\u609b\u7efb\u8f81\u754e\u94e8\u8737\u7b4c\u9b08', 'que': '\u7f3a\u7094\u7638\u5374\u9e4a\u69b7\u786e\u96c0\u9619\u60ab', 'qun': '\u88d9\u7fa4\u9021', 'ran': '\u7136\u71c3\u5189\u67d3\u82d2\u9aef', 'rang': '\u74e4\u58e4\u6518\u56b7\u8ba9\u79b3\u7a70', 'rao': '\u9976\u6270\u7ed5\u835b\u5a06\u6861', 'ruo': '\u60f9\u82e5\u5f31', 're': '\u70ed\u504c', 'ren': '\u58ec\u4ec1\u4eba\u5fcd\u97e7\u4efb\u8ba4\u5203\u598a\u7eab\u4ede\u834f\u845a\u996a\u8f6b\u7a14\u887d', 'reng': '\u6254\u4ecd', 'ri': '\u65e5', 'rong': '\u620e\u8338\u84c9\u8363\u878d\u7194\u6eb6\u5bb9\u7ed2\u5197\u5d58\u72e8\u7f1b\u6995\u877e', 'rou': '\u63c9\u67d4\u8089\u7cc5\u8e42\u97a3', 'ru': '\u8339\u8815\u5112\u5b7a\u5982\u8fb1\u4e73\u6c5d\u5165\u8925\u84d0\u85b7\u5685\u6d33\u6ebd\u6fe1\u94f7\u8966\u98a5', 'ruan': '\u8f6f\u962e\u670a', 'rui': '\u854a\u745e\u9510\u82ae\u8564\u777f\u868b', 'run': '\u95f0\u6da6', 'sa': '\u6492\u6d12\u8428\u5345\u4ee8\u6332\u98d2', 'sai': '\u816e\u9cc3\u585e\u8d5b\u567b', 'san': '\u4e09\u53c1\u4f1e\u6563\u5f61\u9993\u6c35\u6bf5\u7cc1\u9730', 'sang': '\u6851\u55d3\u4e27\u6421\u78c9\u98a1', 'sao': '\u6414\u9a9a\u626b\u5ac2\u57fd\u81ca\u7619\u9ccb', 'se': '\u745f\u8272\u6da9\u556c\u94e9\u94ef\u7a51', 'sen': '\u68ee', 'seng': '\u50e7', 'sha': '\u838e\u7802\u6740\u5239\u6c99\u7eb1\u50bb\u5565\u715e\u810e\u6b43\u75e7\u88df\u970e\u9ca8', 'shai': '\u7b5b\u6652\u917e', 'shan': '\u73ca\u82eb\u6749\u5c71\u5220\u717d\u886b\u95ea\u9655\u64c5\u8d61\u81b3\u5584\u6c55\u6247\u7f2e\u5261\u8baa\u912f\u57cf\u829f\u6f78\u59d7\u9a9f\u81bb\u9490\u759d\u87ee\u8222\u8dda\u9cdd', 'shang': '\u5892\u4f24\u5546\u8d4f\u664c\u4e0a\u5c1a\u88f3\u57a7\u7ef1\u6b87\u71b5\u89de', 'shao': '\u68a2\u634e\u7a0d\u70e7\u828d\u52fa\u97f6\u5c11\u54e8\u90b5\u7ecd\u52ad\u82d5\u6f72\u86f8\u7b24\u7b72\u8244', 'she': '\u5962\u8d4a\u86c7\u820c\u820d\u8d66\u6444\u5c04\u6151\u6d89\u793e\u8bbe\u538d\u4f58\u731e\u7572\u9e9d', 'shen': '\u7837\u7533\u547b\u4f38\u8eab\u6df1\u5a20\u7ec5\u795e\u6c88\u5ba1\u5a76\u751a\u80be\u614e\u6e17\u8bdc\u8c02\u5432\u54c2\u6e16\u6939\u77e7\u8703', 'sheng': '\u58f0\u751f\u7525\u7272\u5347\u7ef3\u7701\u76db\u5269\u80dc\u5723\u4e1e\u6e11\u5ab5\u771a\u7b19', 'shi': '\u5e08\u5931\u72ee\u65bd\u6e7f\u8bd7\u5c38\u8671\u5341\u77f3\u62fe\u65f6\u4ec0\u98df\u8680\u5b9e\u8bc6\u53f2\u77e2\u4f7f\u5c4e\u9a76\u59cb\u5f0f\u793a\u58eb\u4e16\u67ff\u4e8b\u62ed\u8a93\u901d\u52bf\u662f\u55dc\u566c\u9002\u4ed5\u4f8d\u91ca\u9970\u6c0f\u5e02\u6043\u5ba4\u89c6\u8bd5\u8c25\u57d8\u83b3\u84cd\u5f11\u5511\u9963\u8f7c\u8006\u8d33\u70bb\u793b\u94c8\u94ca\u87ab\u8210\u7b6e\u8c55\u9ca5\u9cba', 'shou': '\u6536\u624b\u9996\u5b88\u5bff\u6388\u552e\u53d7\u7626\u517d\u624c\u72e9\u7ef6\u824f', 'shu': '\u852c\u67a2\u68b3\u6b8a\u6292\u8f93\u53d4\u8212\u6dd1\u758f\u4e66\u8d4e\u5b70\u719f\u85af\u6691\u66d9\u7f72\u8700\u9ecd\u9f20\u5c5e\u672f\u8ff0\u6811\u675f\u620d\u7ad6\u5885\u5eb6\u6570\u6f31\u6055\u500f\u587e\u83fd\u5fc4\u6cad\u6d91\u6f8d\u59dd\u7ebe\u6bf9\u8167\u6bb3\u956f\u79eb\u9e6c', 'shua': '\u5237\u800d\u5530\u6dae', 'shuai': '\u6454\u8870\u7529\u5e05\u87c0', 'shuan': '\u6813\u62f4\u95e9', 'shuang': '\u971c\u53cc\u723d\u5b40', 'shui': '\u8c01\u6c34\u7761\u7a0e', 'shun': '\u542e\u77ac\u987a\u821c\u6042', 'shuo': '\u8bf4\u7855\u6714\u70c1\u84b4\u6420\u55cd\u6fef\u5981\u69ca\u94c4', 'si': '\u65af\u6495\u5636\u601d\u79c1\u53f8\u4e1d\u6b7b\u8086\u5bfa\u55e3\u56db\u4f3a\u4f3c\u9972\u5df3\u53ae\u4fdf\u5155\u83e5\u549d\u6c5c\u6cd7\u6f8c\u59d2\u9a77\u7f0c\u7940\u7960\u9536\u9e36\u801c\u86f3\u7b25', 'song': '\u677e\u8038\u6002\u9882\u9001\u5b8b\u8bbc\u8bf5\u51c7\u83d8\u5d27\u5d69\u5fea\u609a\u6dde\u7ae6', 'sou': '\u641c\u8258\u64de\u55fd\u53df\u55d6\u55fe\u998a\u6eb2\u98d5\u778d\u953c\u878b', 'su': '\u82cf\u9165\u4fd7\u7d20\u901f\u7c9f\u50f3\u5851\u6eaf\u5bbf\u8bc9\u8083\u5919\u8c21\u850c\u55c9\u612b\u7c0c\u89eb\u7a23', 'suan': '\u9178\u849c\u7b97', 'sui': '\u867d\u968b\u968f\u7ee5\u9ad3\u788e\u5c81\u7a57\u9042\u96a7\u795f\u84d1\u51ab\u8c07\u6fc9\u9083\u71e7\u772d\u7762', 'sun': '\u5b59\u635f\u7b0b\u836a\u72f2\u98e7\u69ab\u8de3\u96bc', 'suo': '\u68ad\u5506\u7f29\u7410\u7d22\u9501\u6240\u5522\u55e6\u5a11\u686b\u7743\u7fa7', 'ta': '\u584c\u4ed6\u5b83\u5979\u5854\u736d\u631e\u8e4b\u8e0f\u95fc\u6ebb\u9062\u69bb\u6c93', 'tai': '\u80ce\u82d4\u62ac\u53f0\u6cf0\u915e\u592a\u6001\u6c70\u90b0\u85b9\u80bd\u70b1\u949b\u8dc6\u9c90', 'tan': '\u574d\u644a\u8d2a\u762b\u6ee9\u575b\u6a80\u75f0\u6f6d\u8c2d\u8c08\u5766\u6bef\u8892\u78b3\u63a2\u53f9\u70ad\u90ef\u8548\u6619\u94bd\u952c\u8983', 'tang': '\u6c64\u5858\u642a\u5802\u68e0\u819b\u5510\u7cd6\u50a5\u9967\u6e8f\u746d\u94f4\u9557\u8025\u8797\u87b3\u7fb0\u91a3', 'thang': '\u5018\u8eba\u6dcc', 'theng': '\u8d9f\u70eb', 'tao': '\u638f\u6d9b\u6ed4\u7ee6\u8404\u6843\u9003\u6dd8\u9676\u8ba8\u5957\u6311\u9f17\u5555\u97ec\u9955', 'te': '\u7279', 'teng': '\u85e4\u817e\u75bc\u8a8a\u6ed5', 'ti': '\u68af\u5254\u8e22\u9511\u63d0\u9898\u8e44\u557c\u4f53\u66ff\u568f\u60d5\u6d95\u5243\u5c49\u8351\u608c\u9016\u7ee8\u7f07\u9e48\u88fc\u918d', 'tian': '\u5929\u6dfb\u586b\u7530\u751c\u606c\u8214\u8146\u63ad\u5fdd\u9617\u6b84\u754b\u94bf\u86ba', 'tiao': '\u6761\u8fe2\u773a\u8df3\u4f7b\u7967\u94eb\u7a95\u9f86\u9ca6', 'tie': '\u8d34\u94c1\u5e16\u841c\u992e', 'ting': '\u5385\u542c\u70c3\u6c40\u5ef7\u505c\u4ead\u5ead\u633a\u8247\u839b\u8476\u5a77\u6883\u8713\u9706', 'tong': '\u901a\u6850\u916e\u77b3\u540c\u94dc\u5f64\u7ae5\u6876\u6345\u7b52\u7edf\u75db\u4f5f\u50ee\u4edd\u833c\u55f5\u6078\u6f7c\u783c', 'tou': '\u5077\u6295\u5934\u900f\u4ea0', 'tu': '\u51f8\u79c3\u7a81\u56fe\u5f92\u9014\u6d82\u5c60\u571f\u5410\u5154\u580d\u837c\u83df\u948d\u9174', 'tuan': '\u6e4d\u56e2\u7583', 'tui': '\u63a8\u9893\u817f\u8715\u892a\u9000\u5fd2\u717a', 'tun': '\u541e\u5c6f\u81c0\u9968\u66be\u8c5a\u7a80', 'tuo': '\u62d6\u6258\u8131\u9e35\u9640\u9a6e\u9a7c\u692d\u59a5\u62d3\u553e\u4e47\u4f57\u5768\u5eb9\u6cb1\u67dd\u7823\u7ba8\u8204\u8dce\u9f0d', 'wa': '\u6316\u54c7\u86d9\u6d3c\u5a03\u74e6\u889c\u4f64\u5a32\u817d', 'wai': '\u6b6a\u5916', 'wan': '\u8c4c\u5f2f\u6e7e\u73a9\u987d\u4e38\u70f7\u5b8c\u7897\u633d\u665a\u7696\u60cb\u5b9b\u5a49\u4e07\u8155\u525c\u8284\u82cb\u83c0\u7ea8\u7efe\u742c\u8118\u7579\u873f\u7ba2', 'wang': '\u6c6a\u738b\u4ea1\u6789\u7f51\u5f80\u65fa\u671b\u5fd8\u5984\u7f54\u5c22\u60d8\u8f8b\u9b4d', 'wei': '\u5a01\u5dcd\u5fae\u5371\u97e6\u8fdd\u6845\u56f4\u552f\u60df\u4e3a\u6f4d\u7ef4\u82c7\u840e\u59d4\u4f1f\u4f2a\u5c3e\u7eac\u672a\u851a\u5473\u754f\u80c3\u5582\u9b4f\u4f4d\u6e2d\u8c13\u5c09\u6170\u536b\u502d\u504e\u8bff\u9688\u8473\u8587\u5e0f\u5e37\u5d34\u5d6c\u7325\u732c\u95f1\u6ca9\u6d27\u6da0\u9036\u5a13\u73ae\u97ea\u8ece\u709c\u7168\u71a8\u75ff\u8249\u9c94', 'wen': '\u761f\u6e29\u868a\u6587\u95fb\u7eb9\u543b\u7a33\u7d0a\u95ee\u520e\u6120\u960c\u6c76\u74ba\u97eb\u6b81\u96ef', 'weng': '\u55e1\u7fc1\u74ee\u84ca\u8579', 'wo': '\u631d\u8717\u6da1\u7a9d\u6211\u65a1\u5367\u63e1\u6c83\u83b4\u5e44\u6e25\u674c\u809f\u9f8c', 'wu': '\u5deb\u545c\u94a8\u4e4c\u6c61\u8bec\u5c4b\u65e0\u829c\u68a7\u543e\u5434\u6bcb\u6b66\u4e94\u6342\u5348\u821e\u4f0d\u4fae\u575e\u620a\u96fe\u6664\u7269\u52ff\u52a1\u609f\u8bef\u5140\u4ef5\u9622\u90ac\u572c\u82b4\u5e91\u6003\u5fe4\u6d6f\u5be4\u8fd5\u59a9\u9a9b\u727e\u7110\u9e49\u9e5c\u8708\u92c8\u9f2f', 'xi': '\u6614\u7199\u6790\u897f\u7852\u77fd\u6670\u563b\u5438\u9521\u727a\u7a00\u606f\u5e0c\u6089\u819d\u5915\u60dc\u7184\u70ef\u6eaa\u6c50\u7280\u6a84\u88ad\u5e2d\u4e60\u5ab3\u559c\u94e3\u6d17\u7cfb\u9699\u620f\u7ec6\u50d6\u516e\u96b0\u90d7\u831c\u8478\u84f0\u595a\u550f\u5f99\u9969\u960b\u6d60\u6dc5\u5c63\u5b09\u73ba\u6a28\u66e6\u89cb\u6b37\u71b9\u798a\u79a7\u94b8\u7699\u7a78\u8725\u87cb\u823e\u7fb2\u7c9e\u7fd5\u91af\u9f37', 'xia': '\u778e\u867e\u5323\u971e\u8f96\u6687\u5ce1\u4fa0\u72ed\u4e0b\u53a6\u590f\u5413\u6380\u846d\u55c4\u72ce\u9050\u7455\u7856\u7615\u7f45\u9ee0', 'xian': '\u9528\u5148\u4ed9\u9c9c\u7ea4\u54b8\u8d24\u8854\u8237\u95f2\u6d8e\u5f26\u5acc\u663e\u9669\u73b0\u732e\u53bf\u817a\u9985\u7fa1\u5baa\u9677\u9650\u7ebf\u51bc\u85d3\u5c98\u7303\u66b9\u5a34\u6c19\u7946\u9e47\u75eb\u86ac\u7b45\u7c7c\u9170\u8df9', 'xiang': '\u76f8\u53a2\u9576\u9999\u7bb1\u8944\u6e58\u4e61\u7fd4\u7965\u8be6\u60f3\u54cd\u4eab\u9879\u5df7\u6a61\u50cf\u5411\u8c61\u8297\u8459\u9977\u5ea0\u9aa7\u7f03\u87d3\u9c9e\u98e8', 'xiao': '\u8427\u785d\u9704\u524a\u54ee\u56a3\u9500\u6d88\u5bb5\u6dc6\u6653\u5c0f\u5b5d\u6821\u8096\u5578\u7b11\u6548\u54d3\u54bb\u5d24\u6f47\u900d\u9a81\u7ee1\u67ad\u67b5\u7b71\u7bab\u9b48', 'xie': '\u6954\u4e9b\u6b47\u874e\u978b\u534f\u631f\u643a\u90aa\u659c\u80c1\u8c10\u5199\u68b0\u5378\u87f9\u61c8\u6cc4\u6cfb\u8c22\u5c51\u5055\u4eb5\u52f0\u71ee\u85a4\u64b7\u5ee8\u7023\u9082\u7ec1\u7f2c\u69ad\u698d\u6b59\u8e9e', 'xin': '\u85aa\u82af\u950c\u6b23\u8f9b\u65b0\u5ffb\u5fc3\u4fe1\u8845\u56df\u99a8\u8398\u6b46\u94fd\u946b', 'xing': '\u661f\u8165\u7329\u60fa\u5174\u5211\u578b\u5f62\u90a2\u884c\u9192\u5e78\u674f\u6027\u59d3\u9649\u8347\u8365\u64e4\u60bb\u784e', 'xiong': '\u5144\u51f6\u80f8\u5308\u6c79\u96c4\u718a\u828e', 'xiu': '\u4f11\u4fee\u7f9e\u673d\u55c5\u9508\u79c0\u8896\u7ee3\u83a0\u5cab\u9990\u5ea5\u9e3a\u8c85\u9af9', 'xu': '\u589f\u620c\u9700\u865a\u5618\u987b\u5f90\u8bb8\u84c4\u9157\u53d9\u65ed\u5e8f\u755c\u6064\u7d6e\u5a7f\u7eea\u7eed\u8bb4\u8be9\u5729\u84ff\u6035\u6d2b\u6e86\u987c\u6829\u7166\u7809\u76f1\u80e5\u7cc8\u9191', 'xuan': '\u8f69\u55a7\u5ba3\u60ac\u65cb\u7384\u9009\u7663\u7729\u7eda\u5107\u8c16\u8431\u63ce\u9994\u6ceb\u6d35\u6e32\u6f29\u7487\u6966\u6684\u70ab\u714a\u78b9\u94c9\u955f\u75c3', 'xue': '\u9774\u859b\u5b66\u7a74\u96ea\u8840\u5671\u6cf6\u9cd5', 'xun': '\u52cb\u718f\u5faa\u65ec\u8be2\u5bfb\u9a6f\u5de1\u6b89\u6c5b\u8bad\u8baf\u900a\u8fc5\u5dfd\u57d9\u8340\u85b0\u5ccb\u5f87\u6d54\u66db\u7aa8\u91ba\u9c9f', 'ya': '\u538b\u62bc\u9e26\u9e2d\u5440\u4e2b\u82bd\u7259\u869c\u5d16\u8859\u6daf\u96c5\u54d1\u4e9a\u8bb6\u4f22\u63e0\u5416\u5c88\u8fd3\u5a05\u740a\u6860\u6c29\u7811\u775a\u75d6', 'yan': '\u7109\u54bd\u9609\u70df\u6df9\u76d0\u4e25\u7814\u8712\u5ca9\u5ef6\u8a00\u989c\u960e\u708e\u6cbf\u5944\u63a9\u773c\u884d\u6f14\u8273\u5830\u71d5\u538c\u781a\u96c1\u5501\u5f66\u7130\u5bb4\u8c1a\u9a8c\u53a3\u9765\u8d5d\u4fe8\u5043\u5156\u8ba0\u8c33\u90fe\u9122\u82ab\u83f8\u5d26\u6079\u95eb\u960f\u6d07\u6e6e\u6edf\u598d\u5ae3\u7430\u664f\u80ed\u814c\u7131\u7f68\u7b75\u917d\u9b47\u990d\u9f39', 'yang': '\u6b83\u592e\u9e2f\u79e7\u6768\u626c\u4f6f\u75a1\u7f8a\u6d0b\u9633\u6c27\u4ef0\u75d2\u517b\u6837\u6f3e\u5f89\u600f\u6cf1\u7080\u70ca\u6059\u86d8\u9785', 'yao': '\u9080\u8170\u5996\u7476\u6447\u5c27\u9065\u7a91\u8c23\u59da\u54ac\u8200\u836f\u8981\u8000\u592d\u723b\u5406\u5d3e\u5fad\u7039\u5e7a\u73e7\u6773\u66dc\u80b4\u9e5e\u7a88\u7e47\u9cd0', 'ye': '\u6930\u564e\u8036\u7237\u91ce\u51b6\u4e5f\u9875\u6396\u4e1a\u53f6\u66f3\u814b\u591c\u6db2\u8c12\u90ba\u63f6\u9980\u6654\u70e8\u94d8', 'yi': '\u4e00\u58f9\u533b\u63d6\u94f1\u4f9d\u4f0a\u8863\u9890\u5937\u9057\u79fb\u4eea\u80f0\u7591\u6c82\u5b9c\u59e8\u5f5d\u6905\u8681\u501a\u5df2\u4e59\u77e3\u4ee5\u827a\u6291\u6613\u9091\u5c79\u4ebf\u5f79\u81c6\u9038\u8084\u75ab\u4ea6\u88d4\u610f\u6bc5\u5fc6\u4e49\u76ca\u6ea2\u8be3\u8bae\u8c0a\u8bd1\u5f02\u7ffc\u7fcc\u7ece\u5208\u5293\u4f7e\u8bd2\u572a\u572f\u57f8\u61ff\u82e1\u858f\u5f08\u5955\u6339\u5f0b\u5453\u54a6\u54bf\u566b\u5cc4\u5db7\u7317\u9974\u603f\u6021\u6092\u6f2a\u8fe4\u9a7f\u7f22\u6baa\u8d3b\u65d6\u71a0\u9487\u9552\u9571\u75cd\u7617\u7654\u7fca\u8864\u8734\u8223\u7fbf\u7ff3\u914f\u9edf', 'yin': '\u8335\u836b\u56e0\u6bb7\u97f3\u9634\u59fb\u541f\u94f6\u6deb\u5bc5\u996e\u5c39\u5f15\u9690\u5370\u80e4\u911e\u5819\u831a\u5591\u72fa\u5924\u6c24\u94df\u763e\u8693\u972a\u9f88', 'ying': '\u82f1\u6a31\u5a74\u9e70\u5e94\u7f28\u83b9\u8424\u8425\u8367\u8747\u8fce\u8d62\u76c8\u5f71\u9896\u786c\u6620\u5b34\u90e2\u8314\u83ba\u8426\u6484\u5624\u81ba\u6ee2\u6f46\u701b\u745b\u748e\u6979\u9e66\u763f\u988d\u7f42', 'yo': '\u54df\u5537', 'yong': '\u62e5\u4f63\u81c3\u75c8\u5eb8\u96cd\u8e0a\u86f9\u548f\u6cf3\u6d8c\u6c38\u607f\u52c7\u7528\u4fd1\u58c5\u5889\u6175\u9095\u955b\u752c\u9cd9\u9954', 'you': '\u5e7d\u4f18\u60a0\u5fe7\u5c24\u7531\u90ae\u94c0\u72b9\u6cb9\u6e38\u9149\u6709\u53cb\u53f3\u4f51\u91c9\u8bf1\u53c8\u5e7c\u5363\u6538\u4f91\u83b8\u5466\u56ff\u5ba5\u67da\u7337\u7256\u94d5\u75a3\u8763\u9c7f\u9edd\u9f2c', 'yu': '\u8fc2\u6de4\u4e8e\u76c2\u6986\u865e\u611a\u8206\u4f59\u4fde\u903e\u9c7c\u6109\u6e1d\u6e14\u9685\u4e88\u5a31\u96e8\u4e0e\u5c7f\u79b9\u5b87\u8bed\u7fbd\u7389\u57df\u828b\u90c1\u5401\u9047\u55bb\u5cea\u5fa1\u6108\u6b32\u72f1\u80b2\u8a89\u6d74\u5bd3\u88d5\u9884\u8c6b\u9a6d\u79ba\u6bd3\u4f1b\u4fe3\u8c00\u8c15\u8438\u84e3\u63c4\u5581\u5704\u5709\u5d5b\u72f3\u996b\u5ebe\u9608\u59aa\u59a4\u7ea1\u745c\u6631\u89ce\u8174\u6b24\u65bc\u715c\u71e0\u807f\u94b0\u9e46\u7610\u7600\u7ab3\u8753\u7afd\u8201\u96e9\u9f89', 'yuan': '\u9e33\u6e0a\u51a4\u5143\u57a3\u8881\u539f\u63f4\u8f95\u56ed\u5458\u5706\u733f\u6e90\u7f18\u8fdc\u82d1\u613f\u6028\u9662\u586c\u6c85\u5a9b\u7457\u6a7c\u7230\u7722\u9e22\u8788\u9f0b', 'yue': '\u66f0\u7ea6\u8d8a\u8dc3\u94a5\u5cb3\u7ca4\u6708\u60a6\u9605\u9fa0\u6a3e\u5216\u94ba', 'yun': '\u8018\u4e91\u90e7\u5300\u9668\u5141\u8fd0\u8574\u915d\u6655\u97f5\u5b55\u90d3\u82b8\u72c1\u607d\u7ead\u6b92\u6600\u6c32', 'za': '\u531d\u7838\u6742\u62f6\u5482', 'zai': '\u683d\u54c9\u707e\u5bb0\u8f7d\u518d\u5728\u54b1\u5d3d\u753e', 'zan': '\u6512\u6682\u8d5e\u74d2\u661d\u7c2a\u7ccc\u8db1\u933e', 'zang': '\u8d43\u810f\u846c\u5958\u6215\u81e7', 'zao': '\u906d\u7cdf\u51ff\u85fb\u67a3\u65e9\u6fa1\u86a4\u8e81\u566a\u9020\u7682\u7076\u71e5\u5523\u7f2b', 'ze': '\u8d23\u62e9\u5219\u6cfd\u4ec4\u8d5c\u5567\u8fee\u6603\u7b2e\u7ba6\u8234', 'zei': '\u8d3c', 'zen': '\u600e\u8c2e', 'zeng': '\u589e\u618e\u66fe\u8d60\u7f2f\u7511\u7f7e\u9503', 'zha': '\u624e\u55b3\u6e23\u672d\u8f67\u94e1\u95f8\u7728\u6805\u69a8\u548b\u4e4d\u70b8\u8bc8\u63f8\u5412\u54a4\u54f3\u600d\u781f\u75c4\u86b1\u9f44', 'zhai': '\u6458\u658b\u5b85\u7a84\u503a\u5be8\u7826', 'zhan': '\u77bb\u6be1\u8a79\u7c98\u6cbe\u76cf\u65a9\u8f97\u5d2d\u5c55\u8638\u6808\u5360\u6218\u7ad9\u6e5b\u7efd\u8c35\u640c\u65c3', 'zhang': '\u6a1f\u7ae0\u5f70\u6f33\u5f20\u638c\u6da8\u6756\u4e08\u5e10\u8d26\u4ed7\u80c0\u7634\u969c\u4ec9\u9123\u5e5b\u5d82\u7350\u5adc\u748b\u87d1', 'zhao': '\u62db\u662d\u627e\u6cbc\u8d75\u7167\u7f69\u5146\u8087\u53ec\u722a\u8bcf\u68f9\u948a\u7b0a', 'zhe': '\u906e\u6298\u54f2\u86f0\u8f99\u8005\u9517\u8517\u8fd9\u6d59\u8c2a\u966c\u67d8\u8f84\u78d4\u9e67\u891a\u8707\u8d6d', 'zhen': '\u73cd\u659f\u771f\u7504\u7827\u81fb\u8d1e\u9488\u4fa6\u6795\u75b9\u8bca\u9707\u632f\u9547\u9635\u7f1c\u6862\u699b\u8f78\u8d48\u80d7\u6715\u796f\u755b\u9e29', 'zheng': '\u84b8\u6323\u7741\u5f81\u72f0\u4e89\u6014\u6574\u62ef\u6b63\u653f\u5e27\u75c7\u90d1\u8bc1\u8be4\u5ce5\u94b2\u94ee\u7b5d', 'zhi': '\u829d\u679d\u652f\u5431\u8718\u77e5\u80a2\u8102\u6c41\u4e4b\u7ec7\u804c\u76f4\u690d\u6b96\u6267\u503c\u4f84\u5740\u6307\u6b62\u8dbe\u53ea\u65e8\u7eb8\u5fd7\u631a\u63b7\u81f3\u81f4\u7f6e\u5e1c\u5cd9\u5236\u667a\u79e9\u7a1a\u8d28\u7099\u75d4\u6ede\u6cbb\u7a92\u536e\u965f\u90c5\u57f4\u82b7\u646d\u5e19\u5fee\u5f58\u54ab\u9a98\u6809\u67b3\u6800\u684e\u8f75\u8f7e\u6534\u8d3d\u81a3\u7949\u7957\u9ef9\u96c9\u9e37\u75e3\u86ed\u7d77\u916f\u8dd6\u8e2c\u8e2f\u8c78\u89ef', 'zhong': '\u4e2d\u76c5\u5fe0\u949f\u8877\u7ec8\u79cd\u80bf\u91cd\u4ef2\u4f17\u51a2\u953a\u87bd\u8202\u822f\u8e35', 'zhou': '\u821f\u5468\u5dde\u6d32\u8bcc\u7ca5\u8f74\u8098\u5e1a\u5492\u76b1\u5b99\u663c\u9aa4\u5544\u7740\u501c\u8bf9\u836e\u9b3b\u7ea3\u80c4\u78a1\u7c40\u8233\u914e\u9cb7', 'zhu': '\u73e0\u682a\u86db\u6731\u732a\u8bf8\u8bdb\u9010\u7af9\u70db\u716e\u62c4\u77a9\u5631\u4e3b\u8457\u67f1\u52a9\u86c0\u8d2e\u94f8\u7b51\u4f4f\u6ce8\u795d\u9a7b\u4f2b\u4f8f\u90be\u82ce\u8331\u6d19\u6e1a\u6f74\u9a7a\u677c\u69e0\u6a65\u70b7\u94e2\u75b0\u7603\u86b0\u7afa\u7bb8\u7fe5\u8e85\u9e88', 'zhua': '\u6293', 'zhuai': '\u62fd', 'zhuan': '\u4e13\u7816\u8f6c\u64b0\u8d5a\u7bc6\u629f\u556d\u989b', 'zhuang': '\u6869\u5e84\u88c5\u5986\u649e\u58ee\u72b6\u4e2c', 'zhui': '\u690e\u9525\u8ffd\u8d58\u5760\u7f00\u8411\u9a93\u7f12', 'zhun': '\u8c06\u51c6', 'zhuo': '\u6349\u62d9\u5353\u684c\u7422\u8301\u914c\u707c\u6d4a\u502c\u8bfc\u5ef4\u855e\u64e2\u555c\u6d5e\u6dbf\u6753\u712f\u799a\u65ab', 'zi': '\u5179\u54a8\u8d44\u59ff\u6ecb\u6dc4\u5b5c\u7d2b\u4ed4\u7c7d\u6ed3\u5b50\u81ea\u6e0d\u5b57\u8c18\u5d6b\u59ca\u5b73\u7f01\u6893\u8f8e\u8d40\u6063\u7726\u9531\u79ed\u8014\u7b2b\u7ca2\u89dc\u8a3e\u9cbb\u9aed', 'zong': '\u9b03\u68d5\u8e2a\u5b97\u7efc\u603b\u7eb5\u8159\u7cbd', 'zou': '\u90b9\u8d70\u594f\u63cd\u9139\u9cb0', 'zu': '\u79df\u8db3\u5352\u65cf\u7956\u8bc5\u963b\u7ec4\u4fce\u83f9\u5550\u5f82\u9a75\u8e74', 'zuan': '\u94bb\u7e82\u6525\u7f35', 'zui': '\u5634\u9189\u6700\u7f6a', 'zun': '\u5c0a\u9075\u6499\u6a3d\u9cdf', 'zuo': '\u6628\u5de6\u4f50\u67de\u505a\u4f5c\u5750\u5ea7\u961d\u963c\u80d9\u795a\u9162', 'cou': '\u85ae\u6971\u8f8f\u8160', 'nang': '\u652e\u54dd\u56d4\u9995\u66e9', 'o': '\u5594', 'dia': '\u55f2', 'chuai': '\u562c\u81aa\u8e39', 'cen': '\u5c91\u6d94', 'diu': '\u94e5', 'nou': '\u8028', 'fou': '\u7f36', 'bia': '\u9adf' }; // CONCATENATED MODULE: ./src/base/utils/src/vue-py.js // import { pinyin } from './pyconst.js'; /* harmony default export */ var vue_py = ({ chineseToPinYin: function (l1) { var l2 = l1.length; var I1 = ''; var reg = new RegExp('[a-zA-Z0-9]'); var zmReg = new RegExp('[a-zA-Z]'); for (var i = 0; i < l2; i++) { var val = l1.substr(i, 1); if(reg.test(val)) { I1 += val; continue; } var name = this.arraySearch(val, pyconst_pinyin); if (reg.test(val)) { I1 += val; } else if (name !== false) { I1 += name; } } I1 = I1.replace(/ /g, '-'); while (I1.indexOf('--') > 0) { I1 = I1.replace('--', '-'); } return I1; }, arraySearch: function (l1, l2) { for (var name in pyconst_pinyin) { if (pyconst_pinyin[name].indexOf(l1) !== -1) { return this.ucfirst(name); } } return false; }, ucfirst: function (l1) { if (l1.length > 0) { var first = l1.substr(0, 1).toUpperCase(); var spare = l1.substr(1, l1.length); return first + spare; } } }); // EXTERNAL MODULE: ./node_modules/jr-qrcode/dist/jr-qrcode.js var jr_qrcode = __webpack_require__("4a37"); var jr_qrcode_default = /*#__PURE__*/__webpack_require__.n(jr_qrcode); // EXTERNAL MODULE: ./node_modules/jsbarcode/bin/JsBarcode.js var JsBarcode = __webpack_require__("62c5"); var JsBarcode_default = /*#__PURE__*/__webpack_require__.n(JsBarcode); // CONCATENATED MODULE: ./src/base/utils/src/string.js /** * showdoc * @catalog API/工具/Date * @title 字符串基础类 * @className ClientString * @modifier static * @method StringFunc * @demo */ const STR = { /** * showdoc * @catalog API/工具/String * @title 生成MD5 * @description 生成MD5 * @method md5 * @param str 必选 String 需生成的字符 * @return String * @number 60 */ md5: function (str) { return md5_default()(str); }, /** * showdoc * @catalog API/工具/String * @title 获取中文首字母拼音 * @description 获取中文首字母拼音 * @method getFirstPY * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getFirstPY: function (str) { if (!str) return ""; let SX = '', pinyin; str = str.toUpperCase(); if (str.constructor == Array) { pinyin = []; for (let i = 0; i < str.length; i++) { pinyin.push(vue_py.chineseToPinYin(str[i])); } } else pinyin = vue_py.chineseToPinYin(str); if (pinyin.constructor == Array) { let result = []; for (let j = 0; j < pinyin.length; j++) { let tempPY = pinyin[j], tempSX = ""; for (let i = 0; i < tempPY.length; i++) { let c = tempPY.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { tempSX += c; } } result.push(tempSX.toLowerCase()); } return result; } else { for (let i = 0; i < pinyin.length; i++) { let c = pinyin.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { SX += c; } } return SX.toLowerCase(); } }, /** * showdoc * @catalog API/工具/String * @title 下载地址 * @description 获取下载地址 * @url getDownloadUrl(url,fileName) * @method getDownloadUrl * @param url 必选 url * @param fileName 必选 文件名 * @return String * @number 60 */ getDownloadUrl(url, fileName) { return window.eap.utils.biz.getDownloadUrl(url, fileName);; }, /** * showdoc * @catalog API/工具/String * @title 获取中文全拼音 * @description 获取中文全拼音 * @url getPinyin(str) * @method getPinyin * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getPinyin: function (str) { let result = []; if (!str) return ""; if (str.constructor == Array) { for (let i = 0; i < str.length; i++) { result.push(vue_py.chineseToPinYin(str[i]).toLowerCase()); } return result; } else return vue_py.chineseToPinYin(str).toLowerCase(); }, /** * showdoc * @catalog API/工具/String * @title 获取指定范围随机数 * @description 获取中文全拼音 * @url randomInt(min, max) * @method randomInt * @param min 必选 Int 起止数字 * @param max 必选 Int 结束数字 * @return String * @number 60 */ randomInt: function (min, max) { var Range = max - min; var Rand = Math.random(); return (min + Math.round(Rand * Range)); }, /** * showdoc * @catalog API/工具/String * @title 获取功能/流程路径 * @description 获取功能/流程路径 * @url getBizUrl(url) * @method getBizUrl * @param url 必选 url * @return String * @number 60 */ getBizUrl(url) { if (window.eap) return window.eap.utils.biz.getUrl(url); return url }, /** * showdoc * @catalog API/工具/String * @title 获取url地址栏参数 * @description 获取功能/流程路径 * @method getUrlValue * @param name 必选 name * @param url 选填 url * @return String * @number 60 */ getUrlValue: function (name, url) { var str = url || window.location.href; if (str.indexOf("&" + name) != -1 || str.indexOf("?" + name) != -1) { var pos_start = "" if (str.indexOf("?" + name) > -1) pos_start = str.indexOf("?" + name) + name.length + 2; else pos_start = str.indexOf("&" + name) + name.length + 2; var pos_end = str.indexOf("&", pos_start); if (pos_end == -1) { return str.substring(pos_start); } else { return str.substring(pos_start, pos_end) } } else { return ""; } }, /** * showdoc * @catalog API/工具/String * @title 设置url地址栏参数 * @description 获取功能/流程路径 * @url getUrlValue(name, url) * @method setUrlValue * @param url 选填 url * @param name 选填 name * @param pValue 选填 pValue * @return String * @number 60 */ setUrlValue: function (url, pName, pValue) { if (url == null || url == '') { return ''; } var arrUrl = url.split('?'); if (arrUrl.length <= 1) { return url + '?' + pName + '=' + pValue; } var paramArr = arrUrl[1].split('&'); var isAdd = true; for (var i = 0; i < paramArr.length; i++) { var valueArr = paramArr[i].split('='); if (valueArr[0] == pName) { paramArr[i] = pName + '=' + pValue; isAdd = false; } } if (isAdd) { paramArr[paramArr.length] = pName + '=' + pValue; } return arrUrl[0] + '?' + paramArr.join('&'); }, /** * showdoc * @catalog API/工具/String * @title 获取指定长度的ID * @description 获取指定长度的ID * @url id(len) * @method id * @param len 必选 Int 长度 * @return String * @number 60 */ id: function (len) { return (function (len, radix) { var chars = '012abcdefghuwxyz34MNOPQRSTUV567ijklmnopqrst89ABCDEFGHIJKLWXYZ' .split(''); // var chars = Scp.String.newGUID().replace(/-/g,"").split(""); var uuid = [], i; radix = radix || chars.length; if (len) { // Compact form for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix]; } else { // rfc4122, version 4 form var r; // rfc4122 requires these characters uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-'; uuid[14] = '4'; // Fill in random data. At i==19 set the high bits of clock // sequence as // per rfc4122, sec. 4.1.5 for (i = 0; i < 36; i++) { if (!uuid[i]) { r = 0 | Math.random() * 16; uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r]; } } } return uuid.join(''); })(len || 6, 61); }, /** * showdoc * @catalog API/工具/String * @title 获取GUID * @description 获取GUID * @url guid() * @method guid * @return String * @number 60 */ guid: function () { var nowDateTime = new Date(); var myRandom1 = this.randomInt(1, 1000); var myRandom2 = this.randomInt(1, 1000); var myRandom3 = this.randomInt(1, 1000); var decodeStr = nowDateTime.valueOf() + "-" + nowDateTime.getMilliseconds() + "-" + myRandom1 + "-" + myRandom2 + "-" + myRandom3; var encodeStr = this.md5(decodeStr); var guid = encodeStr.substring(0, 8) + "-" + encodeStr.substring(8, 12) + "-" + encodeStr.substring(12, 16) + "-" + encodeStr.substring(16, 20) + "-" + encodeStr.substring(20, 32); return guid.toUpperCase(); }, /** * showdoc * @catalog API/工具/String * @title 字符格式化 * @description 字符格式化 * @url format() * @method format(str,$1,$2,$3......) * @param str 必选 String 需格式化的字符 * @param $1 必选 String 需替换的$1 * @param $2 必选 String 需替换的$2 * @param $3 必选 String 需替换的$3 * @return String * @number 60 */ format: function () { if (arguments.length == 0) return ''; var argArray = Array.prototype.slice.call(arguments); var result = argArray.shift(); if (argArray.length == 1 && typeof (argArray[0]) == "object") { var args = argArray[0]; for (var key in args) { if (args[key] != undefined) { let reg = new RegExp("({" + key + "})", "g"); result = result.replace(reg, args[key]); } } } else { for (var i = 0; i < argArray.length; i++) { if (argArray[i] != undefined) { let reg = new RegExp("({)" + i + "(})", "g"); result = result.replace(reg, argArray[i]); } } } return result; }, controlGuid(key) { return (key || '').replace(/[.|#|@|*|\?|\(|\)|<|>|\{|\|\^|\$}]/gi, '_') + '_' + STR.id(8); }, /** * showdoc * @catalog API/工具/String * @title 转换人民币大写 * @description 转换人民币大写 * @method upperMoney * @param numberValue 必选 numberValue * @return String * @number 60 */ upperMoney(numberValue) { var numberValue = new String(Math.round(Math.abs(numberValue) * 100)); // 数字金额 var chineseValue = ""; // 转换后的汉字金额 var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 var String2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; // 对应单位 var len = numberValue.length; // numberValue 的字符串长度 var Ch1; // 数字的汉语读法 var Ch2; // 数字位的汉字读法 var nZero = 0; // 用来计算连续的零值的个数 var String3; // 指定位置的数值 if (len > 15) { alert("超出计算范围"); return ""; } if (numberValue == 0) { chineseValue = "零元整"; return chineseValue; } String2 = String2.substr(String2.length - len, len); // 取出对应位数的STRING2的值 for (var i = 0; i < len; i++) { String3 = parseInt(numberValue.substr(i, 1), 10); // 取出需转换的某一位的值 if (i != (len - 3) && i != (len - 7) && i != (len - 11) && i != (len - 15)) { if (String3 == 0) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } } else { // 该位是万亿,亿,万,元位等关键位 if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 != 0 && nZero == 0) { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 == 0 && nZero >= 3) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else { Ch1 = ""; Ch2 = String2.substr(i, 1); nZero = nZero + 1; } if (i == (len - 11) || i == (len - 3)) { // 如果该位是亿位或元位,则必须写上 Ch2 = String2.substr(i, 1); } } chineseValue = chineseValue + Ch1 + Ch2; } if (String3 == 0) { // 最后一位(分)为0时,加上“整” chineseValue = chineseValue + "整"; } return chineseValue; }, /** * showdoc * @catalog API/工具/String * @title 分解附件 * @description 分解附件 * @url format() * @method splitAttach * @param val 必选 附件值 * @return String * @number 60 */ splitAttach(val) { var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } list.push({ name: arr[i].split(";")[0], size: arr[i].split(";")[1], path: arr[i].split(";")[2], url: `${path}?relativePath=${arr[i].split(";")[2]}`, }); } return list; }, /** * showdoc * @catalog API/工具/String * @title 附件图片地址 * @description 附件图片地址 * @url format() * @method splitAttachImgUrl * @param val 必选 附件值 * @return String * @number 60 */ splitAttachImgUrl(val) { if (!val) return; var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } if (arr[i].split(";").length > 2) { list = this.splitAttach(val) break; } else { if (arr[0].indexOf("http://") != -1) { list.push({ url: arr[0], }); } else { list.push({ url: `${path}?relativePath=${arr[0]}`, }); } } } return list[0].url; }, /** * showdoc * @catalog API/工具/String * @title 获取二维码 * @description 生成二维码Base64 URL * @url getQrcode(text, options) * @method getQrcode * @param text 必选,要生成二维码的字符,支持中文 string * @param options 配置对象 object * @return String * @number 60 */ getQrcode(text, options = {}) { if (!text) return; let imgBase64 = jr_qrcode_default.a.getQrBase64(text, options); return imgBase64 }, /** * showdoc * @catalog API/工具/String * @title 获取条形码 * @description 生成条形码Base64 URL * @url getBarcode(text, options) * @method getBarcode * @param text 必选,要生成条形码的字符 string * @param options 配置对象 object * @return String * @number 60 */ getBarcode(text, options = {}) { if (!text) return; var canvas = document.createElement("canvas") JsBarcode_default()(canvas, text, options) return canvas.toDataURL("image/png") } } /* harmony default export */ var string = (STR); // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js const GLOBAL_LANG_HIUI = { "hi_common_cancel": "取消", "hi_common_confirm": "确定", //03472 //03472 "hi_query_all": '全部', "hi_query_noempty": "不能为空!", "hi_query_sysscheme": "系统方案", "hi_query_reset": "重置", "hi_query_btnname": "查询", "hi_query_more": "更多", "hi_order_defaultall": "综合", "hi_timescheme_month": '本月', "hi_timescheme_yeartonow": "今年至今", "hi_timescheme_last6month": "最近六个月", "hi_timescheme_today": "本日", "hi_timescheme_yesterday": "昨日", "hi_timescheme_last7days": "近7天", "hi_timescheme_last28days": "近28天", "hi_timescheme_last84days": "近84天", "hi_timescheme_startdate": "开始日期", "hi_timescheme_enddate": "结束日期", "hi_timescheme_year": "本年度", "hi_timescheme_week": "本周", "hi_timescheme_quarter": "本季度", "hi_timescheme_split": "到", "hi_timescheme_halfyear": "近半年", "hi_timescheme_oneyear": "近一年", "hi_pushdata_linkSelect": "请选择需要打开的链接!", "hi_pushdata_hasAuth": "当前请求功能您没有权限访问!", "hi_pushdata_requestError": "请求异常", "hi_treequery_placeholder": "输入关键字进行过滤", "hi_numberrange_splitstr": "到", "hi_datalist_nodata": "暂无数据!", "hi_importexcel_uploadname": "Excel上传", "hi_importexcel_templatename": "模板下载", "hi_importexcel_noallowfile": "不支持上传{0}格式!", "hi_importexcel_limitfilesize": "限制上传文件大小为{0}M!", "hi_exportexcel_exportname": "Excel导出", "hi_exportexcel_buildfile": "文件生成中", "hi_exportexcel_isdownload": "是否取消文件下载?", "hi_dataRequest_request": "数据请求中", "hi_dataRequest_isCacel": "是否取消请求?", "hi_dataRequest_tip": "提示", "hi_dataRequest_tip": "提示", "hi_dataRequest_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_builddatacomplate": "数据生成完成!", "hi_expression_close": "关闭", "hi_expression_confirm": "关闭", "hi_expression_dialogname": "表达式", //03472 //01521 begin "hi_page_confirm": "确定", "hi_page_cancel": "取消", "hi_page_prompt": "提示", "hi_page_cannotBeNull": "不能为空", "hi_page_outOfRange": "输入的字符超出", "hi_page_dataPromptNotSubmitted": "检测到有未提交的数据,是否还原", "hi_page_dataNotModified": "数据未修改", "hi_page_initializing": "正在初始化..", //01521 end "hi_table_file": "个文件", "hi_table_index": "序号", "hi_table_operate": "操作", "hi_table_add": "新增", "hi_table_del": "删除", "hi_table_addsub": "新增子节点", "hi_table_emptyText": "暂无数据", "hi_table_confirmFilter": "筛选", "hi_table_resetFilter": "重置", "hi_table_clearFilter": "全部", "hi_table_sumText": "合计", "hi_table_lockCol": "锁定列", "hi_table_unlockCol": "解锁列", "hi_table_fillUp": "向上填充", "hi_table_fillDown": "向下填充", "hi_table_copy": "复制", "hi_table_copyRow": "复制整行", "hi_table_copyCol": "复制整列", "hi_table_copyCell": "复制单元格", "hi_table_download": "下载", "hi_table_downloadAll": "下载所有", "hi_table_downloadSelect": "选中下载", "hi_table_maxAddNode": "最多只能添加{0}级节点", "hi_table_yesterday": "昨天", "hi_table_today": "今天", "hi_table_aweek": "一周", "hi_table_paste": "粘贴", "hi_table_pasteRow": "指定位整行粘贴", "hi_table_pasteCol": "指定位整列粘贴", "hi_table_pasteMsg": "navigator.clipboard 仅支持通过 HTTPS 提供的页面", "hi_table_colSetting": "字段配置", "hi_table_colsConfig": "列表字段配置", // 12112 "hi_messagebox_title": "提示", "hi_messagebox_confirm": "确定", "hi_messagebox_cancel": "取消", "hi_toolbar_add": "添加", "hi_toolbar_del": "删除", "hi_toolbar_reset": "取消", "hi_toolbar_save": "保存", "hi_toolbar_submit": "提交", "hi_toolbar_callout": "调单", "hi_toolbar_nexttache": "流转", "hi_toolbar_backtache": "回退", "hi_toolbar_signout": "加签", "hi_toolbar_processSign": "处理加签", "hi_toolbar_turnOut": "转办", "hi_toolbar_terminate": "终止", "hi_toolbar_umpire": "反审", "hi_toolbar_monitor": "流程监控", "hi_toolbar_savesuccess": "数据保存成功", "hi_toolbar_processflowsuccess": "流程处理成功", "hi_toolbar_limitequals": "请选择相同的:", "hi_toolbar_limitnoequals": "请选择不同的:", "hi_toolbar_limitnoequals1": "相同记录已跳过!", "hi_toolbar_finished": "流程结束", "hi_toolbar_actors": "下个执行者", "hi_toolbar_loader": "数据处理中...", "hi_toolbar_agree": "同意", "hi_toolbar_disagree": "不同意", "hi_toolbar_selectOneError": "至少选择一个执行者!", "hi_toolbar_removeallhint": "确定要删除所有记录吗?", "hi_toolbar_cancelhint": "确定要取消吗?", "hi_toolbar_umpirehint": "确定要启用反审吗?", "hi_toolbar_savehint": "数据未保存,是否保存数据?", "hi_toolbar_circulationway": "返回方式", "hi_toolbar_circulationway_default": "重新流转", "hi_toolbar_circulationway_again": "原路返回", "hi_toolbar_performType": "原路返回", "hi_toolbar_performType1": "独占", "hi_toolbar_performType2": "会签", "hi_toolbar_performType3": "顺序", "hi_toolbar_signType_BeforSign": "前加签", "hi_toolbar_signType_AfterSign": "后加签", "hi_toolbar_approvecomments": "审批意见", "hi_toolbar_assigneeLabel": "额外办理人", "hi_toolbar_previousName": "上一节点", "hi_toolbar_processor": "处理人", "hi_toolbar_previousCount": "节点处理人:共", "hi_toolbar_previousCount2": "人审批", "hi_toolbar_processortime": "处理时间", "hi_toolbar_username": "用户名", "hi_toolbar_userid": "用户ID", "hi_toolbar_userorgname": "编制名", "hi_toolbar_bzid": "编制ID", "hi_toolbar_collapse": "收起", "hi_toolbar_expand": "展开", "hi_form_required": " 必填!", "hi_tree_search": "输入关键字进行过滤", "hi_tree_addPeerBtn": "添加同级", "hi_tree_add": "添加", "hi_tree_edit": "编辑", "hi_tree_del": "删除", "hi_tree_noNode": "节点不存在", "hi_tree_removehint": "请先删除子节点!", "hi_calendar_add": "新增日程", "hi_calendar_refresh": "刷新", "hi_calendar_month": "月", "hi_calendar_week": "周", "hi_calendar_day": "日", "hi_calendar_between": "到", "hi_calendar_prevMonth": '上个月', "hi_calendar_nextMonth": '下个月', "hi_calendar_today": '今天', "hi_calendar_time": '时间', "hi_select_placeholder": "请选择", "hi_selectGrid_queryname": "请输入关键词", "hi_dataSelect_hasselect": "当前记录已选!", "hi_dataSelect_selectOneError": "至少选择一条记录!", "hi_dataSelect_Loading": "数据加载中...", "hi_dataSelect_selectall": "全选", "hi_dataSelect_clear": "清空", "hi_dataSelect_selectAdd": "添加选中", "hi_dataSelect_selectclear": "删除选中", "hi_dataSelect_queryCdionsNull": "明细条件未传!", "hi_dataSelect_numberFieldNull": "未配置单号!", "hi_dataSelect_nosoucredataset": "来源数据集不存在", "hi_dataSelect_noin": "数据不在查找范围内!", "hi_upload_deleteTip": '按 delete 键可删除', "hi_upload_uploadName": "点击上传", "hi_upload_delete": '删除', "hi_upload_removeall": '清空', "hi_upload_preview": '查看图片', "hi_upload_continue": '继续上传', "hi_upload_limit": "当前限制选择{0}个文件,本次选择了{1}个文件,共选择了{2}个文件", "hi_upload_fileExtension": "后缀为", "hi_upload_limitcount": "数量不超过{0}个", "hi_upload_fileSize": "大小不超过{0}M", "hi_upload_hint": "只能上传[ {0} ]文件", "hi_upload_fileExtensionLimit": "不支持上传{0}格式!", "hi_upload_files": "个文件", "hi_imagecropper_dialogtitle": "切图", "hi_imagecropper_select": "选择封面", "hi_imagecropper_scalebig": "放大", "hi_imagecropper_scalesmall": "缩小", "hi_imagecropper_rotateLeft": "左旋转", "hi_imagecropper_rotateRight": "右旋转", "hi_imagecropper_upload": "上传封面", "hi_imagecropper_error":"图片类型要求", "hi_mapSelect_translate": "坐标转换失败!", "hi_page_pageInit": "没有找到初始化接口配置,请在环境配置中新增pageInitUrl节点配置", "hi_page_pagecontrolstate": "页面控件状态", "hi_monitor_approvalRecord": "审批记录", "hi_monitor_flow": "流程", "hi_monitor_displayname": "流程名称", "hi_monitor_ordernumber": "流程编号", "hi_monitor_createtime": "创建时间", "hi_monitor_finishtime": "完成时间", "hi_monitor_flowstate": "流程状态", "hi_monitor_finish": "已完成", "hi_monitor_taskname": "任务名称", "hi_monitor_noReceived": "未接收", "hi_monitor_timeConsuming": "耗时", "hi_monitor_approver": "审批人", "hi_monitor_processingStatus": "处理状态", "hi_monitor_processe": "需处理", "hi_monitor_postscript": "附言", "hi_monitor_flowchart": "流程图", "hi_monitor_gantt": "甘特图", "hi_monitor_processed": "已处理", "hi_monitor_back": "回退", "hi_monitor_sysAuto": "系统自动流转", "hi_monitor_terminate": "终止", "hi_monitor_cancel": "取消", "hi_monitor_transfer": "转办", "hi_monitor_taskWithdraw": "任务撤回", "hi_monitor_tsBeforSigning": "前加签中", "hi_monitor_tsAfterSigning": "后加签中", "hi_monitor_tsBeforSignDW": "前加签处理", "hi_monitor_tsAfterSignDW": "后加签处理", "hi_monitor_tsBeforSigned": "已前加签", "hi_monitor_tsAfterSigned": "已后加签", "hi_monitor_day": "天", "hi_monitor_hour": "小时", "hi_monitor_Min": "分", "hi_monitor_second": "秒", "hi_monitor_gantt_dept": "所属部门", "hi_monitor_gantt_role": "岗位职称", "hi_dbType_AuditPoint_0": "已审核", "hi_dbType_AuditPoint_1": "运行中", "hi_dbType_AuditPoint_2": "审批中", "hi_dbType_AuditPoint_99": "终止", "hi_dbType_boolean_yes": "是", "hi_dbType_boolean_no": "否" } /* harmony default export */ var zh_CN = (GLOBAL_LANG_HIUI); // CONCATENATED MODULE: ./src/locale/global.js const t = function (key) { let globalLang = (window.GLOBAL_LANG_HIUI || {}); let lang = Object.assign({}, zh_CN, globalLang); return lang[key] || key; }; // CONCATENATED MODULE: ./src/base/utils/src/dbType.js let _this = { dbString: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, type: "dbString", formType: { element: "el-input" } }, dbInt: { format: function (v, format) { v = parseInt(v); if (format == "eleAuditPoint") { let val = "" switch (v) { case 0: val = t("hi_dbType_AuditPoint_0") break; case 1: val = t("hi_dbType_AuditPoint_1") break; case 99: val = t("hi_dbType_AuditPoint_99") break; case 2: val = t("hi_dbType_AuditPoint_2") break; default: val = isNaN(v) ? "" : v } return val; } if (typeof (format) == "function") { return format.call(window, v); } if (isNaN(v)) { return ""; } v = v * 1; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } let val = _this.dbInt.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, // 数值型默认值不设置 defautlVal: 0, type: "dbInt", queryType: { element: "HiNumberRange" }, formType: { element: "hi-number", props: { precision: 0, "controls-position": "right" } } }, dbFloat: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbFloat.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbFloat", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbDouble: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbDouble.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbDouble", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbText: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (!format) return v; return v; }, type: "dbText", formType: { element: "el-input", props: { type: "textarea", rows: 5 } }, queryType: { element: "el-input", props: { } }, gridType: { element: "hi-textarea", props: { popup: true, rows: 5 } } }, dbBoolean: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v === "") { return ""; } if (typeof v != "boolean") { if (v * 1 == v) { v = parseInt(v); } } return (typeof v == "boolean" || typeof v == "number") ? (v ? t("hi_dbType_boolean_yes") : t("hi_dbType_boolean_no")) : v; }, formatView: function (v, format) { return _this.dbBoolean.format(v, format); }, parse: function (v) { if (v == "yes" || v == "是" || v == "1" || v == "true" || v == "y") return true; else return false; }, type: "dbBoolean", queryType: { element: "el-checkbox", props: { } }, formType: { element: "el-checkbox", props: { } } }, dbDatetime: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, /** * @property datetime.type * @description datetime类型 * @type {String} * @final * @static */ type: "dbDatetime", queryType: { element: "HiTimeScheme" }, formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbTimestamp: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, type: "dbTimestamp", formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbBasic: { type: "dbBasic" }, dbArray: { type: "dbArray" }, dbObject: { type: "dbObject" }, dbList: { type: "dbList" } } _this.dbDate = _this.dbDatetime; /* harmony default export */ var dbType = (_this); // CONCATENATED MODULE: ./src/base/utils/src/bom.js const bom = { getUrlParam(name) { let search = window.location.search; search = search.substring(1, search.length) let values = search.split("&"); let result = {}; for (let i = 0; i < values.length; i++) { const element = values[i]; let _val = element.split("="); result[_val[0]] = _val[1]; } if (name) return result[name]; return result; }, //打开链接 openUrl(url, paramters={}, method='get', target) { //创建form表单 let id = "formid" + (new Date()).valueOf(); if (!url.toLowerCase().startsWith("http") && window.eap) { url = window.eap.utils.biz.getUrl(url); } var formredwin = document.createElement("form"); formredwin.method = method || "get"; document.body.appendChild(formredwin); formredwin.target = target; formredwin.action = url for (var item in paramters) { if(url.indexOf(item+"=")>-1) continue; var inputObj = document.getElementById(`${id}_${item}`); if (inputObj) { inputObj.value = paramters[item]; } else { var opt = document.createElement("input"); opt.type = "hidden"; opt.name = item; opt.value = paramters[item]; formredwin.appendChild(opt); } } formredwin.submit(); formredwin.parentNode.removeChild(formredwin); }, mergeDefaultCfg(defaultCmp, controlCfg) { var result = null; var tempdefaultCmp = defaultCmp; for (var key in controlCfg) { if ((typeof controlCfg[key]) == "object") { controlCfg[key] = bom.recursionCfg(tempdefaultCmp, controlCfg[key]); } if (key == "crlName" && tempdefaultCmp[controlCfg["crlName"]] != undefined) { controlCfg = Object.assign({}, tempdefaultCmp[controlCfg["crlName"]], controlCfg); } } return controlCfg; }, recursionCfg(defaultCmp, recuCfg) { var tempdefaultCmp = defaultCmp; var result = null; for (var key in recuCfg) { if ((typeof recuCfg[key]) == "object") { recuCfg[key] = bom.recursionCfg(tempdefaultCmp, recuCfg[key]); } if (key == "crlName" && tempdefaultCmp[recuCfg["crlName"]] != undefined) { recuCfg = Object.assign({}, tempdefaultCmp[recuCfg["crlName"]], recuCfg); } } return recuCfg; } } /* harmony default export */ var src_bom = (bom); // CONCATENATED MODULE: ./src/base/utils/index.js let utils_date=date; let utils_number=number; let utils_string=string; let utils_dbType = dbType; let utils_bom = src_bom; /* harmony default export */ var utils = ({ date: utils_date,number: utils_number,string: utils_string,dbType: utils_dbType,bom: utils_bom }); let DateUtil=date; let NumberUtil=number; let StringUtil=string; let DbTypeUtil = dbType; let BomUtil = src_bom; // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/where.js const defOperate = "=" let where_WhereCondition = class WhereCondition { constructor(config) { config = config || {}; this.className = 'WhereCondition' this.enabled = null,// 新添加的 this.sign = null,// 操作符 this.name = null,// 属性 this.dataType = null,// 数据类型 this.tablefilter = null,// tablefilter this.value = null,// 值 this.enabled = true, this.setValue(config.name, config.value, config.dataType, config.sign, config.tablefilter); } setValue(property, value, dataType, operator, tablefilter) { this.sign = operator || "eq"; this.name = property || ""; this.dataType = dataType || types.string; this.value = value; this.enabled = true; this.tablefilter = tablefilter == undefined ? false : tablefilter; } getValue() { return { sign: this.sign, name: this.name, tablefilter: this.tablefilter, dataType: this.dataType, value: this.value, enabled: true }; } }; let where_Where = class Where { /** * showdoc * @title 查询条件 * @className Where * @method Where */ constructor(config, params = []) { config = config || {}; this.params = params this.className = 'Where' this.join = null this.items = null // _.extend(this, config); if (config.junction) config.join = config.junction; if (!config.join) config.join = "and"; if (config.criterionData == null) { if (!config.join) config.join = "and"; this.setWhereData(config.join, []); } else { var paramsDataType = typeof (config.criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(config.criterionData);//$.parseJSON(config.criterionData); break; case "object": objParamsData = config.criterionData; break; } this.setCriterionData(objParamsData); } } setValue(join, items) { this.setWhereData(join, items); } setWhereData(join, items) { this.join = join || "and"; this.items = items || []; } // setCriterionData(criterionData) { var paramsDataType = typeof (criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(criterionData); break; case "object": objParamsData = criterionData; break; } this.join = objParamsData.join || "and"; this.items = []; this.recursiveSetCriteria(this, objParamsData.items); } recursiveSetCriteria(where, items) { var me = this; if (items == null || items.length == 0) { where.items = []; return; } var subLen = items.length; for (var i = 0; i < subLen; i++) { var subItem = items[i]; if (subItem.join) { var whereItem = new Where({ join: subItem.join }); this.recursiveSetCriteria(whereItem, subItem.items); where.addWhere(whereItem); } else { if (subItem.sign) { var fieldName = subItem.name.replace("&[", "").replace("]", ""); fieldName = fieldName.replace("this.get('", "").replace( "')", ""); if (typeof subItem.value == "function") { var tempVal = me.filterValue(subItem.value) where.addCondition(fieldName, tempVal, subItem.dataType, subItem.sign, false, subItem.tablefilter); } else where.addCondition(fieldName, subItem.value, subItem.dataType, subItem.sign, false, subItem.tablefilter); } } } } // 过滤表达式 filterValue(valueExpress) { var me = this, val; val = valueExpress.call(this, ...this.params); return val; } /** * showdoc * @catalog API/工具/Where条件 * @title 添加where条件 * @description 添加where条件 * @method addWhere * @param where 必选 Where where条件 * @return void * @number 60 */ addWhere(where) { // if (where) { let isFind = false; for (let i = 0; i < this.items.length; i++) { let itemstr = JSON.stringify(this.items[i]) if (itemstr == JSON.stringify(where.toJSON())) { isFind = true; break; } } if (!isFind) this.items.push(where); } } /** * showdoc * @title 添加字段条件 * @description 添加字段条件 * @method addCondition * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param operator 必选 String 操作符(eq,noteq,in,notin,gt,lt,isnull,isnotnull,gteq,lteq,like,likeLeft,likeRight) * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ addCondition(property, value, dataType, operator, isCover, tablefilter) { if (value === null || value == undefined || value === "null") { operator = "isnull"; value = "null"; } if (operator === "isnull") value = "null"; //采用后端默认值 if (!operator && window.HIVUI_SETTING) operator = window.HIVUI_SETTING.queryOperate || 'eq'; if (!operator) operator = 'eq'; let value1, operateArray = ["in", "notIn"]; if (typeof value === "function") { value = value.call(); } if (isDate_default()(value)) { value = utils_date.format(value, 'yyyy-MM-dd hh:mm:ss') } if (operateArray.indexOf(operator) > -1 && value && (!(value instanceof Array))) { value1 = (value + "").split(","); } else { value1 = value; } if (isCover) for (var i = 0; i < this.items.length; i++) { if (property == this.items[i].name) { this.items[i].value = value1; this.items[i].tablefilter = tablefilter; this.items[i].dataType = dataType || types.string; this.items[i].sign = operator; return; } } var condition = new where_WhereCondition({ name: property, tablefilter: tablefilter, value: value1, sign: operator, dataType: dataType || types.string }); this.items.push(condition); } add(property, value, dataType, isCover, tablefilter) { this.addEqual(property, value, dataType, isCover, tablefilter) } _addEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "eq", isCover, tablefilter); } _addArray(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover, tablefilter); } _addNotIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } _addIsNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnull", isCover, tablefilter); } _addIsNotNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnotnull", isCover, tablefilter); } _addNotEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "noteq", isCover, tablefilter); } _addGreaterThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gt", isCover, tablefilter); } _addLessThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lt", isCover, tablefilter); } _addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gteq", isCover, tablefilter); } _addLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "like", isCover, tablefilter); } _addLessThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lteq", isCover, tablefilter); } _addLeftLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeLeft", isCover, tablefilter); } _addRightLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeRight", isCover, tablefilter); } /** * showdoc * @title 添加等于(=)操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method eq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ eq(property, value, dataType, isCover, tablefilter) { this._addEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加默认操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method def * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ def(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, null, isCover, tablefilter) } /** * showdoc * @title 添加in操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method in * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ in(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover , tablefilter); } /** * showdoc * @title 添加notin操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method notIn * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ notIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } /** * showdoc * @title 添加inRange 内操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method inRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ inRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "inRange", isCover , tablefilter); } /** * showdoc * @title 添加outRange 外操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method outRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ outRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "outRange", isCover, tablefilter); } /** * showdoc * @title 添加between操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method between * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ between(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "between", isCover, tablefilter); } /** * showdoc * @title 添加noteq不等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method noteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ noteq(property, value, dataType, isCover, tablefilter) { this._addNotEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gt(property, value, dataType, isCover, tablefilter) { this._addGreaterThan(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gteq(property, value, dataType, isCover, tablefilter) { this._addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加小于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lt(property, value, dataType, isCover, tablefilter) { this._addLessThan(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加小于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lteq(property, value, dataType, isCover, tablefilter) { this._addLessThanAndEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method like * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ like(property, value, dataType, vtype, isCover, tablefilter) { this._addLike(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加左like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method leftLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ leftLike(property, value, dataType, isCover, tablefilter) { this._addLeftLike(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加右like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method rightLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ rightLike(property, value, dataType, isCover, tablefilter) { this._addRightLike(property, value, dataType, isCover, tablefilter); } getItemByIndex(i) { return this.items[i]; } deleteItemByIndex(i) { this.items.splice(i, 1); } getData() { var len = this.items.length; if (len == 0) { return null; } var whereData = { join: this.join, items: [] }; for (var i = 0; i < len; i++) { var item = this.items[i]; this.recursiveWhereData(whereData, item); } return whereData; } recursiveWhereData(whereData, item) { if (item.items) { var subLen = item.items.length; if (subLen > 0) { var subWhereData = { join: item.join, items: [] }; for (var i = 0; i < subLen; i++) { var subItem = item.items[i]; this.recursiveWhereData(subWhereData, subItem); } whereData.items.push(subWhereData); } } else { var itemCondition = item.getValue(); whereData.items.push(itemCondition); } } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件JSON数据 * @description 获取where条件JSON数据 * @method toJSON() * @return json * @number 60 */ toJSON() { return this.getData(); } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件字符串数据 * @description 获取where条件字符串数据 * @url toStr() * @method toStr() * @return String * @number 60 */ toStr() { return JSON.stringify(this.getData()); } /** * showdoc * @catalog API/工具/Where条件 * @title 根据字段ID返回该字段条件对象 * @description 根据字段ID返回该字段条件对象 * @param key 必选 String 字段名 * @method getConditionByKey(key) * @return json * @number 60 */ getConditionByKey(key) { var len = this.items.length; for (var i = 0; i < len; i++) { var item = this.items[i]; if (item.name && item.name == key) { return item; } else { if (!item.items || item.items.length == 0) return null; let _item = this._recursionWhere1(item.items, key); if (_item != null) return _item; } } return null; } _recursionWhere1(items, key) { var i = 0, len = items.length; for (; i < len; i++) { let item = items[i] if (item.name && item.name == key) return item if (item.name) continue; if (!item.items || item.items.length == 0) return null; item.items.length > 0 && this._recursionWhere1(item.items, key); } } // 应用存储过程 setCustomWhere(join) { var where = new Where({ join: join || "and" }); var i = 0, len = this.items.length; for (; i < len; i++) { if (this.items[i].name) { where.addCondition(this.items[i].name, this.items[i].value, this.items[i].dataType, this.items[i].sign, this.items[i].isCover, this.items[i].tablefilter); } else this._recursionWhere(where, this.items[i].items); } this.join = where.join; this.items = where.items; } // 递归where 所有 _recursionWhere(where, items) { var i = 0, len = items.length; for (; i < len; i++) { if (items[i].name) where.addCondition(items[i].name, items[i].value, items[i].dataType, items[i].sign, items[i].isCover, items[i].tablefilter); else this._recursionWhere(where, items[i].items); } } isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (has_default()(this, pageIndexKey) && has_default()(this, pageSizeKey)) return true; else return false; } setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起止页 getPageIndex * @description 获取当前where起止页。 * @url getPageIndex() * @method getPageIndex() * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 getPageSize * @description 获取当前where每页显示多少条。 * @url getPageSize() * @method getPageSize() * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } where_Where.prototype.equal = where_Where.prototype.eq /* harmony default export */ var queryHelper_where = (where_Where); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/orders.js class Orders { /** * showdoc * @title 查询排序 * @className Orders * @method Orders */ constructor(config) { config = config || {}; this.orderData = []; if (config.orderData) { this.orderData = config.orderData; } } getOrderItemModel() { return { name: "", desc: "", type: "desc" }; } /** * showdoc * @title 添加降序条件 * @description 添加降序条件 * @method addDesc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addDesc(property, desc) { this.addOrder(property, "desc", desc); } /** * showdoc * @catalog API/工具/Orders排序 * @title 添加升序 * @description 添加升序条件 * @method addAsc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void */ addAsc(property, desc) { this.addOrder(property, "asc", desc); } /** * showdoc * @title 添加排序 * @description 添加排序 * @method addOrder * @param property 必选 String 字段名 * @param type 必选 String 排序类型 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addOrder(property, type, desc) { var orderItem = this.getOrderItemModel(); orderItem.name = property; orderItem.desc = desc; orderItem.type = type this.orderData.push(orderItem); } /** * showdoc * @title 获取order排序JSON数据 * @description 获取order排序JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { return this.orderData; } /** * showdoc * @title 获取order排序字符串数据 * @description 获取order排序字符串数据 * @method toStr * @return json * @number 60 */ toStr() { return JSON.stringify(this.orderData); } } // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/param.js class param_Param { /** * showdoc * @title 查询参数 * @className Param * @description 查询参数 * @method Param */ constructor(config) { config = config || {}; this.orders = null this.className = 'Params' this.paramKey = "queryParam" // _.extend(this, config); this.where = config.where || new queryHelper_where(); this.returnTotal = config.returnTotal; this.zcQuery = config.zcQuery; this.modelFilePath = config.modelFilePath || ""; this.orders = config.orders; this.slaveEntities = config.slaveEntities || []; if (config.initData) { this.setJsonParamsData(config.initData); } if (config.paramsData) { this.setJsonParamsData(config.paramsData); } if (config.whereData) { this.setJsonWhereData(config.whereData); } } createWhereByModel(values, model) { model = model || {} let where = new queryHelper_where(); for (let field in values) { let bizFiled = model.fields ? model.fields[field] : null; let val = values[field] if (val != null && val != "" && val != undefined) { if (bizFiled) { where[bizFiled.operate](field, val) } else { if (utils.isArray(val)) where.in(field, val) else where.def(field, val) } } } if (this.where) this.where.addConditions(where) else this.where = where; return where; } setJsonWhereData(whereData) { // 判断传入的值是否字符 if (!whereData) return; this.where = new queryHelper_where({ criterionData: whereData }); } setJsonParamsData(paramsData) { // 判断传入的值是否字符 if (!paramsData) return; var paramsDataType = typeof (paramsData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(paramsData); break; case "object": objParamsData = paramsData; break; } if (objParamsData.queryCdions) { this.where = new queryHelper_where({ criterionData: objParamsData.queryCdions }); } if (objParamsData.orders) { this.orders = new Orders({ orderData: objParamsData.orders }); } if (objParamsData.having) { this.having = new queryHelper_where({ criterionData: objParamsData.having.criterion }); } if (objParamsData.groupBy) { this.groupBy = objParamsData.groupBy } } /** * showdoc * @catalog API/工具/Param参数 * @title 设置分组 * @description 设置分组 * @method setGroup * @param groupFields 必选 Array 分组字段 * @return void * @number 60 */ setGroup(groupFields) { this.groupBy = groupFields; } /** * showdoc * @title 获取分组 * @description 获取分组 * @method getGroup * @return Array */ getGroup() { return this.groupBy; } /** * showdoc * @title 获取where条件 * @description 获取where条件 * @method getWhere * @return Where * @number 60 */ getWhere() { return this.where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置where条件 * @description 设置where条件 * @method setWhere * @param where 必选 where where条件 * @return void * @number 60 */ setWhere(where) { this.where = where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置Having条件 * @description 设置Having条件 * @method setHaving * @param where 必选 where where条件 * @return void * @number 60 */ setHaving(where) { this.having = where; } /** * showdoc * @title 获取Having条件 * @description 获取Having条件 * @method getHaving * @return void * @number 60 */ getHaving() { return this.having; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取排序条件 * @description 获取排序条件 * @method getOrders * @return void * @number 60 */ getOrders() { return this.orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置排序条件 * @description 设置排序条件 * @method setOrders * @param orders 必选 order对象 * @return void * @number 60 */ setOrders(orders) { this.orders = orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询JSON数据 * @description 获取查询JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { var params = {}; // params.having = {}; if (this.where) { var mycriterion = this.where.toJSON(); if (mycriterion) { params.queryCdions = this.where.toJSON(); } } /* * // if (this.having) { // var mycriterion = this.having.toJSON(); // * if (mycriterion) { // // params.having.criterion = * this.having.toJSON(); // } // } */ if (this.groupBy) { params.groupBy = this.groupBy; } if (this.orders) { params.orderBy = this.orders.toJSON(); } return params; } decodeStr(s) { return unescape(s.replace(/\\(u[0-9a-fA-F]{4})/gm, '%$1')); } setSlaveEntities(params){ this.slaveEntities = params; } toStringWithKey() { var json = {}, param = {}; // param[this.paramKey] = this.toJSON() let body = JSON.stringify(this.toJSON()); json[keys.body] = body; json[keys.pageIndex] = this[keys.pageIndex] || this.where[keys.pageIndex]; json[keys.pageSize] = this[keys.pageSize] || this.where[keys.pageSize]; json[keys.returnTotal] = this.returnTotal; json[keys.modelFilePath] = this.modelFilePath; json[keys.zcQuery] = this.zcQuery; if(this.slaveEntities.length>0) { var _slaveEntities = []; for(var i = 0;i<this.slaveEntities.length;i++) { _slaveEntities.push(this.slaveEntities[i].toStringWithKey()); } json[keys.slaveEntities] = JSON.stringify(_slaveEntities); } return json;// this.toJSON(); } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询字符串数据 * @description 获取查询字符串数据 * @method toStr * @return String * @number 60 */ toStr() { return JSON.stringify(this.toJSON()); } /** * showdoc * @title 是否有翻页条件 * @description 是否有翻页条件 * @method isPaging * @return boolean * @number 60 */ isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (_has(this, pageIndexKey) && _has(this, pageSizeKey)) return true; else return false; } /** * showdoc * @title 设置翻页 * @description 设置翻页 * @method setPage * @param pageIndex 必选 Int 起止页 * @param pageSize 必选 Int 每页显示多少条 * @return void * @number 60 */ setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起始页 * @description 获取当前where起始页 * @method getPageIndex * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 * @description 获取当前where每页显示多少条 * @method getPageSize * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } // EXTERNAL MODULE: ./node_modules/lodash/isArray.js var isArray = __webpack_require__("6747"); var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/index.js //行转列 let queryHelper_rowToCol = (data, rowField, colField, valField) => { let result = [], row = {}; if (data.length > 0) { let rowSign = row[rowField] = data[0][rowField]; data.forEach(element => { //标识不一样就创建行 if (rowSign != element[rowField]) { result.push(row); row = {}; rowSign = element[rowField] row[rowField] = rowSign; } row[element[colField]] = element[valField] }); result.push(row); } return result; } let query = (param, modelFile, funcPath, { request, url, method, pn, extParam, viewItemId, rowToCol,async,success,fail}) => { let data = { "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data = paramInstance.toStringWithKey() } data.modelFilePath = modelFile; data[keys.funcpath] = funcPath; data[keys.viewItemId] = viewItemId; //将来要移到url中 //data.funcPath = funcPath; if (extParam) { Object.assign(data, extParam); } let promise //let dataUrl = url + "/" + modelFile; let dataUrl = url; funcPath = funcPath || "" if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } promise = request({ url: dataUrl, method: method || 'post', async:async, data: data, success:success, fail:fail }) // promise.then(res => { // //行转列 // if (rowToCol && rowToCol.rowField) { // res.dataPack.row = rowToCol(res.dataPack.row) // } // }) return promise } let getExportParam = ({ request, url, csv }) => { let params = { csv } return request({ url, method: 'get', params }) } let exportData = (param, modelFile, funcPath, { request, url, method, pn, viewItemId, extParam }) => { let data = { // "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data[keys.body] = paramInstance.toJSON()//paramInstance.toStringWithKey() data[keys.pageIndex] = paramInstance.where[keys.pageIndex]; data[keys.pageSize] = paramInstance.where[keys.pageSize]; data[keys.viewItemId] = viewItemId; //delete data[keys.zcQuery] //delete data[keys.returnTotal] } data[keys.funcpath] = funcPath; data.modelFilePath = modelFile; // if (param.zcQuery) // data[keys.slaveExport] = param.zcQuery //将来要移到url中 //data.funcPath = funcPath; if (extParam) { if (extParam.sheetStyle) { data[keys.sheetStyle] = extParam.sheetStyle; delete extParam.sheetStyle } if (extParam[keys.slaveExport] !== undefined) { data[keys.slaveExport] = extParam[keys.slaveExport]; delete extParam[keys.slaveExport] } } if (data[keys.slaveExport] == undefined && param.zcQuery) data[keys.slaveExport] = param.zcQuery let promise //let dataUrl = url + "/" + modelFile; let dataUrl; funcPath = funcPath || "" dataUrl = url; if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } let psotData = {} if (data.title) { psotData.title = data.title; delete data.title; } psotData[keys.sheetDatas] = JSON.stringify([data]) psotData.__isIntercept = false; if (extParam) psotData = Object.assign(psotData, extParam); promise = request({ url: dataUrl, method: method || 'post', data: psotData }) return promise } /* harmony default export */ var queryHelper = ({ Param: param_Param, Where: queryHelper_where, types: types, Orders: Orders, query, exportData, rowToCol: queryHelper_rowToCol, getExportParam }); // EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js var cloneDeep = __webpack_require__("0644"); var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); // CONCATENATED MODULE: ./src/base/dataHelper/src/saveHelper/index.js const paramKey = { //subSetkeyVal:"$subSetkeyVal", root: '__body', version: "__version", data: 'data', funcPath: "__funcpath", modelFile: 'modelFilePath', funcFile: 'fpath', state: '$state', old: '$old', insertStateVal: 'rsInsert', updateStateVal: 'rsUpdate', removeStateVal: 'rsDelete', overrideStateVal: 'rsOverride', normalStateVal: "rsNormal", viewItemId: "viewItemId" } /** * showdoc * @title 数据保存包 * @className HiDataHelper * @description 数据保存包 * @method SavePackHelper * @demo * let modelFile = "数据集实体路径"; * let funcPath = "功能路径"; * let old={FNUMBER:"DH-2210-2201",FIELD1:'data1',FIELD2:'data2'}; //原始数据中必须包含主键字段值 * let data = {FIELD1:'d1',FIELD2:'d2'}; * let saveHelper = this.createSaveHelper(modelFile,funcPath); //在页面上下文,创建saveHelper * saveHelper.update(old,data); //组装更新包 * saveHelper.add({FNUMBER:"NEW-YYMMDD-9999",FIELD1:'a2',FIELD2:'a2'}); //组装新增包 * saveHelper.remove({FNUMBER:"DH-2210-2200"}); //组装删除包,删除数据中必须包含主键字段值 * saveHelper.save().then(res=>{ * //保存成功 * if(res.status==200){ * * } * }) */ class saveHelper_SavePackHelper { /** * @title 构造函数 * @description 保存助手构造函数 * @method HiDataHelper * @param modelFile 必选 string 数据集路径 * @param options 必选 json 请求选项 * @param options.request 必选 axios 请求对象 * @param options.url 必选 url 请求rul * @param options.pn 选填 pn 项目ID * @return HiDataHelper */ constructor(modelFile, funcPath, { request, url, wsUrl, pn, viewItemId, extParam, colToRow }) { this.className = "SavePackHelper" this.modelFile = modelFile; this.request = request; this.colToRow = colToRow; this.viewItemId = viewItemId; this._appendSavePack = []; funcPath = (funcPath || "") this.url = url; this.wsUrl = wsUrl; // if (url.endsWith("/") == false && funcPath.startsWith("/") == false) // this.url = url + "/" + (funcPath || ""); // else // this.url = url + (funcPath || ""); this.funcPath = funcPath; this.extParam = extParam; this.pn = pn; this.dataPacks = {}; this.dataPacks[paramKey.data] = []; this.dataPacks[paramKey.modelFile] = this.modelFile; //this.dataPacks[paramKey.funcPath] = this.funcPath; } //新增或删除包行转列 insertOrDeletePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {} _row[dynamic.rowField] = data[rowField] || (new Date()).valueOf(); for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) continue; let row = cloneDeep_default()(_row); row[colField] = colName; row[valField] = data[colName]; result.push(row); } return result; } //更新包行转列 updatePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {}, _$old = {} _$old[dynamic.rowField] = data[paramKey.old][rowField] for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) { continue; } let row = cloneDeep_default()(_row); let $old = cloneDeep_default()(_$old); row[valField] = data[colName]; $old[valField] = data[paramKey.old][colName]; $old[colField] = colName; row[paramKey.old] = $old; result.push(row); } return result; } //转数据 conversion(data) { if (data) { const result = {} for (const key in data) { const val = data[key] if (val === undefined) continue; if (isDate_default()(val)) { result[key] = utils_date.format(val, 'yyyy-MM-dd hh:mm:ss') } else if (val != null && typeof (val) == 'object' && !val[paramKey.modelFile]) { result[key] = JSON.stringify(val); } else { // if (paramKey.subSetkeyVal == val[paramKey.modelFile]){ // delete val[paramKey.modelFile] // } result[key] = val } } return result } } normal(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.normalStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 新增数据 * @description 新增数据 * @method add * @param data 必选 json 数据 * @return void */ add(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.insertStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 更新数据 * @description 更新数据 * @method update * @param old 必选 json 旧数据(原数据)必须包含主键字段 * @param data 必选 json 新数据(要更新的数据) * @return void * @demo * update({primaryField:1,Field1:0},{Field1:1,Field2:2}) */ update(old, data) { var me = this var row = {} data = this.conversion(data) old = this.conversion(old) for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.updateStateVal row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } setRedundant(old, data) { } /** * showdoc * @title 重写数据 * @description 重写数据包,数据库中有该数据就更新,没有则新增 * @method override * @param old 必选 json 旧数据(原数据) * @param data 必选 json 新数据(要更新或新增的数据)必须包含主键字段 * @return void * @number 400 */ override(old, data) { if (!data) { data = old; old = null; } if (old) old = this.conversion(old) data = this.conversion(data) var me = this var row = {} for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.overrideStateVal if (old) row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } /** * showdoc * @title 删除数据 * @description 删除数据 * @method remove * @param data 必选 json 要删除据数据,必须包含主键字段 * @return void */ remove(data) { var me = this data[paramKey.state] = paramKey.removeStateVal data = this.conversion(data) if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * @title 获取数据包字符串 * @method toString * @description 获取数据包字符串 */ toString() { return JSON.stringify(this.dataPacks) } /** * showdoc * @title 清空数据包 * @description 清空数据包 * @method clear * @return void */ clear() { this.dataPacks = {} } /** * showdoc * @title 获取数据包 * @description 获取数据包 * @method getDataPack * @return json */ getDataPack() { return this.dataPacks } /** * showdoc * @title 是否含有数据包 * @description 是否含有数据包 * @method isEmpty * @return boolean */ isEmpty() { if (this.dataPacks[paramKey.data] && this.dataPacks[paramKey.data].length > 0) return false; return true; } /** * showdoc * @title 追加保存包 * @description 追加保存包 * @method appendSavePack * @param savePack 必选 json 保存包 * @return void */ appendSavePack(savePack) { this._appendSavePack.push(savePack) } /** * showdoc * @title 提交数据 * @description 提交数据 * @method save * @param options 非必选 json 提交时的附加参数 * @param beforeSubmitCallBack 非必选 json 提交前回调,参数:options, param * @return Promise */ save(options, beforeSubmitCallBack) { options = options || {}; let param = {} this._appendSavePack.unshift(this.getDataPack()) param[paramKey.root] = JSON.stringify(this._appendSavePack) // param[paramKey.version] = "1.0.0" param[paramKey.funcPath] = this.funcPath; param[paramKey.viewItemId] = this.viewItemId; if (this.extParam) Object.assign(param, this.extParam); Object.assign(param, options) if (beforeSubmitCallBack) { beforeSubmitCallBack.call(this, options, param, param[paramKey.root]); } let url = this.url if (this.pn) { if (url.indexOf('?') == -1) url = url + "?pn=" + this.pn; else url = url + "&pn=" + this.pn; } if (options.wsid) { if (url.indexOf('?') == -1) url = url + "?wsid=" + options.wsid; else url = url + "&wsid=" + options.wsid; } let showError = options.showError; delete options.showError; return this.request({ url: url, method: 'post', showError, data: param }) } wsSave(options={}, beforeSubmitCallBack) { let id = (new Date()).valueOf(); if (!this.wsUrl) { throw new Error("未配置webscoket保存地址[saveWsUrl]") } let wsUrl = this.wsUrl.replace("{id}",id); let ws = new WebSocket(wsUrl); let me = this; ws.addEventListener("open",function(){ options.wsid = id; options.showError = false, me.save(options, beforeSubmitCallBack) }) return ws; } } // CONCATENATED MODULE: ./src/base/dataHelper/src/flowHelper/index.js // 审批意见 let getApprovalInfo = ({ request, url, ftaskguid, flowtype }) => { let promise let dataUrl = url || src_hiSetting.getApprovalInfo if (ftaskguid) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?ftaskguid=" + ftaskguid; else dataUrl = dataUrl + "&ftaskguid=" + ftaskguid; } if (flowtype) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?flowtype=" + flowtype; else dataUrl = dataUrl + "&flowtype=" + flowtype; } promise = request({ url: dataUrl, method: 'post' }) return promise } // 处理流程 let processFlow = ({ request, url, data, param }) => { let promise; let dataUrl = url || src_hiSetting.processFlow; let __data = { __body: JSON.stringify(data), } if (param) { Object.assign(__data, param) } promise = request({ url: dataUrl, data: __data, method: 'post' }) return promise } // 任务中心查询 let queryTask = ({ request, url, param }) => { let promise; let dataUrl = url || src_hiSetting.queryTask; promise = request({ url: dataUrl, data: param, method: 'post' }) return promise } // 打开流程接口 let getFlowInfo = ({ request, url, data }) => { let promise; promise = request({ url: url || src_hiSetting.getFlowInfo, data: data, method: 'post' }) return promise } // 单号打开流程接口 let openOrdernumber = ({ request, fordernumber, url }) => { let promise; let dataUrl = url || src_hiSetting.openOrdernumber; let openurl = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: openurl, method: 'get' }) return promise } // 撤回 let withdrawtask = ({ request, url, ftaskguid }) => { let promise; let dataUrl = url || src_hiSetting.withdrawtask; let path = `${dataUrl}?ftaskguid=${ftaskguid}` promise = request({ url: path, method: 'get' }) return promise } // 反审 let umpireOrder = ({ request, url, fordernumber }) => { let promise; let dataUrl = url || src_hiSetting.umpireOrder; let path = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let taskDiagram = ({ request, url, forderguid, fmodelpath, fversion }) => { let promise; let dataUrl = url || src_hiSetting.taskDiagram; let path = `${dataUrl}?fmodelpath=${fmodelpath}${fversion ? ("&fversion=" + fversion) : ""}` if (forderguid) { path = path + "&forderguid=" + forderguid } promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let ganttChart = ({ request, url, fordernumber }) => { let promise; let path; let dataUrl = url || src_hiSetting.ganttChart; if (fordernumber) { path = dataUrl + "?fordernumber=" + fordernumber } promise = request({ url: path, method: 'get' }) return promise } /* harmony default export */ var flowHelper = ({ getApprovalInfo, processFlow, queryTask, getFlowInfo, withdrawtask, taskDiagram, ganttChart, openOrdernumber, umpireOrder }); // CONCATENATED MODULE: ./src/base/dataHelper/src/funcHelper/index.js // 打开功能接口 let getFuncInfo = ({ request, url, data }) => { let promise; promise = request({ url: url, data: data, method: 'post' }) return promise } /* harmony default export */ var funcHelper = ({ getFuncInfo }); // CONCATENATED MODULE: ./src/base/dataHelper/src/index.js /* harmony default export */ var dataHelper_src = ({ queryHelper: queryHelper, saveHelper: saveHelper_SavePackHelper, flowHelper: flowHelper, funcHelper: funcHelper }); // CONCATENATED MODULE: ./src/base/dataHelper/index.js /* harmony default export */ var dataHelper = (dataHelper_src); // CONCATENATED MODULE: ./src/eap/user/org.js //调用org方法时一定要在service.js/initUser()之后 function getCurrentUser() { return window.eap.userInfo || {}; } function getMainUser() { if (window.eap.userInfo && window.eap.userInfo.main) return window.eap.userInfo.main; else if (window.eap.userInfo) return window.eap.userInfo; return {} } /* harmony default export */ var org = ({ /** * 当前用户ID * * @return */ userId: function () { return getMainUser().fuserid || ""; }, /** * 当前用户姓名 * * @return */ userName: function () { return getMainUser().fusername || ""; }, /** * 当前用户部门ID * * @return */ deptId: function () { return getMainUser().fdeptid || ""; }, /** * 当前用户部门名称 * * @return */ deptName: function () { return getMainUser().fdeptname || ""; }, /** * 当前用户岗位ID * * @return */ roleId: function () { return getMainUser().froleid || ""; }, /** * 当前用户岗位名称 * * @return */ roleName: function () { return getMainUser().frolename || ""; }, /** * 当前用户组织机构路径 * * @return */ orgPath: function () { return getMainUser().fuserorgpath || ""; }, orgName: function () { return getMainUser().forgname || ""; }, orgId: function () { return getMainUser().forgid || ""; }, //直属上级用户ID superId: function () { return getCurrentUser().fsuperuserid || ""; }, //直属上级用户姓名 superName: function () { return getCurrentUser().fsuperusername || ""; }, /***********编制******************************************************************************************* */ //用户编制ID bzId: function () { return getCurrentUser().fbzid || ""; }, //用户编制名称 bzName: function () { return getCurrentUser().fbzname || ""; }, //用户编制部门ID bzDeptId: function () { return getCurrentUser().fdeptid || ""; }, //用户编制部门名称 bzDeptName: function () { return getCurrentUser().fdeptname || ""; }, //用户编制岗位ID bzRoleId: function () { return getCurrentUser().froleid || ""; }, //用户编制岗位名称 bzRoleName: function () { return getCurrentUser().frolename || ""; }, //用户编制机构路径 bzOrgPath: function () { return getCurrentUser().fuserorgpath || ""; }, //用户编制机构名称 bzOrgName: function () { return getCurrentUser().forgname || ""; }, //用户编制机构ID bzOrgId: function () { return getCurrentUser().forgid || "" }, //当前用户所属公司的机构与部门ID orgDeptId:function(){ return (getCurrentUser().forgid || "") + "." + (getCurrentUser().fdeptid || ""); }, //当前用户所属公司的机构与部门名称 orgDeptName:function(){ return (getCurrentUser().forgname || "") + "." + (getCurrentUser().fdeptname || ""); }, //直属上级编制ID bzSuperId: function () { return getCurrentUser().fsuperbzid || ""; }, //直属上级编制名称 bzSuperName: function () { return getCurrentUser().fsuperbzname || ""; }, /** * 当前用户saas部门ID * * @return */ saasDeptId: function () { return getCurrentUser().fdeptid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /** * 当前用户saas岗位ID * * @return */ saasRoleId: function () { return getCurrentUser().froleid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /**********代理********************************************************************************************** */ /** * 当前代理用户ID * * @return */ proxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fuserid; }, /** * 当前代理用户姓名 * * @return */ proxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fusername; }, /** * 当前代理编制ID * * @return */ bzProxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzid; }, /** * 当前代理编制名称 * * @return */ bzProxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzname }, /******************************************************************************************************** */ /** * 根据岗位ID获取用户编制号列表,逗号隔开 * * @param roleId * @return */ getBzByRole: function (roleId) { return [] }, /** * 根据部门ID获取用户编制号列表,逗号隔开 * * @param deptId * @return */ getBzByDept: function (deptId) { return ""; }, /** * 根据当前用户岗位ID获取编制号列表,逗号隔开 * * @return */ getBzByRole: function () { return getBzByRole(roleId()); }, /** * 根据当前用户部门ID获取编制号列表,逗号隔开 * * @return */ getBzByDept: function () { return getBzByDept(deptId()); }, }); // CONCATENATED MODULE: ./src/eap/utils/biz.js const modelPath = "/platf/useroperate/entity/SysUseroperate.xml"; function getWsUrl(url){ //补全URL if (!(url.toLowerCase().startsWith("ws://") || url.toLowerCase().startsWith("wss://"))) { let site = window.HIVUI_SETTING.url site = site.replace("https", "wss") site = site.replace("http", "ws") if (url.startsWith("/")) url = site + url; else url = site + "/" + url; } if (window.HIVUI_SETTING.projectName && url.indexOf('pn=') == -1 ) { let pn = window.HIVUI_SETTING.projectName; if (url.indexOf('?') == -1) url = url + "?pn=" + pn else url = url + "&pn=" + pn } return url; } function getUrl(url) { let project = window.HIVUI_SETTING.project || window.HIVUI_SETTING.projectName || ""; if (project.indexOf("/") != -1) project = project.split("/")[0] if (url.indexOf(".pro") != -1) { let _url = url; let param = ""; if (_url.indexOf("?") != -1) { _url = _url.substring(0, _url.lastIndexOf("?")) param = url.substring(url.lastIndexOf("?")) } let extName = _url.substring(_url.lastIndexOf(".")) url = _url.replace(/\.\w+/g, "") + extName + param; } if (project) { let arrUrl = url.split("/"); if (arrUrl[0] != "") arrUrl[0] = project; else arrUrl[1] = project; url = arrUrl.join("/"); } let newUrl = ""; if (url.startsWith("/")) newUrl = newUrl + url; else newUrl = newUrl + "/" + url; if (window.HIVUI_SETTING.projectName) { if (url.indexOf("?") != -1) newUrl = newUrl + "&pn=" + window.HIVUI_SETTING.projectName; else newUrl = newUrl + "?pn=" + window.HIVUI_SETTING.projectName; } return newUrl; } /* harmony default export */ var biz = ({ getWsUrl, createNumber() { return "NEW-YYMMDD-9999" }, //下载地址 getDownloadUrl(url, fileName) { var fileExtension = url.substr( url.lastIndexOf(".") + 1 ); var file_path = ""; if (!fileName) { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}`; } else { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}&name=${fileName}.${fileExtension}`; } return file_path; }, //删除用户数据 delUserData(key, type) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.remove({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }); return saveHelper.save(); }, //查询用户数据 async getUserData(key, type) { var where = new dataHelper.queryHelper.Where({ junction: 'and' }); where.addCondition("FKEY", key, "dbString"); where.addCondition("FTYPE", type, "dbString"); where.addCondition("FUSERID", org.bzId(), "dbString"); var param = new dataHelper.queryHelper.Param({ where: where }); let result = await dataHelper.queryHelper.query(param, modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.queryUrl, pn: window.HIVUI_SETTING.projectName }); if (result.dataPack.rows.length > 0) return result.dataPack.rows[0].FVALUE; return null; }, //保存数据 saveUserData(key, data, type, desc) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.override({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }, { FKEY: key, FUSERID: org.bzId(), FTYPE: type, FVALUE: typeof data == "string" ? data : JSON.stringify(data), FNAME: desc || "" }); return saveHelper.save(); } , getUrl, getResUrl(url) { return HIVUI_SETTING.deployDir + getUrl(url); } }); // CONCATENATED MODULE: ./src/eap/utils/index.js /* harmony default export */ var eap_utils = ({ biz: biz, FormFunc: biz, DateFunc: utils.date, NumberFunc: utils.number, StringFunc: utils.string, BomFunc: utils.bom, OrgFunc: org }); // CONCATENATED MODULE: ./src/eap/axios.js // create an axios instance const service = axios_default.a.create({ baseURL: "http://192.168.4.106:7777", timeout: 30 * 1000 // request timeout }) let hasMessageFunc = true; try { hasMessageFunc = !!(hasMessageFunc && external_ELEMENT_["Message"]); } catch (e) { hasMessageFunc = false; } service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8' // request拦截器 service.interceptors.request.use( config => { if (config.headers['Content-Type'] === undefined) { config.headers['Content-Type'] = 'application/json;charset=UTF-8' } const token = getToken(); //默认显示请求成功的返回信息 if(typeof(config.showSuccessTips)=="undefined"){ config.showSuccessTips=true; } //默认显示请求失败的返回信息 if(typeof(config.showError)=="undefined"){ config.showError=true; } if (token && !config.noToken && !(config.url.startsWith("http") && !config.url.startsWith(window.HIVUI_SETTING.url))) { config.headers['Authorization'] = 'Bearer ' + token; } let __localeLang = js_cookie_default.a.get("locale"); if (__localeLang) {//设置语言包 if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.locale = __localeLang; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "locale", __localeLang); } } if (window.HIVUI_SETTING) { let site = window.HIVUI_SETTING.url //补全URL if (!config.url.toLowerCase().startsWith("http")) { if (config.url.startsWith("/")) config.url = site + config.url; else config.url = site + "/" + config.url; } if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName && config.url.indexOf('pn=') == -1 && !(config.params && config.params.pn)) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } //岗位ID if (window.scpRequestData && window.scpRequestData.fbzid) { let fbzid = window.scpRequestData.fbzid; if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.fbzid = fbzid; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "fbzid", fbzid); } } } // 如果接口需要签名, 则通过请求时,headers中传递sign参数true const iSSign = config.headers['sign']; if (iSSign || iSSign === undefined) { const timeStamp = new Date().getTime().toString().substr(0, 10); config.headers['timeStamp'] = timeStamp; //config.headers['signature'] = sign(config, nonce, timeStamp, store.getters.appSecret) } //开启下载流模式 if (config.isDownload) { config.responseType = 'blob'; delete config.isDownload; } return config }, error => { // do something with request error return Promise.reject(error) } ) function MessageFunc(opt, res = {}) {//detailMsg\msg\message let messageCustomClass = eap_utils.StringFunc.id(8); let __position = { top: 15, margin: 20, right: 15 }; let isMsgBox = window.HIVUI_SETTING.messageType == "msgBox"; if (opt.showClose) {//关闭按钮多偏移 __position.margin += 15; __position.right += 25; } if (isMsgBox) { __position.top = 0; __position.right = 0; __position.margin = 20; } let msgTpl = `<div class="zhcDetailMsg" style="max-height:200px;min-height: 20px;padding:3px 0;word-break:break-all;margin-right: ${__position.margin}px;overflow:auto;transition:all 0.3s;"><span>${res.msg || res.resmessage}</span><i class="el-icon-caret-right" title="${(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || '弹出报错详情'}" style="position: absolute;top:${__position.top}px;right:${__position.right}px;font-size:18px;color:#F56C6C;cursor:pointer;transition:all 0.3s;"></i></div>`; let msgVue = null; let isShowDetail = res.detailMsg && (res.detailMsg != opt.message); opt.customClass = messageCustomClass; if (isMsgBox) { if (isShowDetail) { opt.message = msgTpl; } else { opt.message = `<div style="max-height:200px;word-break:break-all;overflow:auto;">${opt.message}</div>`; } msgVue = Object(external_ELEMENT_["MessageBox"])({ ...{ title: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_msgTips) || "消息提示", confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_define) || '确定', dangerouslyUseHTMLString: true }, ...opt }); } else { if (isShowDetail) { opt.message = msgTpl; opt.dangerouslyUseHTMLString = true; } msgVue = Object(external_ELEMENT_["Message"])(opt); } if (isShowDetail) { let arrowBtn = document.querySelector("." + messageCustomClass + " .zhcDetailMsg>i"); arrowBtn.onclick = () => { if (arrowBtn.previousSibling.className == "zhcDetailMsg") { arrowBtn.previousSibling.innerText = res.msg || res.resmessage; arrowBtn.previousSibling.className = ""; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || "弹出报错详情"; arrowBtn.style.color = "#F56C6C"; arrowBtn.style.transform = "rotate(0)"; } else { arrowBtn.previousSibling.innerText = res.detailMsg; arrowBtn.previousSibling.className = "zhcDetailMsg"; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_hideErrorDetail) || "收起报错详情"; arrowBtn.style.color = ""; arrowBtn.style.transform = "rotate(90deg)"; } }; } } function for401(isSkip) { // Alert('你已被登出,,点击确认按钮进入登录页', '登录超时', { // confirmButtonText: '确定', // callback: action => { // window.location.href = window.appsettings.login; // } // }); if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { let loginUrl = window.HIVUI_SETTING.customLoginUrl||window.HIVUI_SETTING.loginUrl if (window.HIVUI_SETTING.isSingleLogin) { loginUrl = window.HIVUI_SETTING.singleLoginUrl; if (loginUrl.endsWith("=")) { let params = window.location.search.slice(1).split("&").filter(item => { if (item.indexOf("ticket") == -1) { return item } }); let currPageUrl = window.location.origin + window.location.pathname; if (window.HIVUI_SETTING.mainPageUrl.indexOf(currPageUrl) == -1) { params.push("eapReturnUrl=" + currPageUrl); currPageUrl = window.HIVUI_SETTING.mainPageUrl; } currPageUrl = currPageUrl.replace(/#\//g, ""); loginUrl = loginUrl + currPageUrl + (params.length > 0 ? '?' : '') + params.join("&"); } } else { if (!loginUrl.endsWith("#/")) { loginUrl += "#/"; } loginUrl += "?eapReturnUrl=" + encodeURIComponent(window.location.href); } if ((top.window.mainPageInitErrorJump) || isSkip) { window.location.href = loginUrl; } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { window.location.href = loginUrl; }); } } } service.interceptors.response.use(response => { if (response.config.responseType == "arraybuffer") { return response; } if (response.config.normalResult) return response; const res = response.data; if (res.type == "application/octet-stream" || response.headers["content-type"] == "application/octet-stream") { return response; } else if (response.config.responseType == "blob") { //流数据抛错,将blob类型重新转换成json let fileReader = new FileReader(); fileReader.readAsText(res, 'utf-8'); fileReader.onload = function () { let __data = JSON.parse(fileReader.result); return hasMessageFunc && MessageFunc({ message: __data.msg || __data.message || 'Error', type: 'error', showClose: true, }, res) } return Promise.reject(res) } if (response.status != "200" || (response.data.status && response.data.status != "200")) { let data = {} try { data = JSON.parse(response.config.data) } catch (ex) { } if (data.__isIntercept === false) { if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return Promise.reject(res) } setTimeout(()=>{ hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res); },0); if (res.status == 401 || (res.data && res.data.status == 401)) { for401(response.config.isSkip); return Promise.reject(error) } //return Promise.reject(new Error(res.message || 'Error')) return Promise.reject(res, JSON.parse(response.config.data || "{}")) } else { res.dataPack = res.dataPack || res.data if ((res.detailMsg || res.msg) && response.config.showSuccessTips) { hasMessageFunc && MessageFunc({ message: res.detailMsg || res.msg || 'Error', type: (res.popupbox && res.popupbox.type) || 'success', showClose: true, duration: 5 * 1000 }, res); } if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return res } }, error => { let res = error.response; if(error.config&&!error.config.showError){ return; } if (!res) { hasMessageFunc && MessageFunc({ message: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_responseNull) || '后端请求返回出错,请联系开发人员', type: 'error', showClose: true, duration: 5 * 1000 }); return; } let data = {} try { data = JSON.parse(res.config.data) } catch (ex) { } if (data.__isIntercept === false) { return Promise.reject(error) } if (res.status == 401 || (res.data && res.data.status == 401)) { for401(res.config.isSkip); return Promise.reject(error) } console.log('err' + error)// for debug // Message({ // message: error.message, // type: 'error', // duration: 5 * 1000 // }) return Promise.reject(error) }); /* harmony default export */ var eap_axios = (service); function ajax(config) { const token = getToken(); if (window.HIVUI_SETTING) { if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } } //创建XMLHttpRequest对象 let url = config.url || ""; let method = config.method || "GET"; let data = config.data || {}; let success = config.success; let async = config.async == undefined ? true : config.async; let fail = config.fail; var xhr = new XMLHttpRequest(); //true表示异步 xhr.open(method, url, async); if (config.timeout && async === true) xhr.timeout = config.timeout; xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8'); if (token && !config.noToken && !(url.startsWith("http") && !url.startsWith(window.HIVUI_SETTING.url))) { xhr.setRequestHeader('Authorization', 'Bearer ' + token); } if (JSON.stringify(data) != "{}") { xhr.send(JSON.stringify(data)); } else { xhr.send(); } if (async == false) { if (xhr.status == 200) { var res = JSON.parse(xhr.responseText); success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } else { xhr.onreadystatechange = function () { // readyState == 4说明请求已完成 if (xhr.readyState == 4) { if (xhr.status == 200 || xhr.status == "200") { var res = JSON.parse(xhr.responseText); //responseText:从服务器获得数据 success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } }; } } // CONCATENATED MODULE: ./src/eap/request.js let request_service = eap_axios; //export default service /* harmony default export */ var eap_request = (function (cfg) { if ((window.isElectron || top.window.isElectron)) { var urlsCallback if (window.electronCfg) urlsCallback = window.electronCfg.urlCallback if (top.window.electronCfg) urlsCallback = top.window.electronCfg.urlCallback for (var key in urlsCallback) { if (cfg.url.indexOf(key) > -1) return urlsCallback[key](cfg); } } return eap_axios(cfg); }); // CONCATENATED MODULE: ./src/eap/user/service.js var service_request = eap_request; // if (window.HIVUI_SETTING) // request = window.HIVUI_SETTING.request; // else { // window.HIVUI_SETTING = hiSetting // } /** * 登陆 * @param {Id} 系统Id */ function login(userName, pwd) { var data = { username: userName.trim(), password: md5_default()(pwd) }; let _promise=service_request({ url: window.HIVUI_SETTING.login||(window.HIVUI_SETTING.serverUrl+"/login/sso-login"), method: 'post', data: data }); _promise.then(res=>{ const data = res if(data.token){ setToken(data.token); } if(location.hash=="#miniLogin"){//外部调用登录接口时小登录判断 if(eap_utils.StringFunc.getUrlValue("questType")=="ajax"){ top.window.SysPage&&top.window.SysPage.closeMiniLogin(eap_utils.StringFunc.getUrlValue("isRefresh")); }else{ location.reload(); } } }); return _promise; } /** * 登出 */ function logout() { if(!getToken()){ return new Promise((resolve, reject)=>{ resolve(); }); } let _promise=service_request({ url: window.HIVUI_SETTING.logout||(window.HIVUI_SETTING.serverUrl+"/login/sso-logout"), method: 'post' }); _promise.then(res=>{ removeToken(); }); return _promise; } /** * 获取用户信息 * @param {data} */ function getInfo(data) { return service_request({ url: window.HIVUI_SETTING.userInfo, method: 'post', data: data }) } function initUser(data) { let promise = getInfo(data) promise.then(res => { if (!window.eap) window.eap = {} window.eap.userInfo = res.dataPack; }) return promise; } //修改密码 function modifyPw(oldPwd, newPwd) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/user/update-pwd", method: 'post', data: { oldPwd, newPwd } }) } //获取岗位列表 function getBzList(data) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/auth/func-multi-bz", method: 'post', data: data }) } /** * 解锁账户 * @param {data} */ function unlock(userId,pwd) { var data = { userId: userId.trim(), password: md5_default()(pwd) }; return service_request({ url: window.HIVUI_SETTING.serverUrl + "/login/unlock", method: 'post', data: data }) } /* harmony default export */ var user_service = ({ login, logout, getInfo, modifyPw, getBzList, unlock }); // CONCATENATED MODULE: ./src/eap/user/index.js /* harmony default export */ var user = ({ service: user_service,auth: auth }); // CONCATENATED MODULE: ./src/eap/page/index.js /* harmony default export */ var page = ({ closepage() { if (top.window.SysPage && top.window.SysPage.closePage) { top.window.SysPage.closePage(); } else { window.close(); } }, /* title:标签页名称,不传则默认显示功能名称 url:标签页访问地址 params:携带参数 method:传"get"/"post"参数,不传默认为get target:传"me"/"_blank",me为当前标签页覆盖打开,_blank为必定新标签打开,不传参数则默认同url标签覆盖,不同的url打开新标签 */ newPage(title,url,params,method,target){ if(url&&url.indexOf("http")!=0){ url=location.origin+(top.window.deployDir?("/"+top.window.deployDir):'') + (top.window.pName?("/"+top.window.pName):'') + url; } if (top.window.SysPage && top.window.SysPage.newPage) { top.window.SysPage.newPage(title,url,params,method,target); } else { window.open(url,"_blank"); } } }); // CONCATENATED MODULE: ./src/eap/dataHelper/index.js //(param, modelFile, funcPath, { request, url, method, pn, extParam }) let dataHelper_query = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.queryUrl; // //request, url, method, pn, extParam return dataHelper.queryHelper.query(param, modelFile, funcPath, options) } let dataHelper_exportData = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName if (!options.url && setting) options.url = setting.exportUrl; //{ request, url, method, pn, extParam } return dataHelper.queryHelper.exportData(param, modelFile, funcPath, options) } class dataHelper_SaveHelper extends dataHelper.saveHelper { constructor(modelFile, funcPath, options = {}) { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.saveUrl; //{ request, url, pn, extParam } super(modelFile, funcPath, options); } } /* harmony default export */ var eap_dataHelper = ({ query: dataHelper_query, exportData: dataHelper_exportData, Param: dataHelper.queryHelper.Param, Where: dataHelper.queryHelper.Where, types: dataHelper.queryHelper.types, Orders: dataHelper.queryHelper.Orders, SaveHelper: dataHelper_SaveHelper }); // EXTERNAL MODULE: ./node_modules/lodash/defaultsDeep.js var defaultsDeep = __webpack_require__("3f84"); var defaultsDeep_default = /*#__PURE__*/__webpack_require__.n(defaultsDeep); // EXTERNAL MODULE: ./package_eap.json var package_eap = __webpack_require__("ed27"); // CONCATENATED MODULE: ./src/eap/index.js function mergeConfig() { let args = [...arguments] return defaultsDeep_default()(...args) } let eap_lang = { get(key) { //return Vue.prototype.$t(key) let keys = {} if (window.lang && window.lang.keys) keys = window.lang.keys; return keys[key] || key; } } /* harmony default export */ var eap = ({ user: user,ajax: ajax, request: eap_request, mergeConfig, lang: eap_lang, utils: eap_utils, page: page, dataHelper: eap_dataHelper, }); //加载默认设至到全局 if (!window.HIVUI_SETTING) { window.HIVUI_SETTING = src_hiSetting; //console.log("已加载默认配置:", hiSetting) } window.lang = eap_lang //输出版本信息 console.log( '%c hi-eap-basic %c v'.concat(package_eap.version, ' '), 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #ff8e15; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;', ); //console.log(process.env.NODE_VER) // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (eap); /***/ }), /***/ "fba5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }), /***/ "fbb2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GenericBarcode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var GenericBarcode = function (_Barcode) { _inherits(GenericBarcode, _Barcode); function GenericBarcode(data, options) { _classCallCheck(this, GenericBarcode); return _possibleConstructorReturn(this, (GenericBarcode.__proto__ || Object.getPrototypeOf(GenericBarcode)).call(this, data, options)); // Sets this.data and this.text } // Return the corresponding binary numbers for the data provided _createClass(GenericBarcode, [{ key: "encode", value: function encode() { return { data: "10101010101010101010101010101010101010101", text: this.text }; } // Resturn true/false if the string provided is valid for this encoder }, { key: "valid", value: function valid() { return true; } }]); return GenericBarcode; }(_Barcode3.default); exports.GenericBarcode = GenericBarcode; /***/ }), /***/ "fd7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _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; }; exports.default = function (old, replaceObj) { return _extends({}, old, replaceObj); }; /***/ }), /***/ "ff84": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE = __webpack_require__("349c"); var _CODE2 = __webpack_require__("da3d"); var _EAN_UPC = __webpack_require__("241e"); var _ITF = __webpack_require__("9ffa"); var _MSI = __webpack_require__("8e51"); var _pharmacode = __webpack_require__("7cb9"); var _codabar = __webpack_require__("c17b"); var _GenericBarcode = __webpack_require__("fbb2"); exports.default = { CODE39: _CODE.CODE39, CODE128: _CODE2.CODE128, CODE128A: _CODE2.CODE128A, CODE128B: _CODE2.CODE128B, CODE128C: _CODE2.CODE128C, EAN13: _EAN_UPC.EAN13, EAN8: _EAN_UPC.EAN8, EAN5: _EAN_UPC.EAN5, EAN2: _EAN_UPC.EAN2, UPC: _EAN_UPC.UPC, UPCE: _EAN_UPC.UPCE, ITF14: _ITF.ITF14, ITF: _ITF.ITF, MSI: _MSI.MSI, MSI10: _MSI.MSI10, MSI11: _MSI.MSI11, MSI1010: _MSI.MSI1010, MSI1110: _MSI.MSI1110, pharmacode: _pharmacode.pharmacode, codabar: _codabar.codabar, GenericBarcode: _GenericBarcode.GenericBarcode }; /***/ }), /***/ "ffd6": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && baseGetTag(value) == symbolTag); } module.exports = isSymbol; /***/ }) /******/ }); //# sourceMappingURL=eap.common.js.map
Ignore Space
Show notes
View
assets_platform/eap/eap.umd.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("ELEMENT")); else if(typeof define === 'function' && define.amd) define(["ELEMENT"], factory); else if(typeof exports === 'object') exports["eap"] = factory(require("ELEMENT")); else root["eap"] = factory(root["ELEMENT"]); })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__5f72__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ "00fd": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }), /***/ "03dd": /***/ (function(module, exports, __webpack_require__) { var isPrototype = __webpack_require__("eac5"), nativeKeys = __webpack_require__("57a5"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys; /***/ }), /***/ "0644": /***/ (function(module, exports, __webpack_require__) { var baseClone = __webpack_require__("3818"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4; /** * This method is like `_.clone` except that it recursively clones `value`. * * @static * @memberOf _ * @since 1.0.0 * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. * @see _.clone * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * * var deep = _.cloneDeep(objects); * console.log(deep[0] === objects[0]); * // => false */ function cloneDeep(value) { return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } module.exports = cloneDeep; /***/ }), /***/ "07c7": /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "07df": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _ITF2 = __webpack_require__("3c7c"); var _ITF3 = _interopRequireDefault(_ITF2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Calculate the checksum digit var checksum = function checksum(data) { var res = data.substr(0, 13).split('').map(function (num) { return parseInt(num, 10); }).reduce(function (sum, n, idx) { return sum + n * (3 - idx % 2 * 2); }, 0); return Math.ceil(res / 10) * 10 - res; }; var ITF14 = function (_ITF) { _inherits(ITF14, _ITF); function ITF14(data, options) { _classCallCheck(this, ITF14); // Add checksum if it does not exist if (data.search(/^[0-9]{13}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (ITF14.__proto__ || Object.getPrototypeOf(ITF14)).call(this, data, options)); } _createClass(ITF14, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === checksum(this.data); } }]); return ITF14; }(_ITF3.default); exports.default = ITF14; /***/ }), /***/ "087d": /***/ (function(module, exports) { /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } module.exports = arrayPush; /***/ }), /***/ "0a06": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var buildURL = __webpack_require__("30b5"); var InterceptorManager = __webpack_require__("f6b4"); var dispatchRequest = __webpack_require__("5270"); var mergeConfig = __webpack_require__("4a7b"); /** * Create a new instance of Axios * * @param {Object} instanceConfig The default config for the instance */ function Axios(instanceConfig) { this.defaults = instanceConfig; this.interceptors = { request: new InterceptorManager(), response: new InterceptorManager() }; } /** * Dispatch a request * * @param {Object} config The config specific for this request (merged with this.defaults) */ Axios.prototype.request = function request(config) { /*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API if (typeof config === 'string') { config = arguments[1] || {}; config.url = arguments[0]; } else { config = config || {}; } config = mergeConfig(this.defaults, config); // Set config.method if (config.method) { config.method = config.method.toLowerCase(); } else if (this.defaults.method) { config.method = this.defaults.method.toLowerCase(); } else { config.method = 'get'; } // Hook up interceptors middleware var chain = [dispatchRequest, undefined]; var promise = Promise.resolve(config); this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { chain.unshift(interceptor.fulfilled, interceptor.rejected); }); this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { chain.push(interceptor.fulfilled, interceptor.rejected); }); while (chain.length) { promise = promise.then(chain.shift(), chain.shift()); } return promise; }; Axios.prototype.getUri = function getUri(config) { config = mergeConfig(this.defaults, config); return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); }; // Provide aliases for supported request methods utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, config) { return this.request(mergeConfig(config || {}, { method: method, url: url })); }; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, data, config) { return this.request(mergeConfig(config || {}, { method: method, url: url, data: data })); }; }); module.exports = Axios; /***/ }), /***/ "0b07": /***/ (function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__("34ac"), getValue = __webpack_require__("3698"); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } module.exports = getNative; /***/ }), /***/ "0d24": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"), stubFalse = __webpack_require__("07c7"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "0df6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Syntactic sugar for invoking a function and expanding an array for arguments. * * Common use case would be to use `Function.prototype.apply`. * * ```js * function f(x, y, z) {} * var args = [1, 2, 3]; * f.apply(null, args); * ``` * * With `spread` this example can be re-written. * * ```js * spread(function(x, y, z) {})([1, 2, 3]); * ``` * * @param {Function} callback * @returns {Function} */ module.exports = function spread(callback) { return function wrap(arr) { return callback.apply(null, arr); }; }; /***/ }), /***/ "0f0f": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * The base implementation of `_.assignIn` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssignIn(object, source) { return object && copyObject(source, keysIn(source), object); } module.exports = baseAssignIn; /***/ }), /***/ "100e": /***/ (function(module, exports, __webpack_require__) { var identity = __webpack_require__("cd9d"), overRest = __webpack_require__("2286"), setToString = __webpack_require__("c1c9"); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { return setToString(overRest(func, start, identity), func + ''); } module.exports = baseRest; /***/ }), /***/ "1041": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbolsIn = __webpack_require__("a029"); /** * Copies own and inherited symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbolsIn(source, object) { return copyObject(source, getSymbolsIn(source), object); } module.exports = copySymbolsIn; /***/ }), /***/ "124f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // https://en.wikipedia.org/wiki/MSI_Barcode#Character_set_and_binary_lookup var MSI = function (_Barcode) { _inherits(MSI, _Barcode); function MSI(data, options) { _classCallCheck(this, MSI); return _possibleConstructorReturn(this, (MSI.__proto__ || Object.getPrototypeOf(MSI)).call(this, data, options)); } _createClass(MSI, [{ key: "encode", value: function encode() { // Start bits var ret = "110"; for (var i = 0; i < this.data.length; i++) { // Convert the character to binary (always 4 binary digits) var digit = parseInt(this.data[i]); var bin = digit.toString(2); bin = addZeroes(bin, 4 - bin.length); // Add 100 for every zero and 110 for every 1 for (var b = 0; b < bin.length; b++) { ret += bin[b] == "0" ? "100" : "110"; } } // End bits ret += "1001"; return { data: ret, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9]+$/) !== -1; } }]); return MSI; }(_Barcode3.default); function addZeroes(number, n) { for (var i = 0; i < n; i++) { number = "0" + number; } return number; } exports.default = MSI; /***/ }), /***/ "1290": /***/ (function(module, exports) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } module.exports = isKeyable; /***/ }), /***/ "1310": /***/ (function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }), /***/ "1368": /***/ (function(module, exports, __webpack_require__) { var coreJsData = __webpack_require__("da03"); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } module.exports = isMasked; /***/ }), /***/ "18d8": /***/ (function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__("234d"); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }), /***/ "1a2d": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var mapTag = '[object Map]'; /** * The base implementation of `_.isMap` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. */ function baseIsMap(value) { return isObjectLike(value) && getTag(value) == mapTag; } module.exports = baseIsMap; /***/ }), /***/ "1a8c": /***/ (function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }), /***/ "1ba5": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // http://www.barcodeisland.com/ean8.phtml // Calculate the checksum digit var checksum = function checksum(number) { var res = number.substr(0, 7).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a : sum + a * 3; }, 0); return (10 - res % 10) % 10; }; var EAN8 = function (_EAN) { _inherits(EAN8, _EAN); function EAN8(data, options) { _classCallCheck(this, EAN8); // Add checksum if it does not exist if (data.search(/^[0-9]{7}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (EAN8.__proto__ || Object.getPrototypeOf(EAN8)).call(this, data, options)); } _createClass(EAN8, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftText', this).call(this, 0, 4); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(0, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftEncode', this).call(this, data, 'LLLL'); } }, { key: 'rightText', value: function rightText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightText', this).call(this, 4, 4); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(4, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightEncode', this).call(this, data, 'RRRR'); } }]); return EAN8; }(_EAN3.default); exports.default = EAN8; /***/ }), /***/ "1bac": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbolsIn = __webpack_require__("a029"), keysIn = __webpack_require__("9934"); /** * Creates an array of own and inherited enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeysIn(object) { return baseGetAllKeys(object, keysIn, getSymbolsIn); } module.exports = getAllKeysIn; /***/ }), /***/ "1cec": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Promise = getNative(root, 'Promise'); module.exports = Promise; /***/ }), /***/ "1d2b": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function bind(fn, thisArg) { return function wrap() { var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { args[i] = arguments[i]; } return fn.apply(thisArg, args); }; }; /***/ }), /***/ "1efc": /***/ (function(module, exports) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; /***/ }), /***/ "1fc8": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet; /***/ }), /***/ "2286": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * A specialized version of `baseRest` which transforms the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @param {Function} transform The rest array transform. * @returns {Function} Returns the new function. */ function overRest(func, start, transform) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } module.exports = overRest; /***/ }), /***/ "234d": /***/ (function(module, exports, __webpack_require__) { var memoize = __webpack_require__("e380"); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } module.exports = memoizeCapped; /***/ }), /***/ "2411": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), createAssigner = __webpack_require__("2ec1"); /** * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} customizer The function to customize assigned values. * @returns {Object} Returns `object`. * @example * * function customizer(objValue, srcValue) { * if (_.isArray(objValue)) { * return objValue.concat(srcValue); * } * } * * var object = { 'a': [1], 'b': [2] }; * var other = { 'a': [3], 'b': [4] }; * * _.mergeWith(object, other, customizer); * // => { 'a': [1, 3], 'b': [2, 4] } */ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { baseMerge(object, source, srcIndex, customizer); }); module.exports = mergeWith; /***/ }), /***/ "241e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UPCE = exports.UPC = exports.EAN2 = exports.EAN5 = exports.EAN8 = exports.EAN13 = undefined; var _EAN = __webpack_require__("89a2"); var _EAN2 = _interopRequireDefault(_EAN); var _EAN3 = __webpack_require__("1ba5"); var _EAN4 = _interopRequireDefault(_EAN3); var _EAN5 = __webpack_require__("583f"); var _EAN6 = _interopRequireDefault(_EAN5); var _EAN7 = __webpack_require__("a5d2"); var _EAN8 = _interopRequireDefault(_EAN7); var _UPC = __webpack_require__("e8b2"); var _UPC2 = _interopRequireDefault(_UPC); var _UPCE = __webpack_require__("be98"); var _UPCE2 = _interopRequireDefault(_UPCE); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.EAN13 = _EAN2.default; exports.EAN8 = _EAN4.default; exports.EAN5 = _EAN6.default; exports.EAN2 = _EAN8.default; exports.UPC = _UPC2.default; exports.UPCE = _UPCE2.default; /***/ }), /***/ "2444": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__("c532"); var normalizeHeaderName = __webpack_require__("c8af"); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' }; function setContentTypeIfUnset(headers, value) { if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { headers['Content-Type'] = value; } } function getDefaultAdapter() { var adapter; if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter adapter = __webpack_require__("b50d"); } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { // For node use HTTP adapter adapter = __webpack_require__("b50d"); } return adapter; } var defaults = { adapter: getDefaultAdapter(), transformRequest: [function transformRequest(data, headers) { normalizeHeaderName(headers, 'Accept'); normalizeHeaderName(headers, 'Content-Type'); if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) ) { return data; } if (utils.isArrayBufferView(data)) { return data.buffer; } if (utils.isURLSearchParams(data)) { setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); return data.toString(); } if (utils.isObject(data)) { setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); return JSON.stringify(data); } return data; }], transformResponse: [function transformResponse(data) { /*eslint no-param-reassign:0*/ if (typeof data === 'string') { try { data = JSON.parse(data); } catch (e) { /* Ignore */ } } return data; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: function validateStatus(status) { return status >= 200 && status < 300; } }; defaults.headers = { common: { 'Accept': 'application/json, text/plain, */*' } }; utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); }); module.exports = defaults; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"))) /***/ }), /***/ "2474": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Uint8Array = root.Uint8Array; module.exports = Uint8Array; /***/ }), /***/ "2478": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } module.exports = mapCacheGet; /***/ }), /***/ "2524": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } module.exports = hashSet; /***/ }), /***/ "253c": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } module.exports = baseIsArguments; /***/ }), /***/ "28c9": /***/ (function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }), /***/ "29f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "2a4a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var START_BIN = exports.START_BIN = '1010'; var END_BIN = exports.END_BIN = '11101'; var BINARIES = exports.BINARIES = ['00110', '10001', '01001', '11000', '00101', '10100', '01100', '00011', '10010', '01010']; /***/ }), /***/ "2b3e": /***/ (function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__("585a"); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }), /***/ "2d7c": /***/ (function(module, exports) { /** * A specialized version of `_.filter` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. */ function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } module.exports = arrayFilter; /***/ }), /***/ "2d83": /***/ (function(module, exports, __webpack_require__) { "use strict"; var enhanceError = __webpack_require__("387f"); /** * Create an Error with the specified message, config, error code, request and response. * * @param {string} message The error message. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The created error. */ module.exports = function createError(message, config, code, request, response) { var error = new Error(message); return enhanceError(error, config, code, request, response); }; /***/ }), /***/ "2dcb": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /** Built-in value references. */ var getPrototype = overArg(Object.getPrototypeOf, Object); module.exports = getPrototype; /***/ }), /***/ "2e67": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function isCancel(value) { return !!(value && value.__CANCEL__); }; /***/ }), /***/ "2ec1": /***/ (function(module, exports, __webpack_require__) { var baseRest = __webpack_require__("100e"), isIterateeCall = __webpack_require__("9aff"); /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } module.exports = createAssigner; /***/ }), /***/ "2fcc": /***/ (function(module, exports) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } module.exports = stackDelete; /***/ }), /***/ "30b5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); function encode(val) { return encodeURIComponent(val). 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 */ module.exports = function buildURL(url, params, paramsSerializer) { /*eslint no-param-reassign:0*/ if (!params) { return url; } var serializedParams; if (paramsSerializer) { serializedParams = paramsSerializer(params); } else if (utils.isURLSearchParams(params)) { serializedParams = params.toString(); } else { var parts = []; utils.forEach(params, function serialize(val, key) { if (val === null || typeof val === 'undefined') { return; } if (utils.isArray(val)) { key = key + '[]'; } else { val = [val]; } utils.forEach(val, function parseValue(v) { if (utils.isDate(v)) { v = v.toISOString(); } else if (utils.isObject(v)) { v = JSON.stringify(v); } parts.push(encode(key) + '=' + 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; }; /***/ }), /***/ "30c9": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isLength = __webpack_require__("b218"); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /***/ "32b3": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignValue; /***/ }), /***/ "32f4": /***/ (function(module, exports, __webpack_require__) { var arrayFilter = __webpack_require__("2d7c"), stubArray = __webpack_require__("d327"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbols = !nativeGetSymbols ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; module.exports = getSymbols; /***/ }), /***/ "349c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE39 = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Code_39#Encoding var CODE39 = function (_Barcode) { _inherits(CODE39, _Barcode); function CODE39(data, options) { _classCallCheck(this, CODE39); data = data.toUpperCase(); // Calculate mod43 checksum if enabled if (options.mod43) { data += getCharacter(mod43checksum(data)); } return _possibleConstructorReturn(this, (CODE39.__proto__ || Object.getPrototypeOf(CODE39)).call(this, data, options)); } _createClass(CODE39, [{ key: "encode", value: function encode() { // First character is always a * var result = getEncoding("*"); // Take every character and add the binary representation to the result for (var i = 0; i < this.data.length; i++) { result += getEncoding(this.data[i]) + "0"; } // Last character is always a * result += getEncoding("*"); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1; } }]); return CODE39; }(_Barcode3.default); // All characters. The position in the array is the (checksum) value var characters = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", "*"]; // The decimal representation of the characters, is converted to the // corresponding binary with the getEncoding function var encodings = [20957, 29783, 23639, 30485, 20951, 29813, 23669, 20855, 29789, 23645, 29975, 23831, 30533, 22295, 30149, 24005, 21623, 29981, 23837, 22301, 30023, 23879, 30545, 22343, 30161, 24017, 21959, 30065, 23921, 22385, 29015, 18263, 29141, 17879, 29045, 18293, 17783, 29021, 18269, 17477, 17489, 17681, 20753, 35770]; // Get the binary representation of a character by converting the encodings // from decimal to binary function getEncoding(character) { return getBinary(characterValue(character)); } function getBinary(characterValue) { return encodings[characterValue].toString(2); } function getCharacter(characterValue) { return characters[characterValue]; } function characterValue(character) { return characters.indexOf(character); } function mod43checksum(data) { var checksum = 0; for (var i = 0; i < data.length; i++) { checksum += characterValue(data[i]); } checksum = checksum % 43; return checksum; } exports.CODE39 = CODE39; /***/ }), /***/ "34ac": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isMasked = __webpack_require__("1368"), isObject = __webpack_require__("1a8c"), toSource = __webpack_require__("dc57"); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } module.exports = baseIsNative; /***/ }), /***/ "3698": /***/ (function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }), /***/ "3729": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), getRawTag = __webpack_require__("00fd"), objectToString = __webpack_require__("29f3"); /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (symToStringTag && symToStringTag in Object(value)) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag; /***/ }), /***/ "3818": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), arrayEach = __webpack_require__("8057"), assignValue = __webpack_require__("32b3"), baseAssign = __webpack_require__("5b01"), baseAssignIn = __webpack_require__("0f0f"), cloneBuffer = __webpack_require__("e538"), copyArray = __webpack_require__("4359"), copySymbols = __webpack_require__("54eb"), copySymbolsIn = __webpack_require__("1041"), getAllKeys = __webpack_require__("a994"), getAllKeysIn = __webpack_require__("1bac"), getTag = __webpack_require__("42a2"), initCloneArray = __webpack_require__("c87c"), initCloneByTag = __webpack_require__("c2b6"), initCloneObject = __webpack_require__("fa21"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isMap = __webpack_require__("cc45"), isObject = __webpack_require__("1a8c"), isSet = __webpack_require__("d7ee"), keys = __webpack_require__("ec69"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values supported by `_.clone`. */ var cloneableTags = {}; cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; /** * The base implementation of `_.clone` and `_.cloneDeep` which tracks * traversed objects. * * @private * @param {*} value The value to clone. * @param {boolean} bitmask The bitmask flags. * 1 - Deep clone * 2 - Flatten inherited properties * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== undefined) { return result; } if (!isObject(value)) { return value; } var isArr = isArray(value); if (isArr) { result = initCloneArray(value); if (!isDeep) { return copyArray(value, result); } } else { var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; if (isBuffer(value)) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag(value, tag, isDeep); } } // Check for circular references and return its corresponding clone. stack || (stack = new Stack); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); if (isSet(value)) { value.forEach(function(subValue) { result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); }); return result; } if (isMap(value)) { value.forEach(function(subValue, key) { result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } var keysFunc = isFull ? (isFlat ? getAllKeysIn : getAllKeys) : (isFlat ? keysIn : keys); var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } module.exports = baseClone; /***/ }), /***/ "3852": /***/ (function(module, exports, __webpack_require__) { var baseHas = __webpack_require__("96f3"), hasPath = __webpack_require__("e2c0"); /** * Checks if `path` is a direct property of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = { 'a': { 'b': 2 } }; * var other = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.has(object, 'a'); * // => true * * _.has(object, 'a.b'); * // => true * * _.has(object, ['a', 'b']); * // => true * * _.has(other, 'a'); * // => false */ function has(object, path) { return object != null && hasPath(object, path, baseHas); } module.exports = has; /***/ }), /***/ "387f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Update an Error with the specified config, error code, and response. * * @param {Error} error The error to update. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The error. */ module.exports = function enhanceError(error, config, code, request, response) { error.config = config; if (code) { error.code = code; } error.request = request; error.response = response; error.isAxiosError = true; error.toJSON = function toJSON() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: this.config, code: this.code }; }; return error; }; /***/ }), /***/ "3934": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. (function standardBrowserEnv() { var msie = /(msie|trident)/i.test(navigator.userAgent); var urlParsingNode = document.createElement('a'); var originURL; /** * Parse a URL to discover it's components * * @param {String} url The URL to be parsed * @returns {Object} */ function resolveURL(url) { var href = url; if (msie) { // IE needs attribute set twice to normalize properties urlParsingNode.setAttribute('href', href); href = urlParsingNode.href; } urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils return { href: urlParsingNode.href, protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', host: urlParsingNode.host, search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', hostname: urlParsingNode.hostname, port: urlParsingNode.port, pathname: (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname }; } originURL = resolveURL(window.location.href); /** * Determine if a URL shares the same origin as the current location * * @param {String} requestURL The URL to test * @returns {boolean} True if URL shares the same origin, otherwise false */ return function isURLSameOrigin(requestURL) { var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; return (parsed.protocol === originURL.protocol && parsed.host === originURL.host); }; })() : // Non standard browser envs (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return function isURLSameOrigin() { return true; }; })() ); /***/ }), /***/ "39ff": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var WeakMap = getNative(root, 'WeakMap'); module.exports = WeakMap; /***/ }), /***/ "3b4a": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); module.exports = defineProperty; /***/ }), /***/ "3c35": /***/ (function(module, exports) { /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */ module.exports = __webpack_amd_options__; /* WEBPACK VAR INJECTION */}.call(this, {})) /***/ }), /***/ "3c7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("2a4a"); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ITF = function (_Barcode) { _inherits(ITF, _Barcode); function ITF() { _classCallCheck(this, ITF); return _possibleConstructorReturn(this, (ITF.__proto__ || Object.getPrototypeOf(ITF)).apply(this, arguments)); } _createClass(ITF, [{ key: 'valid', value: function valid() { return this.data.search(/^([0-9]{2})+$/) !== -1; } }, { key: 'encode', value: function encode() { var _this2 = this; // Calculate all the digit pairs var encoded = this.data.match(/.{2}/g).map(function (pair) { return _this2.encodePair(pair); }).join(''); return { data: _constants.START_BIN + encoded + _constants.END_BIN, text: this.text }; } // Calculate the data of a number pair }, { key: 'encodePair', value: function encodePair(pair) { var second = _constants.BINARIES[pair[1]]; return _constants.BINARIES[pair[0]].split('').map(function (first, idx) { return (first === '1' ? '111' : '1') + (second[idx] === '1' ? '000' : '0'); }).join(''); } }]); return ITF; }(_Barcode3.default); exports.default = ITF; /***/ }), /***/ "3f84": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"), baseRest = __webpack_require__("100e"), customDefaultsMerge = __webpack_require__("e031"), mergeWith = __webpack_require__("2411"); /** * This method is like `_.defaults` except that it recursively assigns * default properties. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 3.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.defaults * @example * * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); * // => { 'a': { 'b': 2, 'c': 3 } } */ var defaultsDeep = baseRest(function(args) { args.push(undefined, customDefaultsMerge); return apply(mergeWith, undefined, args); }); module.exports = defaultsDeep; /***/ }), /***/ "41c3": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"), isPrototype = __webpack_require__("eac5"), nativeKeysIn = __webpack_require__("ec8c"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } module.exports = baseKeysIn; /***/ }), /***/ "4245": /***/ (function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__("1290"); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } module.exports = getMapData; /***/ }), /***/ "42a2": /***/ (function(module, exports, __webpack_require__) { var DataView = __webpack_require__("b5a7"), Map = __webpack_require__("79bc"), Promise = __webpack_require__("1cec"), Set = __webpack_require__("c869"), WeakMap = __webpack_require__("39ff"), baseGetTag = __webpack_require__("3729"), toSource = __webpack_require__("dc57"); /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', promiseTag = '[object Promise]', setTag = '[object Set]', weakMapTag = '[object WeakMap]'; var dataViewTag = '[object DataView]'; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap); /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } module.exports = getTag; /***/ }), /***/ "4359": /***/ (function(module, exports) { /** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } module.exports = copyArray; /***/ }), /***/ "4362": /***/ (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__("df7c"); cwd = path.resolve(dir, cwd); }; })(); exports.exit = exports.kill = exports.umask = exports.dlopen = exports.uptime = exports.memoryUsage = exports.uvCounters = function() {}; exports.features = {}; /***/ }), /***/ "4461": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI11 = function (_MSI) { _inherits(MSI11, _MSI); function MSI11(data, options) { _classCallCheck(this, MSI11); return _possibleConstructorReturn(this, (MSI11.__proto__ || Object.getPrototypeOf(MSI11)).call(this, data + (0, _checksums.mod11)(data), options)); } return MSI11; }(_MSI3.default); exports.default = MSI11; /***/ }), /***/ "467f": /***/ (function(module, exports, __webpack_require__) { "use strict"; var createError = __webpack_require__("2d83"); /** * 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. */ module.exports = function settle(resolve, reject, response) { var validateStatus = response.config.validateStatus; if (!response.status || !validateStatus || validateStatus(response.status)) { resolve(response); } else { reject(createError( 'Request failed with status code ' + response.status, response.config, null, response.request, response )); } }; /***/ }), /***/ "4727": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI10 = function (_MSI) { _inherits(MSI10, _MSI); function MSI10(data, options) { _classCallCheck(this, MSI10); return _possibleConstructorReturn(this, (MSI10.__proto__ || Object.getPrototypeOf(MSI10)).call(this, data + (0, _checksums.mod10)(data), options)); } return MSI10; }(_MSI3.default); exports.default = MSI10; /***/ }), /***/ "49f4": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } module.exports = hashClear; /***/ }), /***/ "4a37": /***/ (function(module, exports, __webpack_require__) { !function(t,e){ true?module.exports=e():undefined}(this,function(){return function(t){function e(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(3)},function(t,e){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(void 0!==o&&null!==o){o=Object(o);for(var n=Object.keys(Object(o)),i=0,a=n.length;i<a;i++){var s=n[i],u=Object.getOwnPropertyDescriptor(o,s);void 0!==u&&u.enumerable&&(e[s]=o[s])}}}return e}})}()},function(t,e){"use strict";t.exports=function(){var t={};return t.utf16to8=function(t){var e,r,o,n;for(e="",o=t.length,r=0;r<o;r++)n=t.charCodeAt(r),n>=1&&n<=127?e+=t.charAt(r):n>2047?(e+=String.fromCharCode(224|n>>12&15),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|n>>0&63)):(e+=String.fromCharCode(192|n>>6&31),e+=String.fromCharCode(128|n>>0&63));return e},t.utf8to16=function(t){var e,r,o,n,i,a;for(e="",o=t.length,r=0;r<o;)switch(n=t.charCodeAt(r++),n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=t.charAt(r-1);break;case 12:case 13:i=t.charCodeAt(r++),e+=String.fromCharCode((31&n)<<6|63&i);break;case 14:i=t.charCodeAt(r++),a=t.charCodeAt(r++),e+=String.fromCharCode((15&n)<<12|(63&i)<<6|(63&a)<<0)}return e},t}()},function(t,e,r){"use strict";r(1),r(4);var o=r(2),n=function(){function t(t){var e=new QRCode(t.typeNumber,t.correctLevel);e.addData(t.text),e.make();var r=document.createElement("canvas");r.width=t.width,r.height=t.height;var o=r.getContext("2d"),n=(t.width-2*t.padding)/e.getModuleCount(),i=(t.height-2*t.padding)/e.getModuleCount();if(t.reverse){var a="rgba(0, 0, 0, 0)";o.fillStyle=a,t.foreground=a}else o.fillStyle=t.background;o.fillRect(0,0,r.width,r.height);for(var s=0;s<e.getModuleCount();s++)for(var u=0;u<e.getModuleCount();u++){o.fillStyle=e.isDark(s,u)?t.foreground:t.background;var h=Math.ceil((u+1)*n)-Math.floor(u*n),f=Math.ceil((s+1)*n)-Math.floor(s*n);o.fillRect(Math.round(u*n)+t.padding,Math.round(s*i)+t.padding,h,f)}return r}var e={};return e.getQrBase64=function(e,r){"string"!=typeof e&&(e=""),"string"==typeof r?r={text:r}:"object"!=typeof r&&(r={}),r=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},r);try{r.text=o.utf16to8(e)}catch(t){r.text=""+t}var n=t(r);return n.toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=n),t.exports=n},function(t,e){function r(t){this.mode=s.MODE_8BIT_BYTE,this.data=t}function o(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var o=0;o<t.length-r;o++)this.num[o]=t[o+r]}function i(t,e){this.totalCount=t,this.dataCount=e}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},o.prototype={addData:function(t){var e=new r(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),r=new a,o=0,n=0;n<e.length;n++)o+=e[n].dataCount;for(var n=0;n<this.dataList.length;n++){var s=this.dataList[n];r.put(s.mode,4),r.put(s.getLength(),f.getLengthInBits(s.mode,t)),s.write(r)}if(r.getLengthInBits()<=8*o)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4?this.modules[t+r][e+o]=!0:this.modules[t+r][e+o]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=f.getLostPoint(this);(0==r||t>o)&&(t=o,e=r)}return e},createMovieClip:function(t,e,r){var o=t.createEmptyMovieClip(e,r),n=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*n,s=0;s<this.modules[i].length;s++){var u=s*n,h=this.modules[i][s];h&&(o.beginFill(0,100),o.moveTo(u,a),o.lineTo(u+n,a),o.lineTo(u+n,a+n),o.lineTo(u,a+n),o.endFill())}return o},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%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(){for(var t=f.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var o=t[e],n=t[r];if(null==this.modules[o][n])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||2==i||a==-2||2==a||0==i&&0==a?this.modules[o+i][n+a]=!0:this.modules[o+i][n+a]=!1}},setupTypeNumber:function(t){for(var e=f.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(var r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,o=f.getBCHTypeInfo(r),n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(var n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,o=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[o][a-s]){var u=!1;i<t.length&&(u=1==(t[i]>>>n&1));var h=f.getMask(e,o,a-s);h&&(u=!u),this.modules[o][a-s]=u,n--,n==-1&&(i++,n=7)}if(o+=r,o<0||this.moduleCount<=o){o-=r,r=-r;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(t,e,r){for(var n=i.getRSBlocks(t,e),s=new a,u=0;u<r.length;u++){var h=r[u];s.put(h.mode,4),s.put(h.getLength(),f.getLengthInBits(h.mode,t)),h.write(s)}for(var l=0,u=0;u<n.length;u++)l+=n[u].dataCount;if(s.getLengthInBits()>8*l)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*l+")");for(s.getLengthInBits()+4<=8*l&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*l)break;if(s.put(o.PAD0,8),s.getLengthInBits()>=8*l)break;s.put(o.PAD1,8)}return o.createBytes(s,n)},o.createBytes=function(t,e){for(var r=0,o=0,i=0,a=new Array(e.length),s=new Array(e.length),u=0;u<e.length;u++){var h=e[u].dataCount,l=e[u].totalCount-h;o=Math.max(o,h),i=Math.max(i,l),a[u]=new Array(h);for(var g=0;g<a[u].length;g++)a[u][g]=255&t.buffer[g+r];r+=h;var c=f.getErrorCorrectPolynomial(l),d=new n(a[u],c.getLength()-1),v=d.mod(c);s[u]=new Array(c.getLength()-1);for(var g=0;g<s[u].length;g++){var m=g+v.getLength()-s[u].length;s[u][g]=m>=0?v.get(m):0}}for(var p=0,g=0;g<e.length;g++)p+=e[g].totalCount;for(var C=new Array(p),E=0,g=0;g<o;g++)for(var u=0;u<e.length;u++)g<a[u].length&&(C[E++]=a[u][g]);for(var g=0;g<i;g++)for(var u=0;u<e.length;u++)g<s[u].length&&(C[E++]=s[u][g]);return C};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},h={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={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(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<<f.getBCHDigit(e)-f.getBCHDigit(f.G15);return(t<<10|e)^f.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;f.getBCHDigit(e)-f.getBCHDigit(f.G18)>=0;)e^=f.G18<<f.getBCHDigit(e)-f.getBCHDigit(f.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case h.PATTERN000:return(e+r)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return r%3==0;case h.PATTERN011:return(e+r)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case h.PATTERN101:return e*r%2+e*r%3==0;case h.PATTERN110:return(e*r%2+e*r%3)%2==0;case h.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),r=0;r<t;r++)e=e.multiply(new n([1,l.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:return 8;case s.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,o=0;o<e;o++)for(var n=0;n<e;n++){for(var i=0,a=t.isDark(o,n),s=-1;s<=1;s++)if(!(o+s<0||e<=o+s))for(var u=-1;u<=1;u++)n+u<0||e<=n+u||0==s&&0==u||a==t.isDark(o+s,n+u)&&i++;i>5&&(r+=3+i-5)}for(var o=0;o<e-1;o++)for(var n=0;n<e-1;n++){var h=0;t.isDark(o,n)&&h++,t.isDark(o+1,n)&&h++,t.isDark(o,n+1)&&h++,t.isDark(o+1,n+1)&&h++,0!=h&&4!=h||(r+=3)}for(var o=0;o<e;o++)for(var n=0;n<e-6;n++)t.isDark(o,n)&&!t.isDark(o,n+1)&&t.isDark(o,n+2)&&t.isDark(o,n+3)&&t.isDark(o,n+4)&&!t.isDark(o,n+5)&&t.isDark(o,n+6)&&(r+=40);for(var n=0;n<e;n++)for(var o=0;o<e-6;o++)t.isDark(o,n)&&!t.isDark(o+1,n)&&t.isDark(o+2,n)&&t.isDark(o+3,n)&&t.isDark(o+4,n)&&!t.isDark(o+5,n)&&t.isDark(o+6,n)&&(r+=40);for(var f=0,n=0;n<e;n++)for(var o=0;o<e;o++)t.isDark(o,n)&&f++;var l=Math.abs(100*f/e/e-50)/5;return r+=10*l}},l={glog:function(t){if(t<1)throw new Error("glog("+t+")");return l.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return l.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)l.EXP_TABLE[g]=1<<g;for(var g=8;g<256;g++)l.EXP_TABLE[g]=l.EXP_TABLE[g-4]^l.EXP_TABLE[g-5]^l.EXP_TABLE[g-6]^l.EXP_TABLE[g-8];for(var g=0;g<255;g++)l.LOG_TABLE[l.EXP_TABLE[g]]=g;n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<t.getLength();o++)e[r+o]^=l.gexp(l.glog(this.get(r))+l.glog(t.get(o)));return new n(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=l.glog(this.get(0))-l.glog(t.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(var o=0;o<t.getLength();o++)r[o]^=l.gexp(l.glog(t.get(o))+e);return new n(r,0).mod(t)}},i.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]],i.getRSBlocks=function(t,e){var r=i.getRsBlockTable(t,e);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var o=r.length/3,n=new Array,a=0;a<o;a++)for(var s=r[3*a+0],u=r[3*a+1],h=r[3*a+2],f=0;f<s;f++)n.push(new i(u,h));return n},i.getRsBlockTable=function(t,e){switch(e){case u.L:return i.RS_BLOCK_TABLE[4*(t-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(t-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(t-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},a.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=u;try{t.exports={QRCode:o,QRErrorCorrectLevel:u}}catch(t){}}])}); /***/ }), /***/ "4a7b": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Config-specific merge-function which creates a new config-object * by merging two configuration objects together. * * @param {Object} config1 * @param {Object} config2 * @returns {Object} New object resulting from merging config2 to config1 */ module.exports = function mergeConfig(config1, config2) { // eslint-disable-next-line no-param-reassign config2 = config2 || {}; var config = {}; var valueFromConfig2Keys = ['url', 'method', 'data']; var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; var defaultToConfig2Keys = [ 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' ]; var directMergeKeys = ['validateStatus']; function getMergedValue(target, source) { if (utils.isPlainObject(target) && utils.isPlainObject(source)) { return utils.merge(target, source); } else if (utils.isPlainObject(source)) { return utils.merge({}, source); } else if (utils.isArray(source)) { return source.slice(); } return source; } function mergeDeepProperties(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } } utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } }); utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } }); utils.forEach(directMergeKeys, function merge(prop) { if (prop in config2) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (prop in config1) { config[prop] = getMergedValue(undefined, config1[prop]); } }); var axiosKeys = valueFromConfig2Keys .concat(mergeDeepPropertiesKeys) .concat(defaultToConfig2Keys) .concat(directMergeKeys); var otherKeys = Object .keys(config1) .concat(Object.keys(config2)) .filter(function filterAxiosKeys(key) { return axiosKeys.indexOf(key) === -1; }); utils.forEach(otherKeys, mergeDeepProperties); return config; }; /***/ }), /***/ "4b23": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // This is the master class, // it does require the start code to be included in the string var CODE128 = function (_Barcode) { _inherits(CODE128, _Barcode); function CODE128(data, options) { _classCallCheck(this, CODE128); // Get array of ascii codes from data var _this = _possibleConstructorReturn(this, (CODE128.__proto__ || Object.getPrototypeOf(CODE128)).call(this, data.substring(1), options)); _this.bytes = data.split('').map(function (char) { return char.charCodeAt(0); }); return _this; } _createClass(CODE128, [{ key: 'valid', value: function valid() { // ASCII value ranges 0-127, 200-211 return (/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data) ); } // The public encoding function }, { key: 'encode', value: function encode() { var bytes = this.bytes; // Remove the start code from the bytes and set its index var startIndex = bytes.shift() - 105; // Get start set by index var startSet = _constants.SET_BY_CODE[startIndex]; if (startSet === undefined) { throw new RangeError('The encoding does not start with a start character.'); } if (this.shouldEncodeAsEan128() === true) { bytes.unshift(_constants.FNC1); } // Start encode with the right type var encodingResult = CODE128.next(bytes, 1, startSet); return { text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, '') : this.text, data: // Add the start bits CODE128.getBar(startIndex) + // Add the encoded bits encodingResult.result + // Add the checksum CODE128.getBar((encodingResult.checksum + startIndex) % _constants.MODULO) + // Add the end bits CODE128.getBar(_constants.STOP) }; } // GS1-128/EAN-128 }, { key: 'shouldEncodeAsEan128', value: function shouldEncodeAsEan128() { var isEAN128 = this.options.ean128 || false; if (typeof isEAN128 === 'string') { isEAN128 = isEAN128.toLowerCase() === 'true'; } return isEAN128; } // Get a bar symbol by index }], [{ key: 'getBar', value: function getBar(index) { return _constants.BARS[index] ? _constants.BARS[index].toString() : ''; } // Correct an index by a set and shift it from the bytes array }, { key: 'correctIndex', value: function correctIndex(bytes, set) { if (set === _constants.SET_A) { var charCode = bytes.shift(); return charCode < 32 ? charCode + 64 : charCode - 32; } else if (set === _constants.SET_B) { return bytes.shift() - 32; } else { return (bytes.shift() - 48) * 10 + bytes.shift() - 48; } } }, { key: 'next', value: function next(bytes, pos, set) { if (!bytes.length) { return { result: '', checksum: 0 }; } var nextCode = void 0, index = void 0; // Special characters if (bytes[0] >= 200) { index = bytes.shift() - 105; var nextSet = _constants.SWAP[index]; // Swap to other set if (nextSet !== undefined) { nextCode = CODE128.next(bytes, pos + 1, nextSet); } // Continue on current set but encode a special character else { // Shift if ((set === _constants.SET_A || set === _constants.SET_B) && index === _constants.SHIFT) { // Convert the next character so that is encoded correctly bytes[0] = set === _constants.SET_A ? bytes[0] > 95 ? bytes[0] - 96 : bytes[0] : bytes[0] < 32 ? bytes[0] + 96 : bytes[0]; } nextCode = CODE128.next(bytes, pos + 1, set); } } // Continue encoding else { index = CODE128.correctIndex(bytes, set); nextCode = CODE128.next(bytes, pos + 1, set); } // Get the correct binary encoding and calculate the weight var enc = CODE128.getBar(index); var weight = index * pos; return { result: enc + nextCode.result, checksum: weight + nextCode.checksum }; } }]); return CODE128; }(_Barcode3.default); exports.default = CODE128; /***/ }), /***/ "4ced": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var ObjectRenderer = function () { function ObjectRenderer(object, encodings, options) { _classCallCheck(this, ObjectRenderer); this.object = object; this.encodings = encodings; this.options = options; } _createClass(ObjectRenderer, [{ key: "render", value: function render() { this.object.encodings = this.encodings; } }]); return ObjectRenderer; }(); exports.default = ObjectRenderer; /***/ }), /***/ "4f50": /***/ (function(module, exports, __webpack_require__) { var assignMergeValue = __webpack_require__("b760"), cloneBuffer = __webpack_require__("e538"), cloneTypedArray = __webpack_require__("c8fe"), copyArray = __webpack_require__("4359"), initCloneObject = __webpack_require__("fa21"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isArrayLikeObject = __webpack_require__("dcbe"), isBuffer = __webpack_require__("0d24"), isFunction = __webpack_require__("9520"), isObject = __webpack_require__("1a8c"), isPlainObject = __webpack_require__("60ed"), isTypedArray = __webpack_require__("73ac"), safeGet = __webpack_require__("8adb"), toPlainObject = __webpack_require__("8de2"); /** * A specialized version of `baseMerge` for arrays and objects which performs * deep merges and tracks traversed objects enabling objects with circular * references to be merged. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {string} key The key of the value to merge. * @param {number} srcIndex The index of `source`. * @param {Function} mergeFunc The function to merge values. * @param {Function} [customizer] The function to customize assigned values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); if (stacked) { assignMergeValue(object, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined; var isCommon = newValue === undefined; if (isCommon) { var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue); } else if (isBuff) { isCommon = false; newValue = cloneBuffer(srcValue, true); } else if (isTyped) { isCommon = false; newValue = cloneTypedArray(srcValue, true); } else { newValue = []; } } else if (isPlainObject(srcValue) || isArguments(srcValue)) { newValue = objValue; if (isArguments(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject(objValue) || isFunction(objValue)) { newValue = initCloneObject(srcValue); } } else { isCommon = false; } } if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack['delete'](srcValue); } assignMergeValue(object, key, newValue); } module.exports = baseMergeDeep; /***/ }), /***/ "50d8": /***/ (function(module, exports) { /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } module.exports = baseTimes; /***/ }), /***/ "5261": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = optionsFromStrings; // Convert string to integers/booleans where it should be function optionsFromStrings(options) { var intOptions = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"]; for (var intOption in intOptions) { if (intOptions.hasOwnProperty(intOption)) { intOption = intOptions[intOption]; if (typeof options[intOption] === "string") { options[intOption] = parseInt(options[intOption], 10); } } } if (typeof options["displayValue"] === "string") { options["displayValue"] = options["displayValue"] != "false"; } return options; } /***/ }), /***/ "5270": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var transformData = __webpack_require__("c401"); var isCancel = __webpack_require__("2e67"); var defaults = __webpack_require__("2444"); /** * Throws a `Cancel` if cancellation has been requested. */ function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } } /** * Dispatch a request to the server using the configured adapter. * * @param {object} config The config that is to be used for the request * @returns {Promise} The Promise to be fulfilled */ module.exports = function dispatchRequest(config) { throwIfCancellationRequested(config); // Ensure headers exist config.headers = config.headers || {}; // Transform request data config.data = transformData( config.data, config.headers, config.transformRequest ); // Flatten headers config.headers = utils.merge( config.headers.common || {}, config.headers[config.method] || {}, config.headers ); utils.forEach( ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) { delete config.headers[method]; } ); var adapter = config.adapter || defaults.adapter; return adapter(config).then(function onAdapterResolution(response) { throwIfCancellationRequested(config); // Transform response data response.data = transformData( response.data, response.headers, config.transformResponse ); return response; }, function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config); // Transform response data if (reason && reason.response) { reason.response.data = transformData( reason.response.data, reason.response.headers, config.transformResponse ); } } return Promise.reject(reason); }); }; /***/ }), /***/ "54eb": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbols = __webpack_require__("32f4"); /** * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbols(source, object) { return copyObject(source, getSymbols(source), object); } module.exports = copySymbols; /***/ }), /***/ "55a3": /***/ (function(module, exports) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; /***/ }), /***/ "5726": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("c243"); // Encode data string var encode = function encode(data, structure, separator) { var encoded = data.split('').map(function (val, idx) { return _constants.BINARIES[structure[idx]]; }).map(function (val, idx) { return val ? val[data[idx]] : ''; }); if (separator) { var last = data.length - 1; encoded = encoded.map(function (val, idx) { return idx < last ? val + separator : val; }); } return encoded.join(''); }; exports.default = encode; /***/ }), /***/ "57a5": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "583f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_5#Encoding var checksum = function checksum(data) { var result = data.split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 9 : sum + a * 3; }, 0); return result % 10; }; var EAN5 = function (_Barcode) { _inherits(EAN5, _Barcode); function EAN5(data, options) { _classCallCheck(this, EAN5); return _possibleConstructorReturn(this, (EAN5.__proto__ || Object.getPrototypeOf(EAN5)).call(this, data, options)); } _createClass(EAN5, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{5}$/) !== -1; } }, { key: 'encode', value: function encode() { var structure = _constants.EAN5_STRUCTURE[checksum(this.data)]; return { data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN5; }(_Barcode3.default); exports.default = EAN5; /***/ }), /***/ "585a": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; module.exports = freeGlobal; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) /***/ }), /***/ "5b01": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keys = __webpack_require__("ec69"); /** * The base implementation of `_.assign` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign(object, source) { return object && copyObject(source, keys(source), object); } module.exports = baseAssign; /***/ }), /***/ "5d89": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `dataView`. * * @private * @param {Object} dataView The data view to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned data view. */ function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } module.exports = cloneDataView; /***/ }), /***/ "5e2e": /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__("28c9"), listCacheDelete = __webpack_require__("69d5"), listCacheGet = __webpack_require__("b4c0"), listCacheHas = __webpack_require__("fba5"), listCacheSet = __webpack_require__("67ca"); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ "5f72": /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE__5f72__; /***/ }), /***/ "6044": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); module.exports = nativeCreate; /***/ }), /***/ "60ed": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), getPrototype = __webpack_require__("2dcb"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var objectTag = '[object Object]'; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object); /** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { * this.a = 1; * } * * _.isPlainObject(new Foo); * // => false * * _.isPlainObject([1, 2, 3]); * // => false * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true * * _.isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } module.exports = isPlainObject; /***/ }), /***/ "6220": /***/ (function(module, exports, __webpack_require__) { var baseIsDate = __webpack_require__("b1d2"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsDate = nodeUtil && nodeUtil.isDate; /** * Checks if `value` is classified as a `Date` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); * // => true * * _.isDate('Mon April 23 2012'); * // => false */ var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; module.exports = isDate; /***/ }), /***/ "62c5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var _barcodes = __webpack_require__("ff84"); var _barcodes2 = _interopRequireDefault(_barcodes); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _linearizeEncodings = __webpack_require__("a2b0"); var _linearizeEncodings2 = _interopRequireDefault(_linearizeEncodings); var _fixOptions = __webpack_require__("79f1"); var _fixOptions2 = _interopRequireDefault(_fixOptions); var _getRenderProperties = __webpack_require__("b1d8"); var _getRenderProperties2 = _interopRequireDefault(_getRenderProperties); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _ErrorHandler = __webpack_require__("bd8a"); var _ErrorHandler2 = _interopRequireDefault(_ErrorHandler); var _exceptions = __webpack_require__("dca2"); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // The protype of the object returned from the JsBarcode() call // Help functions var API = function API() {}; // The first call of the library API // Will return an object with all barcodes calls and the data that is used // by the renderers // Default values // Exceptions // Import all the barcodes var JsBarcode = function JsBarcode(element, text, options) { var api = new API(); if (typeof element === "undefined") { throw Error("No element to render on was provided."); } // Variables that will be pased through the API calls api._renderProperties = (0, _getRenderProperties2.default)(element); api._encodings = []; api._options = _defaults2.default; api._errorHandler = new _ErrorHandler2.default(api); // If text is set, use the simple syntax (render the barcode directly) if (typeof text !== "undefined") { options = options || {}; if (!options.format) { options.format = autoSelectBarcode(); } api.options(options)[options.format](text, options).render(); } return api; }; // To make tests work TODO: remove JsBarcode.getModule = function (name) { return _barcodes2.default[name]; }; // Register all barcodes for (var name in _barcodes2.default) { if (_barcodes2.default.hasOwnProperty(name)) { // Security check if the propery is a prototype property registerBarcode(_barcodes2.default, name); } } function registerBarcode(barcodes, name) { API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) { var api = this; return api._errorHandler.wrapBarcodeCall(function () { // Ensure text is options.text options.text = typeof options.text === 'undefined' ? undefined : '' + options.text; var newOptions = (0, _merge2.default)(api._options, options); newOptions = (0, _optionsFromStrings2.default)(newOptions); var Encoder = barcodes[name]; var encoded = encode(text, Encoder, newOptions); api._encodings.push(encoded); return api; }); }; } // encode() handles the Encoder call and builds the binary string to be rendered function encode(text, Encoder, options) { // Ensure that text is a string text = "" + text; var encoder = new Encoder(text, options); // If the input is not valid for the encoder, throw error. // If the valid callback option is set, call it instead of throwing error if (!encoder.valid()) { throw new _exceptions.InvalidInputException(encoder.constructor.name, text); } // Make a request for the binary data (and other infromation) that should be rendered var encoded = encoder.encode(); // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] encoded = (0, _linearizeEncodings2.default)(encoded); // Merge for (var i = 0; i < encoded.length; i++) { encoded[i].options = (0, _merge2.default)(options, encoded[i].options); } return encoded; } function autoSelectBarcode() { // If CODE128 exists. Use it if (_barcodes2.default["CODE128"]) { return "CODE128"; } // Else, take the first (probably only) barcode return Object.keys(_barcodes2.default)[0]; } // Sets global encoder options // Added to the api by the JsBarcode function API.prototype.options = function (options) { this._options = (0, _merge2.default)(this._options, options); return this; }; // Will create a blank space (usually in between barcodes) API.prototype.blank = function (size) { var zeroes = new Array(size + 1).join("0"); this._encodings.push({ data: zeroes }); return this; }; // Initialize JsBarcode on all HTML elements defined. API.prototype.init = function () { // Should do nothing if no elements where found if (!this._renderProperties) { return; } // Make sure renderProperies is an array if (!Array.isArray(this._renderProperties)) { this._renderProperties = [this._renderProperties]; } var renderProperty; for (var i in this._renderProperties) { renderProperty = this._renderProperties[i]; var options = (0, _merge2.default)(this._options, renderProperty.options); if (options.format == "auto") { options.format = autoSelectBarcode(); } this._errorHandler.wrapBarcodeCall(function () { var text = options.value; var Encoder = _barcodes2.default[options.format.toUpperCase()]; var encoded = encode(text, Encoder, options); render(renderProperty, encoded, options); }); } }; // The render API call. Calls the real render function. API.prototype.render = function () { if (!this._renderProperties) { throw new _exceptions.NoElementException(); } if (Array.isArray(this._renderProperties)) { for (var i = 0; i < this._renderProperties.length; i++) { render(this._renderProperties[i], this._encodings, this._options); } } else { render(this._renderProperties, this._encodings, this._options); } return this; }; API.prototype._defaults = _defaults2.default; // Prepares the encodings and calls the renderer function render(renderProperties, encodings, options) { encodings = (0, _linearizeEncodings2.default)(encodings); for (var i = 0; i < encodings.length; i++) { encodings[i].options = (0, _merge2.default)(options, encodings[i].options); (0, _fixOptions2.default)(encodings[i].options); } (0, _fixOptions2.default)(options); var Renderer = renderProperties.renderer; var renderer = new Renderer(renderProperties.element, encodings, options); renderer.render(); if (renderProperties.afterRender) { renderProperties.afterRender(); } } // Export to browser if (typeof window !== "undefined") { window.JsBarcode = JsBarcode; } // Export to jQuery /*global jQuery */ if (typeof jQuery !== 'undefined') { jQuery.fn.JsBarcode = function (content, options) { var elementArray = []; jQuery(this).each(function () { elementArray.push(this); }); return JsBarcode(elementArray, content, options); }; } // Export to commonJS module.exports = JsBarcode; /***/ }), /***/ "62e4": /***/ (function(module, exports) { module.exports = function(module) { if (!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if (!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /***/ "6747": /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /***/ "67ca": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }), /***/ "69d5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }), /***/ "6e53": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mod10 = mod10; exports.mod11 = mod11; function mod10(number) { var sum = 0; for (var i = 0; i < number.length; i++) { var n = parseInt(number[i]); if ((i + number.length) % 2 === 0) { sum += n; } else { sum += n * 2 % 10 + Math.floor(n * 2 / 10); } } return (10 - sum % 10) % 10; } function mod11(number) { var sum = 0; var weights = [2, 3, 4, 5, 6, 7]; for (var i = 0; i < number.length; i++) { var n = parseInt(number[number.length - 1 - i]); sum += weights[i % weights.length] * n; } return (11 - sum % 11) % 11; } /***/ }), /***/ "6f24": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _auto = __webpack_require__("bb5d"); var _auto2 = _interopRequireDefault(_auto); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128AUTO = function (_CODE) { _inherits(CODE128AUTO, _CODE); function CODE128AUTO(data, options) { _classCallCheck(this, CODE128AUTO); // ASCII value ranges 0-127, 200-211 if (/^[\x00-\x7F\xC8-\xD3]+$/.test(data)) { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, (0, _auto2.default)(data), options)); } else { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, data, options)); } return _possibleConstructorReturn(_this); } return CODE128AUTO; }(_CODE3.default); exports.default = CODE128AUTO; /***/ }), /***/ "6f6c": /***/ (function(module, exports) { /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; /** * Creates a clone of `regexp`. * * @private * @param {Object} regexp The regexp to clone. * @returns {Object} Returns the cloned regexp. */ function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } module.exports = cloneRegExp; /***/ }), /***/ "6fcd": /***/ (function(module, exports, __webpack_require__) { var baseTimes = __webpack_require__("50d8"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isIndex = __webpack_require__("c098"), isTypedArray = __webpack_require__("73ac"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties. isIndex(key, length) ))) { result.push(key); } } return result; } module.exports = arrayLikeKeys; /***/ }), /***/ "70b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128B = function (_CODE) { _inherits(CODE128B, _CODE); function CODE128B(string, options) { _classCallCheck(this, CODE128B); return _possibleConstructorReturn(this, (CODE128B.__proto__ || Object.getPrototypeOf(CODE128B)).call(this, _constants.B_START_CHAR + string, options)); } _createClass(CODE128B, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.B_CHARS + '+$').test(this.data); } }]); return CODE128B; }(_CODE3.default); exports.default = CODE128B; /***/ }), /***/ "721a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var CanvasRenderer = function () { function CanvasRenderer(canvas, encodings, options) { _classCallCheck(this, CanvasRenderer); this.canvas = canvas; this.encodings = encodings; this.options = options; } _createClass(CanvasRenderer, [{ key: "render", value: function render() { // Abort if the browser does not support HTML5 canvas if (!this.canvas.getContext) { throw new Error('The browser does not support canvas.'); } this.prepareCanvas(); for (var i = 0; i < this.encodings.length; i++) { var encodingOptions = (0, _merge2.default)(this.options, this.encodings[i].options); this.drawCanvasBarcode(encodingOptions, this.encodings[i]); this.drawCanvasText(encodingOptions, this.encodings[i]); this.moveCanvasDrawing(this.encodings[i]); } this.restoreCanvas(); } }, { key: "prepareCanvas", value: function prepareCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.save(); (0, _shared.calculateEncodingAttributes)(this.encodings, this.options, ctx); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); this.canvas.width = totalWidth + this.options.marginLeft + this.options.marginRight; this.canvas.height = maxHeight; // Paint the canvas ctx.clearRect(0, 0, this.canvas.width, this.canvas.height); if (this.options.background) { ctx.fillStyle = this.options.background; ctx.fillRect(0, 0, this.canvas.width, this.canvas.height); } ctx.translate(this.options.marginLeft, 0); } }, { key: "drawCanvasBarcode", value: function drawCanvasBarcode(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.marginTop + options.fontSize + options.textMargin; } else { yFrom = options.marginTop; } ctx.fillStyle = options.lineColor; for (var b = 0; b < binary.length; b++) { var x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { ctx.fillRect(x, yFrom, options.width, options.height); } else if (binary[b]) { ctx.fillRect(x, yFrom, options.width, options.height * binary[b]); } } } }, { key: "drawCanvasText", value: function drawCanvasText(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Draw the text if displayValue is set if (options.displayValue) { var x, y; if (options.textPosition == "top") { y = options.marginTop + options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.marginTop + options.fontSize; } ctx.font = font; // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; ctx.textAlign = 'left'; } else if (options.textAlign == "right") { x = encoding.width - 1; ctx.textAlign = 'right'; } // In all other cases, center the text else { x = encoding.width / 2; ctx.textAlign = 'center'; } ctx.fillText(encoding.text, x, y); } } }, { key: "moveCanvasDrawing", value: function moveCanvasDrawing(encoding) { var ctx = this.canvas.getContext("2d"); ctx.translate(encoding.width, 0); } }, { key: "restoreCanvas", value: function restoreCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.restore(); } }]); return CanvasRenderer; }(); exports.default = CanvasRenderer; /***/ }), /***/ "72af": /***/ (function(module, exports, __webpack_require__) { var createBaseFor = __webpack_require__("99cd"); /** * The base implementation of `baseForOwn` which iterates over `object` * properties returned by `keysFunc` and invokes `iteratee` for each property. * Iteratee functions may exit iteration early by explicitly returning `false`. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ var baseFor = createBaseFor(); module.exports = baseFor; /***/ }), /***/ "72f0": /***/ (function(module, exports) { /** * Creates a function that returns `value`. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * * var objects = _.times(2, _.constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] * * console.log(objects[0] === objects[1]); * // => true */ function constant(value) { return function() { return value; }; } module.exports = constant; /***/ }), /***/ "73ac": /***/ (function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__("743f"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; module.exports = isTypedArray; /***/ }), /***/ "743f": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isLength = __webpack_require__("b218"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } module.exports = baseIsTypedArray; /***/ }), /***/ "752b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _canvas = __webpack_require__("721a"); var _canvas2 = _interopRequireDefault(_canvas); var _svg = __webpack_require__("be5e"); var _svg2 = _interopRequireDefault(_svg); var _object = __webpack_require__("4ced"); var _object2 = _interopRequireDefault(_object); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { CanvasRenderer: _canvas2.default, SVGRenderer: _svg2.default, ObjectRenderer: _object2.default }; /***/ }), /***/ "7530": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"); /** Built-in value references. */ var objectCreate = Object.create; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} proto The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function object() {} return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object; object.prototype = undefined; return result; }; }()); module.exports = baseCreate; /***/ }), /***/ "76dd": /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__("ce86"); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }), /***/ "7948": /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ "79bc": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); module.exports = Map; /***/ }), /***/ "79f1": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = fixOptions; function fixOptions(options) { // Fix the margins options.marginTop = options.marginTop || options.margin; options.marginBottom = options.marginBottom || options.margin; options.marginRight = options.marginRight || options.margin; options.marginLeft = options.marginLeft || options.margin; return options; } /***/ }), /***/ "7a48": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } module.exports = hashHas; /***/ }), /***/ "7a77": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * A `Cancel` is an object that is thrown when an operation is canceled. * * @class * @param {string=} message The message. */ function Cancel(message) { this.message = message; } Cancel.prototype.toString = function toString() { return 'Cancel' + (this.message ? ': ' + this.message : ''); }; Cancel.prototype.__CANCEL__ = true; module.exports = Cancel; /***/ }), /***/ "7aac": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie (function standardBrowserEnv() { return { write: function write(name, value, expires, path, domain, secure) { var cookie = []; cookie.push(name + '=' + encodeURIComponent(value)); if (utils.isNumber(expires)) { cookie.push('expires=' + new Date(expires).toGMTString()); } if (utils.isString(path)) { cookie.push('path=' + path); } if (utils.isString(domain)) { cookie.push('domain=' + domain); } if (secure === true) { cookie.push('secure'); } document.cookie = cookie.join('; '); }, read: function read(name) { var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); return (match ? decodeURIComponent(match[3]) : null); }, remove: function remove(name) { this.write(name, '', Date.now() - 86400000); } }; })() : // Non standard browser env (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return { write: function write() {}, read: function read() { return null; }, remove: function remove() {} }; })() ); /***/ }), /***/ "7b83": /***/ (function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__("7c64"), mapCacheDelete = __webpack_require__("93ed"), mapCacheGet = __webpack_require__("2478"), mapCacheHas = __webpack_require__("a524"), mapCacheSet = __webpack_require__("1fc8"); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; module.exports = MapCache; /***/ }), /***/ "7c64": /***/ (function(module, exports, __webpack_require__) { var Hash = __webpack_require__("e24b"), ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } module.exports = mapCacheClear; /***/ }), /***/ "7cb9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pharmacode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf var pharmacode = function (_Barcode) { _inherits(pharmacode, _Barcode); function pharmacode(data, options) { _classCallCheck(this, pharmacode); var _this = _possibleConstructorReturn(this, (pharmacode.__proto__ || Object.getPrototypeOf(pharmacode)).call(this, data, options)); _this.number = parseInt(data, 10); return _this; } _createClass(pharmacode, [{ key: "encode", value: function encode() { var z = this.number; var result = ""; // http://i.imgur.com/RMm4UDJ.png // (source: http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf, page: 34) while (!isNaN(z) && z != 0) { if (z % 2 === 0) { // Even result = "11100" + result; z = (z - 2) / 2; } else { // Odd result = "100" + result; z = (z - 1) / 2; } } // Remove the two last zeroes result = result.slice(0, -2); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.number >= 3 && this.number <= 131070; } }]); return pharmacode; }(_Barcode3.default); exports.pharmacode = pharmacode; /***/ }), /***/ "7d1f": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), isArray = __webpack_require__("6747"); /** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the keys of `object`. * @param {Function} symbolsFunc The function to get the symbols of `object`. * @returns {Array} Returns the array of property names and symbols. */ function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); } module.exports = baseGetAllKeys; /***/ }), /***/ "7e64": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), stackClear = __webpack_require__("efb6"), stackDelete = __webpack_require__("2fcc"), stackGet = __webpack_require__("802a"), stackHas = __webpack_require__("55a3"), stackSet = __webpack_require__("d02c"); /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } // Add methods to `Stack`. Stack.prototype.clear = stackClear; Stack.prototype['delete'] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; module.exports = Stack; /***/ }), /***/ "802a": /***/ (function(module, exports) { /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; /***/ }), /***/ "8057": /***/ (function(module, exports) { /** * A specialized version of `_.forEach` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns `array`. */ function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } module.exports = arrayEach; /***/ }), /***/ "805f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1110 = function (_MSI) { _inherits(MSI1110, _MSI); function MSI1110(data, options) { _classCallCheck(this, MSI1110); data += (0, _checksums.mod11)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1110.__proto__ || Object.getPrototypeOf(MSI1110)).call(this, data, options)); } return MSI1110; }(_MSI3.default); exports.default = MSI1110; /***/ }), /***/ "8237": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */ (function () { 'use strict'; var ERROR = 'input is invalid type'; var WINDOW = typeof window === 'object'; var root = WINDOW ? window : {}; if (root.JS_MD5_NO_WINDOW) { WINDOW = false; } var WEB_WORKER = !WINDOW && typeof self === 'object'; var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node; if (NODE_JS) { root = global; } else if (WEB_WORKER) { root = self; } var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports; var AMD = true && __webpack_require__("3c35"); var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined'; var HEX_CHARS = '0123456789abcdef'.split(''); var EXTRA = [128, 32768, 8388608, -2147483648]; var SHIFT = [0, 8, 16, 24]; var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64']; var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); var blocks = [], buffer8; if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); buffer8 = new Uint8Array(buffer); blocks = new Uint32Array(buffer); } if (root.JS_MD5_NO_NODE_JS || !Array.isArray) { Array.isArray = function (obj) { return Object.prototype.toString.call(obj) === '[object Array]'; }; } if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { ArrayBuffer.isView = function (obj) { return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; }; } /** * @method hex * @memberof md5 * @description Output hash as hex string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} Hex string * @example * md5.hex('The quick brown fox jumps over the lazy dog'); * // equal to * md5('The quick brown fox jumps over the lazy dog'); */ /** * @method digest * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.digest('The quick brown fox jumps over the lazy dog'); */ /** * @method array * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.array('The quick brown fox jumps over the lazy dog'); */ /** * @method arrayBuffer * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.arrayBuffer('The quick brown fox jumps over the lazy dog'); */ /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.buffer('The quick brown fox jumps over the lazy dog'); */ /** * @method base64 * @memberof md5 * @description Output hash as base64 string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} base64 string * @example * md5.base64('The quick brown fox jumps over the lazy dog'); */ var createOutputMethod = function (outputType) { return function (message) { return new Md5(true).update(message)[outputType](); }; }; /** * @method create * @memberof md5 * @description Create Md5 object * @returns {Md5} Md5 object. * @example * var hash = md5.create(); */ /** * @method update * @memberof md5 * @description Create and update Md5 object * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @example * var hash = md5.update('The quick brown fox jumps over the lazy dog'); * // equal to * var hash = md5.create(); * hash.update('The quick brown fox jumps over the lazy dog'); */ var createMethod = function () { var method = createOutputMethod('hex'); if (NODE_JS) { method = nodeWrap(method); } method.create = function () { return new Md5(); }; method.update = function (message) { return method.create().update(message); }; for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method[type] = createOutputMethod(type); } return method; }; var nodeWrap = function (method) { var crypto = eval("require('crypto')"); var Buffer = eval("require('buffer').Buffer"); var nodeMethod = function (message) { if (typeof message === 'string') { return crypto.createHash('md5').update(message, 'utf8').digest('hex'); } else { if (message === null || message === undefined) { throw ERROR; } else if (message.constructor === ArrayBuffer) { message = new Uint8Array(message); } } if (Array.isArray(message) || ArrayBuffer.isView(message) || message.constructor === Buffer) { return crypto.createHash('md5').update(new Buffer(message)).digest('hex'); } else { return method(message); } }; return nodeMethod; }; /** * Md5 class * @class Md5 * @description This is internal class. * @see {@link md5.create} */ function Md5(sharedMemory) { if (sharedMemory) { blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; this.blocks = blocks; this.buffer8 = buffer8; } else { if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); this.buffer8 = new Uint8Array(buffer); this.blocks = new Uint32Array(buffer); } else { this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } } this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0; this.finalized = this.hashed = false; this.first = true; } /** * @method update * @memberof Md5 * @instance * @description Update hash * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @see {@link md5.update} */ Md5.prototype.update = function (message) { if (this.finalized) { return; } var notString, type = typeof message; if (type !== 'string') { if (type === 'object') { if (message === null) { throw ERROR; } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) { message = new Uint8Array(message); } else if (!Array.isArray(message)) { if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) { throw ERROR; } } } else { throw ERROR; } notString = true; } var code, index = 0, i, length = message.length, blocks = this.blocks; var buffer8 = this.buffer8; while (index < length) { if (this.hashed) { this.hashed = false; blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } if (notString) { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { buffer8[i++] = message[index]; } } else { for (i = this.start; index < length && i < 64; ++index) { blocks[i >> 2] |= message[index] << SHIFT[i++ & 3]; } } } else { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { buffer8[i++] = code; } else if (code < 0x800) { buffer8[i++] = 0xc0 | (code >> 6); buffer8[i++] = 0x80 | (code & 0x3f); } else if (code < 0xd800 || code >= 0xe000) { buffer8[i++] = 0xe0 | (code >> 12); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); buffer8[i++] = 0xf0 | (code >> 18); buffer8[i++] = 0x80 | ((code >> 12) & 0x3f); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } } } else { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { blocks[i >> 2] |= code << SHIFT[i++ & 3]; } else if (code < 0x800) { blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else if (code < 0xd800 || code >= 0xe000) { blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } } } } this.lastByteIndex = i; this.bytes += i - this.start; if (i >= 64) { this.start = i - 64; this.hash(); this.hashed = true; } else { this.start = i; } } if (this.bytes > 4294967295) { this.hBytes += this.bytes / 4294967296 << 0; this.bytes = this.bytes % 4294967296; } return this; }; Md5.prototype.finalize = function () { if (this.finalized) { return; } this.finalized = true; var blocks = this.blocks, i = this.lastByteIndex; blocks[i >> 2] |= EXTRA[i & 3]; if (i >= 56) { if (!this.hashed) { this.hash(); } blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } blocks[14] = this.bytes << 3; blocks[15] = this.hBytes << 3 | this.bytes >>> 29; this.hash(); }; Md5.prototype.hash = function () { var a, b, c, d, bc, da, blocks = this.blocks; if (this.first) { a = blocks[0] - 680876937; a = (a << 7 | a >>> 25) - 271733879 << 0; d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708; d = (d << 12 | d >>> 20) + a << 0; c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375; c = (c << 17 | c >>> 15) + d << 0; b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209; b = (b << 22 | b >>> 10) + c << 0; } else { a = this.h0; b = this.h1; c = this.h2; d = this.h3; a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330; b = (b << 22 | b >>> 10) + c << 0; } a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[10] - 42063; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329; b = (b << 22 | b >>> 10) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734; b = (b << 20 | b >>> 12) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[5] - 378558; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[8] - 2022574463; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[11] + 1839030562; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[14] - 35309556; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[1] - 1530992060; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[4] + 1272893353; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[7] - 155497632; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[10] - 1094730640; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[13] + 681279174; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[0] - 358537222; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[3] - 722521979; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[6] + 76029189; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[9] - 640364487; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[12] - 421815835; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[15] + 530742520; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[2] - 995338651; b = (b << 23 | b >>> 9) + c << 0; a += (c ^ (b | ~d)) + blocks[0] - 198630844; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[7] + 1126891415; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[14] - 1416354905; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[5] - 57434055; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[12] + 1700485571; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[3] - 1894986606; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[10] - 1051523; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[1] - 2054922799; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[8] + 1873313359; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[15] - 30611744; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[6] - 1560198380; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[13] + 1309151649; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[4] - 145523070; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[11] - 1120210379; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[2] + 718787259; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[9] - 343485551; b = (b << 21 | b >>> 11) + c << 0; if (this.first) { this.h0 = a + 1732584193 << 0; this.h1 = b - 271733879 << 0; this.h2 = c - 1732584194 << 0; this.h3 = d + 271733878 << 0; this.first = false; } else { this.h0 = this.h0 + a << 0; this.h1 = this.h1 + b << 0; this.h2 = this.h2 + c << 0; this.h3 = this.h3 + d << 0; } }; /** * @method hex * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.hex(); */ Md5.prototype.hex = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] + HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] + HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] + HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] + HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] + HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] + HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] + HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] + HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] + HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] + HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] + HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] + HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] + HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] + HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] + HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F]; }; /** * @method toString * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.toString(); */ Md5.prototype.toString = Md5.prototype.hex; /** * @method digest * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.digest} * @example * hash.digest(); */ Md5.prototype.digest = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return [ h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF, h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF, h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF, h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF ]; }; /** * @method array * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.array} * @example * hash.array(); */ Md5.prototype.array = Md5.prototype.digest; /** * @method arrayBuffer * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.arrayBuffer} * @example * hash.arrayBuffer(); */ Md5.prototype.arrayBuffer = function () { this.finalize(); var buffer = new ArrayBuffer(16); var blocks = new Uint32Array(buffer); blocks[0] = this.h0; blocks[1] = this.h1; blocks[2] = this.h2; blocks[3] = this.h3; return buffer; }; /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.buffer} * @example * hash.buffer(); */ Md5.prototype.buffer = Md5.prototype.arrayBuffer; /** * @method base64 * @memberof Md5 * @instance * @description Output hash as base64 string * @returns {String} base64 string * @see {@link md5.base64} * @example * hash.base64(); */ Md5.prototype.base64 = function () { var v1, v2, v3, base64Str = '', bytes = this.array(); for (var i = 0; i < 15;) { v1 = bytes[i++]; v2 = bytes[i++]; v3 = bytes[i++]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] + BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] + BASE64_ENCODE_CHAR[v3 & 63]; } v1 = bytes[i]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4) & 63] + '=='; return base64Str; }; var exports = createMethod(); if (COMMON_JS) { module.exports = exports; } else { /** * @method md5 * @description Md5 hash function, export to global in browsers. * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} md5 hashes * @example * md5(''); // d41d8cd98f00b204e9800998ecf8427e * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6 * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0 * * // It also supports UTF-8 encoding * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07 * * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer` * md5([]); // d41d8cd98f00b204e9800998ecf8427e * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e */ root.md5 = exports; if (AMD) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } })(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"), __webpack_require__("c8ba"))) /***/ }), /***/ "83b9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var isAbsoluteURL = __webpack_require__("d925"); var combineURLs = __webpack_require__("e683"); /** * 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 */ module.exports = function buildFullPath(baseURL, requestedURL) { if (baseURL && !isAbsoluteURL(requestedURL)) { return combineURLs(baseURL, requestedURL); } return requestedURL; }; /***/ }), /***/ "852e": /***/ (function(module, exports, __webpack_require__) { /*! js-cookie v3.0.1 | MIT */ ; (function (global, factory) { true ? module.exports = factory() : undefined; }(this, (function () { 'use strict'; /* eslint-disable no-var */ function assign (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { target[key] = source[key]; } } return target } /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = { read: function (value) { if (value[0] === '"') { value = value.slice(1, -1); } return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) }, write: function (value) { return encodeURIComponent(value).replace( /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent ) } }; /* eslint-enable no-var */ /* eslint-disable no-var */ function init (converter, defaultAttributes) { function set (key, value, attributes) { if (typeof document === 'undefined') { return } attributes = assign({}, defaultAttributes, attributes); if (typeof attributes.expires === 'number') { attributes.expires = new Date(Date.now() + attributes.expires * 864e5); } if (attributes.expires) { attributes.expires = attributes.expires.toUTCString(); } key = encodeURIComponent(key) .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent) .replace(/[()]/g, escape); var stringifiedAttributes = ''; for (var attributeName in attributes) { if (!attributes[attributeName]) { continue } stringifiedAttributes += '; ' + attributeName; if (attributes[attributeName] === true) { continue } // Considers RFC 6265 section 5.2: // ... // 3. If the remaining unparsed-attributes contains a %x3B (";") // character: // Consume the characters of the unparsed-attributes up to, // not including, the first %x3B (";") character. // ... stringifiedAttributes += '=' + attributes[attributeName].split(';')[0]; } return (document.cookie = key + '=' + converter.write(value, key) + stringifiedAttributes) } function get (key) { if (typeof document === 'undefined' || (arguments.length && !key)) { return } // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. var cookies = document.cookie ? document.cookie.split('; ') : []; var jar = {}; for (var i = 0; i < cookies.length; i++) { var parts = cookies[i].split('='); var value = parts.slice(1).join('='); try { var foundKey = decodeURIComponent(parts[0]); jar[foundKey] = converter.read(value, foundKey); if (key === foundKey) { break } } catch (e) {} } return key ? jar[key] : jar } return Object.create( { set: set, get: get, remove: function (key, attributes) { set( key, '', assign({}, attributes, { expires: -1 }) ); }, withAttributes: function (attributes) { return init(this.converter, assign({}, this.attributes, attributes)) }, withConverter: function (converter) { return init(assign({}, this.converter, converter), this.attributes) } }, { attributes: { value: Object.freeze(defaultAttributes) }, converter: { value: Object.freeze(converter) } } ) } var api = init(defaultConverter, { path: '/' }); /* eslint-enable no-var */ return api; }))); /***/ }), /***/ "85e3": /***/ (function(module, exports) { /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } module.exports = apply; /***/ }), /***/ "872a": /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__("3b4a"); /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } module.exports = baseAssignValue; /***/ }), /***/ "8861": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1010 = function (_MSI) { _inherits(MSI1010, _MSI); function MSI1010(data, options) { _classCallCheck(this, MSI1010); data += (0, _checksums.mod10)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1010.__proto__ || Object.getPrototypeOf(MSI1010)).call(this, data, options)); } return MSI1010; }(_MSI3.default); exports.default = MSI1010; /***/ }), /***/ "8875": /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller // MIT license // source: https://github.com/amiller-gh/currentScript-polyfill // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505 (function (root, factory) { if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} }(typeof self !== 'undefined' ? self : this, function () { function getCurrentScript () { var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript') // for chrome if (!descriptor && 'currentScript' in document && document.currentScript) { return document.currentScript } // for other browsers with native support for currentScript if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) { return document.currentScript } // IE 8-10 support script readyState // IE 11+ & Firefox support stack trace try { throw new Error(); } catch (err) { // Find the second match for the "at" string to get file src url from stack. var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), scriptLocation = (stackDetails && stackDetails[1]) || false, line = (stackDetails && stackDetails[2]) || false, currentLocation = document.location.href.replace(document.location.hash, ''), pageSource, inlineScriptSourceRegExp, inlineScriptSource, scripts = document.getElementsByTagName('script'); // Live NodeList collection if (scriptLocation === currentLocation) { pageSource = document.documentElement.outerHTML; inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i'); inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim(); } for (var i = 0; i < scripts.length; i++) { // If ready state is interactive, return the script tag if (scripts[i].readyState === 'interactive') { return scripts[i]; } // If src matches, return the script tag if (scripts[i].src === scriptLocation) { return scripts[i]; } // If inline source matches, return the script tag if ( scriptLocation === currentLocation && scripts[i].innerHTML && scripts[i].innerHTML.trim() === inlineScriptSource ) { return scripts[i]; } } // If no match, return null return null; } }; return getCurrentScript })); /***/ }), /***/ "89a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _constants = __webpack_require__("c243"); var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Binary_encoding_of_data_digits_into_EAN-13_barcode // Calculate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit var checksum = function checksum(number) { var res = number.substr(0, 12).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 3 : sum + a; }, 0); return (10 - res % 10) % 10; }; var EAN13 = function (_EAN) { _inherits(EAN13, _EAN); function EAN13(data, options) { _classCallCheck(this, EAN13); // Add checksum if it does not exist if (data.search(/^[0-9]{12}$/) !== -1) { data += checksum(data); } // Adds a last character to the end of the barcode var _this = _possibleConstructorReturn(this, (EAN13.__proto__ || Object.getPrototypeOf(EAN13)).call(this, data, options)); _this.lastChar = options.lastChar; return _this; } _createClass(EAN13, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftText', this).call(this, 1, 6); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(1, 6); var structure = _constants.EAN13_STRUCTURE[this.data[0]]; return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftEncode', this).call(this, data, structure); } }, { key: 'rightText', value: function rightText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightText', this).call(this, 7, 6); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(7, 6); return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightEncode', this).call(this, data, 'RRRRRR'); } // The "standard" way of printing EAN13 barcodes with guard bars }, { key: 'encodeGuarded', value: function encodeGuarded() { var data = _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'encodeGuarded', this).call(this); // Extend data with left digit & last character if (this.options.displayValue) { data.unshift({ data: '000000000000', text: this.text.substr(0, 1), options: { textAlign: 'left', fontSize: this.fontSize } }); if (this.options.lastChar) { data.push({ data: '00' }); data.push({ data: '00000', text: this.options.lastChar, options: { fontSize: this.fontSize } }); } } return data; } }]); return EAN13; }(_EAN3.default); exports.default = EAN13; /***/ }), /***/ "8adb": /***/ (function(module, exports) { /** * Gets the value at `key`, unless `key` is "__proto__". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function safeGet(object, key) { if (key == '__proto__') { return; } return object[key]; } module.exports = safeGet; /***/ }), /***/ "8de2": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * Converts `value` to a plain object flattening inherited enumerable string * keyed properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns the converted plain object. * @example * * function Foo() { * this.b = 2; * } * * Foo.prototype.c = 3; * * _.assign({ 'a': 1 }, new Foo); * // => { 'a': 1, 'b': 2 } * * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); * // => { 'a': 1, 'b': 2, 'c': 3 } */ function toPlainObject(value) { return copyObject(value, keysIn(value)); } module.exports = toPlainObject; /***/ }), /***/ "8df4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var Cancel = __webpack_require__("7a77"); /** * A `CancelToken` is an object that can be used to request cancellation of an operation. * * @class * @param {Function} executor The executor function. */ function CancelToken(executor) { if (typeof executor !== 'function') { throw new TypeError('executor must be a function.'); } var resolvePromise; this.promise = new Promise(function promiseExecutor(resolve) { resolvePromise = resolve; }); var token = this; executor(function cancel(message) { if (token.reason) { // Cancellation has already been requested return; } token.reason = new Cancel(message); resolvePromise(token.reason); }); } /** * Throws a `Cancel` if cancellation has been requested. */ CancelToken.prototype.throwIfRequested = function throwIfRequested() { if (this.reason) { throw this.reason; } }; /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ CancelToken.source = function source() { var cancel; var token = new CancelToken(function executor(c) { cancel = c; }); return { token: token, cancel: cancel }; }; module.exports = CancelToken; /***/ }), /***/ "8e51": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MSI1110 = exports.MSI1010 = exports.MSI11 = exports.MSI10 = exports.MSI = undefined; var _MSI = __webpack_require__("124f"); var _MSI2 = _interopRequireDefault(_MSI); var _MSI3 = __webpack_require__("4727"); var _MSI4 = _interopRequireDefault(_MSI3); var _MSI5 = __webpack_require__("4461"); var _MSI6 = _interopRequireDefault(_MSI5); var _MSI7 = __webpack_require__("8861"); var _MSI8 = _interopRequireDefault(_MSI7); var _MSI9 = __webpack_require__("805f"); var _MSI10 = _interopRequireDefault(_MSI9); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.MSI = _MSI2.default; exports.MSI10 = _MSI4.default; exports.MSI11 = _MSI6.default; exports.MSI1010 = _MSI8.default; exports.MSI1110 = _MSI10.default; /***/ }), /***/ "8eeb": /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__("32b3"), baseAssignValue = __webpack_require__("872a"); /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } module.exports = copyObject; /***/ }), /***/ "91e9": /***/ (function(module, exports) { /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } module.exports = overArg; /***/ }), /***/ "93ed": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } module.exports = mapCacheDelete; /***/ }), /***/ "9520": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObject = __webpack_require__("1a8c"); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }), /***/ "9638": /***/ (function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }), /***/ "96f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.has` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHas(object, key) { return object != null && hasOwnProperty.call(object, key); } module.exports = baseHas; /***/ }), /***/ "9934": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeysIn = __webpack_require__("41c3"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } module.exports = keysIn; /***/ }), /***/ "99cd": /***/ (function(module, exports) { /** * Creates a base function for methods like `_.forIn` and `_.forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } module.exports = createBaseFor; /***/ }), /***/ "99d3": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__("585a"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); module.exports = nodeUtil; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "9aff": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"), isArrayLike = __webpack_require__("30c9"), isIndex = __webpack_require__("c098"), isObject = __webpack_require__("1a8c"); /** * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, * else `false`. */ function isIterateeCall(value, index, object) { if (!isObject(object)) { return false; } var type = typeof index; if (type == 'number' ? (isArrayLike(object) && isIndex(index, object.length)) : (type == 'string' && index in object) ) { return eq(object[index], value); } return false; } module.exports = isIterateeCall; /***/ }), /***/ "9e69": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Symbol = root.Symbol; module.exports = Symbol; /***/ }), /***/ "9ffa": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ITF14 = exports.ITF = undefined; var _ITF = __webpack_require__("3c7c"); var _ITF2 = _interopRequireDefault(_ITF); var _ITF3 = __webpack_require__("07df"); var _ITF4 = _interopRequireDefault(_ITF3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.ITF = _ITF2.default; exports.ITF14 = _ITF4.default; /***/ }), /***/ "a029": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), getPrototype = __webpack_require__("2dcb"), getSymbols = __webpack_require__("32f4"), stubArray = __webpack_require__("d327"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); object = getPrototype(object); } return result; }; module.exports = getSymbolsIn; /***/ }), /***/ "a2b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = linearizeEncodings; // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] function linearizeEncodings(encodings) { var linearEncodings = []; function nextLevel(encoded) { if (Array.isArray(encoded)) { for (var i = 0; i < encoded.length; i++) { nextLevel(encoded[i]); } } else { encoded.text = encoded.text || ""; encoded.data = encoded.data || ""; linearEncodings.push(encoded); } } nextLevel(encodings); return linearEncodings; } /***/ }), /***/ "a2db": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; /** * Creates a clone of the `symbol` object. * * @private * @param {Object} symbol The symbol object to clone. * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } module.exports = cloneSymbol; /***/ }), /***/ "a454": /***/ (function(module, exports, __webpack_require__) { var constant = __webpack_require__("72f0"), defineProperty = __webpack_require__("3b4a"), identity = __webpack_require__("cd9d"); /** * The base implementation of `setToString` without support for hot loop shorting. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, 'toString', { 'configurable': true, 'enumerable': false, 'value': constant(string), 'writable': true }); }; module.exports = baseSetToString; /***/ }), /***/ "a524": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { return getMapData(this, key).has(key); } module.exports = mapCacheHas; /***/ }), /***/ "a5d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_2#Encoding var EAN2 = function (_Barcode) { _inherits(EAN2, _Barcode); function EAN2(data, options) { _classCallCheck(this, EAN2); return _possibleConstructorReturn(this, (EAN2.__proto__ || Object.getPrototypeOf(EAN2)).call(this, data, options)); } _createClass(EAN2, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{2}$/) !== -1; } }, { key: 'encode', value: function encode() { // Choose the structure based on the number mod 4 var structure = _constants.EAN2_STRUCTURE[parseInt(this.data) % 4]; return { // Start bits + Encode the two digits with 01 in between data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN2; }(_Barcode3.default); exports.default = EAN2; /***/ }), /***/ "a994": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbols = __webpack_require__("32f4"), keys = __webpack_require__("ec69"); /** * Creates an array of own enumerable property names and symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeys(object) { return baseGetAllKeys(object, keys, getSymbols); } module.exports = getAllKeys; /***/ }), /***/ "aab3": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getOptionsFromElement(element) { var options = {}; for (var property in _defaults2.default) { if (_defaults2.default.hasOwnProperty(property)) { // jsbarcode-* if (element.hasAttribute("jsbarcode-" + property.toLowerCase())) { options[property] = element.getAttribute("jsbarcode-" + property.toLowerCase()); } // data-* if (element.hasAttribute("data-" + property.toLowerCase())) { options[property] = element.getAttribute("data-" + property.toLowerCase()); } } } options["value"] = element.getAttribute("jsbarcode-value") || element.getAttribute("data-value"); // Since all atributes are string they need to be converted to integers options = (0, _optionsFromStrings2.default)(options); return options; } exports.default = getOptionsFromElement; /***/ }), /***/ "ab5b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTotalWidthOfEncodings = exports.calculateEncodingAttributes = exports.getBarcodePadding = exports.getEncodingHeight = exports.getMaximumHeightOfEncodings = undefined; var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getEncodingHeight(encoding, options) { return options.height + (options.displayValue && encoding.text.length > 0 ? options.fontSize + options.textMargin : 0) + options.marginTop + options.marginBottom; } function getBarcodePadding(textWidth, barcodeWidth, options) { if (options.displayValue && barcodeWidth < textWidth) { if (options.textAlign == "center") { return Math.floor((textWidth - barcodeWidth) / 2); } else if (options.textAlign == "left") { return 0; } else if (options.textAlign == "right") { return Math.floor(textWidth - barcodeWidth); } } return 0; } function calculateEncodingAttributes(encodings, barcodeOptions, context) { for (var i = 0; i < encodings.length; i++) { var encoding = encodings[i]; var options = (0, _merge2.default)(barcodeOptions, encoding.options); // Calculate the width of the encoding var textWidth; if (options.displayValue) { textWidth = messureText(encoding.text, options, context); } else { textWidth = 0; } var barcodeWidth = encoding.data.length * options.width; encoding.width = Math.ceil(Math.max(textWidth, barcodeWidth)); encoding.height = getEncodingHeight(encoding, options); encoding.barcodePadding = getBarcodePadding(textWidth, barcodeWidth, options); } } function getTotalWidthOfEncodings(encodings) { var totalWidth = 0; for (var i = 0; i < encodings.length; i++) { totalWidth += encodings[i].width; } return totalWidth; } function getMaximumHeightOfEncodings(encodings) { var maxHeight = 0; for (var i = 0; i < encodings.length; i++) { if (encodings[i].height > maxHeight) { maxHeight = encodings[i].height; } } return maxHeight; } function messureText(string, options, context) { var ctx; if (context) { ctx = context; } else if (typeof document !== "undefined") { ctx = document.createElement("canvas").getContext("2d"); } else { // If the text cannot be messured we will return 0. // This will make some barcode with big text render incorrectly return 0; } ctx.font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Calculate the width of the encoding var measureTextResult = ctx.measureText(string); if (!measureTextResult) { // Some implementations don't implement measureText and return undefined. // If the text cannot be measured we will return 0. // This will make some barcode with big text render incorrectly return 0; } var size = measureTextResult.width; return size; } exports.getMaximumHeightOfEncodings = getMaximumHeightOfEncodings; exports.getEncodingHeight = getEncodingHeight; exports.getBarcodePadding = getBarcodePadding; exports.calculateEncodingAttributes = calculateEncodingAttributes; exports.getTotalWidthOfEncodings = getTotalWidthOfEncodings; /***/ }), /***/ "b047": /***/ (function(module, exports) { /** * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. */ function baseUnary(func) { return function(value) { return func(value); }; } module.exports = baseUnary; /***/ }), /***/ "b1d2": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var dateTag = '[object Date]'; /** * The base implementation of `_.isDate` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { return isObjectLike(value) && baseGetTag(value) == dateTag; } module.exports = baseIsDate; /***/ }), /***/ "b1d8": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* global HTMLImageElement */ /* global HTMLCanvasElement */ /* global SVGElement */ var _getOptionsFromElement = __webpack_require__("aab3"); var _getOptionsFromElement2 = _interopRequireDefault(_getOptionsFromElement); var _renderers = __webpack_require__("752b"); var _renderers2 = _interopRequireDefault(_renderers); var _exceptions = __webpack_require__("dca2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Takes an element and returns an object with information about how // it should be rendered // This could also return an array with these objects // { // element: The element that the renderer should draw on // renderer: The name of the renderer // afterRender (optional): If something has to done after the renderer // completed, calls afterRender (function) // options (optional): Options that can be defined in the element // } function getRenderProperties(element) { // If the element is a string, query select call again if (typeof element === "string") { return querySelectedRenderProperties(element); } // If element is array. Recursivly call with every object in the array else if (Array.isArray(element)) { var returnArray = []; for (var i = 0; i < element.length; i++) { returnArray.push(getRenderProperties(element[i])); } return returnArray; } // If element, render on canvas and set the uri as src else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLImageElement) { return newCanvasRenderProperties(element); } // If SVG else if (element && element.nodeName && element.nodeName.toLowerCase() === 'svg' || typeof SVGElement !== 'undefined' && element instanceof SVGElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.SVGRenderer }; } // If canvas (in browser) else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLCanvasElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.CanvasRenderer }; } // If canvas (in node) else if (element && element.getContext) { return { element: element, renderer: _renderers2.default.CanvasRenderer }; } else if (element && (typeof element === "undefined" ? "undefined" : _typeof(element)) === 'object' && !element.nodeName) { return { element: element, renderer: _renderers2.default.ObjectRenderer }; } else { throw new _exceptions.InvalidElementException(); } } function querySelectedRenderProperties(string) { var selector = document.querySelectorAll(string); if (selector.length === 0) { return undefined; } else { var returnArray = []; for (var i = 0; i < selector.length; i++) { returnArray.push(getRenderProperties(selector[i])); } return returnArray; } } function newCanvasRenderProperties(imgElement) { var canvas = document.createElement('canvas'); return { element: canvas, options: (0, _getOptionsFromElement2.default)(imgElement), renderer: _renderers2.default.CanvasRenderer, afterRender: function afterRender() { imgElement.setAttribute("src", canvas.toDataURL()); } }; } exports.default = getRenderProperties; /***/ }), /***/ "b218": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; /***/ }), /***/ "b4c0": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } module.exports = listCacheGet; /***/ }), /***/ "b50d": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var settle = __webpack_require__("467f"); var cookies = __webpack_require__("7aac"); var buildURL = __webpack_require__("30b5"); var buildFullPath = __webpack_require__("83b9"); var parseHeaders = __webpack_require__("c345"); var isURLSameOrigin = __webpack_require__("3934"); var createError = __webpack_require__("2d83"); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { var requestData = config.data; var requestHeaders = config.headers; if (utils.isFormData(requestData)) { delete requestHeaders['Content-Type']; // Let the browser set it } if ( (utils.isBlob(requestData) || utils.isFile(requestData)) && requestData.type ) { delete requestHeaders['Content-Type']; // Let the browser set it } var request = new XMLHttpRequest(); // HTTP basic authentication if (config.auth) { var username = config.auth.username || ''; var password = unescape(encodeURIComponent(config.auth.password)) || ''; requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); } var fullPath = buildFullPath(config.baseURL, config.url); request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); // Set the request timeout in MS request.timeout = config.timeout; // Listen for ready state request.onreadystatechange = function handleLoad() { if (!request || request.readyState !== 4) { return; } // The request errored out and we didn't get a response, this will be // handled by onerror instead // With one exception: request that using file: protocol, most browsers // will return status as 0 even though it's a successful request if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { return; } // Prepare the response var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; var response = { data: responseData, status: request.status, statusText: request.statusText, headers: responseHeaders, config: config, request: request }; settle(resolve, reject, response); // Clean up request request = null; }; // Handle browser request cancellation (as opposed to a manual cancellation) request.onabort = function handleAbort() { if (!request) { return; } reject(createError('Request aborted', config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Handle low level network errors request.onerror = function handleError() { // Real errors are hidden from us by the browser // onerror should only fire if it's a network error reject(createError('Network Error', config, null, request)); // Clean up request request = null; }; // Handle timeout request.ontimeout = function handleTimeout() { var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; if (config.timeoutErrorMessage) { timeoutErrorMessage = config.timeoutErrorMessage; } reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Add xsrf header // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined; if (xsrfValue) { requestHeaders[config.xsrfHeaderName] = xsrfValue; } } // Add headers to the request if ('setRequestHeader' in request) { utils.forEach(requestHeaders, function setRequestHeader(val, key) { if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { // Remove Content-Type if data is undefined delete requestHeaders[key]; } else { // Otherwise add header to the request request.setRequestHeader(key, val); } }); } // Add withCredentials to request if needed if (!utils.isUndefined(config.withCredentials)) { request.withCredentials = !!config.withCredentials; } // Add responseType to request if needed if (config.responseType) { try { request.responseType = config.responseType; } catch (e) { // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. if (config.responseType !== 'json') { throw e; } } } // Handle progress if needed if (typeof config.onDownloadProgress === 'function') { request.addEventListener('progress', config.onDownloadProgress); } // Not all browsers support upload events if (typeof config.onUploadProgress === 'function' && request.upload) { request.upload.addEventListener('progress', config.onUploadProgress); } if (config.cancelToken) { // Handle cancellation config.cancelToken.promise.then(function onCanceled(cancel) { if (!request) { return; } request.abort(); reject(cancel); // Clean up request request = null; }); } if (!requestData) { requestData = null; } // Send the request request.send(requestData); }); }; /***/ }), /***/ "b5a7": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var DataView = getNative(root, 'DataView'); module.exports = DataView; /***/ }), /***/ "b760": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** * This function is like `assignValue` except that it doesn't assign * `undefined` values. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignMergeValue(object, key, value) { if ((value !== undefined && !eq(object[key], value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignMergeValue; /***/ }), /***/ "bb5d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("f08e"); // Match Set functions var matchSetALength = function matchSetALength(string) { return string.match(new RegExp('^' + _constants.A_CHARS + '*'))[0].length; }; var matchSetBLength = function matchSetBLength(string) { return string.match(new RegExp('^' + _constants.B_CHARS + '*'))[0].length; }; var matchSetC = function matchSetC(string) { return string.match(new RegExp('^' + _constants.C_CHARS + '*'))[0]; }; // CODE128A or CODE128B function autoSelectFromAB(string, isA) { var ranges = isA ? _constants.A_CHARS : _constants.B_CHARS; var untilC = string.match(new RegExp('^(' + ranges + '+?)(([0-9]{2}){2,})([^0-9]|$)')); if (untilC) { return untilC[1] + String.fromCharCode(204) + autoSelectFromC(string.substring(untilC[1].length)); } var chars = string.match(new RegExp('^' + ranges + '+'))[0]; if (chars.length === string.length) { return string; } return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA); } // CODE128C function autoSelectFromC(string) { var cMatch = matchSetC(string); var length = cMatch.length; if (length === string.length) { return string; } string = string.substring(length); // Select A/B depending on the longest match var isA = matchSetALength(string) >= matchSetBLength(string); return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA); } // Detect Code Set (A, B or C) and format the string exports.default = function (string) { var newString = void 0; var cLength = matchSetC(string).length; // Select 128C if the string start with enough digits if (cLength >= 2) { newString = _constants.C_START_CHAR + autoSelectFromC(string); } else { // Select A/B depending on the longest match var isA = matchSetALength(string) > matchSetBLength(string); newString = (isA ? _constants.A_START_CHAR : _constants.B_START_CHAR) + autoSelectFromAB(string, isA); } return newString.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, // Any sequence between 205 and 206 characters function (match, char) { return String.fromCharCode(203) + char; }); }; /***/ }), /***/ "bbc0": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED ? undefined : result; } return hasOwnProperty.call(data, key) ? data[key] : undefined; } module.exports = hashGet; /***/ }), /***/ "bc3a": /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("cee4"); /***/ }), /***/ "bd8a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /*eslint no-console: 0 */ var ErrorHandler = function () { function ErrorHandler(api) { _classCallCheck(this, ErrorHandler); this.api = api; } _createClass(ErrorHandler, [{ key: "handleCatch", value: function handleCatch(e) { // If babel supported extending of Error in a correct way instanceof would be used here if (e.name === "InvalidInputException") { if (this.api._options.valid !== this.api._defaults.valid) { this.api._options.valid(false); } else { throw e.message; } } else { throw e; } this.api.render = function () {}; } }, { key: "wrapBarcodeCall", value: function wrapBarcodeCall(func) { try { var result = func.apply(undefined, arguments); this.api._options.valid(true); return result; } catch (e) { this.handleCatch(e); return this.api; } } }]); return ErrorHandler; }(); exports.default = ErrorHandler; /***/ }), /***/ "bdfe": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Base class for EAN8 & EAN13 var EAN = function (_Barcode) { _inherits(EAN, _Barcode); function EAN(data, options) { _classCallCheck(this, EAN); // Make sure the font is not bigger than the space between the guard bars var _this = _possibleConstructorReturn(this, (EAN.__proto__ || Object.getPrototypeOf(EAN)).call(this, data, options)); _this.fontSize = !options.flat && options.fontSize > options.width * 10 ? options.width * 10 : options.fontSize; // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(EAN, [{ key: 'encode', value: function encode() { return this.options.flat ? this.encodeFlat() : this.encodeGuarded(); } }, { key: 'leftText', value: function leftText(from, to) { return this.text.substr(from, to); } }, { key: 'leftEncode', value: function leftEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'rightText', value: function rightText(from, to) { return this.text.substr(from, to); } }, { key: 'rightEncode', value: function rightEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'encodeGuarded', value: function encodeGuarded() { var textOptions = { fontSize: this.fontSize }; var guardOptions = { height: this.guardHeight }; return [{ data: _constants.SIDE_BIN, options: guardOptions }, { data: this.leftEncode(), text: this.leftText(), options: textOptions }, { data: _constants.MIDDLE_BIN, options: guardOptions }, { data: this.rightEncode(), text: this.rightText(), options: textOptions }, { data: _constants.SIDE_BIN, options: guardOptions }]; } }, { key: 'encodeFlat', value: function encodeFlat() { var data = [_constants.SIDE_BIN, this.leftEncode(), _constants.MIDDLE_BIN, this.rightEncode(), _constants.SIDE_BIN]; return { data: data.join(''), text: this.text }; } }]); return EAN; }(_Barcode3.default); exports.default = EAN; /***/ }), /***/ "be5e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var svgns = "http://www.w3.org/2000/svg"; var SVGRenderer = function () { function SVGRenderer(svg, encodings, options) { _classCallCheck(this, SVGRenderer); this.svg = svg; this.encodings = encodings; this.options = options; this.document = options.xmlDocument || document; } _createClass(SVGRenderer, [{ key: "render", value: function render() { var currentX = this.options.marginLeft; this.prepareSVG(); for (var i = 0; i < this.encodings.length; i++) { var encoding = this.encodings[i]; var encodingOptions = (0, _merge2.default)(this.options, encoding.options); var group = this.createGroup(currentX, encodingOptions.marginTop, this.svg); this.setGroupOptions(group, encodingOptions); this.drawSvgBarcode(group, encodingOptions, encoding); this.drawSVGText(group, encodingOptions, encoding); currentX += encoding.width; } } }, { key: "prepareSVG", value: function prepareSVG() { // Clear the SVG while (this.svg.firstChild) { this.svg.removeChild(this.svg.firstChild); } (0, _shared.calculateEncodingAttributes)(this.encodings, this.options); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); var width = totalWidth + this.options.marginLeft + this.options.marginRight; this.setSvgAttributes(width, maxHeight); if (this.options.background) { this.drawRect(0, 0, width, maxHeight, this.svg).setAttribute("style", "fill:" + this.options.background + ";"); } } }, { key: "drawSvgBarcode", value: function drawSvgBarcode(parent, options, encoding) { var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.fontSize + options.textMargin; } else { yFrom = 0; } var barWidth = 0; var x = 0; for (var b = 0; b < binary.length; b++) { x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { barWidth++; } else if (barWidth > 0) { this.drawRect(x - options.width * barWidth, yFrom, options.width * barWidth, options.height, parent); barWidth = 0; } } // Last draw is needed since the barcode ends with 1 if (barWidth > 0) { this.drawRect(x - options.width * (barWidth - 1), yFrom, options.width * barWidth, options.height, parent); } } }, { key: "drawSVGText", value: function drawSVGText(parent, options, encoding) { var textElem = this.document.createElementNS(svgns, 'text'); // Draw the text if displayValue is set if (options.displayValue) { var x, y; textElem.setAttribute("style", "font:" + options.fontOptions + " " + options.fontSize + "px " + options.font); if (options.textPosition == "top") { y = options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.fontSize; } // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; textElem.setAttribute("text-anchor", "start"); } else if (options.textAlign == "right") { x = encoding.width - 1; textElem.setAttribute("text-anchor", "end"); } // In all other cases, center the text else { x = encoding.width / 2; textElem.setAttribute("text-anchor", "middle"); } textElem.setAttribute("x", x); textElem.setAttribute("y", y); textElem.appendChild(this.document.createTextNode(encoding.text)); parent.appendChild(textElem); } } }, { key: "setSvgAttributes", value: function setSvgAttributes(width, height) { var svg = this.svg; svg.setAttribute("width", width + "px"); svg.setAttribute("height", height + "px"); svg.setAttribute("x", "0px"); svg.setAttribute("y", "0px"); svg.setAttribute("viewBox", "0 0 " + width + " " + height); svg.setAttribute("xmlns", svgns); svg.setAttribute("version", "1.1"); svg.setAttribute("style", "transform: translate(0,0)"); } }, { key: "createGroup", value: function createGroup(x, y, parent) { var group = this.document.createElementNS(svgns, 'g'); group.setAttribute("transform", "translate(" + x + ", " + y + ")"); parent.appendChild(group); return group; } }, { key: "setGroupOptions", value: function setGroupOptions(group, options) { group.setAttribute("style", "fill:" + options.lineColor + ";"); } }, { key: "drawRect", value: function drawRect(x, y, width, height, parent) { var rect = this.document.createElementNS(svgns, 'rect'); rect.setAttribute("x", x); rect.setAttribute("y", y); rect.setAttribute("width", width); rect.setAttribute("height", height); parent.appendChild(rect); return rect; } }]); return SVGRenderer; }(); exports.default = SVGRenderer; /***/ }), /***/ "be98": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _UPC = __webpack_require__("e8b2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding // // UPC-E documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#UPC-E var EXPANSIONS = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"]; var PARITIES = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]]; var UPCE = function (_Barcode) { _inherits(UPCE, _Barcode); function UPCE(data, options) { _classCallCheck(this, UPCE); var _this = _possibleConstructorReturn(this, (UPCE.__proto__ || Object.getPrototypeOf(UPCE)).call(this, data, options)); // Code may be 6 or 8 digits; // A 7 digit code is ambiguous as to whether the extra digit // is a UPC-A check or number system digit. _this.isValid = false; if (data.search(/^[0-9]{6}$/) !== -1) { _this.middleDigits = data; _this.upcA = expandToUPCA(data, "0"); _this.text = options.text || '' + _this.upcA[0] + data + _this.upcA[_this.upcA.length - 1]; _this.isValid = true; } else if (data.search(/^[01][0-9]{7}$/) !== -1) { _this.middleDigits = data.substring(1, data.length - 1); _this.upcA = expandToUPCA(_this.middleDigits, data[0]); if (_this.upcA[_this.upcA.length - 1] === data[data.length - 1]) { _this.isValid = true; } else { // checksum mismatch return _possibleConstructorReturn(_this); } } else { return _possibleConstructorReturn(_this); } _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPCE, [{ key: 'valid', value: function valid() { return this.isValid; } }, { key: 'encode', value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: 'flatEncoding', value: function flatEncoding() { var result = ""; result += "101"; result += this.encodeMiddleDigits(); result += "010101"; return { data: result, text: this.text }; } }, { key: 'guardedEncoding', value: function guardedEncoding() { var result = []; // Add the UPC-A number system digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[0], options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101", options: { height: this.guardHeight } }); // Add the 6 UPC-E digits result.push({ data: this.encodeMiddleDigits(), text: this.text.substring(1, 7), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: "010101", options: { height: this.guardHeight } }); // Add the UPC-A check digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[7], options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }, { key: 'encodeMiddleDigits', value: function encodeMiddleDigits() { var numberSystem = this.upcA[0]; var checkDigit = this.upcA[this.upcA.length - 1]; var parity = PARITIES[parseInt(checkDigit)][parseInt(numberSystem)]; return (0, _encoder2.default)(this.middleDigits, parity); } }]); return UPCE; }(_Barcode3.default); function expandToUPCA(middleDigits, numberSystem) { var lastUpcE = parseInt(middleDigits[middleDigits.length - 1]); var expansion = EXPANSIONS[lastUpcE]; var result = ""; var digitIndex = 0; for (var i = 0; i < expansion.length; i++) { var c = expansion[i]; if (c === 'X') { result += middleDigits[digitIndex++]; } else { result += c; } } result = '' + numberSystem + result; return '' + result + (0, _UPC.checksum)(result); } exports.default = UPCE; /***/ }), /***/ "c098": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == 'number' || (type != 'symbol' && reIsUint.test(value))) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; /***/ }), /***/ "c17b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.codabar = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding specification: // http://www.barcodeisland.com/codabar.phtml var codabar = function (_Barcode) { _inherits(codabar, _Barcode); function codabar(data, options) { _classCallCheck(this, codabar); if (data.search(/^[0-9\-\$\:\.\+\/]+$/) === 0) { data = "A" + data + "A"; } var _this = _possibleConstructorReturn(this, (codabar.__proto__ || Object.getPrototypeOf(codabar)).call(this, data.toUpperCase(), options)); _this.text = _this.options.text || _this.text.replace(/[A-D]/g, ''); return _this; } _createClass(codabar, [{ key: "valid", value: function valid() { return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1; } }, { key: "encode", value: function encode() { var result = []; var encodings = this.getEncodings(); for (var i = 0; i < this.data.length; i++) { result.push(encodings[this.data.charAt(i)]); // for all characters except the last, append a narrow-space ("0") if (i !== this.data.length - 1) { result.push("0"); } } return { text: this.text, data: result.join('') }; } }, { key: "getEncodings", value: function getEncodings() { return { "0": "101010011", "1": "101011001", "2": "101001011", "3": "110010101", "4": "101101001", "5": "110101001", "6": "100101011", "7": "100101101", "8": "100110101", "9": "110100101", "-": "101001101", "$": "101100101", ":": "1101011011", "/": "1101101011", ".": "1101101101", "+": "1011011011", "A": "1011001001", "B": "1001001011", "C": "1010010011", "D": "1010011001" }; } }]); return codabar; }(_Barcode3.default); exports.codabar = codabar; /***/ }), /***/ "c1c9": /***/ (function(module, exports, __webpack_require__) { var baseSetToString = __webpack_require__("a454"), shortOut = __webpack_require__("f3c1"); /** * Sets the `toString` method of `func` to return `string`. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var setToString = shortOut(baseSetToString); module.exports = setToString; /***/ }), /***/ "c243": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Standard start end and middle bits var SIDE_BIN = exports.SIDE_BIN = '101'; var MIDDLE_BIN = exports.MIDDLE_BIN = '01010'; var BINARIES = exports.BINARIES = { 'L': [// The L (left) type of encoding '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'G': [// The G type of encoding '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'], 'R': [// The R (right) type of encoding '1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100'], 'O': [// The O (odd) encoding for UPC-E '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'E': [// The E (even) encoding for UPC-E '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'] }; // Define the EAN-2 structure var EAN2_STRUCTURE = exports.EAN2_STRUCTURE = ['LL', 'LG', 'GL', 'GG']; // Define the EAN-5 structure var EAN5_STRUCTURE = exports.EAN5_STRUCTURE = ['GGLLL', 'GLGLL', 'GLLGL', 'GLLLG', 'LGGLL', 'LLGGL', 'LLLGG', 'LGLGL', 'LGLLG', 'LLGLG']; // Define the EAN-13 structure var EAN13_STRUCTURE = exports.EAN13_STRUCTURE = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL']; /***/ }), /***/ "c2b6": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"), cloneDataView = __webpack_require__("5d89"), cloneRegExp = __webpack_require__("6f6c"), cloneSymbol = __webpack_require__("a2db"), cloneTypedArray = __webpack_require__("c8fe"); /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', mapTag = '[object Map]', numberTag = '[object Number]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** * Initializes an object clone based on its `toStringTag`. * * **Note:** This function only supports cloning values with tags of * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. * * @private * @param {Object} object The object to clone. * @param {string} tag The `toStringTag` of the object to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the initialized clone. */ function initCloneByTag(object, tag, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag: return cloneArrayBuffer(object); case boolTag: case dateTag: return new Ctor(+object); case dataViewTag: return cloneDataView(object, isDeep); case float32Tag: case float64Tag: case int8Tag: case int16Tag: case int32Tag: case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: return cloneTypedArray(object, isDeep); case mapTag: return new Ctor; case numberTag: case stringTag: return new Ctor(object); case regexpTag: return cloneRegExp(object); case setTag: return new Ctor; case symbolTag: return cloneSymbol(object); } } module.exports = initCloneByTag; /***/ }), /***/ "c345": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); // Headers whose duplicates are ignored by node // c.f. https://nodejs.org/api/http.html#http_message_headers var ignoreDuplicateOf = [ 'age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent' ]; /** * Parse headers into an object * * ``` * Date: Wed, 27 Aug 2014 08:58:49 GMT * Content-Type: application/json * Connection: keep-alive * Transfer-Encoding: chunked * ``` * * @param {String} headers Headers needing to be parsed * @returns {Object} Headers parsed into an object */ module.exports = function parseHeaders(headers) { var parsed = {}; var key; var val; var i; if (!headers) { return parsed; } utils.forEach(headers.split('\n'), function parser(line) { i = line.indexOf(':'); key = utils.trim(line.substr(0, i)).toLowerCase(); val = utils.trim(line.substr(i + 1)); if (key) { if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { return; } if (key === 'set-cookie') { parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); } else { parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; } } }); return parsed; }; /***/ }), /***/ "c3fc": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var setTag = '[object Set]'; /** * The base implementation of `_.isSet` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. */ function baseIsSet(value) { return isObjectLike(value) && getTag(value) == setTag; } module.exports = baseIsSet; /***/ }), /***/ "c401": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Transform the data for a request or a response * * @param {Object|String} data The data to be transformed * @param {Array} headers The headers for the request or response * @param {Array|Function} fns A single function or Array of functions * @returns {*} The resulting transformed data */ module.exports = function transformData(data, headers, fns) { /*eslint no-param-reassign:0*/ utils.forEach(fns, function transform(fn) { data = fn(data, headers); }); return data; }; /***/ }), /***/ "c532": /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__("1d2b"); /*global toString:true*/ // utils is a library of generic helper functions non-specific to axios 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 undefined * * @param {Object} val The value to test * @returns {boolean} True if the value is undefined, otherwise false */ function isUndefined(val) { return typeof val === 'undefined'; } /** * Determine if a value is a Buffer * * @param {Object} val The value to test * @returns {boolean} True if value is a Buffer, otherwise false */ function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); } /** * Determine if a value is an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is an ArrayBuffer, otherwise false */ function isArrayBuffer(val) { return toString.call(val) === '[object ArrayBuffer]'; } /** * Determine if a value is a FormData * * @param {Object} val The value to test * @returns {boolean} True if value is an FormData, otherwise false */ function isFormData(val) { return (typeof FormData !== 'undefined') && (val instanceof FormData); } /** * Determine if a value is a view on an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false */ function isArrayBufferView(val) { var result; if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { result = ArrayBuffer.isView(val); } else { result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); } return result; } /** * Determine if a value is a String * * @param {Object} val The value to test * @returns {boolean} True if value is a String, otherwise false */ function isString(val) { return typeof val === 'string'; } /** * Determine if a value is a Number * * @param {Object} val The value to test * @returns {boolean} True if value is a Number, otherwise false */ function isNumber(val) { return typeof val === 'number'; } /** * 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 && typeof val === 'object'; } /** * Determine if a value is a plain Object * * @param {Object} val The value to test * @return {boolean} True if value is a plain Object, otherwise false */ function isPlainObject(val) { if (toString.call(val) !== '[object Object]') { return false; } var prototype = Object.getPrototypeOf(val); return prototype === null || prototype === Object.prototype; } /** * 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 File * * @param {Object} val The value to test * @returns {boolean} True if value is a File, otherwise false */ function isFile(val) { return toString.call(val) === '[object File]'; } /** * Determine if a value is a Blob * * @param {Object} val The value to test * @returns {boolean} True if value is a Blob, otherwise false */ function isBlob(val) { return toString.call(val) === '[object Blob]'; } /** * Determine if a value is a Function * * @param {Object} val The value to test * @returns {boolean} True if value is a Function, otherwise false */ function isFunction(val) { return toString.call(val) === '[object Function]'; } /** * Determine if a value is a Stream * * @param {Object} val The value to test * @returns {boolean} True if value is a Stream, otherwise false */ function isStream(val) { return isObject(val) && isFunction(val.pipe); } /** * 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; } /** * Trim excess whitespace off the beginning and end of a string * * @param {String} str The String to trim * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); } /** * Determine if we're running in a standard browser environment * * This allows axios to run in a web worker, and react-native. * Both environments support XMLHttpRequest, but not fully standard globals. * * web workers: * typeof window -> undefined * typeof document -> undefined * * react-native: * navigator.product -> 'ReactNative' * nativescript * navigator.product -> 'NativeScript' or 'NS' */ function isStandardBrowserEnv() { if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) { return false; } return ( typeof window !== 'undefined' && typeof document !== 'undefined' ); } /** * 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 (typeof 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); } } } } /** * Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multiple objects contain the same key the later object in * the arguments list will take precedence. * * Example: * * ```js * var result = merge({foo: 123}, {foo: 456}); * console.log(result.foo); // outputs 456 * ``` * * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function merge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (isPlainObject(result[key]) && isPlainObject(val)) { result[key] = merge(result[key], val); } else if (isPlainObject(val)) { result[key] = merge({}, val); } else if (isArray(val)) { result[key] = val.slice(); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Extends object a by mutably adding to it the properties of object b. * * @param {Object} a The object to be extended * @param {Object} b The object to copy properties from * @param {Object} thisArg The object to bind function to * @return {Object} The resulting value of object a */ function extend(a, b, thisArg) { forEach(b, function assignValue(val, key) { if (thisArg && typeof val === 'function') { a[key] = bind(val, thisArg); } else { a[key] = val; } }); return a; } /** * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) * * @param {string} content with BOM * @return {string} content value without BOM */ function stripBOM(content) { if (content.charCodeAt(0) === 0xFEFF) { content = content.slice(1); } return content; } module.exports = { isArray: isArray, isArrayBuffer: isArrayBuffer, isBuffer: isBuffer, isFormData: isFormData, isArrayBufferView: isArrayBufferView, isString: isString, isNumber: isNumber, isObject: isObject, isPlainObject: isPlainObject, isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, isFunction: isFunction, isStream: isStream, isURLSearchParams: isURLSearchParams, isStandardBrowserEnv: isStandardBrowserEnv, forEach: forEach, merge: merge, extend: extend, trim: trim, stripBOM: stripBOM }; /***/ }), /***/ "c869": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Set = getNative(root, 'Set'); module.exports = Set; /***/ }), /***/ "c87c": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Initializes an array clone. * * @private * @param {Array} array The array to clone. * @returns {Array} Returns the initialized clone. */ function initCloneArray(array) { var length = array.length, result = new array.constructor(length); // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { result.index = array.index; result.input = array.input; } return result; } module.exports = initCloneArray; /***/ }), /***/ "c8af": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = function normalizeHeaderName(headers, normalizedName) { utils.forEach(headers, function processHeader(value, name) { if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { headers[normalizedName] = value; delete headers[name]; } }); }; /***/ }), /***/ "c8ba": /***/ (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; /***/ }), /***/ "c8fe": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `typedArray`. * * @private * @param {Object} typedArray The typed array to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned typed array. */ function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } module.exports = cloneTypedArray; /***/ }), /***/ "ca32": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var defaults = { width: 2, height: 100, format: "auto", displayValue: true, fontOptions: "", font: "monospace", text: undefined, textAlign: "center", textPosition: "bottom", textMargin: 2, fontSize: 20, background: "#ffffff", lineColor: "#000000", margin: 10, marginTop: undefined, marginBottom: undefined, marginLeft: undefined, marginRight: undefined, valid: function valid() {} }; exports.default = defaults; /***/ }), /***/ "cb5a": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } module.exports = assocIndexOf; /***/ }), /***/ "cc45": /***/ (function(module, exports, __webpack_require__) { var baseIsMap = __webpack_require__("1a2d"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsMap = nodeUtil && nodeUtil.isMap; /** * Checks if `value` is classified as a `Map` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * * _.isMap(new Map); * // => true * * _.isMap(new WeakMap); * // => false */ var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; module.exports = isMap; /***/ }), /***/ "cd9d": /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "ce86": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), arrayMap = __webpack_require__("7948"), isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = baseToString; /***/ }), /***/ "cee4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var bind = __webpack_require__("1d2b"); var Axios = __webpack_require__("0a06"); var mergeConfig = __webpack_require__("4a7b"); var defaults = __webpack_require__("2444"); /** * Create an instance of Axios * * @param {Object} defaultConfig The default config for the instance * @return {Axios} A new instance of Axios */ function createInstance(defaultConfig) { var context = new Axios(defaultConfig); var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance utils.extend(instance, Axios.prototype, context); // Copy context to instance utils.extend(instance, context); return instance; } // Create the default instance to be exported var axios = createInstance(defaults); // Expose Axios class to allow class inheritance axios.Axios = Axios; // Factory for creating new instances axios.create = function create(instanceConfig) { return createInstance(mergeConfig(axios.defaults, instanceConfig)); }; // Expose Cancel & CancelToken axios.Cancel = __webpack_require__("7a77"); axios.CancelToken = __webpack_require__("8df4"); axios.isCancel = __webpack_require__("2e67"); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; axios.spread = __webpack_require__("0df6"); module.exports = axios; // Allow use of default import syntax in TypeScript module.exports.default = axios; /***/ }), /***/ "d02c": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"), MapCache = __webpack_require__("7b83"); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet; /***/ }), /***/ "d327": /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "d370": /***/ (function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__("253c"), isObjectLike = __webpack_require__("1310"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }), /***/ "d7ee": /***/ (function(module, exports, __webpack_require__) { var baseIsSet = __webpack_require__("c3fc"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsSet = nodeUtil && nodeUtil.isSet; /** * Checks if `value` is classified as a `Set` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * * _.isSet(new Set); * // => true * * _.isSet(new WeakSet); * // => false */ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; module.exports = isSet; /***/ }), /***/ "d925": /***/ (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 */ module.exports = 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); }; /***/ }), /***/ "da03": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Used to detect overreaching core-js shims. */ var coreJsData = root['__core-js_shared__']; module.exports = coreJsData; /***/ }), /***/ "da3d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE128C = exports.CODE128B = exports.CODE128A = exports.CODE128 = undefined; var _CODE128_AUTO = __webpack_require__("6f24"); var _CODE128_AUTO2 = _interopRequireDefault(_CODE128_AUTO); var _CODE128A = __webpack_require__("e8c9"); var _CODE128A2 = _interopRequireDefault(_CODE128A); var _CODE128B = __webpack_require__("70b0"); var _CODE128B2 = _interopRequireDefault(_CODE128B); var _CODE128C = __webpack_require__("ed3f"); var _CODE128C2 = _interopRequireDefault(_CODE128C); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.CODE128 = _CODE128_AUTO2.default; exports.CODE128A = _CODE128A2.default; exports.CODE128B = _CODE128B2.default; exports.CODE128C = _CODE128C2.default; /***/ }), /***/ "dc57": /***/ (function(module, exports) { /** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource; /***/ }), /***/ "dca2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var InvalidInputException = function (_Error) { _inherits(InvalidInputException, _Error); function InvalidInputException(symbology, input) { _classCallCheck(this, InvalidInputException); var _this = _possibleConstructorReturn(this, (InvalidInputException.__proto__ || Object.getPrototypeOf(InvalidInputException)).call(this)); _this.name = "InvalidInputException"; _this.symbology = symbology; _this.input = input; _this.message = '"' + _this.input + '" is not a valid input for ' + _this.symbology; return _this; } return InvalidInputException; }(Error); var InvalidElementException = function (_Error2) { _inherits(InvalidElementException, _Error2); function InvalidElementException() { _classCallCheck(this, InvalidElementException); var _this2 = _possibleConstructorReturn(this, (InvalidElementException.__proto__ || Object.getPrototypeOf(InvalidElementException)).call(this)); _this2.name = "InvalidElementException"; _this2.message = "Not supported type to render on"; return _this2; } return InvalidElementException; }(Error); var NoElementException = function (_Error3) { _inherits(NoElementException, _Error3); function NoElementException() { _classCallCheck(this, NoElementException); var _this3 = _possibleConstructorReturn(this, (NoElementException.__proto__ || Object.getPrototypeOf(NoElementException)).call(this)); _this3.name = "NoElementException"; _this3.message = "No element to render on."; return _this3; } return NoElementException; }(Error); exports.InvalidInputException = InvalidInputException; exports.InvalidElementException = InvalidElementException; exports.NoElementException = NoElementException; /***/ }), /***/ "dcbe": /***/ (function(module, exports, __webpack_require__) { var isArrayLike = __webpack_require__("30c9"), isObjectLike = __webpack_require__("1310"); /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } module.exports = isArrayLikeObject; /***/ }), /***/ "df7c": /***/ (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__("4362"))) /***/ }), /***/ "e031": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), isObject = __webpack_require__("1a8c"); /** * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source * objects into destination objects that are passed thru. * * @private * @param {*} objValue The destination value. * @param {*} srcValue The source value. * @param {string} key The key of the property to merge. * @param {Object} object The parent object of `objValue`. * @param {Object} source The parent object of `srcValue`. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. * @returns {*} Returns the value to assign. */ function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { if (isObject(objValue) && isObject(srcValue)) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, objValue); baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack); stack['delete'](srcValue); } return objValue; } module.exports = customDefaultsMerge; /***/ }), /***/ "e24b": /***/ (function(module, exports, __webpack_require__) { var hashClear = __webpack_require__("49f4"), hashDelete = __webpack_require__("1efc"), hashGet = __webpack_require__("bbc0"), hashHas = __webpack_require__("7a48"), hashSet = __webpack_require__("2524"); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; module.exports = Hash; /***/ }), /***/ "e2c0": /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__("e2e4"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isIndex = __webpack_require__("c098"), isLength = __webpack_require__("b218"), toKey = __webpack_require__("f4d6"); /** * Checks if `path` exists on `object`. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @param {Function} hasFunc The function to check properties. * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { path = castPath(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } module.exports = hasPath; /***/ }), /***/ "e2e4": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isKey = __webpack_require__("f608"), stringToPath = __webpack_require__("18d8"), toString = __webpack_require__("76dd"); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }), /***/ "e380": /***/ (function(module, exports, __webpack_require__) { var MapCache = __webpack_require__("7b83"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; module.exports = memoize; /***/ }), /***/ "e538": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; /** * Creates a clone of `buffer`. * * @private * @param {Buffer} buffer The buffer to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Buffer} Returns the cloned buffer. */ function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } module.exports = cloneBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "e683": /***/ (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 */ module.exports = function combineURLs(baseURL, relativeURL) { return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; }; /***/ }), /***/ "e762": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Barcode = function Barcode(data, options) { _classCallCheck(this, Barcode); this.data = data; this.text = options.text || data; this.options = options; }; exports.default = Barcode; /***/ }), /***/ "e8b2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); exports.checksum = checksum; var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding var UPC = function (_Barcode) { _inherits(UPC, _Barcode); function UPC(data, options) { _classCallCheck(this, UPC); // Add checksum if it does not exist if (data.search(/^[0-9]{11}$/) !== -1) { data += checksum(data); } var _this = _possibleConstructorReturn(this, (UPC.__proto__ || Object.getPrototypeOf(UPC)).call(this, data, options)); _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPC, [{ key: "valid", value: function valid() { return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == checksum(this.data); } }, { key: "encode", value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: "flatEncoding", value: function flatEncoding() { var result = ""; result += "101"; result += (0, _encoder2.default)(this.data.substr(0, 6), "LLLLLL"); result += "01010"; result += (0, _encoder2.default)(this.data.substr(6, 6), "RRRRRR"); result += "101"; return { data: result, text: this.text }; } }, { key: "guardedEncoding", value: function guardedEncoding() { var result = []; // Add the first digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(0, 1), options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101" + (0, _encoder2.default)(this.data[0], "L"), options: { height: this.guardHeight } }); // Add the left side result.push({ data: (0, _encoder2.default)(this.data.substr(1, 5), "LLLLL"), text: this.text.substr(1, 5), options: { fontSize: this.fontSize } }); // Add the middle bits result.push({ data: "01010", options: { height: this.guardHeight } }); // Add the right side result.push({ data: (0, _encoder2.default)(this.data.substr(6, 5), "RRRRR"), text: this.text.substr(6, 5), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: (0, _encoder2.default)(this.data[11], "R") + "101", options: { height: this.guardHeight } }); // Add the last digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(11, 1), options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }]); return UPC; }(_Barcode3.default); // Calulate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit function checksum(number) { var result = 0; var i; for (i = 1; i < 11; i += 2) { result += parseInt(number[i]); } for (i = 0; i < 11; i += 2) { result += parseInt(number[i]) * 3; } return (10 - result % 10) % 10; } exports.default = UPC; /***/ }), /***/ "e8c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128A = function (_CODE) { _inherits(CODE128A, _CODE); function CODE128A(string, options) { _classCallCheck(this, CODE128A); return _possibleConstructorReturn(this, (CODE128A.__proto__ || Object.getPrototypeOf(CODE128A)).call(this, _constants.A_START_CHAR + string, options)); } _createClass(CODE128A, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.A_CHARS + '+$').test(this.data); } }]); return CODE128A; }(_CODE3.default); exports.default = CODE128A; /***/ }), /***/ "eac5": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } module.exports = isPrototype; /***/ }), /***/ "ec69": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeys = __webpack_require__("03dd"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = keys; /***/ }), /***/ "ec8c": /***/ (function(module, exports) { /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } module.exports = nativeKeysIn; /***/ }), /***/ "ed27": /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"hi-eap\",\"version\":\"1.2.88\",\"description\":\"A utils Library for hi-eap. Smart Client Platform\",\"main\":\"eap.umd.min.js\",\"homepage\":\"http://hieap.cn\",\"scripts\":{\"build:eap\":\"cross-env NODE_LIB=eap vue-cli-service build --target lib --name eap --dest hi-eap ./src/eap/index.js\"},\"dependencies\":{},\"devDependencies\":{},\"eslintIgnore\":[\"**/*.md\"]}"); /***/ }), /***/ "ed3f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128C = function (_CODE) { _inherits(CODE128C, _CODE); function CODE128C(string, options) { _classCallCheck(this, CODE128C); return _possibleConstructorReturn(this, (CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options)); } _createClass(CODE128C, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data); } }]); return CODE128C; }(_CODE3.default); exports.default = CODE128C; /***/ }), /***/ "efb6": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } module.exports = stackClear; /***/ }), /***/ "f08e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _SET_BY_CODE; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // constants for internal usage var SET_A = exports.SET_A = 0; var SET_B = exports.SET_B = 1; var SET_C = exports.SET_C = 2; // Special characters var SHIFT = exports.SHIFT = 98; var START_A = exports.START_A = 103; var START_B = exports.START_B = 104; var START_C = exports.START_C = 105; var MODULO = exports.MODULO = 103; var STOP = exports.STOP = 106; var FNC1 = exports.FNC1 = 207; // Get set by start code var SET_BY_CODE = exports.SET_BY_CODE = (_SET_BY_CODE = {}, _defineProperty(_SET_BY_CODE, START_A, SET_A), _defineProperty(_SET_BY_CODE, START_B, SET_B), _defineProperty(_SET_BY_CODE, START_C, SET_C), _SET_BY_CODE); // Get next set by code var SWAP = exports.SWAP = { 101: SET_A, 100: SET_B, 99: SET_C }; var A_START_CHAR = exports.A_START_CHAR = String.fromCharCode(208); // START_A + 105 var B_START_CHAR = exports.B_START_CHAR = String.fromCharCode(209); // START_B + 105 var C_START_CHAR = exports.C_START_CHAR = String.fromCharCode(210); // START_C + 105 // 128A (Code Set A) // ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4 var A_CHARS = exports.A_CHARS = "[\x00-\x5F\xC8-\xCF]"; // 128B (Code Set B) // ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4 var B_CHARS = exports.B_CHARS = "[\x20-\x7F\xC8-\xCF]"; // 128C (Code Set C) // 00–99 (encodes two digits with a single code point) and FNC1 var C_CHARS = exports.C_CHARS = "(\xCF*[0-9]{2}\xCF*)"; // CODE128 includes 107 symbols: // 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one) // Each symbol consist of three black bars (1) and three white spaces (0). var BARS = exports.BARS = [11011001100, 11001101100, 11001100110, 10010011000, 10010001100, 10001001100, 10011001000, 10011000100, 10001100100, 11001001000, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011000, 11011000110, 11000110110, 10100011000, 10001011000, 10001000110, 10110001000, 10001101000, 10001100010, 11010001000, 11000101000, 11000100010, 10110111000, 10110001110, 10001101110, 10111011000, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101000, 11011100010, 11011101110, 11101011000, 11101000110, 11100010110, 11101101000, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 10100110000, 10100001100, 10010110000, 10010000110, 10000101100, 10000100110, 10110010000, 10110000100, 10011010000, 10011000010, 10000110100, 10000110010, 11000010010, 11001010000, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111000, 10100011110, 10001011110, 10111101000, 10111100010, 11110101000, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 11010010000, 11010011100, 1100011101011]; /***/ }), /***/ "f3c1": /***/ (function(module, exports) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ var HOT_COUNT = 800, HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeNow = Date.now; /** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. */ function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(undefined, arguments); }; } module.exports = shortOut; /***/ }), /***/ "f4d6": /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }), /***/ "f608": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }), /***/ "f6b4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); 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) { utils.forEach(this.handlers, function forEachHandler(h) { if (h !== null) { fn(h); } }); }; module.exports = InterceptorManager; /***/ }), /***/ "f8af": /***/ (function(module, exports, __webpack_require__) { var Uint8Array = __webpack_require__("2474"); /** * Creates a clone of `arrayBuffer`. * * @private * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array(result).set(new Uint8Array(arrayBuffer)); return result; } module.exports = cloneArrayBuffer; /***/ }), /***/ "f909": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), assignMergeValue = __webpack_require__("b760"), baseFor = __webpack_require__("72af"), baseMergeDeep = __webpack_require__("4f50"), isObject = __webpack_require__("1a8c"), keysIn = __webpack_require__("9934"), safeGet = __webpack_require__("8adb"); /** * The base implementation of `_.merge` without support for multiple sources. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {number} srcIndex The index of `source`. * @param {Function} [customizer] The function to customize merged values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } baseFor(source, function(srcValue, key) { if (isObject(srcValue)) { stack || (stack = new Stack); baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); } else { var newValue = customizer ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack) : undefined; if (newValue === undefined) { newValue = srcValue; } assignMergeValue(object, key, newValue); } }, keysIn); } module.exports = baseMerge; /***/ }), /***/ "fa21": /***/ (function(module, exports, __webpack_require__) { var baseCreate = __webpack_require__("7530"), getPrototype = __webpack_require__("2dcb"), isPrototype = __webpack_require__("eac5"); /** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { return (typeof object.constructor == 'function' && !isPrototype(object)) ? baseCreate(getPrototype(object)) : {}; } module.exports = initCloneObject; /***/ }), /***/ "fb15": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "user", function() { return /* reexport */ user; }); __webpack_require__.d(__webpack_exports__, "ajax", function() { return /* reexport */ ajax; }); __webpack_require__.d(__webpack_exports__, "request", function() { return /* reexport */ eap_request; }); __webpack_require__.d(__webpack_exports__, "mergeConfig", function() { return /* reexport */ mergeConfig; }); __webpack_require__.d(__webpack_exports__, "lang", function() { return /* reexport */ eap_lang; }); __webpack_require__.d(__webpack_exports__, "utils", function() { return /* reexport */ eap_utils; }); __webpack_require__.d(__webpack_exports__, "page", function() { return /* reexport */ page; }); __webpack_require__.d(__webpack_exports__, "dataHelper", function() { return /* reexport */ eap_dataHelper; }); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js // This file is imported into lib/wc client bundles. if (typeof window !== 'undefined') { var currentScript = window.document.currentScript if (true) { var getCurrentScript = __webpack_require__("8875") currentScript = getCurrentScript() // for backward compatibility, because previously we directly included the polyfill if (!('currentScript' in document)) { Object.defineProperty(document, 'currentScript', { get: getCurrentScript }) } } var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) if (src) { __webpack_require__.p = src[1] // eslint-disable-line } } // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = (null); // EXTERNAL MODULE: ./node_modules/axios/index.js var axios = __webpack_require__("bc3a"); var axios_default = /*#__PURE__*/__webpack_require__.n(axios); // EXTERNAL MODULE: ./node_modules/js-cookie/dist/js.cookie.js var js_cookie = __webpack_require__("852e"); var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie); // CONCATENATED MODULE: ./src/utils/token.js /* harmony default export */ var utils_token = ("d23290d0-f840-46d4-8401-ae815cc05c9a"); // CONCATENATED MODULE: ./src/eap/user/auth.js const TokenKey = 'EAP-Token' function getToken() { let token = js_cookie_default.a.get(TokenKey) let env = Object({"NODE_ENV":"production","VUE_APP_BASE_API":"http://192.168.4.106:7777","BASE_URL":"/"}); if (!token && env.NODE_ENV == "development") { return utils_token; } return token; } function setToken(token) { return js_cookie_default.a.set(TokenKey, token) } function removeToken() { return js_cookie_default.a.remove(TokenKey) } /* harmony default export */ var auth = ({ getToken, setToken, removeToken, }); // EXTERNAL MODULE: external "ELEMENT" var external_ELEMENT_ = __webpack_require__("5f72"); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/types.js /* harmony default export */ var types = ({ "string" :"dbString", "int" :"dbInt", "float" :"dbFloat", "double" :"dbDouble", "text" :"dbText ", "boolean" :"dbBoolean ", "datetime" :"dbDatetime ", "timestamp" :"dbTimestamp " }); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/keys.js /* harmony default export */ var keys = ({ "pageIndex": "pageNum", "pageSize": "pageSize", "body": "__body", "funcpath":"__funcpath", "returnTotal":"__returnCount", "zcQuery":"__zcQuery", "slaveEntities":"__slaveEntities", "modelFilePath":"modelFilePath", "slaveExport":"__slaveExport", "sheetStyle":"__sheetStyle", "sheetDatas":"__sheetDatas", "viewItemId":"viewItemId" }); // EXTERNAL MODULE: ./node_modules/lodash/has.js var has = __webpack_require__("3852"); var has_default = /*#__PURE__*/__webpack_require__.n(has); // EXTERNAL MODULE: ./node_modules/lodash/isDate.js var isDate = __webpack_require__("6220"); var isDate_default = /*#__PURE__*/__webpack_require__.n(isDate); // CONCATENATED MODULE: ./src/hiSetting.js const hiSetting = { //项目名 projectName: 'eap5csxm/admin', pName: "eap5csxm", pUser: "admin", //接口返回消息弹窗模式,默认为消息提示(自动消失),msgBox为消息弹窗(需手动确定关闭) messageType: "msgBox", //请求对象 // request: eap.request,//eap对象还没有加载 // ajax: eap.ajax,//eap对象还没有加载 //部署目录 deployDir: "", //服务器域名 url: "http://192.168.4.105:7777", //编辑器脚本路径 editorResDir: "", //服务名称 serverName: "", //默认服务url serverUrl: "", //用户信息 userInfo: "/sys/user/detail", //登录页url loginUrl: "/login.html", //小登录窗口登录页url miniLoginUrl: "/login.html", //首页url mainPageUrl: "/main.html", //大数据保存webscoketUrl saveWsUrl:"/ws/progress/{id}", //数据保存url saveUrl: "/data/save", //'/data/save', //数据查询url queryUrl: "/data/query", //'/data/query', //excel导出心跳 exportExcelHeartbeatUrl: "/export/dataexcel/status", //导入URL excelImportUrl: "/import/exceldata", //ws excel导入数据 wsExcelImportUrl: "/ws/import/exceldata", //导出URL exportUrl: "/export/dataexcel", exportPathUrl: "/export/dataexcel/path", exportNewUrl: "/export/dataexcelnew", //页面初始化接口 pageInitUrl: "/data/page/permit", //数据策略url policyUrl: "/data/policy", //下推目标取url flowUrlByPush:"/sys/auth/query-flowux", //附件上传url upload: "/file/upload", //附件下载url download: "/file/download", //附件查看url review: "/file/static/preview", //附件上传url publicupload: "/file/public/upload", //附件下载url publicdownload: "/file/public/download", //附件查看url publicreview: "/file/public/preview", //流程信息url getFlowInfo: "/flow/open", getApprovalInfo: "/flow/getApprovalInfo", processFlow: "/flow/processFlow", umpireOrder: "/flow/umpireOrder", queryTask: "/flow/queryTask", withdrawtask: "/flow/withdrawtask", taskDiagram: "/flow/taskDiagram", ganttChart: "/flow/ganttChart", openOrdernumber: "/flow/openOrdernumber", //默认查询操作符 queryOperate: 'like', //数据返回超时时间 requestTimeout: 140 * 1000, //是否单点登录 isSingleLogin: false, //单点登录页 singleLoginUrl: "", //单点登出页 singleLogoutUrl: "", } /* harmony default export */ var src_hiSetting = (hiSetting); // CONCATENATED MODULE: ./src/base/utils/src/date.js /** * showdoc * @catalog API/工具/Date * @title 日期基础类 * @className ClientDate * @modifier static * @method DateFunc * @demo */ const DATE = { timeSchemeKey: { "today": "today", "yesterday": "yesterday", "week": "week", "month": "month", "premonth": "premonth", "quarter": "quarter", "year": "year", "days7": "days7", "days28": "days28", "days84": "days84", "halfyear": "halfyear", "oneyear": "oneyear" }, /** * showdoc * @catalog API/工具/Date * @title 日期格式化 * @description 将条件转成字符结果 * @method format * @param date 必选 Date|String 需要格式化日期 * @param format 必选 String 格式化类型 * @return Date * @number 60 */ format: function (date, format) { if (!date) return ""; if (typeof date == "string") date = DATE.strToDate(date); format = format.replace(/HH/, "hh"); var o = { "M+": date.getMonth() + 1, // month "d+": date.getDate(), // day "D+": date.getDate(), // day "h+": date.getHours(), // hour "H+": date.getHours(), // hour "m+": date.getMinutes(), // minute "s+": date.getSeconds(), // second "q+": Math.floor((date.getMonth() + 3) / 3), // quarter "S": date.getMilliseconds() // millisecond } if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); if (/(Y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(format)) format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); return format; }, /** * showdoc * @catalog API/工具/Date * @title 获取服务端时间 * @description 服务端当前时间 * @method getServerTimeNow * @return Date * @number 60 */ getServerTimeNow() { let serverTimeNow = ""; window.eap.ajax({ url: window.HIVUI_SETTING.getNowTimeUrl, method: "GET",//可不传,默认post async: false,//可不传,默认true success: function (response) { serverTimeNow = response.dataPack; }, fail: function () { } }); return serverTimeNow; }, /** * showdoc * @catalog API/工具/Date * @title 毫秒差间隔 * @description dt1与dt2日期之间毫秒差间隔 * @method milliSecondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ milliSecondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); return Math.abs(dt1.getTime() - dt2.getTime()); }, /** * showdoc * @catalog API/工具/Date * @title 秒差间隔 * @description dt1与dt2日期之间秒差间隔 * @method secondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ secondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getTime() - dt2.getTime()) / 1000); }, /** * showdoc * @catalog API/工具/Date * @title 分钟差间隔 * @description dt1与dt2日期之间分钟差间隔 * @method minutesBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 分差 minutesBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 60))); }, /** * showdoc * @catalog API/工具/Date * @title 时差间隔 * @description dt1与dt2日期之间时差间隔 * @method hoursBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 小时差 hoursBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600))); }, /** * showdoc * @catalog API/工具/Date * @title 天差间隔 * @description dt1与dt2日期之间天差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @param isAbs 选填 是否 返回绝对值 * @return Int * @number 60 */ daysBetween: function (dt1, dt2, isAbs) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; dt1 = this.strFormatDate(this.format(dt1, "yyyy-MM-dd")); dt2 = this.strFormatDate(this.format(dt2, "yyyy-MM-dd")); if (isAbs) return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24))); else return Math.floor((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24)); }, /** * showdoc * @catalog API/工具/Date * @title 月差间隔 * @description dt1与dt2日期之间月差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ monthsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getFullYear() - dt2.getFullYear()) * 12) + Math.abs(dt1.getMonth() - dt2.getMonth()); }, /** * showdoc * @catalog API/工具/Date * @title 年差间隔 * @description dt1与dt2日期之间年差间隔 * @method yearsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ yearsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs(dt1.getFullYear() - dt2.getFullYear()); }, /** * showdoc * @catalog API/工具/Date * @title 获取中文星期 * @description 获取中文星期 * @method getWeekCn * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeekCn: function (dt) { var dayNames = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); if (typeof dt == "string") dt = DATE.strToDate(dt); return dayNames[dt.getDay()]; }, /** * showdoc * @catalog API/工具/Date * @title 获取数字星期 * @description 获取数字星期 * @url getWeek(dt) * @method getWeek(dt) * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeek: function (dt) { if (typeof dt == "string") dt = DATE.strToDate(dt); return dt.getDay(); }, /** * showdoc * @catalog API/工具/Date * @title 是否时间日期 * @description 是否时间日期 * @method isDateTime * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDateTime: function (dateString) { if (dateString.trim() == "") return false; // 年月日时分秒正则表达式 var r = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/); var r1 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}).(\d{1,6})$/); var r2 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2})$/); if (r == null && r1 == null && r2 == null) { return false; } r = r || r1 || r2; if (r.length == 6) {// 时间格式为:2018-04-11 17:31 var d1 = new Date(r[1], r[2] - 1, r[3], r[4], r[5]); let num = (d1.getFullYear() == r[1] && (d1.getMonth() + 1) == r[2] && d1.getDate() == r[3] && d1.getHours() == r[4] && d1 .getMinutes() == r[5]); if (num == 0) { return false; } else return true; } var d = new Date(r[1], r[2] - 1, r[3], r[4], r[5], r[6]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[2] && d.getDate() == r[3] && d.getHours() == r[4] && d.getMinutes() == r[5] && d.getSeconds() == r[6]); if (num == 0) { return false; } return (num != 0); }, /** * showdoc * @catalog API/工具/Date * @title 是否日期类型 * @description 是否日期类型 * @method isDate * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDate: function (dateString) { if (dateString == "") return true; // 年月日正则表达式 var r = dateString.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); if (r == null) { return false; } var d = new Date(r[1], r[3] - 1, r[4]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[3] && d .getDate() == r[4]); if (num == 0) { return false; } return (num != 0); }, dateof: function (dt, type) { let result; if (!dt) return ""; if (typeof dt == "string") dt = DATE.strToDate(dt); switch (type) { case "y": result = dt.getFullYear(); break; case "m": result = dt.getMonth() + 1; break; case "min": result = dt.getMinutes(); break; case "time": result = DATE.format("yyyy-MM-dd hh:mm:ss"); break; case "date": result = DATE.format('yyyy-MM-dd'); break; case "weekCn": result = dt.week(); break; case "week": result = dt.getDay(); break; case "weekInYear": var first = new Date(dt.getFullYear(), 0, 1); var n = parseInt("1065432".charAt(first.getDay())); n = dt.getTime() - first.getTime() - n * 24 * 60 * 60 * 1000; n = Math.ceil(n / (7 * 24 * 60 * 60 * 1000)); result = first.getDay() != 1 ? (n + 1) : n; break; default: result = ""; } return result; }, /** * showdoc * @catalog API/工具/Date * @title 字符转换指定日期类型 * @description 字符转换指定日期类型 * @method strFormatDate * @param strDate 必选 String 日期时间 * @param strFormat 必选 String 格式化类型 * @return Date * @number 60 */ strFormatDate: function (strDate, strFormat) { if (strDate == "" || strDate == null) return ""; let d = DATE.strToDate(strDate); if (!strFormat) return d; return d.format(strFormat); }, /** * showdoc * @catalog API/工具/Date * @title 字符转换日期类型 * @description 字符转换日期类型 * @method strToDate * @param dataStr 必选 String 日期时间 * @return Date * @number 60 */ strToDate: function (dataStr) { if (!dataStr) return ""; if (dataStr && dataStr.constructor === Date) { // 2010.08.02 // 已经是时间类型,就不过滤。 return dataStr; } if (typeof dataStr == "string") { if (dataStr.indexOf('.') > -1) // 2010.07.13 08335 cai dataStr = dataStr.split('.')[0]; dataStr = dataStr.replace(/-/g, "/"); } // 只有时间字符串 01521 if ((dataStr.indexOf("-") == -1 && dataStr.indexOf("/") == -1) && dataStr.indexOf(".") == -1 && dataStr.indexOf(":") != -1) dataStr = DATE.dateOf(new Date()) + " " + dataStr; var arr = dataStr.split(/[- :]/); var arr1 = dataStr.split(/[/ :]/) if (dataStr != "" && (arr.length == 1 && arr1.length == 1)) { // 当:dataStr:1,返回:2010-01-01 // 00:00:00 console.log(dataStr + " Invalid Date") return ""; } return new Date(Date.parse(dataStr)); } , /** * showdoc * @catalog API/工具/Date * @title 获得季度的第一天 * @description 获得季度的第一天 * @method getQuarterStartDay * @param dataStr 必选 Date 日期时间 * @return Date * @number 60 */ getQuarterStartDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 0, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 3, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 6, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 9, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本季度的结束日期 * @description 获得本季度的结束日期 * @method getQuarterEndDate * @return Date * @number 60 */ getQuarterEndDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 2, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 6, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 8, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 11, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的开始日期 * @description 获得本年度的开始日期 * @method getYearStartDate * @return Date * @number 60 */ getYearStartDate: function () { var now = new Date(); var yearFirstDay = new Date(now.getFullYear(), 0, 1); return this.format(yearFirstDay, "yyyy-MM-dd"); //return yearFirstDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的结束日期 * @description 获得本年度的结束日期 * @method getYearEndDate * @return Date * @number 60 */ getYearEndDate: function () { var now = new Date(); var yearLastDay = new Date(now.getFullYear(), 11, 31); return this.format(yearLastDay, "yyyy-MM-dd"); //return yearLastDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得某月的天数 * @description 获得某月的天数 * @method getMonthDays * @param myMonth,myYear 必选 int 月份 * @param myMonth,myYear 必选 int 年份 * @return Int * @number 60 */ getMonthDays: function (myMonth, myYear) { if (myYear == undefined) { var now = new Date(); myYear = now.getFullYear(); } myMonth--; var d = new Date(myYear, myMonth, 1); d.setDate(d.getDate() + 32 - d.getDate()); return (32 - d.getDate()) }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的开始日期 * @description 获得本周的开始日期 * @method getWeekStartDate * @return Date * @number 60 */ getWeekStartDate: function () { var now = new Date(); var weekStartDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() - now.getDay()); return this.format(weekStartDate, "yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的结束日期 * @description 获得本周的结束日期 * @method getWeekEndDate * @return Date * @number 60 */ getWeekEndDate: function () { var now = new Date(); var weekEndDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() + (6 - now.getDay())); return this.format(weekEndDate, "yyyy-MM-dd"); //return weekEndDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的开始日期 * @description 获得本月的开始日期 * @method getMonthStartDate * @param dateVal 必选 Date|String 日期 * @return Date * @number 60 */ getMonthStartDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); var monthStartDate = new Date(now.getFullYear(), now.getMonth(), 1); return this.format(monthStartDate, "yyyy-MM-dd"); //monthStartDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的结束日期 * @description 获得本月的结束日期 * @method getMonthEndDate * @return Date * @number 60 */ getMonthEndDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); let year = now.getFullYear(); let month = now.getMonth(); var tempDate = new Date(new Date(year, month + 1, 1).getTime() - 1000 * 60 * 60 * 24) return this.format(tempDate, "yyyy-MM-dd"); //return tempDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获当前时间 * @description 获当前时间 * @method now * @param format 可选 String 格式化 * @return Date * @number 60 */ now: function () { let format = "yyyy-MM-dd hh:mm:ss"; return this.format(new Date(), format); }, currentNow: function () { return new Date(); }, /** * showdoc * @catalog API/工具/Date * @title 获时间方案 * @description 获时间方案 * @method TimeScheme * @param name 必选 String 方案名称 * @return Date * @number 60 */ TimeScheme: function (name,split) { split = split ||"到"; var startTime = ` 00:00:00${split}`, endTime = " 23:59:59"; switch (name) { case "today": return this.format(this.strToDate(this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "yesterday": return this .format(this.dateAdd("d", -1, this.now()), "yyyy-MM-dd") + startTime + this.format(this.dateAdd("d", -1, this .now()), "yyyy-MM-dd") + endTime; case "week": return this.getWeekStartDate() + startTime + this.getWeekEndDate() + endTime; case "month": return this.getMonthStartDate() + startTime + this.getMonthEndDate() + endTime; case "quarter": return this.getQuarterStartDate() + startTime + this.getQuarterEndDate() + endTime; case "year": return this.getYearStartDate() + startTime + this.getYearEndDate() + endTime; case "days7": return this.format(this.dateAdd("d", -7, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days28": return this.format(this.dateAdd("d", -28, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days84": return this.format(this.dateAdd("d", -84, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "halfyear": return this.format(this.dateAdd("d", -180, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "oneyear": return this.format(this.dateAdd("d", -365, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; } }, daysInMonth: function (year, month) { if (month == 1) { if (year % 4 == 0 && year % 100 != 0) return 29; else return 28; } else if ((month <= 6 && month % 2 == 0) || (month = true && month % 2 == 1)) return 31; else return 30; }, /** * showdoc * @catalog API/工具/Date * @title 加减日期 * @description 在日期中添加或者减去指定的时间间隔天数 * @method dateAdd * @param datepart 必选 String 间隔类型:y:年,q:季度,m:月,d:天,h:小时,mi:分,s:秒 * @param number 必选 Int 间隔数,正数表示加,负数表示减 * @param dtDate 必选 Date * @return Date * @number 60 */ dateAdd: function (datepart, number, dtDate) { if (typeof dtDate == "string") dtDate = DATE.strToDate(dtDate); var date = new Date(dtDate); datepart = (datepart || 'd').toLowerCase(); let diff = parseInt(number); let tempdate; switch (datepart) { case "y": // 年 tempdate = date.setYear(date.getFullYear() + diff) break; case "q": // 季度 tempdate = date.setMonth(date.getMonth() + (diff * 3)) break; case "m": // 月 var sYear = date.getFullYear(); var sMonth = date.getMonth(); var nextY = sYear; var nextM = sMonth; //如果当前月+要加上的月>11 这里之所以用11是因为 js的月份从0开始 if ((sMonth + diff) > 11) { nextY = sYear + 1; nextM = parseInt(sMonth + diff) - 12; } else { nextM = date.getMonth() + diff } var daysInNextMonth = this.daysInMonth(nextY, nextM); var day = date.getDate(); if (day > daysInNextMonth) { day = daysInNextMonth; } //eDate = new Date(nextY, nextM, day); tempdate = new Date(nextY, nextM, day); break; case "d": // 天 tempdate = date.setDate(date.getDate() + diff); break; case "h": // 时 tempdate = date.setHours(date.getHours() + diff); break; case "mi": // 分 tempdate = date.setMinutes(date.getMinutes() + diff); break; case "s": // 秒 tempdate = date.setSeconds(date.getSeconds() + diff) break; default: tempdate = date.setDate(date.getDate() + diff); break; } return new Date(tempdate); } } /* harmony default export */ var date = (DATE); // CONCATENATED MODULE: ./src/base/utils/src/number.js /** * showdoc * @catalog API/工具/Number * @title 数值基础类 * @className NumberFunc * @modifier static * @method NumberFunc * @demo */ const NUM = { /** * showdoc * @catalog API/工具/Number * @title 除法函数,用来得到精确的除法结果 * @description 除法函数,用来得到精确的除法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 被除数 * @param arg2 必选 Number 除数 * @return float * @number 60 */ accDiv : function(arg1, arg2) { var t1 = 0, t2 = 0, r1, r2; try { t1 = arg1.toString().split(".")[1].length } catch (e) { t1 = 0; } try { t2 = arg2.toString().split(".")[1].length } catch (e) { t2 = 0; } r1 = Number(arg1.toString().replace(".", "")) r2 = Number(arg2.toString().replace(".", "")) return (r1 / r2) * Math.pow(10, t2 - t1); }, /** * showdoc * @catalog API/工具/Number * @title 乘法函数,用来得到精确的乘法结果 * @description 乘法函数,用来得到精确的乘法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 乘数 * @param arg2 必选 Number 乘数 * @return float * @number 60 */ accMul : function(arg1, arg2) { var m = 0, s1 = arg1.toString(), s2 = arg2.toString(); try { m += s1.split(".")[1].length } catch (e) { m = 0; } try { m += s2.split(".")[1].length } catch (e) { m += 0; } return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m) }, /** * showdoc * @catalog API/工具/Number * @title 加法函数,用来得到精确的加法结果 * @description 加法函数,用来得到精确的加法结果 * @url accAdd(arg1,arg2) * @method accAdd * @param arg1 必选 Number 加数 * @param arg2 必选 Number 加数 * @return float * @number 60 */ accAdd : function(arg1, arg2) { var r1, r2, m; try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 } try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 } m = Math.pow(10, Math.max(r1, r2)) return (NUM.accMul(arg1, m) + NUM.accMul(arg2, m)) / m }, toFixed(number,length) { var carry = 0; //存放进位标志 var num,multiple; //num为原浮点数放大multiple倍后的数,multiple为10的length次方 var str = number + ''; //将调用该方法的数字转为字符串 var dot = str.indexOf("."); //找到小数点的位置 if(str.substr(dot+length+1,1)>=5) carry=1; //找到要进行舍入的数的位置,手动判断是否大于等于5,满足条件进位标志置为1 multiple = Math.pow(10,length); //设置浮点数要扩大的倍数 num = Math.floor(number * multiple) + carry; //去掉舍入位后的所有数,然后加上我们的手动进位数 var result = num/multiple + ''; //将进位后的整数再缩小为原浮点数 /* * 处理进位后无小数 */ dot = result.indexOf("."); if(dot < 0){ result += '.'; dot = result.indexOf("."); } /* * 处理多次进位 */ var len = result.length - (dot+1); if(len < length){ for(var i = 0; i < length - len; i++){ result += 0; } } return result; }, /** * showdoc * @catalog API/工具/Number * @title 中文数字格式化 * @description 中文数字格式化 * @url formatCn(n) * @method formatCn * @param n 必选 Number 数字 * @return string * @number 60 */ formatCn(n) { let fraction = ['角', '分']; let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]; let head = n < 0 ? '欠' : ''; n = Math.abs(n); let s = ''; for (let i = 0; i < fraction.length; i++) { s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); } s = s || '整'; n = Math.floor(n); for (let i = 0; i < unit[0].length && n > 0; i++) { let p = ''; for (let j = 0; j < unit[1].length && n > 0; j++) { p = digit[n % 10] + unit[1][j] + p; n = Math.floor(n / 10); } s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s; } return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); }, /** * showdoc * @catalog API/工具/Number * @title 数值格式化 * @description 数值格式化 * @url formatString(v,formatstring) * @method formatString * @param v 必选 Number 数字 * @param strign 必选 string 格式化 * @return string * @number 60 */ format: function (v, formatString) { if (!formatString) { formatString = "000,0.00"; //return v; } if(formatString.indexOf("¥")>-1) { formatString = "¥000,0.00"; } if (isFinite(v)) { v = parseFloat(v); } if (formatString.indexOf('%') > -1) { v = v * 100; } v = !isNaN(v) ? v : NaN; if (isNaN(v)) { return ''; } let formatCleanRe = /[^\d\.]/g; let comma = ",", dec = '.', neg = v < 0, hasComma, psplit, fnum, cnum, parr, j, m, n, i; v = Math.abs(v); // if (formatString.substr(formatString.length - 2) == '/i') { // I18NFormatCleanRe = new RegExp('[^\\d\\' // + UtilFormat.decimalSeparator + ']', 'g'); // formatString = formatString.substr(0, formatString.length - 2); // hasComma = formatString.indexOf(comma) != -1; // psplit = formatString.replace(I18NFormatCleanRe, '').split(dec); // } else hasComma = formatString.indexOf(',') != -1; psplit = formatString.replace(formatCleanRe, '').split('.'); if (psplit.length > 2) { alert("对比格式无效") // alert("瀵规瘮璧锋棤鏁堟牸寮忥紒"); // </debug> } else if (psplit.length > 1) { let precision = psplit[1].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(precision); } else { let precision = psplit[0].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(0); } fnum = v.toString(); psplit = fnum.split('.'); if (hasComma) { cnum = psplit[0]; parr = []; j = cnum.length; m = Math.floor(j / 3); n = cnum.length % 3 || 3; for (i = 0; i < j; i += n) { if (i !== 0) { n = 3; } parr[parr.length] = cnum.substr(i, n); m -= 1; } fnum = parr.join(comma); if (psplit[1]) { fnum += dec + psplit[1]; } } else { if (psplit[1]) { fnum = psplit[0] + dec + psplit[1]; } } if (neg) { neg = fnum.replace(/[^1-9]/g, '') !== ''; } return (neg ? '-' : '') + formatString.replace(/[\d,?\.?]+/, fnum); } } /* harmony default export */ var number = (NUM); // EXTERNAL MODULE: ./node_modules/js-md5/src/md5.js var md5 = __webpack_require__("8237"); var md5_default = /*#__PURE__*/__webpack_require__.n(md5); // CONCATENATED MODULE: ./src/base/utils/src/pyconst.js const pyconst_pinyin = { 'a': '\u554a\u963f\u9515', 'ai': '\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u7839\u953f\u972d', 'an': '\u978d\u6c28\u5b89\u4ffa\u6309\u6697\u5cb8\u80fa\u6848\u8c19\u57ef\u63de\u72b4\u5eb5\u6849\u94f5\u9e4c\u9878\u9eef', 'ang': '\u80ae\u6602\u76ce', 'ao': '\u51f9\u6556\u71ac\u7ff1\u8884\u50b2\u5965\u61ca\u6fb3\u5773\u62d7\u55f7\u5662\u5c99\u5ed2\u9068\u5aaa\u9a9c\u8071\u87af\u93ca\u9ccc\u93d6', 'ba': '\u82ad\u634c\u6252\u53ed\u5427\u7b06\u516b\u75a4\u5df4\u62d4\u8dcb\u9776\u628a\u8019\u575d\u9738\u7f62\u7238\u8307\u83dd\u8406\u636d\u5c9c\u705e\u6777\u94af\u7c91\u9c85\u9b43', 'bai': '\u767d\u67cf\u767e\u6446\u4f70\u8d25\u62dc\u7a17\u859c\u63b0\u97b4', 'ban': '\u6591\u73ed\u642c\u6273\u822c\u9881\u677f\u7248\u626e\u62cc\u4f34\u74e3\u534a\u529e\u7eca\u962a\u5742\u8c73\u94a3\u7622\u764d\u8228', 'bang': '\u90a6\u5e2e\u6886\u699c\u8180\u7ed1\u68d2\u78c5\u868c\u9551\u508d\u8c24\u84a1\u8783', 'bao': '\u82de\u80de\u5305\u8912\u96f9\u4fdd\u5821\u9971\u5b9d\u62b1\u62a5\u66b4\u8c79\u9c8d\u7206\u52f9\u8446\u5b80\u5b62\u7172\u9e28\u8913\u8db5\u9f85', 'bo': '\u5265\u8584\u73bb\u83e0\u64ad\u62e8\u94b5\u6ce2\u535a\u52c3\u640f\u94c2\u7b94\u4f2f\u5e1b\u8236\u8116\u818a\u6e24\u6cca\u9a73\u4eb3\u8543\u5575\u997d\u6a97\u64d8\u7934\u94b9\u9e41\u7c38\u8ddb', 'bei': '\u676f\u7891\u60b2\u5351\u5317\u8f88\u80cc\u8d1d\u94a1\u500d\u72c8\u5907\u60eb\u7119\u88ab\u5b5b\u9642\u90b6\u57e4\u84d3\u5457\u602b\u6096\u789a\u9e4e\u8919\u943e', 'ben': '\u5954\u82ef\u672c\u7b28\u755a\u574c\u951b', 'beng': '\u5d29\u7ef7\u752d\u6cf5\u8e66\u8ff8\u552a\u5623\u750f', 'bi': '\u903c\u9f3b\u6bd4\u9119\u7b14\u5f7c\u78a7\u84d6\u853d\u6bd5\u6bd9\u6bd6\u5e01\u5e87\u75f9\u95ed\u655d\u5f0a\u5fc5\u8f9f\u58c1\u81c2\u907f\u965b\u5315\u4ef3\u4ffe\u8298\u835c\u8378\u5421\u54d4\u72f4\u5eb3\u610e\u6ed7\u6fde\u5f3c\u59a3\u5a62\u5b16\u74a7\u8d32\u7540\u94cb\u79d5\u88e8\u7b5a\u7b85\u7be6\u822d\u895e\u8df8\u9ac0', 'bian': '\u97ad\u8fb9\u7f16\u8d2c\u6241\u4fbf\u53d8\u535e\u8fa8\u8fa9\u8fab\u904d\u533e\u5f01\u82c4\u5fed\u6c74\u7f0f\u7178\u782d\u78a5\u7a39\u7a86\u8759\u7b3e\u9cca', 'biao': '\u6807\u5f6a\u8198\u8868\u5a4a\u9aa0\u98d1\u98d9\u98da\u706c\u9556\u9573\u762d\u88f1\u9cd4', 'bie': '\u9cd6\u618b\u522b\u762a\u8e69\u9cd8', 'bin': '\u5f6c\u658c\u6fd2\u6ee8\u5bbe\u6448\u50a7\u6d5c\u7f24\u73a2\u6ba1\u8191\u9554\u9acc\u9b13', 'bing': '\u5175\u51b0\u67c4\u4e19\u79c9\u997c\u70b3\u75c5\u5e76\u7980\u90b4\u6452\u7ee0\u678b\u69df\u71f9', 'bu': '\u6355\u535c\u54fa\u8865\u57e0\u4e0d\u5e03\u6b65\u7c3f\u90e8\u6016\u62ca\u535f\u900b\u74ff\u6661\u949a\u91ad', 'ca': '\u64e6\u5693\u7924', 'cai': '\u731c\u88c1\u6750\u624d\u8d22\u776c\u8e29\u91c7\u5f69\u83dc\u8521', 'can': '\u9910\u53c2\u8695\u6b8b\u60ed\u60e8\u707f\u9a96\u74a8\u7cb2\u9eea', 'cang': '\u82cd\u8231\u4ed3\u6ca7\u85cf\u4f27', 'cao': '\u64cd\u7cd9\u69fd\u66f9\u8349\u8279\u5608\u6f15\u87ac\u825a', 'ce': '\u5395\u7b56\u4fa7\u518c\u6d4b\u5202\u5e3b\u607b', 'ceng': '\u5c42\u8e6d\u564c', 'cha': '\u63d2\u53c9\u832c\u8336\u67e5\u78b4\u643d\u5bdf\u5c94\u5dee\u8be7\u7339\u9987\u6c4a\u59f9\u6748\u6942\u69ce\u6aab\u9497\u9538\u9572\u8869', 'chai': '\u62c6\u67f4\u8c7a\u4faa\u8308\u7625\u867f\u9f87', 'chan': '\u6400\u63ba\u8749\u998b\u8c17\u7f20\u94f2\u4ea7\u9610\u98a4\u5181\u8c04\u8c36\u8487\u5edb\u5fcf\u6f7a\u6fb6\u5b71\u7fbc\u5a75\u5b17\u9aa3\u89c7\u7985\u9561\u88e3\u87fe\u8e94', 'chang': '\u660c\u7316\u573a\u5c1d\u5e38\u957f\u507f\u80a0\u5382\u655e\u7545\u5531\u5021\u4f25\u9b2f\u82cc\u83d6\u5f9c\u6005\u60dd\u960a\u5a3c\u5ae6\u6636\u6c05\u9cb3', 'chao': '\u8d85\u6284\u949e\u671d\u5632\u6f6e\u5de2\u5435\u7092\u600a\u7ec9\u6641\u8016', 'che': '\u8f66\u626f\u64a4\u63a3\u5f7b\u6f88\u577c\u5c6e\u7817', 'chen': '\u90f4\u81e3\u8fb0\u5c18\u6668\u5ff1\u6c89\u9648\u8d81\u886c\u79f0\u8c0c\u62bb\u55d4\u5bb8\u741b\u6987\u809c\u80c2\u789c\u9f80', 'cheng': '\u6491\u57ce\u6a59\u6210\u5448\u4e58\u7a0b\u60e9\u6f84\u8bda\u627f\u901e\u9a8b\u79e4\u57d5\u5d4a\u5fb5\u6d48\u67a8\u67fd\u6a18\u665f\u584d\u77a0\u94d6\u88ce\u86cf\u9172', 'chi': '\u5403\u75f4\u6301\u5319\u6c60\u8fdf\u5f1b\u9a70\u803b\u9f7f\u4f88\u5c3a\u8d64\u7fc5\u65a5\u70bd\u50ba\u5880\u82aa\u830c\u640b\u53f1\u54e7\u557b\u55e4\u5f73\u996c\u6cb2\u5ab8\u6555\u80dd\u7719\u7735\u9e31\u761b\u892b\u86a9\u87ad\u7b1e\u7bea\u8c49\u8e05\u8e1f\u9b51', 'chong': '\u5145\u51b2\u866b\u5d07\u5ba0\u833a\u5fe1\u61a7\u94f3\u825f', 'chou': '\u62bd\u916c\u7574\u8e0c\u7a20\u6101\u7b79\u4ec7\u7ef8\u7785\u4e11\u4fe6\u5733\u5e31\u60c6\u6eb4\u59af\u7633\u96e0\u9c8b', 'chu': '\u81ed\u521d\u51fa\u6a71\u53a8\u8e87\u9504\u96cf\u6ec1\u9664\u695a\u7840\u50a8\u77d7\u6410\u89e6\u5904\u4e8d\u520d\u61b7\u7ecc\u6775\u696e\u6a17\u870d\u8e70\u9edc', 'chuan': '\u63e3\u5ddd\u7a7f\u693d\u4f20\u8239\u5598\u4e32\u63be\u821b\u60f4\u9044\u5ddb\u6c1a\u948f\u9569\u8221', 'chuang': '\u75ae\u7a97\u5e62\u5e8a\u95ef\u521b\u6006', 'chui': '\u5439\u708a\u6376\u9524\u5782\u9672\u68f0\u69cc', 'chun': '\u6625\u693f\u9187\u5507\u6df3\u7eaf\u8822\u4fc3\u83bc\u6c8c\u80ab\u6710\u9e51\u877d', 'chuo': '\u6233\u7ef0\u851f\u8fb6\u8f8d\u955e\u8e14\u9f8a', 'ci': '\u75b5\u8328\u78c1\u96cc\u8f9e\u6148\u74f7\u8bcd\u6b64\u523a\u8d50\u6b21\u8360\u5472\u5d6f\u9e5a\u8785\u7ccd\u8d91', 'cong': '\u806a\u8471\u56f1\u5306\u4ece\u4e1b\u506c\u82c1\u6dd9\u9aa2\u742e\u7481\u679e', 'cu': '\u51d1\u7c97\u918b\u7c07\u731d\u6b82\u8e59', 'cuan': '\u8e7f\u7be1\u7a9c\u6c46\u64ba\u6615\u7228', 'cui': '\u6467\u5d14\u50ac\u8106\u7601\u7cb9\u6dec\u7fe0\u8403\u60b4\u7480\u69b1\u96b9', 'cun': '\u6751\u5b58\u5bf8\u78cb\u5fd6\u76b4', 'cuo': '\u64ae\u6413\u63aa\u632b\u9519\u539d\u811e\u9509\u77ec\u75e4\u9e7e\u8e49\u8e9c', 'da': '\u642d\u8fbe\u7b54\u7629\u6253\u5927\u8037\u54d2\u55d2\u601b\u59b2\u75b8\u8921\u7b2a\u977c\u9791', 'dai': '\u5446\u6b79\u50a3\u6234\u5e26\u6b86\u4ee3\u8d37\u888b\u5f85\u902e\u6020\u57ed\u7519\u5454\u5cb1\u8fe8\u902f\u9a80\u7ed0\u73b3\u9edb', 'dan': '\u803d\u62c5\u4e39\u5355\u90f8\u63b8\u80c6\u65e6\u6c2e\u4f46\u60ee\u6de1\u8bde\u5f39\u86cb\u4ebb\u510b\u5369\u840f\u5556\u6fb9\u6a90\u6b9a\u8d55\u7708\u7605\u8043\u7baa', 'dang': '\u5f53\u6321\u515a\u8361\u6863\u8c20\u51fc\u83ea\u5b95\u7800\u94db\u88c6', 'dao': '\u5200\u6363\u8e48\u5012\u5c9b\u7977\u5bfc\u5230\u7a3b\u60bc\u9053\u76d7\u53e8\u5541\u5fc9\u6d2e\u6c18\u7118\u5fd1\u7e9b', 'de': '\u5fb7\u5f97\u7684\u951d', 'deng': '\u8e6c\u706f\u767b\u7b49\u77aa\u51f3\u9093\u5654\u5d9d\u6225\u78f4\u956b\u7c26', 'di': '\u5824\u4f4e\u6ef4\u8fea\u654c\u7b1b\u72c4\u6da4\u7fdf\u5ae1\u62b5\u5e95\u5730\u8482\u7b2c\u5e1d\u5f1f\u9012\u7f14\u6c10\u7c74\u8bcb\u8c1b\u90b8\u577b\u839c\u837b\u5600\u5a23\u67e2\u68e3\u89cc\u7825\u78b2\u7747\u955d\u7f9d\u9ab6', 'dian': '\u98a0\u6382\u6ec7\u7898\u70b9\u5178\u975b\u57ab\u7535\u4f43\u7538\u5e97\u60e6\u5960\u6dc0\u6bbf\u4e36\u963d\u576b\u57dd\u5dc5\u73b7\u765c\u766b\u7c1f\u8e2e', 'diao': '\u7889\u53fc\u96d5\u51cb\u5201\u6389\u540a\u9493\u8c03\u8f7a\u94de\u8729\u7c9c\u8c82', 'die': '\u8dcc\u7239\u789f\u8776\u8fed\u8c0d\u53e0\u4f5a\u57a4\u581e\u63f2\u558b\u6e2b\u8f76\u7252\u74de\u8936\u800b\u8e40\u9cbd\u9cce', 'ding': '\u4e01\u76ef\u53ee\u9489\u9876\u9f0e\u952d\u5b9a\u8ba2\u4e22\u4ec3\u5576\u738e\u815a\u7887\u753a\u94e4\u7594\u8035\u914a', 'dong': '\u4e1c\u51ac\u8463\u61c2\u52a8\u680b\u4f97\u606b\u51bb\u6d1e\u578c\u549a\u5cbd\u5cd2\u5902\u6c21\u80e8\u80f4\u7850\u9e2b', 'dou': '\u515c\u6296\u6597\u9661\u8c46\u9017\u75d8\u8538\u94ad\u7aa6\u7aac\u86aa\u7bfc\u9161', 'du': '\u90fd\u7763\u6bd2\u728a\u72ec\u8bfb\u5835\u7779\u8d4c\u675c\u9540\u809a\u5ea6\u6e21\u5992\u828f\u561f\u6e0e\u691f\u6a50\u724d\u8839\u7b03\u9ad1\u9ee9', 'duan': '\u7aef\u77ed\u953b\u6bb5\u65ad\u7f0e\u5f56\u6934\u7145\u7c16', 'dui': '\u5806\u5151\u961f\u5bf9\u603c\u619d\u7893', 'dun': '\u58a9\u5428\u8e72\u6566\u987f\u56e4\u949d\u76fe\u9041\u7096\u7818\u7905\u76f9\u9566\u8db8', 'duo': '\u6387\u54c6\u591a\u593a\u579b\u8eb2\u6735\u8dfa\u8235\u5241\u60f0\u5815\u5484\u54da\u7f0d\u67c1\u94ce\u88f0\u8e31', 'e': '\u86fe\u5ce8\u9e45\u4fc4\u989d\u8bb9\u5a25\u6076\u5384\u627c\u904f\u9102\u997f\u5669\u8c14\u57a9\u57ad\u82ca\u83aa\u843c\u5443\u6115\u5c59\u5a40\u8f6d\u66f7\u816d\u786a\u9507\u9537\u9e57\u989a\u9cc4', 'en': '\u6069\u84bd\u6441\u5514\u55ef', 'er': '\u800c\u513f\u8033\u5c14\u9975\u6d31\u4e8c\u8d30\u8fe9\u73e5\u94d2\u9e38\u9c95', 'fa': '\u53d1\u7f5a\u7b4f\u4f10\u4e4f\u9600\u6cd5\u73d0\u57a1\u781d', 'fan': '\u85e9\u5e06\u756a\u7ffb\u6a0a\u77fe\u9492\u7e41\u51e1\u70e6\u53cd\u8fd4\u8303\u8d29\u72af\u996d\u6cdb\u8629\u5e61\u72ad\u68b5\u6535\u71d4\u7548\u8e6f', 'fang': '\u574a\u82b3\u65b9\u80aa\u623f\u9632\u59a8\u4eff\u8bbf\u7eba\u653e\u531a\u90a1\u5f77\u94ab\u822b\u9c82', 'fei': '\u83f2\u975e\u5561\u98de\u80a5\u532a\u8bfd\u5420\u80ba\u5e9f\u6cb8\u8d39\u82be\u72d2\u60b1\u6ddd\u5983\u7ecb\u7eef\u69a7\u8153\u6590\u6249\u7953\u7829\u9544\u75f1\u871a\u7bda\u7fe1\u970f\u9cb1', 'fen': '\u82ac\u915a\u5429\u6c1b\u5206\u7eb7\u575f\u711a\u6c7e\u7c89\u594b\u4efd\u5fff\u6124\u7caa\u507e\u7035\u68fc\u610d\u9cbc\u9f22', 'feng': '\u4e30\u5c01\u67ab\u8702\u5cf0\u950b\u98ce\u75af\u70fd\u9022\u51af\u7f1d\u8bbd\u5949\u51e4\u4ff8\u9146\u8451\u6ca3\u781c', 'fu': '\u4f5b\u5426\u592b\u6577\u80a4\u5b75\u6276\u62c2\u8f90\u5e45\u6c1f\u7b26\u4f0f\u4fd8\u670d\u6d6e\u6daa\u798f\u88b1\u5f17\u752b\u629a\u8f85\u4fef\u91dc\u65a7\u812f\u8151\u5e9c\u8150\u8d74\u526f\u8986\u8d4b\u590d\u5085\u4ed8\u961c\u7236\u8179\u8d1f\u5bcc\u8ba3\u9644\u5987\u7f1a\u5490\u5310\u51eb\u90db\u8299\u82fb\u832f\u83a9\u83d4\u544b\u5e5e\u6ecf\u8274\u5b5a\u9a78\u7ec2\u6874\u8d59\u9efb\u9efc\u7f58\u7a03\u99a5\u864d\u86a8\u8709\u8760\u876e\u9eb8\u8dba\u8dd7\u9cc6', 'ga': '\u5676\u560e\u86e4\u5c2c\u5477\u5c15\u5c1c\u65ee\u9486', 'gai': '\u8be5\u6539\u6982\u9499\u76d6\u6e89\u4e10\u9654\u5793\u6224\u8d45\u80f2', 'gan': '\u5e72\u7518\u6746\u67d1\u7aff\u809d\u8d76\u611f\u79c6\u6562\u8d63\u5769\u82f7\u5c34\u64c0\u6cd4\u6de6\u6f89\u7ec0\u6a44\u65f0\u77f8\u75b3\u9150', 'gang': '\u5188\u521a\u94a2\u7f38\u809b\u7eb2\u5c97\u6e2f\u6206\u7f61\u9883\u7b7b', 'gong': '\u6760\u5de5\u653b\u529f\u606d\u9f9a\u4f9b\u8eac\u516c\u5bab\u5f13\u5de9\u6c5e\u62f1\u8d21\u5171\u857b\u5efe\u54a3\u73d9\u80b1\u86a3\u86e9\u89e5', 'gao': '\u7bd9\u768b\u9ad8\u818f\u7f94\u7cd5\u641e\u9550\u7a3f\u544a\u777e\u8bf0\u90dc\u84bf\u85c1\u7f1f\u69d4\u69c1\u6772\u9506', 'ge': '\u54e5\u6b4c\u6401\u6208\u9e3d\u80f3\u7599\u5272\u9769\u845b\u683c\u9601\u9694\u94ec\u4e2a\u5404\u9b32\u4ee1\u54ff\u5865\u55dd\u7ea5\u643f\u8188\u784c\u94ea\u9549\u88bc\u988c\u867c\u8238\u9abc\u9ac2', 'gei': '\u7ed9', 'gen': '\u6839\u8ddf\u4e98\u831b\u54cf\u826e', 'geng': '\u8015\u66f4\u5e9a\u7fb9\u57c2\u803f\u6897\u54fd\u8d53\u9ca0', 'gou': '\u94a9\u52fe\u6c9f\u82df\u72d7\u57a2\u6784\u8d2d\u591f\u4f5d\u8bdf\u5ca3\u9058\u5abe\u7f11\u89cf\u5f40\u9e32\u7b31\u7bdd\u97b2', 'gu': '\u8f9c\u83c7\u5495\u7b8d\u4f30\u6cbd\u5b64\u59d1\u9f13\u53e4\u86ca\u9aa8\u8c37\u80a1\u6545\u987e\u56fa\u96c7\u560f\u8bc2\u83f0\u54cc\u5d2e\u6c69\u688f\u8f71\u726f\u727f\u80cd\u81cc\u6bc2\u77bd\u7f5f\u94b4\u9522\u74e0\u9e2a\u9e44\u75fc\u86c4\u9164\u89da\u9cb4\u9ab0\u9e58', 'gua': '\u522e\u74dc\u5250\u5be1\u6302\u8902\u5366\u8bd6\u5471\u681d\u9e39', 'guai': '\u4e56\u62d0\u602a\u54d9', 'guan': '\u68fa\u5173\u5b98\u51a0\u89c2\u7ba1\u9986\u7f50\u60ef\u704c\u8d2f\u500c\u839e\u63bc\u6dab\u76e5\u9e73\u9ccf', 'guang': '\u5149\u5e7f\u901b\u72b7\u6844\u80f1\u7592', 'gui': '\u7470\u89c4\u572d\u7845\u5f52\u9f9f\u95fa\u8f68\u9b3c\u8be1\u7678\u6842\u67dc\u8dea\u8d35\u523d\u5326\u523f\u5e8b\u5b84\u59ab\u6867\u7085\u6677\u7688\u7c0b\u9c91\u9cdc', 'gun': '\u8f8a\u6eda\u68cd\u4e28\u886e\u7ef2\u78d9\u9ca7', 'guo': '\u9505\u90ed\u56fd\u679c\u88f9\u8fc7\u9998\u8803\u57da\u63b4\u5459\u56d7\u5e3c\u5d1e\u7313\u6901\u8662\u951e\u8052\u872e\u873e\u8748', 'ha': '\u54c8', 'hai': '\u9ab8\u5b69\u6d77\u6c26\u4ea5\u5bb3\u9a87\u54b4\u55e8\u988f\u91a2', 'han': '\u9163\u61a8\u90af\u97e9\u542b\u6db5\u5bd2\u51fd\u558a\u7f55\u7ff0\u64bc\u634d\u65f1\u61be\u608d\u710a\u6c57\u6c49\u9097\u83e1\u6496\u961a\u701a\u6657\u7113\u9894\u86b6\u9f3e', 'hen': '\u592f\u75d5\u5f88\u72e0\u6068', 'hang': '\u676d\u822a\u6c86\u7ed7\u73e9\u6841', 'hao': '\u58d5\u568e\u8c6a\u6beb\u90dd\u597d\u8017\u53f7\u6d69\u8585\u55e5\u5686\u6fe0\u704f\u660a\u7693\u98a2\u869d', 'he': '\u5475\u559d\u8377\u83cf\u6838\u79be\u548c\u4f55\u5408\u76d2\u8c89\u9602\u6cb3\u6db8\u8d6b\u8910\u9e64\u8d3a\u8bc3\u52be\u58d1\u85ff\u55d1\u55ec\u9616\u76cd\u86b5\u7fee', 'hei': '\u563f\u9ed1', 'heng': '\u54fc\u4ea8\u6a2a\u8861\u6052\u8a07\u8605', 'hong': '\u8f70\u54c4\u70d8\u8679\u9e3f\u6d2a\u5b8f\u5f18\u7ea2\u9ec9\u8ba7\u836d\u85a8\u95f3\u6cd3', 'hou': '\u5589\u4faf\u7334\u543c\u539a\u5019\u540e\u5820\u5f8c\u9005\u760a\u7bcc\u7cc7\u9c8e\u9aba', 'hu': '\u547c\u4e4e\u5ffd\u745a\u58f6\u846b\u80e1\u8774\u72d0\u7cca\u6e56\u5f27\u864e\u552c\u62a4\u4e92\u6caa\u6237\u51b1\u553f\u56eb\u5cb5\u7322\u6019\u60da\u6d52\u6ef9\u7425\u69f2\u8f77\u89f3\u70c0\u7173\u623d\u6248\u795c\u9e55\u9e71\u7b0f\u9190\u659b', 'hua': '\u82b1\u54d7\u534e\u733e\u6ed1\u753b\u5212\u5316\u8bdd\u5290\u6d4d\u9a85\u6866\u94e7\u7a1e', 'huai': '\u69d0\u5f8a\u6000\u6dee\u574f\u8fd8\u8e1d', 'huan': '\u6b22\u73af\u6853\u7f13\u6362\u60a3\u5524\u75ea\u8c62\u7115\u6da3\u5ba6\u5e7b\u90c7\u5942\u57b8\u64d0\u571c\u6d39\u6d63\u6f36\u5bf0\u902d\u7f33\u953e\u9ca9\u9b1f', 'huang': '\u8352\u614c\u9ec4\u78fa\u8757\u7c27\u7687\u51f0\u60f6\u714c\u6643\u5e4c\u604d\u8c0e\u968d\u5fa8\u6e5f\u6f62\u9051\u749c\u8093\u7640\u87e5\u7bc1\u9cc7', 'hui': '\u7070\u6325\u8f89\u5fbd\u6062\u86d4\u56de\u6bc1\u6094\u6167\u5349\u60e0\u6666\u8d3f\u79fd\u4f1a\u70e9\u6c47\u8bb3\u8bf2\u7ed8\u8bd9\u8334\u835f\u8559\u54d5\u5599\u96b3\u6d04\u5f57\u7f0b\u73f2\u6656\u605a\u867a\u87ea\u9ebe', 'hun': '\u8364\u660f\u5a5a\u9b42\u6d51\u6df7\u8be8\u9984\u960d\u6eb7\u7f17', 'huo': '\u8c41\u6d3b\u4f19\u706b\u83b7\u6216\u60d1\u970d\u8d27\u7978\u6509\u56af\u5925\u94ac\u952a\u956c\u8020\u8816', 'ji': '\u51fb\u573e\u57fa\u673a\u7578\u7a3d\u79ef\u7b95\u808c\u9965\u8ff9\u6fc0\u8ba5\u9e21\u59ec\u7ee9\u7f09\u5409\u6781\u68d8\u8f91\u7c4d\u96c6\u53ca\u6025\u75be\u6c72\u5373\u5ac9\u7ea7\u6324\u51e0\u810a\u5df1\u84df\u6280\u5180\u5b63\u4f0e\u796d\u5242\u60b8\u6d4e\u5bc4\u5bc2\u8ba1\u8bb0\u65e2\u5fcc\u9645\u5993\u7ee7\u7eaa\u5c45\u4e0c\u4e69\u525e\u4f76\u4f74\u8114\u58bc\u82a8\u82b0\u8401\u84ba\u857a\u638e\u53fd\u54ad\u54dc\u5527\u5c8c\u5d74\u6d0e\u5f50\u5c50\u9aa5\u757f\u7391\u696b\u6b9b\u621f\u6222\u8d4d\u89ca\u7284\u9f51\u77f6\u7f81\u5d47\u7a37\u7620\u7635\u866e\u7b08\u7b04\u66a8\u8dfb\u8dfd\u9701\u9c9a\u9cab\u9afb\u9e82', 'jia': '\u5609\u67b7\u5939\u4f73\u5bb6\u52a0\u835a\u988a\u8d3e\u7532\u94be\u5047\u7a3c\u4ef7\u67b6\u9a7e\u5ac1\u4f3d\u90cf\u62ee\u5cac\u6d43\u8fe6\u73c8\u621b\u80db\u605d\u94d7\u9553\u75c2\u86f1\u7b33\u8888\u8dcf', 'jian': '\u6b7c\u76d1\u575a\u5c16\u7b3a\u95f4\u714e\u517c\u80a9\u8270\u5978\u7f04\u8327\u68c0\u67ec\u78b1\u7877\u62e3\u6361\u7b80\u4fed\u526a\u51cf\u8350\u69db\u9274\u8df5\u8d31\u89c1\u952e\u7bad\u4ef6\u5065\u8230\u5251\u996f\u6e10\u6e85\u6da7\u5efa\u50ed\u8c0f\u8c2b\u83c5\u84b9\u641b\u56dd\u6e54\u8e47\u8b07\u7f23\u67a7\u67d9\u6957\u620b\u622c\u726e\u728d\u6bfd\u8171\u7751\u950f\u9e63\u88e5\u7b15\u7bb4\u7fe6\u8dbc\u8e3a\u9ca3\u97af', 'jiang': '\u50f5\u59dc\u5c06\u6d46\u6c5f\u7586\u848b\u6868\u5956\u8bb2\u5320\u9171\u964d\u8333\u6d1a\u7edb\u7f30\u729f\u7913\u8029\u7ce8\u8c47', 'jiao': '\u8549\u6912\u7901\u7126\u80f6\u4ea4\u90ca\u6d47\u9a84\u5a07\u56bc\u6405\u94f0\u77eb\u4fa5\u811a\u72e1\u89d2\u997a\u7f34\u7ede\u527f\u6559\u9175\u8f7f\u8f83\u53eb\u4f7c\u50ec\u832d\u6322\u564d\u5ce4\u5fbc\u59e3\u7e9f\u656b\u768e\u9e6a\u86df\u91ae\u8de4\u9c9b', 'jie': '\u7a96\u63ed\u63a5\u7686\u79f8\u8857\u9636\u622a\u52ab\u8282\u6854\u6770\u6377\u776b\u7aed\u6d01\u7ed3\u89e3\u59d0\u6212\u85c9\u82a5\u754c\u501f\u4ecb\u75a5\u8beb\u5c4a\u5048\u8ba6\u8bd8\u5588\u55df\u736c\u5a55\u5b51\u6840\u7352\u78a3\u9534\u7596\u88b7\u9889\u86a7\u7faf\u9c92\u9ab1\u9aeb', 'jin': '\u5dfe\u7b4b\u65a4\u91d1\u4eca\u6d25\u895f\u7d27\u9526\u4ec5\u8c28\u8fdb\u9773\u664b\u7981\u8fd1\u70ec\u6d78\u5c3d\u537a\u8369\u5807\u5664\u9991\u5ed1\u5997\u7f19\u747e\u69ff\u8d46\u89d0\u9485\u9513\u887f\u77dc', 'jing': '\u52b2\u8346\u5162\u830e\u775b\u6676\u9cb8\u4eac\u60ca\u7cbe\u7cb3\u7ecf\u4e95\u8b66\u666f\u9888\u9759\u5883\u656c\u955c\u5f84\u75c9\u9756\u7adf\u7ade\u51c0\u522d\u5106\u9631\u83c1\u734d\u61ac\u6cfe\u8ff3\u5f2a\u5a67\u80bc\u80eb\u8148\u65cc', 'jiong': '\u70af\u7a98\u5182\u8fe5\u6243', 'jiu': '\u63ea\u7a76\u7ea0\u7396\u97ed\u4e45\u7078\u4e5d\u9152\u53a9\u6551\u65e7\u81fc\u8205\u548e\u5c31\u759a\u50e6\u557e\u9604\u67e9\u6855\u9e6b\u8d73\u9b0f', 'ju': '\u97a0\u62d8\u72d9\u75bd\u9a79\u83ca\u5c40\u5480\u77e9\u4e3e\u6cae\u805a\u62d2\u636e\u5de8\u5177\u8ddd\u8e1e\u952f\u4ff1\u53e5\u60e7\u70ac\u5267\u5028\u8bb5\u82e3\u82f4\u8392\u63ac\u907d\u5c66\u741a\u67b8\u6910\u6998\u6989\u6a58\u728b\u98d3\u949c\u9514\u7aad\u88fe\u8d84\u91b5\u8e3d\u9f83\u96ce\u97ab', 'juan': '\u6350\u9e43\u5a1f\u5026\u7737\u5377\u7ee2\u9104\u72f7\u6d93\u684a\u8832\u9529\u954c\u96bd', 'jue': '\u6485\u652b\u6289\u6398\u5014\u7235\u89c9\u51b3\u8bc0\u7edd\u53a5\u5282\u8c32\u77cd\u8568\u5658\u5d1b\u7357\u5b53\u73cf\u6877\u6a5b\u721d\u9562\u8e76\u89d6', 'jun': '\u5747\u83cc\u94a7\u519b\u541b\u5cfb\u4fca\u7ae3\u6d5a\u90e1\u9a8f\u6343\u72fb\u76b2\u7b60\u9e87', 'ka': '\u5580\u5496\u5361\u4f67\u5494\u80e9', 'ke': '\u54af\u5777\u82db\u67ef\u68f5\u78d5\u9897\u79d1\u58f3\u54b3\u53ef\u6e34\u514b\u523b\u5ba2\u8bfe\u5ca2\u606a\u6e98\u9a92\u7f02\u73c2\u8f72\u6c2a\u778c\u94b6\u75b4\u7aa0\u874c\u9ac1', 'kai': '\u5f00\u63e9\u6977\u51ef\u6168\u5240\u57b2\u8488\u5ffe\u607a\u94e0\u950e', 'kan': '\u520a\u582a\u52d8\u574e\u780d\u770b\u4f83\u51f5\u83b0\u83b6\u6221\u9f9b\u77b0', 'kang': '\u5eb7\u6177\u7ce0\u625b\u6297\u4ea2\u7095\u5751\u4f09\u95f6\u94aa', 'kao': '\u8003\u62f7\u70e4\u9760\u5c3b\u6832\u7292\u94d0', 'ken': '\u80af\u5543\u57a6\u6073\u57a0\u88c9\u9880', 'keng': '\u542d\u5fd0\u94ff', 'kong': '\u7a7a\u6050\u5b54\u63a7\u5025\u5d06\u7b9c', 'kou': '\u62a0\u53e3\u6263\u5bc7\u82a4\u853b\u53e9\u770d\u7b58', 'ku': '\u67af\u54ed\u7a9f\u82e6\u9177\u5e93\u88e4\u5233\u5800\u55be\u7ed4\u9ab7', 'kua': '\u5938\u57ae\u630e\u8de8\u80ef\u4f89', 'kuai': '\u5757\u7b77\u4fa9\u5feb\u84af\u90d0\u8489\u72ef\u810d', 'kuan': '\u5bbd\u6b3e\u9acb', 'kuang': '\u5321\u7b50\u72c2\u6846\u77ff\u7736\u65f7\u51b5\u8bd3\u8bf3\u909d\u5739\u593c\u54d0\u7ea9\u8d36', 'kui': '\u4e8f\u76d4\u5cbf\u7aa5\u8475\u594e\u9b41\u5080\u9988\u6127\u6e83\u9997\u532e\u5914\u9697\u63c6\u55b9\u559f\u609d\u6126\u9615\u9035\u668c\u777d\u8069\u8770\u7bd1\u81fe\u8dec', 'kun': '\u5764\u6606\u6346\u56f0\u6083\u9603\u7428\u951f\u918c\u9cb2\u9ae1', 'kuo': '\u62ec\u6269\u5ed3\u9614\u86de', 'la': '\u5783\u62c9\u5587\u8721\u814a\u8fa3\u5566\u524c\u647a\u908b\u65ef\u782c\u760c', 'lai': '\u83b1\u6765\u8d56\u5d03\u5f95\u6d9e\u6fd1\u8d49\u7750\u94fc\u765e\u7c41', 'lan': '\u84dd\u5a6a\u680f\u62e6\u7bee\u9611\u5170\u6f9c\u8c30\u63fd\u89c8\u61d2\u7f06\u70c2\u6ee5\u5549\u5c9a\u61d4\u6f24\u6984\u6593\u7f71\u9567\u8934', 'lang': '\u7405\u6994\u72fc\u5eca\u90ce\u6717\u6d6a\u83a8\u8497\u5577\u9606\u9512\u7a02\u8782', 'lao': '\u635e\u52b3\u7262\u8001\u4f6c\u59e5\u916a\u70d9\u6d9d\u5520\u5d02\u6833\u94d1\u94f9\u75e8\u91aa', 'le': '\u52d2\u4e50\u808b\u4ec2\u53fb\u561e\u6cd0\u9cd3', 'lei': '\u96f7\u956d\u857e\u78ca\u7d2f\u5121\u5792\u64c2\u7c7b\u6cea\u7fb8\u8bd4\u837d\u54a7\u6f2f\u5ad8\u7f27\u6a91\u8012\u9179', 'ling': '\u68f1\u51b7\u62ce\u73b2\u83f1\u96f6\u9f84\u94c3\u4f36\u7f9a\u51cc\u7075\u9675\u5cad\u9886\u53e6\u4ee4\u9143\u5844\u82d3\u5464\u56f9\u6ce0\u7eeb\u67c3\u68c2\u74f4\u8046\u86c9\u7fce\u9cae', 'leng': '\u695e\u6123', 'li': '\u5398\u68a8\u7281\u9ece\u7bf1\u72f8\u79bb\u6f13\u7406\u674e\u91cc\u9ca4\u793c\u8389\u8354\u540f\u6817\u4e3d\u5389\u52b1\u783e\u5386\u5229\u5088\u4f8b\u4fd0\u75e2\u7acb\u7c92\u6ca5\u96b6\u529b\u7483\u54e9\u4fea\u4fda\u90e6\u575c\u82c8\u8385\u84e0\u85dc\u6369\u5456\u5533\u55b1\u7301\u6ea7\u6fa7\u9026\u5a0c\u5ae0\u9a8a\u7f21\u73de\u67a5\u680e\u8f79\u623e\u783a\u8a48\u7f79\u9502\u9e42\u75a0\u75ac\u86ce\u870a\u8821\u7b20\u7be5\u7c9d\u91b4\u8dde\u96f3\u9ca1\u9ce2\u9ee7', 'lian': '\u4fe9\u8054\u83b2\u8fde\u9570\u5ec9\u601c\u6d9f\u5e18\u655b\u8138\u94fe\u604b\u70bc\u7ec3\u631b\u8539\u5941\u6f4b\u6fc2\u5a08\u740f\u695d\u6b93\u81c1\u81a6\u88e2\u880a\u9ca2', 'liang': '\u7cae\u51c9\u6881\u7cb1\u826f\u4e24\u8f86\u91cf\u667e\u4eae\u8c05\u589a\u690b\u8e09\u9753\u9b49', 'liao': '\u64a9\u804a\u50da\u7597\u71ce\u5be5\u8fbd\u6f66\u4e86\u6482\u9563\u5ed6\u6599\u84fc\u5c25\u5639\u7360\u5bee\u7f2d\u948c\u9e69\u8022', 'lie': '\u5217\u88c2\u70c8\u52a3\u730e\u51bd\u57d2\u6d0c\u8d94\u8e90\u9b23', 'lin': '\u7433\u6797\u78f7\u9716\u4e34\u90bb\u9cde\u6dcb\u51db\u8d41\u541d\u853a\u5d99\u5eea\u9074\u6aa9\u8f9a\u77b5\u7cbc\u8e8f\u9e9f', 'liu': '\u6e9c\u7409\u69b4\u786b\u998f\u7559\u5218\u7624\u6d41\u67f3\u516d\u62a1\u507b\u848c\u6cd6\u6d4f\u905b\u9a9d\u7efa\u65d2\u7198\u950d\u954f\u9e68\u938f', 'long': '\u9f99\u804b\u5499\u7b3c\u7abf\u9686\u5784\u62e2\u9647\u5f04\u5785\u830f\u6cf7\u73d1\u680a\u80e7\u783b\u7643', 'lou': '\u697c\u5a04\u6402\u7bd3\u6f0f\u964b\u55bd\u5d5d\u9542\u7618\u8027\u877c\u9ac5', 'lu': '\u82a6\u5362\u9885\u5e90\u7089\u63b3\u5364\u864f\u9c81\u9e93\u788c\u9732\u8def\u8d42\u9e7f\u6f5e\u7984\u5f55\u9646\u622e\u5786\u6445\u64b8\u565c\u6cf8\u6e0c\u6f09\u7490\u680c\u6a79\u8f73\u8f82\u8f98\u6c07\u80ea\u9565\u9e2c\u9e6d\u7c0f\u823b\u9c88', 'lv': '\u9a74\u5415\u94dd\u4fa3\u65c5\u5c65\u5c61\u7f15\u8651\u6c2f\u5f8b\u7387\u6ee4\u7eff\u634b\u95fe\u6988\u8182\u7a06\u891b', 'luan': '\u5ce6\u5b6a\u6ee6\u5375\u4e71\u683e\u9e3e\u92ae', 'lue': '\u63a0\u7565\u950a', 'lun': '\u8f6e\u4f26\u4ed1\u6ca6\u7eb6\u8bba\u56f5', 'luo': '\u841d\u87ba\u7f57\u903b\u9523\u7ba9\u9aa1\u88f8\u843d\u6d1b\u9a86\u7edc\u502e\u8366\u645e\u7321\u6cfa\u6924\u8136\u9559\u7630\u96d2', 'ma': '\u5988\u9ebb\u739b\u7801\u8682\u9a6c\u9a82\u561b\u5417\u551b\u72b8\u5b37\u6769\u9ebd', 'mai': '\u57cb\u4e70\u9ea6\u5356\u8fc8\u8109\u52a2\u836c\u54aa\u973e', 'man': '\u7792\u9992\u86ee\u6ee1\u8513\u66fc\u6162\u6f2b\u8c29\u5881\u5e54\u7f26\u71b3\u9558\u989f\u87a8\u9cd7\u9794', 'mang': '\u8292\u832b\u76f2\u5fd9\u83bd\u9099\u6f2d\u6726\u786d\u87d2', 'meng': '\u6c13\u840c\u8499\u6aac\u76df\u9530\u731b\u68a6\u5b5f\u52d0\u750d\u77a2\u61f5\u791e\u867b\u8722\u8813\u824b\u8268\u9efe', 'miao': '\u732b\u82d7\u63cf\u7784\u85d0\u79d2\u6e3a\u5e99\u5999\u55b5\u9088\u7f08\u7f2a\u676a\u6dfc\u7707\u9e4b\u8731', 'mao': '\u8305\u951a\u6bdb\u77db\u94c6\u536f\u8302\u5192\u5e3d\u8c8c\u8d38\u4f94\u88a4\u52d6\u8306\u5cc1\u7441\u6634\u7266\u8004\u65c4\u61cb\u7780\u86d1\u8765\u87ca\u9ae6', 'me': '\u4e48', 'mei': '\u73ab\u679a\u6885\u9176\u9709\u7164\u6ca1\u7709\u5a92\u9541\u6bcf\u7f8e\u6627\u5bd0\u59b9\u5a9a\u5776\u8393\u5d4b\u7338\u6d7c\u6e44\u6963\u9545\u9e5b\u8882\u9b45', 'men': '\u95e8\u95f7\u4eec\u626a\u739f\u7116\u61d1\u9494', 'mi': '\u772f\u919a\u9761\u7cdc\u8ff7\u8c1c\u5f25\u7c73\u79d8\u89c5\u6ccc\u871c\u5bc6\u5e42\u8288\u5196\u8c27\u863c\u5627\u7315\u736f\u6c68\u5b93\u5f2d\u8112\u6549\u7cf8\u7e3b\u9e8b', 'mian': '\u68c9\u7720\u7ef5\u5195\u514d\u52c9\u5a29\u7f05\u9762\u6c94\u6e4e\u817c\u7704', 'mie': '\u8511\u706d\u54a9\u881b\u7bfe', 'min': '\u6c11\u62bf\u76bf\u654f\u60af\u95fd\u82e0\u5cb7\u95f5\u6cef\u73c9', 'ming': '\u660e\u879f\u9e23\u94ed\u540d\u547d\u51a5\u8317\u6e9f\u669d\u7791\u9169', 'miu': '\u8c2c', 'mo': '\u6478\u6479\u8611\u6a21\u819c\u78e8\u6469\u9b54\u62b9\u672b\u83ab\u58a8\u9ed8\u6cab\u6f20\u5bde\u964c\u8c1f\u8309\u84e6\u998d\u5aeb\u9546\u79e3\u763c\u8031\u87c6\u8c8a\u8c98', 'mou': '\u8c0b\u725f\u67d0\u53b6\u54de\u5a7a\u7738\u936a', 'mu': '\u62c7\u7261\u4ea9\u59c6\u6bcd\u5893\u66ae\u5e55\u52df\u6155\u6728\u76ee\u7766\u7267\u7a46\u4eeb\u82dc\u5452\u6c90\u6bea\u94bc', 'na': '\u62ff\u54ea\u5450\u94a0\u90a3\u5a1c\u7eb3\u5185\u637a\u80ad\u954e\u8872\u7bac', 'nai': '\u6c16\u4e43\u5976\u8010\u5948\u9f10\u827f\u8418\u67f0', 'nan': '\u5357\u7537\u96be\u56ca\u5583\u56e1\u6960\u8169\u877b\u8d67', 'nao': '\u6320\u8111\u607c\u95f9\u5b6c\u57b4\u7331\u7459\u7847\u94d9\u86f2', 'ne': '\u6dd6\u5462\u8bb7', 'nei': '\u9981', 'nen': '\u5ae9\u80fd\u6798\u6041', 'ni': '\u59ae\u9713\u502a\u6ce5\u5c3c\u62df\u4f60\u533f\u817b\u9006\u6eba\u4f32\u576d\u730a\u6029\u6ee0\u6635\u65ce\u7962\u615d\u7768\u94cc\u9cb5', 'nian': '\u852b\u62c8\u5e74\u78be\u64b5\u637b\u5ff5\u5eff\u8f87\u9ecf\u9c87\u9cb6', 'niang': '\u5a18\u917f', 'niao': '\u9e1f\u5c3f\u8311\u5b32\u8132\u8885', 'nie': '\u634f\u8042\u5b7d\u556e\u954a\u954d\u6d85\u4e5c\u9667\u8616\u55eb\u8080\u989e\u81ec\u8e51', 'nin': '\u60a8\u67e0', 'ning': '\u72de\u51dd\u5b81\u62e7\u6cde\u4f5e\u84e5\u549b\u752f\u804d', 'niu': '\u725b\u626d\u94ae\u7ebd\u72c3\u5ff8\u599e\u86b4', 'nong': '\u8113\u6d53\u519c\u4fac', 'nu': '\u5974\u52aa\u6012\u5476\u5e11\u5f29\u80ec\u5b65\u9a7d', 'nv': '\u5973\u6067\u9495\u8844', 'nuan': '\u6696', 'nuenue': '\u8650', 'nue': '\u759f\u8c11', 'nuo': '\u632a\u61e6\u7cef\u8bfa\u50a9\u6426\u558f\u9518', 'ou': '\u54e6\u6b27\u9e25\u6bb4\u85d5\u5455\u5076\u6ca4\u6004\u74ef\u8026', 'pa': '\u556a\u8db4\u722c\u5e15\u6015\u7436\u8469\u7b62', 'pai': '\u62cd\u6392\u724c\u5f98\u6e43\u6d3e\u4ff3\u848e', 'pan': '\u6500\u6f58\u76d8\u78d0\u76fc\u7554\u5224\u53db\u723f\u6cee\u88a2\u897b\u87e0\u8e52', 'pang': '\u4e53\u5e9e\u65c1\u802a\u80d6\u6ec2\u9004', 'pao': '\u629b\u5486\u5228\u70ae\u888d\u8dd1\u6ce1\u530f\u72cd\u5e96\u812c\u75b1', 'pei': '\u5478\u80da\u57f9\u88f4\u8d54\u966a\u914d\u4f69\u6c9b\u638a\u8f94\u5e14\u6de0\u65c6\u952b\u9185\u9708', 'pen': '\u55b7\u76c6\u6e53', 'peng': '\u7830\u62a8\u70f9\u6f8e\u5f6d\u84ec\u68da\u787c\u7bf7\u81a8\u670b\u9e4f\u6367\u78b0\u576f\u580b\u562d\u6026\u87db', 'pi': '\u7812\u9739\u6279\u62ab\u5288\u7435\u6bd7\u5564\u813e\u75b2\u76ae\u5339\u75de\u50fb\u5c41\u8b6c\u4e15\u9674\u90b3\u90eb\u572e\u9f19\u64d7\u567c\u5e80\u5ab2\u7eb0\u6787\u7513\u7765\u7f74\u94cd\u75e6\u7656\u758b\u868d\u8c94', 'pian': '\u7bc7\u504f\u7247\u9a97\u8c1d\u9a88\u728f\u80fc\u890a\u7fe9\u8e41', 'piao': '\u98d8\u6f02\u74e2\u7968\u527d\u560c\u5ad6\u7f25\u6b8d\u779f\u87b5', 'pie': '\u6487\u77a5\u4e3f\u82e4\u6c15', 'pin': '\u62fc\u9891\u8d2b\u54c1\u8058\u62da\u59d8\u5ad4\u6980\u725d\u98a6', 'ping': '\u4e52\u576a\u82f9\u840d\u5e73\u51ed\u74f6\u8bc4\u5c4f\u4fdc\u5a09\u67b0\u9c86', 'po': '\u5761\u6cfc\u9887\u5a46\u7834\u9b44\u8feb\u7c95\u53f5\u9131\u6ea5\u73c0\u948b\u94b7\u76a4\u7b38', 'pou': '\u5256\u88d2\u8e23', 'pu': '\u6251\u94fa\u4ec6\u8386\u8461\u83e9\u84b2\u57d4\u6734\u5703\u666e\u6d66\u8c31\u66dd\u7011\u530d\u5657\u6fee\u749e\u6c06\u9564\u9568\u8e7c', 'qi': '\u671f\u6b3a\u6816\u621a\u59bb\u4e03\u51c4\u6f06\u67d2\u6c8f\u5176\u68cb\u5947\u6b67\u7566\u5d0e\u8110\u9f50\u65d7\u7948\u7941\u9a91\u8d77\u5c82\u4e5e\u4f01\u542f\u5951\u780c\u5668\u6c14\u8fc4\u5f03\u6c7d\u6ce3\u8bab\u4e9f\u4e93\u573b\u8291\u840b\u847a\u5601\u5c7a\u5c90\u6c54\u6dc7\u9a90\u7eee\u742a\u7426\u675e\u6864\u69ed\u6b39\u797a\u61a9\u789b\u86f4\u871e\u7da6\u7dae\u8dbf\u8e4a\u9ccd\u9e92', 'qia': '\u6390\u6070\u6d3d\u845c', 'qian': '\u7275\u6266\u948e\u94c5\u5343\u8fc1\u7b7e\u4edf\u8c26\u4e7e\u9ed4\u94b1\u94b3\u524d\u6f5c\u9063\u6d45\u8c34\u5811\u5d4c\u6b20\u6b49\u4f65\u9621\u828a\u82a1\u8368\u63ae\u5c8d\u60ad\u614a\u9a9e\u6434\u8930\u7f31\u6920\u80b7\u6106\u94a4\u8654\u7b9d', 'qiang': '\u67aa\u545b\u8154\u7f8c\u5899\u8537\u5f3a\u62a2\u5af1\u6a2f\u6217\u709d\u9516\u9535\u956a\u8941\u8723\u7f9f\u8deb\u8dc4', 'qiao': '\u6a47\u9539\u6572\u6084\u6865\u77a7\u4e54\u4fa8\u5de7\u9798\u64ac\u7fd8\u5ced\u4fcf\u7a8d\u5281\u8bee\u8c2f\u835e\u6100\u6194\u7f32\u6a35\u6bf3\u7857\u8df7\u9792', 'qie': '\u5207\u8304\u4e14\u602f\u7a83\u90c4\u553c\u60ec\u59be\u6308\u9532\u7ba7', 'qin': '\u94a6\u4fb5\u4eb2\u79e6\u7434\u52e4\u82b9\u64d2\u79bd\u5bdd\u6c81\u82a9\u84c1\u8572\u63ff\u5423\u55ea\u5659\u6eb1\u6a8e\u8793\u887e', 'qing': '\u9752\u8f7b\u6c22\u503e\u537f\u6e05\u64ce\u6674\u6c30\u60c5\u9877\u8bf7\u5e86\u5029\u82d8\u570a\u6aa0\u78ec\u873b\u7f44\u7b90\u8b26\u9cad\u9ee5', 'qiong': '\u743c\u7a77\u909b\u8315\u7a79\u7b47\u928e', 'qiu': '\u79cb\u4e18\u90b1\u7403\u6c42\u56da\u914b\u6cc5\u4fc5\u6c3d\u5def\u827d\u72b0\u6e6b\u9011\u9052\u6978\u8d47\u9e20\u866c\u86af\u8764\u88d8\u7cd7\u9cc5\u9f3d', 'qu': '\u8d8b\u533a\u86c6\u66f2\u8eaf\u5c48\u9a71\u6e20\u53d6\u5a36\u9f8b\u8da3\u53bb\u8bce\u52ac\u8556\u8627\u5c96\u8862\u9612\u74a9\u89d1\u6c0d\u795b\u78f2\u766f\u86d0\u883c\u9eb4\u77bf\u9ee2', 'quan': '\u5708\u98a7\u6743\u919b\u6cc9\u5168\u75ca\u62f3\u72ac\u5238\u529d\u8be0\u8343\u737e\u609b\u7efb\u8f81\u754e\u94e8\u8737\u7b4c\u9b08', 'que': '\u7f3a\u7094\u7638\u5374\u9e4a\u69b7\u786e\u96c0\u9619\u60ab', 'qun': '\u88d9\u7fa4\u9021', 'ran': '\u7136\u71c3\u5189\u67d3\u82d2\u9aef', 'rang': '\u74e4\u58e4\u6518\u56b7\u8ba9\u79b3\u7a70', 'rao': '\u9976\u6270\u7ed5\u835b\u5a06\u6861', 'ruo': '\u60f9\u82e5\u5f31', 're': '\u70ed\u504c', 'ren': '\u58ec\u4ec1\u4eba\u5fcd\u97e7\u4efb\u8ba4\u5203\u598a\u7eab\u4ede\u834f\u845a\u996a\u8f6b\u7a14\u887d', 'reng': '\u6254\u4ecd', 'ri': '\u65e5', 'rong': '\u620e\u8338\u84c9\u8363\u878d\u7194\u6eb6\u5bb9\u7ed2\u5197\u5d58\u72e8\u7f1b\u6995\u877e', 'rou': '\u63c9\u67d4\u8089\u7cc5\u8e42\u97a3', 'ru': '\u8339\u8815\u5112\u5b7a\u5982\u8fb1\u4e73\u6c5d\u5165\u8925\u84d0\u85b7\u5685\u6d33\u6ebd\u6fe1\u94f7\u8966\u98a5', 'ruan': '\u8f6f\u962e\u670a', 'rui': '\u854a\u745e\u9510\u82ae\u8564\u777f\u868b', 'run': '\u95f0\u6da6', 'sa': '\u6492\u6d12\u8428\u5345\u4ee8\u6332\u98d2', 'sai': '\u816e\u9cc3\u585e\u8d5b\u567b', 'san': '\u4e09\u53c1\u4f1e\u6563\u5f61\u9993\u6c35\u6bf5\u7cc1\u9730', 'sang': '\u6851\u55d3\u4e27\u6421\u78c9\u98a1', 'sao': '\u6414\u9a9a\u626b\u5ac2\u57fd\u81ca\u7619\u9ccb', 'se': '\u745f\u8272\u6da9\u556c\u94e9\u94ef\u7a51', 'sen': '\u68ee', 'seng': '\u50e7', 'sha': '\u838e\u7802\u6740\u5239\u6c99\u7eb1\u50bb\u5565\u715e\u810e\u6b43\u75e7\u88df\u970e\u9ca8', 'shai': '\u7b5b\u6652\u917e', 'shan': '\u73ca\u82eb\u6749\u5c71\u5220\u717d\u886b\u95ea\u9655\u64c5\u8d61\u81b3\u5584\u6c55\u6247\u7f2e\u5261\u8baa\u912f\u57cf\u829f\u6f78\u59d7\u9a9f\u81bb\u9490\u759d\u87ee\u8222\u8dda\u9cdd', 'shang': '\u5892\u4f24\u5546\u8d4f\u664c\u4e0a\u5c1a\u88f3\u57a7\u7ef1\u6b87\u71b5\u89de', 'shao': '\u68a2\u634e\u7a0d\u70e7\u828d\u52fa\u97f6\u5c11\u54e8\u90b5\u7ecd\u52ad\u82d5\u6f72\u86f8\u7b24\u7b72\u8244', 'she': '\u5962\u8d4a\u86c7\u820c\u820d\u8d66\u6444\u5c04\u6151\u6d89\u793e\u8bbe\u538d\u4f58\u731e\u7572\u9e9d', 'shen': '\u7837\u7533\u547b\u4f38\u8eab\u6df1\u5a20\u7ec5\u795e\u6c88\u5ba1\u5a76\u751a\u80be\u614e\u6e17\u8bdc\u8c02\u5432\u54c2\u6e16\u6939\u77e7\u8703', 'sheng': '\u58f0\u751f\u7525\u7272\u5347\u7ef3\u7701\u76db\u5269\u80dc\u5723\u4e1e\u6e11\u5ab5\u771a\u7b19', 'shi': '\u5e08\u5931\u72ee\u65bd\u6e7f\u8bd7\u5c38\u8671\u5341\u77f3\u62fe\u65f6\u4ec0\u98df\u8680\u5b9e\u8bc6\u53f2\u77e2\u4f7f\u5c4e\u9a76\u59cb\u5f0f\u793a\u58eb\u4e16\u67ff\u4e8b\u62ed\u8a93\u901d\u52bf\u662f\u55dc\u566c\u9002\u4ed5\u4f8d\u91ca\u9970\u6c0f\u5e02\u6043\u5ba4\u89c6\u8bd5\u8c25\u57d8\u83b3\u84cd\u5f11\u5511\u9963\u8f7c\u8006\u8d33\u70bb\u793b\u94c8\u94ca\u87ab\u8210\u7b6e\u8c55\u9ca5\u9cba', 'shou': '\u6536\u624b\u9996\u5b88\u5bff\u6388\u552e\u53d7\u7626\u517d\u624c\u72e9\u7ef6\u824f', 'shu': '\u852c\u67a2\u68b3\u6b8a\u6292\u8f93\u53d4\u8212\u6dd1\u758f\u4e66\u8d4e\u5b70\u719f\u85af\u6691\u66d9\u7f72\u8700\u9ecd\u9f20\u5c5e\u672f\u8ff0\u6811\u675f\u620d\u7ad6\u5885\u5eb6\u6570\u6f31\u6055\u500f\u587e\u83fd\u5fc4\u6cad\u6d91\u6f8d\u59dd\u7ebe\u6bf9\u8167\u6bb3\u956f\u79eb\u9e6c', 'shua': '\u5237\u800d\u5530\u6dae', 'shuai': '\u6454\u8870\u7529\u5e05\u87c0', 'shuan': '\u6813\u62f4\u95e9', 'shuang': '\u971c\u53cc\u723d\u5b40', 'shui': '\u8c01\u6c34\u7761\u7a0e', 'shun': '\u542e\u77ac\u987a\u821c\u6042', 'shuo': '\u8bf4\u7855\u6714\u70c1\u84b4\u6420\u55cd\u6fef\u5981\u69ca\u94c4', 'si': '\u65af\u6495\u5636\u601d\u79c1\u53f8\u4e1d\u6b7b\u8086\u5bfa\u55e3\u56db\u4f3a\u4f3c\u9972\u5df3\u53ae\u4fdf\u5155\u83e5\u549d\u6c5c\u6cd7\u6f8c\u59d2\u9a77\u7f0c\u7940\u7960\u9536\u9e36\u801c\u86f3\u7b25', 'song': '\u677e\u8038\u6002\u9882\u9001\u5b8b\u8bbc\u8bf5\u51c7\u83d8\u5d27\u5d69\u5fea\u609a\u6dde\u7ae6', 'sou': '\u641c\u8258\u64de\u55fd\u53df\u55d6\u55fe\u998a\u6eb2\u98d5\u778d\u953c\u878b', 'su': '\u82cf\u9165\u4fd7\u7d20\u901f\u7c9f\u50f3\u5851\u6eaf\u5bbf\u8bc9\u8083\u5919\u8c21\u850c\u55c9\u612b\u7c0c\u89eb\u7a23', 'suan': '\u9178\u849c\u7b97', 'sui': '\u867d\u968b\u968f\u7ee5\u9ad3\u788e\u5c81\u7a57\u9042\u96a7\u795f\u84d1\u51ab\u8c07\u6fc9\u9083\u71e7\u772d\u7762', 'sun': '\u5b59\u635f\u7b0b\u836a\u72f2\u98e7\u69ab\u8de3\u96bc', 'suo': '\u68ad\u5506\u7f29\u7410\u7d22\u9501\u6240\u5522\u55e6\u5a11\u686b\u7743\u7fa7', 'ta': '\u584c\u4ed6\u5b83\u5979\u5854\u736d\u631e\u8e4b\u8e0f\u95fc\u6ebb\u9062\u69bb\u6c93', 'tai': '\u80ce\u82d4\u62ac\u53f0\u6cf0\u915e\u592a\u6001\u6c70\u90b0\u85b9\u80bd\u70b1\u949b\u8dc6\u9c90', 'tan': '\u574d\u644a\u8d2a\u762b\u6ee9\u575b\u6a80\u75f0\u6f6d\u8c2d\u8c08\u5766\u6bef\u8892\u78b3\u63a2\u53f9\u70ad\u90ef\u8548\u6619\u94bd\u952c\u8983', 'tang': '\u6c64\u5858\u642a\u5802\u68e0\u819b\u5510\u7cd6\u50a5\u9967\u6e8f\u746d\u94f4\u9557\u8025\u8797\u87b3\u7fb0\u91a3', 'thang': '\u5018\u8eba\u6dcc', 'theng': '\u8d9f\u70eb', 'tao': '\u638f\u6d9b\u6ed4\u7ee6\u8404\u6843\u9003\u6dd8\u9676\u8ba8\u5957\u6311\u9f17\u5555\u97ec\u9955', 'te': '\u7279', 'teng': '\u85e4\u817e\u75bc\u8a8a\u6ed5', 'ti': '\u68af\u5254\u8e22\u9511\u63d0\u9898\u8e44\u557c\u4f53\u66ff\u568f\u60d5\u6d95\u5243\u5c49\u8351\u608c\u9016\u7ee8\u7f07\u9e48\u88fc\u918d', 'tian': '\u5929\u6dfb\u586b\u7530\u751c\u606c\u8214\u8146\u63ad\u5fdd\u9617\u6b84\u754b\u94bf\u86ba', 'tiao': '\u6761\u8fe2\u773a\u8df3\u4f7b\u7967\u94eb\u7a95\u9f86\u9ca6', 'tie': '\u8d34\u94c1\u5e16\u841c\u992e', 'ting': '\u5385\u542c\u70c3\u6c40\u5ef7\u505c\u4ead\u5ead\u633a\u8247\u839b\u8476\u5a77\u6883\u8713\u9706', 'tong': '\u901a\u6850\u916e\u77b3\u540c\u94dc\u5f64\u7ae5\u6876\u6345\u7b52\u7edf\u75db\u4f5f\u50ee\u4edd\u833c\u55f5\u6078\u6f7c\u783c', 'tou': '\u5077\u6295\u5934\u900f\u4ea0', 'tu': '\u51f8\u79c3\u7a81\u56fe\u5f92\u9014\u6d82\u5c60\u571f\u5410\u5154\u580d\u837c\u83df\u948d\u9174', 'tuan': '\u6e4d\u56e2\u7583', 'tui': '\u63a8\u9893\u817f\u8715\u892a\u9000\u5fd2\u717a', 'tun': '\u541e\u5c6f\u81c0\u9968\u66be\u8c5a\u7a80', 'tuo': '\u62d6\u6258\u8131\u9e35\u9640\u9a6e\u9a7c\u692d\u59a5\u62d3\u553e\u4e47\u4f57\u5768\u5eb9\u6cb1\u67dd\u7823\u7ba8\u8204\u8dce\u9f0d', 'wa': '\u6316\u54c7\u86d9\u6d3c\u5a03\u74e6\u889c\u4f64\u5a32\u817d', 'wai': '\u6b6a\u5916', 'wan': '\u8c4c\u5f2f\u6e7e\u73a9\u987d\u4e38\u70f7\u5b8c\u7897\u633d\u665a\u7696\u60cb\u5b9b\u5a49\u4e07\u8155\u525c\u8284\u82cb\u83c0\u7ea8\u7efe\u742c\u8118\u7579\u873f\u7ba2', 'wang': '\u6c6a\u738b\u4ea1\u6789\u7f51\u5f80\u65fa\u671b\u5fd8\u5984\u7f54\u5c22\u60d8\u8f8b\u9b4d', 'wei': '\u5a01\u5dcd\u5fae\u5371\u97e6\u8fdd\u6845\u56f4\u552f\u60df\u4e3a\u6f4d\u7ef4\u82c7\u840e\u59d4\u4f1f\u4f2a\u5c3e\u7eac\u672a\u851a\u5473\u754f\u80c3\u5582\u9b4f\u4f4d\u6e2d\u8c13\u5c09\u6170\u536b\u502d\u504e\u8bff\u9688\u8473\u8587\u5e0f\u5e37\u5d34\u5d6c\u7325\u732c\u95f1\u6ca9\u6d27\u6da0\u9036\u5a13\u73ae\u97ea\u8ece\u709c\u7168\u71a8\u75ff\u8249\u9c94', 'wen': '\u761f\u6e29\u868a\u6587\u95fb\u7eb9\u543b\u7a33\u7d0a\u95ee\u520e\u6120\u960c\u6c76\u74ba\u97eb\u6b81\u96ef', 'weng': '\u55e1\u7fc1\u74ee\u84ca\u8579', 'wo': '\u631d\u8717\u6da1\u7a9d\u6211\u65a1\u5367\u63e1\u6c83\u83b4\u5e44\u6e25\u674c\u809f\u9f8c', 'wu': '\u5deb\u545c\u94a8\u4e4c\u6c61\u8bec\u5c4b\u65e0\u829c\u68a7\u543e\u5434\u6bcb\u6b66\u4e94\u6342\u5348\u821e\u4f0d\u4fae\u575e\u620a\u96fe\u6664\u7269\u52ff\u52a1\u609f\u8bef\u5140\u4ef5\u9622\u90ac\u572c\u82b4\u5e91\u6003\u5fe4\u6d6f\u5be4\u8fd5\u59a9\u9a9b\u727e\u7110\u9e49\u9e5c\u8708\u92c8\u9f2f', 'xi': '\u6614\u7199\u6790\u897f\u7852\u77fd\u6670\u563b\u5438\u9521\u727a\u7a00\u606f\u5e0c\u6089\u819d\u5915\u60dc\u7184\u70ef\u6eaa\u6c50\u7280\u6a84\u88ad\u5e2d\u4e60\u5ab3\u559c\u94e3\u6d17\u7cfb\u9699\u620f\u7ec6\u50d6\u516e\u96b0\u90d7\u831c\u8478\u84f0\u595a\u550f\u5f99\u9969\u960b\u6d60\u6dc5\u5c63\u5b09\u73ba\u6a28\u66e6\u89cb\u6b37\u71b9\u798a\u79a7\u94b8\u7699\u7a78\u8725\u87cb\u823e\u7fb2\u7c9e\u7fd5\u91af\u9f37', 'xia': '\u778e\u867e\u5323\u971e\u8f96\u6687\u5ce1\u4fa0\u72ed\u4e0b\u53a6\u590f\u5413\u6380\u846d\u55c4\u72ce\u9050\u7455\u7856\u7615\u7f45\u9ee0', 'xian': '\u9528\u5148\u4ed9\u9c9c\u7ea4\u54b8\u8d24\u8854\u8237\u95f2\u6d8e\u5f26\u5acc\u663e\u9669\u73b0\u732e\u53bf\u817a\u9985\u7fa1\u5baa\u9677\u9650\u7ebf\u51bc\u85d3\u5c98\u7303\u66b9\u5a34\u6c19\u7946\u9e47\u75eb\u86ac\u7b45\u7c7c\u9170\u8df9', 'xiang': '\u76f8\u53a2\u9576\u9999\u7bb1\u8944\u6e58\u4e61\u7fd4\u7965\u8be6\u60f3\u54cd\u4eab\u9879\u5df7\u6a61\u50cf\u5411\u8c61\u8297\u8459\u9977\u5ea0\u9aa7\u7f03\u87d3\u9c9e\u98e8', 'xiao': '\u8427\u785d\u9704\u524a\u54ee\u56a3\u9500\u6d88\u5bb5\u6dc6\u6653\u5c0f\u5b5d\u6821\u8096\u5578\u7b11\u6548\u54d3\u54bb\u5d24\u6f47\u900d\u9a81\u7ee1\u67ad\u67b5\u7b71\u7bab\u9b48', 'xie': '\u6954\u4e9b\u6b47\u874e\u978b\u534f\u631f\u643a\u90aa\u659c\u80c1\u8c10\u5199\u68b0\u5378\u87f9\u61c8\u6cc4\u6cfb\u8c22\u5c51\u5055\u4eb5\u52f0\u71ee\u85a4\u64b7\u5ee8\u7023\u9082\u7ec1\u7f2c\u69ad\u698d\u6b59\u8e9e', 'xin': '\u85aa\u82af\u950c\u6b23\u8f9b\u65b0\u5ffb\u5fc3\u4fe1\u8845\u56df\u99a8\u8398\u6b46\u94fd\u946b', 'xing': '\u661f\u8165\u7329\u60fa\u5174\u5211\u578b\u5f62\u90a2\u884c\u9192\u5e78\u674f\u6027\u59d3\u9649\u8347\u8365\u64e4\u60bb\u784e', 'xiong': '\u5144\u51f6\u80f8\u5308\u6c79\u96c4\u718a\u828e', 'xiu': '\u4f11\u4fee\u7f9e\u673d\u55c5\u9508\u79c0\u8896\u7ee3\u83a0\u5cab\u9990\u5ea5\u9e3a\u8c85\u9af9', 'xu': '\u589f\u620c\u9700\u865a\u5618\u987b\u5f90\u8bb8\u84c4\u9157\u53d9\u65ed\u5e8f\u755c\u6064\u7d6e\u5a7f\u7eea\u7eed\u8bb4\u8be9\u5729\u84ff\u6035\u6d2b\u6e86\u987c\u6829\u7166\u7809\u76f1\u80e5\u7cc8\u9191', 'xuan': '\u8f69\u55a7\u5ba3\u60ac\u65cb\u7384\u9009\u7663\u7729\u7eda\u5107\u8c16\u8431\u63ce\u9994\u6ceb\u6d35\u6e32\u6f29\u7487\u6966\u6684\u70ab\u714a\u78b9\u94c9\u955f\u75c3', 'xue': '\u9774\u859b\u5b66\u7a74\u96ea\u8840\u5671\u6cf6\u9cd5', 'xun': '\u52cb\u718f\u5faa\u65ec\u8be2\u5bfb\u9a6f\u5de1\u6b89\u6c5b\u8bad\u8baf\u900a\u8fc5\u5dfd\u57d9\u8340\u85b0\u5ccb\u5f87\u6d54\u66db\u7aa8\u91ba\u9c9f', 'ya': '\u538b\u62bc\u9e26\u9e2d\u5440\u4e2b\u82bd\u7259\u869c\u5d16\u8859\u6daf\u96c5\u54d1\u4e9a\u8bb6\u4f22\u63e0\u5416\u5c88\u8fd3\u5a05\u740a\u6860\u6c29\u7811\u775a\u75d6', 'yan': '\u7109\u54bd\u9609\u70df\u6df9\u76d0\u4e25\u7814\u8712\u5ca9\u5ef6\u8a00\u989c\u960e\u708e\u6cbf\u5944\u63a9\u773c\u884d\u6f14\u8273\u5830\u71d5\u538c\u781a\u96c1\u5501\u5f66\u7130\u5bb4\u8c1a\u9a8c\u53a3\u9765\u8d5d\u4fe8\u5043\u5156\u8ba0\u8c33\u90fe\u9122\u82ab\u83f8\u5d26\u6079\u95eb\u960f\u6d07\u6e6e\u6edf\u598d\u5ae3\u7430\u664f\u80ed\u814c\u7131\u7f68\u7b75\u917d\u9b47\u990d\u9f39', 'yang': '\u6b83\u592e\u9e2f\u79e7\u6768\u626c\u4f6f\u75a1\u7f8a\u6d0b\u9633\u6c27\u4ef0\u75d2\u517b\u6837\u6f3e\u5f89\u600f\u6cf1\u7080\u70ca\u6059\u86d8\u9785', 'yao': '\u9080\u8170\u5996\u7476\u6447\u5c27\u9065\u7a91\u8c23\u59da\u54ac\u8200\u836f\u8981\u8000\u592d\u723b\u5406\u5d3e\u5fad\u7039\u5e7a\u73e7\u6773\u66dc\u80b4\u9e5e\u7a88\u7e47\u9cd0', 'ye': '\u6930\u564e\u8036\u7237\u91ce\u51b6\u4e5f\u9875\u6396\u4e1a\u53f6\u66f3\u814b\u591c\u6db2\u8c12\u90ba\u63f6\u9980\u6654\u70e8\u94d8', 'yi': '\u4e00\u58f9\u533b\u63d6\u94f1\u4f9d\u4f0a\u8863\u9890\u5937\u9057\u79fb\u4eea\u80f0\u7591\u6c82\u5b9c\u59e8\u5f5d\u6905\u8681\u501a\u5df2\u4e59\u77e3\u4ee5\u827a\u6291\u6613\u9091\u5c79\u4ebf\u5f79\u81c6\u9038\u8084\u75ab\u4ea6\u88d4\u610f\u6bc5\u5fc6\u4e49\u76ca\u6ea2\u8be3\u8bae\u8c0a\u8bd1\u5f02\u7ffc\u7fcc\u7ece\u5208\u5293\u4f7e\u8bd2\u572a\u572f\u57f8\u61ff\u82e1\u858f\u5f08\u5955\u6339\u5f0b\u5453\u54a6\u54bf\u566b\u5cc4\u5db7\u7317\u9974\u603f\u6021\u6092\u6f2a\u8fe4\u9a7f\u7f22\u6baa\u8d3b\u65d6\u71a0\u9487\u9552\u9571\u75cd\u7617\u7654\u7fca\u8864\u8734\u8223\u7fbf\u7ff3\u914f\u9edf', 'yin': '\u8335\u836b\u56e0\u6bb7\u97f3\u9634\u59fb\u541f\u94f6\u6deb\u5bc5\u996e\u5c39\u5f15\u9690\u5370\u80e4\u911e\u5819\u831a\u5591\u72fa\u5924\u6c24\u94df\u763e\u8693\u972a\u9f88', 'ying': '\u82f1\u6a31\u5a74\u9e70\u5e94\u7f28\u83b9\u8424\u8425\u8367\u8747\u8fce\u8d62\u76c8\u5f71\u9896\u786c\u6620\u5b34\u90e2\u8314\u83ba\u8426\u6484\u5624\u81ba\u6ee2\u6f46\u701b\u745b\u748e\u6979\u9e66\u763f\u988d\u7f42', 'yo': '\u54df\u5537', 'yong': '\u62e5\u4f63\u81c3\u75c8\u5eb8\u96cd\u8e0a\u86f9\u548f\u6cf3\u6d8c\u6c38\u607f\u52c7\u7528\u4fd1\u58c5\u5889\u6175\u9095\u955b\u752c\u9cd9\u9954', 'you': '\u5e7d\u4f18\u60a0\u5fe7\u5c24\u7531\u90ae\u94c0\u72b9\u6cb9\u6e38\u9149\u6709\u53cb\u53f3\u4f51\u91c9\u8bf1\u53c8\u5e7c\u5363\u6538\u4f91\u83b8\u5466\u56ff\u5ba5\u67da\u7337\u7256\u94d5\u75a3\u8763\u9c7f\u9edd\u9f2c', 'yu': '\u8fc2\u6de4\u4e8e\u76c2\u6986\u865e\u611a\u8206\u4f59\u4fde\u903e\u9c7c\u6109\u6e1d\u6e14\u9685\u4e88\u5a31\u96e8\u4e0e\u5c7f\u79b9\u5b87\u8bed\u7fbd\u7389\u57df\u828b\u90c1\u5401\u9047\u55bb\u5cea\u5fa1\u6108\u6b32\u72f1\u80b2\u8a89\u6d74\u5bd3\u88d5\u9884\u8c6b\u9a6d\u79ba\u6bd3\u4f1b\u4fe3\u8c00\u8c15\u8438\u84e3\u63c4\u5581\u5704\u5709\u5d5b\u72f3\u996b\u5ebe\u9608\u59aa\u59a4\u7ea1\u745c\u6631\u89ce\u8174\u6b24\u65bc\u715c\u71e0\u807f\u94b0\u9e46\u7610\u7600\u7ab3\u8753\u7afd\u8201\u96e9\u9f89', 'yuan': '\u9e33\u6e0a\u51a4\u5143\u57a3\u8881\u539f\u63f4\u8f95\u56ed\u5458\u5706\u733f\u6e90\u7f18\u8fdc\u82d1\u613f\u6028\u9662\u586c\u6c85\u5a9b\u7457\u6a7c\u7230\u7722\u9e22\u8788\u9f0b', 'yue': '\u66f0\u7ea6\u8d8a\u8dc3\u94a5\u5cb3\u7ca4\u6708\u60a6\u9605\u9fa0\u6a3e\u5216\u94ba', 'yun': '\u8018\u4e91\u90e7\u5300\u9668\u5141\u8fd0\u8574\u915d\u6655\u97f5\u5b55\u90d3\u82b8\u72c1\u607d\u7ead\u6b92\u6600\u6c32', 'za': '\u531d\u7838\u6742\u62f6\u5482', 'zai': '\u683d\u54c9\u707e\u5bb0\u8f7d\u518d\u5728\u54b1\u5d3d\u753e', 'zan': '\u6512\u6682\u8d5e\u74d2\u661d\u7c2a\u7ccc\u8db1\u933e', 'zang': '\u8d43\u810f\u846c\u5958\u6215\u81e7', 'zao': '\u906d\u7cdf\u51ff\u85fb\u67a3\u65e9\u6fa1\u86a4\u8e81\u566a\u9020\u7682\u7076\u71e5\u5523\u7f2b', 'ze': '\u8d23\u62e9\u5219\u6cfd\u4ec4\u8d5c\u5567\u8fee\u6603\u7b2e\u7ba6\u8234', 'zei': '\u8d3c', 'zen': '\u600e\u8c2e', 'zeng': '\u589e\u618e\u66fe\u8d60\u7f2f\u7511\u7f7e\u9503', 'zha': '\u624e\u55b3\u6e23\u672d\u8f67\u94e1\u95f8\u7728\u6805\u69a8\u548b\u4e4d\u70b8\u8bc8\u63f8\u5412\u54a4\u54f3\u600d\u781f\u75c4\u86b1\u9f44', 'zhai': '\u6458\u658b\u5b85\u7a84\u503a\u5be8\u7826', 'zhan': '\u77bb\u6be1\u8a79\u7c98\u6cbe\u76cf\u65a9\u8f97\u5d2d\u5c55\u8638\u6808\u5360\u6218\u7ad9\u6e5b\u7efd\u8c35\u640c\u65c3', 'zhang': '\u6a1f\u7ae0\u5f70\u6f33\u5f20\u638c\u6da8\u6756\u4e08\u5e10\u8d26\u4ed7\u80c0\u7634\u969c\u4ec9\u9123\u5e5b\u5d82\u7350\u5adc\u748b\u87d1', 'zhao': '\u62db\u662d\u627e\u6cbc\u8d75\u7167\u7f69\u5146\u8087\u53ec\u722a\u8bcf\u68f9\u948a\u7b0a', 'zhe': '\u906e\u6298\u54f2\u86f0\u8f99\u8005\u9517\u8517\u8fd9\u6d59\u8c2a\u966c\u67d8\u8f84\u78d4\u9e67\u891a\u8707\u8d6d', 'zhen': '\u73cd\u659f\u771f\u7504\u7827\u81fb\u8d1e\u9488\u4fa6\u6795\u75b9\u8bca\u9707\u632f\u9547\u9635\u7f1c\u6862\u699b\u8f78\u8d48\u80d7\u6715\u796f\u755b\u9e29', 'zheng': '\u84b8\u6323\u7741\u5f81\u72f0\u4e89\u6014\u6574\u62ef\u6b63\u653f\u5e27\u75c7\u90d1\u8bc1\u8be4\u5ce5\u94b2\u94ee\u7b5d', 'zhi': '\u829d\u679d\u652f\u5431\u8718\u77e5\u80a2\u8102\u6c41\u4e4b\u7ec7\u804c\u76f4\u690d\u6b96\u6267\u503c\u4f84\u5740\u6307\u6b62\u8dbe\u53ea\u65e8\u7eb8\u5fd7\u631a\u63b7\u81f3\u81f4\u7f6e\u5e1c\u5cd9\u5236\u667a\u79e9\u7a1a\u8d28\u7099\u75d4\u6ede\u6cbb\u7a92\u536e\u965f\u90c5\u57f4\u82b7\u646d\u5e19\u5fee\u5f58\u54ab\u9a98\u6809\u67b3\u6800\u684e\u8f75\u8f7e\u6534\u8d3d\u81a3\u7949\u7957\u9ef9\u96c9\u9e37\u75e3\u86ed\u7d77\u916f\u8dd6\u8e2c\u8e2f\u8c78\u89ef', 'zhong': '\u4e2d\u76c5\u5fe0\u949f\u8877\u7ec8\u79cd\u80bf\u91cd\u4ef2\u4f17\u51a2\u953a\u87bd\u8202\u822f\u8e35', 'zhou': '\u821f\u5468\u5dde\u6d32\u8bcc\u7ca5\u8f74\u8098\u5e1a\u5492\u76b1\u5b99\u663c\u9aa4\u5544\u7740\u501c\u8bf9\u836e\u9b3b\u7ea3\u80c4\u78a1\u7c40\u8233\u914e\u9cb7', 'zhu': '\u73e0\u682a\u86db\u6731\u732a\u8bf8\u8bdb\u9010\u7af9\u70db\u716e\u62c4\u77a9\u5631\u4e3b\u8457\u67f1\u52a9\u86c0\u8d2e\u94f8\u7b51\u4f4f\u6ce8\u795d\u9a7b\u4f2b\u4f8f\u90be\u82ce\u8331\u6d19\u6e1a\u6f74\u9a7a\u677c\u69e0\u6a65\u70b7\u94e2\u75b0\u7603\u86b0\u7afa\u7bb8\u7fe5\u8e85\u9e88', 'zhua': '\u6293', 'zhuai': '\u62fd', 'zhuan': '\u4e13\u7816\u8f6c\u64b0\u8d5a\u7bc6\u629f\u556d\u989b', 'zhuang': '\u6869\u5e84\u88c5\u5986\u649e\u58ee\u72b6\u4e2c', 'zhui': '\u690e\u9525\u8ffd\u8d58\u5760\u7f00\u8411\u9a93\u7f12', 'zhun': '\u8c06\u51c6', 'zhuo': '\u6349\u62d9\u5353\u684c\u7422\u8301\u914c\u707c\u6d4a\u502c\u8bfc\u5ef4\u855e\u64e2\u555c\u6d5e\u6dbf\u6753\u712f\u799a\u65ab', 'zi': '\u5179\u54a8\u8d44\u59ff\u6ecb\u6dc4\u5b5c\u7d2b\u4ed4\u7c7d\u6ed3\u5b50\u81ea\u6e0d\u5b57\u8c18\u5d6b\u59ca\u5b73\u7f01\u6893\u8f8e\u8d40\u6063\u7726\u9531\u79ed\u8014\u7b2b\u7ca2\u89dc\u8a3e\u9cbb\u9aed', 'zong': '\u9b03\u68d5\u8e2a\u5b97\u7efc\u603b\u7eb5\u8159\u7cbd', 'zou': '\u90b9\u8d70\u594f\u63cd\u9139\u9cb0', 'zu': '\u79df\u8db3\u5352\u65cf\u7956\u8bc5\u963b\u7ec4\u4fce\u83f9\u5550\u5f82\u9a75\u8e74', 'zuan': '\u94bb\u7e82\u6525\u7f35', 'zui': '\u5634\u9189\u6700\u7f6a', 'zun': '\u5c0a\u9075\u6499\u6a3d\u9cdf', 'zuo': '\u6628\u5de6\u4f50\u67de\u505a\u4f5c\u5750\u5ea7\u961d\u963c\u80d9\u795a\u9162', 'cou': '\u85ae\u6971\u8f8f\u8160', 'nang': '\u652e\u54dd\u56d4\u9995\u66e9', 'o': '\u5594', 'dia': '\u55f2', 'chuai': '\u562c\u81aa\u8e39', 'cen': '\u5c91\u6d94', 'diu': '\u94e5', 'nou': '\u8028', 'fou': '\u7f36', 'bia': '\u9adf' }; // CONCATENATED MODULE: ./src/base/utils/src/vue-py.js // import { pinyin } from './pyconst.js'; /* harmony default export */ var vue_py = ({ chineseToPinYin: function (l1) { var l2 = l1.length; var I1 = ''; var reg = new RegExp('[a-zA-Z0-9]'); var zmReg = new RegExp('[a-zA-Z]'); for (var i = 0; i < l2; i++) { var val = l1.substr(i, 1); if(reg.test(val)) { I1 += val; continue; } var name = this.arraySearch(val, pyconst_pinyin); if (reg.test(val)) { I1 += val; } else if (name !== false) { I1 += name; } } I1 = I1.replace(/ /g, '-'); while (I1.indexOf('--') > 0) { I1 = I1.replace('--', '-'); } return I1; }, arraySearch: function (l1, l2) { for (var name in pyconst_pinyin) { if (pyconst_pinyin[name].indexOf(l1) !== -1) { return this.ucfirst(name); } } return false; }, ucfirst: function (l1) { if (l1.length > 0) { var first = l1.substr(0, 1).toUpperCase(); var spare = l1.substr(1, l1.length); return first + spare; } } }); // EXTERNAL MODULE: ./node_modules/jr-qrcode/dist/jr-qrcode.js var jr_qrcode = __webpack_require__("4a37"); var jr_qrcode_default = /*#__PURE__*/__webpack_require__.n(jr_qrcode); // EXTERNAL MODULE: ./node_modules/jsbarcode/bin/JsBarcode.js var JsBarcode = __webpack_require__("62c5"); var JsBarcode_default = /*#__PURE__*/__webpack_require__.n(JsBarcode); // CONCATENATED MODULE: ./src/base/utils/src/string.js /** * showdoc * @catalog API/工具/Date * @title 字符串基础类 * @className ClientString * @modifier static * @method StringFunc * @demo */ const STR = { /** * showdoc * @catalog API/工具/String * @title 生成MD5 * @description 生成MD5 * @method md5 * @param str 必选 String 需生成的字符 * @return String * @number 60 */ md5: function (str) { return md5_default()(str); }, /** * showdoc * @catalog API/工具/String * @title 获取中文首字母拼音 * @description 获取中文首字母拼音 * @method getFirstPY * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getFirstPY: function (str) { if (!str) return ""; let SX = '', pinyin; str = str.toUpperCase(); if (str.constructor == Array) { pinyin = []; for (let i = 0; i < str.length; i++) { pinyin.push(vue_py.chineseToPinYin(str[i])); } } else pinyin = vue_py.chineseToPinYin(str); if (pinyin.constructor == Array) { let result = []; for (let j = 0; j < pinyin.length; j++) { let tempPY = pinyin[j], tempSX = ""; for (let i = 0; i < tempPY.length; i++) { let c = tempPY.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { tempSX += c; } } result.push(tempSX.toLowerCase()); } return result; } else { for (let i = 0; i < pinyin.length; i++) { let c = pinyin.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { SX += c; } } return SX.toLowerCase(); } }, /** * showdoc * @catalog API/工具/String * @title 下载地址 * @description 获取下载地址 * @url getDownloadUrl(url,fileName) * @method getDownloadUrl * @param url 必选 url * @param fileName 必选 文件名 * @return String * @number 60 */ getDownloadUrl(url, fileName) { return window.eap.utils.biz.getDownloadUrl(url, fileName);; }, /** * showdoc * @catalog API/工具/String * @title 获取中文全拼音 * @description 获取中文全拼音 * @url getPinyin(str) * @method getPinyin * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getPinyin: function (str) { let result = []; if (!str) return ""; if (str.constructor == Array) { for (let i = 0; i < str.length; i++) { result.push(vue_py.chineseToPinYin(str[i]).toLowerCase()); } return result; } else return vue_py.chineseToPinYin(str).toLowerCase(); }, /** * showdoc * @catalog API/工具/String * @title 获取指定范围随机数 * @description 获取中文全拼音 * @url randomInt(min, max) * @method randomInt * @param min 必选 Int 起止数字 * @param max 必选 Int 结束数字 * @return String * @number 60 */ randomInt: function (min, max) { var Range = max - min; var Rand = Math.random(); return (min + Math.round(Rand * Range)); }, /** * showdoc * @catalog API/工具/String * @title 获取功能/流程路径 * @description 获取功能/流程路径 * @url getBizUrl(url) * @method getBizUrl * @param url 必选 url * @return String * @number 60 */ getBizUrl(url) { if (window.eap) return window.eap.utils.biz.getUrl(url); return url }, /** * showdoc * @catalog API/工具/String * @title 获取url地址栏参数 * @description 获取功能/流程路径 * @method getUrlValue * @param name 必选 name * @param url 选填 url * @return String * @number 60 */ getUrlValue: function (name, url) { var str = url || window.location.href; if (str.indexOf("&" + name) != -1 || str.indexOf("?" + name) != -1) { var pos_start = "" if (str.indexOf("?" + name) > -1) pos_start = str.indexOf("?" + name) + name.length + 2; else pos_start = str.indexOf("&" + name) + name.length + 2; var pos_end = str.indexOf("&", pos_start); if (pos_end == -1) { return str.substring(pos_start); } else { return str.substring(pos_start, pos_end) } } else { return ""; } }, /** * showdoc * @catalog API/工具/String * @title 设置url地址栏参数 * @description 获取功能/流程路径 * @url getUrlValue(name, url) * @method setUrlValue * @param url 选填 url * @param name 选填 name * @param pValue 选填 pValue * @return String * @number 60 */ setUrlValue: function (url, pName, pValue) { if (url == null || url == '') { return ''; } var arrUrl = url.split('?'); if (arrUrl.length <= 1) { return url + '?' + pName + '=' + pValue; } var paramArr = arrUrl[1].split('&'); var isAdd = true; for (var i = 0; i < paramArr.length; i++) { var valueArr = paramArr[i].split('='); if (valueArr[0] == pName) { paramArr[i] = pName + '=' + pValue; isAdd = false; } } if (isAdd) { paramArr[paramArr.length] = pName + '=' + pValue; } return arrUrl[0] + '?' + paramArr.join('&'); }, /** * showdoc * @catalog API/工具/String * @title 获取指定长度的ID * @description 获取指定长度的ID * @url id(len) * @method id * @param len 必选 Int 长度 * @return String * @number 60 */ id: function (len) { return (function (len, radix) { var chars = '012abcdefghuwxyz34MNOPQRSTUV567ijklmnopqrst89ABCDEFGHIJKLWXYZ' .split(''); // var chars = Scp.String.newGUID().replace(/-/g,"").split(""); var uuid = [], i; radix = radix || chars.length; if (len) { // Compact form for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix]; } else { // rfc4122, version 4 form var r; // rfc4122 requires these characters uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-'; uuid[14] = '4'; // Fill in random data. At i==19 set the high bits of clock // sequence as // per rfc4122, sec. 4.1.5 for (i = 0; i < 36; i++) { if (!uuid[i]) { r = 0 | Math.random() * 16; uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r]; } } } return uuid.join(''); })(len || 6, 61); }, /** * showdoc * @catalog API/工具/String * @title 获取GUID * @description 获取GUID * @url guid() * @method guid * @return String * @number 60 */ guid: function () { var nowDateTime = new Date(); var myRandom1 = this.randomInt(1, 1000); var myRandom2 = this.randomInt(1, 1000); var myRandom3 = this.randomInt(1, 1000); var decodeStr = nowDateTime.valueOf() + "-" + nowDateTime.getMilliseconds() + "-" + myRandom1 + "-" + myRandom2 + "-" + myRandom3; var encodeStr = this.md5(decodeStr); var guid = encodeStr.substring(0, 8) + "-" + encodeStr.substring(8, 12) + "-" + encodeStr.substring(12, 16) + "-" + encodeStr.substring(16, 20) + "-" + encodeStr.substring(20, 32); return guid.toUpperCase(); }, /** * showdoc * @catalog API/工具/String * @title 字符格式化 * @description 字符格式化 * @url format() * @method format(str,$1,$2,$3......) * @param str 必选 String 需格式化的字符 * @param $1 必选 String 需替换的$1 * @param $2 必选 String 需替换的$2 * @param $3 必选 String 需替换的$3 * @return String * @number 60 */ format: function () { if (arguments.length == 0) return ''; var argArray = Array.prototype.slice.call(arguments); var result = argArray.shift(); if (argArray.length == 1 && typeof (argArray[0]) == "object") { var args = argArray[0]; for (var key in args) { if (args[key] != undefined) { let reg = new RegExp("({" + key + "})", "g"); result = result.replace(reg, args[key]); } } } else { for (var i = 0; i < argArray.length; i++) { if (argArray[i] != undefined) { let reg = new RegExp("({)" + i + "(})", "g"); result = result.replace(reg, argArray[i]); } } } return result; }, controlGuid(key) { return (key || '').replace(/[.|#|@|*|\?|\(|\)|<|>|\{|\|\^|\$}]/gi, '_') + '_' + STR.id(8); }, /** * showdoc * @catalog API/工具/String * @title 转换人民币大写 * @description 转换人民币大写 * @method upperMoney * @param numberValue 必选 numberValue * @return String * @number 60 */ upperMoney(numberValue) { var numberValue = new String(Math.round(Math.abs(numberValue) * 100)); // 数字金额 var chineseValue = ""; // 转换后的汉字金额 var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 var String2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; // 对应单位 var len = numberValue.length; // numberValue 的字符串长度 var Ch1; // 数字的汉语读法 var Ch2; // 数字位的汉字读法 var nZero = 0; // 用来计算连续的零值的个数 var String3; // 指定位置的数值 if (len > 15) { alert("超出计算范围"); return ""; } if (numberValue == 0) { chineseValue = "零元整"; return chineseValue; } String2 = String2.substr(String2.length - len, len); // 取出对应位数的STRING2的值 for (var i = 0; i < len; i++) { String3 = parseInt(numberValue.substr(i, 1), 10); // 取出需转换的某一位的值 if (i != (len - 3) && i != (len - 7) && i != (len - 11) && i != (len - 15)) { if (String3 == 0) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } } else { // 该位是万亿,亿,万,元位等关键位 if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 != 0 && nZero == 0) { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 == 0 && nZero >= 3) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else { Ch1 = ""; Ch2 = String2.substr(i, 1); nZero = nZero + 1; } if (i == (len - 11) || i == (len - 3)) { // 如果该位是亿位或元位,则必须写上 Ch2 = String2.substr(i, 1); } } chineseValue = chineseValue + Ch1 + Ch2; } if (String3 == 0) { // 最后一位(分)为0时,加上“整” chineseValue = chineseValue + "整"; } return chineseValue; }, /** * showdoc * @catalog API/工具/String * @title 分解附件 * @description 分解附件 * @url format() * @method splitAttach * @param val 必选 附件值 * @return String * @number 60 */ splitAttach(val) { var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } list.push({ name: arr[i].split(";")[0], size: arr[i].split(";")[1], path: arr[i].split(";")[2], url: `${path}?relativePath=${arr[i].split(";")[2]}`, }); } return list; }, /** * showdoc * @catalog API/工具/String * @title 附件图片地址 * @description 附件图片地址 * @url format() * @method splitAttachImgUrl * @param val 必选 附件值 * @return String * @number 60 */ splitAttachImgUrl(val) { if (!val) return; var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } if (arr[i].split(";").length > 2) { list = this.splitAttach(val) break; } else { if (arr[0].indexOf("http://") != -1) { list.push({ url: arr[0], }); } else { list.push({ url: `${path}?relativePath=${arr[0]}`, }); } } } return list[0].url; }, /** * showdoc * @catalog API/工具/String * @title 获取二维码 * @description 生成二维码Base64 URL * @url getQrcode(text, options) * @method getQrcode * @param text 必选,要生成二维码的字符,支持中文 string * @param options 配置对象 object * @return String * @number 60 */ getQrcode(text, options = {}) { if (!text) return; let imgBase64 = jr_qrcode_default.a.getQrBase64(text, options); return imgBase64 }, /** * showdoc * @catalog API/工具/String * @title 获取条形码 * @description 生成条形码Base64 URL * @url getBarcode(text, options) * @method getBarcode * @param text 必选,要生成条形码的字符 string * @param options 配置对象 object * @return String * @number 60 */ getBarcode(text, options = {}) { if (!text) return; var canvas = document.createElement("canvas") JsBarcode_default()(canvas, text, options) return canvas.toDataURL("image/png") } } /* harmony default export */ var string = (STR); // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js const GLOBAL_LANG_HIUI = { "hi_common_cancel": "取消", "hi_common_confirm": "确定", //03472 //03472 "hi_query_all": '全部', "hi_query_noempty": "不能为空!", "hi_query_sysscheme": "系统方案", "hi_query_reset": "重置", "hi_query_btnname": "查询", "hi_query_more": "更多", "hi_order_defaultall": "综合", "hi_timescheme_month": '本月', "hi_timescheme_yeartonow": "今年至今", "hi_timescheme_last6month": "最近六个月", "hi_timescheme_today": "本日", "hi_timescheme_yesterday": "昨日", "hi_timescheme_last7days": "近7天", "hi_timescheme_last28days": "近28天", "hi_timescheme_last84days": "近84天", "hi_timescheme_startdate": "开始日期", "hi_timescheme_enddate": "结束日期", "hi_timescheme_year": "本年度", "hi_timescheme_week": "本周", "hi_timescheme_quarter": "本季度", "hi_timescheme_split": "到", "hi_timescheme_halfyear": "近半年", "hi_timescheme_oneyear": "近一年", "hi_pushdata_linkSelect": "请选择需要打开的链接!", "hi_pushdata_hasAuth": "当前请求功能您没有权限访问!", "hi_pushdata_requestError": "请求异常", "hi_treequery_placeholder": "输入关键字进行过滤", "hi_numberrange_splitstr": "到", "hi_datalist_nodata": "暂无数据!", "hi_importexcel_uploadname": "Excel上传", "hi_importexcel_templatename": "模板下载", "hi_importexcel_noallowfile": "不支持上传{0}格式!", "hi_importexcel_limitfilesize": "限制上传文件大小为{0}M!", "hi_exportexcel_exportname": "Excel导出", "hi_exportexcel_buildfile": "文件生成中", "hi_exportexcel_isdownload": "是否取消文件下载?", "hi_dataRequest_request": "数据请求中", "hi_dataRequest_isCacel": "是否取消请求?", "hi_dataRequest_tip": "提示", "hi_dataRequest_tip": "提示", "hi_dataRequest_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_builddatacomplate": "数据生成完成!", "hi_expression_close": "关闭", "hi_expression_confirm": "关闭", "hi_expression_dialogname": "表达式", //03472 //01521 begin "hi_page_confirm": "确定", "hi_page_cancel": "取消", "hi_page_prompt": "提示", "hi_page_cannotBeNull": "不能为空", "hi_page_outOfRange": "输入的字符超出", "hi_page_dataPromptNotSubmitted": "检测到有未提交的数据,是否还原", "hi_page_dataNotModified": "数据未修改", "hi_page_initializing": "正在初始化..", //01521 end "hi_table_file": "个文件", "hi_table_index": "序号", "hi_table_operate": "操作", "hi_table_add": "新增", "hi_table_del": "删除", "hi_table_addsub": "新增子节点", "hi_table_emptyText": "暂无数据", "hi_table_confirmFilter": "筛选", "hi_table_resetFilter": "重置", "hi_table_clearFilter": "全部", "hi_table_sumText": "合计", "hi_table_lockCol": "锁定列", "hi_table_unlockCol": "解锁列", "hi_table_fillUp": "向上填充", "hi_table_fillDown": "向下填充", "hi_table_copy": "复制", "hi_table_copyRow": "复制整行", "hi_table_copyCol": "复制整列", "hi_table_copyCell": "复制单元格", "hi_table_download": "下载", "hi_table_downloadAll": "下载所有", "hi_table_downloadSelect": "选中下载", "hi_table_maxAddNode": "最多只能添加{0}级节点", "hi_table_yesterday": "昨天", "hi_table_today": "今天", "hi_table_aweek": "一周", "hi_table_paste": "粘贴", "hi_table_pasteRow": "指定位整行粘贴", "hi_table_pasteCol": "指定位整列粘贴", "hi_table_pasteMsg": "navigator.clipboard 仅支持通过 HTTPS 提供的页面", "hi_table_colSetting": "字段配置", "hi_table_colsConfig": "列表字段配置", // 12112 "hi_messagebox_title": "提示", "hi_messagebox_confirm": "确定", "hi_messagebox_cancel": "取消", "hi_toolbar_add": "添加", "hi_toolbar_del": "删除", "hi_toolbar_reset": "取消", "hi_toolbar_save": "保存", "hi_toolbar_submit": "提交", "hi_toolbar_callout": "调单", "hi_toolbar_nexttache": "流转", "hi_toolbar_backtache": "回退", "hi_toolbar_signout": "加签", "hi_toolbar_processSign": "处理加签", "hi_toolbar_turnOut": "转办", "hi_toolbar_terminate": "终止", "hi_toolbar_umpire": "反审", "hi_toolbar_monitor": "流程监控", "hi_toolbar_savesuccess": "数据保存成功", "hi_toolbar_processflowsuccess": "流程处理成功", "hi_toolbar_limitequals": "请选择相同的:", "hi_toolbar_limitnoequals": "请选择不同的:", "hi_toolbar_limitnoequals1": "相同记录已跳过!", "hi_toolbar_finished": "流程结束", "hi_toolbar_actors": "下个执行者", "hi_toolbar_loader": "数据处理中...", "hi_toolbar_agree": "同意", "hi_toolbar_disagree": "不同意", "hi_toolbar_selectOneError": "至少选择一个执行者!", "hi_toolbar_removeallhint": "确定要删除所有记录吗?", "hi_toolbar_cancelhint": "确定要取消吗?", "hi_toolbar_umpirehint": "确定要启用反审吗?", "hi_toolbar_savehint": "数据未保存,是否保存数据?", "hi_toolbar_circulationway": "返回方式", "hi_toolbar_circulationway_default": "重新流转", "hi_toolbar_circulationway_again": "原路返回", "hi_toolbar_performType": "原路返回", "hi_toolbar_performType1": "独占", "hi_toolbar_performType2": "会签", "hi_toolbar_performType3": "顺序", "hi_toolbar_signType_BeforSign": "前加签", "hi_toolbar_signType_AfterSign": "后加签", "hi_toolbar_approvecomments": "审批意见", "hi_toolbar_assigneeLabel": "额外办理人", "hi_toolbar_previousName": "上一节点", "hi_toolbar_processor": "处理人", "hi_toolbar_previousCount": "节点处理人:共", "hi_toolbar_previousCount2": "人审批", "hi_toolbar_processortime": "处理时间", "hi_toolbar_username": "用户名", "hi_toolbar_userid": "用户ID", "hi_toolbar_userorgname": "编制名", "hi_toolbar_bzid": "编制ID", "hi_toolbar_collapse": "收起", "hi_toolbar_expand": "展开", "hi_form_required": " 必填!", "hi_tree_search": "输入关键字进行过滤", "hi_tree_addPeerBtn": "添加同级", "hi_tree_add": "添加", "hi_tree_edit": "编辑", "hi_tree_del": "删除", "hi_tree_noNode": "节点不存在", "hi_tree_removehint": "请先删除子节点!", "hi_calendar_add": "新增日程", "hi_calendar_refresh": "刷新", "hi_calendar_month": "月", "hi_calendar_week": "周", "hi_calendar_day": "日", "hi_calendar_between": "到", "hi_calendar_prevMonth": '上个月', "hi_calendar_nextMonth": '下个月', "hi_calendar_today": '今天', "hi_calendar_time": '时间', "hi_select_placeholder": "请选择", "hi_selectGrid_queryname": "请输入关键词", "hi_dataSelect_hasselect": "当前记录已选!", "hi_dataSelect_selectOneError": "至少选择一条记录!", "hi_dataSelect_Loading": "数据加载中...", "hi_dataSelect_selectall": "全选", "hi_dataSelect_clear": "清空", "hi_dataSelect_selectAdd": "添加选中", "hi_dataSelect_selectclear": "删除选中", "hi_dataSelect_queryCdionsNull": "明细条件未传!", "hi_dataSelect_numberFieldNull": "未配置单号!", "hi_dataSelect_nosoucredataset": "来源数据集不存在", "hi_dataSelect_noin": "数据不在查找范围内!", "hi_upload_deleteTip": '按 delete 键可删除', "hi_upload_uploadName": "点击上传", "hi_upload_delete": '删除', "hi_upload_removeall": '清空', "hi_upload_preview": '查看图片', "hi_upload_continue": '继续上传', "hi_upload_limit": "当前限制选择{0}个文件,本次选择了{1}个文件,共选择了{2}个文件", "hi_upload_fileExtension": "后缀为", "hi_upload_limitcount": "数量不超过{0}个", "hi_upload_fileSize": "大小不超过{0}M", "hi_upload_hint": "只能上传[ {0} ]文件", "hi_upload_fileExtensionLimit": "不支持上传{0}格式!", "hi_upload_files": "个文件", "hi_imagecropper_dialogtitle": "切图", "hi_imagecropper_select": "选择封面", "hi_imagecropper_scalebig": "放大", "hi_imagecropper_scalesmall": "缩小", "hi_imagecropper_rotateLeft": "左旋转", "hi_imagecropper_rotateRight": "右旋转", "hi_imagecropper_upload": "上传封面", "hi_imagecropper_error":"图片类型要求", "hi_mapSelect_translate": "坐标转换失败!", "hi_page_pageInit": "没有找到初始化接口配置,请在环境配置中新增pageInitUrl节点配置", "hi_page_pagecontrolstate": "页面控件状态", "hi_monitor_approvalRecord": "审批记录", "hi_monitor_flow": "流程", "hi_monitor_displayname": "流程名称", "hi_monitor_ordernumber": "流程编号", "hi_monitor_createtime": "创建时间", "hi_monitor_finishtime": "完成时间", "hi_monitor_flowstate": "流程状态", "hi_monitor_finish": "已完成", "hi_monitor_taskname": "任务名称", "hi_monitor_noReceived": "未接收", "hi_monitor_timeConsuming": "耗时", "hi_monitor_approver": "审批人", "hi_monitor_processingStatus": "处理状态", "hi_monitor_processe": "需处理", "hi_monitor_postscript": "附言", "hi_monitor_flowchart": "流程图", "hi_monitor_gantt": "甘特图", "hi_monitor_processed": "已处理", "hi_monitor_back": "回退", "hi_monitor_sysAuto": "系统自动流转", "hi_monitor_terminate": "终止", "hi_monitor_cancel": "取消", "hi_monitor_transfer": "转办", "hi_monitor_taskWithdraw": "任务撤回", "hi_monitor_tsBeforSigning": "前加签中", "hi_monitor_tsAfterSigning": "后加签中", "hi_monitor_tsBeforSignDW": "前加签处理", "hi_monitor_tsAfterSignDW": "后加签处理", "hi_monitor_tsBeforSigned": "已前加签", "hi_monitor_tsAfterSigned": "已后加签", "hi_monitor_day": "天", "hi_monitor_hour": "小时", "hi_monitor_Min": "分", "hi_monitor_second": "秒", "hi_monitor_gantt_dept": "所属部门", "hi_monitor_gantt_role": "岗位职称", "hi_dbType_AuditPoint_0": "已审核", "hi_dbType_AuditPoint_1": "运行中", "hi_dbType_AuditPoint_2": "审批中", "hi_dbType_AuditPoint_99": "终止", "hi_dbType_boolean_yes": "是", "hi_dbType_boolean_no": "否" } /* harmony default export */ var zh_CN = (GLOBAL_LANG_HIUI); // CONCATENATED MODULE: ./src/locale/global.js const t = function (key) { let globalLang = (window.GLOBAL_LANG_HIUI || {}); let lang = Object.assign({}, zh_CN, globalLang); return lang[key] || key; }; // CONCATENATED MODULE: ./src/base/utils/src/dbType.js let _this = { dbString: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, type: "dbString", formType: { element: "el-input" } }, dbInt: { format: function (v, format) { v = parseInt(v); if (format == "eleAuditPoint") { let val = "" switch (v) { case 0: val = t("hi_dbType_AuditPoint_0") break; case 1: val = t("hi_dbType_AuditPoint_1") break; case 99: val = t("hi_dbType_AuditPoint_99") break; case 2: val = t("hi_dbType_AuditPoint_2") break; default: val = isNaN(v) ? "" : v } return val; } if (typeof (format) == "function") { return format.call(window, v); } if (isNaN(v)) { return ""; } v = v * 1; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } let val = _this.dbInt.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, // 数值型默认值不设置 defautlVal: 0, type: "dbInt", queryType: { element: "HiNumberRange" }, formType: { element: "hi-number", props: { precision: 0, "controls-position": "right" } } }, dbFloat: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbFloat.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbFloat", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbDouble: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbDouble.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbDouble", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbText: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (!format) return v; return v; }, type: "dbText", formType: { element: "el-input", props: { type: "textarea", rows: 5 } }, queryType: { element: "el-input", props: { } }, gridType: { element: "hi-textarea", props: { popup: true, rows: 5 } } }, dbBoolean: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v === "") { return ""; } if (typeof v != "boolean") { if (v * 1 == v) { v = parseInt(v); } } return (typeof v == "boolean" || typeof v == "number") ? (v ? t("hi_dbType_boolean_yes") : t("hi_dbType_boolean_no")) : v; }, formatView: function (v, format) { return _this.dbBoolean.format(v, format); }, parse: function (v) { if (v == "yes" || v == "是" || v == "1" || v == "true" || v == "y") return true; else return false; }, type: "dbBoolean", queryType: { element: "el-checkbox", props: { } }, formType: { element: "el-checkbox", props: { } } }, dbDatetime: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, /** * @property datetime.type * @description datetime类型 * @type {String} * @final * @static */ type: "dbDatetime", queryType: { element: "HiTimeScheme" }, formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbTimestamp: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, type: "dbTimestamp", formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbBasic: { type: "dbBasic" }, dbArray: { type: "dbArray" }, dbObject: { type: "dbObject" }, dbList: { type: "dbList" } } _this.dbDate = _this.dbDatetime; /* harmony default export */ var dbType = (_this); // CONCATENATED MODULE: ./src/base/utils/src/bom.js const bom = { getUrlParam(name) { let search = window.location.search; search = search.substring(1, search.length) let values = search.split("&"); let result = {}; for (let i = 0; i < values.length; i++) { const element = values[i]; let _val = element.split("="); result[_val[0]] = _val[1]; } if (name) return result[name]; return result; }, //打开链接 openUrl(url, paramters={}, method='get', target) { //创建form表单 let id = "formid" + (new Date()).valueOf(); if (!url.toLowerCase().startsWith("http") && window.eap) { url = window.eap.utils.biz.getUrl(url); } var formredwin = document.createElement("form"); formredwin.method = method || "get"; document.body.appendChild(formredwin); formredwin.target = target; formredwin.action = url for (var item in paramters) { if(url.indexOf(item+"=")>-1) continue; var inputObj = document.getElementById(`${id}_${item}`); if (inputObj) { inputObj.value = paramters[item]; } else { var opt = document.createElement("input"); opt.type = "hidden"; opt.name = item; opt.value = paramters[item]; formredwin.appendChild(opt); } } formredwin.submit(); formredwin.parentNode.removeChild(formredwin); }, mergeDefaultCfg(defaultCmp, controlCfg) { var result = null; var tempdefaultCmp = defaultCmp; for (var key in controlCfg) { if ((typeof controlCfg[key]) == "object") { controlCfg[key] = bom.recursionCfg(tempdefaultCmp, controlCfg[key]); } if (key == "crlName" && tempdefaultCmp[controlCfg["crlName"]] != undefined) { controlCfg = Object.assign({}, tempdefaultCmp[controlCfg["crlName"]], controlCfg); } } return controlCfg; }, recursionCfg(defaultCmp, recuCfg) { var tempdefaultCmp = defaultCmp; var result = null; for (var key in recuCfg) { if ((typeof recuCfg[key]) == "object") { recuCfg[key] = bom.recursionCfg(tempdefaultCmp, recuCfg[key]); } if (key == "crlName" && tempdefaultCmp[recuCfg["crlName"]] != undefined) { recuCfg = Object.assign({}, tempdefaultCmp[recuCfg["crlName"]], recuCfg); } } return recuCfg; } } /* harmony default export */ var src_bom = (bom); // CONCATENATED MODULE: ./src/base/utils/index.js let utils_date=date; let utils_number=number; let utils_string=string; let utils_dbType = dbType; let utils_bom = src_bom; /* harmony default export */ var utils = ({ date: utils_date,number: utils_number,string: utils_string,dbType: utils_dbType,bom: utils_bom }); let DateUtil=date; let NumberUtil=number; let StringUtil=string; let DbTypeUtil = dbType; let BomUtil = src_bom; // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/where.js const defOperate = "=" let where_WhereCondition = class WhereCondition { constructor(config) { config = config || {}; this.className = 'WhereCondition' this.enabled = null,// 新添加的 this.sign = null,// 操作符 this.name = null,// 属性 this.dataType = null,// 数据类型 this.tablefilter = null,// tablefilter this.value = null,// 值 this.enabled = true, this.setValue(config.name, config.value, config.dataType, config.sign, config.tablefilter); } setValue(property, value, dataType, operator, tablefilter) { this.sign = operator || "eq"; this.name = property || ""; this.dataType = dataType || types.string; this.value = value; this.enabled = true; this.tablefilter = tablefilter == undefined ? false : tablefilter; } getValue() { return { sign: this.sign, name: this.name, tablefilter: this.tablefilter, dataType: this.dataType, value: this.value, enabled: true }; } }; let where_Where = class Where { /** * showdoc * @title 查询条件 * @className Where * @method Where */ constructor(config, params = []) { config = config || {}; this.params = params this.className = 'Where' this.join = null this.items = null // _.extend(this, config); if (config.junction) config.join = config.junction; if (!config.join) config.join = "and"; if (config.criterionData == null) { if (!config.join) config.join = "and"; this.setWhereData(config.join, []); } else { var paramsDataType = typeof (config.criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(config.criterionData);//$.parseJSON(config.criterionData); break; case "object": objParamsData = config.criterionData; break; } this.setCriterionData(objParamsData); } } setValue(join, items) { this.setWhereData(join, items); } setWhereData(join, items) { this.join = join || "and"; this.items = items || []; } // setCriterionData(criterionData) { var paramsDataType = typeof (criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(criterionData); break; case "object": objParamsData = criterionData; break; } this.join = objParamsData.join || "and"; this.items = []; this.recursiveSetCriteria(this, objParamsData.items); } recursiveSetCriteria(where, items) { var me = this; if (items == null || items.length == 0) { where.items = []; return; } var subLen = items.length; for (var i = 0; i < subLen; i++) { var subItem = items[i]; if (subItem.join) { var whereItem = new Where({ join: subItem.join }); this.recursiveSetCriteria(whereItem, subItem.items); where.addWhere(whereItem); } else { if (subItem.sign) { var fieldName = subItem.name.replace("&[", "").replace("]", ""); fieldName = fieldName.replace("this.get('", "").replace( "')", ""); if (typeof subItem.value == "function") { var tempVal = me.filterValue(subItem.value) where.addCondition(fieldName, tempVal, subItem.dataType, subItem.sign, false, subItem.tablefilter); } else where.addCondition(fieldName, subItem.value, subItem.dataType, subItem.sign, false, subItem.tablefilter); } } } } // 过滤表达式 filterValue(valueExpress) { var me = this, val; val = valueExpress.call(this, ...this.params); return val; } /** * showdoc * @catalog API/工具/Where条件 * @title 添加where条件 * @description 添加where条件 * @method addWhere * @param where 必选 Where where条件 * @return void * @number 60 */ addWhere(where) { // if (where) { let isFind = false; for (let i = 0; i < this.items.length; i++) { let itemstr = JSON.stringify(this.items[i]) if (itemstr == JSON.stringify(where.toJSON())) { isFind = true; break; } } if (!isFind) this.items.push(where); } } /** * showdoc * @title 添加字段条件 * @description 添加字段条件 * @method addCondition * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param operator 必选 String 操作符(eq,noteq,in,notin,gt,lt,isnull,isnotnull,gteq,lteq,like,likeLeft,likeRight) * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ addCondition(property, value, dataType, operator, isCover, tablefilter) { if (value === null || value == undefined || value === "null") { operator = "isnull"; value = "null"; } if (operator === "isnull") value = "null"; //采用后端默认值 if (!operator && window.HIVUI_SETTING) operator = window.HIVUI_SETTING.queryOperate || 'eq'; if (!operator) operator = 'eq'; let value1, operateArray = ["in", "notIn"]; if (typeof value === "function") { value = value.call(); } if (isDate_default()(value)) { value = utils_date.format(value, 'yyyy-MM-dd hh:mm:ss') } if (operateArray.indexOf(operator) > -1 && value && (!(value instanceof Array))) { value1 = (value + "").split(","); } else { value1 = value; } if (isCover) for (var i = 0; i < this.items.length; i++) { if (property == this.items[i].name) { this.items[i].value = value1; this.items[i].tablefilter = tablefilter; this.items[i].dataType = dataType || types.string; this.items[i].sign = operator; return; } } var condition = new where_WhereCondition({ name: property, tablefilter: tablefilter, value: value1, sign: operator, dataType: dataType || types.string }); this.items.push(condition); } add(property, value, dataType, isCover, tablefilter) { this.addEqual(property, value, dataType, isCover, tablefilter) } _addEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "eq", isCover, tablefilter); } _addArray(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover, tablefilter); } _addNotIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } _addIsNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnull", isCover, tablefilter); } _addIsNotNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnotnull", isCover, tablefilter); } _addNotEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "noteq", isCover, tablefilter); } _addGreaterThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gt", isCover, tablefilter); } _addLessThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lt", isCover, tablefilter); } _addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gteq", isCover, tablefilter); } _addLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "like", isCover, tablefilter); } _addLessThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lteq", isCover, tablefilter); } _addLeftLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeLeft", isCover, tablefilter); } _addRightLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeRight", isCover, tablefilter); } /** * showdoc * @title 添加等于(=)操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method eq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ eq(property, value, dataType, isCover, tablefilter) { this._addEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加默认操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method def * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ def(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, null, isCover, tablefilter) } /** * showdoc * @title 添加in操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method in * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ in(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover , tablefilter); } /** * showdoc * @title 添加notin操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method notIn * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ notIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } /** * showdoc * @title 添加inRange 内操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method inRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ inRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "inRange", isCover , tablefilter); } /** * showdoc * @title 添加outRange 外操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method outRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ outRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "outRange", isCover, tablefilter); } /** * showdoc * @title 添加between操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method between * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ between(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "between", isCover, tablefilter); } /** * showdoc * @title 添加noteq不等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method noteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ noteq(property, value, dataType, isCover, tablefilter) { this._addNotEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gt(property, value, dataType, isCover, tablefilter) { this._addGreaterThan(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gteq(property, value, dataType, isCover, tablefilter) { this._addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加小于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lt(property, value, dataType, isCover, tablefilter) { this._addLessThan(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加小于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lteq(property, value, dataType, isCover, tablefilter) { this._addLessThanAndEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method like * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ like(property, value, dataType, vtype, isCover, tablefilter) { this._addLike(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加左like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method leftLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ leftLike(property, value, dataType, isCover, tablefilter) { this._addLeftLike(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加右like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method rightLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ rightLike(property, value, dataType, isCover, tablefilter) { this._addRightLike(property, value, dataType, isCover, tablefilter); } getItemByIndex(i) { return this.items[i]; } deleteItemByIndex(i) { this.items.splice(i, 1); } getData() { var len = this.items.length; if (len == 0) { return null; } var whereData = { join: this.join, items: [] }; for (var i = 0; i < len; i++) { var item = this.items[i]; this.recursiveWhereData(whereData, item); } return whereData; } recursiveWhereData(whereData, item) { if (item.items) { var subLen = item.items.length; if (subLen > 0) { var subWhereData = { join: item.join, items: [] }; for (var i = 0; i < subLen; i++) { var subItem = item.items[i]; this.recursiveWhereData(subWhereData, subItem); } whereData.items.push(subWhereData); } } else { var itemCondition = item.getValue(); whereData.items.push(itemCondition); } } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件JSON数据 * @description 获取where条件JSON数据 * @method toJSON() * @return json * @number 60 */ toJSON() { return this.getData(); } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件字符串数据 * @description 获取where条件字符串数据 * @url toStr() * @method toStr() * @return String * @number 60 */ toStr() { return JSON.stringify(this.getData()); } /** * showdoc * @catalog API/工具/Where条件 * @title 根据字段ID返回该字段条件对象 * @description 根据字段ID返回该字段条件对象 * @param key 必选 String 字段名 * @method getConditionByKey(key) * @return json * @number 60 */ getConditionByKey(key) { var len = this.items.length; for (var i = 0; i < len; i++) { var item = this.items[i]; if (item.name && item.name == key) { return item; } else { if (!item.items || item.items.length == 0) return null; let _item = this._recursionWhere1(item.items, key); if (_item != null) return _item; } } return null; } _recursionWhere1(items, key) { var i = 0, len = items.length; for (; i < len; i++) { let item = items[i] if (item.name && item.name == key) return item if (item.name) continue; if (!item.items || item.items.length == 0) return null; item.items.length > 0 && this._recursionWhere1(item.items, key); } } // 应用存储过程 setCustomWhere(join) { var where = new Where({ join: join || "and" }); var i = 0, len = this.items.length; for (; i < len; i++) { if (this.items[i].name) { where.addCondition(this.items[i].name, this.items[i].value, this.items[i].dataType, this.items[i].sign, this.items[i].isCover, this.items[i].tablefilter); } else this._recursionWhere(where, this.items[i].items); } this.join = where.join; this.items = where.items; } // 递归where 所有 _recursionWhere(where, items) { var i = 0, len = items.length; for (; i < len; i++) { if (items[i].name) where.addCondition(items[i].name, items[i].value, items[i].dataType, items[i].sign, items[i].isCover, items[i].tablefilter); else this._recursionWhere(where, items[i].items); } } isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (has_default()(this, pageIndexKey) && has_default()(this, pageSizeKey)) return true; else return false; } setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起止页 getPageIndex * @description 获取当前where起止页。 * @url getPageIndex() * @method getPageIndex() * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 getPageSize * @description 获取当前where每页显示多少条。 * @url getPageSize() * @method getPageSize() * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } where_Where.prototype.equal = where_Where.prototype.eq /* harmony default export */ var queryHelper_where = (where_Where); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/orders.js class Orders { /** * showdoc * @title 查询排序 * @className Orders * @method Orders */ constructor(config) { config = config || {}; this.orderData = []; if (config.orderData) { this.orderData = config.orderData; } } getOrderItemModel() { return { name: "", desc: "", type: "desc" }; } /** * showdoc * @title 添加降序条件 * @description 添加降序条件 * @method addDesc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addDesc(property, desc) { this.addOrder(property, "desc", desc); } /** * showdoc * @catalog API/工具/Orders排序 * @title 添加升序 * @description 添加升序条件 * @method addAsc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void */ addAsc(property, desc) { this.addOrder(property, "asc", desc); } /** * showdoc * @title 添加排序 * @description 添加排序 * @method addOrder * @param property 必选 String 字段名 * @param type 必选 String 排序类型 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addOrder(property, type, desc) { var orderItem = this.getOrderItemModel(); orderItem.name = property; orderItem.desc = desc; orderItem.type = type this.orderData.push(orderItem); } /** * showdoc * @title 获取order排序JSON数据 * @description 获取order排序JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { return this.orderData; } /** * showdoc * @title 获取order排序字符串数据 * @description 获取order排序字符串数据 * @method toStr * @return json * @number 60 */ toStr() { return JSON.stringify(this.orderData); } } // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/param.js class param_Param { /** * showdoc * @title 查询参数 * @className Param * @description 查询参数 * @method Param */ constructor(config) { config = config || {}; this.orders = null this.className = 'Params' this.paramKey = "queryParam" // _.extend(this, config); this.where = config.where || new queryHelper_where(); this.returnTotal = config.returnTotal; this.zcQuery = config.zcQuery; this.modelFilePath = config.modelFilePath || ""; this.orders = config.orders; this.slaveEntities = config.slaveEntities || []; if (config.initData) { this.setJsonParamsData(config.initData); } if (config.paramsData) { this.setJsonParamsData(config.paramsData); } if (config.whereData) { this.setJsonWhereData(config.whereData); } } createWhereByModel(values, model) { model = model || {} let where = new queryHelper_where(); for (let field in values) { let bizFiled = model.fields ? model.fields[field] : null; let val = values[field] if (val != null && val != "" && val != undefined) { if (bizFiled) { where[bizFiled.operate](field, val) } else { if (utils.isArray(val)) where.in(field, val) else where.def(field, val) } } } if (this.where) this.where.addConditions(where) else this.where = where; return where; } setJsonWhereData(whereData) { // 判断传入的值是否字符 if (!whereData) return; this.where = new queryHelper_where({ criterionData: whereData }); } setJsonParamsData(paramsData) { // 判断传入的值是否字符 if (!paramsData) return; var paramsDataType = typeof (paramsData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(paramsData); break; case "object": objParamsData = paramsData; break; } if (objParamsData.queryCdions) { this.where = new queryHelper_where({ criterionData: objParamsData.queryCdions }); } if (objParamsData.orders) { this.orders = new Orders({ orderData: objParamsData.orders }); } if (objParamsData.having) { this.having = new queryHelper_where({ criterionData: objParamsData.having.criterion }); } if (objParamsData.groupBy) { this.groupBy = objParamsData.groupBy } } /** * showdoc * @catalog API/工具/Param参数 * @title 设置分组 * @description 设置分组 * @method setGroup * @param groupFields 必选 Array 分组字段 * @return void * @number 60 */ setGroup(groupFields) { this.groupBy = groupFields; } /** * showdoc * @title 获取分组 * @description 获取分组 * @method getGroup * @return Array */ getGroup() { return this.groupBy; } /** * showdoc * @title 获取where条件 * @description 获取where条件 * @method getWhere * @return Where * @number 60 */ getWhere() { return this.where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置where条件 * @description 设置where条件 * @method setWhere * @param where 必选 where where条件 * @return void * @number 60 */ setWhere(where) { this.where = where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置Having条件 * @description 设置Having条件 * @method setHaving * @param where 必选 where where条件 * @return void * @number 60 */ setHaving(where) { this.having = where; } /** * showdoc * @title 获取Having条件 * @description 获取Having条件 * @method getHaving * @return void * @number 60 */ getHaving() { return this.having; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取排序条件 * @description 获取排序条件 * @method getOrders * @return void * @number 60 */ getOrders() { return this.orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置排序条件 * @description 设置排序条件 * @method setOrders * @param orders 必选 order对象 * @return void * @number 60 */ setOrders(orders) { this.orders = orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询JSON数据 * @description 获取查询JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { var params = {}; // params.having = {}; if (this.where) { var mycriterion = this.where.toJSON(); if (mycriterion) { params.queryCdions = this.where.toJSON(); } } /* * // if (this.having) { // var mycriterion = this.having.toJSON(); // * if (mycriterion) { // // params.having.criterion = * this.having.toJSON(); // } // } */ if (this.groupBy) { params.groupBy = this.groupBy; } if (this.orders) { params.orderBy = this.orders.toJSON(); } return params; } decodeStr(s) { return unescape(s.replace(/\\(u[0-9a-fA-F]{4})/gm, '%$1')); } setSlaveEntities(params){ this.slaveEntities = params; } toStringWithKey() { var json = {}, param = {}; // param[this.paramKey] = this.toJSON() let body = JSON.stringify(this.toJSON()); json[keys.body] = body; json[keys.pageIndex] = this[keys.pageIndex] || this.where[keys.pageIndex]; json[keys.pageSize] = this[keys.pageSize] || this.where[keys.pageSize]; json[keys.returnTotal] = this.returnTotal; json[keys.modelFilePath] = this.modelFilePath; json[keys.zcQuery] = this.zcQuery; if(this.slaveEntities.length>0) { var _slaveEntities = []; for(var i = 0;i<this.slaveEntities.length;i++) { _slaveEntities.push(this.slaveEntities[i].toStringWithKey()); } json[keys.slaveEntities] = JSON.stringify(_slaveEntities); } return json;// this.toJSON(); } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询字符串数据 * @description 获取查询字符串数据 * @method toStr * @return String * @number 60 */ toStr() { return JSON.stringify(this.toJSON()); } /** * showdoc * @title 是否有翻页条件 * @description 是否有翻页条件 * @method isPaging * @return boolean * @number 60 */ isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (_has(this, pageIndexKey) && _has(this, pageSizeKey)) return true; else return false; } /** * showdoc * @title 设置翻页 * @description 设置翻页 * @method setPage * @param pageIndex 必选 Int 起止页 * @param pageSize 必选 Int 每页显示多少条 * @return void * @number 60 */ setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起始页 * @description 获取当前where起始页 * @method getPageIndex * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 * @description 获取当前where每页显示多少条 * @method getPageSize * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } // EXTERNAL MODULE: ./node_modules/lodash/isArray.js var isArray = __webpack_require__("6747"); var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/index.js //行转列 let queryHelper_rowToCol = (data, rowField, colField, valField) => { let result = [], row = {}; if (data.length > 0) { let rowSign = row[rowField] = data[0][rowField]; data.forEach(element => { //标识不一样就创建行 if (rowSign != element[rowField]) { result.push(row); row = {}; rowSign = element[rowField] row[rowField] = rowSign; } row[element[colField]] = element[valField] }); result.push(row); } return result; } let query = (param, modelFile, funcPath, { request, url, method, pn, extParam, viewItemId, rowToCol,async,success,fail}) => { let data = { "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data = paramInstance.toStringWithKey() } data.modelFilePath = modelFile; data[keys.funcpath] = funcPath; data[keys.viewItemId] = viewItemId; //将来要移到url中 //data.funcPath = funcPath; if (extParam) { Object.assign(data, extParam); } let promise //let dataUrl = url + "/" + modelFile; let dataUrl = url; funcPath = funcPath || "" if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } promise = request({ url: dataUrl, method: method || 'post', async:async, data: data, success:success, fail:fail }) // promise.then(res => { // //行转列 // if (rowToCol && rowToCol.rowField) { // res.dataPack.row = rowToCol(res.dataPack.row) // } // }) return promise } let getExportParam = ({ request, url, csv }) => { let params = { csv } return request({ url, method: 'get', params }) } let exportData = (param, modelFile, funcPath, { request, url, method, pn, viewItemId, extParam }) => { let data = { // "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data[keys.body] = paramInstance.toJSON()//paramInstance.toStringWithKey() data[keys.pageIndex] = paramInstance.where[keys.pageIndex]; data[keys.pageSize] = paramInstance.where[keys.pageSize]; data[keys.viewItemId] = viewItemId; //delete data[keys.zcQuery] //delete data[keys.returnTotal] } data[keys.funcpath] = funcPath; data.modelFilePath = modelFile; // if (param.zcQuery) // data[keys.slaveExport] = param.zcQuery //将来要移到url中 //data.funcPath = funcPath; if (extParam) { if (extParam.sheetStyle) { data[keys.sheetStyle] = extParam.sheetStyle; delete extParam.sheetStyle } if (extParam[keys.slaveExport] !== undefined) { data[keys.slaveExport] = extParam[keys.slaveExport]; delete extParam[keys.slaveExport] } } if (data[keys.slaveExport] == undefined && param.zcQuery) data[keys.slaveExport] = param.zcQuery let promise //let dataUrl = url + "/" + modelFile; let dataUrl; funcPath = funcPath || "" dataUrl = url; if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } let psotData = {} if (data.title) { psotData.title = data.title; delete data.title; } psotData[keys.sheetDatas] = JSON.stringify([data]) psotData.__isIntercept = false; if (extParam) psotData = Object.assign(psotData, extParam); promise = request({ url: dataUrl, method: method || 'post', data: psotData }) return promise } /* harmony default export */ var queryHelper = ({ Param: param_Param, Where: queryHelper_where, types: types, Orders: Orders, query, exportData, rowToCol: queryHelper_rowToCol, getExportParam }); // EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js var cloneDeep = __webpack_require__("0644"); var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); // CONCATENATED MODULE: ./src/base/dataHelper/src/saveHelper/index.js const paramKey = { //subSetkeyVal:"$subSetkeyVal", root: '__body', version: "__version", data: 'data', funcPath: "__funcpath", modelFile: 'modelFilePath', funcFile: 'fpath', state: '$state', old: '$old', insertStateVal: 'rsInsert', updateStateVal: 'rsUpdate', removeStateVal: 'rsDelete', overrideStateVal: 'rsOverride', normalStateVal: "rsNormal", viewItemId: "viewItemId" } /** * showdoc * @title 数据保存包 * @className HiDataHelper * @description 数据保存包 * @method SavePackHelper * @demo * let modelFile = "数据集实体路径"; * let funcPath = "功能路径"; * let old={FNUMBER:"DH-2210-2201",FIELD1:'data1',FIELD2:'data2'}; //原始数据中必须包含主键字段值 * let data = {FIELD1:'d1',FIELD2:'d2'}; * let saveHelper = this.createSaveHelper(modelFile,funcPath); //在页面上下文,创建saveHelper * saveHelper.update(old,data); //组装更新包 * saveHelper.add({FNUMBER:"NEW-YYMMDD-9999",FIELD1:'a2',FIELD2:'a2'}); //组装新增包 * saveHelper.remove({FNUMBER:"DH-2210-2200"}); //组装删除包,删除数据中必须包含主键字段值 * saveHelper.save().then(res=>{ * //保存成功 * if(res.status==200){ * * } * }) */ class saveHelper_SavePackHelper { /** * @title 构造函数 * @description 保存助手构造函数 * @method HiDataHelper * @param modelFile 必选 string 数据集路径 * @param options 必选 json 请求选项 * @param options.request 必选 axios 请求对象 * @param options.url 必选 url 请求rul * @param options.pn 选填 pn 项目ID * @return HiDataHelper */ constructor(modelFile, funcPath, { request, url, wsUrl, pn, viewItemId, extParam, colToRow }) { this.className = "SavePackHelper" this.modelFile = modelFile; this.request = request; this.colToRow = colToRow; this.viewItemId = viewItemId; this._appendSavePack = []; funcPath = (funcPath || "") this.url = url; this.wsUrl = wsUrl; // if (url.endsWith("/") == false && funcPath.startsWith("/") == false) // this.url = url + "/" + (funcPath || ""); // else // this.url = url + (funcPath || ""); this.funcPath = funcPath; this.extParam = extParam; this.pn = pn; this.dataPacks = {}; this.dataPacks[paramKey.data] = []; this.dataPacks[paramKey.modelFile] = this.modelFile; //this.dataPacks[paramKey.funcPath] = this.funcPath; } //新增或删除包行转列 insertOrDeletePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {} _row[dynamic.rowField] = data[rowField] || (new Date()).valueOf(); for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) continue; let row = cloneDeep_default()(_row); row[colField] = colName; row[valField] = data[colName]; result.push(row); } return result; } //更新包行转列 updatePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {}, _$old = {} _$old[dynamic.rowField] = data[paramKey.old][rowField] for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) { continue; } let row = cloneDeep_default()(_row); let $old = cloneDeep_default()(_$old); row[valField] = data[colName]; $old[valField] = data[paramKey.old][colName]; $old[colField] = colName; row[paramKey.old] = $old; result.push(row); } return result; } //转数据 conversion(data) { if (data) { const result = {} for (const key in data) { const val = data[key] if (val === undefined) continue; if (isDate_default()(val)) { result[key] = utils_date.format(val, 'yyyy-MM-dd hh:mm:ss') } else if (val != null && typeof (val) == 'object' && !val[paramKey.modelFile]) { result[key] = JSON.stringify(val); } else { // if (paramKey.subSetkeyVal == val[paramKey.modelFile]){ // delete val[paramKey.modelFile] // } result[key] = val } } return result } } normal(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.normalStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 新增数据 * @description 新增数据 * @method add * @param data 必选 json 数据 * @return void */ add(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.insertStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 更新数据 * @description 更新数据 * @method update * @param old 必选 json 旧数据(原数据)必须包含主键字段 * @param data 必选 json 新数据(要更新的数据) * @return void * @demo * update({primaryField:1,Field1:0},{Field1:1,Field2:2}) */ update(old, data) { var me = this var row = {} data = this.conversion(data) old = this.conversion(old) for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.updateStateVal row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } setRedundant(old, data) { } /** * showdoc * @title 重写数据 * @description 重写数据包,数据库中有该数据就更新,没有则新增 * @method override * @param old 必选 json 旧数据(原数据) * @param data 必选 json 新数据(要更新或新增的数据)必须包含主键字段 * @return void * @number 400 */ override(old, data) { if (!data) { data = old; old = null; } if (old) old = this.conversion(old) data = this.conversion(data) var me = this var row = {} for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.overrideStateVal if (old) row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } /** * showdoc * @title 删除数据 * @description 删除数据 * @method remove * @param data 必选 json 要删除据数据,必须包含主键字段 * @return void */ remove(data) { var me = this data[paramKey.state] = paramKey.removeStateVal data = this.conversion(data) if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * @title 获取数据包字符串 * @method toString * @description 获取数据包字符串 */ toString() { return JSON.stringify(this.dataPacks) } /** * showdoc * @title 清空数据包 * @description 清空数据包 * @method clear * @return void */ clear() { this.dataPacks = {} } /** * showdoc * @title 获取数据包 * @description 获取数据包 * @method getDataPack * @return json */ getDataPack() { return this.dataPacks } /** * showdoc * @title 是否含有数据包 * @description 是否含有数据包 * @method isEmpty * @return boolean */ isEmpty() { if (this.dataPacks[paramKey.data] && this.dataPacks[paramKey.data].length > 0) return false; return true; } /** * showdoc * @title 追加保存包 * @description 追加保存包 * @method appendSavePack * @param savePack 必选 json 保存包 * @return void */ appendSavePack(savePack) { this._appendSavePack.push(savePack) } /** * showdoc * @title 提交数据 * @description 提交数据 * @method save * @param options 非必选 json 提交时的附加参数 * @param beforeSubmitCallBack 非必选 json 提交前回调,参数:options, param * @return Promise */ save(options, beforeSubmitCallBack) { options = options || {}; let param = {} this._appendSavePack.unshift(this.getDataPack()) param[paramKey.root] = JSON.stringify(this._appendSavePack) // param[paramKey.version] = "1.0.0" param[paramKey.funcPath] = this.funcPath; param[paramKey.viewItemId] = this.viewItemId; if (this.extParam) Object.assign(param, this.extParam); Object.assign(param, options) if (beforeSubmitCallBack) { beforeSubmitCallBack.call(this, options, param, param[paramKey.root]); } let url = this.url if (this.pn) { if (url.indexOf('?') == -1) url = url + "?pn=" + this.pn; else url = url + "&pn=" + this.pn; } if (options.wsid) { if (url.indexOf('?') == -1) url = url + "?wsid=" + options.wsid; else url = url + "&wsid=" + options.wsid; } let showError = options.showError; delete options.showError; return this.request({ url: url, method: 'post', showError, data: param }) } wsSave(options={}, beforeSubmitCallBack) { let id = (new Date()).valueOf(); if (!this.wsUrl) { throw new Error("未配置webscoket保存地址[saveWsUrl]") } let wsUrl = this.wsUrl.replace("{id}",id); let ws = new WebSocket(wsUrl); let me = this; ws.addEventListener("open",function(){ options.wsid = id; options.showError = false, me.save(options, beforeSubmitCallBack) }) return ws; } } // CONCATENATED MODULE: ./src/base/dataHelper/src/flowHelper/index.js // 审批意见 let getApprovalInfo = ({ request, url, ftaskguid, flowtype }) => { let promise let dataUrl = url || src_hiSetting.getApprovalInfo if (ftaskguid) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?ftaskguid=" + ftaskguid; else dataUrl = dataUrl + "&ftaskguid=" + ftaskguid; } if (flowtype) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?flowtype=" + flowtype; else dataUrl = dataUrl + "&flowtype=" + flowtype; } promise = request({ url: dataUrl, method: 'post' }) return promise } // 处理流程 let processFlow = ({ request, url, data, param }) => { let promise; let dataUrl = url || src_hiSetting.processFlow; let __data = { __body: JSON.stringify(data), } if (param) { Object.assign(__data, param) } promise = request({ url: dataUrl, data: __data, method: 'post' }) return promise } // 任务中心查询 let queryTask = ({ request, url, param }) => { let promise; let dataUrl = url || src_hiSetting.queryTask; promise = request({ url: dataUrl, data: param, method: 'post' }) return promise } // 打开流程接口 let getFlowInfo = ({ request, url, data }) => { let promise; promise = request({ url: url || src_hiSetting.getFlowInfo, data: data, method: 'post' }) return promise } // 单号打开流程接口 let openOrdernumber = ({ request, fordernumber, url }) => { let promise; let dataUrl = url || src_hiSetting.openOrdernumber; let openurl = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: openurl, method: 'get' }) return promise } // 撤回 let withdrawtask = ({ request, url, ftaskguid }) => { let promise; let dataUrl = url || src_hiSetting.withdrawtask; let path = `${dataUrl}?ftaskguid=${ftaskguid}` promise = request({ url: path, method: 'get' }) return promise } // 反审 let umpireOrder = ({ request, url, fordernumber }) => { let promise; let dataUrl = url || src_hiSetting.umpireOrder; let path = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let taskDiagram = ({ request, url, forderguid, fmodelpath, fversion }) => { let promise; let dataUrl = url || src_hiSetting.taskDiagram; let path = `${dataUrl}?fmodelpath=${fmodelpath}${fversion ? ("&fversion=" + fversion) : ""}` if (forderguid) { path = path + "&forderguid=" + forderguid } promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let ganttChart = ({ request, url, fordernumber }) => { let promise; let path; let dataUrl = url || src_hiSetting.ganttChart; if (fordernumber) { path = dataUrl + "?fordernumber=" + fordernumber } promise = request({ url: path, method: 'get' }) return promise } /* harmony default export */ var flowHelper = ({ getApprovalInfo, processFlow, queryTask, getFlowInfo, withdrawtask, taskDiagram, ganttChart, openOrdernumber, umpireOrder }); // CONCATENATED MODULE: ./src/base/dataHelper/src/funcHelper/index.js // 打开功能接口 let getFuncInfo = ({ request, url, data }) => { let promise; promise = request({ url: url, data: data, method: 'post' }) return promise } /* harmony default export */ var funcHelper = ({ getFuncInfo }); // CONCATENATED MODULE: ./src/base/dataHelper/src/index.js /* harmony default export */ var dataHelper_src = ({ queryHelper: queryHelper, saveHelper: saveHelper_SavePackHelper, flowHelper: flowHelper, funcHelper: funcHelper }); // CONCATENATED MODULE: ./src/base/dataHelper/index.js /* harmony default export */ var dataHelper = (dataHelper_src); // CONCATENATED MODULE: ./src/eap/user/org.js //调用org方法时一定要在service.js/initUser()之后 function getCurrentUser() { return window.eap.userInfo || {}; } function getMainUser() { if (window.eap.userInfo && window.eap.userInfo.main) return window.eap.userInfo.main; else if (window.eap.userInfo) return window.eap.userInfo; return {} } /* harmony default export */ var org = ({ /** * 当前用户ID * * @return */ userId: function () { return getMainUser().fuserid || ""; }, /** * 当前用户姓名 * * @return */ userName: function () { return getMainUser().fusername || ""; }, /** * 当前用户部门ID * * @return */ deptId: function () { return getMainUser().fdeptid || ""; }, /** * 当前用户部门名称 * * @return */ deptName: function () { return getMainUser().fdeptname || ""; }, /** * 当前用户岗位ID * * @return */ roleId: function () { return getMainUser().froleid || ""; }, /** * 当前用户岗位名称 * * @return */ roleName: function () { return getMainUser().frolename || ""; }, /** * 当前用户组织机构路径 * * @return */ orgPath: function () { return getMainUser().fuserorgpath || ""; }, orgName: function () { return getMainUser().forgname || ""; }, orgId: function () { return getMainUser().forgid || ""; }, //直属上级用户ID superId: function () { return getCurrentUser().fsuperuserid || ""; }, //直属上级用户姓名 superName: function () { return getCurrentUser().fsuperusername || ""; }, /***********编制******************************************************************************************* */ //用户编制ID bzId: function () { return getCurrentUser().fbzid || ""; }, //用户编制名称 bzName: function () { return getCurrentUser().fbzname || ""; }, //用户编制部门ID bzDeptId: function () { return getCurrentUser().fdeptid || ""; }, //用户编制部门名称 bzDeptName: function () { return getCurrentUser().fdeptname || ""; }, //用户编制岗位ID bzRoleId: function () { return getCurrentUser().froleid || ""; }, //用户编制岗位名称 bzRoleName: function () { return getCurrentUser().frolename || ""; }, //用户编制机构路径 bzOrgPath: function () { return getCurrentUser().fuserorgpath || ""; }, //用户编制机构名称 bzOrgName: function () { return getCurrentUser().forgname || ""; }, //用户编制机构ID bzOrgId: function () { return getCurrentUser().forgid || "" }, //当前用户所属公司的机构与部门ID orgDeptId:function(){ return (getCurrentUser().forgid || "") + "." + (getCurrentUser().fdeptid || ""); }, //当前用户所属公司的机构与部门名称 orgDeptName:function(){ return (getCurrentUser().forgname || "") + "." + (getCurrentUser().fdeptname || ""); }, //直属上级编制ID bzSuperId: function () { return getCurrentUser().fsuperbzid || ""; }, //直属上级编制名称 bzSuperName: function () { return getCurrentUser().fsuperbzname || ""; }, /** * 当前用户saas部门ID * * @return */ saasDeptId: function () { return getCurrentUser().fdeptid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /** * 当前用户saas岗位ID * * @return */ saasRoleId: function () { return getCurrentUser().froleid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /**********代理********************************************************************************************** */ /** * 当前代理用户ID * * @return */ proxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fuserid; }, /** * 当前代理用户姓名 * * @return */ proxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fusername; }, /** * 当前代理编制ID * * @return */ bzProxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzid; }, /** * 当前代理编制名称 * * @return */ bzProxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzname }, /******************************************************************************************************** */ /** * 根据岗位ID获取用户编制号列表,逗号隔开 * * @param roleId * @return */ getBzByRole: function (roleId) { return [] }, /** * 根据部门ID获取用户编制号列表,逗号隔开 * * @param deptId * @return */ getBzByDept: function (deptId) { return ""; }, /** * 根据当前用户岗位ID获取编制号列表,逗号隔开 * * @return */ getBzByRole: function () { return getBzByRole(roleId()); }, /** * 根据当前用户部门ID获取编制号列表,逗号隔开 * * @return */ getBzByDept: function () { return getBzByDept(deptId()); }, }); // CONCATENATED MODULE: ./src/eap/utils/biz.js const modelPath = "/platf/useroperate/entity/SysUseroperate.xml"; function getWsUrl(url){ //补全URL if (!(url.toLowerCase().startsWith("ws://") || url.toLowerCase().startsWith("wss://"))) { let site = window.HIVUI_SETTING.url site = site.replace("https", "wss") site = site.replace("http", "ws") if (url.startsWith("/")) url = site + url; else url = site + "/" + url; } if (window.HIVUI_SETTING.projectName && url.indexOf('pn=') == -1 ) { let pn = window.HIVUI_SETTING.projectName; if (url.indexOf('?') == -1) url = url + "?pn=" + pn else url = url + "&pn=" + pn } return url; } function getUrl(url) { let project = window.HIVUI_SETTING.project || window.HIVUI_SETTING.projectName || ""; if (project.indexOf("/") != -1) project = project.split("/")[0] if (url.indexOf(".pro") != -1) { let _url = url; let param = ""; if (_url.indexOf("?") != -1) { _url = _url.substring(0, _url.lastIndexOf("?")) param = url.substring(url.lastIndexOf("?")) } let extName = _url.substring(_url.lastIndexOf(".")) url = _url.replace(/\.\w+/g, "") + extName + param; } if (project) { let arrUrl = url.split("/"); if (arrUrl[0] != "") arrUrl[0] = project; else arrUrl[1] = project; url = arrUrl.join("/"); } let newUrl = ""; if (url.startsWith("/")) newUrl = newUrl + url; else newUrl = newUrl + "/" + url; if (window.HIVUI_SETTING.projectName) { if (url.indexOf("?") != -1) newUrl = newUrl + "&pn=" + window.HIVUI_SETTING.projectName; else newUrl = newUrl + "?pn=" + window.HIVUI_SETTING.projectName; } return newUrl; } /* harmony default export */ var biz = ({ getWsUrl, createNumber() { return "NEW-YYMMDD-9999" }, //下载地址 getDownloadUrl(url, fileName) { var fileExtension = url.substr( url.lastIndexOf(".") + 1 ); var file_path = ""; if (!fileName) { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}`; } else { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}&name=${fileName}.${fileExtension}`; } return file_path; }, //删除用户数据 delUserData(key, type) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.remove({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }); return saveHelper.save(); }, //查询用户数据 async getUserData(key, type) { var where = new dataHelper.queryHelper.Where({ junction: 'and' }); where.addCondition("FKEY", key, "dbString"); where.addCondition("FTYPE", type, "dbString"); where.addCondition("FUSERID", org.bzId(), "dbString"); var param = new dataHelper.queryHelper.Param({ where: where }); let result = await dataHelper.queryHelper.query(param, modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.queryUrl, pn: window.HIVUI_SETTING.projectName }); if (result.dataPack.rows.length > 0) return result.dataPack.rows[0].FVALUE; return null; }, //保存数据 saveUserData(key, data, type, desc) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.override({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }, { FKEY: key, FUSERID: org.bzId(), FTYPE: type, FVALUE: typeof data == "string" ? data : JSON.stringify(data), FNAME: desc || "" }); return saveHelper.save(); } , getUrl, getResUrl(url) { return HIVUI_SETTING.deployDir + getUrl(url); } }); // CONCATENATED MODULE: ./src/eap/utils/index.js /* harmony default export */ var eap_utils = ({ biz: biz, FormFunc: biz, DateFunc: utils.date, NumberFunc: utils.number, StringFunc: utils.string, BomFunc: utils.bom, OrgFunc: org }); // CONCATENATED MODULE: ./src/eap/axios.js // create an axios instance const service = axios_default.a.create({ baseURL: "http://192.168.4.106:7777", timeout: 30 * 1000 // request timeout }) let hasMessageFunc = true; try { hasMessageFunc = !!(hasMessageFunc && external_ELEMENT_["Message"]); } catch (e) { hasMessageFunc = false; } service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8' // request拦截器 service.interceptors.request.use( config => { if (config.headers['Content-Type'] === undefined) { config.headers['Content-Type'] = 'application/json;charset=UTF-8' } const token = getToken(); //默认显示请求成功的返回信息 if(typeof(config.showSuccessTips)=="undefined"){ config.showSuccessTips=true; } //默认显示请求失败的返回信息 if(typeof(config.showError)=="undefined"){ config.showError=true; } if (token && !config.noToken && !(config.url.startsWith("http") && !config.url.startsWith(window.HIVUI_SETTING.url))) { config.headers['Authorization'] = 'Bearer ' + token; } let __localeLang = js_cookie_default.a.get("locale"); if (__localeLang) {//设置语言包 if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.locale = __localeLang; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "locale", __localeLang); } } if (window.HIVUI_SETTING) { let site = window.HIVUI_SETTING.url //补全URL if (!config.url.toLowerCase().startsWith("http")) { if (config.url.startsWith("/")) config.url = site + config.url; else config.url = site + "/" + config.url; } if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName && config.url.indexOf('pn=') == -1 && !(config.params && config.params.pn)) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } //岗位ID if (window.scpRequestData && window.scpRequestData.fbzid) { let fbzid = window.scpRequestData.fbzid; if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.fbzid = fbzid; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "fbzid", fbzid); } } } // 如果接口需要签名, 则通过请求时,headers中传递sign参数true const iSSign = config.headers['sign']; if (iSSign || iSSign === undefined) { const timeStamp = new Date().getTime().toString().substr(0, 10); config.headers['timeStamp'] = timeStamp; //config.headers['signature'] = sign(config, nonce, timeStamp, store.getters.appSecret) } //开启下载流模式 if (config.isDownload) { config.responseType = 'blob'; delete config.isDownload; } return config }, error => { // do something with request error return Promise.reject(error) } ) function MessageFunc(opt, res = {}) {//detailMsg\msg\message let messageCustomClass = eap_utils.StringFunc.id(8); let __position = { top: 15, margin: 20, right: 15 }; let isMsgBox = window.HIVUI_SETTING.messageType == "msgBox"; if (opt.showClose) {//关闭按钮多偏移 __position.margin += 15; __position.right += 25; } if (isMsgBox) { __position.top = 0; __position.right = 0; __position.margin = 20; } let msgTpl = `<div class="zhcDetailMsg" style="max-height:200px;min-height: 20px;padding:3px 0;word-break:break-all;margin-right: ${__position.margin}px;overflow:auto;transition:all 0.3s;"><span>${res.msg || res.resmessage}</span><i class="el-icon-caret-right" title="${(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || '弹出报错详情'}" style="position: absolute;top:${__position.top}px;right:${__position.right}px;font-size:18px;color:#F56C6C;cursor:pointer;transition:all 0.3s;"></i></div>`; let msgVue = null; let isShowDetail = res.detailMsg && (res.detailMsg != opt.message); opt.customClass = messageCustomClass; if (isMsgBox) { if (isShowDetail) { opt.message = msgTpl; } else { opt.message = `<div style="max-height:200px;word-break:break-all;overflow:auto;">${opt.message}</div>`; } msgVue = Object(external_ELEMENT_["MessageBox"])({ ...{ title: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_msgTips) || "消息提示", confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_define) || '确定', dangerouslyUseHTMLString: true }, ...opt }); } else { if (isShowDetail) { opt.message = msgTpl; opt.dangerouslyUseHTMLString = true; } msgVue = Object(external_ELEMENT_["Message"])(opt); } if (isShowDetail) { let arrowBtn = document.querySelector("." + messageCustomClass + " .zhcDetailMsg>i"); arrowBtn.onclick = () => { if (arrowBtn.previousSibling.className == "zhcDetailMsg") { arrowBtn.previousSibling.innerText = res.msg || res.resmessage; arrowBtn.previousSibling.className = ""; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || "弹出报错详情"; arrowBtn.style.color = "#F56C6C"; arrowBtn.style.transform = "rotate(0)"; } else { arrowBtn.previousSibling.innerText = res.detailMsg; arrowBtn.previousSibling.className = "zhcDetailMsg"; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_hideErrorDetail) || "收起报错详情"; arrowBtn.style.color = ""; arrowBtn.style.transform = "rotate(90deg)"; } }; } } function for401(isSkip) { // Alert('你已被登出,,点击确认按钮进入登录页', '登录超时', { // confirmButtonText: '确定', // callback: action => { // window.location.href = window.appsettings.login; // } // }); if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { let loginUrl = window.HIVUI_SETTING.customLoginUrl||window.HIVUI_SETTING.loginUrl if (window.HIVUI_SETTING.isSingleLogin) { loginUrl = window.HIVUI_SETTING.singleLoginUrl; if (loginUrl.endsWith("=")) { let params = window.location.search.slice(1).split("&").filter(item => { if (item.indexOf("ticket") == -1) { return item } }); let currPageUrl = window.location.origin + window.location.pathname; if (window.HIVUI_SETTING.mainPageUrl.indexOf(currPageUrl) == -1) { params.push("eapReturnUrl=" + currPageUrl); currPageUrl = window.HIVUI_SETTING.mainPageUrl; } currPageUrl = currPageUrl.replace(/#\//g, ""); loginUrl = loginUrl + currPageUrl + (params.length > 0 ? '?' : '') + params.join("&"); } } else { if (!loginUrl.endsWith("#/")) { loginUrl += "#/"; } loginUrl += "?eapReturnUrl=" + encodeURIComponent(window.location.href); } if ((top.window.mainPageInitErrorJump) || isSkip) { window.location.href = loginUrl; } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { window.location.href = loginUrl; }); } } } service.interceptors.response.use(response => { if (response.config.responseType == "arraybuffer") { return response; } if (response.config.normalResult) return response; const res = response.data; if (res.type == "application/octet-stream" || response.headers["content-type"] == "application/octet-stream") { return response; } else if (response.config.responseType == "blob") { //流数据抛错,将blob类型重新转换成json let fileReader = new FileReader(); fileReader.readAsText(res, 'utf-8'); fileReader.onload = function () { let __data = JSON.parse(fileReader.result); return hasMessageFunc && MessageFunc({ message: __data.msg || __data.message || 'Error', type: 'error', showClose: true, }, res) } return Promise.reject(res) } if (response.status != "200" || (response.data.status && response.data.status != "200")) { let data = {} try { data = JSON.parse(response.config.data) } catch (ex) { } if (data.__isIntercept === false) { if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return Promise.reject(res) } setTimeout(()=>{ hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res); },0); if (res.status == 401 || (res.data && res.data.status == 401)) { for401(response.config.isSkip); return Promise.reject(error) } //return Promise.reject(new Error(res.message || 'Error')) return Promise.reject(res, JSON.parse(response.config.data || "{}")) } else { res.dataPack = res.dataPack || res.data if ((res.detailMsg || res.msg) && response.config.showSuccessTips) { hasMessageFunc && MessageFunc({ message: res.detailMsg || res.msg || 'Error', type: (res.popupbox && res.popupbox.type) || 'success', showClose: true, duration: 5 * 1000 }, res); } if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return res } }, error => { let res = error.response; if(error.config&&!error.config.showError){ return; } if (!res) { hasMessageFunc && MessageFunc({ message: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_responseNull) || '后端请求返回出错,请联系开发人员', type: 'error', showClose: true, duration: 5 * 1000 }); return; } let data = {} try { data = JSON.parse(res.config.data) } catch (ex) { } if (data.__isIntercept === false) { return Promise.reject(error) } if (res.status == 401 || (res.data && res.data.status == 401)) { for401(res.config.isSkip); return Promise.reject(error) } console.log('err' + error)// for debug // Message({ // message: error.message, // type: 'error', // duration: 5 * 1000 // }) return Promise.reject(error) }); /* harmony default export */ var eap_axios = (service); function ajax(config) { const token = getToken(); if (window.HIVUI_SETTING) { if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } } //创建XMLHttpRequest对象 let url = config.url || ""; let method = config.method || "GET"; let data = config.data || {}; let success = config.success; let async = config.async == undefined ? true : config.async; let fail = config.fail; var xhr = new XMLHttpRequest(); //true表示异步 xhr.open(method, url, async); if (config.timeout && async === true) xhr.timeout = config.timeout; xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8'); if (token && !config.noToken && !(url.startsWith("http") && !url.startsWith(window.HIVUI_SETTING.url))) { xhr.setRequestHeader('Authorization', 'Bearer ' + token); } if (JSON.stringify(data) != "{}") { xhr.send(JSON.stringify(data)); } else { xhr.send(); } if (async == false) { if (xhr.status == 200) { var res = JSON.parse(xhr.responseText); success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } else { xhr.onreadystatechange = function () { // readyState == 4说明请求已完成 if (xhr.readyState == 4) { if (xhr.status == 200 || xhr.status == "200") { var res = JSON.parse(xhr.responseText); //responseText:从服务器获得数据 success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } }; } } // CONCATENATED MODULE: ./src/eap/request.js let request_service = eap_axios; //export default service /* harmony default export */ var eap_request = (function (cfg) { if ((window.isElectron || top.window.isElectron)) { var urlsCallback if (window.electronCfg) urlsCallback = window.electronCfg.urlCallback if (top.window.electronCfg) urlsCallback = top.window.electronCfg.urlCallback for (var key in urlsCallback) { if (cfg.url.indexOf(key) > -1) return urlsCallback[key](cfg); } } return eap_axios(cfg); }); // CONCATENATED MODULE: ./src/eap/user/service.js var service_request = eap_request; // if (window.HIVUI_SETTING) // request = window.HIVUI_SETTING.request; // else { // window.HIVUI_SETTING = hiSetting // } /** * 登陆 * @param {Id} 系统Id */ function login(userName, pwd) { var data = { username: userName.trim(), password: md5_default()(pwd) }; let _promise=service_request({ url: window.HIVUI_SETTING.login||(window.HIVUI_SETTING.serverUrl+"/login/sso-login"), method: 'post', data: data }); _promise.then(res=>{ const data = res if(data.token){ setToken(data.token); } if(location.hash=="#miniLogin"){//外部调用登录接口时小登录判断 if(eap_utils.StringFunc.getUrlValue("questType")=="ajax"){ top.window.SysPage&&top.window.SysPage.closeMiniLogin(eap_utils.StringFunc.getUrlValue("isRefresh")); }else{ location.reload(); } } }); return _promise; } /** * 登出 */ function logout() { if(!getToken()){ return new Promise((resolve, reject)=>{ resolve(); }); } let _promise=service_request({ url: window.HIVUI_SETTING.logout||(window.HIVUI_SETTING.serverUrl+"/login/sso-logout"), method: 'post' }); _promise.then(res=>{ removeToken(); }); return _promise; } /** * 获取用户信息 * @param {data} */ function getInfo(data) { return service_request({ url: window.HIVUI_SETTING.userInfo, method: 'post', data: data }) } function initUser(data) { let promise = getInfo(data) promise.then(res => { if (!window.eap) window.eap = {} window.eap.userInfo = res.dataPack; }) return promise; } //修改密码 function modifyPw(oldPwd, newPwd) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/user/update-pwd", method: 'post', data: { oldPwd, newPwd } }) } //获取岗位列表 function getBzList(data) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/auth/func-multi-bz", method: 'post', data: data }) } /** * 解锁账户 * @param {data} */ function unlock(userId,pwd) { var data = { userId: userId.trim(), password: md5_default()(pwd) }; return service_request({ url: window.HIVUI_SETTING.serverUrl + "/login/unlock", method: 'post', data: data }) } /* harmony default export */ var user_service = ({ login, logout, getInfo, modifyPw, getBzList, unlock }); // CONCATENATED MODULE: ./src/eap/user/index.js /* harmony default export */ var user = ({ service: user_service,auth: auth }); // CONCATENATED MODULE: ./src/eap/page/index.js /* harmony default export */ var page = ({ closepage() { if (top.window.SysPage && top.window.SysPage.closePage) { top.window.SysPage.closePage(); } else { window.close(); } }, /* title:标签页名称,不传则默认显示功能名称 url:标签页访问地址 params:携带参数 method:传"get"/"post"参数,不传默认为get target:传"me"/"_blank",me为当前标签页覆盖打开,_blank为必定新标签打开,不传参数则默认同url标签覆盖,不同的url打开新标签 */ newPage(title,url,params,method,target){ if(url&&url.indexOf("http")!=0){ url=location.origin+(top.window.deployDir?("/"+top.window.deployDir):'') + (top.window.pName?("/"+top.window.pName):'') + url; } if (top.window.SysPage && top.window.SysPage.newPage) { top.window.SysPage.newPage(title,url,params,method,target); } else { window.open(url,"_blank"); } } }); // CONCATENATED MODULE: ./src/eap/dataHelper/index.js //(param, modelFile, funcPath, { request, url, method, pn, extParam }) let dataHelper_query = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.queryUrl; // //request, url, method, pn, extParam return dataHelper.queryHelper.query(param, modelFile, funcPath, options) } let dataHelper_exportData = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName if (!options.url && setting) options.url = setting.exportUrl; //{ request, url, method, pn, extParam } return dataHelper.queryHelper.exportData(param, modelFile, funcPath, options) } class dataHelper_SaveHelper extends dataHelper.saveHelper { constructor(modelFile, funcPath, options = {}) { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.saveUrl; //{ request, url, pn, extParam } super(modelFile, funcPath, options); } } /* harmony default export */ var eap_dataHelper = ({ query: dataHelper_query, exportData: dataHelper_exportData, Param: dataHelper.queryHelper.Param, Where: dataHelper.queryHelper.Where, types: dataHelper.queryHelper.types, Orders: dataHelper.queryHelper.Orders, SaveHelper: dataHelper_SaveHelper }); // EXTERNAL MODULE: ./node_modules/lodash/defaultsDeep.js var defaultsDeep = __webpack_require__("3f84"); var defaultsDeep_default = /*#__PURE__*/__webpack_require__.n(defaultsDeep); // EXTERNAL MODULE: ./package_eap.json var package_eap = __webpack_require__("ed27"); // CONCATENATED MODULE: ./src/eap/index.js function mergeConfig() { let args = [...arguments] return defaultsDeep_default()(...args) } let eap_lang = { get(key) { //return Vue.prototype.$t(key) let keys = {} if (window.lang && window.lang.keys) keys = window.lang.keys; return keys[key] || key; } } /* harmony default export */ var eap = ({ user: user,ajax: ajax, request: eap_request, mergeConfig, lang: eap_lang, utils: eap_utils, page: page, dataHelper: eap_dataHelper, }); //加载默认设至到全局 if (!window.HIVUI_SETTING) { window.HIVUI_SETTING = src_hiSetting; //console.log("已加载默认配置:", hiSetting) } window.lang = eap_lang //输出版本信息 console.log( '%c hi-eap-basic %c v'.concat(package_eap.version, ' '), 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #ff8e15; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;', ); //console.log(process.env.NODE_VER) // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (eap); /***/ }), /***/ "fba5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }), /***/ "fbb2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GenericBarcode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var GenericBarcode = function (_Barcode) { _inherits(GenericBarcode, _Barcode); function GenericBarcode(data, options) { _classCallCheck(this, GenericBarcode); return _possibleConstructorReturn(this, (GenericBarcode.__proto__ || Object.getPrototypeOf(GenericBarcode)).call(this, data, options)); // Sets this.data and this.text } // Return the corresponding binary numbers for the data provided _createClass(GenericBarcode, [{ key: "encode", value: function encode() { return { data: "10101010101010101010101010101010101010101", text: this.text }; } // Resturn true/false if the string provided is valid for this encoder }, { key: "valid", value: function valid() { return true; } }]); return GenericBarcode; }(_Barcode3.default); exports.GenericBarcode = GenericBarcode; /***/ }), /***/ "fd7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _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; }; exports.default = function (old, replaceObj) { return _extends({}, old, replaceObj); }; /***/ }), /***/ "ff84": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE = __webpack_require__("349c"); var _CODE2 = __webpack_require__("da3d"); var _EAN_UPC = __webpack_require__("241e"); var _ITF = __webpack_require__("9ffa"); var _MSI = __webpack_require__("8e51"); var _pharmacode = __webpack_require__("7cb9"); var _codabar = __webpack_require__("c17b"); var _GenericBarcode = __webpack_require__("fbb2"); exports.default = { CODE39: _CODE.CODE39, CODE128: _CODE2.CODE128, CODE128A: _CODE2.CODE128A, CODE128B: _CODE2.CODE128B, CODE128C: _CODE2.CODE128C, EAN13: _EAN_UPC.EAN13, EAN8: _EAN_UPC.EAN8, EAN5: _EAN_UPC.EAN5, EAN2: _EAN_UPC.EAN2, UPC: _EAN_UPC.UPC, UPCE: _EAN_UPC.UPCE, ITF14: _ITF.ITF14, ITF: _ITF.ITF, MSI: _MSI.MSI, MSI10: _MSI.MSI10, MSI11: _MSI.MSI11, MSI1010: _MSI.MSI1010, MSI1110: _MSI.MSI1110, pharmacode: _pharmacode.pharmacode, codabar: _codabar.codabar, GenericBarcode: _GenericBarcode.GenericBarcode }; /***/ }), /***/ "ffd6": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && baseGetTag(value) == symbolTag); } module.exports = isSymbol; /***/ }) /******/ }); }); //# sourceMappingURL=eap.umd.js.map
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("ELEMENT")); else if(typeof define === 'function' && define.amd) define(["ELEMENT"], factory); else if(typeof exports === 'object') exports["eap"] = factory(require("ELEMENT")); else root["eap"] = factory(root["ELEMENT"]); })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__5f72__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ "00fd": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }), /***/ "03dd": /***/ (function(module, exports, __webpack_require__) { var isPrototype = __webpack_require__("eac5"), nativeKeys = __webpack_require__("57a5"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys; /***/ }), /***/ "0644": /***/ (function(module, exports, __webpack_require__) { var baseClone = __webpack_require__("3818"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4; /** * This method is like `_.clone` except that it recursively clones `value`. * * @static * @memberOf _ * @since 1.0.0 * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. * @see _.clone * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * * var deep = _.cloneDeep(objects); * console.log(deep[0] === objects[0]); * // => false */ function cloneDeep(value) { return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } module.exports = cloneDeep; /***/ }), /***/ "07c7": /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "07df": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _ITF2 = __webpack_require__("3c7c"); var _ITF3 = _interopRequireDefault(_ITF2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Calculate the checksum digit var checksum = function checksum(data) { var res = data.substr(0, 13).split('').map(function (num) { return parseInt(num, 10); }).reduce(function (sum, n, idx) { return sum + n * (3 - idx % 2 * 2); }, 0); return Math.ceil(res / 10) * 10 - res; }; var ITF14 = function (_ITF) { _inherits(ITF14, _ITF); function ITF14(data, options) { _classCallCheck(this, ITF14); // Add checksum if it does not exist if (data.search(/^[0-9]{13}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (ITF14.__proto__ || Object.getPrototypeOf(ITF14)).call(this, data, options)); } _createClass(ITF14, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === checksum(this.data); } }]); return ITF14; }(_ITF3.default); exports.default = ITF14; /***/ }), /***/ "087d": /***/ (function(module, exports) { /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } module.exports = arrayPush; /***/ }), /***/ "0a06": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var buildURL = __webpack_require__("30b5"); var InterceptorManager = __webpack_require__("f6b4"); var dispatchRequest = __webpack_require__("5270"); var mergeConfig = __webpack_require__("4a7b"); /** * Create a new instance of Axios * * @param {Object} instanceConfig The default config for the instance */ function Axios(instanceConfig) { this.defaults = instanceConfig; this.interceptors = { request: new InterceptorManager(), response: new InterceptorManager() }; } /** * Dispatch a request * * @param {Object} config The config specific for this request (merged with this.defaults) */ Axios.prototype.request = function request(config) { /*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API if (typeof config === 'string') { config = arguments[1] || {}; config.url = arguments[0]; } else { config = config || {}; } config = mergeConfig(this.defaults, config); // Set config.method if (config.method) { config.method = config.method.toLowerCase(); } else if (this.defaults.method) { config.method = this.defaults.method.toLowerCase(); } else { config.method = 'get'; } // Hook up interceptors middleware var chain = [dispatchRequest, undefined]; var promise = Promise.resolve(config); this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { chain.unshift(interceptor.fulfilled, interceptor.rejected); }); this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { chain.push(interceptor.fulfilled, interceptor.rejected); }); while (chain.length) { promise = promise.then(chain.shift(), chain.shift()); } return promise; }; Axios.prototype.getUri = function getUri(config) { config = mergeConfig(this.defaults, config); return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); }; // Provide aliases for supported request methods utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, config) { return this.request(mergeConfig(config || {}, { method: method, url: url })); }; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, data, config) { return this.request(mergeConfig(config || {}, { method: method, url: url, data: data })); }; }); module.exports = Axios; /***/ }), /***/ "0b07": /***/ (function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__("34ac"), getValue = __webpack_require__("3698"); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } module.exports = getNative; /***/ }), /***/ "0d24": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"), stubFalse = __webpack_require__("07c7"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "0df6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Syntactic sugar for invoking a function and expanding an array for arguments. * * Common use case would be to use `Function.prototype.apply`. * * ```js * function f(x, y, z) {} * var args = [1, 2, 3]; * f.apply(null, args); * ``` * * With `spread` this example can be re-written. * * ```js * spread(function(x, y, z) {})([1, 2, 3]); * ``` * * @param {Function} callback * @returns {Function} */ module.exports = function spread(callback) { return function wrap(arr) { return callback.apply(null, arr); }; }; /***/ }), /***/ "0f0f": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * The base implementation of `_.assignIn` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssignIn(object, source) { return object && copyObject(source, keysIn(source), object); } module.exports = baseAssignIn; /***/ }), /***/ "100e": /***/ (function(module, exports, __webpack_require__) { var identity = __webpack_require__("cd9d"), overRest = __webpack_require__("2286"), setToString = __webpack_require__("c1c9"); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { return setToString(overRest(func, start, identity), func + ''); } module.exports = baseRest; /***/ }), /***/ "1041": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbolsIn = __webpack_require__("a029"); /** * Copies own and inherited symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbolsIn(source, object) { return copyObject(source, getSymbolsIn(source), object); } module.exports = copySymbolsIn; /***/ }), /***/ "124f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // https://en.wikipedia.org/wiki/MSI_Barcode#Character_set_and_binary_lookup var MSI = function (_Barcode) { _inherits(MSI, _Barcode); function MSI(data, options) { _classCallCheck(this, MSI); return _possibleConstructorReturn(this, (MSI.__proto__ || Object.getPrototypeOf(MSI)).call(this, data, options)); } _createClass(MSI, [{ key: "encode", value: function encode() { // Start bits var ret = "110"; for (var i = 0; i < this.data.length; i++) { // Convert the character to binary (always 4 binary digits) var digit = parseInt(this.data[i]); var bin = digit.toString(2); bin = addZeroes(bin, 4 - bin.length); // Add 100 for every zero and 110 for every 1 for (var b = 0; b < bin.length; b++) { ret += bin[b] == "0" ? "100" : "110"; } } // End bits ret += "1001"; return { data: ret, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9]+$/) !== -1; } }]); return MSI; }(_Barcode3.default); function addZeroes(number, n) { for (var i = 0; i < n; i++) { number = "0" + number; } return number; } exports.default = MSI; /***/ }), /***/ "1290": /***/ (function(module, exports) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } module.exports = isKeyable; /***/ }), /***/ "1310": /***/ (function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }), /***/ "1368": /***/ (function(module, exports, __webpack_require__) { var coreJsData = __webpack_require__("da03"); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } module.exports = isMasked; /***/ }), /***/ "18d8": /***/ (function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__("234d"); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }), /***/ "1a2d": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var mapTag = '[object Map]'; /** * The base implementation of `_.isMap` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. */ function baseIsMap(value) { return isObjectLike(value) && getTag(value) == mapTag; } module.exports = baseIsMap; /***/ }), /***/ "1a8c": /***/ (function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }), /***/ "1ba5": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // http://www.barcodeisland.com/ean8.phtml // Calculate the checksum digit var checksum = function checksum(number) { var res = number.substr(0, 7).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a : sum + a * 3; }, 0); return (10 - res % 10) % 10; }; var EAN8 = function (_EAN) { _inherits(EAN8, _EAN); function EAN8(data, options) { _classCallCheck(this, EAN8); // Add checksum if it does not exist if (data.search(/^[0-9]{7}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (EAN8.__proto__ || Object.getPrototypeOf(EAN8)).call(this, data, options)); } _createClass(EAN8, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftText', this).call(this, 0, 4); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(0, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftEncode', this).call(this, data, 'LLLL'); } }, { key: 'rightText', value: function rightText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightText', this).call(this, 4, 4); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(4, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightEncode', this).call(this, data, 'RRRR'); } }]); return EAN8; }(_EAN3.default); exports.default = EAN8; /***/ }), /***/ "1bac": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbolsIn = __webpack_require__("a029"), keysIn = __webpack_require__("9934"); /** * Creates an array of own and inherited enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeysIn(object) { return baseGetAllKeys(object, keysIn, getSymbolsIn); } module.exports = getAllKeysIn; /***/ }), /***/ "1cec": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Promise = getNative(root, 'Promise'); module.exports = Promise; /***/ }), /***/ "1d2b": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function bind(fn, thisArg) { return function wrap() { var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { args[i] = arguments[i]; } return fn.apply(thisArg, args); }; }; /***/ }), /***/ "1efc": /***/ (function(module, exports) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; /***/ }), /***/ "1fc8": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet; /***/ }), /***/ "2286": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * A specialized version of `baseRest` which transforms the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @param {Function} transform The rest array transform. * @returns {Function} Returns the new function. */ function overRest(func, start, transform) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } module.exports = overRest; /***/ }), /***/ "234d": /***/ (function(module, exports, __webpack_require__) { var memoize = __webpack_require__("e380"); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } module.exports = memoizeCapped; /***/ }), /***/ "2411": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), createAssigner = __webpack_require__("2ec1"); /** * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} customizer The function to customize assigned values. * @returns {Object} Returns `object`. * @example * * function customizer(objValue, srcValue) { * if (_.isArray(objValue)) { * return objValue.concat(srcValue); * } * } * * var object = { 'a': [1], 'b': [2] }; * var other = { 'a': [3], 'b': [4] }; * * _.mergeWith(object, other, customizer); * // => { 'a': [1, 3], 'b': [2, 4] } */ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { baseMerge(object, source, srcIndex, customizer); }); module.exports = mergeWith; /***/ }), /***/ "241e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UPCE = exports.UPC = exports.EAN2 = exports.EAN5 = exports.EAN8 = exports.EAN13 = undefined; var _EAN = __webpack_require__("89a2"); var _EAN2 = _interopRequireDefault(_EAN); var _EAN3 = __webpack_require__("1ba5"); var _EAN4 = _interopRequireDefault(_EAN3); var _EAN5 = __webpack_require__("583f"); var _EAN6 = _interopRequireDefault(_EAN5); var _EAN7 = __webpack_require__("a5d2"); var _EAN8 = _interopRequireDefault(_EAN7); var _UPC = __webpack_require__("e8b2"); var _UPC2 = _interopRequireDefault(_UPC); var _UPCE = __webpack_require__("be98"); var _UPCE2 = _interopRequireDefault(_UPCE); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.EAN13 = _EAN2.default; exports.EAN8 = _EAN4.default; exports.EAN5 = _EAN6.default; exports.EAN2 = _EAN8.default; exports.UPC = _UPC2.default; exports.UPCE = _UPCE2.default; /***/ }), /***/ "2444": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__("c532"); var normalizeHeaderName = __webpack_require__("c8af"); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' }; function setContentTypeIfUnset(headers, value) { if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { headers['Content-Type'] = value; } } function getDefaultAdapter() { var adapter; if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter adapter = __webpack_require__("b50d"); } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { // For node use HTTP adapter adapter = __webpack_require__("b50d"); } return adapter; } var defaults = { adapter: getDefaultAdapter(), transformRequest: [function transformRequest(data, headers) { normalizeHeaderName(headers, 'Accept'); normalizeHeaderName(headers, 'Content-Type'); if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) ) { return data; } if (utils.isArrayBufferView(data)) { return data.buffer; } if (utils.isURLSearchParams(data)) { setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); return data.toString(); } if (utils.isObject(data)) { setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); return JSON.stringify(data); } return data; }], transformResponse: [function transformResponse(data) { /*eslint no-param-reassign:0*/ if (typeof data === 'string') { try { data = JSON.parse(data); } catch (e) { /* Ignore */ } } return data; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: function validateStatus(status) { return status >= 200 && status < 300; } }; defaults.headers = { common: { 'Accept': 'application/json, text/plain, */*' } }; utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); }); module.exports = defaults; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"))) /***/ }), /***/ "2474": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Uint8Array = root.Uint8Array; module.exports = Uint8Array; /***/ }), /***/ "2478": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } module.exports = mapCacheGet; /***/ }), /***/ "2524": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } module.exports = hashSet; /***/ }), /***/ "253c": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } module.exports = baseIsArguments; /***/ }), /***/ "28c9": /***/ (function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }), /***/ "29f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "2a4a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var START_BIN = exports.START_BIN = '1010'; var END_BIN = exports.END_BIN = '11101'; var BINARIES = exports.BINARIES = ['00110', '10001', '01001', '11000', '00101', '10100', '01100', '00011', '10010', '01010']; /***/ }), /***/ "2b3e": /***/ (function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__("585a"); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }), /***/ "2d7c": /***/ (function(module, exports) { /** * A specialized version of `_.filter` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. */ function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } module.exports = arrayFilter; /***/ }), /***/ "2d83": /***/ (function(module, exports, __webpack_require__) { "use strict"; var enhanceError = __webpack_require__("387f"); /** * Create an Error with the specified message, config, error code, request and response. * * @param {string} message The error message. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The created error. */ module.exports = function createError(message, config, code, request, response) { var error = new Error(message); return enhanceError(error, config, code, request, response); }; /***/ }), /***/ "2dcb": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /** Built-in value references. */ var getPrototype = overArg(Object.getPrototypeOf, Object); module.exports = getPrototype; /***/ }), /***/ "2e67": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function isCancel(value) { return !!(value && value.__CANCEL__); }; /***/ }), /***/ "2ec1": /***/ (function(module, exports, __webpack_require__) { var baseRest = __webpack_require__("100e"), isIterateeCall = __webpack_require__("9aff"); /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } module.exports = createAssigner; /***/ }), /***/ "2fcc": /***/ (function(module, exports) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } module.exports = stackDelete; /***/ }), /***/ "30b5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); function encode(val) { return encodeURIComponent(val). 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 */ module.exports = function buildURL(url, params, paramsSerializer) { /*eslint no-param-reassign:0*/ if (!params) { return url; } var serializedParams; if (paramsSerializer) { serializedParams = paramsSerializer(params); } else if (utils.isURLSearchParams(params)) { serializedParams = params.toString(); } else { var parts = []; utils.forEach(params, function serialize(val, key) { if (val === null || typeof val === 'undefined') { return; } if (utils.isArray(val)) { key = key + '[]'; } else { val = [val]; } utils.forEach(val, function parseValue(v) { if (utils.isDate(v)) { v = v.toISOString(); } else if (utils.isObject(v)) { v = JSON.stringify(v); } parts.push(encode(key) + '=' + 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; }; /***/ }), /***/ "30c9": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isLength = __webpack_require__("b218"); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /***/ "32b3": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignValue; /***/ }), /***/ "32f4": /***/ (function(module, exports, __webpack_require__) { var arrayFilter = __webpack_require__("2d7c"), stubArray = __webpack_require__("d327"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbols = !nativeGetSymbols ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; module.exports = getSymbols; /***/ }), /***/ "349c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE39 = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Code_39#Encoding var CODE39 = function (_Barcode) { _inherits(CODE39, _Barcode); function CODE39(data, options) { _classCallCheck(this, CODE39); data = data.toUpperCase(); // Calculate mod43 checksum if enabled if (options.mod43) { data += getCharacter(mod43checksum(data)); } return _possibleConstructorReturn(this, (CODE39.__proto__ || Object.getPrototypeOf(CODE39)).call(this, data, options)); } _createClass(CODE39, [{ key: "encode", value: function encode() { // First character is always a * var result = getEncoding("*"); // Take every character and add the binary representation to the result for (var i = 0; i < this.data.length; i++) { result += getEncoding(this.data[i]) + "0"; } // Last character is always a * result += getEncoding("*"); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1; } }]); return CODE39; }(_Barcode3.default); // All characters. The position in the array is the (checksum) value var characters = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", "*"]; // The decimal representation of the characters, is converted to the // corresponding binary with the getEncoding function var encodings = [20957, 29783, 23639, 30485, 20951, 29813, 23669, 20855, 29789, 23645, 29975, 23831, 30533, 22295, 30149, 24005, 21623, 29981, 23837, 22301, 30023, 23879, 30545, 22343, 30161, 24017, 21959, 30065, 23921, 22385, 29015, 18263, 29141, 17879, 29045, 18293, 17783, 29021, 18269, 17477, 17489, 17681, 20753, 35770]; // Get the binary representation of a character by converting the encodings // from decimal to binary function getEncoding(character) { return getBinary(characterValue(character)); } function getBinary(characterValue) { return encodings[characterValue].toString(2); } function getCharacter(characterValue) { return characters[characterValue]; } function characterValue(character) { return characters.indexOf(character); } function mod43checksum(data) { var checksum = 0; for (var i = 0; i < data.length; i++) { checksum += characterValue(data[i]); } checksum = checksum % 43; return checksum; } exports.CODE39 = CODE39; /***/ }), /***/ "34ac": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isMasked = __webpack_require__("1368"), isObject = __webpack_require__("1a8c"), toSource = __webpack_require__("dc57"); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } module.exports = baseIsNative; /***/ }), /***/ "3698": /***/ (function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }), /***/ "3729": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), getRawTag = __webpack_require__("00fd"), objectToString = __webpack_require__("29f3"); /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (symToStringTag && symToStringTag in Object(value)) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag; /***/ }), /***/ "3818": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), arrayEach = __webpack_require__("8057"), assignValue = __webpack_require__("32b3"), baseAssign = __webpack_require__("5b01"), baseAssignIn = __webpack_require__("0f0f"), cloneBuffer = __webpack_require__("e538"), copyArray = __webpack_require__("4359"), copySymbols = __webpack_require__("54eb"), copySymbolsIn = __webpack_require__("1041"), getAllKeys = __webpack_require__("a994"), getAllKeysIn = __webpack_require__("1bac"), getTag = __webpack_require__("42a2"), initCloneArray = __webpack_require__("c87c"), initCloneByTag = __webpack_require__("c2b6"), initCloneObject = __webpack_require__("fa21"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isMap = __webpack_require__("cc45"), isObject = __webpack_require__("1a8c"), isSet = __webpack_require__("d7ee"), keys = __webpack_require__("ec69"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values supported by `_.clone`. */ var cloneableTags = {}; cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; /** * The base implementation of `_.clone` and `_.cloneDeep` which tracks * traversed objects. * * @private * @param {*} value The value to clone. * @param {boolean} bitmask The bitmask flags. * 1 - Deep clone * 2 - Flatten inherited properties * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== undefined) { return result; } if (!isObject(value)) { return value; } var isArr = isArray(value); if (isArr) { result = initCloneArray(value); if (!isDeep) { return copyArray(value, result); } } else { var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; if (isBuffer(value)) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag(value, tag, isDeep); } } // Check for circular references and return its corresponding clone. stack || (stack = new Stack); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); if (isSet(value)) { value.forEach(function(subValue) { result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); }); return result; } if (isMap(value)) { value.forEach(function(subValue, key) { result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } var keysFunc = isFull ? (isFlat ? getAllKeysIn : getAllKeys) : (isFlat ? keysIn : keys); var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } module.exports = baseClone; /***/ }), /***/ "3852": /***/ (function(module, exports, __webpack_require__) { var baseHas = __webpack_require__("96f3"), hasPath = __webpack_require__("e2c0"); /** * Checks if `path` is a direct property of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = { 'a': { 'b': 2 } }; * var other = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.has(object, 'a'); * // => true * * _.has(object, 'a.b'); * // => true * * _.has(object, ['a', 'b']); * // => true * * _.has(other, 'a'); * // => false */ function has(object, path) { return object != null && hasPath(object, path, baseHas); } module.exports = has; /***/ }), /***/ "387f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Update an Error with the specified config, error code, and response. * * @param {Error} error The error to update. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The error. */ module.exports = function enhanceError(error, config, code, request, response) { error.config = config; if (code) { error.code = code; } error.request = request; error.response = response; error.isAxiosError = true; error.toJSON = function toJSON() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: this.config, code: this.code }; }; return error; }; /***/ }), /***/ "3934": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. (function standardBrowserEnv() { var msie = /(msie|trident)/i.test(navigator.userAgent); var urlParsingNode = document.createElement('a'); var originURL; /** * Parse a URL to discover it's components * * @param {String} url The URL to be parsed * @returns {Object} */ function resolveURL(url) { var href = url; if (msie) { // IE needs attribute set twice to normalize properties urlParsingNode.setAttribute('href', href); href = urlParsingNode.href; } urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils return { href: urlParsingNode.href, protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', host: urlParsingNode.host, search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', hostname: urlParsingNode.hostname, port: urlParsingNode.port, pathname: (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname }; } originURL = resolveURL(window.location.href); /** * Determine if a URL shares the same origin as the current location * * @param {String} requestURL The URL to test * @returns {boolean} True if URL shares the same origin, otherwise false */ return function isURLSameOrigin(requestURL) { var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; return (parsed.protocol === originURL.protocol && parsed.host === originURL.host); }; })() : // Non standard browser envs (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return function isURLSameOrigin() { return true; }; })() ); /***/ }), /***/ "39ff": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var WeakMap = getNative(root, 'WeakMap'); module.exports = WeakMap; /***/ }), /***/ "3b4a": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); module.exports = defineProperty; /***/ }), /***/ "3c35": /***/ (function(module, exports) { /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */ module.exports = __webpack_amd_options__; /* WEBPACK VAR INJECTION */}.call(this, {})) /***/ }), /***/ "3c7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("2a4a"); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ITF = function (_Barcode) { _inherits(ITF, _Barcode); function ITF() { _classCallCheck(this, ITF); return _possibleConstructorReturn(this, (ITF.__proto__ || Object.getPrototypeOf(ITF)).apply(this, arguments)); } _createClass(ITF, [{ key: 'valid', value: function valid() { return this.data.search(/^([0-9]{2})+$/) !== -1; } }, { key: 'encode', value: function encode() { var _this2 = this; // Calculate all the digit pairs var encoded = this.data.match(/.{2}/g).map(function (pair) { return _this2.encodePair(pair); }).join(''); return { data: _constants.START_BIN + encoded + _constants.END_BIN, text: this.text }; } // Calculate the data of a number pair }, { key: 'encodePair', value: function encodePair(pair) { var second = _constants.BINARIES[pair[1]]; return _constants.BINARIES[pair[0]].split('').map(function (first, idx) { return (first === '1' ? '111' : '1') + (second[idx] === '1' ? '000' : '0'); }).join(''); } }]); return ITF; }(_Barcode3.default); exports.default = ITF; /***/ }), /***/ "3f84": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"), baseRest = __webpack_require__("100e"), customDefaultsMerge = __webpack_require__("e031"), mergeWith = __webpack_require__("2411"); /** * This method is like `_.defaults` except that it recursively assigns * default properties. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 3.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.defaults * @example * * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); * // => { 'a': { 'b': 2, 'c': 3 } } */ var defaultsDeep = baseRest(function(args) { args.push(undefined, customDefaultsMerge); return apply(mergeWith, undefined, args); }); module.exports = defaultsDeep; /***/ }), /***/ "41c3": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"), isPrototype = __webpack_require__("eac5"), nativeKeysIn = __webpack_require__("ec8c"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } module.exports = baseKeysIn; /***/ }), /***/ "4245": /***/ (function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__("1290"); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } module.exports = getMapData; /***/ }), /***/ "42a2": /***/ (function(module, exports, __webpack_require__) { var DataView = __webpack_require__("b5a7"), Map = __webpack_require__("79bc"), Promise = __webpack_require__("1cec"), Set = __webpack_require__("c869"), WeakMap = __webpack_require__("39ff"), baseGetTag = __webpack_require__("3729"), toSource = __webpack_require__("dc57"); /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', promiseTag = '[object Promise]', setTag = '[object Set]', weakMapTag = '[object WeakMap]'; var dataViewTag = '[object DataView]'; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap); /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } module.exports = getTag; /***/ }), /***/ "4359": /***/ (function(module, exports) { /** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } module.exports = copyArray; /***/ }), /***/ "4362": /***/ (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__("df7c"); cwd = path.resolve(dir, cwd); }; })(); exports.exit = exports.kill = exports.umask = exports.dlopen = exports.uptime = exports.memoryUsage = exports.uvCounters = function() {}; exports.features = {}; /***/ }), /***/ "4461": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI11 = function (_MSI) { _inherits(MSI11, _MSI); function MSI11(data, options) { _classCallCheck(this, MSI11); return _possibleConstructorReturn(this, (MSI11.__proto__ || Object.getPrototypeOf(MSI11)).call(this, data + (0, _checksums.mod11)(data), options)); } return MSI11; }(_MSI3.default); exports.default = MSI11; /***/ }), /***/ "467f": /***/ (function(module, exports, __webpack_require__) { "use strict"; var createError = __webpack_require__("2d83"); /** * 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. */ module.exports = function settle(resolve, reject, response) { var validateStatus = response.config.validateStatus; if (!response.status || !validateStatus || validateStatus(response.status)) { resolve(response); } else { reject(createError( 'Request failed with status code ' + response.status, response.config, null, response.request, response )); } }; /***/ }), /***/ "4727": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI10 = function (_MSI) { _inherits(MSI10, _MSI); function MSI10(data, options) { _classCallCheck(this, MSI10); return _possibleConstructorReturn(this, (MSI10.__proto__ || Object.getPrototypeOf(MSI10)).call(this, data + (0, _checksums.mod10)(data), options)); } return MSI10; }(_MSI3.default); exports.default = MSI10; /***/ }), /***/ "49f4": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } module.exports = hashClear; /***/ }), /***/ "4a37": /***/ (function(module, exports, __webpack_require__) { !function(t,e){ true?module.exports=e():undefined}(this,function(){return function(t){function e(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(3)},function(t,e){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(void 0!==o&&null!==o){o=Object(o);for(var n=Object.keys(Object(o)),i=0,a=n.length;i<a;i++){var s=n[i],u=Object.getOwnPropertyDescriptor(o,s);void 0!==u&&u.enumerable&&(e[s]=o[s])}}}return e}})}()},function(t,e){"use strict";t.exports=function(){var t={};return t.utf16to8=function(t){var e,r,o,n;for(e="",o=t.length,r=0;r<o;r++)n=t.charCodeAt(r),n>=1&&n<=127?e+=t.charAt(r):n>2047?(e+=String.fromCharCode(224|n>>12&15),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|n>>0&63)):(e+=String.fromCharCode(192|n>>6&31),e+=String.fromCharCode(128|n>>0&63));return e},t.utf8to16=function(t){var e,r,o,n,i,a;for(e="",o=t.length,r=0;r<o;)switch(n=t.charCodeAt(r++),n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=t.charAt(r-1);break;case 12:case 13:i=t.charCodeAt(r++),e+=String.fromCharCode((31&n)<<6|63&i);break;case 14:i=t.charCodeAt(r++),a=t.charCodeAt(r++),e+=String.fromCharCode((15&n)<<12|(63&i)<<6|(63&a)<<0)}return e},t}()},function(t,e,r){"use strict";r(1),r(4);var o=r(2),n=function(){function t(t){var e=new QRCode(t.typeNumber,t.correctLevel);e.addData(t.text),e.make();var r=document.createElement("canvas");r.width=t.width,r.height=t.height;var o=r.getContext("2d"),n=(t.width-2*t.padding)/e.getModuleCount(),i=(t.height-2*t.padding)/e.getModuleCount();if(t.reverse){var a="rgba(0, 0, 0, 0)";o.fillStyle=a,t.foreground=a}else o.fillStyle=t.background;o.fillRect(0,0,r.width,r.height);for(var s=0;s<e.getModuleCount();s++)for(var u=0;u<e.getModuleCount();u++){o.fillStyle=e.isDark(s,u)?t.foreground:t.background;var h=Math.ceil((u+1)*n)-Math.floor(u*n),f=Math.ceil((s+1)*n)-Math.floor(s*n);o.fillRect(Math.round(u*n)+t.padding,Math.round(s*i)+t.padding,h,f)}return r}var e={};return e.getQrBase64=function(e,r){"string"!=typeof e&&(e=""),"string"==typeof r?r={text:r}:"object"!=typeof r&&(r={}),r=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},r);try{r.text=o.utf16to8(e)}catch(t){r.text=""+t}var n=t(r);return n.toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=n),t.exports=n},function(t,e){function r(t){this.mode=s.MODE_8BIT_BYTE,this.data=t}function o(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var o=0;o<t.length-r;o++)this.num[o]=t[o+r]}function i(t,e){this.totalCount=t,this.dataCount=e}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},o.prototype={addData:function(t){var e=new r(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),r=new a,o=0,n=0;n<e.length;n++)o+=e[n].dataCount;for(var n=0;n<this.dataList.length;n++){var s=this.dataList[n];r.put(s.mode,4),r.put(s.getLength(),f.getLengthInBits(s.mode,t)),s.write(r)}if(r.getLengthInBits()<=8*o)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4?this.modules[t+r][e+o]=!0:this.modules[t+r][e+o]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=f.getLostPoint(this);(0==r||t>o)&&(t=o,e=r)}return e},createMovieClip:function(t,e,r){var o=t.createEmptyMovieClip(e,r),n=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*n,s=0;s<this.modules[i].length;s++){var u=s*n,h=this.modules[i][s];h&&(o.beginFill(0,100),o.moveTo(u,a),o.lineTo(u+n,a),o.lineTo(u+n,a+n),o.lineTo(u,a+n),o.endFill())}return o},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%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(){for(var t=f.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var o=t[e],n=t[r];if(null==this.modules[o][n])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||2==i||a==-2||2==a||0==i&&0==a?this.modules[o+i][n+a]=!0:this.modules[o+i][n+a]=!1}},setupTypeNumber:function(t){for(var e=f.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(var r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,o=f.getBCHTypeInfo(r),n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(var n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,o=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[o][a-s]){var u=!1;i<t.length&&(u=1==(t[i]>>>n&1));var h=f.getMask(e,o,a-s);h&&(u=!u),this.modules[o][a-s]=u,n--,n==-1&&(i++,n=7)}if(o+=r,o<0||this.moduleCount<=o){o-=r,r=-r;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(t,e,r){for(var n=i.getRSBlocks(t,e),s=new a,u=0;u<r.length;u++){var h=r[u];s.put(h.mode,4),s.put(h.getLength(),f.getLengthInBits(h.mode,t)),h.write(s)}for(var l=0,u=0;u<n.length;u++)l+=n[u].dataCount;if(s.getLengthInBits()>8*l)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*l+")");for(s.getLengthInBits()+4<=8*l&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*l)break;if(s.put(o.PAD0,8),s.getLengthInBits()>=8*l)break;s.put(o.PAD1,8)}return o.createBytes(s,n)},o.createBytes=function(t,e){for(var r=0,o=0,i=0,a=new Array(e.length),s=new Array(e.length),u=0;u<e.length;u++){var h=e[u].dataCount,l=e[u].totalCount-h;o=Math.max(o,h),i=Math.max(i,l),a[u]=new Array(h);for(var g=0;g<a[u].length;g++)a[u][g]=255&t.buffer[g+r];r+=h;var c=f.getErrorCorrectPolynomial(l),d=new n(a[u],c.getLength()-1),v=d.mod(c);s[u]=new Array(c.getLength()-1);for(var g=0;g<s[u].length;g++){var m=g+v.getLength()-s[u].length;s[u][g]=m>=0?v.get(m):0}}for(var p=0,g=0;g<e.length;g++)p+=e[g].totalCount;for(var C=new Array(p),E=0,g=0;g<o;g++)for(var u=0;u<e.length;u++)g<a[u].length&&(C[E++]=a[u][g]);for(var g=0;g<i;g++)for(var u=0;u<e.length;u++)g<s[u].length&&(C[E++]=s[u][g]);return C};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},h={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={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(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<<f.getBCHDigit(e)-f.getBCHDigit(f.G15);return(t<<10|e)^f.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;f.getBCHDigit(e)-f.getBCHDigit(f.G18)>=0;)e^=f.G18<<f.getBCHDigit(e)-f.getBCHDigit(f.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case h.PATTERN000:return(e+r)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return r%3==0;case h.PATTERN011:return(e+r)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case h.PATTERN101:return e*r%2+e*r%3==0;case h.PATTERN110:return(e*r%2+e*r%3)%2==0;case h.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),r=0;r<t;r++)e=e.multiply(new n([1,l.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:return 8;case s.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,o=0;o<e;o++)for(var n=0;n<e;n++){for(var i=0,a=t.isDark(o,n),s=-1;s<=1;s++)if(!(o+s<0||e<=o+s))for(var u=-1;u<=1;u++)n+u<0||e<=n+u||0==s&&0==u||a==t.isDark(o+s,n+u)&&i++;i>5&&(r+=3+i-5)}for(var o=0;o<e-1;o++)for(var n=0;n<e-1;n++){var h=0;t.isDark(o,n)&&h++,t.isDark(o+1,n)&&h++,t.isDark(o,n+1)&&h++,t.isDark(o+1,n+1)&&h++,0!=h&&4!=h||(r+=3)}for(var o=0;o<e;o++)for(var n=0;n<e-6;n++)t.isDark(o,n)&&!t.isDark(o,n+1)&&t.isDark(o,n+2)&&t.isDark(o,n+3)&&t.isDark(o,n+4)&&!t.isDark(o,n+5)&&t.isDark(o,n+6)&&(r+=40);for(var n=0;n<e;n++)for(var o=0;o<e-6;o++)t.isDark(o,n)&&!t.isDark(o+1,n)&&t.isDark(o+2,n)&&t.isDark(o+3,n)&&t.isDark(o+4,n)&&!t.isDark(o+5,n)&&t.isDark(o+6,n)&&(r+=40);for(var f=0,n=0;n<e;n++)for(var o=0;o<e;o++)t.isDark(o,n)&&f++;var l=Math.abs(100*f/e/e-50)/5;return r+=10*l}},l={glog:function(t){if(t<1)throw new Error("glog("+t+")");return l.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return l.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)l.EXP_TABLE[g]=1<<g;for(var g=8;g<256;g++)l.EXP_TABLE[g]=l.EXP_TABLE[g-4]^l.EXP_TABLE[g-5]^l.EXP_TABLE[g-6]^l.EXP_TABLE[g-8];for(var g=0;g<255;g++)l.LOG_TABLE[l.EXP_TABLE[g]]=g;n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<t.getLength();o++)e[r+o]^=l.gexp(l.glog(this.get(r))+l.glog(t.get(o)));return new n(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=l.glog(this.get(0))-l.glog(t.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(var o=0;o<t.getLength();o++)r[o]^=l.gexp(l.glog(t.get(o))+e);return new n(r,0).mod(t)}},i.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]],i.getRSBlocks=function(t,e){var r=i.getRsBlockTable(t,e);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var o=r.length/3,n=new Array,a=0;a<o;a++)for(var s=r[3*a+0],u=r[3*a+1],h=r[3*a+2],f=0;f<s;f++)n.push(new i(u,h));return n},i.getRsBlockTable=function(t,e){switch(e){case u.L:return i.RS_BLOCK_TABLE[4*(t-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(t-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(t-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},a.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=u;try{t.exports={QRCode:o,QRErrorCorrectLevel:u}}catch(t){}}])}); /***/ }), /***/ "4a7b": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Config-specific merge-function which creates a new config-object * by merging two configuration objects together. * * @param {Object} config1 * @param {Object} config2 * @returns {Object} New object resulting from merging config2 to config1 */ module.exports = function mergeConfig(config1, config2) { // eslint-disable-next-line no-param-reassign config2 = config2 || {}; var config = {}; var valueFromConfig2Keys = ['url', 'method', 'data']; var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; var defaultToConfig2Keys = [ 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' ]; var directMergeKeys = ['validateStatus']; function getMergedValue(target, source) { if (utils.isPlainObject(target) && utils.isPlainObject(source)) { return utils.merge(target, source); } else if (utils.isPlainObject(source)) { return utils.merge({}, source); } else if (utils.isArray(source)) { return source.slice(); } return source; } function mergeDeepProperties(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } } utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } }); utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } }); utils.forEach(directMergeKeys, function merge(prop) { if (prop in config2) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (prop in config1) { config[prop] = getMergedValue(undefined, config1[prop]); } }); var axiosKeys = valueFromConfig2Keys .concat(mergeDeepPropertiesKeys) .concat(defaultToConfig2Keys) .concat(directMergeKeys); var otherKeys = Object .keys(config1) .concat(Object.keys(config2)) .filter(function filterAxiosKeys(key) { return axiosKeys.indexOf(key) === -1; }); utils.forEach(otherKeys, mergeDeepProperties); return config; }; /***/ }), /***/ "4b23": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // This is the master class, // it does require the start code to be included in the string var CODE128 = function (_Barcode) { _inherits(CODE128, _Barcode); function CODE128(data, options) { _classCallCheck(this, CODE128); // Get array of ascii codes from data var _this = _possibleConstructorReturn(this, (CODE128.__proto__ || Object.getPrototypeOf(CODE128)).call(this, data.substring(1), options)); _this.bytes = data.split('').map(function (char) { return char.charCodeAt(0); }); return _this; } _createClass(CODE128, [{ key: 'valid', value: function valid() { // ASCII value ranges 0-127, 200-211 return (/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data) ); } // The public encoding function }, { key: 'encode', value: function encode() { var bytes = this.bytes; // Remove the start code from the bytes and set its index var startIndex = bytes.shift() - 105; // Get start set by index var startSet = _constants.SET_BY_CODE[startIndex]; if (startSet === undefined) { throw new RangeError('The encoding does not start with a start character.'); } if (this.shouldEncodeAsEan128() === true) { bytes.unshift(_constants.FNC1); } // Start encode with the right type var encodingResult = CODE128.next(bytes, 1, startSet); return { text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, '') : this.text, data: // Add the start bits CODE128.getBar(startIndex) + // Add the encoded bits encodingResult.result + // Add the checksum CODE128.getBar((encodingResult.checksum + startIndex) % _constants.MODULO) + // Add the end bits CODE128.getBar(_constants.STOP) }; } // GS1-128/EAN-128 }, { key: 'shouldEncodeAsEan128', value: function shouldEncodeAsEan128() { var isEAN128 = this.options.ean128 || false; if (typeof isEAN128 === 'string') { isEAN128 = isEAN128.toLowerCase() === 'true'; } return isEAN128; } // Get a bar symbol by index }], [{ key: 'getBar', value: function getBar(index) { return _constants.BARS[index] ? _constants.BARS[index].toString() : ''; } // Correct an index by a set and shift it from the bytes array }, { key: 'correctIndex', value: function correctIndex(bytes, set) { if (set === _constants.SET_A) { var charCode = bytes.shift(); return charCode < 32 ? charCode + 64 : charCode - 32; } else if (set === _constants.SET_B) { return bytes.shift() - 32; } else { return (bytes.shift() - 48) * 10 + bytes.shift() - 48; } } }, { key: 'next', value: function next(bytes, pos, set) { if (!bytes.length) { return { result: '', checksum: 0 }; } var nextCode = void 0, index = void 0; // Special characters if (bytes[0] >= 200) { index = bytes.shift() - 105; var nextSet = _constants.SWAP[index]; // Swap to other set if (nextSet !== undefined) { nextCode = CODE128.next(bytes, pos + 1, nextSet); } // Continue on current set but encode a special character else { // Shift if ((set === _constants.SET_A || set === _constants.SET_B) && index === _constants.SHIFT) { // Convert the next character so that is encoded correctly bytes[0] = set === _constants.SET_A ? bytes[0] > 95 ? bytes[0] - 96 : bytes[0] : bytes[0] < 32 ? bytes[0] + 96 : bytes[0]; } nextCode = CODE128.next(bytes, pos + 1, set); } } // Continue encoding else { index = CODE128.correctIndex(bytes, set); nextCode = CODE128.next(bytes, pos + 1, set); } // Get the correct binary encoding and calculate the weight var enc = CODE128.getBar(index); var weight = index * pos; return { result: enc + nextCode.result, checksum: weight + nextCode.checksum }; } }]); return CODE128; }(_Barcode3.default); exports.default = CODE128; /***/ }), /***/ "4ced": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var ObjectRenderer = function () { function ObjectRenderer(object, encodings, options) { _classCallCheck(this, ObjectRenderer); this.object = object; this.encodings = encodings; this.options = options; } _createClass(ObjectRenderer, [{ key: "render", value: function render() { this.object.encodings = this.encodings; } }]); return ObjectRenderer; }(); exports.default = ObjectRenderer; /***/ }), /***/ "4f50": /***/ (function(module, exports, __webpack_require__) { var assignMergeValue = __webpack_require__("b760"), cloneBuffer = __webpack_require__("e538"), cloneTypedArray = __webpack_require__("c8fe"), copyArray = __webpack_require__("4359"), initCloneObject = __webpack_require__("fa21"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isArrayLikeObject = __webpack_require__("dcbe"), isBuffer = __webpack_require__("0d24"), isFunction = __webpack_require__("9520"), isObject = __webpack_require__("1a8c"), isPlainObject = __webpack_require__("60ed"), isTypedArray = __webpack_require__("73ac"), safeGet = __webpack_require__("8adb"), toPlainObject = __webpack_require__("8de2"); /** * A specialized version of `baseMerge` for arrays and objects which performs * deep merges and tracks traversed objects enabling objects with circular * references to be merged. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {string} key The key of the value to merge. * @param {number} srcIndex The index of `source`. * @param {Function} mergeFunc The function to merge values. * @param {Function} [customizer] The function to customize assigned values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); if (stacked) { assignMergeValue(object, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined; var isCommon = newValue === undefined; if (isCommon) { var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue); } else if (isBuff) { isCommon = false; newValue = cloneBuffer(srcValue, true); } else if (isTyped) { isCommon = false; newValue = cloneTypedArray(srcValue, true); } else { newValue = []; } } else if (isPlainObject(srcValue) || isArguments(srcValue)) { newValue = objValue; if (isArguments(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject(objValue) || isFunction(objValue)) { newValue = initCloneObject(srcValue); } } else { isCommon = false; } } if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack['delete'](srcValue); } assignMergeValue(object, key, newValue); } module.exports = baseMergeDeep; /***/ }), /***/ "50d8": /***/ (function(module, exports) { /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } module.exports = baseTimes; /***/ }), /***/ "5261": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = optionsFromStrings; // Convert string to integers/booleans where it should be function optionsFromStrings(options) { var intOptions = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"]; for (var intOption in intOptions) { if (intOptions.hasOwnProperty(intOption)) { intOption = intOptions[intOption]; if (typeof options[intOption] === "string") { options[intOption] = parseInt(options[intOption], 10); } } } if (typeof options["displayValue"] === "string") { options["displayValue"] = options["displayValue"] != "false"; } return options; } /***/ }), /***/ "5270": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var transformData = __webpack_require__("c401"); var isCancel = __webpack_require__("2e67"); var defaults = __webpack_require__("2444"); /** * Throws a `Cancel` if cancellation has been requested. */ function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } } /** * Dispatch a request to the server using the configured adapter. * * @param {object} config The config that is to be used for the request * @returns {Promise} The Promise to be fulfilled */ module.exports = function dispatchRequest(config) { throwIfCancellationRequested(config); // Ensure headers exist config.headers = config.headers || {}; // Transform request data config.data = transformData( config.data, config.headers, config.transformRequest ); // Flatten headers config.headers = utils.merge( config.headers.common || {}, config.headers[config.method] || {}, config.headers ); utils.forEach( ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) { delete config.headers[method]; } ); var adapter = config.adapter || defaults.adapter; return adapter(config).then(function onAdapterResolution(response) { throwIfCancellationRequested(config); // Transform response data response.data = transformData( response.data, response.headers, config.transformResponse ); return response; }, function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config); // Transform response data if (reason && reason.response) { reason.response.data = transformData( reason.response.data, reason.response.headers, config.transformResponse ); } } return Promise.reject(reason); }); }; /***/ }), /***/ "54eb": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbols = __webpack_require__("32f4"); /** * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbols(source, object) { return copyObject(source, getSymbols(source), object); } module.exports = copySymbols; /***/ }), /***/ "55a3": /***/ (function(module, exports) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; /***/ }), /***/ "5726": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("c243"); // Encode data string var encode = function encode(data, structure, separator) { var encoded = data.split('').map(function (val, idx) { return _constants.BINARIES[structure[idx]]; }).map(function (val, idx) { return val ? val[data[idx]] : ''; }); if (separator) { var last = data.length - 1; encoded = encoded.map(function (val, idx) { return idx < last ? val + separator : val; }); } return encoded.join(''); }; exports.default = encode; /***/ }), /***/ "57a5": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "583f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_5#Encoding var checksum = function checksum(data) { var result = data.split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 9 : sum + a * 3; }, 0); return result % 10; }; var EAN5 = function (_Barcode) { _inherits(EAN5, _Barcode); function EAN5(data, options) { _classCallCheck(this, EAN5); return _possibleConstructorReturn(this, (EAN5.__proto__ || Object.getPrototypeOf(EAN5)).call(this, data, options)); } _createClass(EAN5, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{5}$/) !== -1; } }, { key: 'encode', value: function encode() { var structure = _constants.EAN5_STRUCTURE[checksum(this.data)]; return { data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN5; }(_Barcode3.default); exports.default = EAN5; /***/ }), /***/ "585a": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; module.exports = freeGlobal; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) /***/ }), /***/ "5b01": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keys = __webpack_require__("ec69"); /** * The base implementation of `_.assign` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign(object, source) { return object && copyObject(source, keys(source), object); } module.exports = baseAssign; /***/ }), /***/ "5d89": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `dataView`. * * @private * @param {Object} dataView The data view to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned data view. */ function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } module.exports = cloneDataView; /***/ }), /***/ "5e2e": /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__("28c9"), listCacheDelete = __webpack_require__("69d5"), listCacheGet = __webpack_require__("b4c0"), listCacheHas = __webpack_require__("fba5"), listCacheSet = __webpack_require__("67ca"); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ "5f72": /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE__5f72__; /***/ }), /***/ "6044": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); module.exports = nativeCreate; /***/ }), /***/ "60ed": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), getPrototype = __webpack_require__("2dcb"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var objectTag = '[object Object]'; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object); /** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { * this.a = 1; * } * * _.isPlainObject(new Foo); * // => false * * _.isPlainObject([1, 2, 3]); * // => false * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true * * _.isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } module.exports = isPlainObject; /***/ }), /***/ "6220": /***/ (function(module, exports, __webpack_require__) { var baseIsDate = __webpack_require__("b1d2"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsDate = nodeUtil && nodeUtil.isDate; /** * Checks if `value` is classified as a `Date` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); * // => true * * _.isDate('Mon April 23 2012'); * // => false */ var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; module.exports = isDate; /***/ }), /***/ "62c5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var _barcodes = __webpack_require__("ff84"); var _barcodes2 = _interopRequireDefault(_barcodes); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _linearizeEncodings = __webpack_require__("a2b0"); var _linearizeEncodings2 = _interopRequireDefault(_linearizeEncodings); var _fixOptions = __webpack_require__("79f1"); var _fixOptions2 = _interopRequireDefault(_fixOptions); var _getRenderProperties = __webpack_require__("b1d8"); var _getRenderProperties2 = _interopRequireDefault(_getRenderProperties); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _ErrorHandler = __webpack_require__("bd8a"); var _ErrorHandler2 = _interopRequireDefault(_ErrorHandler); var _exceptions = __webpack_require__("dca2"); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // The protype of the object returned from the JsBarcode() call // Help functions var API = function API() {}; // The first call of the library API // Will return an object with all barcodes calls and the data that is used // by the renderers // Default values // Exceptions // Import all the barcodes var JsBarcode = function JsBarcode(element, text, options) { var api = new API(); if (typeof element === "undefined") { throw Error("No element to render on was provided."); } // Variables that will be pased through the API calls api._renderProperties = (0, _getRenderProperties2.default)(element); api._encodings = []; api._options = _defaults2.default; api._errorHandler = new _ErrorHandler2.default(api); // If text is set, use the simple syntax (render the barcode directly) if (typeof text !== "undefined") { options = options || {}; if (!options.format) { options.format = autoSelectBarcode(); } api.options(options)[options.format](text, options).render(); } return api; }; // To make tests work TODO: remove JsBarcode.getModule = function (name) { return _barcodes2.default[name]; }; // Register all barcodes for (var name in _barcodes2.default) { if (_barcodes2.default.hasOwnProperty(name)) { // Security check if the propery is a prototype property registerBarcode(_barcodes2.default, name); } } function registerBarcode(barcodes, name) { API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) { var api = this; return api._errorHandler.wrapBarcodeCall(function () { // Ensure text is options.text options.text = typeof options.text === 'undefined' ? undefined : '' + options.text; var newOptions = (0, _merge2.default)(api._options, options); newOptions = (0, _optionsFromStrings2.default)(newOptions); var Encoder = barcodes[name]; var encoded = encode(text, Encoder, newOptions); api._encodings.push(encoded); return api; }); }; } // encode() handles the Encoder call and builds the binary string to be rendered function encode(text, Encoder, options) { // Ensure that text is a string text = "" + text; var encoder = new Encoder(text, options); // If the input is not valid for the encoder, throw error. // If the valid callback option is set, call it instead of throwing error if (!encoder.valid()) { throw new _exceptions.InvalidInputException(encoder.constructor.name, text); } // Make a request for the binary data (and other infromation) that should be rendered var encoded = encoder.encode(); // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] encoded = (0, _linearizeEncodings2.default)(encoded); // Merge for (var i = 0; i < encoded.length; i++) { encoded[i].options = (0, _merge2.default)(options, encoded[i].options); } return encoded; } function autoSelectBarcode() { // If CODE128 exists. Use it if (_barcodes2.default["CODE128"]) { return "CODE128"; } // Else, take the first (probably only) barcode return Object.keys(_barcodes2.default)[0]; } // Sets global encoder options // Added to the api by the JsBarcode function API.prototype.options = function (options) { this._options = (0, _merge2.default)(this._options, options); return this; }; // Will create a blank space (usually in between barcodes) API.prototype.blank = function (size) { var zeroes = new Array(size + 1).join("0"); this._encodings.push({ data: zeroes }); return this; }; // Initialize JsBarcode on all HTML elements defined. API.prototype.init = function () { // Should do nothing if no elements where found if (!this._renderProperties) { return; } // Make sure renderProperies is an array if (!Array.isArray(this._renderProperties)) { this._renderProperties = [this._renderProperties]; } var renderProperty; for (var i in this._renderProperties) { renderProperty = this._renderProperties[i]; var options = (0, _merge2.default)(this._options, renderProperty.options); if (options.format == "auto") { options.format = autoSelectBarcode(); } this._errorHandler.wrapBarcodeCall(function () { var text = options.value; var Encoder = _barcodes2.default[options.format.toUpperCase()]; var encoded = encode(text, Encoder, options); render(renderProperty, encoded, options); }); } }; // The render API call. Calls the real render function. API.prototype.render = function () { if (!this._renderProperties) { throw new _exceptions.NoElementException(); } if (Array.isArray(this._renderProperties)) { for (var i = 0; i < this._renderProperties.length; i++) { render(this._renderProperties[i], this._encodings, this._options); } } else { render(this._renderProperties, this._encodings, this._options); } return this; }; API.prototype._defaults = _defaults2.default; // Prepares the encodings and calls the renderer function render(renderProperties, encodings, options) { encodings = (0, _linearizeEncodings2.default)(encodings); for (var i = 0; i < encodings.length; i++) { encodings[i].options = (0, _merge2.default)(options, encodings[i].options); (0, _fixOptions2.default)(encodings[i].options); } (0, _fixOptions2.default)(options); var Renderer = renderProperties.renderer; var renderer = new Renderer(renderProperties.element, encodings, options); renderer.render(); if (renderProperties.afterRender) { renderProperties.afterRender(); } } // Export to browser if (typeof window !== "undefined") { window.JsBarcode = JsBarcode; } // Export to jQuery /*global jQuery */ if (typeof jQuery !== 'undefined') { jQuery.fn.JsBarcode = function (content, options) { var elementArray = []; jQuery(this).each(function () { elementArray.push(this); }); return JsBarcode(elementArray, content, options); }; } // Export to commonJS module.exports = JsBarcode; /***/ }), /***/ "62e4": /***/ (function(module, exports) { module.exports = function(module) { if (!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if (!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /***/ "6747": /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /***/ "67ca": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }), /***/ "69d5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }), /***/ "6e53": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mod10 = mod10; exports.mod11 = mod11; function mod10(number) { var sum = 0; for (var i = 0; i < number.length; i++) { var n = parseInt(number[i]); if ((i + number.length) % 2 === 0) { sum += n; } else { sum += n * 2 % 10 + Math.floor(n * 2 / 10); } } return (10 - sum % 10) % 10; } function mod11(number) { var sum = 0; var weights = [2, 3, 4, 5, 6, 7]; for (var i = 0; i < number.length; i++) { var n = parseInt(number[number.length - 1 - i]); sum += weights[i % weights.length] * n; } return (11 - sum % 11) % 11; } /***/ }), /***/ "6f24": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _auto = __webpack_require__("bb5d"); var _auto2 = _interopRequireDefault(_auto); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128AUTO = function (_CODE) { _inherits(CODE128AUTO, _CODE); function CODE128AUTO(data, options) { _classCallCheck(this, CODE128AUTO); // ASCII value ranges 0-127, 200-211 if (/^[\x00-\x7F\xC8-\xD3]+$/.test(data)) { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, (0, _auto2.default)(data), options)); } else { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, data, options)); } return _possibleConstructorReturn(_this); } return CODE128AUTO; }(_CODE3.default); exports.default = CODE128AUTO; /***/ }), /***/ "6f6c": /***/ (function(module, exports) { /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; /** * Creates a clone of `regexp`. * * @private * @param {Object} regexp The regexp to clone. * @returns {Object} Returns the cloned regexp. */ function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } module.exports = cloneRegExp; /***/ }), /***/ "6fcd": /***/ (function(module, exports, __webpack_require__) { var baseTimes = __webpack_require__("50d8"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isIndex = __webpack_require__("c098"), isTypedArray = __webpack_require__("73ac"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties. isIndex(key, length) ))) { result.push(key); } } return result; } module.exports = arrayLikeKeys; /***/ }), /***/ "70b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128B = function (_CODE) { _inherits(CODE128B, _CODE); function CODE128B(string, options) { _classCallCheck(this, CODE128B); return _possibleConstructorReturn(this, (CODE128B.__proto__ || Object.getPrototypeOf(CODE128B)).call(this, _constants.B_START_CHAR + string, options)); } _createClass(CODE128B, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.B_CHARS + '+$').test(this.data); } }]); return CODE128B; }(_CODE3.default); exports.default = CODE128B; /***/ }), /***/ "721a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var CanvasRenderer = function () { function CanvasRenderer(canvas, encodings, options) { _classCallCheck(this, CanvasRenderer); this.canvas = canvas; this.encodings = encodings; this.options = options; } _createClass(CanvasRenderer, [{ key: "render", value: function render() { // Abort if the browser does not support HTML5 canvas if (!this.canvas.getContext) { throw new Error('The browser does not support canvas.'); } this.prepareCanvas(); for (var i = 0; i < this.encodings.length; i++) { var encodingOptions = (0, _merge2.default)(this.options, this.encodings[i].options); this.drawCanvasBarcode(encodingOptions, this.encodings[i]); this.drawCanvasText(encodingOptions, this.encodings[i]); this.moveCanvasDrawing(this.encodings[i]); } this.restoreCanvas(); } }, { key: "prepareCanvas", value: function prepareCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.save(); (0, _shared.calculateEncodingAttributes)(this.encodings, this.options, ctx); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); this.canvas.width = totalWidth + this.options.marginLeft + this.options.marginRight; this.canvas.height = maxHeight; // Paint the canvas ctx.clearRect(0, 0, this.canvas.width, this.canvas.height); if (this.options.background) { ctx.fillStyle = this.options.background; ctx.fillRect(0, 0, this.canvas.width, this.canvas.height); } ctx.translate(this.options.marginLeft, 0); } }, { key: "drawCanvasBarcode", value: function drawCanvasBarcode(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.marginTop + options.fontSize + options.textMargin; } else { yFrom = options.marginTop; } ctx.fillStyle = options.lineColor; for (var b = 0; b < binary.length; b++) { var x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { ctx.fillRect(x, yFrom, options.width, options.height); } else if (binary[b]) { ctx.fillRect(x, yFrom, options.width, options.height * binary[b]); } } } }, { key: "drawCanvasText", value: function drawCanvasText(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Draw the text if displayValue is set if (options.displayValue) { var x, y; if (options.textPosition == "top") { y = options.marginTop + options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.marginTop + options.fontSize; } ctx.font = font; // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; ctx.textAlign = 'left'; } else if (options.textAlign == "right") { x = encoding.width - 1; ctx.textAlign = 'right'; } // In all other cases, center the text else { x = encoding.width / 2; ctx.textAlign = 'center'; } ctx.fillText(encoding.text, x, y); } } }, { key: "moveCanvasDrawing", value: function moveCanvasDrawing(encoding) { var ctx = this.canvas.getContext("2d"); ctx.translate(encoding.width, 0); } }, { key: "restoreCanvas", value: function restoreCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.restore(); } }]); return CanvasRenderer; }(); exports.default = CanvasRenderer; /***/ }), /***/ "72af": /***/ (function(module, exports, __webpack_require__) { var createBaseFor = __webpack_require__("99cd"); /** * The base implementation of `baseForOwn` which iterates over `object` * properties returned by `keysFunc` and invokes `iteratee` for each property. * Iteratee functions may exit iteration early by explicitly returning `false`. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ var baseFor = createBaseFor(); module.exports = baseFor; /***/ }), /***/ "72f0": /***/ (function(module, exports) { /** * Creates a function that returns `value`. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * * var objects = _.times(2, _.constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] * * console.log(objects[0] === objects[1]); * // => true */ function constant(value) { return function() { return value; }; } module.exports = constant; /***/ }), /***/ "73ac": /***/ (function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__("743f"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; module.exports = isTypedArray; /***/ }), /***/ "743f": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isLength = __webpack_require__("b218"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } module.exports = baseIsTypedArray; /***/ }), /***/ "752b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _canvas = __webpack_require__("721a"); var _canvas2 = _interopRequireDefault(_canvas); var _svg = __webpack_require__("be5e"); var _svg2 = _interopRequireDefault(_svg); var _object = __webpack_require__("4ced"); var _object2 = _interopRequireDefault(_object); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { CanvasRenderer: _canvas2.default, SVGRenderer: _svg2.default, ObjectRenderer: _object2.default }; /***/ }), /***/ "7530": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"); /** Built-in value references. */ var objectCreate = Object.create; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} proto The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function object() {} return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object; object.prototype = undefined; return result; }; }()); module.exports = baseCreate; /***/ }), /***/ "76dd": /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__("ce86"); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }), /***/ "7948": /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ "79bc": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); module.exports = Map; /***/ }), /***/ "79f1": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = fixOptions; function fixOptions(options) { // Fix the margins options.marginTop = options.marginTop || options.margin; options.marginBottom = options.marginBottom || options.margin; options.marginRight = options.marginRight || options.margin; options.marginLeft = options.marginLeft || options.margin; return options; } /***/ }), /***/ "7a48": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } module.exports = hashHas; /***/ }), /***/ "7a77": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * A `Cancel` is an object that is thrown when an operation is canceled. * * @class * @param {string=} message The message. */ function Cancel(message) { this.message = message; } Cancel.prototype.toString = function toString() { return 'Cancel' + (this.message ? ': ' + this.message : ''); }; Cancel.prototype.__CANCEL__ = true; module.exports = Cancel; /***/ }), /***/ "7aac": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie (function standardBrowserEnv() { return { write: function write(name, value, expires, path, domain, secure) { var cookie = []; cookie.push(name + '=' + encodeURIComponent(value)); if (utils.isNumber(expires)) { cookie.push('expires=' + new Date(expires).toGMTString()); } if (utils.isString(path)) { cookie.push('path=' + path); } if (utils.isString(domain)) { cookie.push('domain=' + domain); } if (secure === true) { cookie.push('secure'); } document.cookie = cookie.join('; '); }, read: function read(name) { var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); return (match ? decodeURIComponent(match[3]) : null); }, remove: function remove(name) { this.write(name, '', Date.now() - 86400000); } }; })() : // Non standard browser env (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return { write: function write() {}, read: function read() { return null; }, remove: function remove() {} }; })() ); /***/ }), /***/ "7b83": /***/ (function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__("7c64"), mapCacheDelete = __webpack_require__("93ed"), mapCacheGet = __webpack_require__("2478"), mapCacheHas = __webpack_require__("a524"), mapCacheSet = __webpack_require__("1fc8"); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; module.exports = MapCache; /***/ }), /***/ "7c64": /***/ (function(module, exports, __webpack_require__) { var Hash = __webpack_require__("e24b"), ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } module.exports = mapCacheClear; /***/ }), /***/ "7cb9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pharmacode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf var pharmacode = function (_Barcode) { _inherits(pharmacode, _Barcode); function pharmacode(data, options) { _classCallCheck(this, pharmacode); var _this = _possibleConstructorReturn(this, (pharmacode.__proto__ || Object.getPrototypeOf(pharmacode)).call(this, data, options)); _this.number = parseInt(data, 10); return _this; } _createClass(pharmacode, [{ key: "encode", value: function encode() { var z = this.number; var result = ""; // http://i.imgur.com/RMm4UDJ.png // (source: http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf, page: 34) while (!isNaN(z) && z != 0) { if (z % 2 === 0) { // Even result = "11100" + result; z = (z - 2) / 2; } else { // Odd result = "100" + result; z = (z - 1) / 2; } } // Remove the two last zeroes result = result.slice(0, -2); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.number >= 3 && this.number <= 131070; } }]); return pharmacode; }(_Barcode3.default); exports.pharmacode = pharmacode; /***/ }), /***/ "7d1f": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), isArray = __webpack_require__("6747"); /** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the keys of `object`. * @param {Function} symbolsFunc The function to get the symbols of `object`. * @returns {Array} Returns the array of property names and symbols. */ function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); } module.exports = baseGetAllKeys; /***/ }), /***/ "7e64": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), stackClear = __webpack_require__("efb6"), stackDelete = __webpack_require__("2fcc"), stackGet = __webpack_require__("802a"), stackHas = __webpack_require__("55a3"), stackSet = __webpack_require__("d02c"); /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } // Add methods to `Stack`. Stack.prototype.clear = stackClear; Stack.prototype['delete'] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; module.exports = Stack; /***/ }), /***/ "802a": /***/ (function(module, exports) { /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; /***/ }), /***/ "8057": /***/ (function(module, exports) { /** * A specialized version of `_.forEach` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns `array`. */ function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } module.exports = arrayEach; /***/ }), /***/ "805f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1110 = function (_MSI) { _inherits(MSI1110, _MSI); function MSI1110(data, options) { _classCallCheck(this, MSI1110); data += (0, _checksums.mod11)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1110.__proto__ || Object.getPrototypeOf(MSI1110)).call(this, data, options)); } return MSI1110; }(_MSI3.default); exports.default = MSI1110; /***/ }), /***/ "8237": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */ (function () { 'use strict'; var ERROR = 'input is invalid type'; var WINDOW = typeof window === 'object'; var root = WINDOW ? window : {}; if (root.JS_MD5_NO_WINDOW) { WINDOW = false; } var WEB_WORKER = !WINDOW && typeof self === 'object'; var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node; if (NODE_JS) { root = global; } else if (WEB_WORKER) { root = self; } var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports; var AMD = true && __webpack_require__("3c35"); var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined'; var HEX_CHARS = '0123456789abcdef'.split(''); var EXTRA = [128, 32768, 8388608, -2147483648]; var SHIFT = [0, 8, 16, 24]; var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64']; var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); var blocks = [], buffer8; if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); buffer8 = new Uint8Array(buffer); blocks = new Uint32Array(buffer); } if (root.JS_MD5_NO_NODE_JS || !Array.isArray) { Array.isArray = function (obj) { return Object.prototype.toString.call(obj) === '[object Array]'; }; } if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { ArrayBuffer.isView = function (obj) { return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; }; } /** * @method hex * @memberof md5 * @description Output hash as hex string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} Hex string * @example * md5.hex('The quick brown fox jumps over the lazy dog'); * // equal to * md5('The quick brown fox jumps over the lazy dog'); */ /** * @method digest * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.digest('The quick brown fox jumps over the lazy dog'); */ /** * @method array * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.array('The quick brown fox jumps over the lazy dog'); */ /** * @method arrayBuffer * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.arrayBuffer('The quick brown fox jumps over the lazy dog'); */ /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.buffer('The quick brown fox jumps over the lazy dog'); */ /** * @method base64 * @memberof md5 * @description Output hash as base64 string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} base64 string * @example * md5.base64('The quick brown fox jumps over the lazy dog'); */ var createOutputMethod = function (outputType) { return function (message) { return new Md5(true).update(message)[outputType](); }; }; /** * @method create * @memberof md5 * @description Create Md5 object * @returns {Md5} Md5 object. * @example * var hash = md5.create(); */ /** * @method update * @memberof md5 * @description Create and update Md5 object * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @example * var hash = md5.update('The quick brown fox jumps over the lazy dog'); * // equal to * var hash = md5.create(); * hash.update('The quick brown fox jumps over the lazy dog'); */ var createMethod = function () { var method = createOutputMethod('hex'); if (NODE_JS) { method = nodeWrap(method); } method.create = function () { return new Md5(); }; method.update = function (message) { return method.create().update(message); }; for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method[type] = createOutputMethod(type); } return method; }; var nodeWrap = function (method) { var crypto = eval("require('crypto')"); var Buffer = eval("require('buffer').Buffer"); var nodeMethod = function (message) { if (typeof message === 'string') { return crypto.createHash('md5').update(message, 'utf8').digest('hex'); } else { if (message === null || message === undefined) { throw ERROR; } else if (message.constructor === ArrayBuffer) { message = new Uint8Array(message); } } if (Array.isArray(message) || ArrayBuffer.isView(message) || message.constructor === Buffer) { return crypto.createHash('md5').update(new Buffer(message)).digest('hex'); } else { return method(message); } }; return nodeMethod; }; /** * Md5 class * @class Md5 * @description This is internal class. * @see {@link md5.create} */ function Md5(sharedMemory) { if (sharedMemory) { blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; this.blocks = blocks; this.buffer8 = buffer8; } else { if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); this.buffer8 = new Uint8Array(buffer); this.blocks = new Uint32Array(buffer); } else { this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } } this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0; this.finalized = this.hashed = false; this.first = true; } /** * @method update * @memberof Md5 * @instance * @description Update hash * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @see {@link md5.update} */ Md5.prototype.update = function (message) { if (this.finalized) { return; } var notString, type = typeof message; if (type !== 'string') { if (type === 'object') { if (message === null) { throw ERROR; } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) { message = new Uint8Array(message); } else if (!Array.isArray(message)) { if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) { throw ERROR; } } } else { throw ERROR; } notString = true; } var code, index = 0, i, length = message.length, blocks = this.blocks; var buffer8 = this.buffer8; while (index < length) { if (this.hashed) { this.hashed = false; blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } if (notString) { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { buffer8[i++] = message[index]; } } else { for (i = this.start; index < length && i < 64; ++index) { blocks[i >> 2] |= message[index] << SHIFT[i++ & 3]; } } } else { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { buffer8[i++] = code; } else if (code < 0x800) { buffer8[i++] = 0xc0 | (code >> 6); buffer8[i++] = 0x80 | (code & 0x3f); } else if (code < 0xd800 || code >= 0xe000) { buffer8[i++] = 0xe0 | (code >> 12); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); buffer8[i++] = 0xf0 | (code >> 18); buffer8[i++] = 0x80 | ((code >> 12) & 0x3f); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } } } else { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { blocks[i >> 2] |= code << SHIFT[i++ & 3]; } else if (code < 0x800) { blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else if (code < 0xd800 || code >= 0xe000) { blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } } } } this.lastByteIndex = i; this.bytes += i - this.start; if (i >= 64) { this.start = i - 64; this.hash(); this.hashed = true; } else { this.start = i; } } if (this.bytes > 4294967295) { this.hBytes += this.bytes / 4294967296 << 0; this.bytes = this.bytes % 4294967296; } return this; }; Md5.prototype.finalize = function () { if (this.finalized) { return; } this.finalized = true; var blocks = this.blocks, i = this.lastByteIndex; blocks[i >> 2] |= EXTRA[i & 3]; if (i >= 56) { if (!this.hashed) { this.hash(); } blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } blocks[14] = this.bytes << 3; blocks[15] = this.hBytes << 3 | this.bytes >>> 29; this.hash(); }; Md5.prototype.hash = function () { var a, b, c, d, bc, da, blocks = this.blocks; if (this.first) { a = blocks[0] - 680876937; a = (a << 7 | a >>> 25) - 271733879 << 0; d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708; d = (d << 12 | d >>> 20) + a << 0; c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375; c = (c << 17 | c >>> 15) + d << 0; b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209; b = (b << 22 | b >>> 10) + c << 0; } else { a = this.h0; b = this.h1; c = this.h2; d = this.h3; a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330; b = (b << 22 | b >>> 10) + c << 0; } a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[10] - 42063; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329; b = (b << 22 | b >>> 10) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734; b = (b << 20 | b >>> 12) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[5] - 378558; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[8] - 2022574463; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[11] + 1839030562; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[14] - 35309556; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[1] - 1530992060; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[4] + 1272893353; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[7] - 155497632; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[10] - 1094730640; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[13] + 681279174; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[0] - 358537222; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[3] - 722521979; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[6] + 76029189; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[9] - 640364487; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[12] - 421815835; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[15] + 530742520; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[2] - 995338651; b = (b << 23 | b >>> 9) + c << 0; a += (c ^ (b | ~d)) + blocks[0] - 198630844; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[7] + 1126891415; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[14] - 1416354905; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[5] - 57434055; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[12] + 1700485571; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[3] - 1894986606; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[10] - 1051523; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[1] - 2054922799; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[8] + 1873313359; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[15] - 30611744; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[6] - 1560198380; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[13] + 1309151649; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[4] - 145523070; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[11] - 1120210379; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[2] + 718787259; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[9] - 343485551; b = (b << 21 | b >>> 11) + c << 0; if (this.first) { this.h0 = a + 1732584193 << 0; this.h1 = b - 271733879 << 0; this.h2 = c - 1732584194 << 0; this.h3 = d + 271733878 << 0; this.first = false; } else { this.h0 = this.h0 + a << 0; this.h1 = this.h1 + b << 0; this.h2 = this.h2 + c << 0; this.h3 = this.h3 + d << 0; } }; /** * @method hex * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.hex(); */ Md5.prototype.hex = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] + HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] + HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] + HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] + HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] + HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] + HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] + HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] + HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] + HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] + HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] + HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] + HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] + HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] + HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] + HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F]; }; /** * @method toString * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.toString(); */ Md5.prototype.toString = Md5.prototype.hex; /** * @method digest * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.digest} * @example * hash.digest(); */ Md5.prototype.digest = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return [ h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF, h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF, h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF, h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF ]; }; /** * @method array * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.array} * @example * hash.array(); */ Md5.prototype.array = Md5.prototype.digest; /** * @method arrayBuffer * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.arrayBuffer} * @example * hash.arrayBuffer(); */ Md5.prototype.arrayBuffer = function () { this.finalize(); var buffer = new ArrayBuffer(16); var blocks = new Uint32Array(buffer); blocks[0] = this.h0; blocks[1] = this.h1; blocks[2] = this.h2; blocks[3] = this.h3; return buffer; }; /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.buffer} * @example * hash.buffer(); */ Md5.prototype.buffer = Md5.prototype.arrayBuffer; /** * @method base64 * @memberof Md5 * @instance * @description Output hash as base64 string * @returns {String} base64 string * @see {@link md5.base64} * @example * hash.base64(); */ Md5.prototype.base64 = function () { var v1, v2, v3, base64Str = '', bytes = this.array(); for (var i = 0; i < 15;) { v1 = bytes[i++]; v2 = bytes[i++]; v3 = bytes[i++]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] + BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] + BASE64_ENCODE_CHAR[v3 & 63]; } v1 = bytes[i]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4) & 63] + '=='; return base64Str; }; var exports = createMethod(); if (COMMON_JS) { module.exports = exports; } else { /** * @method md5 * @description Md5 hash function, export to global in browsers. * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} md5 hashes * @example * md5(''); // d41d8cd98f00b204e9800998ecf8427e * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6 * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0 * * // It also supports UTF-8 encoding * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07 * * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer` * md5([]); // d41d8cd98f00b204e9800998ecf8427e * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e */ root.md5 = exports; if (AMD) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } })(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"), __webpack_require__("c8ba"))) /***/ }), /***/ "83b9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var isAbsoluteURL = __webpack_require__("d925"); var combineURLs = __webpack_require__("e683"); /** * 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 */ module.exports = function buildFullPath(baseURL, requestedURL) { if (baseURL && !isAbsoluteURL(requestedURL)) { return combineURLs(baseURL, requestedURL); } return requestedURL; }; /***/ }), /***/ "852e": /***/ (function(module, exports, __webpack_require__) { /*! js-cookie v3.0.1 | MIT */ ; (function (global, factory) { true ? module.exports = factory() : undefined; }(this, (function () { 'use strict'; /* eslint-disable no-var */ function assign (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { target[key] = source[key]; } } return target } /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = { read: function (value) { if (value[0] === '"') { value = value.slice(1, -1); } return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) }, write: function (value) { return encodeURIComponent(value).replace( /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent ) } }; /* eslint-enable no-var */ /* eslint-disable no-var */ function init (converter, defaultAttributes) { function set (key, value, attributes) { if (typeof document === 'undefined') { return } attributes = assign({}, defaultAttributes, attributes); if (typeof attributes.expires === 'number') { attributes.expires = new Date(Date.now() + attributes.expires * 864e5); } if (attributes.expires) { attributes.expires = attributes.expires.toUTCString(); } key = encodeURIComponent(key) .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent) .replace(/[()]/g, escape); var stringifiedAttributes = ''; for (var attributeName in attributes) { if (!attributes[attributeName]) { continue } stringifiedAttributes += '; ' + attributeName; if (attributes[attributeName] === true) { continue } // Considers RFC 6265 section 5.2: // ... // 3. If the remaining unparsed-attributes contains a %x3B (";") // character: // Consume the characters of the unparsed-attributes up to, // not including, the first %x3B (";") character. // ... stringifiedAttributes += '=' + attributes[attributeName].split(';')[0]; } return (document.cookie = key + '=' + converter.write(value, key) + stringifiedAttributes) } function get (key) { if (typeof document === 'undefined' || (arguments.length && !key)) { return } // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. var cookies = document.cookie ? document.cookie.split('; ') : []; var jar = {}; for (var i = 0; i < cookies.length; i++) { var parts = cookies[i].split('='); var value = parts.slice(1).join('='); try { var foundKey = decodeURIComponent(parts[0]); jar[foundKey] = converter.read(value, foundKey); if (key === foundKey) { break } } catch (e) {} } return key ? jar[key] : jar } return Object.create( { set: set, get: get, remove: function (key, attributes) { set( key, '', assign({}, attributes, { expires: -1 }) ); }, withAttributes: function (attributes) { return init(this.converter, assign({}, this.attributes, attributes)) }, withConverter: function (converter) { return init(assign({}, this.converter, converter), this.attributes) } }, { attributes: { value: Object.freeze(defaultAttributes) }, converter: { value: Object.freeze(converter) } } ) } var api = init(defaultConverter, { path: '/' }); /* eslint-enable no-var */ return api; }))); /***/ }), /***/ "85e3": /***/ (function(module, exports) { /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } module.exports = apply; /***/ }), /***/ "872a": /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__("3b4a"); /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } module.exports = baseAssignValue; /***/ }), /***/ "8861": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1010 = function (_MSI) { _inherits(MSI1010, _MSI); function MSI1010(data, options) { _classCallCheck(this, MSI1010); data += (0, _checksums.mod10)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1010.__proto__ || Object.getPrototypeOf(MSI1010)).call(this, data, options)); } return MSI1010; }(_MSI3.default); exports.default = MSI1010; /***/ }), /***/ "8875": /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller // MIT license // source: https://github.com/amiller-gh/currentScript-polyfill // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505 (function (root, factory) { if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} }(typeof self !== 'undefined' ? self : this, function () { function getCurrentScript () { var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript') // for chrome if (!descriptor && 'currentScript' in document && document.currentScript) { return document.currentScript } // for other browsers with native support for currentScript if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) { return document.currentScript } // IE 8-10 support script readyState // IE 11+ & Firefox support stack trace try { throw new Error(); } catch (err) { // Find the second match for the "at" string to get file src url from stack. var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), scriptLocation = (stackDetails && stackDetails[1]) || false, line = (stackDetails && stackDetails[2]) || false, currentLocation = document.location.href.replace(document.location.hash, ''), pageSource, inlineScriptSourceRegExp, inlineScriptSource, scripts = document.getElementsByTagName('script'); // Live NodeList collection if (scriptLocation === currentLocation) { pageSource = document.documentElement.outerHTML; inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i'); inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim(); } for (var i = 0; i < scripts.length; i++) { // If ready state is interactive, return the script tag if (scripts[i].readyState === 'interactive') { return scripts[i]; } // If src matches, return the script tag if (scripts[i].src === scriptLocation) { return scripts[i]; } // If inline source matches, return the script tag if ( scriptLocation === currentLocation && scripts[i].innerHTML && scripts[i].innerHTML.trim() === inlineScriptSource ) { return scripts[i]; } } // If no match, return null return null; } }; return getCurrentScript })); /***/ }), /***/ "89a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _constants = __webpack_require__("c243"); var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Binary_encoding_of_data_digits_into_EAN-13_barcode // Calculate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit var checksum = function checksum(number) { var res = number.substr(0, 12).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 3 : sum + a; }, 0); return (10 - res % 10) % 10; }; var EAN13 = function (_EAN) { _inherits(EAN13, _EAN); function EAN13(data, options) { _classCallCheck(this, EAN13); // Add checksum if it does not exist if (data.search(/^[0-9]{12}$/) !== -1) { data += checksum(data); } // Adds a last character to the end of the barcode var _this = _possibleConstructorReturn(this, (EAN13.__proto__ || Object.getPrototypeOf(EAN13)).call(this, data, options)); _this.lastChar = options.lastChar; return _this; } _createClass(EAN13, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftText', this).call(this, 1, 6); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(1, 6); var structure = _constants.EAN13_STRUCTURE[this.data[0]]; return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftEncode', this).call(this, data, structure); } }, { key: 'rightText', value: function rightText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightText', this).call(this, 7, 6); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(7, 6); return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightEncode', this).call(this, data, 'RRRRRR'); } // The "standard" way of printing EAN13 barcodes with guard bars }, { key: 'encodeGuarded', value: function encodeGuarded() { var data = _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'encodeGuarded', this).call(this); // Extend data with left digit & last character if (this.options.displayValue) { data.unshift({ data: '000000000000', text: this.text.substr(0, 1), options: { textAlign: 'left', fontSize: this.fontSize } }); if (this.options.lastChar) { data.push({ data: '00' }); data.push({ data: '00000', text: this.options.lastChar, options: { fontSize: this.fontSize } }); } } return data; } }]); return EAN13; }(_EAN3.default); exports.default = EAN13; /***/ }), /***/ "8adb": /***/ (function(module, exports) { /** * Gets the value at `key`, unless `key` is "__proto__". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function safeGet(object, key) { if (key == '__proto__') { return; } return object[key]; } module.exports = safeGet; /***/ }), /***/ "8de2": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * Converts `value` to a plain object flattening inherited enumerable string * keyed properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns the converted plain object. * @example * * function Foo() { * this.b = 2; * } * * Foo.prototype.c = 3; * * _.assign({ 'a': 1 }, new Foo); * // => { 'a': 1, 'b': 2 } * * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); * // => { 'a': 1, 'b': 2, 'c': 3 } */ function toPlainObject(value) { return copyObject(value, keysIn(value)); } module.exports = toPlainObject; /***/ }), /***/ "8df4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var Cancel = __webpack_require__("7a77"); /** * A `CancelToken` is an object that can be used to request cancellation of an operation. * * @class * @param {Function} executor The executor function. */ function CancelToken(executor) { if (typeof executor !== 'function') { throw new TypeError('executor must be a function.'); } var resolvePromise; this.promise = new Promise(function promiseExecutor(resolve) { resolvePromise = resolve; }); var token = this; executor(function cancel(message) { if (token.reason) { // Cancellation has already been requested return; } token.reason = new Cancel(message); resolvePromise(token.reason); }); } /** * Throws a `Cancel` if cancellation has been requested. */ CancelToken.prototype.throwIfRequested = function throwIfRequested() { if (this.reason) { throw this.reason; } }; /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ CancelToken.source = function source() { var cancel; var token = new CancelToken(function executor(c) { cancel = c; }); return { token: token, cancel: cancel }; }; module.exports = CancelToken; /***/ }), /***/ "8e51": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MSI1110 = exports.MSI1010 = exports.MSI11 = exports.MSI10 = exports.MSI = undefined; var _MSI = __webpack_require__("124f"); var _MSI2 = _interopRequireDefault(_MSI); var _MSI3 = __webpack_require__("4727"); var _MSI4 = _interopRequireDefault(_MSI3); var _MSI5 = __webpack_require__("4461"); var _MSI6 = _interopRequireDefault(_MSI5); var _MSI7 = __webpack_require__("8861"); var _MSI8 = _interopRequireDefault(_MSI7); var _MSI9 = __webpack_require__("805f"); var _MSI10 = _interopRequireDefault(_MSI9); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.MSI = _MSI2.default; exports.MSI10 = _MSI4.default; exports.MSI11 = _MSI6.default; exports.MSI1010 = _MSI8.default; exports.MSI1110 = _MSI10.default; /***/ }), /***/ "8eeb": /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__("32b3"), baseAssignValue = __webpack_require__("872a"); /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } module.exports = copyObject; /***/ }), /***/ "91e9": /***/ (function(module, exports) { /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } module.exports = overArg; /***/ }), /***/ "93ed": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } module.exports = mapCacheDelete; /***/ }), /***/ "9520": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObject = __webpack_require__("1a8c"); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }), /***/ "9638": /***/ (function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }), /***/ "96f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.has` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHas(object, key) { return object != null && hasOwnProperty.call(object, key); } module.exports = baseHas; /***/ }), /***/ "9934": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeysIn = __webpack_require__("41c3"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } module.exports = keysIn; /***/ }), /***/ "99cd": /***/ (function(module, exports) { /** * Creates a base function for methods like `_.forIn` and `_.forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } module.exports = createBaseFor; /***/ }), /***/ "99d3": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__("585a"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); module.exports = nodeUtil; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "9aff": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"), isArrayLike = __webpack_require__("30c9"), isIndex = __webpack_require__("c098"), isObject = __webpack_require__("1a8c"); /** * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, * else `false`. */ function isIterateeCall(value, index, object) { if (!isObject(object)) { return false; } var type = typeof index; if (type == 'number' ? (isArrayLike(object) && isIndex(index, object.length)) : (type == 'string' && index in object) ) { return eq(object[index], value); } return false; } module.exports = isIterateeCall; /***/ }), /***/ "9e69": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Symbol = root.Symbol; module.exports = Symbol; /***/ }), /***/ "9ffa": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ITF14 = exports.ITF = undefined; var _ITF = __webpack_require__("3c7c"); var _ITF2 = _interopRequireDefault(_ITF); var _ITF3 = __webpack_require__("07df"); var _ITF4 = _interopRequireDefault(_ITF3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.ITF = _ITF2.default; exports.ITF14 = _ITF4.default; /***/ }), /***/ "a029": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), getPrototype = __webpack_require__("2dcb"), getSymbols = __webpack_require__("32f4"), stubArray = __webpack_require__("d327"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); object = getPrototype(object); } return result; }; module.exports = getSymbolsIn; /***/ }), /***/ "a2b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = linearizeEncodings; // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] function linearizeEncodings(encodings) { var linearEncodings = []; function nextLevel(encoded) { if (Array.isArray(encoded)) { for (var i = 0; i < encoded.length; i++) { nextLevel(encoded[i]); } } else { encoded.text = encoded.text || ""; encoded.data = encoded.data || ""; linearEncodings.push(encoded); } } nextLevel(encodings); return linearEncodings; } /***/ }), /***/ "a2db": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; /** * Creates a clone of the `symbol` object. * * @private * @param {Object} symbol The symbol object to clone. * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } module.exports = cloneSymbol; /***/ }), /***/ "a454": /***/ (function(module, exports, __webpack_require__) { var constant = __webpack_require__("72f0"), defineProperty = __webpack_require__("3b4a"), identity = __webpack_require__("cd9d"); /** * The base implementation of `setToString` without support for hot loop shorting. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, 'toString', { 'configurable': true, 'enumerable': false, 'value': constant(string), 'writable': true }); }; module.exports = baseSetToString; /***/ }), /***/ "a524": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { return getMapData(this, key).has(key); } module.exports = mapCacheHas; /***/ }), /***/ "a5d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_2#Encoding var EAN2 = function (_Barcode) { _inherits(EAN2, _Barcode); function EAN2(data, options) { _classCallCheck(this, EAN2); return _possibleConstructorReturn(this, (EAN2.__proto__ || Object.getPrototypeOf(EAN2)).call(this, data, options)); } _createClass(EAN2, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{2}$/) !== -1; } }, { key: 'encode', value: function encode() { // Choose the structure based on the number mod 4 var structure = _constants.EAN2_STRUCTURE[parseInt(this.data) % 4]; return { // Start bits + Encode the two digits with 01 in between data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN2; }(_Barcode3.default); exports.default = EAN2; /***/ }), /***/ "a994": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbols = __webpack_require__("32f4"), keys = __webpack_require__("ec69"); /** * Creates an array of own enumerable property names and symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeys(object) { return baseGetAllKeys(object, keys, getSymbols); } module.exports = getAllKeys; /***/ }), /***/ "aab3": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getOptionsFromElement(element) { var options = {}; for (var property in _defaults2.default) { if (_defaults2.default.hasOwnProperty(property)) { // jsbarcode-* if (element.hasAttribute("jsbarcode-" + property.toLowerCase())) { options[property] = element.getAttribute("jsbarcode-" + property.toLowerCase()); } // data-* if (element.hasAttribute("data-" + property.toLowerCase())) { options[property] = element.getAttribute("data-" + property.toLowerCase()); } } } options["value"] = element.getAttribute("jsbarcode-value") || element.getAttribute("data-value"); // Since all atributes are string they need to be converted to integers options = (0, _optionsFromStrings2.default)(options); return options; } exports.default = getOptionsFromElement; /***/ }), /***/ "ab5b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTotalWidthOfEncodings = exports.calculateEncodingAttributes = exports.getBarcodePadding = exports.getEncodingHeight = exports.getMaximumHeightOfEncodings = undefined; var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getEncodingHeight(encoding, options) { return options.height + (options.displayValue && encoding.text.length > 0 ? options.fontSize + options.textMargin : 0) + options.marginTop + options.marginBottom; } function getBarcodePadding(textWidth, barcodeWidth, options) { if (options.displayValue && barcodeWidth < textWidth) { if (options.textAlign == "center") { return Math.floor((textWidth - barcodeWidth) / 2); } else if (options.textAlign == "left") { return 0; } else if (options.textAlign == "right") { return Math.floor(textWidth - barcodeWidth); } } return 0; } function calculateEncodingAttributes(encodings, barcodeOptions, context) { for (var i = 0; i < encodings.length; i++) { var encoding = encodings[i]; var options = (0, _merge2.default)(barcodeOptions, encoding.options); // Calculate the width of the encoding var textWidth; if (options.displayValue) { textWidth = messureText(encoding.text, options, context); } else { textWidth = 0; } var barcodeWidth = encoding.data.length * options.width; encoding.width = Math.ceil(Math.max(textWidth, barcodeWidth)); encoding.height = getEncodingHeight(encoding, options); encoding.barcodePadding = getBarcodePadding(textWidth, barcodeWidth, options); } } function getTotalWidthOfEncodings(encodings) { var totalWidth = 0; for (var i = 0; i < encodings.length; i++) { totalWidth += encodings[i].width; } return totalWidth; } function getMaximumHeightOfEncodings(encodings) { var maxHeight = 0; for (var i = 0; i < encodings.length; i++) { if (encodings[i].height > maxHeight) { maxHeight = encodings[i].height; } } return maxHeight; } function messureText(string, options, context) { var ctx; if (context) { ctx = context; } else if (typeof document !== "undefined") { ctx = document.createElement("canvas").getContext("2d"); } else { // If the text cannot be messured we will return 0. // This will make some barcode with big text render incorrectly return 0; } ctx.font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Calculate the width of the encoding var measureTextResult = ctx.measureText(string); if (!measureTextResult) { // Some implementations don't implement measureText and return undefined. // If the text cannot be measured we will return 0. // This will make some barcode with big text render incorrectly return 0; } var size = measureTextResult.width; return size; } exports.getMaximumHeightOfEncodings = getMaximumHeightOfEncodings; exports.getEncodingHeight = getEncodingHeight; exports.getBarcodePadding = getBarcodePadding; exports.calculateEncodingAttributes = calculateEncodingAttributes; exports.getTotalWidthOfEncodings = getTotalWidthOfEncodings; /***/ }), /***/ "b047": /***/ (function(module, exports) { /** * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. */ function baseUnary(func) { return function(value) { return func(value); }; } module.exports = baseUnary; /***/ }), /***/ "b1d2": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var dateTag = '[object Date]'; /** * The base implementation of `_.isDate` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { return isObjectLike(value) && baseGetTag(value) == dateTag; } module.exports = baseIsDate; /***/ }), /***/ "b1d8": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* global HTMLImageElement */ /* global HTMLCanvasElement */ /* global SVGElement */ var _getOptionsFromElement = __webpack_require__("aab3"); var _getOptionsFromElement2 = _interopRequireDefault(_getOptionsFromElement); var _renderers = __webpack_require__("752b"); var _renderers2 = _interopRequireDefault(_renderers); var _exceptions = __webpack_require__("dca2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Takes an element and returns an object with information about how // it should be rendered // This could also return an array with these objects // { // element: The element that the renderer should draw on // renderer: The name of the renderer // afterRender (optional): If something has to done after the renderer // completed, calls afterRender (function) // options (optional): Options that can be defined in the element // } function getRenderProperties(element) { // If the element is a string, query select call again if (typeof element === "string") { return querySelectedRenderProperties(element); } // If element is array. Recursivly call with every object in the array else if (Array.isArray(element)) { var returnArray = []; for (var i = 0; i < element.length; i++) { returnArray.push(getRenderProperties(element[i])); } return returnArray; } // If element, render on canvas and set the uri as src else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLImageElement) { return newCanvasRenderProperties(element); } // If SVG else if (element && element.nodeName && element.nodeName.toLowerCase() === 'svg' || typeof SVGElement !== 'undefined' && element instanceof SVGElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.SVGRenderer }; } // If canvas (in browser) else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLCanvasElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.CanvasRenderer }; } // If canvas (in node) else if (element && element.getContext) { return { element: element, renderer: _renderers2.default.CanvasRenderer }; } else if (element && (typeof element === "undefined" ? "undefined" : _typeof(element)) === 'object' && !element.nodeName) { return { element: element, renderer: _renderers2.default.ObjectRenderer }; } else { throw new _exceptions.InvalidElementException(); } } function querySelectedRenderProperties(string) { var selector = document.querySelectorAll(string); if (selector.length === 0) { return undefined; } else { var returnArray = []; for (var i = 0; i < selector.length; i++) { returnArray.push(getRenderProperties(selector[i])); } return returnArray; } } function newCanvasRenderProperties(imgElement) { var canvas = document.createElement('canvas'); return { element: canvas, options: (0, _getOptionsFromElement2.default)(imgElement), renderer: _renderers2.default.CanvasRenderer, afterRender: function afterRender() { imgElement.setAttribute("src", canvas.toDataURL()); } }; } exports.default = getRenderProperties; /***/ }), /***/ "b218": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; /***/ }), /***/ "b4c0": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } module.exports = listCacheGet; /***/ }), /***/ "b50d": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var settle = __webpack_require__("467f"); var cookies = __webpack_require__("7aac"); var buildURL = __webpack_require__("30b5"); var buildFullPath = __webpack_require__("83b9"); var parseHeaders = __webpack_require__("c345"); var isURLSameOrigin = __webpack_require__("3934"); var createError = __webpack_require__("2d83"); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { var requestData = config.data; var requestHeaders = config.headers; if (utils.isFormData(requestData)) { delete requestHeaders['Content-Type']; // Let the browser set it } if ( (utils.isBlob(requestData) || utils.isFile(requestData)) && requestData.type ) { delete requestHeaders['Content-Type']; // Let the browser set it } var request = new XMLHttpRequest(); // HTTP basic authentication if (config.auth) { var username = config.auth.username || ''; var password = unescape(encodeURIComponent(config.auth.password)) || ''; requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); } var fullPath = buildFullPath(config.baseURL, config.url); request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); // Set the request timeout in MS request.timeout = config.timeout; // Listen for ready state request.onreadystatechange = function handleLoad() { if (!request || request.readyState !== 4) { return; } // The request errored out and we didn't get a response, this will be // handled by onerror instead // With one exception: request that using file: protocol, most browsers // will return status as 0 even though it's a successful request if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { return; } // Prepare the response var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; var response = { data: responseData, status: request.status, statusText: request.statusText, headers: responseHeaders, config: config, request: request }; settle(resolve, reject, response); // Clean up request request = null; }; // Handle browser request cancellation (as opposed to a manual cancellation) request.onabort = function handleAbort() { if (!request) { return; } reject(createError('Request aborted', config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Handle low level network errors request.onerror = function handleError() { // Real errors are hidden from us by the browser // onerror should only fire if it's a network error reject(createError('Network Error', config, null, request)); // Clean up request request = null; }; // Handle timeout request.ontimeout = function handleTimeout() { var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; if (config.timeoutErrorMessage) { timeoutErrorMessage = config.timeoutErrorMessage; } reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Add xsrf header // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined; if (xsrfValue) { requestHeaders[config.xsrfHeaderName] = xsrfValue; } } // Add headers to the request if ('setRequestHeader' in request) { utils.forEach(requestHeaders, function setRequestHeader(val, key) { if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { // Remove Content-Type if data is undefined delete requestHeaders[key]; } else { // Otherwise add header to the request request.setRequestHeader(key, val); } }); } // Add withCredentials to request if needed if (!utils.isUndefined(config.withCredentials)) { request.withCredentials = !!config.withCredentials; } // Add responseType to request if needed if (config.responseType) { try { request.responseType = config.responseType; } catch (e) { // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. if (config.responseType !== 'json') { throw e; } } } // Handle progress if needed if (typeof config.onDownloadProgress === 'function') { request.addEventListener('progress', config.onDownloadProgress); } // Not all browsers support upload events if (typeof config.onUploadProgress === 'function' && request.upload) { request.upload.addEventListener('progress', config.onUploadProgress); } if (config.cancelToken) { // Handle cancellation config.cancelToken.promise.then(function onCanceled(cancel) { if (!request) { return; } request.abort(); reject(cancel); // Clean up request request = null; }); } if (!requestData) { requestData = null; } // Send the request request.send(requestData); }); }; /***/ }), /***/ "b5a7": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var DataView = getNative(root, 'DataView'); module.exports = DataView; /***/ }), /***/ "b760": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** * This function is like `assignValue` except that it doesn't assign * `undefined` values. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignMergeValue(object, key, value) { if ((value !== undefined && !eq(object[key], value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignMergeValue; /***/ }), /***/ "bb5d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("f08e"); // Match Set functions var matchSetALength = function matchSetALength(string) { return string.match(new RegExp('^' + _constants.A_CHARS + '*'))[0].length; }; var matchSetBLength = function matchSetBLength(string) { return string.match(new RegExp('^' + _constants.B_CHARS + '*'))[0].length; }; var matchSetC = function matchSetC(string) { return string.match(new RegExp('^' + _constants.C_CHARS + '*'))[0]; }; // CODE128A or CODE128B function autoSelectFromAB(string, isA) { var ranges = isA ? _constants.A_CHARS : _constants.B_CHARS; var untilC = string.match(new RegExp('^(' + ranges + '+?)(([0-9]{2}){2,})([^0-9]|$)')); if (untilC) { return untilC[1] + String.fromCharCode(204) + autoSelectFromC(string.substring(untilC[1].length)); } var chars = string.match(new RegExp('^' + ranges + '+'))[0]; if (chars.length === string.length) { return string; } return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA); } // CODE128C function autoSelectFromC(string) { var cMatch = matchSetC(string); var length = cMatch.length; if (length === string.length) { return string; } string = string.substring(length); // Select A/B depending on the longest match var isA = matchSetALength(string) >= matchSetBLength(string); return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA); } // Detect Code Set (A, B or C) and format the string exports.default = function (string) { var newString = void 0; var cLength = matchSetC(string).length; // Select 128C if the string start with enough digits if (cLength >= 2) { newString = _constants.C_START_CHAR + autoSelectFromC(string); } else { // Select A/B depending on the longest match var isA = matchSetALength(string) > matchSetBLength(string); newString = (isA ? _constants.A_START_CHAR : _constants.B_START_CHAR) + autoSelectFromAB(string, isA); } return newString.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, // Any sequence between 205 and 206 characters function (match, char) { return String.fromCharCode(203) + char; }); }; /***/ }), /***/ "bbc0": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED ? undefined : result; } return hasOwnProperty.call(data, key) ? data[key] : undefined; } module.exports = hashGet; /***/ }), /***/ "bc3a": /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("cee4"); /***/ }), /***/ "bd8a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /*eslint no-console: 0 */ var ErrorHandler = function () { function ErrorHandler(api) { _classCallCheck(this, ErrorHandler); this.api = api; } _createClass(ErrorHandler, [{ key: "handleCatch", value: function handleCatch(e) { // If babel supported extending of Error in a correct way instanceof would be used here if (e.name === "InvalidInputException") { if (this.api._options.valid !== this.api._defaults.valid) { this.api._options.valid(false); } else { throw e.message; } } else { throw e; } this.api.render = function () {}; } }, { key: "wrapBarcodeCall", value: function wrapBarcodeCall(func) { try { var result = func.apply(undefined, arguments); this.api._options.valid(true); return result; } catch (e) { this.handleCatch(e); return this.api; } } }]); return ErrorHandler; }(); exports.default = ErrorHandler; /***/ }), /***/ "bdfe": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Base class for EAN8 & EAN13 var EAN = function (_Barcode) { _inherits(EAN, _Barcode); function EAN(data, options) { _classCallCheck(this, EAN); // Make sure the font is not bigger than the space between the guard bars var _this = _possibleConstructorReturn(this, (EAN.__proto__ || Object.getPrototypeOf(EAN)).call(this, data, options)); _this.fontSize = !options.flat && options.fontSize > options.width * 10 ? options.width * 10 : options.fontSize; // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(EAN, [{ key: 'encode', value: function encode() { return this.options.flat ? this.encodeFlat() : this.encodeGuarded(); } }, { key: 'leftText', value: function leftText(from, to) { return this.text.substr(from, to); } }, { key: 'leftEncode', value: function leftEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'rightText', value: function rightText(from, to) { return this.text.substr(from, to); } }, { key: 'rightEncode', value: function rightEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'encodeGuarded', value: function encodeGuarded() { var textOptions = { fontSize: this.fontSize }; var guardOptions = { height: this.guardHeight }; return [{ data: _constants.SIDE_BIN, options: guardOptions }, { data: this.leftEncode(), text: this.leftText(), options: textOptions }, { data: _constants.MIDDLE_BIN, options: guardOptions }, { data: this.rightEncode(), text: this.rightText(), options: textOptions }, { data: _constants.SIDE_BIN, options: guardOptions }]; } }, { key: 'encodeFlat', value: function encodeFlat() { var data = [_constants.SIDE_BIN, this.leftEncode(), _constants.MIDDLE_BIN, this.rightEncode(), _constants.SIDE_BIN]; return { data: data.join(''), text: this.text }; } }]); return EAN; }(_Barcode3.default); exports.default = EAN; /***/ }), /***/ "be5e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var svgns = "http://www.w3.org/2000/svg"; var SVGRenderer = function () { function SVGRenderer(svg, encodings, options) { _classCallCheck(this, SVGRenderer); this.svg = svg; this.encodings = encodings; this.options = options; this.document = options.xmlDocument || document; } _createClass(SVGRenderer, [{ key: "render", value: function render() { var currentX = this.options.marginLeft; this.prepareSVG(); for (var i = 0; i < this.encodings.length; i++) { var encoding = this.encodings[i]; var encodingOptions = (0, _merge2.default)(this.options, encoding.options); var group = this.createGroup(currentX, encodingOptions.marginTop, this.svg); this.setGroupOptions(group, encodingOptions); this.drawSvgBarcode(group, encodingOptions, encoding); this.drawSVGText(group, encodingOptions, encoding); currentX += encoding.width; } } }, { key: "prepareSVG", value: function prepareSVG() { // Clear the SVG while (this.svg.firstChild) { this.svg.removeChild(this.svg.firstChild); } (0, _shared.calculateEncodingAttributes)(this.encodings, this.options); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); var width = totalWidth + this.options.marginLeft + this.options.marginRight; this.setSvgAttributes(width, maxHeight); if (this.options.background) { this.drawRect(0, 0, width, maxHeight, this.svg).setAttribute("style", "fill:" + this.options.background + ";"); } } }, { key: "drawSvgBarcode", value: function drawSvgBarcode(parent, options, encoding) { var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.fontSize + options.textMargin; } else { yFrom = 0; } var barWidth = 0; var x = 0; for (var b = 0; b < binary.length; b++) { x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { barWidth++; } else if (barWidth > 0) { this.drawRect(x - options.width * barWidth, yFrom, options.width * barWidth, options.height, parent); barWidth = 0; } } // Last draw is needed since the barcode ends with 1 if (barWidth > 0) { this.drawRect(x - options.width * (barWidth - 1), yFrom, options.width * barWidth, options.height, parent); } } }, { key: "drawSVGText", value: function drawSVGText(parent, options, encoding) { var textElem = this.document.createElementNS(svgns, 'text'); // Draw the text if displayValue is set if (options.displayValue) { var x, y; textElem.setAttribute("style", "font:" + options.fontOptions + " " + options.fontSize + "px " + options.font); if (options.textPosition == "top") { y = options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.fontSize; } // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; textElem.setAttribute("text-anchor", "start"); } else if (options.textAlign == "right") { x = encoding.width - 1; textElem.setAttribute("text-anchor", "end"); } // In all other cases, center the text else { x = encoding.width / 2; textElem.setAttribute("text-anchor", "middle"); } textElem.setAttribute("x", x); textElem.setAttribute("y", y); textElem.appendChild(this.document.createTextNode(encoding.text)); parent.appendChild(textElem); } } }, { key: "setSvgAttributes", value: function setSvgAttributes(width, height) { var svg = this.svg; svg.setAttribute("width", width + "px"); svg.setAttribute("height", height + "px"); svg.setAttribute("x", "0px"); svg.setAttribute("y", "0px"); svg.setAttribute("viewBox", "0 0 " + width + " " + height); svg.setAttribute("xmlns", svgns); svg.setAttribute("version", "1.1"); svg.setAttribute("style", "transform: translate(0,0)"); } }, { key: "createGroup", value: function createGroup(x, y, parent) { var group = this.document.createElementNS(svgns, 'g'); group.setAttribute("transform", "translate(" + x + ", " + y + ")"); parent.appendChild(group); return group; } }, { key: "setGroupOptions", value: function setGroupOptions(group, options) { group.setAttribute("style", "fill:" + options.lineColor + ";"); } }, { key: "drawRect", value: function drawRect(x, y, width, height, parent) { var rect = this.document.createElementNS(svgns, 'rect'); rect.setAttribute("x", x); rect.setAttribute("y", y); rect.setAttribute("width", width); rect.setAttribute("height", height); parent.appendChild(rect); return rect; } }]); return SVGRenderer; }(); exports.default = SVGRenderer; /***/ }), /***/ "be98": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _UPC = __webpack_require__("e8b2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding // // UPC-E documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#UPC-E var EXPANSIONS = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"]; var PARITIES = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]]; var UPCE = function (_Barcode) { _inherits(UPCE, _Barcode); function UPCE(data, options) { _classCallCheck(this, UPCE); var _this = _possibleConstructorReturn(this, (UPCE.__proto__ || Object.getPrototypeOf(UPCE)).call(this, data, options)); // Code may be 6 or 8 digits; // A 7 digit code is ambiguous as to whether the extra digit // is a UPC-A check or number system digit. _this.isValid = false; if (data.search(/^[0-9]{6}$/) !== -1) { _this.middleDigits = data; _this.upcA = expandToUPCA(data, "0"); _this.text = options.text || '' + _this.upcA[0] + data + _this.upcA[_this.upcA.length - 1]; _this.isValid = true; } else if (data.search(/^[01][0-9]{7}$/) !== -1) { _this.middleDigits = data.substring(1, data.length - 1); _this.upcA = expandToUPCA(_this.middleDigits, data[0]); if (_this.upcA[_this.upcA.length - 1] === data[data.length - 1]) { _this.isValid = true; } else { // checksum mismatch return _possibleConstructorReturn(_this); } } else { return _possibleConstructorReturn(_this); } _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPCE, [{ key: 'valid', value: function valid() { return this.isValid; } }, { key: 'encode', value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: 'flatEncoding', value: function flatEncoding() { var result = ""; result += "101"; result += this.encodeMiddleDigits(); result += "010101"; return { data: result, text: this.text }; } }, { key: 'guardedEncoding', value: function guardedEncoding() { var result = []; // Add the UPC-A number system digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[0], options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101", options: { height: this.guardHeight } }); // Add the 6 UPC-E digits result.push({ data: this.encodeMiddleDigits(), text: this.text.substring(1, 7), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: "010101", options: { height: this.guardHeight } }); // Add the UPC-A check digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[7], options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }, { key: 'encodeMiddleDigits', value: function encodeMiddleDigits() { var numberSystem = this.upcA[0]; var checkDigit = this.upcA[this.upcA.length - 1]; var parity = PARITIES[parseInt(checkDigit)][parseInt(numberSystem)]; return (0, _encoder2.default)(this.middleDigits, parity); } }]); return UPCE; }(_Barcode3.default); function expandToUPCA(middleDigits, numberSystem) { var lastUpcE = parseInt(middleDigits[middleDigits.length - 1]); var expansion = EXPANSIONS[lastUpcE]; var result = ""; var digitIndex = 0; for (var i = 0; i < expansion.length; i++) { var c = expansion[i]; if (c === 'X') { result += middleDigits[digitIndex++]; } else { result += c; } } result = '' + numberSystem + result; return '' + result + (0, _UPC.checksum)(result); } exports.default = UPCE; /***/ }), /***/ "c098": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == 'number' || (type != 'symbol' && reIsUint.test(value))) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; /***/ }), /***/ "c17b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.codabar = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding specification: // http://www.barcodeisland.com/codabar.phtml var codabar = function (_Barcode) { _inherits(codabar, _Barcode); function codabar(data, options) { _classCallCheck(this, codabar); if (data.search(/^[0-9\-\$\:\.\+\/]+$/) === 0) { data = "A" + data + "A"; } var _this = _possibleConstructorReturn(this, (codabar.__proto__ || Object.getPrototypeOf(codabar)).call(this, data.toUpperCase(), options)); _this.text = _this.options.text || _this.text.replace(/[A-D]/g, ''); return _this; } _createClass(codabar, [{ key: "valid", value: function valid() { return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1; } }, { key: "encode", value: function encode() { var result = []; var encodings = this.getEncodings(); for (var i = 0; i < this.data.length; i++) { result.push(encodings[this.data.charAt(i)]); // for all characters except the last, append a narrow-space ("0") if (i !== this.data.length - 1) { result.push("0"); } } return { text: this.text, data: result.join('') }; } }, { key: "getEncodings", value: function getEncodings() { return { "0": "101010011", "1": "101011001", "2": "101001011", "3": "110010101", "4": "101101001", "5": "110101001", "6": "100101011", "7": "100101101", "8": "100110101", "9": "110100101", "-": "101001101", "$": "101100101", ":": "1101011011", "/": "1101101011", ".": "1101101101", "+": "1011011011", "A": "1011001001", "B": "1001001011", "C": "1010010011", "D": "1010011001" }; } }]); return codabar; }(_Barcode3.default); exports.codabar = codabar; /***/ }), /***/ "c1c9": /***/ (function(module, exports, __webpack_require__) { var baseSetToString = __webpack_require__("a454"), shortOut = __webpack_require__("f3c1"); /** * Sets the `toString` method of `func` to return `string`. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var setToString = shortOut(baseSetToString); module.exports = setToString; /***/ }), /***/ "c243": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Standard start end and middle bits var SIDE_BIN = exports.SIDE_BIN = '101'; var MIDDLE_BIN = exports.MIDDLE_BIN = '01010'; var BINARIES = exports.BINARIES = { 'L': [// The L (left) type of encoding '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'G': [// The G type of encoding '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'], 'R': [// The R (right) type of encoding '1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100'], 'O': [// The O (odd) encoding for UPC-E '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'E': [// The E (even) encoding for UPC-E '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'] }; // Define the EAN-2 structure var EAN2_STRUCTURE = exports.EAN2_STRUCTURE = ['LL', 'LG', 'GL', 'GG']; // Define the EAN-5 structure var EAN5_STRUCTURE = exports.EAN5_STRUCTURE = ['GGLLL', 'GLGLL', 'GLLGL', 'GLLLG', 'LGGLL', 'LLGGL', 'LLLGG', 'LGLGL', 'LGLLG', 'LLGLG']; // Define the EAN-13 structure var EAN13_STRUCTURE = exports.EAN13_STRUCTURE = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL']; /***/ }), /***/ "c2b6": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"), cloneDataView = __webpack_require__("5d89"), cloneRegExp = __webpack_require__("6f6c"), cloneSymbol = __webpack_require__("a2db"), cloneTypedArray = __webpack_require__("c8fe"); /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', mapTag = '[object Map]', numberTag = '[object Number]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** * Initializes an object clone based on its `toStringTag`. * * **Note:** This function only supports cloning values with tags of * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. * * @private * @param {Object} object The object to clone. * @param {string} tag The `toStringTag` of the object to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the initialized clone. */ function initCloneByTag(object, tag, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag: return cloneArrayBuffer(object); case boolTag: case dateTag: return new Ctor(+object); case dataViewTag: return cloneDataView(object, isDeep); case float32Tag: case float64Tag: case int8Tag: case int16Tag: case int32Tag: case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: return cloneTypedArray(object, isDeep); case mapTag: return new Ctor; case numberTag: case stringTag: return new Ctor(object); case regexpTag: return cloneRegExp(object); case setTag: return new Ctor; case symbolTag: return cloneSymbol(object); } } module.exports = initCloneByTag; /***/ }), /***/ "c345": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); // Headers whose duplicates are ignored by node // c.f. https://nodejs.org/api/http.html#http_message_headers var ignoreDuplicateOf = [ 'age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent' ]; /** * Parse headers into an object * * ``` * Date: Wed, 27 Aug 2014 08:58:49 GMT * Content-Type: application/json * Connection: keep-alive * Transfer-Encoding: chunked * ``` * * @param {String} headers Headers needing to be parsed * @returns {Object} Headers parsed into an object */ module.exports = function parseHeaders(headers) { var parsed = {}; var key; var val; var i; if (!headers) { return parsed; } utils.forEach(headers.split('\n'), function parser(line) { i = line.indexOf(':'); key = utils.trim(line.substr(0, i)).toLowerCase(); val = utils.trim(line.substr(i + 1)); if (key) { if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { return; } if (key === 'set-cookie') { parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); } else { parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; } } }); return parsed; }; /***/ }), /***/ "c3fc": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var setTag = '[object Set]'; /** * The base implementation of `_.isSet` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. */ function baseIsSet(value) { return isObjectLike(value) && getTag(value) == setTag; } module.exports = baseIsSet; /***/ }), /***/ "c401": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Transform the data for a request or a response * * @param {Object|String} data The data to be transformed * @param {Array} headers The headers for the request or response * @param {Array|Function} fns A single function or Array of functions * @returns {*} The resulting transformed data */ module.exports = function transformData(data, headers, fns) { /*eslint no-param-reassign:0*/ utils.forEach(fns, function transform(fn) { data = fn(data, headers); }); return data; }; /***/ }), /***/ "c532": /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__("1d2b"); /*global toString:true*/ // utils is a library of generic helper functions non-specific to axios 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 undefined * * @param {Object} val The value to test * @returns {boolean} True if the value is undefined, otherwise false */ function isUndefined(val) { return typeof val === 'undefined'; } /** * Determine if a value is a Buffer * * @param {Object} val The value to test * @returns {boolean} True if value is a Buffer, otherwise false */ function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); } /** * Determine if a value is an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is an ArrayBuffer, otherwise false */ function isArrayBuffer(val) { return toString.call(val) === '[object ArrayBuffer]'; } /** * Determine if a value is a FormData * * @param {Object} val The value to test * @returns {boolean} True if value is an FormData, otherwise false */ function isFormData(val) { return (typeof FormData !== 'undefined') && (val instanceof FormData); } /** * Determine if a value is a view on an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false */ function isArrayBufferView(val) { var result; if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { result = ArrayBuffer.isView(val); } else { result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); } return result; } /** * Determine if a value is a String * * @param {Object} val The value to test * @returns {boolean} True if value is a String, otherwise false */ function isString(val) { return typeof val === 'string'; } /** * Determine if a value is a Number * * @param {Object} val The value to test * @returns {boolean} True if value is a Number, otherwise false */ function isNumber(val) { return typeof val === 'number'; } /** * 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 && typeof val === 'object'; } /** * Determine if a value is a plain Object * * @param {Object} val The value to test * @return {boolean} True if value is a plain Object, otherwise false */ function isPlainObject(val) { if (toString.call(val) !== '[object Object]') { return false; } var prototype = Object.getPrototypeOf(val); return prototype === null || prototype === Object.prototype; } /** * 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 File * * @param {Object} val The value to test * @returns {boolean} True if value is a File, otherwise false */ function isFile(val) { return toString.call(val) === '[object File]'; } /** * Determine if a value is a Blob * * @param {Object} val The value to test * @returns {boolean} True if value is a Blob, otherwise false */ function isBlob(val) { return toString.call(val) === '[object Blob]'; } /** * Determine if a value is a Function * * @param {Object} val The value to test * @returns {boolean} True if value is a Function, otherwise false */ function isFunction(val) { return toString.call(val) === '[object Function]'; } /** * Determine if a value is a Stream * * @param {Object} val The value to test * @returns {boolean} True if value is a Stream, otherwise false */ function isStream(val) { return isObject(val) && isFunction(val.pipe); } /** * 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; } /** * Trim excess whitespace off the beginning and end of a string * * @param {String} str The String to trim * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); } /** * Determine if we're running in a standard browser environment * * This allows axios to run in a web worker, and react-native. * Both environments support XMLHttpRequest, but not fully standard globals. * * web workers: * typeof window -> undefined * typeof document -> undefined * * react-native: * navigator.product -> 'ReactNative' * nativescript * navigator.product -> 'NativeScript' or 'NS' */ function isStandardBrowserEnv() { if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) { return false; } return ( typeof window !== 'undefined' && typeof document !== 'undefined' ); } /** * 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 (typeof 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); } } } } /** * Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multiple objects contain the same key the later object in * the arguments list will take precedence. * * Example: * * ```js * var result = merge({foo: 123}, {foo: 456}); * console.log(result.foo); // outputs 456 * ``` * * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function merge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (isPlainObject(result[key]) && isPlainObject(val)) { result[key] = merge(result[key], val); } else if (isPlainObject(val)) { result[key] = merge({}, val); } else if (isArray(val)) { result[key] = val.slice(); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Extends object a by mutably adding to it the properties of object b. * * @param {Object} a The object to be extended * @param {Object} b The object to copy properties from * @param {Object} thisArg The object to bind function to * @return {Object} The resulting value of object a */ function extend(a, b, thisArg) { forEach(b, function assignValue(val, key) { if (thisArg && typeof val === 'function') { a[key] = bind(val, thisArg); } else { a[key] = val; } }); return a; } /** * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) * * @param {string} content with BOM * @return {string} content value without BOM */ function stripBOM(content) { if (content.charCodeAt(0) === 0xFEFF) { content = content.slice(1); } return content; } module.exports = { isArray: isArray, isArrayBuffer: isArrayBuffer, isBuffer: isBuffer, isFormData: isFormData, isArrayBufferView: isArrayBufferView, isString: isString, isNumber: isNumber, isObject: isObject, isPlainObject: isPlainObject, isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, isFunction: isFunction, isStream: isStream, isURLSearchParams: isURLSearchParams, isStandardBrowserEnv: isStandardBrowserEnv, forEach: forEach, merge: merge, extend: extend, trim: trim, stripBOM: stripBOM }; /***/ }), /***/ "c869": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Set = getNative(root, 'Set'); module.exports = Set; /***/ }), /***/ "c87c": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Initializes an array clone. * * @private * @param {Array} array The array to clone. * @returns {Array} Returns the initialized clone. */ function initCloneArray(array) { var length = array.length, result = new array.constructor(length); // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { result.index = array.index; result.input = array.input; } return result; } module.exports = initCloneArray; /***/ }), /***/ "c8af": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = function normalizeHeaderName(headers, normalizedName) { utils.forEach(headers, function processHeader(value, name) { if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { headers[normalizedName] = value; delete headers[name]; } }); }; /***/ }), /***/ "c8ba": /***/ (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; /***/ }), /***/ "c8fe": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `typedArray`. * * @private * @param {Object} typedArray The typed array to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned typed array. */ function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } module.exports = cloneTypedArray; /***/ }), /***/ "ca32": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var defaults = { width: 2, height: 100, format: "auto", displayValue: true, fontOptions: "", font: "monospace", text: undefined, textAlign: "center", textPosition: "bottom", textMargin: 2, fontSize: 20, background: "#ffffff", lineColor: "#000000", margin: 10, marginTop: undefined, marginBottom: undefined, marginLeft: undefined, marginRight: undefined, valid: function valid() {} }; exports.default = defaults; /***/ }), /***/ "cb5a": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } module.exports = assocIndexOf; /***/ }), /***/ "cc45": /***/ (function(module, exports, __webpack_require__) { var baseIsMap = __webpack_require__("1a2d"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsMap = nodeUtil && nodeUtil.isMap; /** * Checks if `value` is classified as a `Map` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * * _.isMap(new Map); * // => true * * _.isMap(new WeakMap); * // => false */ var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; module.exports = isMap; /***/ }), /***/ "cd9d": /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "ce86": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), arrayMap = __webpack_require__("7948"), isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = baseToString; /***/ }), /***/ "cee4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var bind = __webpack_require__("1d2b"); var Axios = __webpack_require__("0a06"); var mergeConfig = __webpack_require__("4a7b"); var defaults = __webpack_require__("2444"); /** * Create an instance of Axios * * @param {Object} defaultConfig The default config for the instance * @return {Axios} A new instance of Axios */ function createInstance(defaultConfig) { var context = new Axios(defaultConfig); var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance utils.extend(instance, Axios.prototype, context); // Copy context to instance utils.extend(instance, context); return instance; } // Create the default instance to be exported var axios = createInstance(defaults); // Expose Axios class to allow class inheritance axios.Axios = Axios; // Factory for creating new instances axios.create = function create(instanceConfig) { return createInstance(mergeConfig(axios.defaults, instanceConfig)); }; // Expose Cancel & CancelToken axios.Cancel = __webpack_require__("7a77"); axios.CancelToken = __webpack_require__("8df4"); axios.isCancel = __webpack_require__("2e67"); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; axios.spread = __webpack_require__("0df6"); module.exports = axios; // Allow use of default import syntax in TypeScript module.exports.default = axios; /***/ }), /***/ "d02c": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"), MapCache = __webpack_require__("7b83"); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet; /***/ }), /***/ "d327": /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "d370": /***/ (function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__("253c"), isObjectLike = __webpack_require__("1310"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }), /***/ "d7ee": /***/ (function(module, exports, __webpack_require__) { var baseIsSet = __webpack_require__("c3fc"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsSet = nodeUtil && nodeUtil.isSet; /** * Checks if `value` is classified as a `Set` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * * _.isSet(new Set); * // => true * * _.isSet(new WeakSet); * // => false */ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; module.exports = isSet; /***/ }), /***/ "d925": /***/ (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 */ module.exports = 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); }; /***/ }), /***/ "da03": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Used to detect overreaching core-js shims. */ var coreJsData = root['__core-js_shared__']; module.exports = coreJsData; /***/ }), /***/ "da3d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE128C = exports.CODE128B = exports.CODE128A = exports.CODE128 = undefined; var _CODE128_AUTO = __webpack_require__("6f24"); var _CODE128_AUTO2 = _interopRequireDefault(_CODE128_AUTO); var _CODE128A = __webpack_require__("e8c9"); var _CODE128A2 = _interopRequireDefault(_CODE128A); var _CODE128B = __webpack_require__("70b0"); var _CODE128B2 = _interopRequireDefault(_CODE128B); var _CODE128C = __webpack_require__("ed3f"); var _CODE128C2 = _interopRequireDefault(_CODE128C); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.CODE128 = _CODE128_AUTO2.default; exports.CODE128A = _CODE128A2.default; exports.CODE128B = _CODE128B2.default; exports.CODE128C = _CODE128C2.default; /***/ }), /***/ "dc57": /***/ (function(module, exports) { /** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource; /***/ }), /***/ "dca2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var InvalidInputException = function (_Error) { _inherits(InvalidInputException, _Error); function InvalidInputException(symbology, input) { _classCallCheck(this, InvalidInputException); var _this = _possibleConstructorReturn(this, (InvalidInputException.__proto__ || Object.getPrototypeOf(InvalidInputException)).call(this)); _this.name = "InvalidInputException"; _this.symbology = symbology; _this.input = input; _this.message = '"' + _this.input + '" is not a valid input for ' + _this.symbology; return _this; } return InvalidInputException; }(Error); var InvalidElementException = function (_Error2) { _inherits(InvalidElementException, _Error2); function InvalidElementException() { _classCallCheck(this, InvalidElementException); var _this2 = _possibleConstructorReturn(this, (InvalidElementException.__proto__ || Object.getPrototypeOf(InvalidElementException)).call(this)); _this2.name = "InvalidElementException"; _this2.message = "Not supported type to render on"; return _this2; } return InvalidElementException; }(Error); var NoElementException = function (_Error3) { _inherits(NoElementException, _Error3); function NoElementException() { _classCallCheck(this, NoElementException); var _this3 = _possibleConstructorReturn(this, (NoElementException.__proto__ || Object.getPrototypeOf(NoElementException)).call(this)); _this3.name = "NoElementException"; _this3.message = "No element to render on."; return _this3; } return NoElementException; }(Error); exports.InvalidInputException = InvalidInputException; exports.InvalidElementException = InvalidElementException; exports.NoElementException = NoElementException; /***/ }), /***/ "dcbe": /***/ (function(module, exports, __webpack_require__) { var isArrayLike = __webpack_require__("30c9"), isObjectLike = __webpack_require__("1310"); /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } module.exports = isArrayLikeObject; /***/ }), /***/ "df7c": /***/ (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__("4362"))) /***/ }), /***/ "e031": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), isObject = __webpack_require__("1a8c"); /** * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source * objects into destination objects that are passed thru. * * @private * @param {*} objValue The destination value. * @param {*} srcValue The source value. * @param {string} key The key of the property to merge. * @param {Object} object The parent object of `objValue`. * @param {Object} source The parent object of `srcValue`. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. * @returns {*} Returns the value to assign. */ function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { if (isObject(objValue) && isObject(srcValue)) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, objValue); baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack); stack['delete'](srcValue); } return objValue; } module.exports = customDefaultsMerge; /***/ }), /***/ "e24b": /***/ (function(module, exports, __webpack_require__) { var hashClear = __webpack_require__("49f4"), hashDelete = __webpack_require__("1efc"), hashGet = __webpack_require__("bbc0"), hashHas = __webpack_require__("7a48"), hashSet = __webpack_require__("2524"); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; module.exports = Hash; /***/ }), /***/ "e2c0": /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__("e2e4"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isIndex = __webpack_require__("c098"), isLength = __webpack_require__("b218"), toKey = __webpack_require__("f4d6"); /** * Checks if `path` exists on `object`. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @param {Function} hasFunc The function to check properties. * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { path = castPath(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } module.exports = hasPath; /***/ }), /***/ "e2e4": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isKey = __webpack_require__("f608"), stringToPath = __webpack_require__("18d8"), toString = __webpack_require__("76dd"); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }), /***/ "e380": /***/ (function(module, exports, __webpack_require__) { var MapCache = __webpack_require__("7b83"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; module.exports = memoize; /***/ }), /***/ "e538": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; /** * Creates a clone of `buffer`. * * @private * @param {Buffer} buffer The buffer to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Buffer} Returns the cloned buffer. */ function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } module.exports = cloneBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "e683": /***/ (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 */ module.exports = function combineURLs(baseURL, relativeURL) { return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; }; /***/ }), /***/ "e762": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Barcode = function Barcode(data, options) { _classCallCheck(this, Barcode); this.data = data; this.text = options.text || data; this.options = options; }; exports.default = Barcode; /***/ }), /***/ "e8b2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); exports.checksum = checksum; var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding var UPC = function (_Barcode) { _inherits(UPC, _Barcode); function UPC(data, options) { _classCallCheck(this, UPC); // Add checksum if it does not exist if (data.search(/^[0-9]{11}$/) !== -1) { data += checksum(data); } var _this = _possibleConstructorReturn(this, (UPC.__proto__ || Object.getPrototypeOf(UPC)).call(this, data, options)); _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPC, [{ key: "valid", value: function valid() { return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == checksum(this.data); } }, { key: "encode", value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: "flatEncoding", value: function flatEncoding() { var result = ""; result += "101"; result += (0, _encoder2.default)(this.data.substr(0, 6), "LLLLLL"); result += "01010"; result += (0, _encoder2.default)(this.data.substr(6, 6), "RRRRRR"); result += "101"; return { data: result, text: this.text }; } }, { key: "guardedEncoding", value: function guardedEncoding() { var result = []; // Add the first digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(0, 1), options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101" + (0, _encoder2.default)(this.data[0], "L"), options: { height: this.guardHeight } }); // Add the left side result.push({ data: (0, _encoder2.default)(this.data.substr(1, 5), "LLLLL"), text: this.text.substr(1, 5), options: { fontSize: this.fontSize } }); // Add the middle bits result.push({ data: "01010", options: { height: this.guardHeight } }); // Add the right side result.push({ data: (0, _encoder2.default)(this.data.substr(6, 5), "RRRRR"), text: this.text.substr(6, 5), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: (0, _encoder2.default)(this.data[11], "R") + "101", options: { height: this.guardHeight } }); // Add the last digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(11, 1), options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }]); return UPC; }(_Barcode3.default); // Calulate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit function checksum(number) { var result = 0; var i; for (i = 1; i < 11; i += 2) { result += parseInt(number[i]); } for (i = 0; i < 11; i += 2) { result += parseInt(number[i]) * 3; } return (10 - result % 10) % 10; } exports.default = UPC; /***/ }), /***/ "e8c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128A = function (_CODE) { _inherits(CODE128A, _CODE); function CODE128A(string, options) { _classCallCheck(this, CODE128A); return _possibleConstructorReturn(this, (CODE128A.__proto__ || Object.getPrototypeOf(CODE128A)).call(this, _constants.A_START_CHAR + string, options)); } _createClass(CODE128A, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.A_CHARS + '+$').test(this.data); } }]); return CODE128A; }(_CODE3.default); exports.default = CODE128A; /***/ }), /***/ "eac5": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } module.exports = isPrototype; /***/ }), /***/ "ec69": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeys = __webpack_require__("03dd"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = keys; /***/ }), /***/ "ec8c": /***/ (function(module, exports) { /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } module.exports = nativeKeysIn; /***/ }), /***/ "ed27": /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"hi-eap\",\"version\":\"1.2.87\",\"description\":\"A utils Library for hi-eap. Smart Client Platform\",\"main\":\"eap.umd.min.js\",\"homepage\":\"http://hieap.cn\",\"scripts\":{\"build:eap\":\"cross-env NODE_LIB=eap vue-cli-service build --target lib --name eap --dest hi-eap ./src/eap/index.js\"},\"dependencies\":{},\"devDependencies\":{},\"eslintIgnore\":[\"**/*.md\"]}"); /***/ }), /***/ "ed3f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128C = function (_CODE) { _inherits(CODE128C, _CODE); function CODE128C(string, options) { _classCallCheck(this, CODE128C); return _possibleConstructorReturn(this, (CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options)); } _createClass(CODE128C, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data); } }]); return CODE128C; }(_CODE3.default); exports.default = CODE128C; /***/ }), /***/ "efb6": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } module.exports = stackClear; /***/ }), /***/ "f08e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _SET_BY_CODE; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // constants for internal usage var SET_A = exports.SET_A = 0; var SET_B = exports.SET_B = 1; var SET_C = exports.SET_C = 2; // Special characters var SHIFT = exports.SHIFT = 98; var START_A = exports.START_A = 103; var START_B = exports.START_B = 104; var START_C = exports.START_C = 105; var MODULO = exports.MODULO = 103; var STOP = exports.STOP = 106; var FNC1 = exports.FNC1 = 207; // Get set by start code var SET_BY_CODE = exports.SET_BY_CODE = (_SET_BY_CODE = {}, _defineProperty(_SET_BY_CODE, START_A, SET_A), _defineProperty(_SET_BY_CODE, START_B, SET_B), _defineProperty(_SET_BY_CODE, START_C, SET_C), _SET_BY_CODE); // Get next set by code var SWAP = exports.SWAP = { 101: SET_A, 100: SET_B, 99: SET_C }; var A_START_CHAR = exports.A_START_CHAR = String.fromCharCode(208); // START_A + 105 var B_START_CHAR = exports.B_START_CHAR = String.fromCharCode(209); // START_B + 105 var C_START_CHAR = exports.C_START_CHAR = String.fromCharCode(210); // START_C + 105 // 128A (Code Set A) // ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4 var A_CHARS = exports.A_CHARS = "[\x00-\x5F\xC8-\xCF]"; // 128B (Code Set B) // ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4 var B_CHARS = exports.B_CHARS = "[\x20-\x7F\xC8-\xCF]"; // 128C (Code Set C) // 00–99 (encodes two digits with a single code point) and FNC1 var C_CHARS = exports.C_CHARS = "(\xCF*[0-9]{2}\xCF*)"; // CODE128 includes 107 symbols: // 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one) // Each symbol consist of three black bars (1) and three white spaces (0). var BARS = exports.BARS = [11011001100, 11001101100, 11001100110, 10010011000, 10010001100, 10001001100, 10011001000, 10011000100, 10001100100, 11001001000, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011000, 11011000110, 11000110110, 10100011000, 10001011000, 10001000110, 10110001000, 10001101000, 10001100010, 11010001000, 11000101000, 11000100010, 10110111000, 10110001110, 10001101110, 10111011000, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101000, 11011100010, 11011101110, 11101011000, 11101000110, 11100010110, 11101101000, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 10100110000, 10100001100, 10010110000, 10010000110, 10000101100, 10000100110, 10110010000, 10110000100, 10011010000, 10011000010, 10000110100, 10000110010, 11000010010, 11001010000, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111000, 10100011110, 10001011110, 10111101000, 10111100010, 11110101000, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 11010010000, 11010011100, 1100011101011]; /***/ }), /***/ "f3c1": /***/ (function(module, exports) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ var HOT_COUNT = 800, HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeNow = Date.now; /** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. */ function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(undefined, arguments); }; } module.exports = shortOut; /***/ }), /***/ "f4d6": /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }), /***/ "f608": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }), /***/ "f6b4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); 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) { utils.forEach(this.handlers, function forEachHandler(h) { if (h !== null) { fn(h); } }); }; module.exports = InterceptorManager; /***/ }), /***/ "f8af": /***/ (function(module, exports, __webpack_require__) { var Uint8Array = __webpack_require__("2474"); /** * Creates a clone of `arrayBuffer`. * * @private * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array(result).set(new Uint8Array(arrayBuffer)); return result; } module.exports = cloneArrayBuffer; /***/ }), /***/ "f909": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), assignMergeValue = __webpack_require__("b760"), baseFor = __webpack_require__("72af"), baseMergeDeep = __webpack_require__("4f50"), isObject = __webpack_require__("1a8c"), keysIn = __webpack_require__("9934"), safeGet = __webpack_require__("8adb"); /** * The base implementation of `_.merge` without support for multiple sources. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {number} srcIndex The index of `source`. * @param {Function} [customizer] The function to customize merged values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } baseFor(source, function(srcValue, key) { if (isObject(srcValue)) { stack || (stack = new Stack); baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); } else { var newValue = customizer ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack) : undefined; if (newValue === undefined) { newValue = srcValue; } assignMergeValue(object, key, newValue); } }, keysIn); } module.exports = baseMerge; /***/ }), /***/ "fa21": /***/ (function(module, exports, __webpack_require__) { var baseCreate = __webpack_require__("7530"), getPrototype = __webpack_require__("2dcb"), isPrototype = __webpack_require__("eac5"); /** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { return (typeof object.constructor == 'function' && !isPrototype(object)) ? baseCreate(getPrototype(object)) : {}; } module.exports = initCloneObject; /***/ }), /***/ "fb15": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "user", function() { return /* reexport */ user; }); __webpack_require__.d(__webpack_exports__, "ajax", function() { return /* reexport */ ajax; }); __webpack_require__.d(__webpack_exports__, "request", function() { return /* reexport */ eap_request; }); __webpack_require__.d(__webpack_exports__, "mergeConfig", function() { return /* reexport */ mergeConfig; }); __webpack_require__.d(__webpack_exports__, "lang", function() { return /* reexport */ eap_lang; }); __webpack_require__.d(__webpack_exports__, "utils", function() { return /* reexport */ eap_utils; }); __webpack_require__.d(__webpack_exports__, "page", function() { return /* reexport */ page; }); __webpack_require__.d(__webpack_exports__, "dataHelper", function() { return /* reexport */ eap_dataHelper; }); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js // This file is imported into lib/wc client bundles. if (typeof window !== 'undefined') { var currentScript = window.document.currentScript if (true) { var getCurrentScript = __webpack_require__("8875") currentScript = getCurrentScript() // for backward compatibility, because previously we directly included the polyfill if (!('currentScript' in document)) { Object.defineProperty(document, 'currentScript', { get: getCurrentScript }) } } var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) if (src) { __webpack_require__.p = src[1] // eslint-disable-line } } // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = (null); // EXTERNAL MODULE: ./node_modules/axios/index.js var axios = __webpack_require__("bc3a"); var axios_default = /*#__PURE__*/__webpack_require__.n(axios); // EXTERNAL MODULE: ./node_modules/js-cookie/dist/js.cookie.js var js_cookie = __webpack_require__("852e"); var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie); // CONCATENATED MODULE: ./src/utils/token.js /* harmony default export */ var utils_token = ("d23290d0-f840-46d4-8401-ae815cc05c9a"); // CONCATENATED MODULE: ./src/eap/user/auth.js const TokenKey = 'EAP-Token' function getToken() { let token = js_cookie_default.a.get(TokenKey) let env = Object({"NODE_ENV":"production","VUE_APP_BASE_API":"http://192.168.4.106:7777","BASE_URL":"/"}); if (!token && env.NODE_ENV == "development") { return utils_token; } return token; } function setToken(token) { return js_cookie_default.a.set(TokenKey, token) } function removeToken() { return js_cookie_default.a.remove(TokenKey) } /* harmony default export */ var auth = ({ getToken, setToken, removeToken, }); // EXTERNAL MODULE: external "ELEMENT" var external_ELEMENT_ = __webpack_require__("5f72"); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/types.js /* harmony default export */ var types = ({ "string" :"dbString", "int" :"dbInt", "float" :"dbFloat", "double" :"dbDouble", "text" :"dbText ", "boolean" :"dbBoolean ", "datetime" :"dbDatetime ", "timestamp" :"dbTimestamp " }); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/keys.js /* harmony default export */ var keys = ({ "pageIndex": "pageNum", "pageSize": "pageSize", "body": "__body", "funcpath":"__funcpath", "returnTotal":"__returnCount", "zcQuery":"__zcQuery", "slaveEntities":"__slaveEntities", "modelFilePath":"modelFilePath", "slaveExport":"__slaveExport", "sheetStyle":"__sheetStyle", "sheetDatas":"__sheetDatas", "viewItemId":"viewItemId" }); // EXTERNAL MODULE: ./node_modules/lodash/has.js var has = __webpack_require__("3852"); var has_default = /*#__PURE__*/__webpack_require__.n(has); // EXTERNAL MODULE: ./node_modules/lodash/isDate.js var isDate = __webpack_require__("6220"); var isDate_default = /*#__PURE__*/__webpack_require__.n(isDate); // CONCATENATED MODULE: ./src/hiSetting.js const hiSetting = { //项目名 projectName: 'eap5csxm/admin', pName: "eap5csxm", pUser: "admin", //接口返回消息弹窗模式,默认为消息提示(自动消失),msgBox为消息弹窗(需手动确定关闭) messageType: "msgBox", //请求对象 // request: eap.request,//eap对象还没有加载 // ajax: eap.ajax,//eap对象还没有加载 //部署目录 deployDir: "", //服务器域名 url: "http://192.168.4.105:7777", //编辑器脚本路径 editorResDir: "", //服务名称 serverName: "", //默认服务url serverUrl: "", //用户信息 userInfo: "/sys/user/detail", //登录页url loginUrl: "/login.html", //小登录窗口登录页url miniLoginUrl: "/login.html", //首页url mainPageUrl: "/main.html", //大数据保存webscoketUrl saveWsUrl:"/ws/progress/{id}", //数据保存url saveUrl: "/data/save", //'/data/save', //数据查询url queryUrl: "/data/query", //'/data/query', //excel导出心跳 exportExcelHeartbeatUrl: "/export/dataexcel/status", //导入URL excelImportUrl: "/import/exceldata", //ws excel导入数据 wsExcelImportUrl: "/ws/import/exceldata", //导出URL exportUrl: "/export/dataexcel", exportPathUrl: "/export/dataexcel/path", exportNewUrl: "/export/dataexcelnew", //页面初始化接口 pageInitUrl: "/data/page/permit", //数据策略url policyUrl: "/data/policy", //下推目标取url flowUrlByPush:"/sys/auth/query-flowux", //附件上传url upload: "/file/upload", //附件下载url download: "/file/download", //附件查看url review: "/file/static/preview", //附件上传url publicupload: "/file/public/upload", //附件下载url publicdownload: "/file/public/download", //附件查看url publicreview: "/file/public/preview", //流程信息url getFlowInfo: "/flow/open", getApprovalInfo: "/flow/getApprovalInfo", processFlow: "/flow/processFlow", umpireOrder: "/flow/umpireOrder", queryTask: "/flow/queryTask", withdrawtask: "/flow/withdrawtask", taskDiagram: "/flow/taskDiagram", ganttChart: "/flow/ganttChart", openOrdernumber: "/flow/openOrdernumber", //默认查询操作符 queryOperate: 'like', //数据返回超时时间 requestTimeout: 140 * 1000, //是否单点登录 isSingleLogin: false, //单点登录页 singleLoginUrl: "", //单点登出页 singleLogoutUrl: "", } /* harmony default export */ var src_hiSetting = (hiSetting); // CONCATENATED MODULE: ./src/base/utils/src/date.js /** * showdoc * @catalog API/工具/Date * @title 日期基础类 * @className ClientDate * @modifier static * @method DateFunc * @demo */ const DATE = { timeSchemeKey: { "today": "today", "yesterday": "yesterday", "week": "week", "month": "month", "premonth": "premonth", "quarter": "quarter", "year": "year", "days7": "days7", "days28": "days28", "days84": "days84", "halfyear": "halfyear", "oneyear": "oneyear" }, /** * showdoc * @catalog API/工具/Date * @title 日期格式化 * @description 将条件转成字符结果 * @method format * @param date 必选 Date|String 需要格式化日期 * @param format 必选 String 格式化类型 * @return Date * @number 60 */ format: function (date, format) { if (!date) return ""; if (typeof date == "string") date = DATE.strToDate(date); format = format.replace(/HH/, "hh"); var o = { "M+": date.getMonth() + 1, // month "d+": date.getDate(), // day "D+": date.getDate(), // day "h+": date.getHours(), // hour "H+": date.getHours(), // hour "m+": date.getMinutes(), // minute "s+": date.getSeconds(), // second "q+": Math.floor((date.getMonth() + 3) / 3), // quarter "S": date.getMilliseconds() // millisecond } if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); if (/(Y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(format)) format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); return format; }, /** * showdoc * @catalog API/工具/Date * @title 获取服务端时间 * @description 服务端当前时间 * @method getServerTimeNow * @return Date * @number 60 */ getServerTimeNow() { let serverTimeNow = ""; window.eap.ajax({ url: window.HIVUI_SETTING.getNowTimeUrl, method: "GET",//可不传,默认post async: false,//可不传,默认true success: function (response) { serverTimeNow = response.dataPack; }, fail: function () { } }); return serverTimeNow; }, /** * showdoc * @catalog API/工具/Date * @title 毫秒差间隔 * @description dt1与dt2日期之间毫秒差间隔 * @method milliSecondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ milliSecondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); return Math.abs(dt1.getTime() - dt2.getTime()); }, /** * showdoc * @catalog API/工具/Date * @title 秒差间隔 * @description dt1与dt2日期之间秒差间隔 * @method secondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ secondsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getTime() - dt2.getTime()) / 1000); }, /** * showdoc * @catalog API/工具/Date * @title 分钟差间隔 * @description dt1与dt2日期之间分钟差间隔 * @method minutesBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 分差 minutesBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 60))); }, /** * showdoc * @catalog API/工具/Date * @title 时差间隔 * @description dt1与dt2日期之间时差间隔 * @method hoursBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 小时差 hoursBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600))); }, /** * showdoc * @catalog API/工具/Date * @title 天差间隔 * @description dt1与dt2日期之间天差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @param isAbs 选填 是否 返回绝对值 * @return Int * @number 60 */ daysBetween: function (dt1, dt2, isAbs) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; dt1 = this.strFormatDate(this.format(dt1, "yyyy-MM-dd")); dt2 = this.strFormatDate(this.format(dt2, "yyyy-MM-dd")); if (isAbs) return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24))); else return Math.floor((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24)); }, /** * showdoc * @catalog API/工具/Date * @title 月差间隔 * @description dt1与dt2日期之间月差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ monthsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getFullYear() - dt2.getFullYear()) * 12) + Math.abs(dt1.getMonth() - dt2.getMonth()); }, /** * showdoc * @catalog API/工具/Date * @title 年差间隔 * @description dt1与dt2日期之间年差间隔 * @method yearsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ yearsBetween: function (dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs(dt1.getFullYear() - dt2.getFullYear()); }, /** * showdoc * @catalog API/工具/Date * @title 获取中文星期 * @description 获取中文星期 * @method getWeekCn * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeekCn: function (dt) { var dayNames = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); if (typeof dt == "string") dt = DATE.strToDate(dt); return dayNames[dt.getDay()]; }, /** * showdoc * @catalog API/工具/Date * @title 获取数字星期 * @description 获取数字星期 * @url getWeek(dt) * @method getWeek(dt) * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeek: function (dt) { if (typeof dt == "string") dt = DATE.strToDate(dt); return dt.getDay(); }, /** * showdoc * @catalog API/工具/Date * @title 是否时间日期 * @description 是否时间日期 * @method isDateTime * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDateTime: function (dateString) { if (dateString.trim() == "") return false; // 年月日时分秒正则表达式 var r = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/); var r1 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}).(\d{1,6})$/); var r2 = dateString .match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2})$/); if (r == null && r1 == null && r2 == null) { return false; } r = r || r1 || r2; if (r.length == 6) {// 时间格式为:2018-04-11 17:31 var d1 = new Date(r[1], r[2] - 1, r[3], r[4], r[5]); let num = (d1.getFullYear() == r[1] && (d1.getMonth() + 1) == r[2] && d1.getDate() == r[3] && d1.getHours() == r[4] && d1 .getMinutes() == r[5]); if (num == 0) { return false; } else return true; } var d = new Date(r[1], r[2] - 1, r[3], r[4], r[5], r[6]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[2] && d.getDate() == r[3] && d.getHours() == r[4] && d.getMinutes() == r[5] && d.getSeconds() == r[6]); if (num == 0) { return false; } return (num != 0); }, /** * showdoc * @catalog API/工具/Date * @title 是否日期类型 * @description 是否日期类型 * @method isDate * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDate: function (dateString) { if (dateString == "") return true; // 年月日正则表达式 var r = dateString.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); if (r == null) { return false; } var d = new Date(r[1], r[3] - 1, r[4]); let num = (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[3] && d .getDate() == r[4]); if (num == 0) { return false; } return (num != 0); }, dateof: function (dt, type) { let result; if (!dt) return ""; if (typeof dt == "string") dt = DATE.strToDate(dt); switch (type) { case "y": result = dt.getFullYear(); break; case "m": result = dt.getMonth() + 1; break; case "min": result = dt.getMinutes(); break; case "time": result = DATE.format("yyyy-MM-dd hh:mm:ss"); break; case "date": result = DATE.format('yyyy-MM-dd'); break; case "weekCn": result = dt.week(); break; case "week": result = dt.getDay(); break; case "weekInYear": var first = new Date(dt.getFullYear(), 0, 1); var n = parseInt("1065432".charAt(first.getDay())); n = dt.getTime() - first.getTime() - n * 24 * 60 * 60 * 1000; n = Math.ceil(n / (7 * 24 * 60 * 60 * 1000)); result = first.getDay() != 1 ? (n + 1) : n; break; default: result = ""; } return result; }, /** * showdoc * @catalog API/工具/Date * @title 字符转换指定日期类型 * @description 字符转换指定日期类型 * @method strFormatDate * @param strDate 必选 String 日期时间 * @param strFormat 必选 String 格式化类型 * @return Date * @number 60 */ strFormatDate: function (strDate, strFormat) { if (strDate == "" || strDate == null) return ""; let d = DATE.strToDate(strDate); if (!strFormat) return d; return d.format(strFormat); }, /** * showdoc * @catalog API/工具/Date * @title 字符转换日期类型 * @description 字符转换日期类型 * @method strToDate * @param dataStr 必选 String 日期时间 * @return Date * @number 60 */ strToDate: function (dataStr) { if (!dataStr) return ""; if (dataStr && dataStr.constructor === Date) { // 2010.08.02 // 已经是时间类型,就不过滤。 return dataStr; } if (typeof dataStr == "string") { if (dataStr.indexOf('.') > -1) // 2010.07.13 08335 cai dataStr = dataStr.split('.')[0]; dataStr = dataStr.replace(/-/g, "/"); } // 只有时间字符串 01521 if ((dataStr.indexOf("-") == -1 && dataStr.indexOf("/") == -1) && dataStr.indexOf(".") == -1 && dataStr.indexOf(":") != -1) dataStr = DATE.dateOf(new Date()) + " " + dataStr; var arr = dataStr.split(/[- :]/); var arr1 = dataStr.split(/[/ :]/) if (dataStr != "" && (arr.length == 1 && arr1.length == 1)) { // 当:dataStr:1,返回:2010-01-01 // 00:00:00 console.log(dataStr + " Invalid Date") return ""; } return new Date(Date.parse(dataStr)); } , /** * showdoc * @catalog API/工具/Date * @title 获得季度的第一天 * @description 获得季度的第一天 * @method getQuarterStartDay * @param dataStr 必选 Date 日期时间 * @return Date * @number 60 */ getQuarterStartDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 0, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 3, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 6, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 9, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本季度的结束日期 * @description 获得本季度的结束日期 * @method getQuarterEndDate * @return Date * @number 60 */ getQuarterEndDate: function () { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 2, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 6, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 8, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 11, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的开始日期 * @description 获得本年度的开始日期 * @method getYearStartDate * @return Date * @number 60 */ getYearStartDate: function () { var now = new Date(); var yearFirstDay = new Date(now.getFullYear(), 0, 1); return this.format(yearFirstDay, "yyyy-MM-dd"); //return yearFirstDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的结束日期 * @description 获得本年度的结束日期 * @method getYearEndDate * @return Date * @number 60 */ getYearEndDate: function () { var now = new Date(); var yearLastDay = new Date(now.getFullYear(), 11, 31); return this.format(yearLastDay, "yyyy-MM-dd"); //return yearLastDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得某月的天数 * @description 获得某月的天数 * @method getMonthDays * @param myMonth,myYear 必选 int 月份 * @param myMonth,myYear 必选 int 年份 * @return Int * @number 60 */ getMonthDays: function (myMonth, myYear) { if (myYear == undefined) { var now = new Date(); myYear = now.getFullYear(); } myMonth--; var d = new Date(myYear, myMonth, 1); d.setDate(d.getDate() + 32 - d.getDate()); return (32 - d.getDate()) }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的开始日期 * @description 获得本周的开始日期 * @method getWeekStartDate * @return Date * @number 60 */ getWeekStartDate: function () { var now = new Date(); var weekStartDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() - now.getDay()); return this.format(weekStartDate, "yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的结束日期 * @description 获得本周的结束日期 * @method getWeekEndDate * @return Date * @number 60 */ getWeekEndDate: function () { var now = new Date(); var weekEndDate = new Date(now.getFullYear(), now.getMonth(), now .getDate() + (6 - now.getDay())); return this.format(weekEndDate, "yyyy-MM-dd"); //return weekEndDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的开始日期 * @description 获得本月的开始日期 * @method getMonthStartDate * @param dateVal 必选 Date|String 日期 * @return Date * @number 60 */ getMonthStartDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); var monthStartDate = new Date(now.getFullYear(), now.getMonth(), 1); return this.format(monthStartDate, "yyyy-MM-dd"); //monthStartDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的结束日期 * @description 获得本月的结束日期 * @method getMonthEndDate * @return Date * @number 60 */ getMonthEndDate: function (dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); let year = now.getFullYear(); let month = now.getMonth(); var tempDate = new Date(new Date(year, month + 1, 1).getTime() - 1000 * 60 * 60 * 24) return this.format(tempDate, "yyyy-MM-dd"); //return tempDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获当前时间 * @description 获当前时间 * @method now * @param format 可选 String 格式化 * @return Date * @number 60 */ now: function () { let format = "yyyy-MM-dd hh:mm:ss"; return this.format(new Date(), format); }, currentNow: function () { return new Date(); }, /** * showdoc * @catalog API/工具/Date * @title 获时间方案 * @description 获时间方案 * @method TimeScheme * @param name 必选 String 方案名称 * @return Date * @number 60 */ TimeScheme: function (name,split) { split = split ||"到"; var startTime = ` 00:00:00${split}`, endTime = " 23:59:59"; switch (name) { case "today": return this.format(this.strToDate(this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "yesterday": return this .format(this.dateAdd("d", -1, this.now()), "yyyy-MM-dd") + startTime + this.format(this.dateAdd("d", -1, this .now()), "yyyy-MM-dd") + endTime; case "week": return this.getWeekStartDate() + startTime + this.getWeekEndDate() + endTime; case "month": return this.getMonthStartDate() + startTime + this.getMonthEndDate() + endTime; case "quarter": return this.getQuarterStartDate() + startTime + this.getQuarterEndDate() + endTime; case "year": return this.getYearStartDate() + startTime + this.getYearEndDate() + endTime; case "days7": return this.format(this.dateAdd("d", -7, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days28": return this.format(this.dateAdd("d", -28, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days84": return this.format(this.dateAdd("d", -84, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "halfyear": return this.format(this.dateAdd("d", -180, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "oneyear": return this.format(this.dateAdd("d", -365, this.now()) , "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; } }, daysInMonth: function (year, month) { if (month == 1) { if (year % 4 == 0 && year % 100 != 0) return 29; else return 28; } else if ((month <= 6 && month % 2 == 0) || (month = true && month % 2 == 1)) return 31; else return 30; }, /** * showdoc * @catalog API/工具/Date * @title 加减日期 * @description 在日期中添加或者减去指定的时间间隔天数 * @method dateAdd * @param datepart 必选 String 间隔类型:y:年,q:季度,m:月,d:天,h:小时,mi:分,s:秒 * @param number 必选 Int 间隔数,正数表示加,负数表示减 * @param dtDate 必选 Date * @return Date * @number 60 */ dateAdd: function (datepart, number, dtDate) { if (typeof dtDate == "string") dtDate = DATE.strToDate(dtDate); var date = new Date(dtDate); datepart = (datepart || 'd').toLowerCase(); let diff = parseInt(number); let tempdate; switch (datepart) { case "y": // 年 tempdate = date.setYear(date.getFullYear() + diff) break; case "q": // 季度 tempdate = date.setMonth(date.getMonth() + (diff * 3)) break; case "m": // 月 var sYear = date.getFullYear(); var sMonth = date.getMonth(); var nextY = sYear; var nextM = sMonth; //如果当前月+要加上的月>11 这里之所以用11是因为 js的月份从0开始 if ((sMonth + diff) > 11) { nextY = sYear + 1; nextM = parseInt(sMonth + diff) - 12; } else { nextM = date.getMonth() + diff } var daysInNextMonth = this.daysInMonth(nextY, nextM); var day = date.getDate(); if (day > daysInNextMonth) { day = daysInNextMonth; } //eDate = new Date(nextY, nextM, day); tempdate = new Date(nextY, nextM, day); break; case "d": // 天 tempdate = date.setDate(date.getDate() + diff); break; case "h": // 时 tempdate = date.setHours(date.getHours() + diff); break; case "mi": // 分 tempdate = date.setMinutes(date.getMinutes() + diff); break; case "s": // 秒 tempdate = date.setSeconds(date.getSeconds() + diff) break; default: tempdate = date.setDate(date.getDate() + diff); break; } return new Date(tempdate); } } /* harmony default export */ var date = (DATE); // CONCATENATED MODULE: ./src/base/utils/src/number.js /** * showdoc * @catalog API/工具/Number * @title 数值基础类 * @className NumberFunc * @modifier static * @method NumberFunc * @demo */ const NUM = { /** * showdoc * @catalog API/工具/Number * @title 除法函数,用来得到精确的除法结果 * @description 除法函数,用来得到精确的除法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 被除数 * @param arg2 必选 Number 除数 * @return float * @number 60 */ accDiv : function(arg1, arg2) { var t1 = 0, t2 = 0, r1, r2; try { t1 = arg1.toString().split(".")[1].length } catch (e) { t1 = 0; } try { t2 = arg2.toString().split(".")[1].length } catch (e) { t2 = 0; } r1 = Number(arg1.toString().replace(".", "")) r2 = Number(arg2.toString().replace(".", "")) return (r1 / r2) * Math.pow(10, t2 - t1); }, /** * showdoc * @catalog API/工具/Number * @title 乘法函数,用来得到精确的乘法结果 * @description 乘法函数,用来得到精确的乘法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 乘数 * @param arg2 必选 Number 乘数 * @return float * @number 60 */ accMul : function(arg1, arg2) { var m = 0, s1 = arg1.toString(), s2 = arg2.toString(); try { m += s1.split(".")[1].length } catch (e) { m = 0; } try { m += s2.split(".")[1].length } catch (e) { m += 0; } return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m) }, /** * showdoc * @catalog API/工具/Number * @title 加法函数,用来得到精确的加法结果 * @description 加法函数,用来得到精确的加法结果 * @url accAdd(arg1,arg2) * @method accAdd * @param arg1 必选 Number 加数 * @param arg2 必选 Number 加数 * @return float * @number 60 */ accAdd : function(arg1, arg2) { var r1, r2, m; try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 } try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 } m = Math.pow(10, Math.max(r1, r2)) return (NUM.accMul(arg1, m) + NUM.accMul(arg2, m)) / m }, toFixed(number,length) { var carry = 0; //存放进位标志 var num,multiple; //num为原浮点数放大multiple倍后的数,multiple为10的length次方 var str = number + ''; //将调用该方法的数字转为字符串 var dot = str.indexOf("."); //找到小数点的位置 if(str.substr(dot+length+1,1)>=5) carry=1; //找到要进行舍入的数的位置,手动判断是否大于等于5,满足条件进位标志置为1 multiple = Math.pow(10,length); //设置浮点数要扩大的倍数 num = Math.floor(number * multiple) + carry; //去掉舍入位后的所有数,然后加上我们的手动进位数 var result = num/multiple + ''; //将进位后的整数再缩小为原浮点数 /* * 处理进位后无小数 */ dot = result.indexOf("."); if(dot < 0){ result += '.'; dot = result.indexOf("."); } /* * 处理多次进位 */ var len = result.length - (dot+1); if(len < length){ for(var i = 0; i < length - len; i++){ result += 0; } } return result; }, /** * showdoc * @catalog API/工具/Number * @title 中文数字格式化 * @description 中文数字格式化 * @url formatCn(n) * @method formatCn * @param n 必选 Number 数字 * @return string * @number 60 */ formatCn(n) { let fraction = ['角', '分']; let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]; let head = n < 0 ? '欠' : ''; n = Math.abs(n); let s = ''; for (let i = 0; i < fraction.length; i++) { s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); } s = s || '整'; n = Math.floor(n); for (let i = 0; i < unit[0].length && n > 0; i++) { let p = ''; for (let j = 0; j < unit[1].length && n > 0; j++) { p = digit[n % 10] + unit[1][j] + p; n = Math.floor(n / 10); } s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s; } return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); }, /** * showdoc * @catalog API/工具/Number * @title 数值格式化 * @description 数值格式化 * @url formatString(v,formatstring) * @method formatString * @param v 必选 Number 数字 * @param strign 必选 string 格式化 * @return string * @number 60 */ format: function (v, formatString) { if (!formatString) { formatString = "000,0.00"; //return v; } if(formatString.indexOf("¥")>-1) { formatString = "¥000,0.00"; } if (isFinite(v)) { v = parseFloat(v); } if (formatString.indexOf('%') > -1) { v = v * 100; } v = !isNaN(v) ? v : NaN; if (isNaN(v)) { return ''; } let formatCleanRe = /[^\d\.]/g; let comma = ",", dec = '.', neg = v < 0, hasComma, psplit, fnum, cnum, parr, j, m, n, i; v = Math.abs(v); // if (formatString.substr(formatString.length - 2) == '/i') { // I18NFormatCleanRe = new RegExp('[^\\d\\' // + UtilFormat.decimalSeparator + ']', 'g'); // formatString = formatString.substr(0, formatString.length - 2); // hasComma = formatString.indexOf(comma) != -1; // psplit = formatString.replace(I18NFormatCleanRe, '').split(dec); // } else hasComma = formatString.indexOf(',') != -1; psplit = formatString.replace(formatCleanRe, '').split('.'); if (psplit.length > 2) { alert("对比格式无效") // alert("瀵规瘮璧锋棤鏁堟牸寮忥紒"); // </debug> } else if (psplit.length > 1) { let precision = psplit[1].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(precision); } else { let precision = psplit[0].length || 0; let pow = Math.pow(10, precision); v = Number((Math.round(v * pow) / pow)).toFixed(0); } fnum = v.toString(); psplit = fnum.split('.'); if (hasComma) { cnum = psplit[0]; parr = []; j = cnum.length; m = Math.floor(j / 3); n = cnum.length % 3 || 3; for (i = 0; i < j; i += n) { if (i !== 0) { n = 3; } parr[parr.length] = cnum.substr(i, n); m -= 1; } fnum = parr.join(comma); if (psplit[1]) { fnum += dec + psplit[1]; } } else { if (psplit[1]) { fnum = psplit[0] + dec + psplit[1]; } } if (neg) { neg = fnum.replace(/[^1-9]/g, '') !== ''; } return (neg ? '-' : '') + formatString.replace(/[\d,?\.?]+/, fnum); } } /* harmony default export */ var number = (NUM); // EXTERNAL MODULE: ./node_modules/js-md5/src/md5.js var md5 = __webpack_require__("8237"); var md5_default = /*#__PURE__*/__webpack_require__.n(md5); // CONCATENATED MODULE: ./src/base/utils/src/pyconst.js const pyconst_pinyin = { 'a': '\u554a\u963f\u9515', 'ai': '\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u7839\u953f\u972d', 'an': '\u978d\u6c28\u5b89\u4ffa\u6309\u6697\u5cb8\u80fa\u6848\u8c19\u57ef\u63de\u72b4\u5eb5\u6849\u94f5\u9e4c\u9878\u9eef', 'ang': '\u80ae\u6602\u76ce', 'ao': '\u51f9\u6556\u71ac\u7ff1\u8884\u50b2\u5965\u61ca\u6fb3\u5773\u62d7\u55f7\u5662\u5c99\u5ed2\u9068\u5aaa\u9a9c\u8071\u87af\u93ca\u9ccc\u93d6', 'ba': '\u82ad\u634c\u6252\u53ed\u5427\u7b06\u516b\u75a4\u5df4\u62d4\u8dcb\u9776\u628a\u8019\u575d\u9738\u7f62\u7238\u8307\u83dd\u8406\u636d\u5c9c\u705e\u6777\u94af\u7c91\u9c85\u9b43', 'bai': '\u767d\u67cf\u767e\u6446\u4f70\u8d25\u62dc\u7a17\u859c\u63b0\u97b4', 'ban': '\u6591\u73ed\u642c\u6273\u822c\u9881\u677f\u7248\u626e\u62cc\u4f34\u74e3\u534a\u529e\u7eca\u962a\u5742\u8c73\u94a3\u7622\u764d\u8228', 'bang': '\u90a6\u5e2e\u6886\u699c\u8180\u7ed1\u68d2\u78c5\u868c\u9551\u508d\u8c24\u84a1\u8783', 'bao': '\u82de\u80de\u5305\u8912\u96f9\u4fdd\u5821\u9971\u5b9d\u62b1\u62a5\u66b4\u8c79\u9c8d\u7206\u52f9\u8446\u5b80\u5b62\u7172\u9e28\u8913\u8db5\u9f85', 'bo': '\u5265\u8584\u73bb\u83e0\u64ad\u62e8\u94b5\u6ce2\u535a\u52c3\u640f\u94c2\u7b94\u4f2f\u5e1b\u8236\u8116\u818a\u6e24\u6cca\u9a73\u4eb3\u8543\u5575\u997d\u6a97\u64d8\u7934\u94b9\u9e41\u7c38\u8ddb', 'bei': '\u676f\u7891\u60b2\u5351\u5317\u8f88\u80cc\u8d1d\u94a1\u500d\u72c8\u5907\u60eb\u7119\u88ab\u5b5b\u9642\u90b6\u57e4\u84d3\u5457\u602b\u6096\u789a\u9e4e\u8919\u943e', 'ben': '\u5954\u82ef\u672c\u7b28\u755a\u574c\u951b', 'beng': '\u5d29\u7ef7\u752d\u6cf5\u8e66\u8ff8\u552a\u5623\u750f', 'bi': '\u903c\u9f3b\u6bd4\u9119\u7b14\u5f7c\u78a7\u84d6\u853d\u6bd5\u6bd9\u6bd6\u5e01\u5e87\u75f9\u95ed\u655d\u5f0a\u5fc5\u8f9f\u58c1\u81c2\u907f\u965b\u5315\u4ef3\u4ffe\u8298\u835c\u8378\u5421\u54d4\u72f4\u5eb3\u610e\u6ed7\u6fde\u5f3c\u59a3\u5a62\u5b16\u74a7\u8d32\u7540\u94cb\u79d5\u88e8\u7b5a\u7b85\u7be6\u822d\u895e\u8df8\u9ac0', 'bian': '\u97ad\u8fb9\u7f16\u8d2c\u6241\u4fbf\u53d8\u535e\u8fa8\u8fa9\u8fab\u904d\u533e\u5f01\u82c4\u5fed\u6c74\u7f0f\u7178\u782d\u78a5\u7a39\u7a86\u8759\u7b3e\u9cca', 'biao': '\u6807\u5f6a\u8198\u8868\u5a4a\u9aa0\u98d1\u98d9\u98da\u706c\u9556\u9573\u762d\u88f1\u9cd4', 'bie': '\u9cd6\u618b\u522b\u762a\u8e69\u9cd8', 'bin': '\u5f6c\u658c\u6fd2\u6ee8\u5bbe\u6448\u50a7\u6d5c\u7f24\u73a2\u6ba1\u8191\u9554\u9acc\u9b13', 'bing': '\u5175\u51b0\u67c4\u4e19\u79c9\u997c\u70b3\u75c5\u5e76\u7980\u90b4\u6452\u7ee0\u678b\u69df\u71f9', 'bu': '\u6355\u535c\u54fa\u8865\u57e0\u4e0d\u5e03\u6b65\u7c3f\u90e8\u6016\u62ca\u535f\u900b\u74ff\u6661\u949a\u91ad', 'ca': '\u64e6\u5693\u7924', 'cai': '\u731c\u88c1\u6750\u624d\u8d22\u776c\u8e29\u91c7\u5f69\u83dc\u8521', 'can': '\u9910\u53c2\u8695\u6b8b\u60ed\u60e8\u707f\u9a96\u74a8\u7cb2\u9eea', 'cang': '\u82cd\u8231\u4ed3\u6ca7\u85cf\u4f27', 'cao': '\u64cd\u7cd9\u69fd\u66f9\u8349\u8279\u5608\u6f15\u87ac\u825a', 'ce': '\u5395\u7b56\u4fa7\u518c\u6d4b\u5202\u5e3b\u607b', 'ceng': '\u5c42\u8e6d\u564c', 'cha': '\u63d2\u53c9\u832c\u8336\u67e5\u78b4\u643d\u5bdf\u5c94\u5dee\u8be7\u7339\u9987\u6c4a\u59f9\u6748\u6942\u69ce\u6aab\u9497\u9538\u9572\u8869', 'chai': '\u62c6\u67f4\u8c7a\u4faa\u8308\u7625\u867f\u9f87', 'chan': '\u6400\u63ba\u8749\u998b\u8c17\u7f20\u94f2\u4ea7\u9610\u98a4\u5181\u8c04\u8c36\u8487\u5edb\u5fcf\u6f7a\u6fb6\u5b71\u7fbc\u5a75\u5b17\u9aa3\u89c7\u7985\u9561\u88e3\u87fe\u8e94', 'chang': '\u660c\u7316\u573a\u5c1d\u5e38\u957f\u507f\u80a0\u5382\u655e\u7545\u5531\u5021\u4f25\u9b2f\u82cc\u83d6\u5f9c\u6005\u60dd\u960a\u5a3c\u5ae6\u6636\u6c05\u9cb3', 'chao': '\u8d85\u6284\u949e\u671d\u5632\u6f6e\u5de2\u5435\u7092\u600a\u7ec9\u6641\u8016', 'che': '\u8f66\u626f\u64a4\u63a3\u5f7b\u6f88\u577c\u5c6e\u7817', 'chen': '\u90f4\u81e3\u8fb0\u5c18\u6668\u5ff1\u6c89\u9648\u8d81\u886c\u79f0\u8c0c\u62bb\u55d4\u5bb8\u741b\u6987\u809c\u80c2\u789c\u9f80', 'cheng': '\u6491\u57ce\u6a59\u6210\u5448\u4e58\u7a0b\u60e9\u6f84\u8bda\u627f\u901e\u9a8b\u79e4\u57d5\u5d4a\u5fb5\u6d48\u67a8\u67fd\u6a18\u665f\u584d\u77a0\u94d6\u88ce\u86cf\u9172', 'chi': '\u5403\u75f4\u6301\u5319\u6c60\u8fdf\u5f1b\u9a70\u803b\u9f7f\u4f88\u5c3a\u8d64\u7fc5\u65a5\u70bd\u50ba\u5880\u82aa\u830c\u640b\u53f1\u54e7\u557b\u55e4\u5f73\u996c\u6cb2\u5ab8\u6555\u80dd\u7719\u7735\u9e31\u761b\u892b\u86a9\u87ad\u7b1e\u7bea\u8c49\u8e05\u8e1f\u9b51', 'chong': '\u5145\u51b2\u866b\u5d07\u5ba0\u833a\u5fe1\u61a7\u94f3\u825f', 'chou': '\u62bd\u916c\u7574\u8e0c\u7a20\u6101\u7b79\u4ec7\u7ef8\u7785\u4e11\u4fe6\u5733\u5e31\u60c6\u6eb4\u59af\u7633\u96e0\u9c8b', 'chu': '\u81ed\u521d\u51fa\u6a71\u53a8\u8e87\u9504\u96cf\u6ec1\u9664\u695a\u7840\u50a8\u77d7\u6410\u89e6\u5904\u4e8d\u520d\u61b7\u7ecc\u6775\u696e\u6a17\u870d\u8e70\u9edc', 'chuan': '\u63e3\u5ddd\u7a7f\u693d\u4f20\u8239\u5598\u4e32\u63be\u821b\u60f4\u9044\u5ddb\u6c1a\u948f\u9569\u8221', 'chuang': '\u75ae\u7a97\u5e62\u5e8a\u95ef\u521b\u6006', 'chui': '\u5439\u708a\u6376\u9524\u5782\u9672\u68f0\u69cc', 'chun': '\u6625\u693f\u9187\u5507\u6df3\u7eaf\u8822\u4fc3\u83bc\u6c8c\u80ab\u6710\u9e51\u877d', 'chuo': '\u6233\u7ef0\u851f\u8fb6\u8f8d\u955e\u8e14\u9f8a', 'ci': '\u75b5\u8328\u78c1\u96cc\u8f9e\u6148\u74f7\u8bcd\u6b64\u523a\u8d50\u6b21\u8360\u5472\u5d6f\u9e5a\u8785\u7ccd\u8d91', 'cong': '\u806a\u8471\u56f1\u5306\u4ece\u4e1b\u506c\u82c1\u6dd9\u9aa2\u742e\u7481\u679e', 'cu': '\u51d1\u7c97\u918b\u7c07\u731d\u6b82\u8e59', 'cuan': '\u8e7f\u7be1\u7a9c\u6c46\u64ba\u6615\u7228', 'cui': '\u6467\u5d14\u50ac\u8106\u7601\u7cb9\u6dec\u7fe0\u8403\u60b4\u7480\u69b1\u96b9', 'cun': '\u6751\u5b58\u5bf8\u78cb\u5fd6\u76b4', 'cuo': '\u64ae\u6413\u63aa\u632b\u9519\u539d\u811e\u9509\u77ec\u75e4\u9e7e\u8e49\u8e9c', 'da': '\u642d\u8fbe\u7b54\u7629\u6253\u5927\u8037\u54d2\u55d2\u601b\u59b2\u75b8\u8921\u7b2a\u977c\u9791', 'dai': '\u5446\u6b79\u50a3\u6234\u5e26\u6b86\u4ee3\u8d37\u888b\u5f85\u902e\u6020\u57ed\u7519\u5454\u5cb1\u8fe8\u902f\u9a80\u7ed0\u73b3\u9edb', 'dan': '\u803d\u62c5\u4e39\u5355\u90f8\u63b8\u80c6\u65e6\u6c2e\u4f46\u60ee\u6de1\u8bde\u5f39\u86cb\u4ebb\u510b\u5369\u840f\u5556\u6fb9\u6a90\u6b9a\u8d55\u7708\u7605\u8043\u7baa', 'dang': '\u5f53\u6321\u515a\u8361\u6863\u8c20\u51fc\u83ea\u5b95\u7800\u94db\u88c6', 'dao': '\u5200\u6363\u8e48\u5012\u5c9b\u7977\u5bfc\u5230\u7a3b\u60bc\u9053\u76d7\u53e8\u5541\u5fc9\u6d2e\u6c18\u7118\u5fd1\u7e9b', 'de': '\u5fb7\u5f97\u7684\u951d', 'deng': '\u8e6c\u706f\u767b\u7b49\u77aa\u51f3\u9093\u5654\u5d9d\u6225\u78f4\u956b\u7c26', 'di': '\u5824\u4f4e\u6ef4\u8fea\u654c\u7b1b\u72c4\u6da4\u7fdf\u5ae1\u62b5\u5e95\u5730\u8482\u7b2c\u5e1d\u5f1f\u9012\u7f14\u6c10\u7c74\u8bcb\u8c1b\u90b8\u577b\u839c\u837b\u5600\u5a23\u67e2\u68e3\u89cc\u7825\u78b2\u7747\u955d\u7f9d\u9ab6', 'dian': '\u98a0\u6382\u6ec7\u7898\u70b9\u5178\u975b\u57ab\u7535\u4f43\u7538\u5e97\u60e6\u5960\u6dc0\u6bbf\u4e36\u963d\u576b\u57dd\u5dc5\u73b7\u765c\u766b\u7c1f\u8e2e', 'diao': '\u7889\u53fc\u96d5\u51cb\u5201\u6389\u540a\u9493\u8c03\u8f7a\u94de\u8729\u7c9c\u8c82', 'die': '\u8dcc\u7239\u789f\u8776\u8fed\u8c0d\u53e0\u4f5a\u57a4\u581e\u63f2\u558b\u6e2b\u8f76\u7252\u74de\u8936\u800b\u8e40\u9cbd\u9cce', 'ding': '\u4e01\u76ef\u53ee\u9489\u9876\u9f0e\u952d\u5b9a\u8ba2\u4e22\u4ec3\u5576\u738e\u815a\u7887\u753a\u94e4\u7594\u8035\u914a', 'dong': '\u4e1c\u51ac\u8463\u61c2\u52a8\u680b\u4f97\u606b\u51bb\u6d1e\u578c\u549a\u5cbd\u5cd2\u5902\u6c21\u80e8\u80f4\u7850\u9e2b', 'dou': '\u515c\u6296\u6597\u9661\u8c46\u9017\u75d8\u8538\u94ad\u7aa6\u7aac\u86aa\u7bfc\u9161', 'du': '\u90fd\u7763\u6bd2\u728a\u72ec\u8bfb\u5835\u7779\u8d4c\u675c\u9540\u809a\u5ea6\u6e21\u5992\u828f\u561f\u6e0e\u691f\u6a50\u724d\u8839\u7b03\u9ad1\u9ee9', 'duan': '\u7aef\u77ed\u953b\u6bb5\u65ad\u7f0e\u5f56\u6934\u7145\u7c16', 'dui': '\u5806\u5151\u961f\u5bf9\u603c\u619d\u7893', 'dun': '\u58a9\u5428\u8e72\u6566\u987f\u56e4\u949d\u76fe\u9041\u7096\u7818\u7905\u76f9\u9566\u8db8', 'duo': '\u6387\u54c6\u591a\u593a\u579b\u8eb2\u6735\u8dfa\u8235\u5241\u60f0\u5815\u5484\u54da\u7f0d\u67c1\u94ce\u88f0\u8e31', 'e': '\u86fe\u5ce8\u9e45\u4fc4\u989d\u8bb9\u5a25\u6076\u5384\u627c\u904f\u9102\u997f\u5669\u8c14\u57a9\u57ad\u82ca\u83aa\u843c\u5443\u6115\u5c59\u5a40\u8f6d\u66f7\u816d\u786a\u9507\u9537\u9e57\u989a\u9cc4', 'en': '\u6069\u84bd\u6441\u5514\u55ef', 'er': '\u800c\u513f\u8033\u5c14\u9975\u6d31\u4e8c\u8d30\u8fe9\u73e5\u94d2\u9e38\u9c95', 'fa': '\u53d1\u7f5a\u7b4f\u4f10\u4e4f\u9600\u6cd5\u73d0\u57a1\u781d', 'fan': '\u85e9\u5e06\u756a\u7ffb\u6a0a\u77fe\u9492\u7e41\u51e1\u70e6\u53cd\u8fd4\u8303\u8d29\u72af\u996d\u6cdb\u8629\u5e61\u72ad\u68b5\u6535\u71d4\u7548\u8e6f', 'fang': '\u574a\u82b3\u65b9\u80aa\u623f\u9632\u59a8\u4eff\u8bbf\u7eba\u653e\u531a\u90a1\u5f77\u94ab\u822b\u9c82', 'fei': '\u83f2\u975e\u5561\u98de\u80a5\u532a\u8bfd\u5420\u80ba\u5e9f\u6cb8\u8d39\u82be\u72d2\u60b1\u6ddd\u5983\u7ecb\u7eef\u69a7\u8153\u6590\u6249\u7953\u7829\u9544\u75f1\u871a\u7bda\u7fe1\u970f\u9cb1', 'fen': '\u82ac\u915a\u5429\u6c1b\u5206\u7eb7\u575f\u711a\u6c7e\u7c89\u594b\u4efd\u5fff\u6124\u7caa\u507e\u7035\u68fc\u610d\u9cbc\u9f22', 'feng': '\u4e30\u5c01\u67ab\u8702\u5cf0\u950b\u98ce\u75af\u70fd\u9022\u51af\u7f1d\u8bbd\u5949\u51e4\u4ff8\u9146\u8451\u6ca3\u781c', 'fu': '\u4f5b\u5426\u592b\u6577\u80a4\u5b75\u6276\u62c2\u8f90\u5e45\u6c1f\u7b26\u4f0f\u4fd8\u670d\u6d6e\u6daa\u798f\u88b1\u5f17\u752b\u629a\u8f85\u4fef\u91dc\u65a7\u812f\u8151\u5e9c\u8150\u8d74\u526f\u8986\u8d4b\u590d\u5085\u4ed8\u961c\u7236\u8179\u8d1f\u5bcc\u8ba3\u9644\u5987\u7f1a\u5490\u5310\u51eb\u90db\u8299\u82fb\u832f\u83a9\u83d4\u544b\u5e5e\u6ecf\u8274\u5b5a\u9a78\u7ec2\u6874\u8d59\u9efb\u9efc\u7f58\u7a03\u99a5\u864d\u86a8\u8709\u8760\u876e\u9eb8\u8dba\u8dd7\u9cc6', 'ga': '\u5676\u560e\u86e4\u5c2c\u5477\u5c15\u5c1c\u65ee\u9486', 'gai': '\u8be5\u6539\u6982\u9499\u76d6\u6e89\u4e10\u9654\u5793\u6224\u8d45\u80f2', 'gan': '\u5e72\u7518\u6746\u67d1\u7aff\u809d\u8d76\u611f\u79c6\u6562\u8d63\u5769\u82f7\u5c34\u64c0\u6cd4\u6de6\u6f89\u7ec0\u6a44\u65f0\u77f8\u75b3\u9150', 'gang': '\u5188\u521a\u94a2\u7f38\u809b\u7eb2\u5c97\u6e2f\u6206\u7f61\u9883\u7b7b', 'gong': '\u6760\u5de5\u653b\u529f\u606d\u9f9a\u4f9b\u8eac\u516c\u5bab\u5f13\u5de9\u6c5e\u62f1\u8d21\u5171\u857b\u5efe\u54a3\u73d9\u80b1\u86a3\u86e9\u89e5', 'gao': '\u7bd9\u768b\u9ad8\u818f\u7f94\u7cd5\u641e\u9550\u7a3f\u544a\u777e\u8bf0\u90dc\u84bf\u85c1\u7f1f\u69d4\u69c1\u6772\u9506', 'ge': '\u54e5\u6b4c\u6401\u6208\u9e3d\u80f3\u7599\u5272\u9769\u845b\u683c\u9601\u9694\u94ec\u4e2a\u5404\u9b32\u4ee1\u54ff\u5865\u55dd\u7ea5\u643f\u8188\u784c\u94ea\u9549\u88bc\u988c\u867c\u8238\u9abc\u9ac2', 'gei': '\u7ed9', 'gen': '\u6839\u8ddf\u4e98\u831b\u54cf\u826e', 'geng': '\u8015\u66f4\u5e9a\u7fb9\u57c2\u803f\u6897\u54fd\u8d53\u9ca0', 'gou': '\u94a9\u52fe\u6c9f\u82df\u72d7\u57a2\u6784\u8d2d\u591f\u4f5d\u8bdf\u5ca3\u9058\u5abe\u7f11\u89cf\u5f40\u9e32\u7b31\u7bdd\u97b2', 'gu': '\u8f9c\u83c7\u5495\u7b8d\u4f30\u6cbd\u5b64\u59d1\u9f13\u53e4\u86ca\u9aa8\u8c37\u80a1\u6545\u987e\u56fa\u96c7\u560f\u8bc2\u83f0\u54cc\u5d2e\u6c69\u688f\u8f71\u726f\u727f\u80cd\u81cc\u6bc2\u77bd\u7f5f\u94b4\u9522\u74e0\u9e2a\u9e44\u75fc\u86c4\u9164\u89da\u9cb4\u9ab0\u9e58', 'gua': '\u522e\u74dc\u5250\u5be1\u6302\u8902\u5366\u8bd6\u5471\u681d\u9e39', 'guai': '\u4e56\u62d0\u602a\u54d9', 'guan': '\u68fa\u5173\u5b98\u51a0\u89c2\u7ba1\u9986\u7f50\u60ef\u704c\u8d2f\u500c\u839e\u63bc\u6dab\u76e5\u9e73\u9ccf', 'guang': '\u5149\u5e7f\u901b\u72b7\u6844\u80f1\u7592', 'gui': '\u7470\u89c4\u572d\u7845\u5f52\u9f9f\u95fa\u8f68\u9b3c\u8be1\u7678\u6842\u67dc\u8dea\u8d35\u523d\u5326\u523f\u5e8b\u5b84\u59ab\u6867\u7085\u6677\u7688\u7c0b\u9c91\u9cdc', 'gun': '\u8f8a\u6eda\u68cd\u4e28\u886e\u7ef2\u78d9\u9ca7', 'guo': '\u9505\u90ed\u56fd\u679c\u88f9\u8fc7\u9998\u8803\u57da\u63b4\u5459\u56d7\u5e3c\u5d1e\u7313\u6901\u8662\u951e\u8052\u872e\u873e\u8748', 'ha': '\u54c8', 'hai': '\u9ab8\u5b69\u6d77\u6c26\u4ea5\u5bb3\u9a87\u54b4\u55e8\u988f\u91a2', 'han': '\u9163\u61a8\u90af\u97e9\u542b\u6db5\u5bd2\u51fd\u558a\u7f55\u7ff0\u64bc\u634d\u65f1\u61be\u608d\u710a\u6c57\u6c49\u9097\u83e1\u6496\u961a\u701a\u6657\u7113\u9894\u86b6\u9f3e', 'hen': '\u592f\u75d5\u5f88\u72e0\u6068', 'hang': '\u676d\u822a\u6c86\u7ed7\u73e9\u6841', 'hao': '\u58d5\u568e\u8c6a\u6beb\u90dd\u597d\u8017\u53f7\u6d69\u8585\u55e5\u5686\u6fe0\u704f\u660a\u7693\u98a2\u869d', 'he': '\u5475\u559d\u8377\u83cf\u6838\u79be\u548c\u4f55\u5408\u76d2\u8c89\u9602\u6cb3\u6db8\u8d6b\u8910\u9e64\u8d3a\u8bc3\u52be\u58d1\u85ff\u55d1\u55ec\u9616\u76cd\u86b5\u7fee', 'hei': '\u563f\u9ed1', 'heng': '\u54fc\u4ea8\u6a2a\u8861\u6052\u8a07\u8605', 'hong': '\u8f70\u54c4\u70d8\u8679\u9e3f\u6d2a\u5b8f\u5f18\u7ea2\u9ec9\u8ba7\u836d\u85a8\u95f3\u6cd3', 'hou': '\u5589\u4faf\u7334\u543c\u539a\u5019\u540e\u5820\u5f8c\u9005\u760a\u7bcc\u7cc7\u9c8e\u9aba', 'hu': '\u547c\u4e4e\u5ffd\u745a\u58f6\u846b\u80e1\u8774\u72d0\u7cca\u6e56\u5f27\u864e\u552c\u62a4\u4e92\u6caa\u6237\u51b1\u553f\u56eb\u5cb5\u7322\u6019\u60da\u6d52\u6ef9\u7425\u69f2\u8f77\u89f3\u70c0\u7173\u623d\u6248\u795c\u9e55\u9e71\u7b0f\u9190\u659b', 'hua': '\u82b1\u54d7\u534e\u733e\u6ed1\u753b\u5212\u5316\u8bdd\u5290\u6d4d\u9a85\u6866\u94e7\u7a1e', 'huai': '\u69d0\u5f8a\u6000\u6dee\u574f\u8fd8\u8e1d', 'huan': '\u6b22\u73af\u6853\u7f13\u6362\u60a3\u5524\u75ea\u8c62\u7115\u6da3\u5ba6\u5e7b\u90c7\u5942\u57b8\u64d0\u571c\u6d39\u6d63\u6f36\u5bf0\u902d\u7f33\u953e\u9ca9\u9b1f', 'huang': '\u8352\u614c\u9ec4\u78fa\u8757\u7c27\u7687\u51f0\u60f6\u714c\u6643\u5e4c\u604d\u8c0e\u968d\u5fa8\u6e5f\u6f62\u9051\u749c\u8093\u7640\u87e5\u7bc1\u9cc7', 'hui': '\u7070\u6325\u8f89\u5fbd\u6062\u86d4\u56de\u6bc1\u6094\u6167\u5349\u60e0\u6666\u8d3f\u79fd\u4f1a\u70e9\u6c47\u8bb3\u8bf2\u7ed8\u8bd9\u8334\u835f\u8559\u54d5\u5599\u96b3\u6d04\u5f57\u7f0b\u73f2\u6656\u605a\u867a\u87ea\u9ebe', 'hun': '\u8364\u660f\u5a5a\u9b42\u6d51\u6df7\u8be8\u9984\u960d\u6eb7\u7f17', 'huo': '\u8c41\u6d3b\u4f19\u706b\u83b7\u6216\u60d1\u970d\u8d27\u7978\u6509\u56af\u5925\u94ac\u952a\u956c\u8020\u8816', 'ji': '\u51fb\u573e\u57fa\u673a\u7578\u7a3d\u79ef\u7b95\u808c\u9965\u8ff9\u6fc0\u8ba5\u9e21\u59ec\u7ee9\u7f09\u5409\u6781\u68d8\u8f91\u7c4d\u96c6\u53ca\u6025\u75be\u6c72\u5373\u5ac9\u7ea7\u6324\u51e0\u810a\u5df1\u84df\u6280\u5180\u5b63\u4f0e\u796d\u5242\u60b8\u6d4e\u5bc4\u5bc2\u8ba1\u8bb0\u65e2\u5fcc\u9645\u5993\u7ee7\u7eaa\u5c45\u4e0c\u4e69\u525e\u4f76\u4f74\u8114\u58bc\u82a8\u82b0\u8401\u84ba\u857a\u638e\u53fd\u54ad\u54dc\u5527\u5c8c\u5d74\u6d0e\u5f50\u5c50\u9aa5\u757f\u7391\u696b\u6b9b\u621f\u6222\u8d4d\u89ca\u7284\u9f51\u77f6\u7f81\u5d47\u7a37\u7620\u7635\u866e\u7b08\u7b04\u66a8\u8dfb\u8dfd\u9701\u9c9a\u9cab\u9afb\u9e82', 'jia': '\u5609\u67b7\u5939\u4f73\u5bb6\u52a0\u835a\u988a\u8d3e\u7532\u94be\u5047\u7a3c\u4ef7\u67b6\u9a7e\u5ac1\u4f3d\u90cf\u62ee\u5cac\u6d43\u8fe6\u73c8\u621b\u80db\u605d\u94d7\u9553\u75c2\u86f1\u7b33\u8888\u8dcf', 'jian': '\u6b7c\u76d1\u575a\u5c16\u7b3a\u95f4\u714e\u517c\u80a9\u8270\u5978\u7f04\u8327\u68c0\u67ec\u78b1\u7877\u62e3\u6361\u7b80\u4fed\u526a\u51cf\u8350\u69db\u9274\u8df5\u8d31\u89c1\u952e\u7bad\u4ef6\u5065\u8230\u5251\u996f\u6e10\u6e85\u6da7\u5efa\u50ed\u8c0f\u8c2b\u83c5\u84b9\u641b\u56dd\u6e54\u8e47\u8b07\u7f23\u67a7\u67d9\u6957\u620b\u622c\u726e\u728d\u6bfd\u8171\u7751\u950f\u9e63\u88e5\u7b15\u7bb4\u7fe6\u8dbc\u8e3a\u9ca3\u97af', 'jiang': '\u50f5\u59dc\u5c06\u6d46\u6c5f\u7586\u848b\u6868\u5956\u8bb2\u5320\u9171\u964d\u8333\u6d1a\u7edb\u7f30\u729f\u7913\u8029\u7ce8\u8c47', 'jiao': '\u8549\u6912\u7901\u7126\u80f6\u4ea4\u90ca\u6d47\u9a84\u5a07\u56bc\u6405\u94f0\u77eb\u4fa5\u811a\u72e1\u89d2\u997a\u7f34\u7ede\u527f\u6559\u9175\u8f7f\u8f83\u53eb\u4f7c\u50ec\u832d\u6322\u564d\u5ce4\u5fbc\u59e3\u7e9f\u656b\u768e\u9e6a\u86df\u91ae\u8de4\u9c9b', 'jie': '\u7a96\u63ed\u63a5\u7686\u79f8\u8857\u9636\u622a\u52ab\u8282\u6854\u6770\u6377\u776b\u7aed\u6d01\u7ed3\u89e3\u59d0\u6212\u85c9\u82a5\u754c\u501f\u4ecb\u75a5\u8beb\u5c4a\u5048\u8ba6\u8bd8\u5588\u55df\u736c\u5a55\u5b51\u6840\u7352\u78a3\u9534\u7596\u88b7\u9889\u86a7\u7faf\u9c92\u9ab1\u9aeb', 'jin': '\u5dfe\u7b4b\u65a4\u91d1\u4eca\u6d25\u895f\u7d27\u9526\u4ec5\u8c28\u8fdb\u9773\u664b\u7981\u8fd1\u70ec\u6d78\u5c3d\u537a\u8369\u5807\u5664\u9991\u5ed1\u5997\u7f19\u747e\u69ff\u8d46\u89d0\u9485\u9513\u887f\u77dc', 'jing': '\u52b2\u8346\u5162\u830e\u775b\u6676\u9cb8\u4eac\u60ca\u7cbe\u7cb3\u7ecf\u4e95\u8b66\u666f\u9888\u9759\u5883\u656c\u955c\u5f84\u75c9\u9756\u7adf\u7ade\u51c0\u522d\u5106\u9631\u83c1\u734d\u61ac\u6cfe\u8ff3\u5f2a\u5a67\u80bc\u80eb\u8148\u65cc', 'jiong': '\u70af\u7a98\u5182\u8fe5\u6243', 'jiu': '\u63ea\u7a76\u7ea0\u7396\u97ed\u4e45\u7078\u4e5d\u9152\u53a9\u6551\u65e7\u81fc\u8205\u548e\u5c31\u759a\u50e6\u557e\u9604\u67e9\u6855\u9e6b\u8d73\u9b0f', 'ju': '\u97a0\u62d8\u72d9\u75bd\u9a79\u83ca\u5c40\u5480\u77e9\u4e3e\u6cae\u805a\u62d2\u636e\u5de8\u5177\u8ddd\u8e1e\u952f\u4ff1\u53e5\u60e7\u70ac\u5267\u5028\u8bb5\u82e3\u82f4\u8392\u63ac\u907d\u5c66\u741a\u67b8\u6910\u6998\u6989\u6a58\u728b\u98d3\u949c\u9514\u7aad\u88fe\u8d84\u91b5\u8e3d\u9f83\u96ce\u97ab', 'juan': '\u6350\u9e43\u5a1f\u5026\u7737\u5377\u7ee2\u9104\u72f7\u6d93\u684a\u8832\u9529\u954c\u96bd', 'jue': '\u6485\u652b\u6289\u6398\u5014\u7235\u89c9\u51b3\u8bc0\u7edd\u53a5\u5282\u8c32\u77cd\u8568\u5658\u5d1b\u7357\u5b53\u73cf\u6877\u6a5b\u721d\u9562\u8e76\u89d6', 'jun': '\u5747\u83cc\u94a7\u519b\u541b\u5cfb\u4fca\u7ae3\u6d5a\u90e1\u9a8f\u6343\u72fb\u76b2\u7b60\u9e87', 'ka': '\u5580\u5496\u5361\u4f67\u5494\u80e9', 'ke': '\u54af\u5777\u82db\u67ef\u68f5\u78d5\u9897\u79d1\u58f3\u54b3\u53ef\u6e34\u514b\u523b\u5ba2\u8bfe\u5ca2\u606a\u6e98\u9a92\u7f02\u73c2\u8f72\u6c2a\u778c\u94b6\u75b4\u7aa0\u874c\u9ac1', 'kai': '\u5f00\u63e9\u6977\u51ef\u6168\u5240\u57b2\u8488\u5ffe\u607a\u94e0\u950e', 'kan': '\u520a\u582a\u52d8\u574e\u780d\u770b\u4f83\u51f5\u83b0\u83b6\u6221\u9f9b\u77b0', 'kang': '\u5eb7\u6177\u7ce0\u625b\u6297\u4ea2\u7095\u5751\u4f09\u95f6\u94aa', 'kao': '\u8003\u62f7\u70e4\u9760\u5c3b\u6832\u7292\u94d0', 'ken': '\u80af\u5543\u57a6\u6073\u57a0\u88c9\u9880', 'keng': '\u542d\u5fd0\u94ff', 'kong': '\u7a7a\u6050\u5b54\u63a7\u5025\u5d06\u7b9c', 'kou': '\u62a0\u53e3\u6263\u5bc7\u82a4\u853b\u53e9\u770d\u7b58', 'ku': '\u67af\u54ed\u7a9f\u82e6\u9177\u5e93\u88e4\u5233\u5800\u55be\u7ed4\u9ab7', 'kua': '\u5938\u57ae\u630e\u8de8\u80ef\u4f89', 'kuai': '\u5757\u7b77\u4fa9\u5feb\u84af\u90d0\u8489\u72ef\u810d', 'kuan': '\u5bbd\u6b3e\u9acb', 'kuang': '\u5321\u7b50\u72c2\u6846\u77ff\u7736\u65f7\u51b5\u8bd3\u8bf3\u909d\u5739\u593c\u54d0\u7ea9\u8d36', 'kui': '\u4e8f\u76d4\u5cbf\u7aa5\u8475\u594e\u9b41\u5080\u9988\u6127\u6e83\u9997\u532e\u5914\u9697\u63c6\u55b9\u559f\u609d\u6126\u9615\u9035\u668c\u777d\u8069\u8770\u7bd1\u81fe\u8dec', 'kun': '\u5764\u6606\u6346\u56f0\u6083\u9603\u7428\u951f\u918c\u9cb2\u9ae1', 'kuo': '\u62ec\u6269\u5ed3\u9614\u86de', 'la': '\u5783\u62c9\u5587\u8721\u814a\u8fa3\u5566\u524c\u647a\u908b\u65ef\u782c\u760c', 'lai': '\u83b1\u6765\u8d56\u5d03\u5f95\u6d9e\u6fd1\u8d49\u7750\u94fc\u765e\u7c41', 'lan': '\u84dd\u5a6a\u680f\u62e6\u7bee\u9611\u5170\u6f9c\u8c30\u63fd\u89c8\u61d2\u7f06\u70c2\u6ee5\u5549\u5c9a\u61d4\u6f24\u6984\u6593\u7f71\u9567\u8934', 'lang': '\u7405\u6994\u72fc\u5eca\u90ce\u6717\u6d6a\u83a8\u8497\u5577\u9606\u9512\u7a02\u8782', 'lao': '\u635e\u52b3\u7262\u8001\u4f6c\u59e5\u916a\u70d9\u6d9d\u5520\u5d02\u6833\u94d1\u94f9\u75e8\u91aa', 'le': '\u52d2\u4e50\u808b\u4ec2\u53fb\u561e\u6cd0\u9cd3', 'lei': '\u96f7\u956d\u857e\u78ca\u7d2f\u5121\u5792\u64c2\u7c7b\u6cea\u7fb8\u8bd4\u837d\u54a7\u6f2f\u5ad8\u7f27\u6a91\u8012\u9179', 'ling': '\u68f1\u51b7\u62ce\u73b2\u83f1\u96f6\u9f84\u94c3\u4f36\u7f9a\u51cc\u7075\u9675\u5cad\u9886\u53e6\u4ee4\u9143\u5844\u82d3\u5464\u56f9\u6ce0\u7eeb\u67c3\u68c2\u74f4\u8046\u86c9\u7fce\u9cae', 'leng': '\u695e\u6123', 'li': '\u5398\u68a8\u7281\u9ece\u7bf1\u72f8\u79bb\u6f13\u7406\u674e\u91cc\u9ca4\u793c\u8389\u8354\u540f\u6817\u4e3d\u5389\u52b1\u783e\u5386\u5229\u5088\u4f8b\u4fd0\u75e2\u7acb\u7c92\u6ca5\u96b6\u529b\u7483\u54e9\u4fea\u4fda\u90e6\u575c\u82c8\u8385\u84e0\u85dc\u6369\u5456\u5533\u55b1\u7301\u6ea7\u6fa7\u9026\u5a0c\u5ae0\u9a8a\u7f21\u73de\u67a5\u680e\u8f79\u623e\u783a\u8a48\u7f79\u9502\u9e42\u75a0\u75ac\u86ce\u870a\u8821\u7b20\u7be5\u7c9d\u91b4\u8dde\u96f3\u9ca1\u9ce2\u9ee7', 'lian': '\u4fe9\u8054\u83b2\u8fde\u9570\u5ec9\u601c\u6d9f\u5e18\u655b\u8138\u94fe\u604b\u70bc\u7ec3\u631b\u8539\u5941\u6f4b\u6fc2\u5a08\u740f\u695d\u6b93\u81c1\u81a6\u88e2\u880a\u9ca2', 'liang': '\u7cae\u51c9\u6881\u7cb1\u826f\u4e24\u8f86\u91cf\u667e\u4eae\u8c05\u589a\u690b\u8e09\u9753\u9b49', 'liao': '\u64a9\u804a\u50da\u7597\u71ce\u5be5\u8fbd\u6f66\u4e86\u6482\u9563\u5ed6\u6599\u84fc\u5c25\u5639\u7360\u5bee\u7f2d\u948c\u9e69\u8022', 'lie': '\u5217\u88c2\u70c8\u52a3\u730e\u51bd\u57d2\u6d0c\u8d94\u8e90\u9b23', 'lin': '\u7433\u6797\u78f7\u9716\u4e34\u90bb\u9cde\u6dcb\u51db\u8d41\u541d\u853a\u5d99\u5eea\u9074\u6aa9\u8f9a\u77b5\u7cbc\u8e8f\u9e9f', 'liu': '\u6e9c\u7409\u69b4\u786b\u998f\u7559\u5218\u7624\u6d41\u67f3\u516d\u62a1\u507b\u848c\u6cd6\u6d4f\u905b\u9a9d\u7efa\u65d2\u7198\u950d\u954f\u9e68\u938f', 'long': '\u9f99\u804b\u5499\u7b3c\u7abf\u9686\u5784\u62e2\u9647\u5f04\u5785\u830f\u6cf7\u73d1\u680a\u80e7\u783b\u7643', 'lou': '\u697c\u5a04\u6402\u7bd3\u6f0f\u964b\u55bd\u5d5d\u9542\u7618\u8027\u877c\u9ac5', 'lu': '\u82a6\u5362\u9885\u5e90\u7089\u63b3\u5364\u864f\u9c81\u9e93\u788c\u9732\u8def\u8d42\u9e7f\u6f5e\u7984\u5f55\u9646\u622e\u5786\u6445\u64b8\u565c\u6cf8\u6e0c\u6f09\u7490\u680c\u6a79\u8f73\u8f82\u8f98\u6c07\u80ea\u9565\u9e2c\u9e6d\u7c0f\u823b\u9c88', 'lv': '\u9a74\u5415\u94dd\u4fa3\u65c5\u5c65\u5c61\u7f15\u8651\u6c2f\u5f8b\u7387\u6ee4\u7eff\u634b\u95fe\u6988\u8182\u7a06\u891b', 'luan': '\u5ce6\u5b6a\u6ee6\u5375\u4e71\u683e\u9e3e\u92ae', 'lue': '\u63a0\u7565\u950a', 'lun': '\u8f6e\u4f26\u4ed1\u6ca6\u7eb6\u8bba\u56f5', 'luo': '\u841d\u87ba\u7f57\u903b\u9523\u7ba9\u9aa1\u88f8\u843d\u6d1b\u9a86\u7edc\u502e\u8366\u645e\u7321\u6cfa\u6924\u8136\u9559\u7630\u96d2', 'ma': '\u5988\u9ebb\u739b\u7801\u8682\u9a6c\u9a82\u561b\u5417\u551b\u72b8\u5b37\u6769\u9ebd', 'mai': '\u57cb\u4e70\u9ea6\u5356\u8fc8\u8109\u52a2\u836c\u54aa\u973e', 'man': '\u7792\u9992\u86ee\u6ee1\u8513\u66fc\u6162\u6f2b\u8c29\u5881\u5e54\u7f26\u71b3\u9558\u989f\u87a8\u9cd7\u9794', 'mang': '\u8292\u832b\u76f2\u5fd9\u83bd\u9099\u6f2d\u6726\u786d\u87d2', 'meng': '\u6c13\u840c\u8499\u6aac\u76df\u9530\u731b\u68a6\u5b5f\u52d0\u750d\u77a2\u61f5\u791e\u867b\u8722\u8813\u824b\u8268\u9efe', 'miao': '\u732b\u82d7\u63cf\u7784\u85d0\u79d2\u6e3a\u5e99\u5999\u55b5\u9088\u7f08\u7f2a\u676a\u6dfc\u7707\u9e4b\u8731', 'mao': '\u8305\u951a\u6bdb\u77db\u94c6\u536f\u8302\u5192\u5e3d\u8c8c\u8d38\u4f94\u88a4\u52d6\u8306\u5cc1\u7441\u6634\u7266\u8004\u65c4\u61cb\u7780\u86d1\u8765\u87ca\u9ae6', 'me': '\u4e48', 'mei': '\u73ab\u679a\u6885\u9176\u9709\u7164\u6ca1\u7709\u5a92\u9541\u6bcf\u7f8e\u6627\u5bd0\u59b9\u5a9a\u5776\u8393\u5d4b\u7338\u6d7c\u6e44\u6963\u9545\u9e5b\u8882\u9b45', 'men': '\u95e8\u95f7\u4eec\u626a\u739f\u7116\u61d1\u9494', 'mi': '\u772f\u919a\u9761\u7cdc\u8ff7\u8c1c\u5f25\u7c73\u79d8\u89c5\u6ccc\u871c\u5bc6\u5e42\u8288\u5196\u8c27\u863c\u5627\u7315\u736f\u6c68\u5b93\u5f2d\u8112\u6549\u7cf8\u7e3b\u9e8b', 'mian': '\u68c9\u7720\u7ef5\u5195\u514d\u52c9\u5a29\u7f05\u9762\u6c94\u6e4e\u817c\u7704', 'mie': '\u8511\u706d\u54a9\u881b\u7bfe', 'min': '\u6c11\u62bf\u76bf\u654f\u60af\u95fd\u82e0\u5cb7\u95f5\u6cef\u73c9', 'ming': '\u660e\u879f\u9e23\u94ed\u540d\u547d\u51a5\u8317\u6e9f\u669d\u7791\u9169', 'miu': '\u8c2c', 'mo': '\u6478\u6479\u8611\u6a21\u819c\u78e8\u6469\u9b54\u62b9\u672b\u83ab\u58a8\u9ed8\u6cab\u6f20\u5bde\u964c\u8c1f\u8309\u84e6\u998d\u5aeb\u9546\u79e3\u763c\u8031\u87c6\u8c8a\u8c98', 'mou': '\u8c0b\u725f\u67d0\u53b6\u54de\u5a7a\u7738\u936a', 'mu': '\u62c7\u7261\u4ea9\u59c6\u6bcd\u5893\u66ae\u5e55\u52df\u6155\u6728\u76ee\u7766\u7267\u7a46\u4eeb\u82dc\u5452\u6c90\u6bea\u94bc', 'na': '\u62ff\u54ea\u5450\u94a0\u90a3\u5a1c\u7eb3\u5185\u637a\u80ad\u954e\u8872\u7bac', 'nai': '\u6c16\u4e43\u5976\u8010\u5948\u9f10\u827f\u8418\u67f0', 'nan': '\u5357\u7537\u96be\u56ca\u5583\u56e1\u6960\u8169\u877b\u8d67', 'nao': '\u6320\u8111\u607c\u95f9\u5b6c\u57b4\u7331\u7459\u7847\u94d9\u86f2', 'ne': '\u6dd6\u5462\u8bb7', 'nei': '\u9981', 'nen': '\u5ae9\u80fd\u6798\u6041', 'ni': '\u59ae\u9713\u502a\u6ce5\u5c3c\u62df\u4f60\u533f\u817b\u9006\u6eba\u4f32\u576d\u730a\u6029\u6ee0\u6635\u65ce\u7962\u615d\u7768\u94cc\u9cb5', 'nian': '\u852b\u62c8\u5e74\u78be\u64b5\u637b\u5ff5\u5eff\u8f87\u9ecf\u9c87\u9cb6', 'niang': '\u5a18\u917f', 'niao': '\u9e1f\u5c3f\u8311\u5b32\u8132\u8885', 'nie': '\u634f\u8042\u5b7d\u556e\u954a\u954d\u6d85\u4e5c\u9667\u8616\u55eb\u8080\u989e\u81ec\u8e51', 'nin': '\u60a8\u67e0', 'ning': '\u72de\u51dd\u5b81\u62e7\u6cde\u4f5e\u84e5\u549b\u752f\u804d', 'niu': '\u725b\u626d\u94ae\u7ebd\u72c3\u5ff8\u599e\u86b4', 'nong': '\u8113\u6d53\u519c\u4fac', 'nu': '\u5974\u52aa\u6012\u5476\u5e11\u5f29\u80ec\u5b65\u9a7d', 'nv': '\u5973\u6067\u9495\u8844', 'nuan': '\u6696', 'nuenue': '\u8650', 'nue': '\u759f\u8c11', 'nuo': '\u632a\u61e6\u7cef\u8bfa\u50a9\u6426\u558f\u9518', 'ou': '\u54e6\u6b27\u9e25\u6bb4\u85d5\u5455\u5076\u6ca4\u6004\u74ef\u8026', 'pa': '\u556a\u8db4\u722c\u5e15\u6015\u7436\u8469\u7b62', 'pai': '\u62cd\u6392\u724c\u5f98\u6e43\u6d3e\u4ff3\u848e', 'pan': '\u6500\u6f58\u76d8\u78d0\u76fc\u7554\u5224\u53db\u723f\u6cee\u88a2\u897b\u87e0\u8e52', 'pang': '\u4e53\u5e9e\u65c1\u802a\u80d6\u6ec2\u9004', 'pao': '\u629b\u5486\u5228\u70ae\u888d\u8dd1\u6ce1\u530f\u72cd\u5e96\u812c\u75b1', 'pei': '\u5478\u80da\u57f9\u88f4\u8d54\u966a\u914d\u4f69\u6c9b\u638a\u8f94\u5e14\u6de0\u65c6\u952b\u9185\u9708', 'pen': '\u55b7\u76c6\u6e53', 'peng': '\u7830\u62a8\u70f9\u6f8e\u5f6d\u84ec\u68da\u787c\u7bf7\u81a8\u670b\u9e4f\u6367\u78b0\u576f\u580b\u562d\u6026\u87db', 'pi': '\u7812\u9739\u6279\u62ab\u5288\u7435\u6bd7\u5564\u813e\u75b2\u76ae\u5339\u75de\u50fb\u5c41\u8b6c\u4e15\u9674\u90b3\u90eb\u572e\u9f19\u64d7\u567c\u5e80\u5ab2\u7eb0\u6787\u7513\u7765\u7f74\u94cd\u75e6\u7656\u758b\u868d\u8c94', 'pian': '\u7bc7\u504f\u7247\u9a97\u8c1d\u9a88\u728f\u80fc\u890a\u7fe9\u8e41', 'piao': '\u98d8\u6f02\u74e2\u7968\u527d\u560c\u5ad6\u7f25\u6b8d\u779f\u87b5', 'pie': '\u6487\u77a5\u4e3f\u82e4\u6c15', 'pin': '\u62fc\u9891\u8d2b\u54c1\u8058\u62da\u59d8\u5ad4\u6980\u725d\u98a6', 'ping': '\u4e52\u576a\u82f9\u840d\u5e73\u51ed\u74f6\u8bc4\u5c4f\u4fdc\u5a09\u67b0\u9c86', 'po': '\u5761\u6cfc\u9887\u5a46\u7834\u9b44\u8feb\u7c95\u53f5\u9131\u6ea5\u73c0\u948b\u94b7\u76a4\u7b38', 'pou': '\u5256\u88d2\u8e23', 'pu': '\u6251\u94fa\u4ec6\u8386\u8461\u83e9\u84b2\u57d4\u6734\u5703\u666e\u6d66\u8c31\u66dd\u7011\u530d\u5657\u6fee\u749e\u6c06\u9564\u9568\u8e7c', 'qi': '\u671f\u6b3a\u6816\u621a\u59bb\u4e03\u51c4\u6f06\u67d2\u6c8f\u5176\u68cb\u5947\u6b67\u7566\u5d0e\u8110\u9f50\u65d7\u7948\u7941\u9a91\u8d77\u5c82\u4e5e\u4f01\u542f\u5951\u780c\u5668\u6c14\u8fc4\u5f03\u6c7d\u6ce3\u8bab\u4e9f\u4e93\u573b\u8291\u840b\u847a\u5601\u5c7a\u5c90\u6c54\u6dc7\u9a90\u7eee\u742a\u7426\u675e\u6864\u69ed\u6b39\u797a\u61a9\u789b\u86f4\u871e\u7da6\u7dae\u8dbf\u8e4a\u9ccd\u9e92', 'qia': '\u6390\u6070\u6d3d\u845c', 'qian': '\u7275\u6266\u948e\u94c5\u5343\u8fc1\u7b7e\u4edf\u8c26\u4e7e\u9ed4\u94b1\u94b3\u524d\u6f5c\u9063\u6d45\u8c34\u5811\u5d4c\u6b20\u6b49\u4f65\u9621\u828a\u82a1\u8368\u63ae\u5c8d\u60ad\u614a\u9a9e\u6434\u8930\u7f31\u6920\u80b7\u6106\u94a4\u8654\u7b9d', 'qiang': '\u67aa\u545b\u8154\u7f8c\u5899\u8537\u5f3a\u62a2\u5af1\u6a2f\u6217\u709d\u9516\u9535\u956a\u8941\u8723\u7f9f\u8deb\u8dc4', 'qiao': '\u6a47\u9539\u6572\u6084\u6865\u77a7\u4e54\u4fa8\u5de7\u9798\u64ac\u7fd8\u5ced\u4fcf\u7a8d\u5281\u8bee\u8c2f\u835e\u6100\u6194\u7f32\u6a35\u6bf3\u7857\u8df7\u9792', 'qie': '\u5207\u8304\u4e14\u602f\u7a83\u90c4\u553c\u60ec\u59be\u6308\u9532\u7ba7', 'qin': '\u94a6\u4fb5\u4eb2\u79e6\u7434\u52e4\u82b9\u64d2\u79bd\u5bdd\u6c81\u82a9\u84c1\u8572\u63ff\u5423\u55ea\u5659\u6eb1\u6a8e\u8793\u887e', 'qing': '\u9752\u8f7b\u6c22\u503e\u537f\u6e05\u64ce\u6674\u6c30\u60c5\u9877\u8bf7\u5e86\u5029\u82d8\u570a\u6aa0\u78ec\u873b\u7f44\u7b90\u8b26\u9cad\u9ee5', 'qiong': '\u743c\u7a77\u909b\u8315\u7a79\u7b47\u928e', 'qiu': '\u79cb\u4e18\u90b1\u7403\u6c42\u56da\u914b\u6cc5\u4fc5\u6c3d\u5def\u827d\u72b0\u6e6b\u9011\u9052\u6978\u8d47\u9e20\u866c\u86af\u8764\u88d8\u7cd7\u9cc5\u9f3d', 'qu': '\u8d8b\u533a\u86c6\u66f2\u8eaf\u5c48\u9a71\u6e20\u53d6\u5a36\u9f8b\u8da3\u53bb\u8bce\u52ac\u8556\u8627\u5c96\u8862\u9612\u74a9\u89d1\u6c0d\u795b\u78f2\u766f\u86d0\u883c\u9eb4\u77bf\u9ee2', 'quan': '\u5708\u98a7\u6743\u919b\u6cc9\u5168\u75ca\u62f3\u72ac\u5238\u529d\u8be0\u8343\u737e\u609b\u7efb\u8f81\u754e\u94e8\u8737\u7b4c\u9b08', 'que': '\u7f3a\u7094\u7638\u5374\u9e4a\u69b7\u786e\u96c0\u9619\u60ab', 'qun': '\u88d9\u7fa4\u9021', 'ran': '\u7136\u71c3\u5189\u67d3\u82d2\u9aef', 'rang': '\u74e4\u58e4\u6518\u56b7\u8ba9\u79b3\u7a70', 'rao': '\u9976\u6270\u7ed5\u835b\u5a06\u6861', 'ruo': '\u60f9\u82e5\u5f31', 're': '\u70ed\u504c', 'ren': '\u58ec\u4ec1\u4eba\u5fcd\u97e7\u4efb\u8ba4\u5203\u598a\u7eab\u4ede\u834f\u845a\u996a\u8f6b\u7a14\u887d', 'reng': '\u6254\u4ecd', 'ri': '\u65e5', 'rong': '\u620e\u8338\u84c9\u8363\u878d\u7194\u6eb6\u5bb9\u7ed2\u5197\u5d58\u72e8\u7f1b\u6995\u877e', 'rou': '\u63c9\u67d4\u8089\u7cc5\u8e42\u97a3', 'ru': '\u8339\u8815\u5112\u5b7a\u5982\u8fb1\u4e73\u6c5d\u5165\u8925\u84d0\u85b7\u5685\u6d33\u6ebd\u6fe1\u94f7\u8966\u98a5', 'ruan': '\u8f6f\u962e\u670a', 'rui': '\u854a\u745e\u9510\u82ae\u8564\u777f\u868b', 'run': '\u95f0\u6da6', 'sa': '\u6492\u6d12\u8428\u5345\u4ee8\u6332\u98d2', 'sai': '\u816e\u9cc3\u585e\u8d5b\u567b', 'san': '\u4e09\u53c1\u4f1e\u6563\u5f61\u9993\u6c35\u6bf5\u7cc1\u9730', 'sang': '\u6851\u55d3\u4e27\u6421\u78c9\u98a1', 'sao': '\u6414\u9a9a\u626b\u5ac2\u57fd\u81ca\u7619\u9ccb', 'se': '\u745f\u8272\u6da9\u556c\u94e9\u94ef\u7a51', 'sen': '\u68ee', 'seng': '\u50e7', 'sha': '\u838e\u7802\u6740\u5239\u6c99\u7eb1\u50bb\u5565\u715e\u810e\u6b43\u75e7\u88df\u970e\u9ca8', 'shai': '\u7b5b\u6652\u917e', 'shan': '\u73ca\u82eb\u6749\u5c71\u5220\u717d\u886b\u95ea\u9655\u64c5\u8d61\u81b3\u5584\u6c55\u6247\u7f2e\u5261\u8baa\u912f\u57cf\u829f\u6f78\u59d7\u9a9f\u81bb\u9490\u759d\u87ee\u8222\u8dda\u9cdd', 'shang': '\u5892\u4f24\u5546\u8d4f\u664c\u4e0a\u5c1a\u88f3\u57a7\u7ef1\u6b87\u71b5\u89de', 'shao': '\u68a2\u634e\u7a0d\u70e7\u828d\u52fa\u97f6\u5c11\u54e8\u90b5\u7ecd\u52ad\u82d5\u6f72\u86f8\u7b24\u7b72\u8244', 'she': '\u5962\u8d4a\u86c7\u820c\u820d\u8d66\u6444\u5c04\u6151\u6d89\u793e\u8bbe\u538d\u4f58\u731e\u7572\u9e9d', 'shen': '\u7837\u7533\u547b\u4f38\u8eab\u6df1\u5a20\u7ec5\u795e\u6c88\u5ba1\u5a76\u751a\u80be\u614e\u6e17\u8bdc\u8c02\u5432\u54c2\u6e16\u6939\u77e7\u8703', 'sheng': '\u58f0\u751f\u7525\u7272\u5347\u7ef3\u7701\u76db\u5269\u80dc\u5723\u4e1e\u6e11\u5ab5\u771a\u7b19', 'shi': '\u5e08\u5931\u72ee\u65bd\u6e7f\u8bd7\u5c38\u8671\u5341\u77f3\u62fe\u65f6\u4ec0\u98df\u8680\u5b9e\u8bc6\u53f2\u77e2\u4f7f\u5c4e\u9a76\u59cb\u5f0f\u793a\u58eb\u4e16\u67ff\u4e8b\u62ed\u8a93\u901d\u52bf\u662f\u55dc\u566c\u9002\u4ed5\u4f8d\u91ca\u9970\u6c0f\u5e02\u6043\u5ba4\u89c6\u8bd5\u8c25\u57d8\u83b3\u84cd\u5f11\u5511\u9963\u8f7c\u8006\u8d33\u70bb\u793b\u94c8\u94ca\u87ab\u8210\u7b6e\u8c55\u9ca5\u9cba', 'shou': '\u6536\u624b\u9996\u5b88\u5bff\u6388\u552e\u53d7\u7626\u517d\u624c\u72e9\u7ef6\u824f', 'shu': '\u852c\u67a2\u68b3\u6b8a\u6292\u8f93\u53d4\u8212\u6dd1\u758f\u4e66\u8d4e\u5b70\u719f\u85af\u6691\u66d9\u7f72\u8700\u9ecd\u9f20\u5c5e\u672f\u8ff0\u6811\u675f\u620d\u7ad6\u5885\u5eb6\u6570\u6f31\u6055\u500f\u587e\u83fd\u5fc4\u6cad\u6d91\u6f8d\u59dd\u7ebe\u6bf9\u8167\u6bb3\u956f\u79eb\u9e6c', 'shua': '\u5237\u800d\u5530\u6dae', 'shuai': '\u6454\u8870\u7529\u5e05\u87c0', 'shuan': '\u6813\u62f4\u95e9', 'shuang': '\u971c\u53cc\u723d\u5b40', 'shui': '\u8c01\u6c34\u7761\u7a0e', 'shun': '\u542e\u77ac\u987a\u821c\u6042', 'shuo': '\u8bf4\u7855\u6714\u70c1\u84b4\u6420\u55cd\u6fef\u5981\u69ca\u94c4', 'si': '\u65af\u6495\u5636\u601d\u79c1\u53f8\u4e1d\u6b7b\u8086\u5bfa\u55e3\u56db\u4f3a\u4f3c\u9972\u5df3\u53ae\u4fdf\u5155\u83e5\u549d\u6c5c\u6cd7\u6f8c\u59d2\u9a77\u7f0c\u7940\u7960\u9536\u9e36\u801c\u86f3\u7b25', 'song': '\u677e\u8038\u6002\u9882\u9001\u5b8b\u8bbc\u8bf5\u51c7\u83d8\u5d27\u5d69\u5fea\u609a\u6dde\u7ae6', 'sou': '\u641c\u8258\u64de\u55fd\u53df\u55d6\u55fe\u998a\u6eb2\u98d5\u778d\u953c\u878b', 'su': '\u82cf\u9165\u4fd7\u7d20\u901f\u7c9f\u50f3\u5851\u6eaf\u5bbf\u8bc9\u8083\u5919\u8c21\u850c\u55c9\u612b\u7c0c\u89eb\u7a23', 'suan': '\u9178\u849c\u7b97', 'sui': '\u867d\u968b\u968f\u7ee5\u9ad3\u788e\u5c81\u7a57\u9042\u96a7\u795f\u84d1\u51ab\u8c07\u6fc9\u9083\u71e7\u772d\u7762', 'sun': '\u5b59\u635f\u7b0b\u836a\u72f2\u98e7\u69ab\u8de3\u96bc', 'suo': '\u68ad\u5506\u7f29\u7410\u7d22\u9501\u6240\u5522\u55e6\u5a11\u686b\u7743\u7fa7', 'ta': '\u584c\u4ed6\u5b83\u5979\u5854\u736d\u631e\u8e4b\u8e0f\u95fc\u6ebb\u9062\u69bb\u6c93', 'tai': '\u80ce\u82d4\u62ac\u53f0\u6cf0\u915e\u592a\u6001\u6c70\u90b0\u85b9\u80bd\u70b1\u949b\u8dc6\u9c90', 'tan': '\u574d\u644a\u8d2a\u762b\u6ee9\u575b\u6a80\u75f0\u6f6d\u8c2d\u8c08\u5766\u6bef\u8892\u78b3\u63a2\u53f9\u70ad\u90ef\u8548\u6619\u94bd\u952c\u8983', 'tang': '\u6c64\u5858\u642a\u5802\u68e0\u819b\u5510\u7cd6\u50a5\u9967\u6e8f\u746d\u94f4\u9557\u8025\u8797\u87b3\u7fb0\u91a3', 'thang': '\u5018\u8eba\u6dcc', 'theng': '\u8d9f\u70eb', 'tao': '\u638f\u6d9b\u6ed4\u7ee6\u8404\u6843\u9003\u6dd8\u9676\u8ba8\u5957\u6311\u9f17\u5555\u97ec\u9955', 'te': '\u7279', 'teng': '\u85e4\u817e\u75bc\u8a8a\u6ed5', 'ti': '\u68af\u5254\u8e22\u9511\u63d0\u9898\u8e44\u557c\u4f53\u66ff\u568f\u60d5\u6d95\u5243\u5c49\u8351\u608c\u9016\u7ee8\u7f07\u9e48\u88fc\u918d', 'tian': '\u5929\u6dfb\u586b\u7530\u751c\u606c\u8214\u8146\u63ad\u5fdd\u9617\u6b84\u754b\u94bf\u86ba', 'tiao': '\u6761\u8fe2\u773a\u8df3\u4f7b\u7967\u94eb\u7a95\u9f86\u9ca6', 'tie': '\u8d34\u94c1\u5e16\u841c\u992e', 'ting': '\u5385\u542c\u70c3\u6c40\u5ef7\u505c\u4ead\u5ead\u633a\u8247\u839b\u8476\u5a77\u6883\u8713\u9706', 'tong': '\u901a\u6850\u916e\u77b3\u540c\u94dc\u5f64\u7ae5\u6876\u6345\u7b52\u7edf\u75db\u4f5f\u50ee\u4edd\u833c\u55f5\u6078\u6f7c\u783c', 'tou': '\u5077\u6295\u5934\u900f\u4ea0', 'tu': '\u51f8\u79c3\u7a81\u56fe\u5f92\u9014\u6d82\u5c60\u571f\u5410\u5154\u580d\u837c\u83df\u948d\u9174', 'tuan': '\u6e4d\u56e2\u7583', 'tui': '\u63a8\u9893\u817f\u8715\u892a\u9000\u5fd2\u717a', 'tun': '\u541e\u5c6f\u81c0\u9968\u66be\u8c5a\u7a80', 'tuo': '\u62d6\u6258\u8131\u9e35\u9640\u9a6e\u9a7c\u692d\u59a5\u62d3\u553e\u4e47\u4f57\u5768\u5eb9\u6cb1\u67dd\u7823\u7ba8\u8204\u8dce\u9f0d', 'wa': '\u6316\u54c7\u86d9\u6d3c\u5a03\u74e6\u889c\u4f64\u5a32\u817d', 'wai': '\u6b6a\u5916', 'wan': '\u8c4c\u5f2f\u6e7e\u73a9\u987d\u4e38\u70f7\u5b8c\u7897\u633d\u665a\u7696\u60cb\u5b9b\u5a49\u4e07\u8155\u525c\u8284\u82cb\u83c0\u7ea8\u7efe\u742c\u8118\u7579\u873f\u7ba2', 'wang': '\u6c6a\u738b\u4ea1\u6789\u7f51\u5f80\u65fa\u671b\u5fd8\u5984\u7f54\u5c22\u60d8\u8f8b\u9b4d', 'wei': '\u5a01\u5dcd\u5fae\u5371\u97e6\u8fdd\u6845\u56f4\u552f\u60df\u4e3a\u6f4d\u7ef4\u82c7\u840e\u59d4\u4f1f\u4f2a\u5c3e\u7eac\u672a\u851a\u5473\u754f\u80c3\u5582\u9b4f\u4f4d\u6e2d\u8c13\u5c09\u6170\u536b\u502d\u504e\u8bff\u9688\u8473\u8587\u5e0f\u5e37\u5d34\u5d6c\u7325\u732c\u95f1\u6ca9\u6d27\u6da0\u9036\u5a13\u73ae\u97ea\u8ece\u709c\u7168\u71a8\u75ff\u8249\u9c94', 'wen': '\u761f\u6e29\u868a\u6587\u95fb\u7eb9\u543b\u7a33\u7d0a\u95ee\u520e\u6120\u960c\u6c76\u74ba\u97eb\u6b81\u96ef', 'weng': '\u55e1\u7fc1\u74ee\u84ca\u8579', 'wo': '\u631d\u8717\u6da1\u7a9d\u6211\u65a1\u5367\u63e1\u6c83\u83b4\u5e44\u6e25\u674c\u809f\u9f8c', 'wu': '\u5deb\u545c\u94a8\u4e4c\u6c61\u8bec\u5c4b\u65e0\u829c\u68a7\u543e\u5434\u6bcb\u6b66\u4e94\u6342\u5348\u821e\u4f0d\u4fae\u575e\u620a\u96fe\u6664\u7269\u52ff\u52a1\u609f\u8bef\u5140\u4ef5\u9622\u90ac\u572c\u82b4\u5e91\u6003\u5fe4\u6d6f\u5be4\u8fd5\u59a9\u9a9b\u727e\u7110\u9e49\u9e5c\u8708\u92c8\u9f2f', 'xi': '\u6614\u7199\u6790\u897f\u7852\u77fd\u6670\u563b\u5438\u9521\u727a\u7a00\u606f\u5e0c\u6089\u819d\u5915\u60dc\u7184\u70ef\u6eaa\u6c50\u7280\u6a84\u88ad\u5e2d\u4e60\u5ab3\u559c\u94e3\u6d17\u7cfb\u9699\u620f\u7ec6\u50d6\u516e\u96b0\u90d7\u831c\u8478\u84f0\u595a\u550f\u5f99\u9969\u960b\u6d60\u6dc5\u5c63\u5b09\u73ba\u6a28\u66e6\u89cb\u6b37\u71b9\u798a\u79a7\u94b8\u7699\u7a78\u8725\u87cb\u823e\u7fb2\u7c9e\u7fd5\u91af\u9f37', 'xia': '\u778e\u867e\u5323\u971e\u8f96\u6687\u5ce1\u4fa0\u72ed\u4e0b\u53a6\u590f\u5413\u6380\u846d\u55c4\u72ce\u9050\u7455\u7856\u7615\u7f45\u9ee0', 'xian': '\u9528\u5148\u4ed9\u9c9c\u7ea4\u54b8\u8d24\u8854\u8237\u95f2\u6d8e\u5f26\u5acc\u663e\u9669\u73b0\u732e\u53bf\u817a\u9985\u7fa1\u5baa\u9677\u9650\u7ebf\u51bc\u85d3\u5c98\u7303\u66b9\u5a34\u6c19\u7946\u9e47\u75eb\u86ac\u7b45\u7c7c\u9170\u8df9', 'xiang': '\u76f8\u53a2\u9576\u9999\u7bb1\u8944\u6e58\u4e61\u7fd4\u7965\u8be6\u60f3\u54cd\u4eab\u9879\u5df7\u6a61\u50cf\u5411\u8c61\u8297\u8459\u9977\u5ea0\u9aa7\u7f03\u87d3\u9c9e\u98e8', 'xiao': '\u8427\u785d\u9704\u524a\u54ee\u56a3\u9500\u6d88\u5bb5\u6dc6\u6653\u5c0f\u5b5d\u6821\u8096\u5578\u7b11\u6548\u54d3\u54bb\u5d24\u6f47\u900d\u9a81\u7ee1\u67ad\u67b5\u7b71\u7bab\u9b48', 'xie': '\u6954\u4e9b\u6b47\u874e\u978b\u534f\u631f\u643a\u90aa\u659c\u80c1\u8c10\u5199\u68b0\u5378\u87f9\u61c8\u6cc4\u6cfb\u8c22\u5c51\u5055\u4eb5\u52f0\u71ee\u85a4\u64b7\u5ee8\u7023\u9082\u7ec1\u7f2c\u69ad\u698d\u6b59\u8e9e', 'xin': '\u85aa\u82af\u950c\u6b23\u8f9b\u65b0\u5ffb\u5fc3\u4fe1\u8845\u56df\u99a8\u8398\u6b46\u94fd\u946b', 'xing': '\u661f\u8165\u7329\u60fa\u5174\u5211\u578b\u5f62\u90a2\u884c\u9192\u5e78\u674f\u6027\u59d3\u9649\u8347\u8365\u64e4\u60bb\u784e', 'xiong': '\u5144\u51f6\u80f8\u5308\u6c79\u96c4\u718a\u828e', 'xiu': '\u4f11\u4fee\u7f9e\u673d\u55c5\u9508\u79c0\u8896\u7ee3\u83a0\u5cab\u9990\u5ea5\u9e3a\u8c85\u9af9', 'xu': '\u589f\u620c\u9700\u865a\u5618\u987b\u5f90\u8bb8\u84c4\u9157\u53d9\u65ed\u5e8f\u755c\u6064\u7d6e\u5a7f\u7eea\u7eed\u8bb4\u8be9\u5729\u84ff\u6035\u6d2b\u6e86\u987c\u6829\u7166\u7809\u76f1\u80e5\u7cc8\u9191', 'xuan': '\u8f69\u55a7\u5ba3\u60ac\u65cb\u7384\u9009\u7663\u7729\u7eda\u5107\u8c16\u8431\u63ce\u9994\u6ceb\u6d35\u6e32\u6f29\u7487\u6966\u6684\u70ab\u714a\u78b9\u94c9\u955f\u75c3', 'xue': '\u9774\u859b\u5b66\u7a74\u96ea\u8840\u5671\u6cf6\u9cd5', 'xun': '\u52cb\u718f\u5faa\u65ec\u8be2\u5bfb\u9a6f\u5de1\u6b89\u6c5b\u8bad\u8baf\u900a\u8fc5\u5dfd\u57d9\u8340\u85b0\u5ccb\u5f87\u6d54\u66db\u7aa8\u91ba\u9c9f', 'ya': '\u538b\u62bc\u9e26\u9e2d\u5440\u4e2b\u82bd\u7259\u869c\u5d16\u8859\u6daf\u96c5\u54d1\u4e9a\u8bb6\u4f22\u63e0\u5416\u5c88\u8fd3\u5a05\u740a\u6860\u6c29\u7811\u775a\u75d6', 'yan': '\u7109\u54bd\u9609\u70df\u6df9\u76d0\u4e25\u7814\u8712\u5ca9\u5ef6\u8a00\u989c\u960e\u708e\u6cbf\u5944\u63a9\u773c\u884d\u6f14\u8273\u5830\u71d5\u538c\u781a\u96c1\u5501\u5f66\u7130\u5bb4\u8c1a\u9a8c\u53a3\u9765\u8d5d\u4fe8\u5043\u5156\u8ba0\u8c33\u90fe\u9122\u82ab\u83f8\u5d26\u6079\u95eb\u960f\u6d07\u6e6e\u6edf\u598d\u5ae3\u7430\u664f\u80ed\u814c\u7131\u7f68\u7b75\u917d\u9b47\u990d\u9f39', 'yang': '\u6b83\u592e\u9e2f\u79e7\u6768\u626c\u4f6f\u75a1\u7f8a\u6d0b\u9633\u6c27\u4ef0\u75d2\u517b\u6837\u6f3e\u5f89\u600f\u6cf1\u7080\u70ca\u6059\u86d8\u9785', 'yao': '\u9080\u8170\u5996\u7476\u6447\u5c27\u9065\u7a91\u8c23\u59da\u54ac\u8200\u836f\u8981\u8000\u592d\u723b\u5406\u5d3e\u5fad\u7039\u5e7a\u73e7\u6773\u66dc\u80b4\u9e5e\u7a88\u7e47\u9cd0', 'ye': '\u6930\u564e\u8036\u7237\u91ce\u51b6\u4e5f\u9875\u6396\u4e1a\u53f6\u66f3\u814b\u591c\u6db2\u8c12\u90ba\u63f6\u9980\u6654\u70e8\u94d8', 'yi': '\u4e00\u58f9\u533b\u63d6\u94f1\u4f9d\u4f0a\u8863\u9890\u5937\u9057\u79fb\u4eea\u80f0\u7591\u6c82\u5b9c\u59e8\u5f5d\u6905\u8681\u501a\u5df2\u4e59\u77e3\u4ee5\u827a\u6291\u6613\u9091\u5c79\u4ebf\u5f79\u81c6\u9038\u8084\u75ab\u4ea6\u88d4\u610f\u6bc5\u5fc6\u4e49\u76ca\u6ea2\u8be3\u8bae\u8c0a\u8bd1\u5f02\u7ffc\u7fcc\u7ece\u5208\u5293\u4f7e\u8bd2\u572a\u572f\u57f8\u61ff\u82e1\u858f\u5f08\u5955\u6339\u5f0b\u5453\u54a6\u54bf\u566b\u5cc4\u5db7\u7317\u9974\u603f\u6021\u6092\u6f2a\u8fe4\u9a7f\u7f22\u6baa\u8d3b\u65d6\u71a0\u9487\u9552\u9571\u75cd\u7617\u7654\u7fca\u8864\u8734\u8223\u7fbf\u7ff3\u914f\u9edf', 'yin': '\u8335\u836b\u56e0\u6bb7\u97f3\u9634\u59fb\u541f\u94f6\u6deb\u5bc5\u996e\u5c39\u5f15\u9690\u5370\u80e4\u911e\u5819\u831a\u5591\u72fa\u5924\u6c24\u94df\u763e\u8693\u972a\u9f88', 'ying': '\u82f1\u6a31\u5a74\u9e70\u5e94\u7f28\u83b9\u8424\u8425\u8367\u8747\u8fce\u8d62\u76c8\u5f71\u9896\u786c\u6620\u5b34\u90e2\u8314\u83ba\u8426\u6484\u5624\u81ba\u6ee2\u6f46\u701b\u745b\u748e\u6979\u9e66\u763f\u988d\u7f42', 'yo': '\u54df\u5537', 'yong': '\u62e5\u4f63\u81c3\u75c8\u5eb8\u96cd\u8e0a\u86f9\u548f\u6cf3\u6d8c\u6c38\u607f\u52c7\u7528\u4fd1\u58c5\u5889\u6175\u9095\u955b\u752c\u9cd9\u9954', 'you': '\u5e7d\u4f18\u60a0\u5fe7\u5c24\u7531\u90ae\u94c0\u72b9\u6cb9\u6e38\u9149\u6709\u53cb\u53f3\u4f51\u91c9\u8bf1\u53c8\u5e7c\u5363\u6538\u4f91\u83b8\u5466\u56ff\u5ba5\u67da\u7337\u7256\u94d5\u75a3\u8763\u9c7f\u9edd\u9f2c', 'yu': '\u8fc2\u6de4\u4e8e\u76c2\u6986\u865e\u611a\u8206\u4f59\u4fde\u903e\u9c7c\u6109\u6e1d\u6e14\u9685\u4e88\u5a31\u96e8\u4e0e\u5c7f\u79b9\u5b87\u8bed\u7fbd\u7389\u57df\u828b\u90c1\u5401\u9047\u55bb\u5cea\u5fa1\u6108\u6b32\u72f1\u80b2\u8a89\u6d74\u5bd3\u88d5\u9884\u8c6b\u9a6d\u79ba\u6bd3\u4f1b\u4fe3\u8c00\u8c15\u8438\u84e3\u63c4\u5581\u5704\u5709\u5d5b\u72f3\u996b\u5ebe\u9608\u59aa\u59a4\u7ea1\u745c\u6631\u89ce\u8174\u6b24\u65bc\u715c\u71e0\u807f\u94b0\u9e46\u7610\u7600\u7ab3\u8753\u7afd\u8201\u96e9\u9f89', 'yuan': '\u9e33\u6e0a\u51a4\u5143\u57a3\u8881\u539f\u63f4\u8f95\u56ed\u5458\u5706\u733f\u6e90\u7f18\u8fdc\u82d1\u613f\u6028\u9662\u586c\u6c85\u5a9b\u7457\u6a7c\u7230\u7722\u9e22\u8788\u9f0b', 'yue': '\u66f0\u7ea6\u8d8a\u8dc3\u94a5\u5cb3\u7ca4\u6708\u60a6\u9605\u9fa0\u6a3e\u5216\u94ba', 'yun': '\u8018\u4e91\u90e7\u5300\u9668\u5141\u8fd0\u8574\u915d\u6655\u97f5\u5b55\u90d3\u82b8\u72c1\u607d\u7ead\u6b92\u6600\u6c32', 'za': '\u531d\u7838\u6742\u62f6\u5482', 'zai': '\u683d\u54c9\u707e\u5bb0\u8f7d\u518d\u5728\u54b1\u5d3d\u753e', 'zan': '\u6512\u6682\u8d5e\u74d2\u661d\u7c2a\u7ccc\u8db1\u933e', 'zang': '\u8d43\u810f\u846c\u5958\u6215\u81e7', 'zao': '\u906d\u7cdf\u51ff\u85fb\u67a3\u65e9\u6fa1\u86a4\u8e81\u566a\u9020\u7682\u7076\u71e5\u5523\u7f2b', 'ze': '\u8d23\u62e9\u5219\u6cfd\u4ec4\u8d5c\u5567\u8fee\u6603\u7b2e\u7ba6\u8234', 'zei': '\u8d3c', 'zen': '\u600e\u8c2e', 'zeng': '\u589e\u618e\u66fe\u8d60\u7f2f\u7511\u7f7e\u9503', 'zha': '\u624e\u55b3\u6e23\u672d\u8f67\u94e1\u95f8\u7728\u6805\u69a8\u548b\u4e4d\u70b8\u8bc8\u63f8\u5412\u54a4\u54f3\u600d\u781f\u75c4\u86b1\u9f44', 'zhai': '\u6458\u658b\u5b85\u7a84\u503a\u5be8\u7826', 'zhan': '\u77bb\u6be1\u8a79\u7c98\u6cbe\u76cf\u65a9\u8f97\u5d2d\u5c55\u8638\u6808\u5360\u6218\u7ad9\u6e5b\u7efd\u8c35\u640c\u65c3', 'zhang': '\u6a1f\u7ae0\u5f70\u6f33\u5f20\u638c\u6da8\u6756\u4e08\u5e10\u8d26\u4ed7\u80c0\u7634\u969c\u4ec9\u9123\u5e5b\u5d82\u7350\u5adc\u748b\u87d1', 'zhao': '\u62db\u662d\u627e\u6cbc\u8d75\u7167\u7f69\u5146\u8087\u53ec\u722a\u8bcf\u68f9\u948a\u7b0a', 'zhe': '\u906e\u6298\u54f2\u86f0\u8f99\u8005\u9517\u8517\u8fd9\u6d59\u8c2a\u966c\u67d8\u8f84\u78d4\u9e67\u891a\u8707\u8d6d', 'zhen': '\u73cd\u659f\u771f\u7504\u7827\u81fb\u8d1e\u9488\u4fa6\u6795\u75b9\u8bca\u9707\u632f\u9547\u9635\u7f1c\u6862\u699b\u8f78\u8d48\u80d7\u6715\u796f\u755b\u9e29', 'zheng': '\u84b8\u6323\u7741\u5f81\u72f0\u4e89\u6014\u6574\u62ef\u6b63\u653f\u5e27\u75c7\u90d1\u8bc1\u8be4\u5ce5\u94b2\u94ee\u7b5d', 'zhi': '\u829d\u679d\u652f\u5431\u8718\u77e5\u80a2\u8102\u6c41\u4e4b\u7ec7\u804c\u76f4\u690d\u6b96\u6267\u503c\u4f84\u5740\u6307\u6b62\u8dbe\u53ea\u65e8\u7eb8\u5fd7\u631a\u63b7\u81f3\u81f4\u7f6e\u5e1c\u5cd9\u5236\u667a\u79e9\u7a1a\u8d28\u7099\u75d4\u6ede\u6cbb\u7a92\u536e\u965f\u90c5\u57f4\u82b7\u646d\u5e19\u5fee\u5f58\u54ab\u9a98\u6809\u67b3\u6800\u684e\u8f75\u8f7e\u6534\u8d3d\u81a3\u7949\u7957\u9ef9\u96c9\u9e37\u75e3\u86ed\u7d77\u916f\u8dd6\u8e2c\u8e2f\u8c78\u89ef', 'zhong': '\u4e2d\u76c5\u5fe0\u949f\u8877\u7ec8\u79cd\u80bf\u91cd\u4ef2\u4f17\u51a2\u953a\u87bd\u8202\u822f\u8e35', 'zhou': '\u821f\u5468\u5dde\u6d32\u8bcc\u7ca5\u8f74\u8098\u5e1a\u5492\u76b1\u5b99\u663c\u9aa4\u5544\u7740\u501c\u8bf9\u836e\u9b3b\u7ea3\u80c4\u78a1\u7c40\u8233\u914e\u9cb7', 'zhu': '\u73e0\u682a\u86db\u6731\u732a\u8bf8\u8bdb\u9010\u7af9\u70db\u716e\u62c4\u77a9\u5631\u4e3b\u8457\u67f1\u52a9\u86c0\u8d2e\u94f8\u7b51\u4f4f\u6ce8\u795d\u9a7b\u4f2b\u4f8f\u90be\u82ce\u8331\u6d19\u6e1a\u6f74\u9a7a\u677c\u69e0\u6a65\u70b7\u94e2\u75b0\u7603\u86b0\u7afa\u7bb8\u7fe5\u8e85\u9e88', 'zhua': '\u6293', 'zhuai': '\u62fd', 'zhuan': '\u4e13\u7816\u8f6c\u64b0\u8d5a\u7bc6\u629f\u556d\u989b', 'zhuang': '\u6869\u5e84\u88c5\u5986\u649e\u58ee\u72b6\u4e2c', 'zhui': '\u690e\u9525\u8ffd\u8d58\u5760\u7f00\u8411\u9a93\u7f12', 'zhun': '\u8c06\u51c6', 'zhuo': '\u6349\u62d9\u5353\u684c\u7422\u8301\u914c\u707c\u6d4a\u502c\u8bfc\u5ef4\u855e\u64e2\u555c\u6d5e\u6dbf\u6753\u712f\u799a\u65ab', 'zi': '\u5179\u54a8\u8d44\u59ff\u6ecb\u6dc4\u5b5c\u7d2b\u4ed4\u7c7d\u6ed3\u5b50\u81ea\u6e0d\u5b57\u8c18\u5d6b\u59ca\u5b73\u7f01\u6893\u8f8e\u8d40\u6063\u7726\u9531\u79ed\u8014\u7b2b\u7ca2\u89dc\u8a3e\u9cbb\u9aed', 'zong': '\u9b03\u68d5\u8e2a\u5b97\u7efc\u603b\u7eb5\u8159\u7cbd', 'zou': '\u90b9\u8d70\u594f\u63cd\u9139\u9cb0', 'zu': '\u79df\u8db3\u5352\u65cf\u7956\u8bc5\u963b\u7ec4\u4fce\u83f9\u5550\u5f82\u9a75\u8e74', 'zuan': '\u94bb\u7e82\u6525\u7f35', 'zui': '\u5634\u9189\u6700\u7f6a', 'zun': '\u5c0a\u9075\u6499\u6a3d\u9cdf', 'zuo': '\u6628\u5de6\u4f50\u67de\u505a\u4f5c\u5750\u5ea7\u961d\u963c\u80d9\u795a\u9162', 'cou': '\u85ae\u6971\u8f8f\u8160', 'nang': '\u652e\u54dd\u56d4\u9995\u66e9', 'o': '\u5594', 'dia': '\u55f2', 'chuai': '\u562c\u81aa\u8e39', 'cen': '\u5c91\u6d94', 'diu': '\u94e5', 'nou': '\u8028', 'fou': '\u7f36', 'bia': '\u9adf' }; // CONCATENATED MODULE: ./src/base/utils/src/vue-py.js // import { pinyin } from './pyconst.js'; /* harmony default export */ var vue_py = ({ chineseToPinYin: function (l1) { var l2 = l1.length; var I1 = ''; var reg = new RegExp('[a-zA-Z0-9]'); var zmReg = new RegExp('[a-zA-Z]'); for (var i = 0; i < l2; i++) { var val = l1.substr(i, 1); if(reg.test(val)) { I1 += val; continue; } var name = this.arraySearch(val, pyconst_pinyin); if (reg.test(val)) { I1 += val; } else if (name !== false) { I1 += name; } } I1 = I1.replace(/ /g, '-'); while (I1.indexOf('--') > 0) { I1 = I1.replace('--', '-'); } return I1; }, arraySearch: function (l1, l2) { for (var name in pyconst_pinyin) { if (pyconst_pinyin[name].indexOf(l1) !== -1) { return this.ucfirst(name); } } return false; }, ucfirst: function (l1) { if (l1.length > 0) { var first = l1.substr(0, 1).toUpperCase(); var spare = l1.substr(1, l1.length); return first + spare; } } }); // EXTERNAL MODULE: ./node_modules/jr-qrcode/dist/jr-qrcode.js var jr_qrcode = __webpack_require__("4a37"); var jr_qrcode_default = /*#__PURE__*/__webpack_require__.n(jr_qrcode); // EXTERNAL MODULE: ./node_modules/jsbarcode/bin/JsBarcode.js var JsBarcode = __webpack_require__("62c5"); var JsBarcode_default = /*#__PURE__*/__webpack_require__.n(JsBarcode); // CONCATENATED MODULE: ./src/base/utils/src/string.js /** * showdoc * @catalog API/工具/Date * @title 字符串基础类 * @className ClientString * @modifier static * @method StringFunc * @demo */ const STR = { /** * showdoc * @catalog API/工具/String * @title 生成MD5 * @description 生成MD5 * @method md5 * @param str 必选 String 需生成的字符 * @return String * @number 60 */ md5: function (str) { return md5_default()(str); }, /** * showdoc * @catalog API/工具/String * @title 获取中文首字母拼音 * @description 获取中文首字母拼音 * @method getFirstPY * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getFirstPY: function (str) { if (!str) return ""; let SX = '', pinyin; str = str.toUpperCase(); if (str.constructor == Array) { pinyin = []; for (let i = 0; i < str.length; i++) { pinyin.push(vue_py.chineseToPinYin(str[i])); } } else pinyin = vue_py.chineseToPinYin(str); if (pinyin.constructor == Array) { let result = []; for (let j = 0; j < pinyin.length; j++) { let tempPY = pinyin[j], tempSX = ""; for (let i = 0; i < tempPY.length; i++) { let c = tempPY.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { tempSX += c; } } result.push(tempSX.toLowerCase()); } return result; } else { for (let i = 0; i < pinyin.length; i++) { let c = pinyin.charAt(i); if (/^[A-Z0-9]+$/.test(c)) { SX += c; } } return SX.toLowerCase(); } }, /** * showdoc * @catalog API/工具/String * @title 下载地址 * @description 获取下载地址 * @url getDownloadUrl(url,fileName) * @method getDownloadUrl * @param url 必选 url * @param fileName 必选 文件名 * @return String * @number 60 */ getDownloadUrl(url, fileName) { return window.eap.utils.biz.getDownloadUrl(url, fileName);; }, /** * showdoc * @catalog API/工具/String * @title 获取中文全拼音 * @description 获取中文全拼音 * @url getPinyin(str) * @method getPinyin * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getPinyin: function (str) { let result = []; if (!str) return ""; if (str.constructor == Array) { for (let i = 0; i < str.length; i++) { result.push(vue_py.chineseToPinYin(str[i]).toLowerCase()); } return result; } else return vue_py.chineseToPinYin(str).toLowerCase(); }, /** * showdoc * @catalog API/工具/String * @title 获取指定范围随机数 * @description 获取中文全拼音 * @url randomInt(min, max) * @method randomInt * @param min 必选 Int 起止数字 * @param max 必选 Int 结束数字 * @return String * @number 60 */ randomInt: function (min, max) { var Range = max - min; var Rand = Math.random(); return (min + Math.round(Rand * Range)); }, /** * showdoc * @catalog API/工具/String * @title 获取功能/流程路径 * @description 获取功能/流程路径 * @url getBizUrl(url) * @method getBizUrl * @param url 必选 url * @return String * @number 60 */ getBizUrl(url) { if (window.eap) return window.eap.utils.biz.getUrl(url); return url }, /** * showdoc * @catalog API/工具/String * @title 获取url地址栏参数 * @description 获取功能/流程路径 * @method getUrlValue * @param name 必选 name * @param url 选填 url * @return String * @number 60 */ getUrlValue: function (name, url) { var str = url || window.location.href; if (str.indexOf("&" + name) != -1 || str.indexOf("?" + name) != -1) { var pos_start = "" if (str.indexOf("?" + name) > -1) pos_start = str.indexOf("?" + name) + name.length + 2; else pos_start = str.indexOf("&" + name) + name.length + 2; var pos_end = str.indexOf("&", pos_start); if (pos_end == -1) { return str.substring(pos_start); } else { return str.substring(pos_start, pos_end) } } else { return ""; } }, /** * showdoc * @catalog API/工具/String * @title 设置url地址栏参数 * @description 获取功能/流程路径 * @url getUrlValue(name, url) * @method setUrlValue * @param url 选填 url * @param name 选填 name * @param pValue 选填 pValue * @return String * @number 60 */ setUrlValue: function (url, pName, pValue) { if (url == null || url == '') { return ''; } var arrUrl = url.split('?'); if (arrUrl.length <= 1) { return url + '?' + pName + '=' + pValue; } var paramArr = arrUrl[1].split('&'); var isAdd = true; for (var i = 0; i < paramArr.length; i++) { var valueArr = paramArr[i].split('='); if (valueArr[0] == pName) { paramArr[i] = pName + '=' + pValue; isAdd = false; } } if (isAdd) { paramArr[paramArr.length] = pName + '=' + pValue; } return arrUrl[0] + '?' + paramArr.join('&'); }, /** * showdoc * @catalog API/工具/String * @title 获取指定长度的ID * @description 获取指定长度的ID * @url id(len) * @method id * @param len 必选 Int 长度 * @return String * @number 60 */ id: function (len) { return (function (len, radix) { var chars = '012abcdefghuwxyz34MNOPQRSTUV567ijklmnopqrst89ABCDEFGHIJKLWXYZ' .split(''); // var chars = Scp.String.newGUID().replace(/-/g,"").split(""); var uuid = [], i; radix = radix || chars.length; if (len) { // Compact form for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix]; } else { // rfc4122, version 4 form var r; // rfc4122 requires these characters uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-'; uuid[14] = '4'; // Fill in random data. At i==19 set the high bits of clock // sequence as // per rfc4122, sec. 4.1.5 for (i = 0; i < 36; i++) { if (!uuid[i]) { r = 0 | Math.random() * 16; uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r]; } } } return uuid.join(''); })(len || 6, 61); }, /** * showdoc * @catalog API/工具/String * @title 获取GUID * @description 获取GUID * @url guid() * @method guid * @return String * @number 60 */ guid: function () { var nowDateTime = new Date(); var myRandom1 = this.randomInt(1, 1000); var myRandom2 = this.randomInt(1, 1000); var myRandom3 = this.randomInt(1, 1000); var decodeStr = nowDateTime.valueOf() + "-" + nowDateTime.getMilliseconds() + "-" + myRandom1 + "-" + myRandom2 + "-" + myRandom3; var encodeStr = this.md5(decodeStr); var guid = encodeStr.substring(0, 8) + "-" + encodeStr.substring(8, 12) + "-" + encodeStr.substring(12, 16) + "-" + encodeStr.substring(16, 20) + "-" + encodeStr.substring(20, 32); return guid.toUpperCase(); }, /** * showdoc * @catalog API/工具/String * @title 字符格式化 * @description 字符格式化 * @url format() * @method format(str,$1,$2,$3......) * @param str 必选 String 需格式化的字符 * @param $1 必选 String 需替换的$1 * @param $2 必选 String 需替换的$2 * @param $3 必选 String 需替换的$3 * @return String * @number 60 */ format: function () { if (arguments.length == 0) return ''; var argArray = Array.prototype.slice.call(arguments); var result = argArray.shift(); if (argArray.length == 1 && typeof (argArray[0]) == "object") { var args = argArray[0]; for (var key in args) { if (args[key] != undefined) { let reg = new RegExp("({" + key + "})", "g"); result = result.replace(reg, args[key]); } } } else { for (var i = 0; i < argArray.length; i++) { if (argArray[i] != undefined) { let reg = new RegExp("({)" + i + "(})", "g"); result = result.replace(reg, argArray[i]); } } } return result; }, controlGuid(key) { return (key || '').replace(/[.|#|@|*|\?|\(|\)|<|>|\{|\|\^|\$}]/gi, '_') + '_' + STR.id(8); }, /** * showdoc * @catalog API/工具/String * @title 转换人民币大写 * @description 转换人民币大写 * @method upperMoney * @param numberValue 必选 numberValue * @return String * @number 60 */ upperMoney(numberValue) { var numberValue = new String(Math.round(Math.abs(numberValue) * 100)); // 数字金额 var chineseValue = ""; // 转换后的汉字金额 var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 var String2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; // 对应单位 var len = numberValue.length; // numberValue 的字符串长度 var Ch1; // 数字的汉语读法 var Ch2; // 数字位的汉字读法 var nZero = 0; // 用来计算连续的零值的个数 var String3; // 指定位置的数值 if (len > 15) { alert("超出计算范围"); return ""; } if (numberValue == 0) { chineseValue = "零元整"; return chineseValue; } String2 = String2.substr(String2.length - len, len); // 取出对应位数的STRING2的值 for (var i = 0; i < len; i++) { String3 = parseInt(numberValue.substr(i, 1), 10); // 取出需转换的某一位的值 if (i != (len - 3) && i != (len - 7) && i != (len - 11) && i != (len - 15)) { if (String3 == 0) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } } else { // 该位是万亿,亿,万,元位等关键位 if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 != 0 && nZero == 0) { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 == 0 && nZero >= 3) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else { Ch1 = ""; Ch2 = String2.substr(i, 1); nZero = nZero + 1; } if (i == (len - 11) || i == (len - 3)) { // 如果该位是亿位或元位,则必须写上 Ch2 = String2.substr(i, 1); } } chineseValue = chineseValue + Ch1 + Ch2; } if (String3 == 0) { // 最后一位(分)为0时,加上“整” chineseValue = chineseValue + "整"; } return chineseValue; }, /** * showdoc * @catalog API/工具/String * @title 分解附件 * @description 分解附件 * @url format() * @method splitAttach * @param val 必选 附件值 * @return String * @number 60 */ splitAttach(val) { var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } list.push({ name: arr[i].split(";")[0], size: arr[i].split(";")[1], path: arr[i].split(";")[2], url: `${path}?relativePath=${arr[i].split(";")[2]}`, }); } return list; }, /** * showdoc * @catalog API/工具/String * @title 附件图片地址 * @description 附件图片地址 * @url format() * @method splitAttachImgUrl * @param val 必选 附件值 * @return String * @number 60 */ splitAttachImgUrl(val) { if (!val) return; var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } if (arr[i].split(";").length > 2) { list = this.splitAttach(val) break; } else { if (arr[0].indexOf("http://") != -1) { list.push({ url: arr[0], }); } else { list.push({ url: `${path}?relativePath=${arr[0]}`, }); } } } return list[0].url; }, /** * showdoc * @catalog API/工具/String * @title 获取二维码 * @description 生成二维码Base64 URL * @url getQrcode(text, options) * @method getQrcode * @param text 必选,要生成二维码的字符,支持中文 string * @param options 配置对象 object * @return String * @number 60 */ getQrcode(text, options = {}) { if (!text) return; let imgBase64 = jr_qrcode_default.a.getQrBase64(text, options); return imgBase64 }, /** * showdoc * @catalog API/工具/String * @title 获取条形码 * @description 生成条形码Base64 URL * @url getBarcode(text, options) * @method getBarcode * @param text 必选,要生成条形码的字符 string * @param options 配置对象 object * @return String * @number 60 */ getBarcode(text, options = {}) { if (!text) return; var canvas = document.createElement("canvas") JsBarcode_default()(canvas, text, options) return canvas.toDataURL("image/png") } } /* harmony default export */ var string = (STR); // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js const GLOBAL_LANG_HIUI = { "hi_common_cancel": "取消", "hi_common_confirm": "确定", //03472 //03472 "hi_query_all": '全部', "hi_query_noempty": "不能为空!", "hi_query_sysscheme": "系统方案", "hi_query_reset": "重置", "hi_query_btnname": "查询", "hi_query_more": "更多", "hi_order_defaultall": "综合", "hi_timescheme_month": '本月', "hi_timescheme_yeartonow": "今年至今", "hi_timescheme_last6month": "最近六个月", "hi_timescheme_today": "本日", "hi_timescheme_yesterday": "昨日", "hi_timescheme_last7days": "近7天", "hi_timescheme_last28days": "近28天", "hi_timescheme_last84days": "近84天", "hi_timescheme_startdate": "开始日期", "hi_timescheme_enddate": "结束日期", "hi_timescheme_year": "本年度", "hi_timescheme_week": "本周", "hi_timescheme_quarter": "本季度", "hi_timescheme_split": "到", "hi_timescheme_halfyear": "近半年", "hi_timescheme_oneyear": "近一年", "hi_pushdata_linkSelect": "请选择需要打开的链接!", "hi_pushdata_hasAuth": "当前请求功能您没有权限访问!", "hi_pushdata_requestError": "请求异常", "hi_treequery_placeholder": "输入关键字进行过滤", "hi_numberrange_splitstr": "到", "hi_datalist_nodata": "暂无数据!", "hi_importexcel_uploadname": "Excel上传", "hi_importexcel_templatename": "模板下载", "hi_importexcel_noallowfile": "不支持上传{0}格式!", "hi_importexcel_limitfilesize": "限制上传文件大小为{0}M!", "hi_exportexcel_exportname": "Excel导出", "hi_exportexcel_buildfile": "文件生成中", "hi_exportexcel_isdownload": "是否取消文件下载?", "hi_dataRequest_request": "数据请求中", "hi_dataRequest_isCacel": "是否取消请求?", "hi_dataRequest_tip": "提示", "hi_dataRequest_tip": "提示", "hi_dataRequest_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_confirm": "确定", "hi_exportexcel_cancel": "取消", "hi_exportexcel_builddatacomplate": "数据生成完成!", "hi_expression_close": "关闭", "hi_expression_confirm": "关闭", "hi_expression_dialogname": "表达式", //03472 //01521 begin "hi_page_confirm": "确定", "hi_page_cancel": "取消", "hi_page_prompt": "提示", "hi_page_cannotBeNull": "不能为空", "hi_page_outOfRange": "输入的字符超出", "hi_page_dataPromptNotSubmitted": "检测到有未提交的数据,是否还原", "hi_page_dataNotModified": "数据未修改", "hi_page_initializing": "正在初始化..", //01521 end "hi_table_file": "个文件", "hi_table_index": "序号", "hi_table_operate": "操作", "hi_table_add": "新增", "hi_table_del": "删除", "hi_table_addsub": "新增子节点", "hi_table_emptyText": "暂无数据", "hi_table_confirmFilter": "筛选", "hi_table_resetFilter": "重置", "hi_table_clearFilter": "全部", "hi_table_sumText": "合计", "hi_table_lockCol": "锁定列", "hi_table_unlockCol": "解锁列", "hi_table_fillUp": "向上填充", "hi_table_fillDown": "向下填充", "hi_table_copy": "复制", "hi_table_copyRow": "复制整行", "hi_table_copyCol": "复制整列", "hi_table_copyCell": "复制单元格", "hi_table_download": "下载", "hi_table_downloadAll": "下载所有", "hi_table_downloadSelect": "选中下载", "hi_table_maxAddNode": "最多只能添加{0}级节点", "hi_table_yesterday": "昨天", "hi_table_today": "今天", "hi_table_aweek": "一周", "hi_table_paste": "粘贴", "hi_table_pasteRow": "指定位整行粘贴", "hi_table_pasteCol": "指定位整列粘贴", "hi_table_pasteMsg": "navigator.clipboard 仅支持通过 HTTPS 提供的页面", "hi_table_colSetting": "字段配置", "hi_table_colsConfig": "列表字段配置", // 12112 "hi_messagebox_title": "提示", "hi_messagebox_confirm": "确定", "hi_messagebox_cancel": "取消", "hi_toolbar_add": "添加", "hi_toolbar_del": "删除", "hi_toolbar_reset": "取消", "hi_toolbar_save": "保存", "hi_toolbar_submit": "提交", "hi_toolbar_callout": "调单", "hi_toolbar_nexttache": "流转", "hi_toolbar_backtache": "回退", "hi_toolbar_signout": "加签", "hi_toolbar_processSign": "处理加签", "hi_toolbar_turnOut": "转办", "hi_toolbar_terminate": "终止", "hi_toolbar_umpire": "反审", "hi_toolbar_monitor": "流程监控", "hi_toolbar_savesuccess": "数据保存成功", "hi_toolbar_processflowsuccess": "流程处理成功", "hi_toolbar_limitequals": "请选择相同的:", "hi_toolbar_limitnoequals": "请选择不同的:", "hi_toolbar_limitnoequals1": "相同记录已跳过!", "hi_toolbar_finished": "流程结束", "hi_toolbar_actors": "下个执行者", "hi_toolbar_loader": "数据处理中...", "hi_toolbar_agree": "同意", "hi_toolbar_disagree": "不同意", "hi_toolbar_selectOneError": "至少选择一个执行者!", "hi_toolbar_removeallhint": "确定要删除所有记录吗?", "hi_toolbar_cancelhint": "确定要取消吗?", "hi_toolbar_umpirehint": "确定要启用反审吗?", "hi_toolbar_savehint": "数据未保存,是否保存数据?", "hi_toolbar_circulationway": "返回方式", "hi_toolbar_circulationway_default": "重新流转", "hi_toolbar_circulationway_again": "原路返回", "hi_toolbar_performType": "原路返回", "hi_toolbar_performType1": "独占", "hi_toolbar_performType2": "会签", "hi_toolbar_performType3": "顺序", "hi_toolbar_signType_BeforSign": "前加签", "hi_toolbar_signType_AfterSign": "后加签", "hi_toolbar_approvecomments": "审批意见", "hi_toolbar_assigneeLabel": "额外办理人", "hi_toolbar_previousName": "上一节点", "hi_toolbar_processor": "处理人", "hi_toolbar_previousCount": "节点处理人:共", "hi_toolbar_previousCount2": "人审批", "hi_toolbar_processortime": "处理时间", "hi_toolbar_username": "用户名", "hi_toolbar_userid": "用户ID", "hi_toolbar_userorgname": "编制名", "hi_toolbar_bzid": "编制ID", "hi_toolbar_collapse": "收起", "hi_toolbar_expand": "展开", "hi_form_required": " 必填!", "hi_tree_search": "输入关键字进行过滤", "hi_tree_addPeerBtn": "添加同级", "hi_tree_add": "添加", "hi_tree_edit": "编辑", "hi_tree_del": "删除", "hi_tree_noNode": "节点不存在", "hi_tree_removehint": "请先删除子节点!", "hi_calendar_add": "新增日程", "hi_calendar_refresh": "刷新", "hi_calendar_month": "月", "hi_calendar_week": "周", "hi_calendar_day": "日", "hi_calendar_between": "到", "hi_calendar_prevMonth": '上个月', "hi_calendar_nextMonth": '下个月', "hi_calendar_today": '今天', "hi_calendar_time": '时间', "hi_select_placeholder": "请选择", "hi_selectGrid_queryname": "请输入关键词", "hi_dataSelect_hasselect": "当前记录已选!", "hi_dataSelect_selectOneError": "至少选择一条记录!", "hi_dataSelect_Loading": "数据加载中...", "hi_dataSelect_selectall": "全选", "hi_dataSelect_clear": "清空", "hi_dataSelect_selectAdd": "添加选中", "hi_dataSelect_selectclear": "删除选中", "hi_dataSelect_queryCdionsNull": "明细条件未传!", "hi_dataSelect_numberFieldNull": "未配置单号!", "hi_dataSelect_nosoucredataset": "来源数据集不存在", "hi_dataSelect_noin": "数据不在查找范围内!", "hi_upload_deleteTip": '按 delete 键可删除', "hi_upload_uploadName": "点击上传", "hi_upload_delete": '删除', "hi_upload_removeall": '清空', "hi_upload_preview": '查看图片', "hi_upload_continue": '继续上传', "hi_upload_limit": "当前限制选择{0}个文件,本次选择了{1}个文件,共选择了{2}个文件", "hi_upload_fileExtension": "后缀为", "hi_upload_limitcount": "数量不超过{0}个", "hi_upload_fileSize": "大小不超过{0}M", "hi_upload_hint": "只能上传[ {0} ]文件", "hi_upload_fileExtensionLimit": "不支持上传{0}格式!", "hi_upload_files": "个文件", "hi_imagecropper_dialogtitle": "切图", "hi_imagecropper_select": "选择封面", "hi_imagecropper_scalebig": "放大", "hi_imagecropper_scalesmall": "缩小", "hi_imagecropper_rotateLeft": "左旋转", "hi_imagecropper_rotateRight": "右旋转", "hi_imagecropper_upload": "上传封面", "hi_imagecropper_error":"图片类型要求", "hi_mapSelect_translate": "坐标转换失败!", "hi_page_pageInit": "没有找到初始化接口配置,请在环境配置中新增pageInitUrl节点配置", "hi_page_pagecontrolstate": "页面控件状态", "hi_monitor_approvalRecord": "审批记录", "hi_monitor_flow": "流程", "hi_monitor_displayname": "流程名称", "hi_monitor_ordernumber": "流程编号", "hi_monitor_createtime": "创建时间", "hi_monitor_finishtime": "完成时间", "hi_monitor_flowstate": "流程状态", "hi_monitor_finish": "已完成", "hi_monitor_taskname": "任务名称", "hi_monitor_noReceived": "未接收", "hi_monitor_timeConsuming": "耗时", "hi_monitor_approver": "审批人", "hi_monitor_processingStatus": "处理状态", "hi_monitor_processe": "需处理", "hi_monitor_postscript": "附言", "hi_monitor_flowchart": "流程图", "hi_monitor_gantt": "甘特图", "hi_monitor_processed": "已处理", "hi_monitor_back": "回退", "hi_monitor_sysAuto": "系统自动流转", "hi_monitor_terminate": "终止", "hi_monitor_cancel": "取消", "hi_monitor_transfer": "转办", "hi_monitor_taskWithdraw": "任务撤回", "hi_monitor_tsBeforSigning": "前加签中", "hi_monitor_tsAfterSigning": "后加签中", "hi_monitor_tsBeforSignDW": "前加签处理", "hi_monitor_tsAfterSignDW": "后加签处理", "hi_monitor_tsBeforSigned": "已前加签", "hi_monitor_tsAfterSigned": "已后加签", "hi_monitor_day": "天", "hi_monitor_hour": "小时", "hi_monitor_Min": "分", "hi_monitor_second": "秒", "hi_monitor_gantt_dept": "所属部门", "hi_monitor_gantt_role": "岗位职称", "hi_dbType_AuditPoint_0": "已审核", "hi_dbType_AuditPoint_1": "运行中", "hi_dbType_AuditPoint_2": "审批中", "hi_dbType_AuditPoint_99": "终止", "hi_dbType_boolean_yes": "是", "hi_dbType_boolean_no": "否" } /* harmony default export */ var zh_CN = (GLOBAL_LANG_HIUI); // CONCATENATED MODULE: ./src/locale/global.js const t = function (key) { let globalLang = (window.GLOBAL_LANG_HIUI || {}); let lang = Object.assign({}, zh_CN, globalLang); return lang[key] || key; }; // CONCATENATED MODULE: ./src/base/utils/src/dbType.js let _this = { dbString: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, type: "dbString", formType: { element: "el-input" } }, dbInt: { format: function (v, format) { v = parseInt(v); if (format == "eleAuditPoint") { let val = "" switch (v) { case 0: val = t("hi_dbType_AuditPoint_0") break; case 1: val = t("hi_dbType_AuditPoint_1") break; case 99: val = t("hi_dbType_AuditPoint_99") break; case 2: val = t("hi_dbType_AuditPoint_2") break; default: val = isNaN(v) ? "" : v } return val; } if (typeof (format) == "function") { return format.call(window, v); } if (isNaN(v)) { return ""; } v = v * 1; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } let val = _this.dbInt.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, // 数值型默认值不设置 defautlVal: 0, type: "dbInt", queryType: { element: "HiNumberRange" }, formType: { element: "hi-number", props: { precision: 0, "controls-position": "right" } } }, dbFloat: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbFloat.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbFloat", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbDouble: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!format) return v; return number.format(v, format); }, formatView: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } var val = _this.dbDouble.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbDouble", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbText: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (!format) return v; return v; }, formatView: function (v, format) { if (!format) return v; return v; }, type: "dbText", formType: { element: "el-input", props: { type: "textarea", rows: 5 } }, queryType: { element: "el-input", props: { } }, gridType: { element: "hi-textarea", props: { popup: true, rows: 5 } } }, dbBoolean: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v === "") { return ""; } if (typeof v != "boolean") { if (v * 1 == v) { v = parseInt(v); } } return (typeof v == "boolean" || typeof v == "number") ? (v ? t("hi_dbType_boolean_yes") : t("hi_dbType_boolean_no")) : v; }, formatView: function (v, format) { return _this.dbBoolean.format(v, format); }, parse: function (v) { if (v == "yes" || v == "是" || v == "1" || v == "true" || v == "y") return true; else return false; }, type: "dbBoolean", queryType: { element: "el-checkbox", props: { } }, formType: { element: "el-checkbox", props: { } } }, dbDatetime: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, /** * @property datetime.type * @description datetime类型 * @type {String} * @final * @static */ type: "dbDatetime", queryType: { element: "HiTimeScheme" }, formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbTimestamp: { format: function (v, format) { if (typeof (format) == "function") { return format.call(window, v); } if (v == null || v == "") return v; format = format || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, format) }, formatView: function (v, format) { return _this.dbDatetime.format(v, format); }, type: "dbTimestamp", formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbBasic: { type: "dbBasic" }, dbArray: { type: "dbArray" }, dbObject: { type: "dbObject" }, dbList: { type: "dbList" } } _this.dbDate = _this.dbDatetime; /* harmony default export */ var dbType = (_this); // CONCATENATED MODULE: ./src/base/utils/src/bom.js const bom = { getUrlParam(name) { let search = window.location.search; search = search.substring(1, search.length) let values = search.split("&"); let result = {}; for (let i = 0; i < values.length; i++) { const element = values[i]; let _val = element.split("="); result[_val[0]] = _val[1]; } if (name) return result[name]; return result; }, //打开链接 openUrl(url, paramters={}, method='get', target) { //创建form表单 let id = "formid" + (new Date()).valueOf(); if (!url.toLowerCase().startsWith("http") && window.eap) { url = window.eap.utils.biz.getUrl(url); } var formredwin = document.createElement("form"); formredwin.method = method || "get"; document.body.appendChild(formredwin); formredwin.target = target; formredwin.action = url for (var item in paramters) { if(url.indexOf(item+"=")>-1) continue; var inputObj = document.getElementById(`${id}_${item}`); if (inputObj) { inputObj.value = paramters[item]; } else { var opt = document.createElement("input"); opt.type = "hidden"; opt.name = item; opt.value = paramters[item]; formredwin.appendChild(opt); } } formredwin.submit(); formredwin.parentNode.removeChild(formredwin); }, mergeDefaultCfg(defaultCmp, controlCfg) { var result = null; var tempdefaultCmp = defaultCmp; for (var key in controlCfg) { if ((typeof controlCfg[key]) == "object") { controlCfg[key] = bom.recursionCfg(tempdefaultCmp, controlCfg[key]); } if (key == "crlName" && tempdefaultCmp[controlCfg["crlName"]] != undefined) { controlCfg = Object.assign({}, tempdefaultCmp[controlCfg["crlName"]], controlCfg); } } return controlCfg; }, recursionCfg(defaultCmp, recuCfg) { var tempdefaultCmp = defaultCmp; var result = null; for (var key in recuCfg) { if ((typeof recuCfg[key]) == "object") { recuCfg[key] = bom.recursionCfg(tempdefaultCmp, recuCfg[key]); } if (key == "crlName" && tempdefaultCmp[recuCfg["crlName"]] != undefined) { recuCfg = Object.assign({}, tempdefaultCmp[recuCfg["crlName"]], recuCfg); } } return recuCfg; } } /* harmony default export */ var src_bom = (bom); // CONCATENATED MODULE: ./src/base/utils/index.js let utils_date=date; let utils_number=number; let utils_string=string; let utils_dbType = dbType; let utils_bom = src_bom; /* harmony default export */ var utils = ({ date: utils_date,number: utils_number,string: utils_string,dbType: utils_dbType,bom: utils_bom }); let DateUtil=date; let NumberUtil=number; let StringUtil=string; let DbTypeUtil = dbType; let BomUtil = src_bom; // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/where.js const defOperate = "=" let where_WhereCondition = class WhereCondition { constructor(config) { config = config || {}; this.className = 'WhereCondition' this.enabled = null,// 新添加的 this.sign = null,// 操作符 this.name = null,// 属性 this.dataType = null,// 数据类型 this.tablefilter = null,// tablefilter this.value = null,// 值 this.enabled = true, this.setValue(config.name, config.value, config.dataType, config.sign, config.tablefilter); } setValue(property, value, dataType, operator, tablefilter) { this.sign = operator || "eq"; this.name = property || ""; this.dataType = dataType || types.string; this.value = value; this.enabled = true; this.tablefilter = tablefilter == undefined ? false : tablefilter; } getValue() { return { sign: this.sign, name: this.name, tablefilter: this.tablefilter, dataType: this.dataType, value: this.value, enabled: true }; } }; let where_Where = class Where { /** * showdoc * @title 查询条件 * @className Where * @method Where */ constructor(config, params = []) { config = config || {}; this.params = params this.className = 'Where' this.join = null this.items = null // _.extend(this, config); if (config.junction) config.join = config.junction; if (!config.join) config.join = "and"; if (config.criterionData == null) { if (!config.join) config.join = "and"; this.setWhereData(config.join, []); } else { var paramsDataType = typeof (config.criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(config.criterionData);//$.parseJSON(config.criterionData); break; case "object": objParamsData = config.criterionData; break; } this.setCriterionData(objParamsData); } } setValue(join, items) { this.setWhereData(join, items); } setWhereData(join, items) { this.join = join || "and"; this.items = items || []; } // setCriterionData(criterionData) { var paramsDataType = typeof (criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(criterionData); break; case "object": objParamsData = criterionData; break; } this.join = objParamsData.join || "and"; this.items = []; this.recursiveSetCriteria(this, objParamsData.items); } recursiveSetCriteria(where, items) { var me = this; if (items == null || items.length == 0) { where.items = []; return; } var subLen = items.length; for (var i = 0; i < subLen; i++) { var subItem = items[i]; if (subItem.join) { var whereItem = new Where({ join: subItem.join }); this.recursiveSetCriteria(whereItem, subItem.items); where.addWhere(whereItem); } else { if (subItem.sign) { var fieldName = subItem.name.replace("&[", "").replace("]", ""); fieldName = fieldName.replace("this.get('", "").replace( "')", ""); if (typeof subItem.value == "function") { var tempVal = me.filterValue(subItem.value) where.addCondition(fieldName, tempVal, subItem.dataType, subItem.sign, false, subItem.tablefilter); } else where.addCondition(fieldName, subItem.value, subItem.dataType, subItem.sign, false, subItem.tablefilter); } } } } // 过滤表达式 filterValue(valueExpress) { var me = this, val; val = valueExpress.call(this, ...this.params); return val; } /** * showdoc * @catalog API/工具/Where条件 * @title 添加where条件 * @description 添加where条件 * @method addWhere * @param where 必选 Where where条件 * @return void * @number 60 */ addWhere(where) { // if (where) { let isFind = false; for (let i = 0; i < this.items.length; i++) { let itemstr = JSON.stringify(this.items[i]) if (itemstr == JSON.stringify(where.toJSON())) { isFind = true; break; } } if (!isFind) this.items.push(where); } } /** * showdoc * @title 添加字段条件 * @description 添加字段条件 * @method addCondition * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param operator 必选 String 操作符(eq,noteq,in,notin,gt,lt,isnull,isnotnull,gteq,lteq,like,likeLeft,likeRight) * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ addCondition(property, value, dataType, operator, isCover, tablefilter) { if (value === null || value == undefined || value === "null") { operator = "isnull"; value = "null"; } if (operator === "isnull") value = "null"; //采用后端默认值 if (!operator && window.HIVUI_SETTING) operator = window.HIVUI_SETTING.queryOperate || 'eq'; if (!operator) operator = 'eq'; let value1, operateArray = ["in", "notIn"]; if (typeof value === "function") { value = value.call(); } if (isDate_default()(value)) { value = utils_date.format(value, 'yyyy-MM-dd hh:mm:ss') } if (operateArray.indexOf(operator) > -1 && value && (!(value instanceof Array))) { value1 = (value + "").split(","); } else { value1 = value; } if (isCover) for (var i = 0; i < this.items.length; i++) { if (property == this.items[i].name) { this.items[i].value = value1; this.items[i].tablefilter = tablefilter; this.items[i].dataType = dataType || types.string; this.items[i].sign = operator; return; } } var condition = new where_WhereCondition({ name: property, tablefilter: tablefilter, value: value1, sign: operator, dataType: dataType || types.string }); this.items.push(condition); } add(property, value, dataType, isCover, tablefilter) { this.addEqual(property, value, dataType, isCover, tablefilter) } _addEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "eq", isCover, tablefilter); } _addArray(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover, tablefilter); } _addNotIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } _addIsNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnull", isCover, tablefilter); } _addIsNotNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnotnull", isCover, tablefilter); } _addNotEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "noteq", isCover, tablefilter); } _addGreaterThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gt", isCover, tablefilter); } _addLessThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lt", isCover, tablefilter); } _addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gteq", isCover, tablefilter); } _addLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "like", isCover, tablefilter); } _addLessThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lteq", isCover, tablefilter); } _addLeftLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeLeft", isCover, tablefilter); } _addRightLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeRight", isCover, tablefilter); } /** * showdoc * @title 添加等于(=)操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method eq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ eq(property, value, dataType, isCover, tablefilter) { this._addEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加默认操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method def * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ def(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, null, isCover, tablefilter) } /** * showdoc * @title 添加in操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method in * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ in(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover , tablefilter); } /** * showdoc * @title 添加notin操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method notIn * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ notIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } /** * showdoc * @title 添加inRange 内操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method inRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ inRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "inRange", isCover , tablefilter); } /** * showdoc * @title 添加outRange 外操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method outRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ outRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "outRange", isCover, tablefilter); } /** * showdoc * @title 添加between操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method between * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ between(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "between", isCover, tablefilter); } /** * showdoc * @title 添加noteq不等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method noteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ noteq(property, value, dataType, isCover, tablefilter) { this._addNotEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gt(property, value, dataType, isCover, tablefilter) { this._addGreaterThan(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ gteq(property, value, dataType, isCover, tablefilter) { this._addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加小于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lt(property, value, dataType, isCover, tablefilter) { this._addLessThan(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加小于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ lteq(property, value, dataType, isCover, tablefilter) { this._addLessThanAndEqual(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method like * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ like(property, value, dataType, vtype, isCover, tablefilter) { this._addLike(property, value, dataType, isCover, tablefilter) } /** * showdoc * @title 添加左like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method leftLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ leftLike(property, value, dataType, isCover, tablefilter) { this._addLeftLike(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加右like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method rightLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ rightLike(property, value, dataType, isCover, tablefilter) { this._addRightLike(property, value, dataType, isCover, tablefilter); } getItemByIndex(i) { return this.items[i]; } deleteItemByIndex(i) { this.items.splice(i, 1); } getData() { var len = this.items.length; if (len == 0) { return null; } var whereData = { join: this.join, items: [] }; for (var i = 0; i < len; i++) { var item = this.items[i]; this.recursiveWhereData(whereData, item); } return whereData; } recursiveWhereData(whereData, item) { if (item.items) { var subLen = item.items.length; if (subLen > 0) { var subWhereData = { join: item.join, items: [] }; for (var i = 0; i < subLen; i++) { var subItem = item.items[i]; this.recursiveWhereData(subWhereData, subItem); } whereData.items.push(subWhereData); } } else { var itemCondition = item.getValue(); whereData.items.push(itemCondition); } } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件JSON数据 * @description 获取where条件JSON数据 * @method toJSON() * @return json * @number 60 */ toJSON() { return this.getData(); } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件字符串数据 * @description 获取where条件字符串数据 * @url toStr() * @method toStr() * @return String * @number 60 */ toStr() { return JSON.stringify(this.getData()); } /** * showdoc * @catalog API/工具/Where条件 * @title 根据字段ID返回该字段条件对象 * @description 根据字段ID返回该字段条件对象 * @param key 必选 String 字段名 * @method getConditionByKey(key) * @return json * @number 60 */ getConditionByKey(key) { var len = this.items.length; for (var i = 0; i < len; i++) { var item = this.items[i]; if (item.name && item.name == key) { return item; } else { if (!item.items || item.items.length == 0) return null; let _item = this._recursionWhere1(item.items, key); if (_item != null) return _item; } } return null; } _recursionWhere1(items, key) { var i = 0, len = items.length; for (; i < len; i++) { let item = items[i] if (item.name && item.name == key) return item if (item.name) continue; if (!item.items || item.items.length == 0) return null; item.items.length > 0 && this._recursionWhere1(item.items, key); } } // 应用存储过程 setCustomWhere(join) { var where = new Where({ join: join || "and" }); var i = 0, len = this.items.length; for (; i < len; i++) { if (this.items[i].name) { where.addCondition(this.items[i].name, this.items[i].value, this.items[i].dataType, this.items[i].sign, this.items[i].isCover, this.items[i].tablefilter); } else this._recursionWhere(where, this.items[i].items); } this.join = where.join; this.items = where.items; } // 递归where 所有 _recursionWhere(where, items) { var i = 0, len = items.length; for (; i < len; i++) { if (items[i].name) where.addCondition(items[i].name, items[i].value, items[i].dataType, items[i].sign, items[i].isCover, items[i].tablefilter); else this._recursionWhere(where, items[i].items); } } isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (has_default()(this, pageIndexKey) && has_default()(this, pageSizeKey)) return true; else return false; } setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起止页 getPageIndex * @description 获取当前where起止页。 * @url getPageIndex() * @method getPageIndex() * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 getPageSize * @description 获取当前where每页显示多少条。 * @url getPageSize() * @method getPageSize() * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } where_Where.prototype.equal = where_Where.prototype.eq /* harmony default export */ var queryHelper_where = (where_Where); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/orders.js class Orders { /** * showdoc * @title 查询排序 * @className Orders * @method Orders */ constructor(config) { config = config || {}; this.orderData = []; if (config.orderData) { this.orderData = config.orderData; } } getOrderItemModel() { return { name: "", desc: "", type: "desc" }; } /** * showdoc * @title 添加降序条件 * @description 添加降序条件 * @method addDesc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addDesc(property, desc) { this.addOrder(property, "desc", desc); } /** * showdoc * @catalog API/工具/Orders排序 * @title 添加升序 * @description 添加升序条件 * @method addAsc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void */ addAsc(property, desc) { this.addOrder(property, "asc", desc); } /** * showdoc * @title 添加排序 * @description 添加排序 * @method addOrder * @param property 必选 String 字段名 * @param type 必选 String 排序类型 * @param desc 可选 String 字段描述 * @return void * @number 1 */ addOrder(property, type, desc) { var orderItem = this.getOrderItemModel(); orderItem.name = property; orderItem.desc = desc; orderItem.type = type this.orderData.push(orderItem); } /** * showdoc * @title 获取order排序JSON数据 * @description 获取order排序JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { return this.orderData; } /** * showdoc * @title 获取order排序字符串数据 * @description 获取order排序字符串数据 * @method toStr * @return json * @number 60 */ toStr() { return JSON.stringify(this.orderData); } } // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/param.js class param_Param { /** * showdoc * @title 查询参数 * @className Param * @description 查询参数 * @method Param */ constructor(config) { config = config || {}; this.orders = null this.className = 'Params' this.paramKey = "queryParam" // _.extend(this, config); this.where = config.where || new queryHelper_where(); this.returnTotal = config.returnTotal; this.zcQuery = config.zcQuery; this.modelFilePath = config.modelFilePath || ""; this.orders = config.orders; this.slaveEntities = config.slaveEntities || []; if (config.initData) { this.setJsonParamsData(config.initData); } if (config.paramsData) { this.setJsonParamsData(config.paramsData); } if (config.whereData) { this.setJsonWhereData(config.whereData); } } createWhereByModel(values, model) { model = model || {} let where = new queryHelper_where(); for (let field in values) { let bizFiled = model.fields ? model.fields[field] : null; let val = values[field] if (val != null && val != "" && val != undefined) { if (bizFiled) { where[bizFiled.operate](field, val) } else { if (utils.isArray(val)) where.in(field, val) else where.def(field, val) } } } if (this.where) this.where.addConditions(where) else this.where = where; return where; } setJsonWhereData(whereData) { // 判断传入的值是否字符 if (!whereData) return; this.where = new queryHelper_where({ criterionData: whereData }); } setJsonParamsData(paramsData) { // 判断传入的值是否字符 if (!paramsData) return; var paramsDataType = typeof (paramsData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(paramsData); break; case "object": objParamsData = paramsData; break; } if (objParamsData.queryCdions) { this.where = new queryHelper_where({ criterionData: objParamsData.queryCdions }); } if (objParamsData.orders) { this.orders = new Orders({ orderData: objParamsData.orders }); } if (objParamsData.having) { this.having = new queryHelper_where({ criterionData: objParamsData.having.criterion }); } if (objParamsData.groupBy) { this.groupBy = objParamsData.groupBy } } /** * showdoc * @catalog API/工具/Param参数 * @title 设置分组 * @description 设置分组 * @method setGroup * @param groupFields 必选 Array 分组字段 * @return void * @number 60 */ setGroup(groupFields) { this.groupBy = groupFields; } /** * showdoc * @title 获取分组 * @description 获取分组 * @method getGroup * @return Array */ getGroup() { return this.groupBy; } /** * showdoc * @title 获取where条件 * @description 获取where条件 * @method getWhere * @return Where * @number 60 */ getWhere() { return this.where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置where条件 * @description 设置where条件 * @method setWhere * @param where 必选 where where条件 * @return void * @number 60 */ setWhere(where) { this.where = where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置Having条件 * @description 设置Having条件 * @method setHaving * @param where 必选 where where条件 * @return void * @number 60 */ setHaving(where) { this.having = where; } /** * showdoc * @title 获取Having条件 * @description 获取Having条件 * @method getHaving * @return void * @number 60 */ getHaving() { return this.having; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取排序条件 * @description 获取排序条件 * @method getOrders * @return void * @number 60 */ getOrders() { return this.orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置排序条件 * @description 设置排序条件 * @method setOrders * @param orders 必选 order对象 * @return void * @number 60 */ setOrders(orders) { this.orders = orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询JSON数据 * @description 获取查询JSON数据 * @method toJSON * @return json * @number 60 */ toJSON() { var params = {}; // params.having = {}; if (this.where) { var mycriterion = this.where.toJSON(); if (mycriterion) { params.queryCdions = this.where.toJSON(); } } /* * // if (this.having) { // var mycriterion = this.having.toJSON(); // * if (mycriterion) { // // params.having.criterion = * this.having.toJSON(); // } // } */ if (this.groupBy) { params.groupBy = this.groupBy; } if (this.orders) { params.orderBy = this.orders.toJSON(); } return params; } decodeStr(s) { return unescape(s.replace(/\\(u[0-9a-fA-F]{4})/gm, '%$1')); } setSlaveEntities(params){ this.slaveEntities = params; } toStringWithKey() { var json = {}, param = {}; // param[this.paramKey] = this.toJSON() let body = JSON.stringify(this.toJSON()); json[keys.body] = body; json[keys.pageIndex] = this[keys.pageIndex] || this.where[keys.pageIndex]; json[keys.pageSize] = this[keys.pageSize] || this.where[keys.pageSize]; json[keys.returnTotal] = this.returnTotal; json[keys.modelFilePath] = this.modelFilePath; json[keys.zcQuery] = this.zcQuery; if(this.slaveEntities.length>0) { var _slaveEntities = []; for(var i = 0;i<this.slaveEntities.length;i++) { _slaveEntities.push(this.slaveEntities[i].toStringWithKey()); } json[keys.slaveEntities] = JSON.stringify(_slaveEntities); } return json;// this.toJSON(); } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询字符串数据 * @description 获取查询字符串数据 * @method toStr * @return String * @number 60 */ toStr() { return JSON.stringify(this.toJSON()); } /** * showdoc * @title 是否有翻页条件 * @description 是否有翻页条件 * @method isPaging * @return boolean * @number 60 */ isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (_has(this, pageIndexKey) && _has(this, pageSizeKey)) return true; else return false; } /** * showdoc * @title 设置翻页 * @description 设置翻页 * @method setPage * @param pageIndex 必选 Int 起止页 * @param pageSize 必选 Int 每页显示多少条 * @return void * @number 60 */ setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起始页 * @description 获取当前where起始页 * @method getPageIndex * @return Int * @number 60 */ getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 * @description 获取当前where每页显示多少条 * @method getPageSize * @return Int * @number 60 */ getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } } // EXTERNAL MODULE: ./node_modules/lodash/isArray.js var isArray = __webpack_require__("6747"); var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/index.js //行转列 let queryHelper_rowToCol = (data, rowField, colField, valField) => { let result = [], row = {}; if (data.length > 0) { let rowSign = row[rowField] = data[0][rowField]; data.forEach(element => { //标识不一样就创建行 if (rowSign != element[rowField]) { result.push(row); row = {}; rowSign = element[rowField] row[rowField] = rowSign; } row[element[colField]] = element[valField] }); result.push(row); } return result; } let query = (param, modelFile, funcPath, { request, url, method, pn, extParam, viewItemId, rowToCol,async,success,fail}) => { let data = { "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data = paramInstance.toStringWithKey() } data.modelFilePath = modelFile; data[keys.funcpath] = funcPath; data[keys.viewItemId] = viewItemId; //将来要移到url中 //data.funcPath = funcPath; if (extParam) { Object.assign(data, extParam); } let promise //let dataUrl = url + "/" + modelFile; let dataUrl = url; funcPath = funcPath || "" if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } promise = request({ url: dataUrl, method: method || 'post', async:async, data: data, success:success, fail:fail }) // promise.then(res => { // //行转列 // if (rowToCol && rowToCol.rowField) { // res.dataPack.row = rowToCol(res.dataPack.row) // } // }) return promise } let getExportParam = ({ request, url, csv }) => { let params = { csv } return request({ url, method: 'get', params }) } let exportData = (param, modelFile, funcPath, { request, url, method, pn, viewItemId, extParam }) => { let data = { // "queryCdion": "{}" } if (param) { let paramInstance if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param } else if (param.className == "Params") { paramInstance = param } else { paramInstance = new param_Param(); let pageSize = null, pageIndex = null; let where = new queryHelper_where(); for (let field in param) { let val = param[field] if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")) } else where.in(field, val) } else where.def(field, val) } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize) paramInstance.where = where } data[keys.body] = paramInstance.toJSON()//paramInstance.toStringWithKey() data[keys.pageIndex] = paramInstance.where[keys.pageIndex]; data[keys.pageSize] = paramInstance.where[keys.pageSize]; data[keys.viewItemId] = viewItemId; //delete data[keys.zcQuery] //delete data[keys.returnTotal] } data[keys.funcpath] = funcPath; data.modelFilePath = modelFile; // if (param.zcQuery) // data[keys.slaveExport] = param.zcQuery //将来要移到url中 //data.funcPath = funcPath; if (extParam) { if (extParam.sheetStyle) { data[keys.sheetStyle] = extParam.sheetStyle; delete extParam.sheetStyle } if (extParam[keys.slaveExport] !== undefined) { data[keys.slaveExport] = extParam[keys.slaveExport]; delete extParam[keys.slaveExport] } } if (data[keys.slaveExport] == undefined && param.zcQuery) data[keys.slaveExport] = param.zcQuery let promise //let dataUrl = url + "/" + modelFile; let dataUrl; funcPath = funcPath || "" dataUrl = url; if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn; else dataUrl = dataUrl + "&pn=" + pn; } let psotData = {} if (data.title) { psotData.title = data.title; delete data.title; } psotData[keys.sheetDatas] = JSON.stringify([data]) psotData.__isIntercept = false; if (extParam) psotData = Object.assign(psotData, extParam); promise = request({ url: dataUrl, method: method || 'post', data: psotData }) return promise } /* harmony default export */ var queryHelper = ({ Param: param_Param, Where: queryHelper_where, types: types, Orders: Orders, query, exportData, rowToCol: queryHelper_rowToCol, getExportParam }); // EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js var cloneDeep = __webpack_require__("0644"); var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); // CONCATENATED MODULE: ./src/base/dataHelper/src/saveHelper/index.js const paramKey = { //subSetkeyVal:"$subSetkeyVal", root: '__body', version: "__version", data: 'data', funcPath: "__funcpath", modelFile: 'modelFilePath', funcFile: 'fpath', state: '$state', old: '$old', insertStateVal: 'rsInsert', updateStateVal: 'rsUpdate', removeStateVal: 'rsDelete', overrideStateVal: 'rsOverride', normalStateVal: "rsNormal", viewItemId: "viewItemId" } /** * showdoc * @title 数据保存包 * @className HiDataHelper * @description 数据保存包 * @method SavePackHelper * @demo * let modelFile = "数据集实体路径"; * let funcPath = "功能路径"; * let old={FNUMBER:"DH-2210-2201",FIELD1:'data1',FIELD2:'data2'}; //原始数据中必须包含主键字段值 * let data = {FIELD1:'d1',FIELD2:'d2'}; * let saveHelper = this.createSaveHelper(modelFile,funcPath); //在页面上下文,创建saveHelper * saveHelper.update(old,data); //组装更新包 * saveHelper.add({FNUMBER:"NEW-YYMMDD-9999",FIELD1:'a2',FIELD2:'a2'}); //组装新增包 * saveHelper.remove({FNUMBER:"DH-2210-2200"}); //组装删除包,删除数据中必须包含主键字段值 * saveHelper.save().then(res=>{ * //保存成功 * if(res.status==200){ * * } * }) */ class saveHelper_SavePackHelper { /** * @title 构造函数 * @description 保存助手构造函数 * @method HiDataHelper * @param modelFile 必选 string 数据集路径 * @param options 必选 json 请求选项 * @param options.request 必选 axios 请求对象 * @param options.url 必选 url 请求rul * @param options.pn 选填 pn 项目ID * @return HiDataHelper */ constructor(modelFile, funcPath, { request, url, wsUrl, pn, viewItemId, extParam, colToRow }) { this.className = "SavePackHelper" this.modelFile = modelFile; this.request = request; this.colToRow = colToRow; this.viewItemId = viewItemId; this._appendSavePack = []; funcPath = (funcPath || "") this.url = url; this.wsUrl = wsUrl; // if (url.endsWith("/") == false && funcPath.startsWith("/") == false) // this.url = url + "/" + (funcPath || ""); // else // this.url = url + (funcPath || ""); this.funcPath = funcPath; this.extParam = extParam; this.pn = pn; this.dataPacks = {}; this.dataPacks[paramKey.data] = []; this.dataPacks[paramKey.modelFile] = this.modelFile; //this.dataPacks[paramKey.funcPath] = this.funcPath; } //新增或删除包行转列 insertOrDeletePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {} _row[dynamic.rowField] = data[rowField] || (new Date()).valueOf(); for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) continue; let row = cloneDeep_default()(_row); row[colField] = colName; row[valField] = data[colName]; result.push(row); } return result; } //更新包行转列 updatePackageColToRow(data) { let dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 let _row = {}, _$old = {} _$old[dynamic.rowField] = data[paramKey.old][rowField] for (let colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (let colName in data) { if (colName.startsWith("$")) { continue; } let row = cloneDeep_default()(_row); let $old = cloneDeep_default()(_$old); row[valField] = data[colName]; $old[valField] = data[paramKey.old][colName]; $old[colField] = colName; row[paramKey.old] = $old; result.push(row); } return result; } //转数据 conversion(data) { if (data) { const result = {} for (const key in data) { const val = data[key] if (val === undefined) continue; if (isDate_default()(val)) { result[key] = utils_date.format(val, 'yyyy-MM-dd hh:mm:ss') } else if (val != null && typeof (val) == 'object' && !val[paramKey.modelFile]) { result[key] = JSON.stringify(val); } else { // if (paramKey.subSetkeyVal == val[paramKey.modelFile]){ // delete val[paramKey.modelFile] // } result[key] = val } } return result } } normal(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.normalStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 新增数据 * @description 新增数据 * @method add * @param data 必选 json 数据 * @return void */ add(data) { var me = this data = this.conversion(data) data[paramKey.state] = paramKey.insertStateVal if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * showdoc * @title 更新数据 * @description 更新数据 * @method update * @param old 必选 json 旧数据(原数据)必须包含主键字段 * @param data 必选 json 新数据(要更新的数据) * @return void * @demo * update({primaryField:1,Field1:0},{Field1:1,Field2:2}) */ update(old, data) { var me = this var row = {} data = this.conversion(data) old = this.conversion(old) for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.updateStateVal row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } setRedundant(old, data) { } /** * showdoc * @title 重写数据 * @description 重写数据包,数据库中有该数据就更新,没有则新增 * @method override * @param old 必选 json 旧数据(原数据) * @param data 必选 json 新数据(要更新或新增的数据)必须包含主键字段 * @return void * @number 400 */ override(old, data) { if (!data) { data = old; old = null; } if (old) old = this.conversion(old) data = this.conversion(data) var me = this var row = {} for (var a in data) { if (data[a] === void 0) { continue } row[a] = data[a] } row[paramKey.state] = paramKey.overrideStateVal if (old) row[paramKey.old] = old if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)) } else me.dataPacks[paramKey.data].push(row) } /** * showdoc * @title 删除数据 * @description 删除数据 * @method remove * @param data 必选 json 要删除据数据,必须包含主键字段 * @return void */ remove(data) { var me = this data[paramKey.state] = paramKey.removeStateVal data = this.conversion(data) if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)) } else me.dataPacks[paramKey.data].push(data) } /** * @title 获取数据包字符串 * @method toString * @description 获取数据包字符串 */ toString() { return JSON.stringify(this.dataPacks) } /** * showdoc * @title 清空数据包 * @description 清空数据包 * @method clear * @return void */ clear() { this.dataPacks = {} } /** * showdoc * @title 获取数据包 * @description 获取数据包 * @method getDataPack * @return json */ getDataPack() { return this.dataPacks } /** * showdoc * @title 是否含有数据包 * @description 是否含有数据包 * @method isEmpty * @return boolean */ isEmpty() { if (this.dataPacks[paramKey.data] && this.dataPacks[paramKey.data].length > 0) return false; return true; } /** * showdoc * @title 追加保存包 * @description 追加保存包 * @method appendSavePack * @param savePack 必选 json 保存包 * @return void */ appendSavePack(savePack) { this._appendSavePack.push(savePack) } /** * showdoc * @title 提交数据 * @description 提交数据 * @method save * @param options 非必选 json 提交时的附加参数 * @param beforeSubmitCallBack 非必选 json 提交前回调,参数:options, param * @return Promise */ save(options, beforeSubmitCallBack) { options = options || {}; let param = {} this._appendSavePack.unshift(this.getDataPack()) param[paramKey.root] = JSON.stringify(this._appendSavePack) // param[paramKey.version] = "1.0.0" param[paramKey.funcPath] = this.funcPath; param[paramKey.viewItemId] = this.viewItemId; if (this.extParam) Object.assign(param, this.extParam); Object.assign(param, options) if (beforeSubmitCallBack) { beforeSubmitCallBack.call(this, options, param, param[paramKey.root]); } let url = this.url if (this.pn) { if (url.indexOf('?') == -1) url = url + "?pn=" + this.pn; else url = url + "&pn=" + this.pn; } if (options.wsid) { if (url.indexOf('?') == -1) url = url + "?wsid=" + options.wsid; else url = url + "&wsid=" + options.wsid; } let showError = options.showError; delete options.showError; return this.request({ url: url, method: 'post', showError, data: param }) } wsSave(options={}, beforeSubmitCallBack) { let id = (new Date()).valueOf(); if (!this.wsUrl) { throw new Error("未配置webscoket保存地址[saveWsUrl]") } let wsUrl = this.wsUrl.replace("{id}",id); let ws = new WebSocket(wsUrl); let me = this; ws.addEventListener("open",function(){ options.wsid = id; options.showError = false, me.save(options, beforeSubmitCallBack) }) return ws; } } // CONCATENATED MODULE: ./src/base/dataHelper/src/flowHelper/index.js // 审批意见 let getApprovalInfo = ({ request, url, ftaskguid, flowtype }) => { let promise let dataUrl = url || src_hiSetting.getApprovalInfo if (ftaskguid) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?ftaskguid=" + ftaskguid; else dataUrl = dataUrl + "&ftaskguid=" + ftaskguid; } if (flowtype) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?flowtype=" + flowtype; else dataUrl = dataUrl + "&flowtype=" + flowtype; } promise = request({ url: dataUrl, method: 'post' }) return promise } // 处理流程 let processFlow = ({ request, url, data, param }) => { let promise; let dataUrl = url || src_hiSetting.processFlow; let __data = { __body: JSON.stringify(data), } if (param) { Object.assign(__data, param) } promise = request({ url: dataUrl, data: __data, method: 'post' }) return promise } // 任务中心查询 let queryTask = ({ request, url, param }) => { let promise; let dataUrl = url || src_hiSetting.queryTask; promise = request({ url: dataUrl, data: param, method: 'post' }) return promise } // 打开流程接口 let getFlowInfo = ({ request, url, data }) => { let promise; promise = request({ url: url || src_hiSetting.getFlowInfo, data: data, method: 'post' }) return promise } // 单号打开流程接口 let openOrdernumber = ({ request, fordernumber, url }) => { let promise; let dataUrl = url || src_hiSetting.openOrdernumber; let openurl = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: openurl, method: 'get' }) return promise } // 撤回 let withdrawtask = ({ request, url, ftaskguid }) => { let promise; let dataUrl = url || src_hiSetting.withdrawtask; let path = `${dataUrl}?ftaskguid=${ftaskguid}` promise = request({ url: path, method: 'get' }) return promise } // 反审 let umpireOrder = ({ request, url, fordernumber }) => { let promise; let dataUrl = url || src_hiSetting.umpireOrder; let path = `${dataUrl}?fordernumber=${fordernumber}` promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let taskDiagram = ({ request, url, forderguid, fmodelpath, fversion }) => { let promise; let dataUrl = url || src_hiSetting.taskDiagram; let path = `${dataUrl}?fmodelpath=${fmodelpath}${fversion ? ("&fversion=" + fversion) : ""}` if (forderguid) { path = path + "&forderguid=" + forderguid } promise = request({ url: path, method: 'get' }) return promise } // 流程监控 let ganttChart = ({ request, url, fordernumber }) => { let promise; let path; let dataUrl = url || src_hiSetting.ganttChart; if (fordernumber) { path = dataUrl + "?fordernumber=" + fordernumber } promise = request({ url: path, method: 'get' }) return promise } /* harmony default export */ var flowHelper = ({ getApprovalInfo, processFlow, queryTask, getFlowInfo, withdrawtask, taskDiagram, ganttChart, openOrdernumber, umpireOrder }); // CONCATENATED MODULE: ./src/base/dataHelper/src/funcHelper/index.js // 打开功能接口 let getFuncInfo = ({ request, url, data }) => { let promise; promise = request({ url: url, data: data, method: 'post' }) return promise } /* harmony default export */ var funcHelper = ({ getFuncInfo }); // CONCATENATED MODULE: ./src/base/dataHelper/src/index.js /* harmony default export */ var dataHelper_src = ({ queryHelper: queryHelper, saveHelper: saveHelper_SavePackHelper, flowHelper: flowHelper, funcHelper: funcHelper }); // CONCATENATED MODULE: ./src/base/dataHelper/index.js /* harmony default export */ var dataHelper = (dataHelper_src); // CONCATENATED MODULE: ./src/eap/user/org.js //调用org方法时一定要在service.js/initUser()之后 function getCurrentUser() { return window.eap.userInfo || {}; } function getMainUser() { if (window.eap.userInfo && window.eap.userInfo.main) return window.eap.userInfo.main; else if (window.eap.userInfo) return window.eap.userInfo; return {} } /* harmony default export */ var org = ({ /** * 当前用户ID * * @return */ userId: function () { return getMainUser().fuserid || ""; }, /** * 当前用户姓名 * * @return */ userName: function () { return getMainUser().fusername || ""; }, /** * 当前用户部门ID * * @return */ deptId: function () { return getMainUser().fdeptid || ""; }, /** * 当前用户部门名称 * * @return */ deptName: function () { return getMainUser().fdeptname || ""; }, /** * 当前用户岗位ID * * @return */ roleId: function () { return getMainUser().froleid || ""; }, /** * 当前用户岗位名称 * * @return */ roleName: function () { return getMainUser().frolename || ""; }, /** * 当前用户组织机构路径 * * @return */ orgPath: function () { return getMainUser().fuserorgpath || ""; }, orgName: function () { return getMainUser().forgname || ""; }, orgId: function () { return getMainUser().forgid || ""; }, //直属上级用户ID superId: function () { return getCurrentUser().fsuperuserid || ""; }, //直属上级用户姓名 superName: function () { return getCurrentUser().fsuperusername || ""; }, /***********编制******************************************************************************************* */ //用户编制ID bzId: function () { return getCurrentUser().fbzid || ""; }, //用户编制名称 bzName: function () { return getCurrentUser().fbzname || ""; }, //用户编制部门ID bzDeptId: function () { return getCurrentUser().fdeptid || ""; }, //用户编制部门名称 bzDeptName: function () { return getCurrentUser().fdeptname || ""; }, //用户编制岗位ID bzRoleId: function () { return getCurrentUser().froleid || ""; }, //用户编制岗位名称 bzRoleName: function () { return getCurrentUser().frolename || ""; }, //用户编制机构路径 bzOrgPath: function () { return getCurrentUser().fuserorgpath || ""; }, //用户编制机构名称 bzOrgName: function () { return getCurrentUser().forgname || ""; }, //用户编制机构ID bzOrgId: function () { return getCurrentUser().forgid || "" }, //当前用户所属公司的机构与部门ID orgDeptId:function(){ return (getCurrentUser().forgid || "") + "." + (getCurrentUser().fdeptid || ""); }, //当前用户所属公司的机构与部门名称 orgDeptName:function(){ return (getCurrentUser().forgname || "") + "." + (getCurrentUser().fdeptname || ""); }, //直属上级编制ID bzSuperId: function () { return getCurrentUser().fsuperbzid || ""; }, //直属上级编制名称 bzSuperName: function () { return getCurrentUser().fsuperbzname || ""; }, /** * 当前用户saas部门ID * * @return */ saasDeptId: function () { return getCurrentUser().fdeptid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /** * 当前用户saas岗位ID * * @return */ saasRoleId: function () { return getCurrentUser().froleid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /**********代理********************************************************************************************** */ /** * 当前代理用户ID * * @return */ proxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fuserid; }, /** * 当前代理用户姓名 * * @return */ proxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fusername; }, /** * 当前代理编制ID * * @return */ bzProxyId: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzid; }, /** * 当前代理编制名称 * * @return */ bzProxyName: function () { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzname }, /******************************************************************************************************** */ /** * 根据岗位ID获取用户编制号列表,逗号隔开 * * @param roleId * @return */ getBzByRole: function (roleId) { return [] }, /** * 根据部门ID获取用户编制号列表,逗号隔开 * * @param deptId * @return */ getBzByDept: function (deptId) { return ""; }, /** * 根据当前用户岗位ID获取编制号列表,逗号隔开 * * @return */ getBzByRole: function () { return getBzByRole(roleId()); }, /** * 根据当前用户部门ID获取编制号列表,逗号隔开 * * @return */ getBzByDept: function () { return getBzByDept(deptId()); }, }); // CONCATENATED MODULE: ./src/eap/utils/biz.js const modelPath = "/platf/useroperate/entity/SysUseroperate.xml"; function getWsUrl(url){ //补全URL if (!(url.toLowerCase().startsWith("ws://") || url.toLowerCase().startsWith("wss://"))) { let site = window.HIVUI_SETTING.url site = site.replace("https", "wss") site = site.replace("http", "ws") if (url.startsWith("/")) url = site + url; else url = site + "/" + url; } if (window.HIVUI_SETTING.projectName && url.indexOf('pn=') == -1 ) { let pn = window.HIVUI_SETTING.projectName; if (url.indexOf('?') == -1) url = url + "?pn=" + pn else url = url + "&pn=" + pn } return url; } function getUrl(url) { let project = window.HIVUI_SETTING.project || window.HIVUI_SETTING.projectName || ""; if (project.indexOf("/") != -1) project = project.split("/")[0] if (url.indexOf(".pro") != -1) { let _url = url; let param = ""; if (_url.indexOf("?") != -1) { _url = _url.substring(0, _url.lastIndexOf("?")) param = url.substring(url.lastIndexOf("?")) } let extName = _url.substring(_url.lastIndexOf(".")) url = _url.replace(/\.\w+/g, "") + extName + param; } if (project) { let arrUrl = url.split("/"); if (arrUrl[0] != "") arrUrl[0] = project; else arrUrl[1] = project; url = arrUrl.join("/"); } let newUrl = ""; if (url.startsWith("/")) newUrl = newUrl + url; else newUrl = newUrl + "/" + url; if (window.HIVUI_SETTING.projectName) { if (url.indexOf("?") != -1) newUrl = newUrl + "&pn=" + window.HIVUI_SETTING.projectName; else newUrl = newUrl + "?pn=" + window.HIVUI_SETTING.projectName; } return newUrl; } /* harmony default export */ var biz = ({ getWsUrl, createNumber() { return "NEW-YYMMDD-9999" }, //下载地址 getDownloadUrl(url, fileName) { var fileExtension = url.substr( url.lastIndexOf(".") + 1 ); var file_path = ""; if (!fileName) { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}`; } else { file_path = `${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${url }&access_token=${window.eap.user.auth.getToken()}&name=${fileName}.${fileExtension}`; } return file_path; }, //删除用户数据 delUserData(key, type) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.remove({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }); return saveHelper.save(); }, //查询用户数据 async getUserData(key, type) { var where = new dataHelper.queryHelper.Where({ junction: 'and' }); where.addCondition("FKEY", key, "dbString"); where.addCondition("FTYPE", type, "dbString"); where.addCondition("FUSERID", org.bzId(), "dbString"); var param = new dataHelper.queryHelper.Param({ where: where }); let result = await dataHelper.queryHelper.query(param, modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.queryUrl, pn: window.HIVUI_SETTING.projectName }); if (result.dataPack.rows.length > 0) return result.dataPack.rows[0].FVALUE; return null; }, //保存数据 saveUserData(key, data, type, desc) { let saveHelper = new dataHelper.saveHelper(modelPath, null, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName, }); saveHelper.override({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }, { FKEY: key, FUSERID: org.bzId(), FTYPE: type, FVALUE: typeof data == "string" ? data : JSON.stringify(data), FNAME: desc || "" }); return saveHelper.save(); } , getUrl, getResUrl(url) { return HIVUI_SETTING.deployDir + getUrl(url); } }); // CONCATENATED MODULE: ./src/eap/utils/index.js /* harmony default export */ var eap_utils = ({ biz: biz, FormFunc: biz, DateFunc: utils.date, NumberFunc: utils.number, StringFunc: utils.string, BomFunc: utils.bom, OrgFunc: org }); // CONCATENATED MODULE: ./src/eap/axios.js // create an axios instance const service = axios_default.a.create({ baseURL: "http://192.168.4.106:7777", timeout: 30 * 1000 // request timeout }) let hasMessageFunc = true; try { hasMessageFunc = !!(hasMessageFunc && external_ELEMENT_["Message"]); } catch (e) { hasMessageFunc = false; } service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8' // request拦截器 service.interceptors.request.use( config => { if (config.headers['Content-Type'] === undefined) { config.headers['Content-Type'] = 'application/json;charset=UTF-8' } const token = getToken(); //默认显示请求成功的返回信息 if(typeof(config.showSuccessTips)=="undefined"){ config.showSuccessTips=true; } //默认显示请求失败的返回信息 if(typeof(config.showError)=="undefined"){ config.showError=true; } if (token && !config.noToken && !(config.url.startsWith("http") && !config.url.startsWith(window.HIVUI_SETTING.url))) { config.headers['Authorization'] = 'Bearer ' + token; } let __localeLang = js_cookie_default.a.get("locale"); if (__localeLang) {//设置语言包 if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.locale = __localeLang; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "locale", __localeLang); } } if (window.HIVUI_SETTING) { let site = window.HIVUI_SETTING.url //补全URL if (!config.url.toLowerCase().startsWith("http")) { if (config.url.startsWith("/")) config.url = site + config.url; else config.url = site + "/" + config.url; } if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName && config.url.indexOf('pn=') == -1 && !(config.params && config.params.pn)) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } //岗位ID if (window.scpRequestData && window.scpRequestData.fbzid) { let fbzid = window.scpRequestData.fbzid; if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.fbzid = fbzid; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "fbzid", fbzid); } } } // 如果接口需要签名, 则通过请求时,headers中传递sign参数true const iSSign = config.headers['sign']; if (iSSign || iSSign === undefined) { const timeStamp = new Date().getTime().toString().substr(0, 10); config.headers['timeStamp'] = timeStamp; //config.headers['signature'] = sign(config, nonce, timeStamp, store.getters.appSecret) } //开启下载流模式 if (config.isDownload) { config.responseType = 'blob'; delete config.isDownload; } return config }, error => { // do something with request error return Promise.reject(error) } ) function MessageFunc(opt, res = {}) {//detailMsg\msg\message let messageCustomClass = eap_utils.StringFunc.id(8); let __position = { top: 15, margin: 20, right: 15 }; let isMsgBox = window.HIVUI_SETTING.messageType == "msgBox"; if (opt.showClose) {//关闭按钮多偏移 __position.margin += 15; __position.right += 25; } if (isMsgBox) { __position.top = 0; __position.right = 0; __position.margin = 20; } let msgTpl = `<div class="zhcDetailMsg" style="max-height:200px;min-height: 20px;padding:3px 0;word-break:break-all;margin-right: ${__position.margin}px;overflow:auto;transition:all 0.3s;"><span>${res.msg || res.resmessage}</span><i class="el-icon-caret-right" title="${(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || '弹出报错详情'}" style="position: absolute;top:${__position.top}px;right:${__position.right}px;font-size:18px;color:#F56C6C;cursor:pointer;transition:all 0.3s;"></i></div>`; let msgVue = null; let isShowDetail = res.detailMsg && (res.detailMsg != opt.message); opt.customClass = messageCustomClass; if (isMsgBox) { if (isShowDetail) { opt.message = msgTpl; } else { opt.message = `<div style="max-height:200px;word-break:break-all;overflow:auto;">${opt.message}</div>`; } msgVue = Object(external_ELEMENT_["MessageBox"])({ ...{ title: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_msgTips) || "消息提示", confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_define) || '确定', dangerouslyUseHTMLString: true }, ...opt }); } else { if (isShowDetail) { opt.message = msgTpl; opt.dangerouslyUseHTMLString = true; } msgVue = Object(external_ELEMENT_["Message"])(opt); } if (isShowDetail) { let arrowBtn = document.querySelector("." + messageCustomClass + " .zhcDetailMsg>i"); arrowBtn.onclick = () => { if (arrowBtn.previousSibling.className == "zhcDetailMsg") { arrowBtn.previousSibling.innerText = res.msg || res.resmessage; arrowBtn.previousSibling.className = ""; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail) || "弹出报错详情"; arrowBtn.style.color = "#F56C6C"; arrowBtn.style.transform = "rotate(0)"; } else { arrowBtn.previousSibling.innerText = res.detailMsg; arrowBtn.previousSibling.className = "zhcDetailMsg"; arrowBtn.title = (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_hideErrorDetail) || "收起报错详情"; arrowBtn.style.color = ""; arrowBtn.style.transform = "rotate(90deg)"; } }; } } function for401(isSkip) { // Alert('你已被登出,,点击确认按钮进入登录页', '登录超时', { // confirmButtonText: '确定', // callback: action => { // window.location.href = window.appsettings.login; // } // }); if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { let loginUrl = window.HIVUI_SETTING.customLoginUrl||window.HIVUI_SETTING.loginUrl if (window.HIVUI_SETTING.isSingleLogin) { loginUrl = window.HIVUI_SETTING.singleLoginUrl; if (loginUrl.endsWith("=")) { let params = window.location.search.slice(1).split("&").filter(item => { if (item.indexOf("ticket") == -1) { return item } }); let currPageUrl = window.location.origin + window.location.pathname; if (window.HIVUI_SETTING.mainPageUrl.indexOf(currPageUrl) == -1) { params.push("eapReturnUrl=" + currPageUrl); currPageUrl = window.HIVUI_SETTING.mainPageUrl; } currPageUrl = currPageUrl.replace(/#\//g, ""); loginUrl = loginUrl + currPageUrl + (params.length > 0 ? '?' : '') + params.join("&"); } } else { if (!loginUrl.endsWith("#/")) { loginUrl += "#/"; } loginUrl += "?eapReturnUrl=" + encodeURIComponent(window.location.href); } if ((top.window.mainPageInitErrorJump) || isSkip) { window.location.href = loginUrl; } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { window.location.href = loginUrl; }); } } } service.interceptors.response.use(response => { if (response.config.responseType == "arraybuffer") { return response; } if (response.config.normalResult) return response; const res = response.data; if (res.type == "application/octet-stream" || response.headers["content-type"] == "application/octet-stream") { return response; } else if (response.config.responseType == "blob") { //流数据抛错,将blob类型重新转换成json let fileReader = new FileReader(); fileReader.readAsText(res, 'utf-8'); fileReader.onload = function () { let __data = JSON.parse(fileReader.result); return hasMessageFunc && MessageFunc({ message: __data.msg || __data.message || 'Error', type: 'error', showClose: true, }, res) } return Promise.reject(res) } if (response.status != "200" || (response.data.status && response.data.status != "200")) { let data = {} try { data = JSON.parse(response.config.data) } catch (ex) { } if (data.__isIntercept === false) { if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return Promise.reject(res) } setTimeout(()=>{ hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res); },0); if (res.status == 401 || (res.data && res.data.status == 401)) { for401(response.config.isSkip); return Promise.reject(error) } //return Promise.reject(new Error(res.message || 'Error')) return Promise.reject(res, JSON.parse(response.config.data || "{}")) } else { res.dataPack = res.dataPack || res.data if ((res.detailMsg || res.msg) && response.config.showSuccessTips) { hasMessageFunc && MessageFunc({ message: res.detailMsg || res.msg || 'Error', type: (res.popupbox && res.popupbox.type) || 'success', showClose: true, duration: 5 * 1000 }, res); } if (response.config.data) { try { res.options = JSON.parse(response.config.data) } catch (e) { } } return res } }, error => { let res = error.response; if(error.config&&!error.config.showError){ return; } if (!res) { hasMessageFunc && MessageFunc({ message: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_responseNull) || '后端请求返回出错,请联系开发人员', type: 'error', showClose: true, duration: 5 * 1000 }); return; } let data = {} try { data = JSON.parse(res.config.data) } catch (ex) { } if (data.__isIntercept === false) { return Promise.reject(error) } if (res.status == 401 || (res.data && res.data.status == 401)) { for401(res.config.isSkip); return Promise.reject(error) } console.log('err' + error)// for debug // Message({ // message: error.message, // type: 'error', // duration: 5 * 1000 // }) return Promise.reject(error) }); /* harmony default export */ var eap_axios = (service); function ajax(config) { const token = getToken(); if (window.HIVUI_SETTING) { if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName) { let pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn else config.url = config.url + "&pn=" + pn } } //创建XMLHttpRequest对象 let url = config.url || ""; let method = config.method || "GET"; let data = config.data || {}; let success = config.success; let async = config.async == undefined ? true : config.async; let fail = config.fail; var xhr = new XMLHttpRequest(); //true表示异步 xhr.open(method, url, async); if (config.timeout && async === true) xhr.timeout = config.timeout; xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8'); if (token && !config.noToken && !(url.startsWith("http") && !url.startsWith(window.HIVUI_SETTING.url))) { xhr.setRequestHeader('Authorization', 'Bearer ' + token); } if (JSON.stringify(data) != "{}") { xhr.send(JSON.stringify(data)); } else { xhr.send(); } if (async == false) { if (xhr.status == 200) { var res = JSON.parse(xhr.responseText); success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } else { xhr.onreadystatechange = function () { // readyState == 4说明请求已完成 if (xhr.readyState == 4) { if (xhr.status == 200 || xhr.status == "200") { var res = JSON.parse(xhr.responseText); //responseText:从服务器获得数据 success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res) if (res.status == 401 || (res.data && res.data.status == 401)) { if (window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert((window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips) || '你已被登出,请重新登录', (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut) || '登录超时', { confirmButtonText: (window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist) || '重新登录', type: 'warning', showClose:false, }).then(() => { let loginUrl = window.HIVUI_SETTING.loginUrl if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl||loginUrl }) } } else fail && fail.call(this, xhr.responseText); } } }; } } // CONCATENATED MODULE: ./src/eap/request.js let request_service = eap_axios; //export default service /* harmony default export */ var eap_request = (function (cfg) { if ((window.isElectron || top.window.isElectron)) { var urlsCallback if (window.electronCfg) urlsCallback = window.electronCfg.urlCallback if (top.window.electronCfg) urlsCallback = top.window.electronCfg.urlCallback for (var key in urlsCallback) { if (cfg.url.indexOf(key) > -1) return urlsCallback[key](cfg); } } return eap_axios(cfg); }); // CONCATENATED MODULE: ./src/eap/user/service.js var service_request = eap_request; // if (window.HIVUI_SETTING) // request = window.HIVUI_SETTING.request; // else { // window.HIVUI_SETTING = hiSetting // } /** * 登陆 * @param {Id} 系统Id */ function login(userName, pwd) { var data = { username: userName.trim(), password: md5_default()(pwd) }; let _promise=service_request({ url: window.HIVUI_SETTING.login||(window.HIVUI_SETTING.serverUrl+"/login/sso-login"), method: 'post', data: data }); _promise.then(res=>{ const data = res if(data.token){ setToken(data.token); } if(location.hash=="#miniLogin"){//外部调用登录接口时小登录判断 if(eap_utils.StringFunc.getUrlValue("questType")=="ajax"){ top.window.SysPage&&top.window.SysPage.closeMiniLogin(eap_utils.StringFunc.getUrlValue("isRefresh")); }else{ location.reload(); } } }); return _promise; } /** * 登出 */ function logout() { if(!getToken()){ return new Promise((resolve, reject)=>{ resolve(); }); } let _promise=service_request({ url: window.HIVUI_SETTING.logout||(window.HIVUI_SETTING.serverUrl+"/login/sso-logout"), method: 'post' }); _promise.then(res=>{ removeToken(); }); return _promise; } /** * 获取用户信息 * @param {data} */ function getInfo(data) { return service_request({ url: window.HIVUI_SETTING.userInfo, method: 'post', data: data }) } function initUser(data) { let promise = getInfo(data) promise.then(res => { if (!window.eap) window.eap = {} window.eap.userInfo = res.dataPack; }) return promise; } //修改密码 function modifyPw(oldPwd, newPwd) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/user/update-pwd", method: 'post', data: { oldPwd, newPwd } }) } //获取岗位列表 function getBzList(data) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/auth/func-multi-bz", method: 'post', data: data }) } /** * 解锁账户 * @param {data} */ function unlock(userId,pwd) { var data = { userId: userId.trim(), password: md5_default()(pwd) }; return service_request({ url: window.HIVUI_SETTING.serverUrl + "/login/unlock", method: 'post', data: data }) } /* harmony default export */ var user_service = ({ login, logout, getInfo, modifyPw, getBzList, unlock }); // CONCATENATED MODULE: ./src/eap/user/index.js /* harmony default export */ var user = ({ service: user_service,auth: auth }); // CONCATENATED MODULE: ./src/eap/page/index.js /* harmony default export */ var page = ({ closepage() { if (top.window.SysPage && top.window.SysPage.closePage) { top.window.SysPage.closePage(); } else { window.close(); } }, /* title:标签页名称,不传则默认显示功能名称 url:标签页访问地址 params:携带参数 method:传"get"/"post"参数,不传默认为get target:传"me"/"_blank",me为当前标签页覆盖打开,_blank为必定新标签打开,不传参数则默认同url标签覆盖,不同的url打开新标签 */ newPage(title,url,params,method,target){ if(url&&url.indexOf("http")!=0){ url=location.origin+(top.window.deployDir?("/"+top.window.deployDir):'') + (top.window.pName?("/"+top.window.pName):'') + url; } if (top.window.SysPage && top.window.SysPage.newPage) { top.window.SysPage.newPage(title,url,params,method,target); } else { window.open(url,"_blank"); } } }); // CONCATENATED MODULE: ./src/eap/dataHelper/index.js //(param, modelFile, funcPath, { request, url, method, pn, extParam }) let dataHelper_query = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.queryUrl; // //request, url, method, pn, extParam return dataHelper.queryHelper.query(param, modelFile, funcPath, options) } let dataHelper_exportData = (param, modelFile, funcPath, options = {}) => { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName if (!options.url && setting) options.url = setting.exportUrl; //{ request, url, method, pn, extParam } return dataHelper.queryHelper.exportData(param, modelFile, funcPath, options) } class dataHelper_SaveHelper extends dataHelper.saveHelper { constructor(modelFile, funcPath, options = {}) { let setting = window.HIVUI_SETTING if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.saveUrl; //{ request, url, pn, extParam } super(modelFile, funcPath, options); } } /* harmony default export */ var eap_dataHelper = ({ query: dataHelper_query, exportData: dataHelper_exportData, Param: dataHelper.queryHelper.Param, Where: dataHelper.queryHelper.Where, types: dataHelper.queryHelper.types, Orders: dataHelper.queryHelper.Orders, SaveHelper: dataHelper_SaveHelper }); // EXTERNAL MODULE: ./node_modules/lodash/defaultsDeep.js var defaultsDeep = __webpack_require__("3f84"); var defaultsDeep_default = /*#__PURE__*/__webpack_require__.n(defaultsDeep); // EXTERNAL MODULE: ./package_eap.json var package_eap = __webpack_require__("ed27"); // CONCATENATED MODULE: ./src/eap/index.js function mergeConfig() { let args = [...arguments] return defaultsDeep_default()(...args) } let eap_lang = { get(key) { //return Vue.prototype.$t(key) let keys = {} if (window.lang && window.lang.keys) keys = window.lang.keys; return keys[key] || key; } } /* harmony default export */ var eap = ({ user: user,ajax: ajax, request: eap_request, mergeConfig, lang: eap_lang, utils: eap_utils, page: page, dataHelper: eap_dataHelper, }); //加载默认设至到全局 if (!window.HIVUI_SETTING) { window.HIVUI_SETTING = src_hiSetting; //console.log("已加载默认配置:", hiSetting) } window.lang = eap_lang //输出版本信息 console.log( '%c hi-eap-basic %c v'.concat(package_eap.version, ' '), 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #ff8e15; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;', ); //console.log(process.env.NODE_VER) // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (eap); /***/ }), /***/ "fba5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }), /***/ "fbb2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GenericBarcode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var GenericBarcode = function (_Barcode) { _inherits(GenericBarcode, _Barcode); function GenericBarcode(data, options) { _classCallCheck(this, GenericBarcode); return _possibleConstructorReturn(this, (GenericBarcode.__proto__ || Object.getPrototypeOf(GenericBarcode)).call(this, data, options)); // Sets this.data and this.text } // Return the corresponding binary numbers for the data provided _createClass(GenericBarcode, [{ key: "encode", value: function encode() { return { data: "10101010101010101010101010101010101010101", text: this.text }; } // Resturn true/false if the string provided is valid for this encoder }, { key: "valid", value: function valid() { return true; } }]); return GenericBarcode; }(_Barcode3.default); exports.GenericBarcode = GenericBarcode; /***/ }), /***/ "fd7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _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; }; exports.default = function (old, replaceObj) { return _extends({}, old, replaceObj); }; /***/ }), /***/ "ff84": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE = __webpack_require__("349c"); var _CODE2 = __webpack_require__("da3d"); var _EAN_UPC = __webpack_require__("241e"); var _ITF = __webpack_require__("9ffa"); var _MSI = __webpack_require__("8e51"); var _pharmacode = __webpack_require__("7cb9"); var _codabar = __webpack_require__("c17b"); var _GenericBarcode = __webpack_require__("fbb2"); exports.default = { CODE39: _CODE.CODE39, CODE128: _CODE2.CODE128, CODE128A: _CODE2.CODE128A, CODE128B: _CODE2.CODE128B, CODE128C: _CODE2.CODE128C, EAN13: _EAN_UPC.EAN13, EAN8: _EAN_UPC.EAN8, EAN5: _EAN_UPC.EAN5, EAN2: _EAN_UPC.EAN2, UPC: _EAN_UPC.UPC, UPCE: _EAN_UPC.UPCE, ITF14: _ITF.ITF14, ITF: _ITF.ITF, MSI: _MSI.MSI, MSI10: _MSI.MSI10, MSI11: _MSI.MSI11, MSI1010: _MSI.MSI1010, MSI1110: _MSI.MSI1110, pharmacode: _pharmacode.pharmacode, codabar: _codabar.codabar, GenericBarcode: _GenericBarcode.GenericBarcode }; /***/ }), /***/ "ffd6": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && baseGetTag(value) == symbolTag); } module.exports = isSymbol; /***/ }) /******/ }); }); //# sourceMappingURL=eap.umd.js.map
Ignore Space
Show notes
View
assets_platform/eap/eap.umd.min.js
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("ELEMENT")):"function"===typeof define&&define.amd?define(["ELEMENT"],t):"object"===typeof exports?exports["eap"]=t(require("ELEMENT")):e["eap"]=t(e["ELEMENT"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__5f72__){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({"00fd":function(e,t,r){var n=r("9e69"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;function u(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(u){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}e.exports=u},"03dd":function(e,t,r){var n=r("eac5"),o=r("57a5"),i=Object.prototype,a=i.hasOwnProperty;function s(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}e.exports=s},"0644":function(e,t,r){var n=r("3818"),o=1,i=4;function a(e){return n(e,o|i)}e.exports=a},"07c7":function(e,t){function r(){return!1}e.exports=r},"07df":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("3c7c"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){var t=e.substr(0,13).split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t,r){return e+t*(3-r%2*2)}),0);return 10*Math.ceil(t/10)-t},f=function(e){function t(e,r){return s(this,t),-1!==e.search(/^[0-9]{13}$/)&&(e+=l(e)),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===l(this.data)}}]),t}(i.default);t.default=f},"087d":function(e,t){function r(e,t){var r=-1,n=t.length,o=e.length;while(++r<n)e[o+r]=t[r];return e}e.exports=r},"0a06":function(e,t,r){"use strict";var n=r("c532"),o=r("30b5"),i=r("f6b4"),a=r("5270"),s=r("4a7b");function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],r=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)r=r.then(t.shift(),t.shift());return r},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t}))}})),n.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=u},"0b07":function(e,t,r){var n=r("34ac"),o=r("3698");function i(e,t){var r=o(e,t);return n(r)?r:void 0}e.exports=i},"0d24":function(e,t,r){(function(e){var n=r("2b3e"),o=r("07c7"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||o;e.exports=l}).call(this,r("62e4")(e))},"0df6":function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f0f":function(e,t,r){var n=r("8eeb"),o=r("9934");function i(e,t){return e&&n(t,o(t),e)}e.exports=i},"100e":function(e,t,r){var n=r("cd9d"),o=r("2286"),i=r("c1c9");function a(e,t){return i(o(e,t,n),e+"")}e.exports=a},1041:function(e,t,r){var n=r("8eeb"),o=r("a029");function i(e,t){return n(e,o(e),t)}e.exports=i},"124f":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),n(t,[{key:"encode",value:function(){for(var e="110",t=0;t<this.data.length;t++){var r=parseInt(this.data[t]),n=r.toString(2);n=f(n,4-n.length);for(var o=0;o<n.length;o++)e+="0"==n[o]?"100":"110"}return e+="1001",{data:e,text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),t}(i.default);function f(e,t){for(var r=0;r<t;r++)e="0"+e;return e}t.default=l},1290:function(e,t){function r(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=r},1310:function(e,t){function r(e){return null!=e&&"object"==typeof e}e.exports=r},1368:function(e,t,r){var n=r("da03"),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i(e){return!!o&&o in e}e.exports=i},"18d8":function(e,t,r){var n=r("234d"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},"1a2d":function(e,t,r){var n=r("42a2"),o=r("1310"),i="[object Map]";function a(e){return o(e)&&n(e)==i}e.exports=a},"1a8c":function(e,t){function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=r},"1ba5":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r("bdfe"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){var t=e.substr(0,7).split("").map((function(e){return+e})).reduce((function(e,t,r){return r%2?e+t:e+3*t}),0);return(10-t%10)%10},d=function(e){function t(e,r){return u(this,t),-1!==e.search(/^[0-9]{7}$/)&&(e+=f(e)),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return l(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===f(this.data)}},{key:"leftText",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var e=this.data.substr(0,4);return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,e,"LLLL")}},{key:"rightText",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var e=this.data.substr(4,4);return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,e,"RRRR")}}]),t}(a.default);t.default=d},"1bac":function(e,t,r){var n=r("7d1f"),o=r("a029"),i=r("9934");function a(e){return n(e,i,o)}e.exports=a},"1cec":function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"Promise");e.exports=i},"1d2b":function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},"1efc":function(e,t){function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=r},"1fc8":function(e,t,r){var n=r("4245");function o(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}e.exports=o},2286:function(e,t,r){var n=r("85e3"),o=Math.max;function i(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);while(++a<s)u[a]=i[t+a];a=-1;var c=Array(t+1);while(++a<t)c[a]=i[a];return c[t]=r(u),n(e,this,c)}}e.exports=i},"234d":function(e,t,r){var n=r("e380"),o=500;function i(e){var t=n(e,(function(e){return r.size===o&&r.clear(),e})),r=t.cache;return t}e.exports=i},2411:function(e,t,r){var n=r("f909"),o=r("2ec1"),i=o((function(e,t,r,o){n(e,t,r,o)}));e.exports=i},"241e":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPCE=t.UPC=t.EAN2=t.EAN5=t.EAN8=t.EAN13=void 0;var n=r("89a2"),o=g(n),i=r("1ba5"),a=g(i),s=r("583f"),u=g(s),c=r("a5d2"),l=g(c),f=r("e8b2"),d=g(f),h=r("be98"),p=g(h);function g(e){return e&&e.__esModule?e:{default:e}}t.EAN13=o.default,t.EAN8=a.default,t.EAN5=u.default,t.EAN2=l.default,t.UPC=d.default,t.UPCE=p.default},2444:function(e,t,r){"use strict";(function(t){var n=r("c532"),o=r("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=r("b50d")),e}var u={adapter:s(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(i)})),e.exports=u}).call(this,r("4362"))},2474:function(e,t,r){var n=r("2b3e"),o=n.Uint8Array;e.exports=o},2478:function(e,t,r){var n=r("4245");function o(e){return n(this,e).get(e)}e.exports=o},2524:function(e,t,r){var n=r("6044"),o="__lodash_hash_undefined__";function i(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?o:t,this}e.exports=i},"253c":function(e,t,r){var n=r("3729"),o=r("1310"),i="[object Arguments]";function a(e){return o(e)&&n(e)==i}e.exports=a},"28c9":function(e,t){function r(){this.__data__=[],this.size=0}e.exports=r},"29f3":function(e,t){var r=Object.prototype,n=r.toString;function o(e){return n.call(e)}e.exports=o},"2a4a":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.START_BIN="1010",t.END_BIN="11101",t.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},"2b3e":function(e,t,r){var n=r("585a"),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},"2d7c":function(e,t){function r(e,t){var r=-1,n=null==e?0:e.length,o=0,i=[];while(++r<n){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}e.exports=r},"2d83":function(e,t,r){"use strict";var n=r("387f");e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},"2dcb":function(e,t,r){var n=r("91e9"),o=n(Object.getPrototypeOf,Object);e.exports=o},"2e67":function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2ec1":function(e,t,r){var n=r("100e"),o=r("9aff");function i(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);while(++n<i){var u=r[n];u&&e(t,u,n,a)}return t}))}e.exports=i},"2fcc":function(e,t){function r(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}e.exports=r},"30b5":function(e,t,r){"use strict";var n=r("c532");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},"30c9":function(e,t,r){var n=r("9520"),o=r("b218");function i(e){return null!=e&&o(e.length)&&!n(e)}e.exports=i},"32b3":function(e,t,r){var n=r("872a"),o=r("9638"),i=Object.prototype,a=i.hasOwnProperty;function s(e,t,r){var i=e[t];a.call(e,t)&&o(i,r)&&(void 0!==r||t in e)||n(e,t,r)}e.exports=s},"32f4":function(e,t,r){var n=r("2d7c"),o=r("d327"),i=Object.prototype,a=i.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),n(s(e),(function(t){return a.call(e,t)})))}:o;e.exports=u},"349c":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CODE39=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),e=e.toUpperCase(),r.mod43&&(e+=g(_(e))),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),n(t,[{key:"encode",value:function(){for(var e=h("*"),t=0;t<this.data.length;t++)e+=h(this.data[t])+"0";return e+=h("*"),{data:e,text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),t}(i.default),f=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],d=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function h(e){return p(y(e))}function p(e){return d[e].toString(2)}function g(e){return f[e]}function y(e){return f.indexOf(e)}function _(e){for(var t=0,r=0;r<e.length;r++)t+=y(e[r]);return t%=43,t}t.CODE39=l},"34ac":function(e,t,r){var n=r("9520"),o=r("1368"),i=r("1a8c"),a=r("dc57"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,d=l.hasOwnProperty,h=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(e){if(!i(e)||o(e))return!1;var t=n(e)?h:u;return t.test(a(e))}e.exports=p},3698:function(e,t){function r(e,t){return null==e?void 0:e[t]}e.exports=r},3729:function(e,t,r){var n=r("9e69"),o=r("00fd"),i=r("29f3"),a="[object Null]",s="[object Undefined]",u=n?n.toStringTag:void 0;function c(e){return null==e?void 0===e?s:a:u&&u in Object(e)?o(e):i(e)}e.exports=c},3818:function(e,t,r){var n=r("7e64"),o=r("8057"),i=r("32b3"),a=r("5b01"),s=r("0f0f"),u=r("e538"),c=r("4359"),l=r("54eb"),f=r("1041"),d=r("a994"),h=r("1bac"),p=r("42a2"),g=r("c87c"),y=r("c2b6"),_=r("fa21"),b=r("6747"),v=r("0d24"),m=r("cc45"),w=r("1a8c"),E=r("d7ee"),O=r("ec69"),x=1,T=2,S=4,A="[object Arguments]",j="[object Array]",P="[object Boolean]",I="[object Date]",C="[object Error]",M="[object Function]",D="[object GeneratorFunction]",N="[object Map]",L="[object Number]",k="[object Object]",R="[object RegExp]",B="[object Set]",U="[object String]",H="[object Symbol]",G="[object WeakMap]",F="[object ArrayBuffer]",z="[object DataView]",q="[object Float32Array]",V="[object Float64Array]",X="[object Int8Array]",$="[object Int16Array]",W="[object Int32Array]",Y="[object Uint8Array]",J="[object Uint8ClampedArray]",K="[object Uint16Array]",Q="[object Uint32Array]",Z={};function ee(e,t,r,j,P,I){var C,N=t&x,L=t&T,R=t&S;if(r&&(C=P?r(e,j,P,I):r(e)),void 0!==C)return C;if(!w(e))return e;var B=b(e);if(B){if(C=g(e),!N)return c(e,C)}else{var U=p(e),H=U==M||U==D;if(v(e))return u(e,N);if(U==k||U==A||H&&!P){if(C=L||H?{}:_(e),!N)return L?f(e,s(C,e)):l(e,a(C,e))}else{if(!Z[U])return P?e:{};C=y(e,U,N)}}I||(I=new n);var G=I.get(e);if(G)return G;if(I.set(e,C),E(e))return e.forEach((function(n){C.add(ee(n,t,r,n,e,I))})),C;if(m(e))return e.forEach((function(n,o){C.set(o,ee(n,t,r,o,e,I))})),C;var F=R?L?h:d:L?keysIn:O,z=B?void 0:F(e);return o(z||e,(function(n,o){z&&(o=n,n=e[o]),i(C,o,ee(n,t,r,o,e,I))})),C}Z[A]=Z[j]=Z[F]=Z[z]=Z[P]=Z[I]=Z[q]=Z[V]=Z[X]=Z[$]=Z[W]=Z[N]=Z[L]=Z[k]=Z[R]=Z[B]=Z[U]=Z[H]=Z[Y]=Z[J]=Z[K]=Z[Q]=!0,Z[C]=Z[M]=Z[G]=!1,e.exports=ee},3852:function(e,t,r){var n=r("96f3"),o=r("e2c0");function i(e,t){return null!=e&&o(e,t,n)}e.exports=i},"387f":function(e,t,r){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},"39ff":function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"WeakMap");e.exports=i},"3b4a":function(e,t,r){var n=r("0b07"),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"3c7c":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("2a4a"),i=r("e762"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var e=this,t=this.data.match(/.{2}/g).map((function(t){return e.encodePair(t)})).join("");return{data:o.START_BIN+t+o.END_BIN,text:this.text}}},{key:"encodePair",value:function(e){var t=o.BINARIES[e[1]];return o.BINARIES[e[0]].split("").map((function(e,r){return("1"===e?"111":"1")+("1"===t[r]?"000":"0")})).join("")}}]),t}(a.default);t.default=f},"3f84":function(e,t,r){var n=r("85e3"),o=r("100e"),i=r("e031"),a=r("2411"),s=o((function(e){return e.push(void 0,i),n(a,void 0,e)}));e.exports=s},"41c3":function(e,t,r){var n=r("1a8c"),o=r("eac5"),i=r("ec8c"),a=Object.prototype,s=a.hasOwnProperty;function u(e){if(!n(e))return i(e);var t=o(e),r=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&r.push(a);return r}e.exports=u},4245:function(e,t,r){var n=r("1290");function o(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}e.exports=o},"42a2":function(e,t,r){var n=r("b5a7"),o=r("79bc"),i=r("1cec"),a=r("c869"),s=r("39ff"),u=r("3729"),c=r("dc57"),l="[object Map]",f="[object Object]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",g="[object DataView]",y=c(n),_=c(o),b=c(i),v=c(a),m=c(s),w=u;(n&&w(new n(new ArrayBuffer(1)))!=g||o&&w(new o)!=l||i&&w(i.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=u(e),r=t==f?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case y:return g;case _:return l;case b:return d;case v:return h;case m:return p}return t}),e.exports=w},4359:function(e,t){function r(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}e.exports=r},4362:function(e,t,r){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("df7c")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("124f"),o=a(n),i=r("6e53");function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,i.mod11)(e),r))}return c(t,e),t}(o.default);t.default=l},"467f":function(e,t,r){"use strict";var n=r("2d83");e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},4727:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("124f"),o=a(n),i=r("6e53");function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,i.mod10)(e),r))}return c(t,e),t}(o.default);t.default=l},"49f4":function(e,t,r){var n=r("6044");function o(){this.__data__=n?n(null):{},this.size=0}e.exports=o},"4a37":function(e,t,r){!function(t,r){e.exports=r()}(0,(function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";e.exports=r(3)},function(e,t){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(void 0!==n&&null!==n){n=Object(n);for(var o=Object.keys(Object(n)),i=0,a=o.length;i<a;i++){var s=o[i],u=Object.getOwnPropertyDescriptor(n,s);void 0!==u&&u.enumerable&&(t[s]=n[s])}}}return t}})}()},function(e,t){"use strict";e.exports=function(){var e={utf16to8:function(e){var t,r,n,o;for(t="",n=e.length,r=0;r<n;r++)o=e.charCodeAt(r),o>=1&&o<=127?t+=e.charAt(r):o>2047?(t+=String.fromCharCode(224|o>>12&15),t+=String.fromCharCode(128|o>>6&63),t+=String.fromCharCode(128|o>>0&63)):(t+=String.fromCharCode(192|o>>6&31),t+=String.fromCharCode(128|o>>0&63));return t},utf8to16:function(e){var t,r,n,o,i,a;for(t="",n=e.length,r=0;r<n;)switch(o=e.charCodeAt(r++),o>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(r-1);break;case 12:case 13:i=e.charCodeAt(r++),t+=String.fromCharCode((31&o)<<6|63&i);break;case 14:i=e.charCodeAt(r++),a=e.charCodeAt(r++),t+=String.fromCharCode((15&o)<<12|(63&i)<<6|(63&a)<<0)}return t}};return e}()},function(e,t,r){"use strict";r(1),r(4);var n=r(2),o=function(){function e(e){var t=new QRCode(e.typeNumber,e.correctLevel);t.addData(e.text),t.make();var r=document.createElement("canvas");r.width=e.width,r.height=e.height;var n=r.getContext("2d"),o=(e.width-2*e.padding)/t.getModuleCount(),i=(e.height-2*e.padding)/t.getModuleCount();if(e.reverse){var a="rgba(0, 0, 0, 0)";n.fillStyle=a,e.foreground=a}else n.fillStyle=e.background;n.fillRect(0,0,r.width,r.height);for(var s=0;s<t.getModuleCount();s++)for(var u=0;u<t.getModuleCount();u++){n.fillStyle=t.isDark(s,u)?e.foreground:e.background;var c=Math.ceil((u+1)*o)-Math.floor(u*o),l=Math.ceil((s+1)*o)-Math.floor(s*o);n.fillRect(Math.round(u*o)+e.padding,Math.round(s*i)+e.padding,c,l)}return r}var t={getQrBase64:function(t,r){"string"!=typeof t&&(t=""),"string"==typeof r?r={text:r}:"object"!=typeof r&&(r={}),r=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},r);try{r.text=n.utf16to8(t)}catch(e){r.text=""+e}var o=e(r);return o.toDataURL()}};return t.QRErrorCorrectLevel=QRErrorCorrectLevel,t}();!window.jrQrcode&&(window.jrQrcode=o),e.exports=o},function(e,t){function r(e){this.mode=s.MODE_8BIT_BYTE,this.data=e}function n(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function o(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}function i(e,t){this.totalCount=e,this.dataCount=t}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},n.prototype={addData:function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=i.getRSBlocks(e,this.errorCorrectLevel),r=new a,n=0,o=0;o<t.length;o++)n+=t[o].dataCount;for(o=0;o<this.dataList.length;o++){var s=this.dataList[o];r.put(s.mode,4),r.put(s.getLength(),l.getLengthInBits(s.mode,e)),s.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[r][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=l.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r),o=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*o,s=0;s<this.modules[i].length;s++){var u=s*o,c=this.modules[i][s];c&&(n.beginFill(0,100),n.moveTo(u,a),n.lineTo(u+o,a),n.lineTo(u+o,a+o),n.lineTo(u,a+o),n.endFill())}return n},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=l.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],o=e[r];if(null==this.modules[n][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[n+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}},setupTypeNumber:function(e){for(var t=l.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&1==(t>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=l.getBCHTypeInfo(r),o=0;o<15;o++){var i=!e&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[n][a-s]){var u=!1;i<e.length&&(u=1==(e[i]>>>o&1));var c=l.getMask(t,n,a-s);c&&(u=!u),this.modules[n][a-s]=u,o--,-1==o&&(i++,o=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}},n.PAD0=236,n.PAD1=17,n.createData=function(e,t,r){for(var o=i.getRSBlocks(e,t),s=new a,u=0;u<r.length;u++){var c=r[u];s.put(c.mode,4),s.put(c.getLength(),l.getLengthInBits(c.mode,e)),c.write(s)}var f=0;for(u=0;u<o.length;u++)f+=o[u].dataCount;if(s.getLengthInBits()>8*f)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*f+")");for(s.getLengthInBits()+4<=8*f&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*f)break;if(s.put(n.PAD0,8),s.getLengthInBits()>=8*f)break;s.put(n.PAD1,8)}return n.createBytes(s,o)},n.createBytes=function(e,t){for(var r=0,n=0,i=0,a=new Array(t.length),s=new Array(t.length),u=0;u<t.length;u++){var c=t[u].dataCount,f=t[u].totalCount-c;n=Math.max(n,c),i=Math.max(i,f),a[u]=new Array(c);for(var d=0;d<a[u].length;d++)a[u][d]=255&e.buffer[d+r];r+=c;var h=l.getErrorCorrectPolynomial(f),p=new o(a[u],h.getLength()-1),g=p.mod(h);s[u]=new Array(h.getLength()-1);for(d=0;d<s[u].length;d++){var y=d+g.getLength()-s[u].length;s[u][d]=y>=0?g.get(y):0}}var _=0;for(d=0;d<t.length;d++)_+=t[d].totalCount;var b=new Array(_),v=0;for(d=0;d<n;d++)for(u=0;u<t.length;u++)d<a[u].length&&(b[v++]=a[u][d]);for(d=0;d<i;d++)for(u=0;u<t.length;u++)d<s[u].length&&(b[v++]=s[u][d]);return b};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},l={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(e){for(var t=e<<10;l.getBCHDigit(t)-l.getBCHDigit(l.G15)>=0;)t^=l.G15<<l.getBCHDigit(t)-l.getBCHDigit(l.G15);return(e<<10|t)^l.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;l.getBCHDigit(t)-l.getBCHDigit(l.G18)>=0;)t^=l.G18<<l.getBCHDigit(t)-l.getBCHDigit(l.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return l.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case c.PATTERN000:return(t+r)%2==0;case c.PATTERN001:return t%2==0;case c.PATTERN010:return r%3==0;case c.PATTERN011:return(t+r)%3==0;case c.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case c.PATTERN101:return t*r%2+t*r%3==0;case c.PATTERN110:return(t*r%2+t*r%3)%2==0;case c.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),r=0;r<e;r++)t=t.multiply(new o([1,f.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:return 8;case s.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(n,o),s=-1;s<=1;s++)if(!(n+s<0||t<=n+s))for(var u=-1;u<=1;u++)o+u<0||t<=o+u||0==s&&0==u||a==e.isDark(n+s,o+u)&&i++;i>5&&(r+=3+i-5)}for(n=0;n<t-1;n++)for(o=0;o<t-1;o++){var c=0;e.isDark(n,o)&&c++,e.isDark(n+1,o)&&c++,e.isDark(n,o+1)&&c++,e.isDark(n+1,o+1)&&c++,0!=c&&4!=c||(r+=3)}for(n=0;n<t;n++)for(o=0;o<t-6;o++)e.isDark(n,o)&&!e.isDark(n,o+1)&&e.isDark(n,o+2)&&e.isDark(n,o+3)&&e.isDark(n,o+4)&&!e.isDark(n,o+5)&&e.isDark(n,o+6)&&(r+=40);for(o=0;o<t;o++)for(n=0;n<t-6;n++)e.isDark(n,o)&&!e.isDark(n+1,o)&&e.isDark(n+2,o)&&e.isDark(n+3,o)&&e.isDark(n+4,o)&&!e.isDark(n+5,o)&&e.isDark(n+6,o)&&(r+=40);var l=0;for(o=0;o<t;o++)for(n=0;n<t;n++)e.isDark(n,o)&&l++;var f=Math.abs(100*l/t/t-50)/5;return r+10*f}},f={glog:function(e){if(e<1)throw new Error("glog("+e+")");return f.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return f.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)f.EXP_TABLE[d]=1<<d;for(d=8;d<256;d++)f.EXP_TABLE[d]=f.EXP_TABLE[d-4]^f.EXP_TABLE[d-5]^f.EXP_TABLE[d-6]^f.EXP_TABLE[d-8];for(d=0;d<255;d++)f.LOG_TABLE[f.EXP_TABLE[d]]=d;o.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<e.getLength();n++)t[r+n]^=f.gexp(f.glog(this.get(r))+f.glog(e.get(n)));return new o(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=f.glog(this.get(0))-f.glog(e.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(n=0;n<e.getLength();n++)r[n]^=f.gexp(f.glog(e.get(n))+t);return new o(r,0).mod(e)}},i.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]],i.getRSBlocks=function(e,t){var r=i.getRsBlockTable(e,t);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,o=new Array,a=0;a<n;a++)for(var s=r[3*a+0],u=r[3*a+1],c=r[3*a+2],l=0;l<s;l++)o.push(new i(u,c));return o},i.getRsBlockTable=function(e,t){switch(t){case u.L:return i.RS_BLOCK_TABLE[4*(e-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(e-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(e-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},a.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},window.QRCode=n,window.QRErrorCorrectLevel=u;try{e.exports={QRCode:n,QRErrorCorrectLevel:u}}catch(e){}}])}))},"4a7b":function(e,t,r){"use strict";var n=r("c532");e.exports=function(e,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function c(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=u(void 0,e[o])):r[o]=u(e[o],t[o])}n.forEach(o,(function(e){n.isUndefined(t[e])||(r[e]=u(void 0,t[e]))})),n.forEach(i,c),n.forEach(a,(function(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=u(void 0,e[o])):r[o]=u(void 0,t[o])})),n.forEach(s,(function(n){n in t?r[n]=u(e[n],t[n]):n in e&&(r[n]=u(void 0,e[n]))}));var l=o.concat(i).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(f,c),r}},"4b23":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=s(o),a=r("f08e");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.substring(1),r));return n.bytes=e.split("").map((function(e){return e.charCodeAt(0)})),n}return l(t,e),n(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var e=this.bytes,r=e.shift()-105,n=a.SET_BY_CODE[r];if(void 0===n)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&e.unshift(a.FNC1);var o=t.next(e,1,n);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(r)+o.result+t.getBar((o.checksum+r)%a.MODULO)+t.getBar(a.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var e=this.options.ean128||!1;return"string"===typeof e&&(e="true"===e.toLowerCase()),e}}],[{key:"getBar",value:function(e){return a.BARS[e]?a.BARS[e].toString():""}},{key:"correctIndex",value:function(e,t){if(t===a.SET_A){var r=e.shift();return r<32?r+64:r-32}return t===a.SET_B?e.shift()-32:10*(e.shift()-48)+e.shift()-48}},{key:"next",value:function(e,r,n){if(!e.length)return{result:"",checksum:0};var o=void 0,i=void 0;if(e[0]>=200){i=e.shift()-105;var s=a.SWAP[i];void 0!==s?o=t.next(e,r+1,s):(n!==a.SET_A&&n!==a.SET_B||i!==a.SHIFT||(e[0]=n===a.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),o=t.next(e,r+1,n))}else i=t.correctIndex(e,n),o=t.next(e,r+1,n);var u=t.getBar(i),c=i*r;return{result:u+o.result,checksum:c+o.checksum}}}]),t}(i.default);t.default=f},"4ced":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,r,n){o(this,e),this.object=t,this.encodings=r,this.options=n}return n(e,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),e}();t.default=i},"4f50":function(e,t,r){var n=r("b760"),o=r("e538"),i=r("c8fe"),a=r("4359"),s=r("fa21"),u=r("d370"),c=r("6747"),l=r("dcbe"),f=r("0d24"),d=r("9520"),h=r("1a8c"),p=r("60ed"),g=r("73ac"),y=r("8adb"),_=r("8de2");function b(e,t,r,b,v,m,w){var E=y(e,r),O=y(t,r),x=w.get(O);if(x)n(e,r,x);else{var T=m?m(E,O,r+"",e,t,w):void 0,S=void 0===T;if(S){var A=c(O),j=!A&&f(O),P=!A&&!j&&g(O);T=O,A||j||P?c(E)?T=E:l(E)?T=a(E):j?(S=!1,T=o(O,!0)):P?(S=!1,T=i(O,!0)):T=[]:p(O)||u(O)?(T=E,u(E)?T=_(E):h(E)&&!d(E)||(T=s(O))):S=!1}S&&(w.set(O,T),v(T,O,b,m,w),w["delete"](O)),n(e,r,T)}}e.exports=b},"50d8":function(e,t){function r(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}e.exports=r},5261:function(e,t,r){"use strict";function n(e){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in t)t.hasOwnProperty(r)&&(r=t[r],"string"===typeof e[r]&&(e[r]=parseInt(e[r],10)));return"string"===typeof e["displayValue"]&&(e["displayValue"]="false"!=e["displayValue"]),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},5270:function(e,t,r){"use strict";var n=r("c532"),o=r("c401"),i=r("2e67"),a=r("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"54eb":function(e,t,r){var n=r("8eeb"),o=r("32f4");function i(e,t){return n(e,o(e),t)}e.exports=i},"55a3":function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},5726:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("c243"),o=function(e,t,r){var o=e.split("").map((function(e,r){return n.BINARIES[t[r]]})).map((function(t,r){return t?t[e[r]]:""}));if(r){var i=e.length-1;o=o.map((function(e,t){return t<i?e+r:e}))}return o.join("")};t.default=o},"57a5":function(e,t,r){var n=r("91e9"),o=n(Object.keys,Object);e.exports=o},"583f":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("c243"),i=r("5726"),a=c(i),s=r("e762"),u=c(s);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){var t=e.split("").map((function(e){return+e})).reduce((function(e,t,r){return r%2?e+9*t:e+3*t}),0);return t%10},p=function(e){function t(e,r){return l(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return d(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var e=o.EAN5_STRUCTURE[h(this.data)];return{data:"1011"+(0,a.default)(this.data,e,"01"),text:this.text}}}]),t}(u.default);t.default=p},"585a":function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r("c8ba"))},"5b01":function(e,t,r){var n=r("8eeb"),o=r("ec69");function i(e,t){return e&&n(t,o(t),e)}e.exports=i},"5d89":function(e,t,r){var n=r("f8af");function o(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}e.exports=o},"5e2e":function(e,t,r){var n=r("28c9"),o=r("69d5"),i=r("b4c0"),a=r("fba5"),s=r("67ca");function u(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},"5f72":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__5f72__},6044:function(e,t,r){var n=r("0b07"),o=n(Object,"create");e.exports=o},"60ed":function(e,t,r){var n=r("3729"),o=r("2dcb"),i=r("1310"),a="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,l=u.hasOwnProperty,f=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=o(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==f}e.exports=d},6220:function(e,t,r){var n=r("b1d2"),o=r("b047"),i=r("99d3"),a=i&&i.isDate,s=a?o(a):n;e.exports=s},"62c5":function(e,t,r){"use strict";var n=r("ff84"),o=m(n),i=r("fd7c"),a=m(i),s=r("a2b0"),u=m(s),c=r("79f1"),l=m(c),f=r("b1d8"),d=m(f),h=r("5261"),p=m(h),g=r("bd8a"),y=m(g),_=r("dca2"),b=r("ca32"),v=m(b);function m(e){return e&&e.__esModule?e:{default:e}}var w=function(){},E=function(e,t,r){var n=new w;if("undefined"===typeof e)throw Error("No element to render on was provided.");return n._renderProperties=(0,d.default)(e),n._encodings=[],n._options=v.default,n._errorHandler=new y.default(n),"undefined"!==typeof t&&(r=r||{},r.format||(r.format=S()),n.options(r)[r.format](t,r).render()),n};for(var O in E.getModule=function(e){return o.default[e]},o.default)o.default.hasOwnProperty(O)&&x(o.default,O);function x(e,t){w.prototype[t]=w.prototype[t.toUpperCase()]=w.prototype[t.toLowerCase()]=function(r,n){var o=this;return o._errorHandler.wrapBarcodeCall((function(){n.text="undefined"===typeof n.text?void 0:""+n.text;var i=(0,a.default)(o._options,n);i=(0,p.default)(i);var s=e[t],u=T(r,s,i);return o._encodings.push(u),o}))}}function T(e,t,r){e=""+e;var n=new t(e,r);if(!n.valid())throw new _.InvalidInputException(n.constructor.name,e);var o=n.encode();o=(0,u.default)(o);for(var i=0;i<o.length;i++)o[i].options=(0,a.default)(r,o[i].options);return o}function S(){return o.default["CODE128"]?"CODE128":Object.keys(o.default)[0]}function A(e,t,r){t=(0,u.default)(t);for(var n=0;n<t.length;n++)t[n].options=(0,a.default)(r,t[n].options),(0,l.default)(t[n].options);(0,l.default)(r);var o=e.renderer,i=new o(e.element,t,r);i.render(),e.afterRender&&e.afterRender()}w.prototype.options=function(e){return this._options=(0,a.default)(this._options,e),this},w.prototype.blank=function(e){var t=new Array(e+1).join("0");return this._encodings.push({data:t}),this},w.prototype.init=function(){var e;if(this._renderProperties)for(var t in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){e=this._renderProperties[t];var r=(0,a.default)(this._options,e.options);"auto"==r.format&&(r.format=S()),this._errorHandler.wrapBarcodeCall((function(){var t=r.value,n=o.default[r.format.toUpperCase()],i=T(t,n,r);A(e,i,r)}))}},w.prototype.render=function(){if(!this._renderProperties)throw new _.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)A(this._renderProperties[e],this._encodings,this._options);else A(this._renderProperties,this._encodings,this._options);return this},w.prototype._defaults=v.default,"undefined"!==typeof window&&(window.JsBarcode=E),"undefined"!==typeof jQuery&&(jQuery.fn.JsBarcode=function(e,t){var r=[];return jQuery(this).each((function(){r.push(this)})),E(r,e,t)}),e.exports=E},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6747:function(e,t){var r=Array.isArray;e.exports=r},"67ca":function(e,t,r){var n=r("cb5a");function o(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}e.exports=o},"69d5":function(e,t,r){var n=r("cb5a"),o=Array.prototype,i=o.splice;function a(e){var t=this.__data__,r=n(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():i.call(t,r,1),--this.size,!0}e.exports=a},"6e53":function(e,t,r){"use strict";function n(e){for(var t=0,r=0;r<e.length;r++){var n=parseInt(e[r]);(r+e.length)%2===0?t+=n:t+=2*n%10+Math.floor(2*n/10)}return(10-t%10)%10}function o(e){for(var t=0,r=[2,3,4,5,6,7],n=0;n<e.length;n++){var o=parseInt(e[e.length-1-n]);t+=r[n%r.length]*o}return(11-t%11)%11}Object.defineProperty(t,"__esModule",{value:!0}),t.mod10=n,t.mod11=o},"6f24":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("4b23"),o=s(n),i=r("bb5d"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){if(u(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,a.default)(e),r));else n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return c(n)}return l(t,e),t}(o.default);t.default=f},"6f6c":function(e,t){var r=/\w*$/;function n(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}e.exports=n},"6fcd":function(e,t,r){var n=r("50d8"),o=r("d370"),i=r("6747"),a=r("0d24"),s=r("c098"),u=r("73ac"),c=Object.prototype,l=c.hasOwnProperty;function f(e,t){var r=i(e),c=!r&&o(e),f=!r&&!c&&a(e),d=!r&&!c&&!f&&u(e),h=r||c||f||d,p=h?n(e.length,String):[],g=p.length;for(var y in e)!t&&!l.call(e,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||p.push(y);return p}e.exports=f},"70b0":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("4b23"),i=s(o),a=r("f08e");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a.B_START_CHAR+e,r))}return l(t,e),n(t,[{key:"valid",value:function(){return new RegExp("^"+a.B_CHARS+"+$").test(this.data)}}]),t}(i.default);t.default=f},"721a":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("fd7c"),i=s(o),a=r("ab5b");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(t,r,n){u(this,e),this.canvas=t,this.encodings=r,this.options=n}return n(e,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,i.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var e=this.canvas.getContext("2d");e.save(),(0,a.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,a.getTotalWidthOfEncodings)(this.encodings),r=(0,a.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=r,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(e,t){var r,n=this.canvas.getContext("2d"),o=t.data;r="top"==e.textPosition?e.marginTop+e.fontSize+e.textMargin:e.marginTop,n.fillStyle=e.lineColor;for(var i=0;i<o.length;i++){var a=i*e.width+t.barcodePadding;"1"===o[i]?n.fillRect(a,r,e.width,e.height):o[i]&&n.fillRect(a,r,e.width,e.height*o[i])}}},{key:"drawCanvasText",value:function(e,t){var r,n,o=this.canvas.getContext("2d"),i=e.fontOptions+" "+e.fontSize+"px "+e.font;e.displayValue&&(n="top"==e.textPosition?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize,o.font=i,"left"==e.textAlign||t.barcodePadding>0?(r=0,o.textAlign="left"):"right"==e.textAlign?(r=t.width-1,o.textAlign="right"):(r=t.width/2,o.textAlign="center"),o.fillText(t.text,r,n))}},{key:"moveCanvasDrawing",value:function(e){var t=this.canvas.getContext("2d");t.translate(e.width,0)}},{key:"restoreCanvas",value:function(){var e=this.canvas.getContext("2d");e.restore()}}]),e}();t.default=c},"72af":function(e,t,r){var n=r("99cd"),o=n();e.exports=o},"72f0":function(e,t){function r(e){return function(){return e}}e.exports=r},"73ac":function(e,t,r){var n=r("743f"),o=r("b047"),i=r("99d3"),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},"743f":function(e,t,r){var n=r("3729"),o=r("b218"),i=r("1310"),a="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",g="[object RegExp]",y="[object Set]",_="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",m="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",O="[object Int8Array]",x="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",j="[object Uint16Array]",P="[object Uint32Array]",I={};function C(e){return i(e)&&o(e.length)&&!!I[n(e)]}I[w]=I[E]=I[O]=I[x]=I[T]=I[S]=I[A]=I[j]=I[P]=!0,I[a]=I[s]=I[v]=I[u]=I[m]=I[c]=I[l]=I[f]=I[d]=I[h]=I[p]=I[g]=I[y]=I[_]=I[b]=!1,e.exports=C},"752b":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("721a"),o=c(n),i=r("be5e"),a=c(i),s=r("4ced"),u=c(s);function c(e){return e&&e.__esModule?e:{default:e}}t.default={CanvasRenderer:o.default,SVGRenderer:a.default,ObjectRenderer:u.default}},7530:function(e,t,r){var n=r("1a8c"),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},"76dd":function(e,t,r){var n=r("ce86");function o(e){return null==e?"":n(e)}e.exports=o},7948:function(e,t){function r(e,t){var r=-1,n=null==e?0:e.length,o=Array(n);while(++r<n)o[r]=t(e[r],r,e);return o}e.exports=r},"79bc":function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"Map");e.exports=i},"79f1":function(e,t,r){"use strict";function n(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},"7a48":function(e,t,r){var n=r("6044"),o=Object.prototype,i=o.hasOwnProperty;function a(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}e.exports=a},"7a77":function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},"7aac":function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b83":function(e,t,r){var n=r("7c64"),o=r("93ed"),i=r("2478"),a=r("a524"),s=r("1fc8");function u(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},"7c64":function(e,t,r){var n=r("e24b"),o=r("5e2e"),i=r("79bc");function a(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}e.exports=a},"7cb9":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pharmacode=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.number=parseInt(e,10),n}return c(t,e),n(t,[{key:"encode",value:function(){var e=this.number,t="";while(!isNaN(e)&&0!=e)e%2===0?(t="11100"+t,e=(e-2)/2):(t="100"+t,e=(e-1)/2);return t=t.slice(0,-2),{data:t,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(i.default);t.pharmacode=l},"7d1f":function(e,t,r){var n=r("087d"),o=r("6747");function i(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}e.exports=i},"7e64":function(e,t,r){var n=r("5e2e"),o=r("efb6"),i=r("2fcc"),a=r("802a"),s=r("55a3"),u=r("d02c");function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype["delete"]=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},"802a":function(e,t){function r(e){return this.__data__.get(e)}e.exports=r},8057:function(e,t){function r(e,t){var r=-1,n=null==e?0:e.length;while(++r<n)if(!1===t(e[r],r,e))break;return e}e.exports=r},"805f":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("124f"),o=a(n),i=r("6e53");function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),e+=(0,i.mod11)(e),e+=(0,i.mod10)(e),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),t}(o.default);t.default=l},8237:function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__; /** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===typeof module&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var r=OUTPUT_TYPES[t];e[r]=createOutputMethod(r)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"===typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null===e||void 0===e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"!==r)throw ERROR;if(null===e)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw ERROR;t=!0}var n,o,i=0,a=e.length,s=this.blocks,u=this.buffer8;while(i<a){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)u[o++]=e[i];else for(o=this.start;i<a&&o<64;++i)s[o>>2]|=e[i]<<SHIFT[3&o++];else if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)n=e.charCodeAt(i),n<128?u[o++]=n:n<2048?(u[o++]=192|n>>6,u[o++]=128|63&n):n<55296||n>=57344?(u[o++]=224|n>>12,u[o++]=128|n>>6&63,u[o++]=128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),u[o++]=240|n>>18,u[o++]=128|n>>12&63,u[o++]=128|n>>6&63,u[o++]=128|63&n);else for(o=this.start;i<a&&o<64;++i)n=e.charCodeAt(i),n<128?s[o>>2]|=n<<SHIFT[3&o++]:n<2048?(s[o>>2]|=(192|n>>6)<<SHIFT[3&o++],s[o>>2]|=(128|63&n)<<SHIFT[3&o++]):n<55296||n>=57344?(s[o>>2]|=(224|n>>12)<<SHIFT[3&o++],s[o>>2]|=(128|n>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&n)<<SHIFT[3&o++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),s[o>>2]|=(240|n>>18)<<SHIFT[3&o++],s[o>>2]|=(128|n>>12&63)<<SHIFT[3&o++],s[o>>2]|=(128|n>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&n)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,r,n,o,i,a=this.blocks;this.first?(e=a[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,n=(-1732584194^2004318071&e)+a[1]-117830708,n=(n<<12|n>>>20)+e<<0,r=(-271733879^n&(-271733879^e))+a[2]-1126478375,r=(r<<17|r>>>15)+n<<0,t=(e^r&(n^e))+a[3]-1316259209,t=(t<<22|t>>>10)+r<<0):(e=this.h0,t=this.h1,r=this.h2,n=this.h3,e+=(n^t&(r^n))+a[0]-680876936,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[1]-389564586,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[2]+606105819,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[3]-1044525330,t=(t<<22|t>>>10)+r<<0),e+=(n^t&(r^n))+a[4]-176418897,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[5]+1200080426,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[6]-1473231341,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[7]-45705983,t=(t<<22|t>>>10)+r<<0,e+=(n^t&(r^n))+a[8]+1770035416,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[9]-1958414417,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[10]-42063,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[11]-1990404162,t=(t<<22|t>>>10)+r<<0,e+=(n^t&(r^n))+a[12]+1804603682,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[13]-40341101,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[14]-1502002290,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[15]+1236535329,t=(t<<22|t>>>10)+r<<0,e+=(r^n&(t^r))+a[1]-165796510,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[6]-1069501632,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[11]+643717713,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[0]-373897302,t=(t<<20|t>>>12)+r<<0,e+=(r^n&(t^r))+a[5]-701558691,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[10]+38016083,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[15]-660478335,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[4]-405537848,t=(t<<20|t>>>12)+r<<0,e+=(r^n&(t^r))+a[9]+568446438,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[14]-1019803690,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[3]-187363961,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[8]+1163531501,t=(t<<20|t>>>12)+r<<0,e+=(r^n&(t^r))+a[13]-1444681467,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[2]-51403784,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[7]+1735328473,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[12]-1926607734,t=(t<<20|t>>>12)+r<<0,o=t^r,e+=(o^n)+a[5]-378558,e=(e<<4|e>>>28)+t<<0,n+=(o^e)+a[8]-2022574463,n=(n<<11|n>>>21)+e<<0,i=n^e,r+=(i^t)+a[11]+1839030562,r=(r<<16|r>>>16)+n<<0,t+=(i^r)+a[14]-35309556,t=(t<<23|t>>>9)+r<<0,o=t^r,e+=(o^n)+a[1]-1530992060,e=(e<<4|e>>>28)+t<<0,n+=(o^e)+a[4]+1272893353,n=(n<<11|n>>>21)+e<<0,i=n^e,r+=(i^t)+a[7]-155497632,r=(r<<16|r>>>16)+n<<0,t+=(i^r)+a[10]-1094730640,t=(t<<23|t>>>9)+r<<0,o=t^r,e+=(o^n)+a[13]+681279174,e=(e<<4|e>>>28)+t<<0,n+=(o^e)+a[0]-358537222,n=(n<<11|n>>>21)+e<<0,i=n^e,r+=(i^t)+a[3]-722521979,r=(r<<16|r>>>16)+n<<0,t+=(i^r)+a[6]+76029189,t=(t<<23|t>>>9)+r<<0,o=t^r,e+=(o^n)+a[9]-640364487,e=(e<<4|e>>>28)+t<<0,n+=(o^e)+a[12]-421815835,n=(n<<11|n>>>21)+e<<0,i=n^e,r+=(i^t)+a[15]+530742520,r=(r<<16|r>>>16)+n<<0,t+=(i^r)+a[2]-995338651,t=(t<<23|t>>>9)+r<<0,e+=(r^(t|~n))+a[0]-198630844,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[7]+1126891415,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[14]-1416354905,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[5]-57434055,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~n))+a[12]+1700485571,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[3]-1894986606,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[10]-1051523,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[1]-2054922799,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~n))+a[8]+1873313359,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[15]-30611744,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[6]-1560198380,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[13]+1309151649,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~n))+a[4]-145523070,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[11]-1120210379,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[2]+718787259,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[9]-343485551,t=(t<<21|t>>>11)+r<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=r-1732584194<<0,this.h3=n+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+r<<0,this.h3=this.h3+n<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,r,n="",o=this.array(),i=0;i<15;)e=o[i++],t=o[i++],r=o[i++],n+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return e=o[i],n+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"==",n};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("4362"),__webpack_require__("c8ba"))},"83b9":function(e,t,r){"use strict";var n=r("d925"),o=r("e683");e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},"852e":function(e,t,r){(function(t,r){e.exports=r()})(0,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var t={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function r(t,n){function o(r,o,i){if("undefined"!==typeof document){i=e({},n,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=r+"="+t.write(o,r)+a}}function i(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=t.read(a,s),e===s)break}catch(u){}}return e?n[e]:n}}return Object.create({set:o,get:i,remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(t){return r(this.converter,e({},this.attributes,t))},withConverter:function(t){return r(e({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}var n=r(t,{path:"/"});return n}))},"85e3":function(e,t){function r(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}e.exports=r},"872a":function(e,t,r){var n=r("3b4a");function o(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}e.exports=o},8861:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("124f"),o=a(n),i=r("6e53");function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),e+=(0,i.mod10)(e),e+=(0,i.mod10)(e),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),t}(o.default);t.default=l},8875:function(e,t,r){var n,o,i;(function(r,a){o=[],n=a,i="function"===typeof n?n.apply(t,o):n,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(h.stack)||a.exec(h.stack),u=s&&s[1]||!1,c=s&&s[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");u===l&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===u)return f[d];if(u===l&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}return null}}return e}))},"89a2":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r("c243"),a=r("bdfe"),s=u(a);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){var t=e.substr(0,12).split("").map((function(e){return+e})).reduce((function(e,t,r){return r%2?e+3*t:e+t}),0);return(10-t%10)%10},h=function(e){function t(e,r){c(this,t),-1!==e.search(/^[0-9]{12}$/)&&(e+=d(e));var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.lastChar=r.lastChar,n}return f(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===d(this.data)}},{key:"leftText",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var e=this.data.substr(1,6),r=i.EAN13_STRUCTURE[this.data[0]];return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,e,r)}},{key:"rightText",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var e=this.data.substr(7,6);return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,e,"RRRRRR")}},{key:"encodeGuarded",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(e.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:"00"}),e.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),t}(s.default);t.default=h},"8adb":function(e,t){function r(e,t){if("__proto__"!=t)return e[t]}e.exports=r},"8de2":function(e,t,r){var n=r("8eeb"),o=r("9934");function i(e){return n(e,o(e))}e.exports=i},"8df4":function(e,t,r){"use strict";var n=r("7a77");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},"8e51":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSI1110=t.MSI1010=t.MSI11=t.MSI10=t.MSI=void 0;var n=r("124f"),o=h(n),i=r("4727"),a=h(i),s=r("4461"),u=h(s),c=r("8861"),l=h(c),f=r("805f"),d=h(f);function h(e){return e&&e.__esModule?e:{default:e}}t.MSI=o.default,t.MSI10=a.default,t.MSI11=u.default,t.MSI1010=l.default,t.MSI1110=d.default},"8eeb":function(e,t,r){var n=r("32b3"),o=r("872a");function i(e,t,r,i){var a=!r;r||(r={});var s=-1,u=t.length;while(++s<u){var c=t[s],l=i?i(r[c],e[c],c,r,e):void 0;void 0===l&&(l=e[c]),a?o(r,c,l):n(r,c,l)}return r}e.exports=i},"91e9":function(e,t){function r(e,t){return function(r){return e(t(r))}}e.exports=r},"93ed":function(e,t,r){var n=r("4245");function o(e){var t=n(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=o},9520:function(e,t,r){var n=r("3729"),o=r("1a8c"),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function c(e){if(!o(e))return!1;var t=n(e);return t==a||t==s||t==i||t==u}e.exports=c},9638:function(e,t){function r(e,t){return e===t||e!==e&&t!==t}e.exports=r},"96f3":function(e,t){var r=Object.prototype,n=r.hasOwnProperty;function o(e,t){return null!=e&&n.call(e,t)}e.exports=o},9934:function(e,t,r){var n=r("6fcd"),o=r("41c3"),i=r("30c9");function a(e){return i(e)?n(e,!0):o(e)}e.exports=a},"99cd":function(e,t){function r(e){return function(t,r,n){var o=-1,i=Object(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++o];if(!1===r(i[u],u,i))break}return t}}e.exports=r},"99d3":function(e,t,r){(function(e){var n=r("585a"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a&&n.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=u}).call(this,r("62e4")(e))},"9aff":function(e,t,r){var n=r("9638"),o=r("30c9"),i=r("c098"),a=r("1a8c");function s(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}e.exports=s},"9e69":function(e,t,r){var n=r("2b3e"),o=n.Symbol;e.exports=o},"9ffa":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITF14=t.ITF=void 0;var n=r("3c7c"),o=s(n),i=r("07df"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.ITF=o.default,t.ITF14=a.default},a029:function(e,t,r){var n=r("087d"),o=r("2dcb"),i=r("32f4"),a=r("d327"),s=Object.getOwnPropertySymbols,u=s?function(e){var t=[];while(e)n(t,i(e)),e=o(e);return t}:a;e.exports=u},a2b0:function(e,t,r){"use strict";function n(e){var t=[];function r(e){if(Array.isArray(e))for(var n=0;n<e.length;n++)r(e[n]);else e.text=e.text||"",e.data=e.data||"",t.push(e)}return r(e),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},a2db:function(e,t,r){var n=r("9e69"),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}e.exports=a},a454:function(e,t,r){var n=r("72f0"),o=r("3b4a"),i=r("cd9d"),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},a524:function(e,t,r){var n=r("4245");function o(e){return n(this,e).has(e)}e.exports=o},a5d2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("c243"),i=r("5726"),a=c(i),s=r("e762"),u=c(s);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(e,r){return l(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return d(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var e=o.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,a.default)(this.data,e,"01"),text:this.text}}}]),t}(u.default);t.default=h},a994:function(e,t,r){var n=r("7d1f"),o=r("32f4"),i=r("ec69");function a(e){return n(e,i,o)}e.exports=a},aab3:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("5261"),o=s(n),i=r("ca32"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){var t={};for(var r in a.default)a.default.hasOwnProperty(r)&&(e.hasAttribute("jsbarcode-"+r.toLowerCase())&&(t[r]=e.getAttribute("jsbarcode-"+r.toLowerCase())),e.hasAttribute("data-"+r.toLowerCase())&&(t[r]=e.getAttribute("data-"+r.toLowerCase())));return t["value"]=e.getAttribute("jsbarcode-value")||e.getAttribute("data-value"),t=(0,o.default)(t),t}t.default=u},ab5b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTotalWidthOfEncodings=t.calculateEncodingAttributes=t.getBarcodePadding=t.getEncodingHeight=t.getMaximumHeightOfEncodings=void 0;var n=r("fd7c"),o=i(n);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function s(e,t,r){if(r.displayValue&&t<e){if("center"==r.textAlign)return Math.floor((e-t)/2);if("left"==r.textAlign)return 0;if("right"==r.textAlign)return Math.floor(e-t)}return 0}function u(e,t,r){for(var n=0;n<e.length;n++){var i,u=e[n],c=(0,o.default)(t,u.options);i=c.displayValue?f(u.text,c,r):0;var l=u.data.length*c.width;u.width=Math.ceil(Math.max(i,l)),u.height=a(u,c),u.barcodePadding=s(i,l,c)}}function c(e){for(var t=0,r=0;r<e.length;r++)t+=e[r].width;return t}function l(e){for(var t=0,r=0;r<e.length;r++)e[r].height>t&&(t=e[r].height);return t}function f(e,t,r){var n;if(r)n=r;else{if("undefined"===typeof document)return 0;n=document.createElement("canvas").getContext("2d")}n.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var o=n.measureText(e);if(!o)return 0;var i=o.width;return i}t.getMaximumHeightOfEncodings=l,t.getEncodingHeight=a,t.getBarcodePadding=s,t.calculateEncodingAttributes=u,t.getTotalWidthOfEncodings=c},b047:function(e,t){function r(e){return function(t){return e(t)}}e.exports=r},b1d2:function(e,t,r){var n=r("3729"),o=r("1310"),i="[object Date]";function a(e){return o(e)&&n(e)==i}e.exports=a},b1d8:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r("aab3"),i=c(o),a=r("752b"),s=c(a),u=r("dca2");function c(e){return e&&e.__esModule?e:{default:e}}function l(e){if("string"===typeof e)return f(e);if(Array.isArray(e)){for(var t=[],r=0;r<e.length;r++)t.push(l(e[r]));return t}if("undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLImageElement)return d(e);if(e&&e.nodeName&&"svg"===e.nodeName.toLowerCase()||"undefined"!==typeof SVGElement&&e instanceof SVGElement)return{element:e,options:(0,i.default)(e),renderer:s.default.SVGRenderer};if("undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement)return{element:e,options:(0,i.default)(e),renderer:s.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:s.default.CanvasRenderer};if(e&&"object"===("undefined"===typeof e?"undefined":n(e))&&!e.nodeName)return{element:e,renderer:s.default.ObjectRenderer};throw new u.InvalidElementException}function f(e){var t=document.querySelectorAll(e);if(0!==t.length){for(var r=[],n=0;n<t.length;n++)r.push(l(t[n]));return r}}function d(e){var t=document.createElement("canvas");return{element:t,options:(0,i.default)(e),renderer:s.default.CanvasRenderer,afterRender:function(){e.setAttribute("src",t.toDataURL())}}}t.default=l},b218:function(e,t){var r=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}e.exports=n},b4c0:function(e,t,r){var n=r("cb5a");function o(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}e.exports=o},b50d:function(e,t,r){"use strict";var n=r("c532"),o=r("467f"),i=r("7aac"),a=r("30b5"),s=r("83b9"),u=r("c345"),c=r("3934"),l=r("2d83");e.exports=function(e){return new Promise((function(t,r){var f=e.data,d=e.headers;n.isFormData(f)&&delete d["Content-Type"],(n.isBlob(f)||n.isFile(f))&&f.type&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=unescape(encodeURIComponent(e.auth.password))||"";d.Authorization="Basic "+btoa(p+":"+g)}var y=s(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,i=e.responseType&&"text"!==e.responseType?h.response:h.responseText,a={data:i,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};o(t,r,a),h=null}},h.onabort=function(){h&&(r(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var _=(e.withCredentials||c(y))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;_&&(d[e.xsrfHeaderName]=_)}if("setRequestHeader"in h&&n.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),r(e),h=null)})),f||(f=null),h.send(f)}))}},b5a7:function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"DataView");e.exports=i},b760:function(e,t,r){var n=r("872a"),o=r("9638");function i(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}e.exports=i},bb5d:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("f08e"),o=function(e){return e.match(new RegExp("^"+n.A_CHARS+"*"))[0].length},i=function(e){return e.match(new RegExp("^"+n.B_CHARS+"*"))[0].length},a=function(e){return e.match(new RegExp("^"+n.C_CHARS+"*"))[0]};function s(e,t){var r=t?n.A_CHARS:n.B_CHARS,o=e.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+u(e.substring(o[1].length));var i=e.match(new RegExp("^"+r+"+"))[0];return i.length===e.length?e:i+String.fromCharCode(t?205:206)+s(e.substring(i.length),!t)}function u(e){var t=a(e),r=t.length;if(r===e.length)return e;e=e.substring(r);var n=o(e)>=i(e);return t+String.fromCharCode(n?206:205)+s(e,n)}t.default=function(e){var t=void 0,r=a(e).length;if(r>=2)t=n.C_START_CHAR+u(e);else{var c=o(e)>i(e);t=(c?n.A_START_CHAR:n.B_START_CHAR)+s(e,c)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(e,t){return String.fromCharCode(203)+t}))}},bbc0:function(e,t,r){var n=r("6044"),o="__lodash_hash_undefined__",i=Object.prototype,a=i.hasOwnProperty;function s(e){var t=this.__data__;if(n){var r=t[e];return r===o?void 0:r}return a.call(t,e)?t[e]:void 0}e.exports=s},bc3a:function(e,t,r){e.exports=r("cee4")},bd8a:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t){o(this,e),this.api=t}return n(e,[{key:"handleCatch",value:function(e){if("InvalidInputException"!==e.name)throw e;if(this.api._options.valid===this.api._defaults.valid)throw e.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(r){return this.handleCatch(r),this.api}}}]),e}();t.default=i},bdfe:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("c243"),i=r("5726"),a=c(i),s=r("e762"),u=c(s);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(e,r){l(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.fontSize=!r.flat&&r.fontSize>10*r.width?10*r.width:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return d(t,e),n(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(e,t){return this.text.substr(e,t)}},{key:"leftEncode",value:function(e,t){return(0,a.default)(e,t)}},{key:"rightText",value:function(e,t){return this.text.substr(e,t)}},{key:"rightEncode",value:function(e,t){return(0,a.default)(e,t)}},{key:"encodeGuarded",value:function(){var e={fontSize:this.fontSize},t={height:this.guardHeight};return[{data:o.SIDE_BIN,options:t},{data:this.leftEncode(),text:this.leftText(),options:e},{data:o.MIDDLE_BIN,options:t},{data:this.rightEncode(),text:this.rightText(),options:e},{data:o.SIDE_BIN,options:t}]}},{key:"encodeFlat",value:function(){var e=[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.SIDE_BIN];return{data:e.join(""),text:this.text}}}]),t}(u.default);t.default=h},be5e:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("fd7c"),i=s(o),a=r("ab5b");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c="http://www.w3.org/2000/svg",l=function(){function e(t,r,n){u(this,e),this.svg=t,this.encodings=r,this.options=n,this.document=n.xmlDocument||document}return n(e,[{key:"render",value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var r=this.encodings[t],n=(0,i.default)(this.options,r.options),o=this.createGroup(e,n.marginTop,this.svg);this.setGroupOptions(o,n),this.drawSvgBarcode(o,n,r),this.drawSVGText(o,n,r),e+=r.width}}},{key:"prepareSVG",value:function(){while(this.svg.firstChild)this.svg.removeChild(this.svg.firstChild);(0,a.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,a.getTotalWidthOfEncodings)(this.encodings),t=(0,a.getMaximumHeightOfEncodings)(this.encodings),r=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(r,t),this.options.background&&this.drawRect(0,0,r,t,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(e,t,r){var n,o=r.data;n="top"==t.textPosition?t.fontSize+t.textMargin:0;for(var i=0,a=0,s=0;s<o.length;s++)a=s*t.width+r.barcodePadding,"1"===o[s]?i++:i>0&&(this.drawRect(a-t.width*i,n,t.width*i,t.height,e),i=0);i>0&&this.drawRect(a-t.width*(i-1),n,t.width*i,t.height,e)}},{key:"drawSVGText",value:function(e,t,r){var n,o,i=this.document.createElementNS(c,"text");t.displayValue&&(i.setAttribute("style","font:"+t.fontOptions+" "+t.fontSize+"px "+t.font),o="top"==t.textPosition?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,"left"==t.textAlign||r.barcodePadding>0?(n=0,i.setAttribute("text-anchor","start")):"right"==t.textAlign?(n=r.width-1,i.setAttribute("text-anchor","end")):(n=r.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",n),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(r.text)),e.appendChild(i))}},{key:"setSvgAttributes",value:function(e,t){var r=this.svg;r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("x","0px"),r.setAttribute("y","0px"),r.setAttribute("viewBox","0 0 "+e+" "+t),r.setAttribute("xmlns",c),r.setAttribute("version","1.1"),r.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(e,t,r){var n=this.document.createElementNS(c,"g");return n.setAttribute("transform","translate("+e+", "+t+")"),r.appendChild(n),n}},{key:"setGroupOptions",value:function(e,t){e.setAttribute("style","fill:"+t.lineColor+";")}},{key:"drawRect",value:function(e,t,r,n,o){var i=this.document.createElementNS(c,"rect");return i.setAttribute("x",e),i.setAttribute("y",t),i.setAttribute("width",r),i.setAttribute("height",n),o.appendChild(i),i}}]),e}();t.default=l},be98:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("5726"),i=c(o),a=r("e762"),s=c(a),u=r("e8b2");function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],p=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],g=function(e){function t(e,r){l(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(n.isValid=!1,-1!==e.search(/^[0-9]{6}$/))n.middleDigits=e,n.upcA=y(e,"0"),n.text=r.text||""+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(-1===e.search(/^[01][0-9]{7}$/))return f(n);if(n.middleDigits=e.substring(1,e.length-1),n.upcA=y(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]!==e[e.length-1])return f(n);n.isValid=!0}return n.displayValue=r.displayValue,r.fontSize>10*r.width?n.fontSize=10*r.width:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return d(t,e),n(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=this.encodeMiddleDigits(),e+="010101",{data:e,text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101",options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),e}},{key:"encodeMiddleDigits",value:function(){var e=this.upcA[0],t=this.upcA[this.upcA.length-1],r=p[parseInt(t)][parseInt(e)];return(0,i.default)(this.middleDigits,r)}}]),t}(s.default);function y(e,t){for(var r=parseInt(e[e.length-1]),n=h[r],o="",i=0,a=0;a<n.length;a++){var s=n[a];o+="X"===s?e[i++]:s}return o=""+t+o,""+o+(0,u.checksum)(o)}t.default=g},c098:function(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(e,t){var o=typeof e;return t=null==t?r:t,!!t&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<t}e.exports=o},c17b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codabar=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){s(this,t),0===e.search(/^[0-9\-\$\:\.\+\/]+$/)&&(e="A"+e+"A");var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return c(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var e=[],t=this.getEncodings(),r=0;r<this.data.length;r++)e.push(t[this.data.charAt(r)]),r!==this.data.length-1&&e.push("0");return{text:this.text,data:e.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),t}(i.default);t.codabar=l},c1c9:function(e,t,r){var n=r("a454"),o=r("f3c1"),i=o(n);e.exports=i},c243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SIDE_BIN="101",t.MIDDLE_BIN="01010",t.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},t.EAN2_STRUCTURE=["LL","LG","GL","GG"],t.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],t.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},c2b6:function(e,t,r){var n=r("f8af"),o=r("5d89"),i=r("6f6c"),a=r("a2db"),s=r("c8fe"),u="[object Boolean]",c="[object Date]",l="[object Map]",f="[object Number]",d="[object RegExp]",h="[object Set]",p="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",_="[object DataView]",b="[object Float32Array]",v="[object Float64Array]",m="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",x="[object Uint8ClampedArray]",T="[object Uint16Array]",S="[object Uint32Array]";function A(e,t,r){var A=e.constructor;switch(t){case y:return n(e);case u:case c:return new A(+e);case _:return o(e,r);case b:case v:case m:case w:case E:case O:case x:case T:case S:return s(e,r);case l:return new A;case f:case p:return new A(e);case d:return i(e);case h:return new A;case g:return a(e)}}e.exports=A},c345:function(e,t,r){"use strict";var n=r("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},c3fc:function(e,t,r){var n=r("42a2"),o=r("1310"),i="[object Set]";function a(e){return o(e)&&n(e)==i}e.exports=a},c401:function(e,t,r){"use strict";var n=r("c532");e.exports=function(e,t,r){return n.forEach(r,(function(r){e=r(e,t)})),e}},c532:function(e,t,r){"use strict";var n=r("1d2b"),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function u(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===o.call(e)}function y(e){return"[object File]"===o.call(e)}function _(e){return"[object Blob]"===o.call(e)}function b(e){return"[object Function]"===o.call(e)}function v(e){return h(e)&&b(e.pipe)}function m(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function E(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function O(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function x(){var e={};function t(t,r){p(e[r])&&p(t)?e[r]=x(e[r],t):p(t)?e[r]=x({},t):i(t)?e[r]=t.slice():e[r]=t}for(var r=0,n=arguments.length;r<n;r++)O(arguments[r],t);return e}function T(e,t,r){return O(t,(function(t,o){e[o]=r&&"function"===typeof t?n(t,r):t})),e}function S(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:i,isArrayBuffer:u,isBuffer:s,isFormData:c,isArrayBufferView:l,isString:f,isNumber:d,isObject:h,isPlainObject:p,isUndefined:a,isDate:g,isFile:y,isBlob:_,isFunction:b,isStream:v,isURLSearchParams:m,isStandardBrowserEnv:E,forEach:O,merge:x,extend:T,trim:w,stripBOM:S}},c869:function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"Set");e.exports=i},c87c:function(e,t){var r=Object.prototype,n=r.hasOwnProperty;function o(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}e.exports=o},c8af:function(e,t,r){"use strict";var n=r("c532");e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},c8fe:function(e,t,r){var n=r("f8af");function o(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}e.exports=o},ca32:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};t.default=n},cb5a:function(e,t,r){var n=r("9638");function o(e,t){var r=e.length;while(r--)if(n(e[r][0],t))return r;return-1}e.exports=o},cc45:function(e,t,r){var n=r("1a2d"),o=r("b047"),i=r("99d3"),a=i&&i.isMap,s=a?o(a):n;e.exports=s},cd9d:function(e,t){function r(e){return e}e.exports=r},ce86:function(e,t,r){var n=r("9e69"),o=r("7948"),i=r("6747"),a=r("ffd6"),s=1/0,u=n?n.prototype:void 0,c=u?u.toString:void 0;function l(e){if("string"==typeof e)return e;if(i(e))return o(e,l)+"";if(a(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=l},cee4:function(e,t,r){"use strict";var n=r("c532"),o=r("1d2b"),i=r("0a06"),a=r("4a7b"),s=r("2444");function u(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var c=u(s);c.Axios=i,c.create=function(e){return u(a(c.defaults,e))},c.Cancel=r("7a77"),c.CancelToken=r("8df4"),c.isCancel=r("2e67"),c.all=function(e){return Promise.all(e)},c.spread=r("0df6"),e.exports=c,e.exports.default=c},d02c:function(e,t,r){var n=r("5e2e"),o=r("79bc"),i=r("7b83"),a=200;function s(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(e,t),this.size=r.size,this}e.exports=s},d327:function(e,t){function r(){return[]}e.exports=r},d370:function(e,t,r){var n=r("253c"),o=r("1310"),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},d7ee:function(e,t,r){var n=r("c3fc"),o=r("b047"),i=r("99d3"),a=i&&i.isSet,s=a?o(a):n;e.exports=s},d925:function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},da03:function(e,t,r){var n=r("2b3e"),o=n["__core-js_shared__"];e.exports=o},da3d:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CODE128C=t.CODE128B=t.CODE128A=t.CODE128=void 0;var n=r("6f24"),o=f(n),i=r("e8c9"),a=f(i),s=r("70b0"),u=f(s),c=r("ed3f"),l=f(c);function f(e){return e&&e.__esModule?e:{default:e}}t.CODE128=o.default,t.CODE128A=a.default,t.CODE128B=u.default,t.CODE128C=l.default},dc57:function(e,t){var r=Function.prototype,n=r.toString;function o(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=o},dca2:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(e,r){n(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="InvalidInputException",i.symbology=e,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return i(t,e),t}(Error),s=function(e){function t(){n(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="InvalidElementException",e.message="Not supported type to render on",e}return i(t,e),t}(Error),u=function(e){function t(){n(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="NoElementException",e.message="No element to render on.",e}return i(t,e),t}(Error);t.InvalidInputException=a,t.InvalidElementException=s,t.NoElementException=u},dcbe:function(e,t,r){var n=r("30c9"),o=r("1310");function i(e){return o(e)&&n(e)}e.exports=i},df7c:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){r=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":e.slice(r,n)}function o(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,n="/"===a.charAt(0))}return t=r(o(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),a="/"===i(e,-1);return e=r(o(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&a&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var r=e.length-1;r>=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}var c=[];for(u=s;u<o.length;u++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=n(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(o=!1,n=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){r=a+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("4362"))},e031:function(e,t,r){var n=r("f909"),o=r("1a8c");function i(e,t,r,a,s,u){return o(e)&&o(t)&&(u.set(t,e),n(e,t,void 0,i,u),u["delete"](t)),e}e.exports=i},e24b:function(e,t,r){var n=r("49f4"),o=r("1efc"),i=r("bbc0"),a=r("7a48"),s=r("2524");function u(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},e2c0:function(e,t,r){var n=r("e2e4"),o=r("d370"),i=r("6747"),a=r("c098"),s=r("b218"),u=r("f4d6");function c(e,t,r){t=n(t,e);var c=-1,l=t.length,f=!1;while(++c<l){var d=u(t[c]);if(!(f=null!=e&&r(e,d)))break;e=e[d]}return f||++c!=l?f:(l=null==e?0:e.length,!!l&&s(l)&&a(d,l)&&(i(e)||o(e)))}e.exports=c},e2e4:function(e,t,r){var n=r("6747"),o=r("f608"),i=r("18d8"),a=r("76dd");function s(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}e.exports=s},e380:function(e,t,r){var n=r("7b83"),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},e538:function(e,t,r){(function(e){var n=r("2b3e"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var r=e.length,n=u?u(r):new e.constructor(r);return e.copy(n),n}e.exports=c}).call(this,r("62e4")(e))},e683:function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e762:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function e(t,r){n(this,e),this.data=t,this.text=r.text||t,this.options=r};t.default=o},e8b2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.checksum=h;var o=r("5726"),i=u(o),a=r("e762"),s=u(a);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e,r){c(this,t),-1!==e.search(/^[0-9]{11}$/)&&(e+=h(e));var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.displayValue=r.displayValue,r.fontSize>10*r.width?n.fontSize=10*r.width:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return f(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==h(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=(0,i.default)(this.data.substr(0,6),"LLLLLL"),e+="01010",e+=(0,i.default)(this.data.substr(6,6),"RRRRRR"),e+="101",{data:e,text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101"+(0,i.default)(this.data[0],"L"),options:{height:this.guardHeight}}),e.push({data:(0,i.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:"01010",options:{height:this.guardHeight}}),e.push({data:(0,i.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,i.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),e}}]),t}(s.default);function h(e){var t,r=0;for(t=1;t<11;t+=2)r+=parseInt(e[t]);for(t=0;t<11;t+=2)r+=3*parseInt(e[t]);return(10-r%10)%10}t.default=d},e8c9:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("4b23"),i=s(o),a=r("f08e");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a.A_START_CHAR+e,r))}return l(t,e),n(t,[{key:"valid",value:function(){return new RegExp("^"+a.A_CHARS+"+$").test(this.data)}}]),t}(i.default);t.default=f},eac5:function(e,t){var r=Object.prototype;function n(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||r;return e===n}e.exports=n},ec69:function(e,t,r){var n=r("6fcd"),o=r("03dd"),i=r("30c9");function a(e){return i(e)?n(e):o(e)}e.exports=a},ec8c:function(e,t){function r(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}e.exports=r},ed27:function(e){e.exports=JSON.parse('{"name":"hi-eap","version":"1.2.88","description":"A utils Library for hi-eap. Smart Client Platform","main":"eap.umd.min.js","homepage":"http://hieap.cn","scripts":{"build:eap":"cross-env NODE_LIB=eap vue-cli-service build --target lib --name eap --dest hi-eap ./src/eap/index.js"},"dependencies":{},"devDependencies":{},"eslintIgnore":["**/*.md"]}')},ed3f:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("4b23"),i=s(o),a=r("f08e");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a.C_START_CHAR+e,r))}return l(t,e),n(t,[{key:"valid",value:function(){return new RegExp("^"+a.C_CHARS+"+$").test(this.data)}}]),t}(i.default);t.default=f},efb6:function(e,t,r){var n=r("5e2e");function o(){this.__data__=new n,this.size=0}e.exports=o},f08e:function(e,t,r){"use strict";var n;function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0});var i=t.SET_A=0,a=t.SET_B=1,s=t.SET_C=2,u=(t.SHIFT=98,t.START_A=103),c=t.START_B=104,l=t.START_C=105;t.MODULO=103,t.STOP=106,t.FNC1=207,t.SET_BY_CODE=(n={},o(n,u,i),o(n,c,a),o(n,l,s),n),t.SWAP={101:i,100:a,99:s},t.A_START_CHAR=String.fromCharCode(208),t.B_START_CHAR=String.fromCharCode(209),t.C_START_CHAR=String.fromCharCode(210),t.A_CHARS="[\0-_È-Ï]",t.B_CHARS="[ -È-Ï]",t.C_CHARS="(Ï*[0-9]{2}Ï*)",t.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},f3c1:function(e,t){var r=800,n=16,o=Date.now;function i(e){var t=0,i=0;return function(){var a=o(),s=n-(a-i);if(i=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}e.exports=i},f4d6:function(e,t,r){var n=r("ffd6"),o=1/0;function i(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}e.exports=i},f608:function(e,t,r){var n=r("6747"),o=r("ffd6"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}e.exports=s},f6b4:function(e,t,r){"use strict";var n=r("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f8af:function(e,t,r){var n=r("2474");function o(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}e.exports=o},f909:function(e,t,r){var n=r("7e64"),o=r("b760"),i=r("72af"),a=r("4f50"),s=r("1a8c"),u=r("9934"),c=r("8adb");function l(e,t,r,f,d){e!==t&&i(t,(function(i,u){if(s(i))d||(d=new n),a(e,t,u,r,l,f,d);else{var h=f?f(c(e,u),i,u+"",e,t,d):void 0;void 0===h&&(h=i),o(e,u,h)}}),u)}e.exports=l},fa21:function(e,t,r){var n=r("7530"),o=r("2dcb"),i=r("eac5");function a(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}e.exports=a},fb15:function(e,t,r){"use strict";if(r.r(t),r.d(t,"user",(function(){return Ke})),r.d(t,"ajax",(function(){return Ge})),r.d(t,"request",(function(){return Fe})),r.d(t,"mergeConfig",(function(){return at})),r.d(t,"lang",(function(){return st})),r.d(t,"utils",(function(){return Le})),r.d(t,"page",(function(){return Qe})),r.d(t,"dataHelper",(function(){return rt})),"undefined"!==typeof window){var n=window.document.currentScript,o=r("8875");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a=r("bc3a"),s=r.n(a),u=r("852e"),c=r.n(u),l="d23290d0-f840-46d4-8401-ae815cc05c9a";const f="EAP-Token";function d(){let e=c.a.get(f),t=Object({NODE_ENV:"production",VUE_APP_BASE_API:"http://192.168.4.106:7777",BASE_URL:"/"});return e||"development"!=t.NODE_ENV?e:l}function h(e){return c.a.set(f,e)}function p(){return c.a.remove(f)}var g={getToken:d,setToken:h,removeToken:p},y=r("5f72"),_={string:"dbString",int:"dbInt",float:"dbFloat",double:"dbDouble",text:"dbText ",boolean:"dbBoolean ",datetime:"dbDatetime ",timestamp:"dbTimestamp "},b={pageIndex:"pageNum",pageSize:"pageSize",body:"__body",funcpath:"__funcpath",returnTotal:"__returnCount",zcQuery:"__zcQuery",slaveEntities:"__slaveEntities",modelFilePath:"modelFilePath",slaveExport:"__slaveExport",sheetStyle:"__sheetStyle",sheetDatas:"__sheetDatas",viewItemId:"viewItemId"},v=r("3852"),m=r.n(v),w=r("6220"),E=r.n(w);const O={projectName:"eap5csxm/admin",pName:"eap5csxm",pUser:"admin",messageType:"msgBox",deployDir:"",url:"http://192.168.4.105:7777",editorResDir:"",serverName:"",serverUrl:"",userInfo:"/sys/user/detail",loginUrl:"/login.html",miniLoginUrl:"/login.html",mainPageUrl:"/main.html",saveWsUrl:"/ws/progress/{id}",saveUrl:"/data/save",queryUrl:"/data/query",exportExcelHeartbeatUrl:"/export/dataexcel/status",excelImportUrl:"/import/exceldata",wsExcelImportUrl:"/ws/import/exceldata",exportUrl:"/export/dataexcel",exportPathUrl:"/export/dataexcel/path",exportNewUrl:"/export/dataexcelnew",pageInitUrl:"/data/page/permit",policyUrl:"/data/policy",flowUrlByPush:"/sys/auth/query-flowux",upload:"/file/upload",download:"/file/download",review:"/file/static/preview",publicupload:"/file/public/upload",publicdownload:"/file/public/download",publicreview:"/file/public/preview",getFlowInfo:"/flow/open",getApprovalInfo:"/flow/getApprovalInfo",processFlow:"/flow/processFlow",umpireOrder:"/flow/umpireOrder",queryTask:"/flow/queryTask",withdrawtask:"/flow/withdrawtask",taskDiagram:"/flow/taskDiagram",ganttChart:"/flow/ganttChart",openOrdernumber:"/flow/openOrdernumber",queryOperate:"like",requestTimeout:14e4,isSingleLogin:!1,singleLoginUrl:"",singleLogoutUrl:""};var x=O;const T={timeSchemeKey:{today:"today",yesterday:"yesterday",week:"week",month:"month",premonth:"premonth",quarter:"quarter",year:"year",days7:"days7",days28:"days28",days84:"days84",halfyear:"halfyear",oneyear:"oneyear"},format:function(e,t){if(!e)return"";"string"==typeof e&&(e=T.strToDate(e)),t=t.replace(/HH/,"hh");var r={"M+":e.getMonth()+1,"d+":e.getDate(),"D+":e.getDate(),"h+":e.getHours(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[n]:("00"+r[n]).substr((""+r[n]).length)));return t},getServerTimeNow(){let e="";return window.eap.ajax({url:window.HIVUI_SETTING.getNowTimeUrl,method:"GET",async:!1,success:function(t){e=t.dataPack},fail:function(){}}),e},milliSecondsBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),Math.abs(e.getTime()-t.getTime())},secondsBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.abs((e.getTime()-t.getTime())/1e3):null},minutesBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.floor(Math.abs((e.getTime()-t.getTime())/6e4)):null},hoursBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.floor(Math.abs((e.getTime()-t.getTime())/36e5)):null},daysBetween:function(e,t,r){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?(e=this.strFormatDate(this.format(e,"yyyy-MM-dd")),t=this.strFormatDate(this.format(t,"yyyy-MM-dd")),r?Math.floor(Math.abs((e.getTime()-t.getTime())/864e5)):Math.floor((e.getTime()-t.getTime())/864e5)):null},monthsBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.abs(12*(e.getFullYear()-t.getFullYear()))+Math.abs(e.getMonth()-t.getMonth()):null},yearsBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.abs(e.getFullYear()-t.getFullYear()):null},getWeekCn:function(e){var t=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");return"string"==typeof e&&(e=T.strToDate(e)),t[e.getDay()]},getWeek:function(e){return"string"==typeof e&&(e=T.strToDate(e)),e.getDay()},isDateTime:function(e){if(""==e.trim())return!1;var t=e.match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/),r=e.match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}).(\d{1,6})$/),n=e.match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2})$/);if(null==t&&null==r&&null==n)return!1;if(t=t||r||n,6==t.length){var o=new Date(t[1],t[2]-1,t[3],t[4],t[5]);let e=o.getFullYear()==t[1]&&o.getMonth()+1==t[2]&&o.getDate()==t[3]&&o.getHours()==t[4]&&o.getMinutes()==t[5];return 0!=e}var i=new Date(t[1],t[2]-1,t[3],t[4],t[5],t[6]);let a=i.getFullYear()==t[1]&&i.getMonth()+1==t[2]&&i.getDate()==t[3]&&i.getHours()==t[4]&&i.getMinutes()==t[5]&&i.getSeconds()==t[6];return 0!=a&&0!=a},isDate:function(e){if(""==e)return!0;var t=e.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(null==t)return!1;var r=new Date(t[1],t[3]-1,t[4]);let n=r.getFullYear()==t[1]&&r.getMonth()+1==t[3]&&r.getDate()==t[4];return 0!=n&&0!=n},dateof:function(e,t){let r;if(!e)return"";switch("string"==typeof e&&(e=T.strToDate(e)),t){case"y":r=e.getFullYear();break;case"m":r=e.getMonth()+1;break;case"min":r=e.getMinutes();break;case"time":r=T.format("yyyy-MM-dd hh:mm:ss");break;case"date":r=T.format("yyyy-MM-dd");break;case"weekCn":r=e.week();break;case"week":r=e.getDay();break;case"weekInYear":var n=new Date(e.getFullYear(),0,1),o=parseInt("1065432".charAt(n.getDay()));o=e.getTime()-n.getTime()-24*o*60*60*1e3,o=Math.ceil(o/6048e5),r=1!=n.getDay()?o+1:o;break;default:r=""}return r},strFormatDate:function(e,t){if(""==e||null==e)return"";let r=T.strToDate(e);return t?r.format(t):r},strToDate:function(e){if(!e)return"";if(e&&e.constructor===Date)return e;"string"==typeof e&&(e.indexOf(".")>-1&&(e=e.split(".")[0]),e=e.replace(/-/g,"/")),-1==e.indexOf("-")&&-1==e.indexOf("/")&&-1==e.indexOf(".")&&-1!=e.indexOf(":")&&(e=T.dateOf(new Date)+" "+e);var t=e.split(/[- :]/),r=e.split(/[/ :]/);return""!=e&&1==t.length&&1==r.length?(console.log(e+" Invalid Date"),""):new Date(Date.parse(e))},getQuarterStartDate:function(){var e=new Date,t="";return e.getMonth()<3?(t=new Date(e.getFullYear(),0,1),this.format(t,"yyyy-MM-dd")):e.getMonth()>2&&e.getMonth()<6?(t=new Date(e.getFullYear(),3,1),this.format(t,"yyyy-MM-dd")):e.getMonth()>5&&e.getMonth()<9?(t=new Date(e.getFullYear(),6,1),this.format(t,"yyyy-MM-dd")):e.getMonth()>8?(t=new Date(e.getFullYear(),9,1),this.format(t,"yyyy-MM-dd")):void 0},getQuarterEndDate:function(){var e=new Date,t="";return e.getMonth()<3?(t=new Date(e.getFullYear(),2,31),this.format(t,"yyyy-MM-dd")):e.getMonth()>2&&e.getMonth()<6?(t=new Date(e.getFullYear(),6,30),this.format(t,"yyyy-MM-dd")):e.getMonth()>5&&e.getMonth()<9?(t=new Date(e.getFullYear(),8,30),this.format(t,"yyyy-MM-dd")):e.getMonth()>8?(t=new Date(e.getFullYear(),11,31),this.format(t,"yyyy-MM-dd")):void 0},getYearStartDate:function(){var e=new Date,t=new Date(e.getFullYear(),0,1);return this.format(t,"yyyy-MM-dd")},getYearEndDate:function(){var e=new Date,t=new Date(e.getFullYear(),11,31);return this.format(t,"yyyy-MM-dd")},getMonthDays:function(e,t){if(void 0==t){var r=new Date;t=r.getFullYear()}e--;var n=new Date(t,e,1);return n.setDate(n.getDate()+32-n.getDate()),32-n.getDate()},getWeekStartDate:function(){var e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());return this.format(t,"yyyy-MM-dd")},getWeekEndDate:function(){var e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()+(6-e.getDay()));return this.format(t,"yyyy-MM-dd")},getMonthStartDate:function(e){var t=new Date;e&&"string"==typeof e&&(t=T.strToDate(e));var r=new Date(t.getFullYear(),t.getMonth(),1);return this.format(r,"yyyy-MM-dd")},getMonthEndDate:function(e){var t=new Date;e&&"string"==typeof e&&(t=T.strToDate(e));let r=t.getFullYear(),n=t.getMonth();var o=new Date(new Date(r,n+1,1).getTime()-864e5);return this.format(o,"yyyy-MM-dd")},now:function(){let e="yyyy-MM-dd hh:mm:ss";return this.format(new Date,e)},currentNow:function(){return new Date},TimeScheme:function(e,t){t=t||"到";var r=" 00:00:00"+t,n=" 23:59:59";switch(e){case"today":return this.format(this.strToDate(this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"yesterday":return this.format(this.dateAdd("d",-1,this.now()),"yyyy-MM-dd")+r+this.format(this.dateAdd("d",-1,this.now()),"yyyy-MM-dd")+n;case"week":return this.getWeekStartDate()+r+this.getWeekEndDate()+n;case"month":return this.getMonthStartDate()+r+this.getMonthEndDate()+n;case"quarter":return this.getQuarterStartDate()+r+this.getQuarterEndDate()+n;case"year":return this.getYearStartDate()+r+this.getYearEndDate()+n;case"days7":return this.format(this.dateAdd("d",-7,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"days28":return this.format(this.dateAdd("d",-28,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"days84":return this.format(this.dateAdd("d",-84,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"halfyear":return this.format(this.dateAdd("d",-180,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"oneyear":return this.format(this.dateAdd("d",-365,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n}},daysInMonth:function(e,t){return 1==t?e%4==0&&e%100!=0?29:28:t<=6&&t%2==0||(t=t%2==1)?31:30},dateAdd:function(e,t,r){"string"==typeof r&&(r=T.strToDate(r));var n=new Date(r);e=(e||"d").toLowerCase();let o,i=parseInt(t);switch(e){case"y":o=n.setYear(n.getFullYear()+i);break;case"q":o=n.setMonth(n.getMonth()+3*i);break;case"m":var a=n.getFullYear(),s=n.getMonth(),u=a,c=s;s+i>11?(u=a+1,c=parseInt(s+i)-12):c=n.getMonth()+i;var l=this.daysInMonth(u,c),f=n.getDate();f>l&&(f=l),o=new Date(u,c,f);break;case"d":o=n.setDate(n.getDate()+i);break;case"h":o=n.setHours(n.getHours()+i);break;case"mi":o=n.setMinutes(n.getMinutes()+i);break;case"s":o=n.setSeconds(n.getSeconds()+i);break;default:o=n.setDate(n.getDate()+i);break}return new Date(o)}};var S=T;const A={accDiv:function(e,t){var r,n,o=0,i=0;try{o=e.toString().split(".")[1].length}catch(a){o=0}try{i=t.toString().split(".")[1].length}catch(a){i=0}return r=Number(e.toString().replace(".","")),n=Number(t.toString().replace(".","")),r/n*Math.pow(10,i-o)},accMul:function(e,t){var r=0,n=e.toString(),o=t.toString();try{r+=n.split(".")[1].length}catch(i){r=0}try{r+=o.split(".")[1].length}catch(i){r+=0}return Number(n.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,r)},accAdd:function(e,t){var r,n,o;try{r=e.toString().split(".")[1].length}catch(i){r=0}try{n=t.toString().split(".")[1].length}catch(i){n=0}return o=Math.pow(10,Math.max(r,n)),(A.accMul(e,o)+A.accMul(t,o))/o},toFixed(e,t){var r,n,o=0,i=e+"",a=i.indexOf(".");i.substr(a+t+1,1)>=5&&(o=1),n=Math.pow(10,t),r=Math.floor(e*n)+o;var s=r/n+"";a=s.indexOf("."),a<0&&(s+=".",a=s.indexOf("."));var u=s.length-(a+1);if(u<t)for(var c=0;c<t-u;c++)s+=0;return s},formatCn(e){let t=["角","分"],r=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],n=[["元","万","亿"],["","拾","佰","仟"]],o=e<0?"欠":"";e=Math.abs(e);let i="";for(let a=0;a<t.length;a++)i+=(r[Math.floor(10*e*Math.pow(10,a))%10]+t[a]).replace(/零./,"");i=i||"整",e=Math.floor(e);for(let a=0;a<n[0].length&&e>0;a++){let t="";for(let o=0;o<n[1].length&&e>0;o++)t=r[e%10]+n[1][o]+t,e=Math.floor(e/10);i=t.replace(/(零.)*零$/,"").replace(/^$/,"零")+n[0][a]+i}return o+i.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")},format:function(e,t){if(t||(t="000,0.00"),t.indexOf("¥")>-1&&(t="¥000,0.00"),isFinite(e)&&(e=parseFloat(e)),t.indexOf("%")>-1&&(e*=100),e=isNaN(e)?NaN:e,isNaN(e))return"";let r,n,o,i,a,s,u,c,l,f=/[^\d\.]/g,d=",",h=".",p=e<0;if(e=Math.abs(e),r=-1!=t.indexOf(","),n=t.replace(f,"").split("."),n.length>2)alert("对比格式无效");else if(n.length>1){let t=n[1].length||0,r=Math.pow(10,t);e=Number(Math.round(e*r)/r).toFixed(t)}else{let t=n[0].length||0,r=Math.pow(10,t);e=Number(Math.round(e*r)/r).toFixed(0)}if(o=e.toString(),n=o.split("."),r){for(i=n[0],a=[],s=i.length,u=Math.floor(s/3),c=i.length%3||3,l=0;l<s;l+=c)0!==l&&(c=3),a[a.length]=i.substr(l,c),u-=1;o=a.join(d),n[1]&&(o+=h+n[1])}else n[1]&&(o=n[0]+h+n[1]);return p&&(p=""!==o.replace(/[^1-9]/g,"")),(p?"-":"")+t.replace(/[\d,?\.?]+/,o)}};var j=A,P=r("8237"),I=r.n(P);const C={a:"啊阿锕",ai:"埃挨哎唉哀皑癌蔼矮艾碍爱隘诶捱嗳嗌嫒瑷暧砹锿霭",an:"鞍氨安俺按暗岸胺案谙埯揞犴庵桉铵鹌顸黯",ang:"肮昂盎",ao:"凹敖熬翱袄傲奥懊澳坳拗嗷噢岙廒遨媪骜聱螯鏊鳌鏖",ba:"芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸茇菝萆捭岜灞杷钯粑鲅魃",bai:"白柏百摆佰败拜稗薜掰鞴",ban:"斑班搬扳般颁板版扮拌伴瓣半办绊阪坂豳钣瘢癍舨",bang:"邦帮梆榜膀绑棒磅蚌镑傍谤蒡螃",bao:"苞胞包褒雹保堡饱宝抱报暴豹鲍爆勹葆宀孢煲鸨褓趵龅",bo:"剥薄玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳亳蕃啵饽檗擘礴钹鹁簸跛",bei:"杯碑悲卑北辈背贝钡倍狈备惫焙被孛陂邶埤蓓呗怫悖碚鹎褙鐾",ben:"奔苯本笨畚坌锛",beng:"崩绷甭泵蹦迸唪嘣甏",bi:"逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛匕仳俾芘荜荸吡哔狴庳愎滗濞弼妣婢嬖璧贲畀铋秕裨筚箅篦舭襞跸髀",bian:"鞭边编贬扁便变卞辨辩辫遍匾弁苄忭汴缏煸砭碥稹窆蝙笾鳊",biao:"标彪膘表婊骠飑飙飚灬镖镳瘭裱鳔",bie:"鳖憋别瘪蹩鳘",bin:"彬斌濒滨宾摈傧浜缤玢殡膑镔髌鬓",bing:"兵冰柄丙秉饼炳病并禀邴摒绠枋槟燹",bu:"捕卜哺补埠不布步簿部怖拊卟逋瓿晡钚醭",ca:"擦嚓礤",cai:"猜裁材才财睬踩采彩菜蔡",can:"餐参蚕残惭惨灿骖璨粲黪",cang:"苍舱仓沧藏伧",cao:"操糙槽曹草艹嘈漕螬艚",ce:"厕策侧册测刂帻恻",ceng:"层蹭噌",cha:"插叉茬茶查碴搽察岔差诧猹馇汊姹杈楂槎檫钗锸镲衩",chai:"拆柴豺侪茈瘥虿龇",chan:"搀掺蝉馋谗缠铲产阐颤冁谄谶蒇廛忏潺澶孱羼婵嬗骣觇禅镡裣蟾躔",chang:"昌猖场尝常长偿肠厂敞畅唱倡伥鬯苌菖徜怅惝阊娼嫦昶氅鲳",chao:"超抄钞朝嘲潮巢吵炒怊绉晁耖",che:"车扯撤掣彻澈坼屮砗",chen:"郴臣辰尘晨忱沉陈趁衬称谌抻嗔宸琛榇肜胂碜龀",cheng:"撑城橙成呈乘程惩澄诚承逞骋秤埕嵊徵浈枨柽樘晟塍瞠铖裎蛏酲",chi:"吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽傺墀芪茌搋叱哧啻嗤彳饬沲媸敕胝眙眵鸱瘛褫蚩螭笞篪豉踅踟魑",chong:"充冲虫崇宠茺忡憧铳艟",chou:"抽酬畴踌稠愁筹仇绸瞅丑俦圳帱惆溴妯瘳雠鲋",chu:"臭初出橱厨躇锄雏滁除楚础储矗搐触处亍刍憷绌杵楮樗蜍蹰黜",chuan:"揣川穿椽传船喘串掾舛惴遄巛氚钏镩舡",chuang:"疮窗幢床闯创怆",chui:"吹炊捶锤垂陲棰槌",chun:"春椿醇唇淳纯蠢促莼沌肫朐鹑蝽",chuo:"戳绰蔟辶辍镞踔龊",ci:"疵茨磁雌辞慈瓷词此刺赐次荠呲嵯鹚螅糍趑",cong:"聪葱囱匆从丛偬苁淙骢琮璁枞",cu:"凑粗醋簇猝殂蹙",cuan:"蹿篡窜汆撺昕爨",cui:"摧崔催脆瘁粹淬翠萃悴璀榱隹",cun:"村存寸磋忖皴",cuo:"撮搓措挫错厝脞锉矬痤鹾蹉躜",da:"搭达答瘩打大耷哒嗒怛妲疸褡笪靼鞑",dai:"呆歹傣戴带殆代贷袋待逮怠埭甙呔岱迨逯骀绐玳黛",dan:"耽担丹单郸掸胆旦氮但惮淡诞弹蛋亻儋卩萏啖澹檐殚赕眈瘅聃箪",dang:"当挡党荡档谠凼菪宕砀铛裆",dao:"刀捣蹈倒岛祷导到稻悼道盗叨啁忉洮氘焘忑纛",de:"德得的锝",deng:"蹬灯登等瞪凳邓噔嶝戥磴镫簦",di:"堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔氐籴诋谛邸坻莜荻嘀娣柢棣觌砥碲睇镝羝骶",dian:"颠掂滇碘点典靛垫电佃甸店惦奠淀殿丶阽坫埝巅玷癜癫簟踮",diao:"碉叼雕凋刁掉吊钓调轺铞蜩粜貂",die:"跌爹碟蝶迭谍叠佚垤堞揲喋渫轶牒瓞褶耋蹀鲽鳎",ding:"丁盯叮钉顶鼎锭定订丢仃啶玎腚碇町铤疔耵酊",dong:"东冬董懂动栋侗恫冻洞垌咚岽峒夂氡胨胴硐鸫",dou:"兜抖斗陡豆逗痘蔸钭窦窬蚪篼酡",du:"都督毒犊独读堵睹赌杜镀肚度渡妒芏嘟渎椟橐牍蠹笃髑黩",duan:"端短锻段断缎彖椴煅簖",dui:"堆兑队对怼憝碓",dun:"墩吨蹲敦顿囤钝盾遁炖砘礅盹镦趸",duo:"掇哆多夺垛躲朵跺舵剁惰堕咄哚缍柁铎裰踱",e:"蛾峨鹅俄额讹娥恶厄扼遏鄂饿噩谔垩垭苊莪萼呃愕屙婀轭曷腭硪锇锷鹗颚鳄",en:"恩蒽摁唔嗯",er:"而儿耳尔饵洱二贰迩珥铒鸸鲕",fa:"发罚筏伐乏阀法珐垡砝",fan:"藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛蘩幡犭梵攵燔畈蹯",fang:"坊芳方肪房防妨仿访纺放匚邡彷钫舫鲂",fei:"菲非啡飞肥匪诽吠肺废沸费芾狒悱淝妃绋绯榧腓斐扉祓砩镄痱蜚篚翡霏鲱",fen:"芬酚吩氛分纷坟焚汾粉奋份忿愤粪偾瀵棼愍鲼鼢",feng:"丰封枫蜂峰锋风疯烽逢冯缝讽奉凤俸酆葑沣砜",fu:"佛否夫敷肤孵扶拂辐幅氟符伏俘服浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐匐凫郛芙苻茯莩菔呋幞滏艴孚驸绂桴赙黻黼罘稃馥虍蚨蜉蝠蝮麸趺跗鳆",ga:"噶嘎蛤尬呷尕尜旮钆",gai:"该改概钙盖溉丐陔垓戤赅胲",gan:"干甘杆柑竿肝赶感秆敢赣坩苷尴擀泔淦澉绀橄旰矸疳酐",gang:"冈刚钢缸肛纲岗港戆罡颃筻",gong:"杠工攻功恭龚供躬公宫弓巩汞拱贡共蕻廾咣珙肱蚣蛩觥",gao:"篙皋高膏羔糕搞镐稿告睾诰郜蒿藁缟槔槁杲锆",ge:"哥歌搁戈鸽胳疙割革葛格阁隔铬个各鬲仡哿塥嗝纥搿膈硌铪镉袼颌虼舸骼髂",gei:"给",gen:"根跟亘茛哏艮",geng:"耕更庚羹埂耿梗哽赓鲠",gou:"钩勾沟苟狗垢构购够佝诟岣遘媾缑觏彀鸲笱篝鞲",gu:"辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇嘏诂菰哌崮汩梏轱牯牿胍臌毂瞽罟钴锢瓠鸪鹄痼蛄酤觚鲴骰鹘",gua:"刮瓜剐寡挂褂卦诖呱栝鸹",guai:"乖拐怪哙",guan:"棺关官冠观管馆罐惯灌贯倌莞掼涫盥鹳鳏",guang:"光广逛犷桄胱疒",gui:"瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽匦刿庋宄妫桧炅晷皈簋鲑鳜",gun:"辊滚棍丨衮绲磙鲧",guo:"锅郭国果裹过馘蠃埚掴呙囗帼崞猓椁虢锞聒蜮蜾蝈",ha:"哈",hai:"骸孩海氦亥害骇咴嗨颏醢",han:"酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉邗菡撖阚瀚晗焓颔蚶鼾",hen:"夯痕很狠恨",hang:"杭航沆绗珩桁",hao:"壕嚎豪毫郝好耗号浩薅嗥嚆濠灏昊皓颢蚝",he:"呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺诃劾壑藿嗑嗬阖盍蚵翮",hei:"嘿黑",heng:"哼亨横衡恒訇蘅",hong:"轰哄烘虹鸿洪宏弘红黉讧荭薨闳泓",hou:"喉侯猴吼厚候后堠後逅瘊篌糇鲎骺",hu:"呼乎忽瑚壶葫胡蝴狐糊湖弧虎唬护互沪户冱唿囫岵猢怙惚浒滹琥槲轷觳烀煳戽扈祜鹕鹱笏醐斛",hua:"花哗华猾滑画划化话劐浍骅桦铧稞",huai:"槐徊怀淮坏还踝",huan:"欢环桓缓换患唤痪豢焕涣宦幻郇奂垸擐圜洹浣漶寰逭缳锾鲩鬟",huang:"荒慌黄磺蝗簧皇凰惶煌晃幌恍谎隍徨湟潢遑璜肓癀蟥篁鳇",hui:"灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘诙茴荟蕙哕喙隳洄彗缋珲晖恚虺蟪麾",hun:"荤昏婚魂浑混诨馄阍溷缗",huo:"豁活伙火获或惑霍货祸攉嚯夥钬锪镬耠蠖",ji:"击圾基机畸稽积箕肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪居丌乩剞佶佴脔墼芨芰萁蒺蕺掎叽咭哜唧岌嵴洎彐屐骥畿玑楫殛戟戢赍觊犄齑矶羁嵇稷瘠瘵虮笈笄暨跻跽霁鲚鲫髻麂",jia:"嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁伽郏拮岬浃迦珈戛胛恝铗镓痂蛱笳袈跏",jian:"歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件健舰剑饯渐溅涧建僭谏谫菅蒹搛囝湔蹇謇缣枧柙楗戋戬牮犍毽腱睑锏鹣裥笕箴翦趼踺鲣鞯",jiang:"僵姜将浆江疆蒋桨奖讲匠酱降茳洚绛缰犟礓耩糨豇",jiao:"蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫佼僬茭挢噍峤徼姣纟敫皎鹪蛟醮跤鲛",jie:"窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届偈讦诘喈嗟獬婕孑桀獒碣锴疖袷颉蚧羯鲒骱髫",jin:"巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸尽卺荩堇噤馑廑妗缙瑾槿赆觐钅锓衿矜",jing:"劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净刭儆阱菁獍憬泾迳弪婧肼胫腈旌",jiong:"炯窘冂迥扃",jiu:"揪究纠玖韭久灸九酒厩救旧臼舅咎就疚僦啾阄柩桕鹫赳鬏",ju:"鞠拘狙疽驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧倨讵苣苴莒掬遽屦琚枸椐榘榉橘犋飓钜锔窭裾趄醵踽龃雎鞫",juan:"捐鹃娟倦眷卷绢鄄狷涓桊蠲锩镌隽",jue:"撅攫抉掘倔爵觉决诀绝厥劂谲矍蕨噘崛獗孓珏桷橛爝镢蹶觖",jun:"均菌钧军君峻俊竣浚郡骏捃狻皲筠麇",ka:"喀咖卡佧咔胩",ke:"咯坷苛柯棵磕颗科壳咳可渴克刻客课岢恪溘骒缂珂轲氪瞌钶疴窠蝌髁",kai:"开揩楷凯慨剀垲蒈忾恺铠锎",kan:"刊堪勘坎砍看侃凵莰莶戡龛瞰",kang:"康慷糠扛抗亢炕坑伉闶钪",kao:"考拷烤靠尻栲犒铐",ken:"肯啃垦恳垠裉颀",keng:"吭忐铿",kong:"空恐孔控倥崆箜",kou:"抠口扣寇芤蔻叩眍筘",ku:"枯哭窟苦酷库裤刳堀喾绔骷",kua:"夸垮挎跨胯侉",kuai:"块筷侩快蒯郐蒉狯脍",kuan:"宽款髋",kuang:"匡筐狂框矿眶旷况诓诳邝圹夼哐纩贶",kui:"亏盔岿窥葵奎魁傀馈愧溃馗匮夔隗揆喹喟悝愦阕逵暌睽聩蝰篑臾跬",kun:"坤昆捆困悃阃琨锟醌鲲髡",kuo:"括扩廓阔蛞",la:"垃拉喇蜡腊辣啦剌摺邋旯砬瘌",lai:"莱来赖崃徕涞濑赉睐铼癞籁",lan:"蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥啉岚懔漤榄斓罱镧褴",lang:"琅榔狼廊郎朗浪莨蒗啷阆锒稂螂",lao:"捞劳牢老佬姥酪烙涝唠崂栳铑铹痨醪",le:"勒乐肋仂叻嘞泐鳓",lei:"雷镭蕾磊累儡垒擂类泪羸诔荽咧漯嫘缧檑耒酹",ling:"棱冷拎玲菱零龄铃伶羚凌灵陵岭领另令酃塄苓呤囹泠绫柃棂瓴聆蛉翎鲮",leng:"楞愣",li:"厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐痢立粒沥隶力璃哩俪俚郦坜苈莅蓠藜捩呖唳喱猁溧澧逦娌嫠骊缡珞枥栎轹戾砺詈罹锂鹂疠疬蛎蜊蠡笠篥粝醴跞雳鲡鳢黧",lian:"俩联莲连镰廉怜涟帘敛脸链恋炼练挛蔹奁潋濂娈琏楝殓臁膦裢蠊鲢",liang:"粮凉梁粱良两辆量晾亮谅墚椋踉靓魉",liao:"撩聊僚疗燎寥辽潦了撂镣廖料蓼尥嘹獠寮缭钌鹩耢",lie:"列裂烈劣猎冽埒洌趔躐鬣",lin:"琳林磷霖临邻鳞淋凛赁吝蔺嶙廪遴檩辚瞵粼躏麟",liu:"溜琉榴硫馏留刘瘤流柳六抡偻蒌泖浏遛骝绺旒熘锍镏鹨鎏",long:"龙聋咙笼窿隆垄拢陇弄垅茏泷珑栊胧砻癃",lou:"楼娄搂篓漏陋喽嵝镂瘘耧蝼髅",lu:"芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮垆摅撸噜泸渌漉璐栌橹轳辂辘氇胪镥鸬鹭簏舻鲈",lv:"驴吕铝侣旅履屡缕虑氯律率滤绿捋闾榈膂稆褛",luan:"峦孪滦卵乱栾鸾銮",lue:"掠略锊",lun:"轮伦仑沦纶论囵",luo:"萝螺罗逻锣箩骡裸落洛骆络倮荦摞猡泺椤脶镙瘰雒",ma:"妈麻玛码蚂马骂嘛吗唛犸嬷杩麽",mai:"埋买麦卖迈脉劢荬咪霾",man:"瞒馒蛮满蔓曼慢漫谩墁幔缦熳镘颟螨鳗鞔",mang:"芒茫盲忙莽邙漭朦硭蟒",meng:"氓萌蒙檬盟锰猛梦孟勐甍瞢懵礞虻蜢蠓艋艨黾",miao:"猫苗描瞄藐秒渺庙妙喵邈缈缪杪淼眇鹋蜱",mao:"茅锚毛矛铆卯茂冒帽貌贸侔袤勖茆峁瑁昴牦耄旄懋瞀蛑蝥蟊髦",me:"么",mei:"玫枚梅酶霉煤没眉媒镁每美昧寐妹媚坶莓嵋猸浼湄楣镅鹛袂魅",men:"门闷们扪玟焖懑钔",mi:"眯醚靡糜迷谜弥米秘觅泌蜜密幂芈冖谧蘼嘧猕獯汨宓弭脒敉糸縻麋",mian:"棉眠绵冕免勉娩缅面沔湎腼眄",mie:"蔑灭咩蠛篾",min:"民抿皿敏悯闽苠岷闵泯珉",ming:"明螟鸣铭名命冥茗溟暝瞑酩",miu:"谬",mo:"摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谟茉蓦馍嫫镆秣瘼耱蟆貊貘",mou:"谋牟某厶哞婺眸鍪",mu:"拇牡亩姆母墓暮幕募慕木目睦牧穆仫苜呒沐毪钼",na:"拿哪呐钠那娜纳内捺肭镎衲箬",nai:"氖乃奶耐奈鼐艿萘柰",nan:"南男难囊喃囡楠腩蝻赧",nao:"挠脑恼闹孬垴猱瑙硇铙蛲",ne:"淖呢讷",nei:"馁",nen:"嫩能枘恁",ni:"妮霓倪泥尼拟你匿腻逆溺伲坭猊怩滠昵旎祢慝睨铌鲵",nian:"蔫拈年碾撵捻念廿辇黏鲇鲶",niang:"娘酿",niao:"鸟尿茑嬲脲袅",nie:"捏聂孽啮镊镍涅乜陧蘖嗫肀颞臬蹑",nin:"您柠",ning:"狞凝宁拧泞佞蓥咛甯聍",niu:"牛扭钮纽狃忸妞蚴",nong:"脓浓农侬",nu:"奴努怒呶帑弩胬孥驽",nv:"女恧钕衄",nuan:"暖",nuenue:"虐",nue:"疟谑",nuo:"挪懦糯诺傩搦喏锘",ou:"哦欧鸥殴藕呕偶沤怄瓯耦",pa:"啪趴爬帕怕琶葩筢",pai:"拍排牌徘湃派俳蒎",pan:"攀潘盘磐盼畔判叛爿泮袢襻蟠蹒",pang:"乓庞旁耪胖滂逄",pao:"抛咆刨炮袍跑泡匏狍庖脬疱",pei:"呸胚培裴赔陪配佩沛掊辔帔淠旆锫醅霈",pen:"喷盆湓",peng:"砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯堋嘭怦蟛",pi:"砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬丕陴邳郫圮鼙擗噼庀媲纰枇甓睥罴铍痦癖疋蚍貔",pian:"篇偏片骗谝骈犏胼褊翩蹁",piao:"飘漂瓢票剽嘌嫖缥殍瞟螵",pie:"撇瞥丿苤氕",pin:"拼频贫品聘拚姘嫔榀牝颦",ping:"乒坪苹萍平凭瓶评屏俜娉枰鲆",po:"坡泼颇婆破魄迫粕叵鄱溥珀钋钷皤笸",pou:"剖裒踣",pu:"扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑匍噗濮璞氆镤镨蹼",qi:"期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫亟亓圻芑萋葺嘁屺岐汔淇骐绮琪琦杞桤槭欹祺憩碛蛴蜞綦綮趿蹊鳍麒",qia:"掐恰洽葜",qian:"牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉佥阡芊芡荨掮岍悭慊骞搴褰缱椠肷愆钤虔箝",qiang:"枪呛腔羌墙蔷强抢嫱樯戗炝锖锵镪襁蜣羟跫跄",qiao:"橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍劁诮谯荞愀憔缲樵毳硗跷鞒",qie:"切茄且怯窃郄唼惬妾挈锲箧",qin:"钦侵亲秦琴勤芹擒禽寝沁芩蓁蕲揿吣嗪噙溱檎螓衾",qing:"青轻氢倾卿清擎晴氰情顷请庆倩苘圊檠磬蜻罄箐謦鲭黥",qiong:"琼穷邛茕穹筇銎",qiu:"秋丘邱球求囚酋泅俅氽巯艽犰湫逑遒楸赇鸠虬蚯蝤裘糗鳅鼽",qu:"趋区蛆曲躯屈驱渠取娶龋趣去诎劬蕖蘧岖衢阒璩觑氍祛磲癯蛐蠼麴瞿黢",quan:"圈颧权醛泉全痊拳犬券劝诠荃獾悛绻辁畎铨蜷筌鬈",que:"缺炔瘸却鹊榷确雀阙悫",qun:"裙群逡",ran:"然燃冉染苒髯",rang:"瓤壤攘嚷让禳穰",rao:"饶扰绕荛娆桡",ruo:"惹若弱",re:"热偌",ren:"壬仁人忍韧任认刃妊纫仞荏葚饪轫稔衽",reng:"扔仍",ri:"日",rong:"戎茸蓉荣融熔溶容绒冗嵘狨缛榕蝾",rou:"揉柔肉糅蹂鞣",ru:"茹蠕儒孺如辱乳汝入褥蓐薷嚅洳溽濡铷襦颥",ruan:"软阮朊",rui:"蕊瑞锐芮蕤睿蚋",run:"闰润",sa:"撒洒萨卅仨挲飒",sai:"腮鳃塞赛噻",san:"三叁伞散彡馓氵毵糁霰",sang:"桑嗓丧搡磉颡",sao:"搔骚扫嫂埽臊瘙鳋",se:"瑟色涩啬铩铯穑",sen:"森",seng:"僧",sha:"莎砂杀刹沙纱傻啥煞脎歃痧裟霎鲨",shai:"筛晒酾",shan:"珊苫杉山删煽衫闪陕擅赡膳善汕扇缮剡讪鄯埏芟潸姗骟膻钐疝蟮舢跚鳝",shang:"墒伤商赏晌上尚裳垧绱殇熵觞",shao:"梢捎稍烧芍勺韶少哨邵绍劭苕潲蛸笤筲艄",she:"奢赊蛇舌舍赦摄射慑涉社设厍佘猞畲麝",shen:"砷申呻伸身深娠绅神沈审婶甚肾慎渗诜谂吲哂渖椹矧蜃",sheng:"声生甥牲升绳省盛剩胜圣丞渑媵眚笙",shi:"师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试谥埘莳蓍弑唑饣轼耆贳炻礻铈铊螫舐筮豕鲥鲺",shou:"收手首守寿授售受瘦兽扌狩绶艏",shu:"蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱恕倏塾菽忄沭涑澍姝纾毹腧殳镯秫鹬",shua:"刷耍唰涮",shuai:"摔衰甩帅蟀",shuan:"栓拴闩",shuang:"霜双爽孀",shui:"谁水睡税",shun:"吮瞬顺舜恂",shuo:"说硕朔烁蒴搠嗍濯妁槊铄",si:"斯撕嘶思私司丝死肆寺嗣四伺似饲巳厮俟兕菥咝汜泗澌姒驷缌祀祠锶鸶耜蛳笥",song:"松耸怂颂送宋讼诵凇菘崧嵩忪悚淞竦",sou:"搜艘擞嗽叟嗖嗾馊溲飕瞍锼螋",su:"苏酥俗素速粟僳塑溯宿诉肃夙谡蔌嗉愫簌觫稣",suan:"酸蒜算",sui:"虽隋随绥髓碎岁穗遂隧祟蓑冫谇濉邃燧眭睢",sun:"孙损笋荪狲飧榫跣隼",suo:"梭唆缩琐索锁所唢嗦娑桫睃羧",ta:"塌他它她塔獭挞蹋踏闼溻遢榻沓",tai:"胎苔抬台泰酞太态汰邰薹肽炱钛跆鲐",tan:"坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭郯蕈昙钽锬覃",tang:"汤塘搪堂棠膛唐糖傥饧溏瑭铴镗耥螗螳羰醣",thang:"倘躺淌",theng:"趟烫",tao:"掏涛滔绦萄桃逃淘陶讨套挑鼗啕韬饕",te:"特",teng:"藤腾疼誊滕",ti:"梯剔踢锑提题蹄啼体替嚏惕涕剃屉荑悌逖绨缇鹈裼醍",tian:"天添填田甜恬舔腆掭忝阗殄畋钿蚺",tiao:"条迢眺跳佻祧铫窕龆鲦",tie:"贴铁帖萜餮",ting:"厅听烃汀廷停亭庭挺艇莛葶婷梃蜓霆",tong:"通桐酮瞳同铜彤童桶捅筒统痛佟僮仝茼嗵恸潼砼",tou:"偷投头透亠",tu:"凸秃突图徒途涂屠土吐兔堍荼菟钍酴",tuan:"湍团疃",tui:"推颓腿蜕褪退忒煺",tun:"吞屯臀饨暾豚窀",tuo:"拖托脱鸵陀驮驼椭妥拓唾乇佗坨庹沱柝砣箨舄跎鼍",wa:"挖哇蛙洼娃瓦袜佤娲腽",wai:"歪外",wan:"豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕剜芄苋菀纨绾琬脘畹蜿箢",wang:"汪王亡枉网往旺望忘妄罔尢惘辋魍",wei:"威巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫倭偎诿隈葳薇帏帷崴嵬猥猬闱沩洧涠逶娓玮韪軎炜煨熨痿艉鲔",wen:"瘟温蚊文闻纹吻稳紊问刎愠阌汶璺韫殁雯",weng:"嗡翁瓮蓊蕹",wo:"挝蜗涡窝我斡卧握沃莴幄渥杌肟龌",wu:"巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误兀仵阢邬圬芴庑怃忤浯寤迕妩骛牾焐鹉鹜蜈鋈鼯",xi:"昔熙析西硒矽晰嘻吸锡牺稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细僖兮隰郗茜葸蓰奚唏徙饩阋浠淅屣嬉玺樨曦觋欷熹禊禧钸皙穸蜥蟋舾羲粞翕醯鼷",xia:"瞎虾匣霞辖暇峡侠狭下厦夏吓掀葭嗄狎遐瑕硖瘕罅黠",xian:"锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线冼藓岘猃暹娴氙祆鹇痫蚬筅籼酰跹",xiang:"相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象芗葙饷庠骧缃蟓鲞飨",xiao:"萧硝霄削哮嚣销消宵淆晓小孝校肖啸笑效哓咻崤潇逍骁绡枭枵筱箫魈",xie:"楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑偕亵勰燮薤撷廨瀣邂绁缬榭榍歙躞",xin:"薪芯锌欣辛新忻心信衅囟馨莘歆铽鑫",xing:"星腥猩惺兴刑型形邢行醒幸杏性姓陉荇荥擤悻硎",xiong:"兄凶胸匈汹雄熊芎",xiu:"休修羞朽嗅锈秀袖绣莠岫馐庥鸺貅髹",xu:"墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续讴诩圩蓿怵洫溆顼栩煦砉盱胥糈醑",xuan:"轩喧宣悬旋玄选癣眩绚儇谖萱揎馔泫洵渲漩璇楦暄炫煊碹铉镟痃",xue:"靴薛学穴雪血噱泶鳕",xun:"勋熏循旬询寻驯巡殉汛训讯逊迅巽埙荀薰峋徇浔曛窨醺鲟",ya:"压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶伢揠吖岈迓娅琊桠氩砑睚痖",yan:"焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验厣靥赝俨偃兖讠谳郾鄢芫菸崦恹闫阏洇湮滟妍嫣琰晏胭腌焱罨筵酽魇餍鼹",yang:"殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾徉怏泱炀烊恙蛘鞅",yao:"邀腰妖瑶摇尧遥窑谣姚咬舀药要耀夭爻吆崾徭瀹幺珧杳曜肴鹞窈繇鳐",ye:"椰噎耶爷野冶也页掖业叶曳腋夜液谒邺揶馀晔烨铘",yi:"一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎刈劓佾诒圪圯埸懿苡薏弈奕挹弋呓咦咿噫峄嶷猗饴怿怡悒漪迤驿缢殪贻旖熠钇镒镱痍瘗癔翊衤蜴舣羿翳酏黟",yin:"茵荫因殷音阴姻吟银淫寅饮尹引隐印胤鄞堙茚喑狺夤氤铟瘾蚓霪龈",ying:"英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映嬴郢茔莺萦撄嘤膺滢潆瀛瑛璎楹鹦瘿颍罂",yo:"哟唷",yong:"拥佣臃痈庸雍踊蛹咏泳涌永恿勇用俑壅墉慵邕镛甬鳙饔",you:"幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼卣攸侑莸呦囿宥柚猷牖铕疣蝣鱿黝鼬",yu:"迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉浴寓裕预豫驭禺毓伛俣谀谕萸蓣揄喁圄圉嵛狳饫庾阈妪妤纡瑜昱觎腴欤於煜燠聿钰鹆瘐瘀窳蝓竽舁雩龉",yuan:"鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院塬沅媛瑗橼爰眢鸢螈鼋",yue:"曰约越跃钥岳粤月悦阅龠樾刖钺",yun:"耘云郧匀陨允运蕴酝晕韵孕郓芸狁恽纭殒昀氲",za:"匝砸杂拶咂",zai:"栽哉灾宰载再在咱崽甾",zan:"攒暂赞瓒昝簪糌趱錾",zang:"赃脏葬奘戕臧",zao:"遭糟凿藻枣早澡蚤躁噪造皂灶燥唣缫",ze:"责择则泽仄赜啧迮昃笮箦舴",zei:"贼",zen:"怎谮",zeng:"增憎曾赠缯甑罾锃",zha:"扎喳渣札轧铡闸眨栅榨咋乍炸诈揸吒咤哳怍砟痄蚱齄",zhai:"摘斋宅窄债寨砦",zhan:"瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽谵搌旃",zhang:"樟章彰漳张掌涨杖丈帐账仗胀瘴障仉鄣幛嶂獐嫜璋蟑",zhao:"招昭找沼赵照罩兆肇召爪诏棹钊笊",zhe:"遮折哲蛰辙者锗蔗这浙谪陬柘辄磔鹧褚蜇赭",zhen:"珍斟真甄砧臻贞针侦枕疹诊震振镇阵缜桢榛轸赈胗朕祯畛鸩",zheng:"蒸挣睁征狰争怔整拯正政帧症郑证诤峥钲铮筝",zhi:"芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒卮陟郅埴芷摭帙忮彘咫骘栉枳栀桎轵轾攴贽膣祉祗黹雉鸷痣蛭絷酯跖踬踯豸觯",zhong:"中盅忠钟衷终种肿重仲众冢锺螽舂舯踵",zhou:"舟周州洲诌粥轴肘帚咒皱宙昼骤啄着倜诹荮鬻纣胄碡籀舳酎鲷",zhu:"珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑住注祝驻伫侏邾苎茱洙渚潴驺杼槠橥炷铢疰瘃蚰竺箸翥躅麈",zhua:"抓",zhuai:"拽",zhuan:"专砖转撰赚篆抟啭颛",zhuang:"桩庄装妆撞壮状丬",zhui:"椎锥追赘坠缀萑骓缒",zhun:"谆准",zhuo:"捉拙卓桌琢茁酌灼浊倬诼廴蕞擢啜浞涿杓焯禚斫",zi:"兹咨资姿滋淄孜紫仔籽滓子自渍字谘嵫姊孳缁梓辎赀恣眦锱秭耔笫粢觜訾鲻髭",zong:"鬃棕踪宗综总纵腙粽",zou:"邹走奏揍鄹鲰",zu:"租足卒族祖诅阻组俎菹啐徂驵蹴",zuan:"钻纂攥缵",zui:"嘴醉最罪",zun:"尊遵撙樽鳟",zuo:"昨左佐柞做作坐座阝阼胙祚酢",cou:"薮楱辏腠",nang:"攮哝囔馕曩",o:"喔",dia:"嗲",chuai:"嘬膪踹",cen:"岑涔",diu:"铥",nou:"耨",fou:"缶",bia:"髟"};var M={chineseToPinYin:function(e){for(var t=e.length,r="",n=new RegExp("[a-zA-Z0-9]"),o=(new RegExp("[a-zA-Z]"),0);o<t;o++){var i=e.substr(o,1);if(n.test(i))r+=i;else{var a=this.arraySearch(i,C);n.test(i)?r+=i:!1!==a&&(r+=a)}}r=r.replace(/ /g,"-");while(r.indexOf("--")>0)r=r.replace("--","-");return r},arraySearch:function(e,t){for(var r in C)if(-1!==C[r].indexOf(e))return this.ucfirst(r);return!1},ucfirst:function(e){if(e.length>0){var t=e.substr(0,1).toUpperCase(),r=e.substr(1,e.length);return t+r}}},D=r("4a37"),N=r.n(D),L=r("62c5"),k=r.n(L);const R={md5:function(e){return I()(e)},getFirstPY:function(e){if(!e)return"";let t,r="";if(e=e.toUpperCase(),e.constructor==Array){t=[];for(let r=0;r<e.length;r++)t.push(M.chineseToPinYin(e[r]))}else t=M.chineseToPinYin(e);if(t.constructor==Array){let e=[];for(let r=0;r<t.length;r++){let n=t[r],o="";for(let e=0;e<n.length;e++){let t=n.charAt(e);/^[A-Z0-9]+$/.test(t)&&(o+=t)}e.push(o.toLowerCase())}return e}for(let n=0;n<t.length;n++){let e=t.charAt(n);/^[A-Z0-9]+$/.test(e)&&(r+=e)}return r.toLowerCase()},getDownloadUrl(e,t){return window.eap.utils.biz.getDownloadUrl(e,t)},getPinyin:function(e){let t=[];if(!e)return"";if(e.constructor==Array){for(let r=0;r<e.length;r++)t.push(M.chineseToPinYin(e[r]).toLowerCase());return t}return M.chineseToPinYin(e).toLowerCase()},randomInt:function(e,t){var r=t-e,n=Math.random();return e+Math.round(n*r)},getBizUrl(e){return window.eap?window.eap.utils.biz.getUrl(e):e},getUrlValue:function(e,t){var r=t||window.location.href;if(-1!=r.indexOf("&"+e)||-1!=r.indexOf("?"+e)){var n="";n=r.indexOf("?"+e)>-1?r.indexOf("?"+e)+e.length+2:r.indexOf("&"+e)+e.length+2;var o=r.indexOf("&",n);return-1==o?r.substring(n):r.substring(n,o)}return""},setUrlValue:function(e,t,r){if(null==e||""==e)return"";var n=e.split("?");if(n.length<=1)return e+"?"+t+"="+r;for(var o=n[1].split("&"),i=!0,a=0;a<o.length;a++){var s=o[a].split("=");s[0]==t&&(o[a]=t+"="+r,i=!1)}return i&&(o[o.length]=t+"="+r),n[0]+"?"+o.join("&")},id:function(e){return function(e,t){var r,n,o="012abcdefghuwxyz34MNOPQRSTUV567ijklmnopqrst89ABCDEFGHIJKLWXYZ".split(""),i=[];if(t=t||o.length,e)for(r=0;r<e;r++)i[r]=o[0|Math.random()*t];else for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",r=0;r<36;r++)i[r]||(n=0|16*Math.random(),i[r]=o[19==r?3&n|8:n]);return i.join("")}(e||6,61)},guid:function(){var e=new Date,t=this.randomInt(1,1e3),r=this.randomInt(1,1e3),n=this.randomInt(1,1e3),o=e.valueOf()+"-"+e.getMilliseconds()+"-"+t+"-"+r+"-"+n,i=this.md5(o),a=i.substring(0,8)+"-"+i.substring(8,12)+"-"+i.substring(12,16)+"-"+i.substring(16,20)+"-"+i.substring(20,32);return a.toUpperCase()},format:function(){if(0==arguments.length)return"";var e=Array.prototype.slice.call(arguments),t=e.shift();if(1==e.length&&"object"==typeof e[0]){var r=e[0];for(var n in r)if(void 0!=r[n]){let e=new RegExp("({"+n+"})","g");t=t.replace(e,r[n])}}else for(var o=0;o<e.length;o++)if(void 0!=e[o]){let r=new RegExp("({)"+o+"(})","g");t=t.replace(r,e[o])}return t},controlGuid(e){return(e||"").replace(/[.|#|@|*|\?|\(|\)|<|>|\{|\|\^|\$}]/gi,"_")+"_"+R.id(8)},upperMoney(e){e=new String(Math.round(100*Math.abs(e)));var t,r,n,o="",i="零壹贰叁肆伍陆柒捌玖",a="万仟佰拾亿仟佰拾万仟佰拾元角分",s=e.length,u=0;if(s>15)return alert("超出计算范围"),"";if(0==e)return o="零元整",o;a=a.substr(a.length-s,s);for(var c=0;c<s;c++)n=parseInt(e.substr(c,1),10),c!=s-3&&c!=s-7&&c!=s-11&&c!=s-15?0==n?(t="",r="",u+=1):0!=n&&0!=u?(t="零"+i.substr(n,1),r=a.substr(c,1),u=0):(t=i.substr(n,1),r=a.substr(c,1),u=0):(0!=n&&0!=u?(t="零"+i.substr(n,1),r=a.substr(c,1),u=0):0!=n&&0==u?(t=i.substr(n,1),r=a.substr(c,1),u=0):0==n&&u>=3?(t="",r="",u+=1):(t="",r=a.substr(c,1),u+=1),c!=s-11&&c!=s-3||(r=a.substr(c,1))),o=o+t+r;return 0==n&&(o+="整"),o},splitAttach(e){for(var t=[],r=e.split("|"),n=window.HIVUI_SETTING?window.HIVUI_SETTING.review:"",o=0;o<r.length;o++){var i=r[o];i&&t.push({name:r[o].split(";")[0],size:r[o].split(";")[1],path:r[o].split(";")[2],url:`${n}?relativePath=${r[o].split(";")[2]}`})}return t},splitAttachImgUrl(e){if(e){for(var t=[],r=e.split("|"),n=window.HIVUI_SETTING?window.HIVUI_SETTING.review:"",o=0;o<r.length;o++){var i=r[o];if(i){if(r[o].split(";").length>2){t=this.splitAttach(e);break}-1!=r[0].indexOf("http://")?t.push({url:r[0]}):t.push({url:`${n}?relativePath=${r[0]}`})}}return t[0].url}},getQrcode(e,t={}){if(!e)return;let r=N.a.getQrBase64(e,t);return r},getBarcode(e,t={}){if(e){var r=document.createElement("canvas");return k()(r,e,t),r.toDataURL("image/png")}}};var B=R;const U={hi_common_cancel:"取消",hi_common_confirm:"确定",hi_query_all:"全部",hi_query_noempty:"不能为空!",hi_query_sysscheme:"系统方案",hi_query_reset:"重置",hi_query_btnname:"查询",hi_query_more:"更多",hi_order_defaultall:"综合",hi_timescheme_month:"本月",hi_timescheme_yeartonow:"今年至今",hi_timescheme_last6month:"最近六个月",hi_timescheme_today:"本日",hi_timescheme_yesterday:"昨日",hi_timescheme_last7days:"近7天",hi_timescheme_last28days:"近28天",hi_timescheme_last84days:"近84天",hi_timescheme_startdate:"开始日期",hi_timescheme_enddate:"结束日期",hi_timescheme_year:"本年度",hi_timescheme_week:"本周",hi_timescheme_quarter:"本季度",hi_timescheme_split:"到",hi_timescheme_halfyear:"近半年",hi_timescheme_oneyear:"近一年",hi_pushdata_linkSelect:"请选择需要打开的链接!",hi_pushdata_hasAuth:"当前请求功能您没有权限访问!",hi_pushdata_requestError:"请求异常",hi_treequery_placeholder:"输入关键字进行过滤",hi_numberrange_splitstr:"到",hi_datalist_nodata:"暂无数据!",hi_importexcel_uploadname:"Excel上传",hi_importexcel_templatename:"模板下载",hi_importexcel_noallowfile:"不支持上传{0}格式!",hi_importexcel_limitfilesize:"限制上传文件大小为{0}M!",hi_exportexcel_exportname:"Excel导出",hi_exportexcel_buildfile:"文件生成中",hi_exportexcel_isdownload:"是否取消文件下载?",hi_dataRequest_request:"数据请求中",hi_dataRequest_isCacel:"是否取消请求?",hi_dataRequest_tip:"提示",hi_dataRequest_tip:"提示",hi_dataRequest_confirm:"确定",hi_exportexcel_cancel:"取消",hi_exportexcel_confirm:"确定",hi_exportexcel_cancel:"取消",hi_exportexcel_builddatacomplate:"数据生成完成!",hi_expression_close:"关闭",hi_expression_confirm:"关闭",hi_expression_dialogname:"表达式",hi_page_confirm:"确定",hi_page_cancel:"取消",hi_page_prompt:"提示",hi_page_cannotBeNull:"不能为空",hi_page_outOfRange:"输入的字符超出",hi_page_dataPromptNotSubmitted:"检测到有未提交的数据,是否还原",hi_page_dataNotModified:"数据未修改",hi_page_initializing:"正在初始化..",hi_table_file:"个文件",hi_table_index:"序号",hi_table_operate:"操作",hi_table_add:"新增",hi_table_del:"删除",hi_table_addsub:"新增子节点",hi_table_emptyText:"暂无数据",hi_table_confirmFilter:"筛选",hi_table_resetFilter:"重置",hi_table_clearFilter:"全部",hi_table_sumText:"合计",hi_table_lockCol:"锁定列",hi_table_unlockCol:"解锁列",hi_table_fillUp:"向上填充",hi_table_fillDown:"向下填充",hi_table_copy:"复制",hi_table_copyRow:"复制整行",hi_table_copyCol:"复制整列",hi_table_copyCell:"复制单元格",hi_table_download:"下载",hi_table_downloadAll:"下载所有",hi_table_downloadSelect:"选中下载",hi_table_maxAddNode:"最多只能添加{0}级节点",hi_table_yesterday:"昨天",hi_table_today:"今天",hi_table_aweek:"一周",hi_table_paste:"粘贴",hi_table_pasteRow:"指定位整行粘贴",hi_table_pasteCol:"指定位整列粘贴",hi_table_pasteMsg:"navigator.clipboard 仅支持通过 HTTPS 提供的页面",hi_table_colSetting:"字段配置",hi_table_colsConfig:"列表字段配置",hi_messagebox_title:"提示",hi_messagebox_confirm:"确定",hi_messagebox_cancel:"取消",hi_toolbar_add:"添加",hi_toolbar_del:"删除",hi_toolbar_reset:"取消",hi_toolbar_save:"保存",hi_toolbar_submit:"提交",hi_toolbar_callout:"调单",hi_toolbar_nexttache:"流转",hi_toolbar_backtache:"回退",hi_toolbar_signout:"加签",hi_toolbar_processSign:"处理加签",hi_toolbar_turnOut:"转办",hi_toolbar_terminate:"终止",hi_toolbar_umpire:"反审",hi_toolbar_monitor:"流程监控",hi_toolbar_savesuccess:"数据保存成功",hi_toolbar_processflowsuccess:"流程处理成功",hi_toolbar_limitequals:"请选择相同的:",hi_toolbar_limitnoequals:"请选择不同的:",hi_toolbar_limitnoequals1:"相同记录已跳过!",hi_toolbar_finished:"流程结束",hi_toolbar_actors:"下个执行者",hi_toolbar_loader:"数据处理中...",hi_toolbar_agree:"同意",hi_toolbar_disagree:"不同意",hi_toolbar_selectOneError:"至少选择一个执行者!",hi_toolbar_removeallhint:"确定要删除所有记录吗?",hi_toolbar_cancelhint:"确定要取消吗?",hi_toolbar_umpirehint:"确定要启用反审吗?",hi_toolbar_savehint:"数据未保存,是否保存数据?",hi_toolbar_circulationway:"返回方式",hi_toolbar_circulationway_default:"重新流转",hi_toolbar_circulationway_again:"原路返回",hi_toolbar_performType:"原路返回",hi_toolbar_performType1:"独占",hi_toolbar_performType2:"会签",hi_toolbar_performType3:"顺序",hi_toolbar_signType_BeforSign:"前加签",hi_toolbar_signType_AfterSign:"后加签",hi_toolbar_approvecomments:"审批意见",hi_toolbar_assigneeLabel:"额外办理人",hi_toolbar_previousName:"上一节点",hi_toolbar_processor:"处理人",hi_toolbar_previousCount:"节点处理人:共",hi_toolbar_previousCount2:"人审批",hi_toolbar_processortime:"处理时间",hi_toolbar_username:"用户名",hi_toolbar_userid:"用户ID",hi_toolbar_userorgname:"编制名",hi_toolbar_bzid:"编制ID",hi_toolbar_collapse:"收起",hi_toolbar_expand:"展开",hi_form_required:" 必填!",hi_tree_search:"输入关键字进行过滤",hi_tree_addPeerBtn:"添加同级",hi_tree_add:"添加",hi_tree_edit:"编辑",hi_tree_del:"删除",hi_tree_noNode:"节点不存在",hi_tree_removehint:"请先删除子节点!",hi_calendar_add:"新增日程",hi_calendar_refresh:"刷新",hi_calendar_month:"月",hi_calendar_week:"周",hi_calendar_day:"日",hi_calendar_between:"到",hi_calendar_prevMonth:"上个月",hi_calendar_nextMonth:"下个月",hi_calendar_today:"今天",hi_calendar_time:"时间",hi_select_placeholder:"请选择",hi_selectGrid_queryname:"请输入关键词",hi_dataSelect_hasselect:"当前记录已选!",hi_dataSelect_selectOneError:"至少选择一条记录!",hi_dataSelect_Loading:"数据加载中...",hi_dataSelect_selectall:"全选",hi_dataSelect_clear:"清空",hi_dataSelect_selectAdd:"添加选中",hi_dataSelect_selectclear:"删除选中",hi_dataSelect_queryCdionsNull:"明细条件未传!",hi_dataSelect_numberFieldNull:"未配置单号!",hi_dataSelect_nosoucredataset:"来源数据集不存在",hi_dataSelect_noin:"数据不在查找范围内!",hi_upload_deleteTip:"按 delete 键可删除",hi_upload_uploadName:"点击上传",hi_upload_delete:"删除",hi_upload_removeall:"清空",hi_upload_preview:"查看图片",hi_upload_continue:"继续上传",hi_upload_limit:"当前限制选择{0}个文件,本次选择了{1}个文件,共选择了{2}个文件",hi_upload_fileExtension:"后缀为",hi_upload_limitcount:"数量不超过{0}个",hi_upload_fileSize:"大小不超过{0}M",hi_upload_hint:"只能上传[ {0} ]文件",hi_upload_fileExtensionLimit:"不支持上传{0}格式!",hi_upload_files:"个文件",hi_imagecropper_dialogtitle:"切图",hi_imagecropper_select:"选择封面",hi_imagecropper_scalebig:"放大",hi_imagecropper_scalesmall:"缩小",hi_imagecropper_rotateLeft:"左旋转",hi_imagecropper_rotateRight:"右旋转",hi_imagecropper_upload:"上传封面",hi_imagecropper_error:"图片类型要求",hi_mapSelect_translate:"坐标转换失败!",hi_page_pageInit:"没有找到初始化接口配置,请在环境配置中新增pageInitUrl节点配置",hi_page_pagecontrolstate:"页面控件状态",hi_monitor_approvalRecord:"审批记录",hi_monitor_flow:"流程",hi_monitor_displayname:"流程名称",hi_monitor_ordernumber:"流程编号",hi_monitor_createtime:"创建时间",hi_monitor_finishtime:"完成时间",hi_monitor_flowstate:"流程状态",hi_monitor_finish:"已完成",hi_monitor_taskname:"任务名称",hi_monitor_noReceived:"未接收",hi_monitor_timeConsuming:"耗时",hi_monitor_approver:"审批人",hi_monitor_processingStatus:"处理状态",hi_monitor_processe:"需处理",hi_monitor_postscript:"附言",hi_monitor_flowchart:"流程图",hi_monitor_gantt:"甘特图",hi_monitor_processed:"已处理",hi_monitor_back:"回退",hi_monitor_sysAuto:"系统自动流转",hi_monitor_terminate:"终止",hi_monitor_cancel:"取消",hi_monitor_transfer:"转办",hi_monitor_taskWithdraw:"任务撤回",hi_monitor_tsBeforSigning:"前加签中",hi_monitor_tsAfterSigning:"后加签中",hi_monitor_tsBeforSignDW:"前加签处理",hi_monitor_tsAfterSignDW:"后加签处理",hi_monitor_tsBeforSigned:"已前加签",hi_monitor_tsAfterSigned:"已后加签",hi_monitor_day:"天",hi_monitor_hour:"小时",hi_monitor_Min:"分",hi_monitor_second:"秒",hi_monitor_gantt_dept:"所属部门",hi_monitor_gantt_role:"岗位职称",hi_dbType_AuditPoint_0:"已审核",hi_dbType_AuditPoint_1:"运行中",hi_dbType_AuditPoint_2:"审批中",hi_dbType_AuditPoint_99:"终止",hi_dbType_boolean_yes:"是",hi_dbType_boolean_no:"否"};var H=U;const G=function(e){let t=window.GLOBAL_LANG_HIUI||{},r=Object.assign({},H,t);return r[e]||e};let F={dbString:{format:function(e,t){return"function"==typeof t?t.call(window,e):e},formatView:function(e,t){return"function"==typeof t?t.call(window,e):e},type:"dbString",formType:{element:"el-input"}},dbInt:{format:function(e,t){if(e=parseInt(e),"eleAuditPoint"==t){let t="";switch(e){case 0:t=G("hi_dbType_AuditPoint_0");break;case 1:t=G("hi_dbType_AuditPoint_1");break;case 99:t=G("hi_dbType_AuditPoint_99");break;case 2:t=G("hi_dbType_AuditPoint_2");break;default:t=isNaN(e)?"":e}return t}return"function"==typeof t?t.call(window,e):isNaN(e)?"":(e*=1,t?j.format(e,t):e)},formatView:function(e,t){if("function"==typeof t)return t.call(window,e);let r=F.dbInt.format(e,t);return t&&t.indexOf("%")>0?e>0?'<font color="red">'+r+"</font>":'<font color="green">'+r+"</font>":r},defautlVal:0,type:"dbInt",queryType:{element:"HiNumberRange"},formType:{element:"hi-number",props:{precision:0,"controls-position":"right"}}},dbFloat:{format:function(e,t){return"function"==typeof t?t.call(window,e):(e=parseFloat(e),isNaN(e)?"":(e*=1,t?j.format(e,t):e))},formatView:function(e,t){if("function"==typeof t)return t.call(window,e);var r=F.dbFloat.format(e,t);return t&&t.indexOf("%")>0?e>0?'<font color="red">'+r+"</font>":'<font color="green">'+r+"</font>":r},type:"dbFloat",formType:{element:"hi-number",props:{"controls-position":"right"}},queryType:{element:"HiNumberRange"},defautlVal:0},dbDouble:{format:function(e,t){return"function"==typeof t?t.call(window,e):(e=parseFloat(e),isNaN(e)?"":(e*=1,t?j.format(e,t):e))},formatView:function(e,t){if("function"==typeof t)return t.call(window,e);var r=F.dbDouble.format(e,t);return t&&t.indexOf("%")>0?e>0?'<font color="red">'+r+"</font>":'<font color="green">'+r+"</font>":r},type:"dbDouble",formType:{element:"hi-number",props:{"controls-position":"right"}},queryType:{element:"HiNumberRange"},defautlVal:0},dbText:{format:function(e,t){return"function"==typeof t?t.call(window,e):e},formatView:function(e,t){return e},type:"dbText",formType:{element:"el-input",props:{type:"textarea",rows:5}},queryType:{element:"el-input",props:{}},gridType:{element:"hi-textarea",props:{popup:!0,rows:5}}},dbBoolean:{format:function(e,t){return"function"==typeof t?t.call(window,e):""===e?"":("boolean"!=typeof e&&1*e==e&&(e=parseInt(e)),"boolean"==typeof e||"number"==typeof e?G(e?"hi_dbType_boolean_yes":"hi_dbType_boolean_no"):e)},formatView:function(e,t){return F.dbBoolean.format(e,t)},parse:function(e){return"yes"==e||"是"==e||"1"==e||"true"==e||"y"==e},type:"dbBoolean",queryType:{element:"el-checkbox",props:{}},formType:{element:"el-checkbox",props:{}}},dbDatetime:{format:function(e,t){return"function"==typeof t?t.call(window,e):null==e||""==e?e:(t=t||"yyyy-MM-dd hh:mm:ss","string"==typeof e&&(e=S.strToDate(e)),S.format(e,t))},formatView:function(e,t){return F.dbDatetime.format(e,t)},type:"dbDatetime",queryType:{element:"HiTimeScheme"},formType:{element:"el-date-picker",props:{type:"datetime"}}},dbTimestamp:{format:function(e,t){return"function"==typeof t?t.call(window,e):null==e||""==e?e:(t=t||"yyyy-MM-dd hh:mm:ss","string"==typeof e&&(e=S.strToDate(e)),S.format(e,t))},formatView:function(e,t){return F.dbDatetime.format(e,t)},type:"dbTimestamp",formType:{element:"el-date-picker",props:{type:"datetime"}}},dbBasic:{type:"dbBasic"},dbArray:{type:"dbArray"},dbObject:{type:"dbObject"},dbList:{type:"dbList"}};F.dbDate=F.dbDatetime;var z=F;const q={getUrlParam(e){let t=window.location.search;t=t.substring(1,t.length);let r=t.split("&"),n={};for(let o=0;o<r.length;o++){const e=r[o];let t=e.split("=");n[t[0]]=t[1]}return e?n[e]:n},openUrl(e,t={},r="get",n){let o="formid"+(new Date).valueOf();!e.toLowerCase().startsWith("http")&&window.eap&&(e=window.eap.utils.biz.getUrl(e));var i=document.createElement("form");for(var a in i.method=r||"get",document.body.appendChild(i),i.target=n,i.action=e,t)if(!(e.indexOf(a+"=")>-1)){var s=document.getElementById(`${o}_${a}`);if(s)s.value=t[a];else{var u=document.createElement("input");u.type="hidden",u.name=a,u.value=t[a],i.appendChild(u)}}i.submit(),i.parentNode.removeChild(i)},mergeDefaultCfg(e,t){var r=e;for(var n in t)"object"==typeof t[n]&&(t[n]=q.recursionCfg(r,t[n])),"crlName"==n&&void 0!=r[t["crlName"]]&&(t=Object.assign({},r[t["crlName"]],t));return t},recursionCfg(e,t){var r=e;for(var n in t)"object"==typeof t[n]&&(t[n]=q.recursionCfg(r,t[n])),"crlName"==n&&void 0!=r[t["crlName"]]&&(t=Object.assign({},r[t["crlName"]],t));return t}};var V=q;let X=S,$=j,W=B,Y=z,J=V;var K={date:X,number:$,string:W,dbType:Y,bom:J};let Q=class{constructor(e){e=e||{},this.className="WhereCondition",this.enabled=null,this.sign=null,this.name=null,this.dataType=null,this.tablefilter=null,this.value=null,this.enabled=!0,this.setValue(e.name,e.value,e.dataType,e.sign,e.tablefilter)}setValue(e,t,r,n,o){this.sign=n||"eq",this.name=e||"",this.dataType=r||_.string,this.value=t,this.enabled=!0,this.tablefilter=void 0!=o&&o}getValue(){return{sign:this.sign,name:this.name,tablefilter:this.tablefilter,dataType:this.dataType,value:this.value,enabled:!0}}},Z=class e{constructor(e,t=[]){if(e=e||{},this.params=t,this.className="Where",this.join=null,this.items=null,e.junction&&(e.join=e.junction),e.join||(e.join="and"),null==e.criterionData)e.join||(e.join="and"),this.setWhereData(e.join,[]);else{var r=typeof e.criterionData,n={};switch(r){case"string":n=JSON.parse(e.criterionData);break;case"object":n=e.criterionData;break}this.setCriterionData(n)}}setValue(e,t){this.setWhereData(e,t)}setWhereData(e,t){this.join=e||"and",this.items=t||[]}setCriterionData(e){var t=typeof e,r={};switch(t){case"string":r=JSON.parse(e);break;case"object":r=e;break}this.join=r.join||"and",this.items=[],this.recursiveSetCriteria(this,r.items)}recursiveSetCriteria(t,r){var n=this;if(null!=r&&0!=r.length)for(var o=r.length,i=0;i<o;i++){var a=r[i];if(a.join){var s=new e({join:a.join});this.recursiveSetCriteria(s,a.items),t.addWhere(s)}else if(a.sign){var u=a.name.replace("&[","").replace("]","");if(u=u.replace("this.get('","").replace("')",""),"function"==typeof a.value){var c=n.filterValue(a.value);t.addCondition(u,c,a.dataType,a.sign,!1,a.tablefilter)}else t.addCondition(u,a.value,a.dataType,a.sign,!1,a.tablefilter)}}else t.items=[]}filterValue(e){var t;return t=e.call(this,...this.params),t}addWhere(e){if(e){let t=!1;for(let r=0;r<this.items.length;r++){let n=JSON.stringify(this.items[r]);if(n==JSON.stringify(e.toJSON())){t=!0;break}}t||this.items.push(e)}}addCondition(e,t,r,n,o,i){null!==t&&void 0!=t&&"null"!==t||(n="isnull",t="null"),"isnull"===n&&(t="null"),!n&&window.HIVUI_SETTING&&(n=window.HIVUI_SETTING.queryOperate||"eq"),n||(n="eq");let a,s=["in","notIn"];if("function"===typeof t&&(t=t.call()),E()(t)&&(t=X.format(t,"yyyy-MM-dd hh:mm:ss")),a=s.indexOf(n)>-1&&t&&!(t instanceof Array)?(t+"").split(","):t,o)for(var u=0;u<this.items.length;u++)if(e==this.items[u].name)return this.items[u].value=a,this.items[u].tablefilter=i,this.items[u].dataType=r||_.string,void(this.items[u].sign=n);var c=new Q({name:e,tablefilter:i,value:a,sign:n,dataType:r||_.string});this.items.push(c)}add(e,t,r,n,o){this.addEqual(e,t,r,n,o)}_addEqual(e,t,r,n,o){this.addCondition(e,t,r,"eq",n,o)}_addArray(e,t,r,n,o){t instanceof Array||!t.split||(t=t.split(",")),0!=t.length&&this.addCondition(e,t,r,"in",n,o)}_addNotIn(e,t,r,n,o){t instanceof Array||!t.split||(t=t.split(",")),0!=t.length&&this.addCondition(e,t,r,"notIn",n,o)}_addIsNull(e,t,r,n,o){this.addCondition(e,"",r,"isnull",n,o)}_addIsNotNull(e,t,r,n,o){this.addCondition(e,"",r,"isnotnull",n,o)}_addNotEqual(e,t,r,n,o){this.addCondition(e,t,r,"noteq",n,o)}_addGreaterThan(e,t,r,n,o){this.addCondition(e,t,r,"gt",n,o)}_addLessThan(e,t,r,n,o){this.addCondition(e,t,r,"lt",n,o)}_addGreaterThanAndEqual(e,t,r,n,o){this.addCondition(e,t,r,"gteq",n,o)}_addLike(e,t,r,n,o){this.addCondition(e,t,r,"like",n,o)}_addLessThanAndEqual(e,t,r,n,o){this.addCondition(e,t,r,"lteq",n,o)}_addLeftLike(e,t,r,n,o){this.addCondition(e,t,r,"likeLeft",n,o)}_addRightLike(e,t,r,n,o){this.addCondition(e,t,r,"likeRight",n,o)}eq(e,t,r,n,o){this._addEqual(e,t,r,n,o)}def(e,t,r,n,o){this.addCondition(e,t,r,null,n,o)}in(e,t,r,n,o){t instanceof Array||!t.split||(t=t.split(",")),0!=t.length&&this.addCondition(e,t,r,"in",n,o)}notIn(e,t,r,n,o){t instanceof Array||!t.split||(t=t.split(",")),0!=t.length&&this.addCondition(e,t,r,"notIn",n,o)}inRange(e,t,r,n,o){this.addCondition(e,t,r,"inRange",n,o)}outRange(e,t,r,n,o){this.addCondition(e,t,r,"outRange",n,o)}between(e,t,r,n,o){this.addCondition(e,t,r,"between",n,o)}noteq(e,t,r,n,o){this._addNotEqual(e,t,r,n,o)}gt(e,t,r,n,o){this._addGreaterThan(e,t,r,n,o)}gteq(e,t,r,n,o){this._addGreaterThanAndEqual(e,t,r,n,o)}lt(e,t,r,n,o){this._addLessThan(e,t,r,n,o)}lteq(e,t,r,n,o){this._addLessThanAndEqual(e,t,r,n,o)}like(e,t,r,n,o,i){this._addLike(e,t,r,o,i)}leftLike(e,t,r,n,o){this._addLeftLike(e,t,r,n,o)}rightLike(e,t,r,n,o){this._addRightLike(e,t,r,n,o)}getItemByIndex(e){return this.items[e]}deleteItemByIndex(e){this.items.splice(e,1)}getData(){var e=this.items.length;if(0==e)return null;for(var t={join:this.join,items:[]},r=0;r<e;r++){var n=this.items[r];this.recursiveWhereData(t,n)}return t}recursiveWhereData(e,t){if(t.items){var r=t.items.length;if(r>0){for(var n={join:t.join,items:[]},o=0;o<r;o++){var i=t.items[o];this.recursiveWhereData(n,i)}e.items.push(n)}}else{var a=t.getValue();e.items.push(a)}}toJSON(){return this.getData()}toStr(){return JSON.stringify(this.getData())}getConditionByKey(e){for(var t=this.items.length,r=0;r<t;r++){var n=this.items[r];if(n.name&&n.name==e)return n;{if(!n.items||0==n.items.length)return null;let t=this._recursionWhere1(n.items,e);if(null!=t)return t}}return null}_recursionWhere1(e,t){for(var r=0,n=e.length;r<n;r++){let n=e[r];if(n.name&&n.name==t)return n;if(!n.name){if(!n.items||0==n.items.length)return null;n.items.length>0&&this._recursionWhere1(n.items,t)}}}setCustomWhere(t){for(var r=new e({join:t||"and"}),n=0,o=this.items.length;n<o;n++)this.items[n].name?r.addCondition(this.items[n].name,this.items[n].value,this.items[n].dataType,this.items[n].sign,this.items[n].isCover,this.items[n].tablefilter):this._recursionWhere(r,this.items[n].items);this.join=r.join,this.items=r.items}_recursionWhere(e,t){for(var r=0,n=t.length;r<n;r++)t[r].name?e.addCondition(t[r].name,t[r].value,t[r].dataType,t[r].sign,t[r].isCover,t[r].tablefilter):this._recursionWhere(e,t[r].items)}isPaging(){var e=b.pageIndex,t=b.pageSize;return!(!m()(this,e)||!m()(this,t))}setPage(e,t){var r=b.pageIndex,n=b.pageSize;-1!=e&&-1!=t||(e=-1,t=-1),this[r]=e,this[n]=t}getPageIndex(){var e=this[b.pageIndex];return-1==e?1:e}getPageSize(){var e=this[b.pageSize];return-1==e?1e3:e}};Z.prototype.equal=Z.prototype.eq;var ee=Z;class te{constructor(e){e=e||{},this.orderData=[],e.orderData&&(this.orderData=e.orderData)}getOrderItemModel(){return{name:"",desc:"",type:"desc"}}addDesc(e,t){this.addOrder(e,"desc",t)}addAsc(e,t){this.addOrder(e,"asc",t)}addOrder(e,t,r){var n=this.getOrderItemModel();n.name=e,n.desc=r,n.type=t,this.orderData.push(n)}toJSON(){return this.orderData}toStr(){return JSON.stringify(this.orderData)}}class re{constructor(e){e=e||{},this.orders=null,this.className="Params",this.paramKey="queryParam",this.where=e.where||new ee,this.returnTotal=e.returnTotal,this.zcQuery=e.zcQuery,this.modelFilePath=e.modelFilePath||"",this.orders=e.orders,this.slaveEntities=e.slaveEntities||[],e.initData&&this.setJsonParamsData(e.initData),e.paramsData&&this.setJsonParamsData(e.paramsData),e.whereData&&this.setJsonWhereData(e.whereData)}createWhereByModel(e,t){t=t||{};let r=new ee;for(let n in e){let o=t.fields?t.fields[n]:null,i=e[n];null!=i&&""!=i&&void 0!=i&&(o?r[o.operate](n,i):K.isArray(i)?r.in(n,i):r.def(n,i))}return this.where?this.where.addConditions(r):this.where=r,r}setJsonWhereData(e){e&&(this.where=new ee({criterionData:e}))}setJsonParamsData(e){if(e){var t=typeof e,r={};switch(t){case"string":r=JSON.parse(e);break;case"object":r=e;break}r.queryCdions&&(this.where=new ee({criterionData:r.queryCdions})),r.orders&&(this.orders=new te({orderData:r.orders})),r.having&&(this.having=new ee({criterionData:r.having.criterion})),r.groupBy&&(this.groupBy=r.groupBy)}}setGroup(e){this.groupBy=e}getGroup(){return this.groupBy}getWhere(){return this.where}setWhere(e){this.where=e}setHaving(e){this.having=e}getHaving(){return this.having}getOrders(){return this.orders}setOrders(e){this.orders=e}toJSON(){var e={};if(this.where){var t=this.where.toJSON();t&&(e.queryCdions=this.where.toJSON())}return this.groupBy&&(e.groupBy=this.groupBy),this.orders&&(e.orderBy=this.orders.toJSON()),e}decodeStr(e){return unescape(e.replace(/\\(u[0-9a-fA-F]{4})/gm,"%$1"))}setSlaveEntities(e){this.slaveEntities=e}toStringWithKey(){var e={};let t=JSON.stringify(this.toJSON());if(e[b.body]=t,e[b.pageIndex]=this[b.pageIndex]||this.where[b.pageIndex],e[b.pageSize]=this[b.pageSize]||this.where[b.pageSize],e[b.returnTotal]=this.returnTotal,e[b.modelFilePath]=this.modelFilePath,e[b.zcQuery]=this.zcQuery,this.slaveEntities.length>0){for(var r=[],n=0;n<this.slaveEntities.length;n++)r.push(this.slaveEntities[n].toStringWithKey());e[b.slaveEntities]=JSON.stringify(r)}return e}toStr(){return JSON.stringify(this.toJSON())}isPaging(){var e=b.pageIndex,t=b.pageSize;return!(!_has(this,e)||!_has(this,t))}setPage(e,t){var r=b.pageIndex,n=b.pageSize;-1!=e&&-1!=t||(e=-1,t=-1),this[r]=e,this[n]=t}getPageIndex(){var e=this[b.pageIndex];return-1==e?1:e}getPageSize(){var e=this[b.pageSize];return-1==e?1e3:e}}var ne=r("6747"),oe=r.n(ne);let ie=(e,t,r,n)=>{let o=[],i={};if(e.length>0){let a=i[t]=e[0][t];e.forEach(e=>{a!=e[t]&&(o.push(i),i={},a=e[t],i[t]=a),i[e[r]]=e[n]}),o.push(i)}return o},ae=(e,t,r,{request:n,url:o,method:i,pn:a,extParam:s,viewItemId:u,rowToCol:c,async:l,success:f,fail:d})=>{let h,p={queryCdion:"{}"};if(e){let t;if("Where"==e.className)t=new re,t.where=e;else if("Params"==e.className)t=e;else{t=new re;let r=null,n=null,o=new ee;for(let t in e){let i=e[t];"$pageSize"!=t?"$pageIndex"!=t?oe()(i)?E()(i[0])?o.between(t,X.format(i[0],"yyyy-MM-dd hh:mm:ss")+"到"+X.format(i[1],"yyyy-MM-dd hh:mm:ss")):o.in(t,i):o.def(t,i):n=i:r=i}null!==r&&null!==n&&o.setPage(n,r),t.where=o}p=t.toStringWithKey()}p.modelFilePath=t,p[b.funcpath]=r,p[b.viewItemId]=u,s&&Object.assign(p,s);let g=o;return r=r||"",a&&(g=-1==g.indexOf("?")?g+"?pn="+a:g+"&pn="+a),h=n({url:g,method:i||"post",async:l,data:p,success:f,fail:d}),h},se=({request:e,url:t,csv:r})=>{let n={csv:r};return e({url:t,method:"get",params:n})},ue=(e,t,r,{request:n,url:o,method:i,pn:a,viewItemId:s,extParam:u})=>{let c,l,f={};if(e){let t;if("Where"==e.className)t=new re,t.where=e;else if("Params"==e.className)t=e;else{t=new re;let r=null,n=null,o=new ee;for(let t in e){let i=e[t];"$pageSize"!=t?"$pageIndex"!=t?oe()(i)?E()(i[0])?o.between(t,X.format(i[0],"yyyy-MM-dd hh:mm:ss")+"到"+X.format(i[1],"yyyy-MM-dd hh:mm:ss")):o.in(t,i):o.def(t,i):n=i:r=i}null!==r&&null!==n&&o.setPage(n,r),t.where=o}f[b.body]=t.toJSON(),f[b.pageIndex]=t.where[b.pageIndex],f[b.pageSize]=t.where[b.pageSize],f[b.viewItemId]=s}f[b.funcpath]=r,f.modelFilePath=t,u&&(u.sheetStyle&&(f[b.sheetStyle]=u.sheetStyle,delete u.sheetStyle),void 0!==u[b.slaveExport]&&(f[b.slaveExport]=u[b.slaveExport],delete u[b.slaveExport])),void 0==f[b.slaveExport]&&e.zcQuery&&(f[b.slaveExport]=e.zcQuery),r=r||"",l=o,a&&(l=-1==l.indexOf("?")?l+"?pn="+a:l+"&pn="+a);let d={};return f.title&&(d.title=f.title,delete f.title),d[b.sheetDatas]=JSON.stringify([f]),d.__isIntercept=!1,u&&(d=Object.assign(d,u)),c=n({url:l,method:i||"post",data:d}),c};var ce={Param:re,Where:ee,types:_,Orders:te,query:ae,exportData:ue,rowToCol:ie,getExportParam:se},le=r("0644"),fe=r.n(le);const de={root:"__body",version:"__version",data:"data",funcPath:"__funcpath",modelFile:"modelFilePath",funcFile:"fpath",state:"$state",old:"$old",insertStateVal:"rsInsert",updateStateVal:"rsUpdate",removeStateVal:"rsDelete",overrideStateVal:"rsOverride",normalStateVal:"rsNormal",viewItemId:"viewItemId"};class he{constructor(e,t,{request:r,url:n,wsUrl:o,pn:i,viewItemId:a,extParam:s,colToRow:u}){this.className="SavePackHelper",this.modelFile=e,this.request=r,this.colToRow=u,this.viewItemId=a,this._appendSavePack=[],t=t||"",this.url=n,this.wsUrl=o,this.funcPath=t,this.extParam=s,this.pn=i,this.dataPacks={},this.dataPacks[de.data]=[],this.dataPacks[de.modelFile]=this.modelFile}insertOrDeletePackageColToRow(e){let t=this.colToRow,r=[],n=t.colField,o=t.valField,i=t.rowField,a={};a[t.rowField]=e[i]||(new Date).valueOf();for(let s in e)s.startsWith("$")&&(a[s]=e[s]);for(let s in e){if(s.startsWith("$"))continue;let t=fe()(a);t[n]=s,t[o]=e[s],r.push(t)}return r}updatePackageColToRow(e){let t=this.colToRow,r=[],n=t.colField,o=t.valField,i=t.rowField,a={},s={};s[t.rowField]=e[de.old][i];for(let u in e)u.startsWith("$")&&(a[u]=e[u]);for(let u in e){if(u.startsWith("$"))continue;let t=fe()(a),i=fe()(s);t[o]=e[u],i[o]=e[de.old][u],i[n]=u,t[de.old]=i,r.push(t)}return r}conversion(e){if(e){const t={};for(const r in e){const n=e[r];void 0!==n&&(E()(n)?t[r]=X.format(n,"yyyy-MM-dd hh:mm:ss"):null==n||"object"!=typeof n||n[de.modelFile]?t[r]=n:t[r]=JSON.stringify(n))}return t}}normal(e){var t=this;e=this.conversion(e),e[de.state]=de.normalStateVal,this.colToRow&&this.colToRow.rowField?t.dataPacks[de.data]=t.dataPacks[de.data].concat(this.insertOrDeletePackageColToRow(e)):t.dataPacks[de.data].push(e)}add(e){var t=this;e=this.conversion(e),e[de.state]=de.insertStateVal,this.colToRow&&this.colToRow.rowField?t.dataPacks[de.data]=t.dataPacks[de.data].concat(this.insertOrDeletePackageColToRow(e)):t.dataPacks[de.data].push(e)}update(e,t){var r=this,n={};for(var o in t=this.conversion(t),e=this.conversion(e),t)void 0!==t[o]&&(n[o]=t[o]);n[de.state]=de.updateStateVal,n[de.old]=e,this.colToRow&&this.colToRow.rowField?r.dataPacks[de.data]=r.dataPacks[de.data].concat(this.updatePackageColToRow(n)):r.dataPacks[de.data].push(n)}setRedundant(e,t){}override(e,t){t||(t=e,e=null),e&&(e=this.conversion(e)),t=this.conversion(t);var r=this,n={};for(var o in t)void 0!==t[o]&&(n[o]=t[o]);n[de.state]=de.overrideStateVal,e&&(n[de.old]=e),this.colToRow&&this.colToRow.rowField?r.dataPacks[de.data]=r.dataPacks[de.data].concat(this.updatePackageColToRow(n)):r.dataPacks[de.data].push(n)}remove(e){var t=this;e[de.state]=de.removeStateVal,e=this.conversion(e),this.colToRow&&this.colToRow.rowField?t.dataPacks[de.data]=t.dataPacks[de.data].concat(this.insertOrDeletePackageColToRow(e)):t.dataPacks[de.data].push(e)}toString(){return JSON.stringify(this.dataPacks)}clear(){this.dataPacks={}}getDataPack(){return this.dataPacks}isEmpty(){return!(this.dataPacks[de.data]&&this.dataPacks[de.data].length>0)}appendSavePack(e){this._appendSavePack.push(e)}save(e,t){e=e||{};let r={};this._appendSavePack.unshift(this.getDataPack()),r[de.root]=JSON.stringify(this._appendSavePack),r[de.funcPath]=this.funcPath,r[de.viewItemId]=this.viewItemId,this.extParam&&Object.assign(r,this.extParam),Object.assign(r,e),t&&t.call(this,e,r,r[de.root]);let n=this.url;this.pn&&(n=-1==n.indexOf("?")?n+"?pn="+this.pn:n+"&pn="+this.pn),e.wsid&&(n=-1==n.indexOf("?")?n+"?wsid="+e.wsid:n+"&wsid="+e.wsid);let o=e.showError;return delete e.showError,this.request({url:n,method:"post",showError:o,data:r})}wsSave(e={},t){let r=(new Date).valueOf();if(!this.wsUrl)throw new Error("未配置webscoket保存地址[saveWsUrl]");let n=this.wsUrl.replace("{id}",r),o=new WebSocket(n),i=this;return o.addEventListener("open",(function(){e.wsid=r,e.showError=!1,i.save(e,t)})),o}}let pe=({request:e,url:t,ftaskguid:r,flowtype:n})=>{let o,i=t||x.getApprovalInfo;return r&&(i=-1==i.indexOf("?")?i+"?ftaskguid="+r:i+"&ftaskguid="+r),n&&(i=-1==i.indexOf("?")?i+"?flowtype="+n:i+"&flowtype="+n),o=e({url:i,method:"post"}),o},ge=({request:e,url:t,data:r,param:n})=>{let o,i=t||x.processFlow,a={__body:JSON.stringify(r)};return n&&Object.assign(a,n),o=e({url:i,data:a,method:"post"}),o},ye=({request:e,url:t,param:r})=>{let n,o=t||x.queryTask;return n=e({url:o,data:r,method:"post"}),n},_e=({request:e,url:t,data:r})=>{let n;return n=e({url:t||x.getFlowInfo,data:r,method:"post"}),n},be=({request:e,fordernumber:t,url:r})=>{let n,o=r||x.openOrdernumber,i=`${o}?fordernumber=${t}`;return n=e({url:i,method:"get"}),n},ve=({request:e,url:t,ftaskguid:r})=>{let n,o=t||x.withdrawtask,i=`${o}?ftaskguid=${r}`;return n=e({url:i,method:"get"}),n},me=({request:e,url:t,fordernumber:r})=>{let n,o=t||x.umpireOrder,i=`${o}?fordernumber=${r}`;return n=e({url:i,method:"get"}),n},we=({request:e,url:t,forderguid:r,fmodelpath:n,fversion:o})=>{let i,a=t||x.taskDiagram,s=`${a}?fmodelpath=${n}${o?"&fversion="+o:""}`;return r&&(s=s+"&forderguid="+r),i=e({url:s,method:"get"}),i},Ee=({request:e,url:t,fordernumber:r})=>{let n,o,i=t||x.ganttChart;return r&&(o=i+"?fordernumber="+r),n=e({url:o,method:"get"}),n};var Oe={getApprovalInfo:pe,processFlow:ge,queryTask:ye,getFlowInfo:_e,withdrawtask:ve,taskDiagram:we,ganttChart:Ee,openOrdernumber:be,umpireOrder:me};let xe=({request:e,url:t,data:r})=>{let n;return n=e({url:t,data:r,method:"post"}),n};var Te={getFuncInfo:xe},Se={queryHelper:ce,saveHelper:he,flowHelper:Oe,funcHelper:Te},Ae=Se;function je(){return window.eap.userInfo||{}}function Pe(){return window.eap.userInfo&&window.eap.userInfo.main?window.eap.userInfo.main:window.eap.userInfo?window.eap.userInfo:{}}var Ie={userId:function(){return Pe().fuserid||""},userName:function(){return Pe().fusername||""},deptId:function(){return Pe().fdeptid||""},deptName:function(){return Pe().fdeptname||""},roleId:function(){return Pe().froleid||""},roleName:function(){return Pe().frolename||""},orgPath:function(){return Pe().fuserorgpath||""},orgName:function(){return Pe().forgname||""},orgId:function(){return Pe().forgid||""},superId:function(){return je().fsuperuserid||""},superName:function(){return je().fsuperusername||""},bzId:function(){return je().fbzid||""},bzName:function(){return je().fbzname||""},bzDeptId:function(){return je().fdeptid||""},bzDeptName:function(){return je().fdeptname||""},bzRoleId:function(){return je().froleid||""},bzRoleName:function(){return je().frolename||""},bzOrgPath:function(){return je().fuserorgpath||""},bzOrgName:function(){return je().forgname||""},bzOrgId:function(){return je().forgid||""},orgDeptId:function(){return(je().forgid||"")+"."+(je().fdeptid||"")},orgDeptName:function(){return(je().forgname||"")+"."+(je().fdeptname||"")},bzSuperId:function(){return je().fsuperbzid||""},bzSuperName:function(){return je().fsuperbzname||""},saasDeptId:function(){return je().fdeptid.replace(window.eap.userInfo.forgid+"_","").replace(window.eap.userInfo.forgid+"-","")},saasRoleId:function(){return je().froleid.replace(window.eap.userInfo.forgid+"_","").replace(window.eap.userInfo.forgid+"-","")},proxyId:function(){return window.eap.userInfo?window.eap.userInfo.fuserid:""},proxyName:function(){return window.eap.userInfo?window.eap.userInfo.fusername:""},bzProxyId:function(){return window.eap.userInfo?window.eap.userInfo.fbzid:""},bzProxyName:function(){return window.eap.userInfo?window.eap.userInfo.fbzname:""},getBzByRole:function(e){return[]},getBzByDept:function(e){return""},getBzByRole:function(){return getBzByRole(roleId())},getBzByDept:function(){return getBzByDept(deptId())}};const Ce="/platf/useroperate/entity/SysUseroperate.xml";function Me(e){if(!e.toLowerCase().startsWith("ws://")&&!e.toLowerCase().startsWith("wss://")){let t=window.HIVUI_SETTING.url;t=t.replace("https","wss"),t=t.replace("http","ws"),e=e.startsWith("/")?t+e:t+"/"+e}if(window.HIVUI_SETTING.projectName&&-1==e.indexOf("pn=")){let t=window.HIVUI_SETTING.projectName;e=-1==e.indexOf("?")?e+"?pn="+t:e+"&pn="+t}return e}function De(e){let t=window.HIVUI_SETTING.project||window.HIVUI_SETTING.projectName||"";if(-1!=t.indexOf("/")&&(t=t.split("/")[0]),-1!=e.indexOf(".pro")){let t=e,r="";-1!=t.indexOf("?")&&(t=t.substring(0,t.lastIndexOf("?")),r=e.substring(e.lastIndexOf("?")));let n=t.substring(t.lastIndexOf("."));e=t.replace(/\.\w+/g,"")+n+r}if(t){let r=e.split("/");""!=r[0]?r[0]=t:r[1]=t,e=r.join("/")}let r="";return e.startsWith("/")?r+=e:r=r+"/"+e,window.HIVUI_SETTING.projectName&&(r=-1!=e.indexOf("?")?r+"&pn="+window.HIVUI_SETTING.projectName:r+"?pn="+window.HIVUI_SETTING.projectName),r}var Ne={getWsUrl:Me,createNumber(){return"NEW-YYMMDD-9999"},getDownloadUrl(e,t){var r=e.substr(e.lastIndexOf(".")+1),n="";return n=t?`${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${e}&access_token=${window.eap.user.auth.getToken()}&name=${t}.${r}`:`${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${e}&access_token=${window.eap.user.auth.getToken()}`,n},delUserData(e,t){let r=new Ae.saveHelper(Ce,null,{request:window.HIVUI_SETTING.request,url:window.HIVUI_SETTING.saveUrl,pn:window.HIVUI_SETTING.projectName});return r.remove({FKEY:e,FUSERID:Ie.bzId(),FTYPE:t}),r.save()},async getUserData(e,t){var r=new Ae.queryHelper.Where({junction:"and"});r.addCondition("FKEY",e,"dbString"),r.addCondition("FTYPE",t,"dbString"),r.addCondition("FUSERID",Ie.bzId(),"dbString");var n=new Ae.queryHelper.Param({where:r});let o=await Ae.queryHelper.query(n,Ce,null,{request:window.HIVUI_SETTING.request,url:window.HIVUI_SETTING.queryUrl,pn:window.HIVUI_SETTING.projectName});return o.dataPack.rows.length>0?o.dataPack.rows[0].FVALUE:null},saveUserData(e,t,r,n){let o=new Ae.saveHelper(Ce,null,{request:window.HIVUI_SETTING.request,url:window.HIVUI_SETTING.saveUrl,pn:window.HIVUI_SETTING.projectName});return o.override({FKEY:e,FUSERID:Ie.bzId(),FTYPE:r},{FKEY:e,FUSERID:Ie.bzId(),FTYPE:r,FVALUE:"string"==typeof t?t:JSON.stringify(t),FNAME:n||""}),o.save()},getUrl:De,getResUrl(e){return HIVUI_SETTING.deployDir+De(e)}},Le={biz:Ne,FormFunc:Ne,DateFunc:K.date,NumberFunc:K.number,StringFunc:K.string,BomFunc:K.bom,OrgFunc:Ie};const ke=s.a.create({baseURL:"http://192.168.4.106:7777",timeout:3e4});let Re=!0;try{Re=!(!Re||!y["Message"])}catch(ct){Re=!1}function Be(e,t={}){let r=Le.StringFunc.id(8),n={top:15,margin:20,right:15},o="msgBox"==window.HIVUI_SETTING.messageType;e.showClose&&(n.margin+=15,n.right+=25),o&&(n.top=0,n.right=0,n.margin=20);let i=`<div class="zhcDetailMsg" style="max-height:200px;min-height: 20px;padding:3px 0;word-break:break-all;margin-right: ${n.margin}px;overflow:auto;transition:all 0.3s;"><span>${t.msg||t.resmessage}</span><i class="el-icon-caret-right" title="${window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail||"弹出报错详情"}" style="position: absolute;top:${n.top}px;right:${n.right}px;font-size:18px;color:#F56C6C;cursor:pointer;transition:all 0.3s;"></i></div>`,a=null,s=t.detailMsg&&t.detailMsg!=e.message;if(e.customClass=r,o?(e.message=s?i:`<div style="max-height:200px;word-break:break-all;overflow:auto;">${e.message}</div>`,a=Object(y["MessageBox"])({title:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_msgTips||"消息提示",confirmButtonText:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_define||"确定",dangerouslyUseHTMLString:!0,...e})):(s&&(e.message=i,e.dangerouslyUseHTMLString=!0),a=Object(y["Message"])(e)),s){let e=document.querySelector("."+r+" .zhcDetailMsg>i");e.onclick=()=>{"zhcDetailMsg"==e.previousSibling.className?(e.previousSibling.innerText=t.msg||t.resmessage,e.previousSibling.className="",e.title=window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail||"弹出报错详情",e.style.color="#F56C6C",e.style.transform="rotate(0)"):(e.previousSibling.innerText=t.detailMsg,e.previousSibling.className="zhcDetailMsg",e.title=window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_hideErrorDetail||"收起报错详情",e.style.color="",e.style.transform="rotate(90deg)")}}}function Ue(e){if(window.customSysCofig.showMiniLogin&&top.window.SysPage&&top.window.SysPage.openMiniLogin)top.window.SysPage.openMiniLogin();else{let t=window.HIVUI_SETTING.customLoginUrl||window.HIVUI_SETTING.loginUrl;if(window.HIVUI_SETTING.isSingleLogin){if(t=window.HIVUI_SETTING.singleLoginUrl,t.endsWith("=")){let e=window.location.search.slice(1).split("&").filter(e=>{if(-1==e.indexOf("ticket"))return e}),r=window.location.origin+window.location.pathname;-1==window.HIVUI_SETTING.mainPageUrl.indexOf(r)&&(e.push("eapReturnUrl="+r),r=window.HIVUI_SETTING.mainPageUrl),r=r.replace(/#\//g,""),t=t+r+(e.length>0?"?":"")+e.join("&")}}else t.endsWith("#/")||(t+="#/"),t+="?eapReturnUrl="+encodeURIComponent(window.location.href);top.window.mainPageInitErrorJump||e?window.location.href=t:Re&&y["MessageBox"].alert(window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips||"你已被登出,请重新登录",window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut||"登录超时",{confirmButtonText:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist||"重新登录",type:"warning",showClose:!1}).then(()=>{window.location.href=t})}}ke.defaults.headers.post["Content-Type"]="application/json;charset=UTF-8",ke.interceptors.request.use(e=>{void 0===e.headers["Content-Type"]&&(e.headers["Content-Type"]="application/json;charset=UTF-8");const t=d();"undefined"==typeof e.showSuccessTips&&(e.showSuccessTips=!0),"undefined"==typeof e.showError&&(e.showError=!0),!t||e.noToken||e.url.startsWith("http")&&!e.url.startsWith(window.HIVUI_SETTING.url)||(e.headers["Authorization"]="Bearer "+t);let r=c.a.get("locale");if(r&&("post"==e.method?(e.params||(e.params={}),e.params.locale=r):e.url=Le.StringFunc.setUrlValue(e.url,"locale",r)),window.HIVUI_SETTING){let t=window.HIVUI_SETTING.url;if(e.url.toLowerCase().startsWith("http")||(e.url.startsWith("/")?e.url=t+e.url:e.url=t+"/"+e.url),(window.HIVUI_SETTING.requestTimeout||0==window.HIVUI_SETTING.requestTimeout)&&(e.timeout=window.HIVUI_SETTING.requestTimeout),window.HIVUI_SETTING.projectName&&-1==e.url.indexOf("pn=")&&(!e.params||!e.params.pn)){let t=window.HIVUI_SETTING.projectName;-1==e.url.indexOf("?")?e.url=e.url+"?pn="+t:e.url=e.url+"&pn="+t}if(window.scpRequestData&&window.scpRequestData.fbzid){let t=window.scpRequestData.fbzid;"post"==e.method?(e.params||(e.params={}),e.params.fbzid=t):e.url=Le.StringFunc.setUrlValue(e.url,"fbzid",t)}}const n=e.headers["sign"];if(n||void 0===n){const t=(new Date).getTime().toString().substr(0,10);e.headers["timeStamp"]=t}return e.isDownload&&(e.responseType="blob",delete e.isDownload),e},e=>Promise.reject(e)),ke.interceptors.response.use(e=>{if("arraybuffer"==e.config.responseType)return e;if(e.config.normalResult)return e;const t=e.data;if("application/octet-stream"==t.type||"application/octet-stream"==e.headers["content-type"])return e;if("blob"==e.config.responseType){let e=new FileReader;return e.readAsText(t,"utf-8"),e.onload=function(){let r=JSON.parse(e.result);return Re&&Be({message:r.msg||r.message||"Error",type:"error",showClose:!0},t)},Promise.reject(t)}if("200"!=e.status||e.data.status&&"200"!=e.data.status){let n={};try{n=JSON.parse(e.config.data)}catch(r){}if(!1===n.__isIntercept){if(e.config.data)try{t.options=JSON.parse(e.config.data)}catch(ct){}return Promise.reject(t)}return setTimeout(()=>{Re&&Be({message:t.msg||t.message||"Error",type:"error",showClose:!0,duration:5e3},t)},0),401==t.status||t.data&&401==t.data.status?(Ue(e.config.isSkip),Promise.reject(error)):Promise.reject(t,JSON.parse(e.config.data||"{}"))}if(t.dataPack=t.dataPack||t.data,(t.detailMsg||t.msg)&&e.config.showSuccessTips&&Re&&Be({message:t.detailMsg||t.msg||"Error",type:t.popupbox&&t.popupbox.type||"success",showClose:!0,duration:5e3},t),e.config.data)try{t.options=JSON.parse(e.config.data)}catch(ct){}return t},e=>{let t=e.response;if(e.config&&!e.config.showError)return;if(!t)return void(Re&&Be({message:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_responseNull||"后端请求返回出错,请联系开发人员",type:"error",showClose:!0,duration:5e3}));let r={};try{r=JSON.parse(t.config.data)}catch(n){}return!1===r.__isIntercept?Promise.reject(e):401==t.status||t.data&&401==t.data.status?(Ue(t.config.isSkip),Promise.reject(e)):(console.log("err"+e),Promise.reject(e))});var He=ke;function Ge(e){const t=d();if(window.HIVUI_SETTING&&((window.HIVUI_SETTING.requestTimeout||0==window.HIVUI_SETTING.requestTimeout)&&(e.timeout=window.HIVUI_SETTING.requestTimeout),window.HIVUI_SETTING.projectName)){let t=window.HIVUI_SETTING.projectName;-1==e.url.indexOf("?")?e.url=e.url+"?pn="+t:e.url=e.url+"&pn="+t}let r=e.url||"",n=e.method||"GET",o=e.data||{},i=e.success,a=void 0==e.async||e.async,s=e.fail;var u=new XMLHttpRequest;if(u.open(n,r,a),e.timeout&&!0===a&&(u.timeout=e.timeout),u.setRequestHeader("Content-Type","application/json;charset=UTF-8"),!t||e.noToken||r.startsWith("http")&&!r.startsWith(window.HIVUI_SETTING.url)||u.setRequestHeader("Authorization","Bearer "+t),"{}"!=JSON.stringify(o)?u.send(JSON.stringify(o)):u.send(),0==a)if(200==u.status){var c=JSON.parse(u.responseText);i&&i.call(this,c)}else{c=JSON.parse(u.responseText);Re&&Be({message:c.msg||c.message||"Error",type:"error",showClose:!0,duration:5e3},c),401==c.status||c.data&&401==c.data.status?window.customSysCofig.showMiniLogin&&top.window.SysPage&&top.window.SysPage.openMiniLogin?top.window.SysPage.openMiniLogin():Re&&y["MessageBox"].alert(window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips||"你已被登出,请重新登录",window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut||"登录超时",{confirmButtonText:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist||"重新登录",type:"warning",showClose:!1}).then(()=>{let e=window.HIVUI_SETTING.loginUrl;e.endsWith("=")&&(e+=window.location.href),window.location.href=window.HIVUI_SETTING.customLoginUrl||e}):s&&s.call(this,u.responseText)}else u.onreadystatechange=function(){if(4==u.readyState)if(200==u.status||"200"==u.status){var e=JSON.parse(u.responseText);i&&i.call(this,e)}else{e=JSON.parse(u.responseText);Re&&Be({message:e.msg||e.message||"Error",type:"error",showClose:!0,duration:5e3},e),401==e.status||e.data&&401==e.data.status?window.customSysCofig.showMiniLogin&&top.window.SysPage&&top.window.SysPage.openMiniLogin?top.window.SysPage.openMiniLogin():Re&&y["MessageBox"].alert(window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips||"你已被登出,请重新登录",window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut||"登录超时",{confirmButtonText:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist||"重新登录",type:"warning",showClose:!1}).then(()=>{let e=window.HIVUI_SETTING.loginUrl;e.endsWith("=")&&(e+=window.location.href),window.location.href=window.HIVUI_SETTING.customLoginUrl||e}):s&&s.call(this,u.responseText)}}}var Fe=function(e){var t;if(window.isElectron||top.window.isElectron)for(var r in window.electronCfg&&(t=window.electronCfg.urlCallback),top.window.electronCfg&&(t=top.window.electronCfg.urlCallback),t)if(e.url.indexOf(r)>-1)return t[r](e);return He(e)},ze=Fe;function qe(e,t){var r={username:e.trim(),password:I()(t)};let n=ze({url:window.HIVUI_SETTING.login||window.HIVUI_SETTING.serverUrl+"/login/sso-login",method:"post",data:r});return n.then(e=>{const t=e;t.token&&h(t.token),"#miniLogin"==location.hash&&("ajax"==Le.StringFunc.getUrlValue("questType")?top.window.SysPage&&top.window.SysPage.closeMiniLogin(Le.StringFunc.getUrlValue("isRefresh")):location.reload())}),n}function Ve(){if(!d())return new Promise((e,t)=>{e()});let e=ze({url:window.HIVUI_SETTING.logout||window.HIVUI_SETTING.serverUrl+"/login/sso-logout",method:"post"});return e.then(e=>{p()}),e}function Xe(e){return ze({url:window.HIVUI_SETTING.userInfo,method:"post",data:e})}function $e(e,t){return ze({url:window.HIVUI_SETTING.serverUrl+"/sys/user/update-pwd",method:"post",data:{oldPwd:e,newPwd:t}})}function We(e){return ze({url:window.HIVUI_SETTING.serverUrl+"/sys/auth/func-multi-bz",method:"post",data:e})}function Ye(e,t){var r={userId:e.trim(),password:I()(t)};return ze({url:window.HIVUI_SETTING.serverUrl+"/login/unlock",method:"post",data:r})}var Je={login:qe,logout:Ve,getInfo:Xe,modifyPw:$e,getBzList:We,unlock:Ye},Ke={service:Je,auth:g},Qe={closepage(){top.window.SysPage&&top.window.SysPage.closePage?top.window.SysPage.closePage():window.close()},newPage(e,t,r,n,o){t&&0!=t.indexOf("http")&&(t=location.origin+(top.window.deployDir?"/"+top.window.deployDir:"")+(top.window.pName?"/"+top.window.pName:"")+t),top.window.SysPage&&top.window.SysPage.newPage?top.window.SysPage.newPage(e,t,r,n,o):window.open(t,"_blank")}};let Ze=(e,t,r,n={})=>{let o=window.HIVUI_SETTING;return!n.request&&o&&(n.request=o.request),!n.pn&&o&&(n.pn=o.projectName),!n.url&&o&&(n.url=o.queryUrl),Ae.queryHelper.query(e,t,r,n)},et=(e,t,r,n={})=>{let o=window.HIVUI_SETTING;return!n.request&&o&&(n.request=o.request),!n.pn&&o&&(n.pn=o.projectName),!n.url&&o&&(n.url=o.exportUrl),Ae.queryHelper.exportData(e,t,r,n)};class tt extends Ae.saveHelper{constructor(e,t,r={}){let n=window.HIVUI_SETTING;!r.request&&n&&(r.request=n.request),!r.pn&&n&&(r.pn=n.projectName),!r.url&&n&&(r.url=n.saveUrl),super(e,t,r)}}var rt={query:Ze,exportData:et,Param:Ae.queryHelper.Param,Where:Ae.queryHelper.Where,types:Ae.queryHelper.types,Orders:Ae.queryHelper.Orders,SaveHelper:tt},nt=r("3f84"),ot=r.n(nt),it=r("ed27");function at(){let e=[...arguments];return ot()(...e)}let st={get(e){let t={};return window.lang&&window.lang.keys&&(t=window.lang.keys),t[e]||e}};var ut={user:Ke,ajax:Ge,request:Fe,mergeConfig:at,lang:st,utils:Le,page:Qe,dataHelper:rt};window.HIVUI_SETTING||(window.HIVUI_SETTING=x),window.lang=st,console.log("%c hi-eap-basic %c v".concat(it.version," "),"padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #ff8e15; font-weight: bold;","padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");t["default"]=ut},fba5:function(e,t,r){var n=r("cb5a");function o(e){return n(this.__data__,e)>-1}e.exports=o},fbb2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericBarcode=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),n(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(i.default);t.GenericBarcode=l},fd7c:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(e,t){return n({},e,t)}},ff84:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("349c"),o=r("da3d"),i=r("241e"),a=r("9ffa"),s=r("8e51"),u=r("7cb9"),c=r("c17b"),l=r("fbb2");t.default={CODE39:n.CODE39,CODE128:o.CODE128,CODE128A:o.CODE128A,CODE128B:o.CODE128B,CODE128C:o.CODE128C,EAN13:i.EAN13,EAN8:i.EAN8,EAN5:i.EAN5,EAN2:i.EAN2,UPC:i.UPC,UPCE:i.UPCE,ITF14:a.ITF14,ITF:a.ITF,MSI:s.MSI,MSI10:s.MSI10,MSI11:s.MSI11,MSI1010:s.MSI1010,MSI1110:s.MSI1110,pharmacode:u.pharmacode,codabar:c.codabar,GenericBarcode:l.GenericBarcode}},ffd6:function(e,t,r){var n=r("3729"),o=r("1310"),i="[object Symbol]";function a(e){return"symbol"==typeof e||o(e)&&n(e)==i}e.exports=a}})})); //# sourceMappingURL=eap.umd.min.js.map
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("ELEMENT")):"function"===typeof define&&define.amd?define(["ELEMENT"],t):"object"===typeof exports?exports["eap"]=t(require("ELEMENT")):e["eap"]=t(e["ELEMENT"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__5f72__){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({"00fd":function(e,t,r){var n=r("9e69"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;function u(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(u){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}e.exports=u},"03dd":function(e,t,r){var n=r("eac5"),o=r("57a5"),i=Object.prototype,a=i.hasOwnProperty;function s(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}e.exports=s},"0644":function(e,t,r){var n=r("3818"),o=1,i=4;function a(e){return n(e,o|i)}e.exports=a},"07c7":function(e,t){function r(){return!1}e.exports=r},"07df":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("3c7c"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){var t=e.substr(0,13).split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t,r){return e+t*(3-r%2*2)}),0);return 10*Math.ceil(t/10)-t},f=function(e){function t(e,r){return s(this,t),-1!==e.search(/^[0-9]{13}$/)&&(e+=l(e)),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===l(this.data)}}]),t}(i.default);t.default=f},"087d":function(e,t){function r(e,t){var r=-1,n=t.length,o=e.length;while(++r<n)e[o+r]=t[r];return e}e.exports=r},"0a06":function(e,t,r){"use strict";var n=r("c532"),o=r("30b5"),i=r("f6b4"),a=r("5270"),s=r("4a7b");function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],r=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)r=r.then(t.shift(),t.shift());return r},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t}))}})),n.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=u},"0b07":function(e,t,r){var n=r("34ac"),o=r("3698");function i(e,t){var r=o(e,t);return n(r)?r:void 0}e.exports=i},"0d24":function(e,t,r){(function(e){var n=r("2b3e"),o=r("07c7"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||o;e.exports=l}).call(this,r("62e4")(e))},"0df6":function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f0f":function(e,t,r){var n=r("8eeb"),o=r("9934");function i(e,t){return e&&n(t,o(t),e)}e.exports=i},"100e":function(e,t,r){var n=r("cd9d"),o=r("2286"),i=r("c1c9");function a(e,t){return i(o(e,t,n),e+"")}e.exports=a},1041:function(e,t,r){var n=r("8eeb"),o=r("a029");function i(e,t){return n(e,o(e),t)}e.exports=i},"124f":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),n(t,[{key:"encode",value:function(){for(var e="110",t=0;t<this.data.length;t++){var r=parseInt(this.data[t]),n=r.toString(2);n=f(n,4-n.length);for(var o=0;o<n.length;o++)e+="0"==n[o]?"100":"110"}return e+="1001",{data:e,text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),t}(i.default);function f(e,t){for(var r=0;r<t;r++)e="0"+e;return e}t.default=l},1290:function(e,t){function r(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=r},1310:function(e,t){function r(e){return null!=e&&"object"==typeof e}e.exports=r},1368:function(e,t,r){var n=r("da03"),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i(e){return!!o&&o in e}e.exports=i},"18d8":function(e,t,r){var n=r("234d"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},"1a2d":function(e,t,r){var n=r("42a2"),o=r("1310"),i="[object Map]";function a(e){return o(e)&&n(e)==i}e.exports=a},"1a8c":function(e,t){function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=r},"1ba5":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r("bdfe"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){var t=e.substr(0,7).split("").map((function(e){return+e})).reduce((function(e,t,r){return r%2?e+t:e+3*t}),0);return(10-t%10)%10},d=function(e){function t(e,r){return u(this,t),-1!==e.search(/^[0-9]{7}$/)&&(e+=f(e)),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return l(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===f(this.data)}},{key:"leftText",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var e=this.data.substr(0,4);return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,e,"LLLL")}},{key:"rightText",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var e=this.data.substr(4,4);return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,e,"RRRR")}}]),t}(a.default);t.default=d},"1bac":function(e,t,r){var n=r("7d1f"),o=r("a029"),i=r("9934");function a(e){return n(e,i,o)}e.exports=a},"1cec":function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"Promise");e.exports=i},"1d2b":function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},"1efc":function(e,t){function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=r},"1fc8":function(e,t,r){var n=r("4245");function o(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}e.exports=o},2286:function(e,t,r){var n=r("85e3"),o=Math.max;function i(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);while(++a<s)u[a]=i[t+a];a=-1;var c=Array(t+1);while(++a<t)c[a]=i[a];return c[t]=r(u),n(e,this,c)}}e.exports=i},"234d":function(e,t,r){var n=r("e380"),o=500;function i(e){var t=n(e,(function(e){return r.size===o&&r.clear(),e})),r=t.cache;return t}e.exports=i},2411:function(e,t,r){var n=r("f909"),o=r("2ec1"),i=o((function(e,t,r,o){n(e,t,r,o)}));e.exports=i},"241e":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPCE=t.UPC=t.EAN2=t.EAN5=t.EAN8=t.EAN13=void 0;var n=r("89a2"),o=g(n),i=r("1ba5"),a=g(i),s=r("583f"),u=g(s),c=r("a5d2"),l=g(c),f=r("e8b2"),d=g(f),h=r("be98"),p=g(h);function g(e){return e&&e.__esModule?e:{default:e}}t.EAN13=o.default,t.EAN8=a.default,t.EAN5=u.default,t.EAN2=l.default,t.UPC=d.default,t.UPCE=p.default},2444:function(e,t,r){"use strict";(function(t){var n=r("c532"),o=r("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=r("b50d")),e}var u={adapter:s(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(i)})),e.exports=u}).call(this,r("4362"))},2474:function(e,t,r){var n=r("2b3e"),o=n.Uint8Array;e.exports=o},2478:function(e,t,r){var n=r("4245");function o(e){return n(this,e).get(e)}e.exports=o},2524:function(e,t,r){var n=r("6044"),o="__lodash_hash_undefined__";function i(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?o:t,this}e.exports=i},"253c":function(e,t,r){var n=r("3729"),o=r("1310"),i="[object Arguments]";function a(e){return o(e)&&n(e)==i}e.exports=a},"28c9":function(e,t){function r(){this.__data__=[],this.size=0}e.exports=r},"29f3":function(e,t){var r=Object.prototype,n=r.toString;function o(e){return n.call(e)}e.exports=o},"2a4a":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.START_BIN="1010",t.END_BIN="11101",t.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},"2b3e":function(e,t,r){var n=r("585a"),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},"2d7c":function(e,t){function r(e,t){var r=-1,n=null==e?0:e.length,o=0,i=[];while(++r<n){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}e.exports=r},"2d83":function(e,t,r){"use strict";var n=r("387f");e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},"2dcb":function(e,t,r){var n=r("91e9"),o=n(Object.getPrototypeOf,Object);e.exports=o},"2e67":function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2ec1":function(e,t,r){var n=r("100e"),o=r("9aff");function i(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);while(++n<i){var u=r[n];u&&e(t,u,n,a)}return t}))}e.exports=i},"2fcc":function(e,t){function r(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}e.exports=r},"30b5":function(e,t,r){"use strict";var n=r("c532");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},"30c9":function(e,t,r){var n=r("9520"),o=r("b218");function i(e){return null!=e&&o(e.length)&&!n(e)}e.exports=i},"32b3":function(e,t,r){var n=r("872a"),o=r("9638"),i=Object.prototype,a=i.hasOwnProperty;function s(e,t,r){var i=e[t];a.call(e,t)&&o(i,r)&&(void 0!==r||t in e)||n(e,t,r)}e.exports=s},"32f4":function(e,t,r){var n=r("2d7c"),o=r("d327"),i=Object.prototype,a=i.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),n(s(e),(function(t){return a.call(e,t)})))}:o;e.exports=u},"349c":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CODE39=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),e=e.toUpperCase(),r.mod43&&(e+=g(_(e))),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),n(t,[{key:"encode",value:function(){for(var e=h("*"),t=0;t<this.data.length;t++)e+=h(this.data[t])+"0";return e+=h("*"),{data:e,text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),t}(i.default),f=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],d=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function h(e){return p(y(e))}function p(e){return d[e].toString(2)}function g(e){return f[e]}function y(e){return f.indexOf(e)}function _(e){for(var t=0,r=0;r<e.length;r++)t+=y(e[r]);return t%=43,t}t.CODE39=l},"34ac":function(e,t,r){var n=r("9520"),o=r("1368"),i=r("1a8c"),a=r("dc57"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,d=l.hasOwnProperty,h=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(e){if(!i(e)||o(e))return!1;var t=n(e)?h:u;return t.test(a(e))}e.exports=p},3698:function(e,t){function r(e,t){return null==e?void 0:e[t]}e.exports=r},3729:function(e,t,r){var n=r("9e69"),o=r("00fd"),i=r("29f3"),a="[object Null]",s="[object Undefined]",u=n?n.toStringTag:void 0;function c(e){return null==e?void 0===e?s:a:u&&u in Object(e)?o(e):i(e)}e.exports=c},3818:function(e,t,r){var n=r("7e64"),o=r("8057"),i=r("32b3"),a=r("5b01"),s=r("0f0f"),u=r("e538"),c=r("4359"),l=r("54eb"),f=r("1041"),d=r("a994"),h=r("1bac"),p=r("42a2"),g=r("c87c"),y=r("c2b6"),_=r("fa21"),b=r("6747"),v=r("0d24"),m=r("cc45"),w=r("1a8c"),E=r("d7ee"),O=r("ec69"),x=1,T=2,S=4,A="[object Arguments]",j="[object Array]",P="[object Boolean]",I="[object Date]",C="[object Error]",M="[object Function]",D="[object GeneratorFunction]",N="[object Map]",L="[object Number]",k="[object Object]",R="[object RegExp]",B="[object Set]",U="[object String]",H="[object Symbol]",G="[object WeakMap]",F="[object ArrayBuffer]",z="[object DataView]",q="[object Float32Array]",V="[object Float64Array]",X="[object Int8Array]",$="[object Int16Array]",W="[object Int32Array]",Y="[object Uint8Array]",J="[object Uint8ClampedArray]",K="[object Uint16Array]",Q="[object Uint32Array]",Z={};function ee(e,t,r,j,P,I){var C,N=t&x,L=t&T,R=t&S;if(r&&(C=P?r(e,j,P,I):r(e)),void 0!==C)return C;if(!w(e))return e;var B=b(e);if(B){if(C=g(e),!N)return c(e,C)}else{var U=p(e),H=U==M||U==D;if(v(e))return u(e,N);if(U==k||U==A||H&&!P){if(C=L||H?{}:_(e),!N)return L?f(e,s(C,e)):l(e,a(C,e))}else{if(!Z[U])return P?e:{};C=y(e,U,N)}}I||(I=new n);var G=I.get(e);if(G)return G;if(I.set(e,C),E(e))return e.forEach((function(n){C.add(ee(n,t,r,n,e,I))})),C;if(m(e))return e.forEach((function(n,o){C.set(o,ee(n,t,r,o,e,I))})),C;var F=R?L?h:d:L?keysIn:O,z=B?void 0:F(e);return o(z||e,(function(n,o){z&&(o=n,n=e[o]),i(C,o,ee(n,t,r,o,e,I))})),C}Z[A]=Z[j]=Z[F]=Z[z]=Z[P]=Z[I]=Z[q]=Z[V]=Z[X]=Z[$]=Z[W]=Z[N]=Z[L]=Z[k]=Z[R]=Z[B]=Z[U]=Z[H]=Z[Y]=Z[J]=Z[K]=Z[Q]=!0,Z[C]=Z[M]=Z[G]=!1,e.exports=ee},3852:function(e,t,r){var n=r("96f3"),o=r("e2c0");function i(e,t){return null!=e&&o(e,t,n)}e.exports=i},"387f":function(e,t,r){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},"39ff":function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"WeakMap");e.exports=i},"3b4a":function(e,t,r){var n=r("0b07"),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"3c7c":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("2a4a"),i=r("e762"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var e=this,t=this.data.match(/.{2}/g).map((function(t){return e.encodePair(t)})).join("");return{data:o.START_BIN+t+o.END_BIN,text:this.text}}},{key:"encodePair",value:function(e){var t=o.BINARIES[e[1]];return o.BINARIES[e[0]].split("").map((function(e,r){return("1"===e?"111":"1")+("1"===t[r]?"000":"0")})).join("")}}]),t}(a.default);t.default=f},"3f84":function(e,t,r){var n=r("85e3"),o=r("100e"),i=r("e031"),a=r("2411"),s=o((function(e){return e.push(void 0,i),n(a,void 0,e)}));e.exports=s},"41c3":function(e,t,r){var n=r("1a8c"),o=r("eac5"),i=r("ec8c"),a=Object.prototype,s=a.hasOwnProperty;function u(e){if(!n(e))return i(e);var t=o(e),r=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&r.push(a);return r}e.exports=u},4245:function(e,t,r){var n=r("1290");function o(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}e.exports=o},"42a2":function(e,t,r){var n=r("b5a7"),o=r("79bc"),i=r("1cec"),a=r("c869"),s=r("39ff"),u=r("3729"),c=r("dc57"),l="[object Map]",f="[object Object]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",g="[object DataView]",y=c(n),_=c(o),b=c(i),v=c(a),m=c(s),w=u;(n&&w(new n(new ArrayBuffer(1)))!=g||o&&w(new o)!=l||i&&w(i.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=u(e),r=t==f?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case y:return g;case _:return l;case b:return d;case v:return h;case m:return p}return t}),e.exports=w},4359:function(e,t){function r(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}e.exports=r},4362:function(e,t,r){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("df7c")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("124f"),o=a(n),i=r("6e53");function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,i.mod11)(e),r))}return c(t,e),t}(o.default);t.default=l},"467f":function(e,t,r){"use strict";var n=r("2d83");e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},4727:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("124f"),o=a(n),i=r("6e53");function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,i.mod10)(e),r))}return c(t,e),t}(o.default);t.default=l},"49f4":function(e,t,r){var n=r("6044");function o(){this.__data__=n?n(null):{},this.size=0}e.exports=o},"4a37":function(e,t,r){!function(t,r){e.exports=r()}(0,(function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";e.exports=r(3)},function(e,t){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(void 0!==n&&null!==n){n=Object(n);for(var o=Object.keys(Object(n)),i=0,a=o.length;i<a;i++){var s=o[i],u=Object.getOwnPropertyDescriptor(n,s);void 0!==u&&u.enumerable&&(t[s]=n[s])}}}return t}})}()},function(e,t){"use strict";e.exports=function(){var e={utf16to8:function(e){var t,r,n,o;for(t="",n=e.length,r=0;r<n;r++)o=e.charCodeAt(r),o>=1&&o<=127?t+=e.charAt(r):o>2047?(t+=String.fromCharCode(224|o>>12&15),t+=String.fromCharCode(128|o>>6&63),t+=String.fromCharCode(128|o>>0&63)):(t+=String.fromCharCode(192|o>>6&31),t+=String.fromCharCode(128|o>>0&63));return t},utf8to16:function(e){var t,r,n,o,i,a;for(t="",n=e.length,r=0;r<n;)switch(o=e.charCodeAt(r++),o>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(r-1);break;case 12:case 13:i=e.charCodeAt(r++),t+=String.fromCharCode((31&o)<<6|63&i);break;case 14:i=e.charCodeAt(r++),a=e.charCodeAt(r++),t+=String.fromCharCode((15&o)<<12|(63&i)<<6|(63&a)<<0)}return t}};return e}()},function(e,t,r){"use strict";r(1),r(4);var n=r(2),o=function(){function e(e){var t=new QRCode(e.typeNumber,e.correctLevel);t.addData(e.text),t.make();var r=document.createElement("canvas");r.width=e.width,r.height=e.height;var n=r.getContext("2d"),o=(e.width-2*e.padding)/t.getModuleCount(),i=(e.height-2*e.padding)/t.getModuleCount();if(e.reverse){var a="rgba(0, 0, 0, 0)";n.fillStyle=a,e.foreground=a}else n.fillStyle=e.background;n.fillRect(0,0,r.width,r.height);for(var s=0;s<t.getModuleCount();s++)for(var u=0;u<t.getModuleCount();u++){n.fillStyle=t.isDark(s,u)?e.foreground:e.background;var c=Math.ceil((u+1)*o)-Math.floor(u*o),l=Math.ceil((s+1)*o)-Math.floor(s*o);n.fillRect(Math.round(u*o)+e.padding,Math.round(s*i)+e.padding,c,l)}return r}var t={getQrBase64:function(t,r){"string"!=typeof t&&(t=""),"string"==typeof r?r={text:r}:"object"!=typeof r&&(r={}),r=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},r);try{r.text=n.utf16to8(t)}catch(e){r.text=""+e}var o=e(r);return o.toDataURL()}};return t.QRErrorCorrectLevel=QRErrorCorrectLevel,t}();!window.jrQrcode&&(window.jrQrcode=o),e.exports=o},function(e,t){function r(e){this.mode=s.MODE_8BIT_BYTE,this.data=e}function n(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function o(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}function i(e,t){this.totalCount=e,this.dataCount=t}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},n.prototype={addData:function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=i.getRSBlocks(e,this.errorCorrectLevel),r=new a,n=0,o=0;o<t.length;o++)n+=t[o].dataCount;for(o=0;o<this.dataList.length;o++){var s=this.dataList[o];r.put(s.mode,4),r.put(s.getLength(),l.getLengthInBits(s.mode,e)),s.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[r][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=l.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r),o=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*o,s=0;s<this.modules[i].length;s++){var u=s*o,c=this.modules[i][s];c&&(n.beginFill(0,100),n.moveTo(u,a),n.lineTo(u+o,a),n.lineTo(u+o,a+o),n.lineTo(u,a+o),n.endFill())}return n},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=l.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],o=e[r];if(null==this.modules[n][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[n+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}},setupTypeNumber:function(e){for(var t=l.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&1==(t>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=l.getBCHTypeInfo(r),o=0;o<15;o++){var i=!e&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[n][a-s]){var u=!1;i<e.length&&(u=1==(e[i]>>>o&1));var c=l.getMask(t,n,a-s);c&&(u=!u),this.modules[n][a-s]=u,o--,-1==o&&(i++,o=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}},n.PAD0=236,n.PAD1=17,n.createData=function(e,t,r){for(var o=i.getRSBlocks(e,t),s=new a,u=0;u<r.length;u++){var c=r[u];s.put(c.mode,4),s.put(c.getLength(),l.getLengthInBits(c.mode,e)),c.write(s)}var f=0;for(u=0;u<o.length;u++)f+=o[u].dataCount;if(s.getLengthInBits()>8*f)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*f+")");for(s.getLengthInBits()+4<=8*f&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*f)break;if(s.put(n.PAD0,8),s.getLengthInBits()>=8*f)break;s.put(n.PAD1,8)}return n.createBytes(s,o)},n.createBytes=function(e,t){for(var r=0,n=0,i=0,a=new Array(t.length),s=new Array(t.length),u=0;u<t.length;u++){var c=t[u].dataCount,f=t[u].totalCount-c;n=Math.max(n,c),i=Math.max(i,f),a[u]=new Array(c);for(var d=0;d<a[u].length;d++)a[u][d]=255&e.buffer[d+r];r+=c;var h=l.getErrorCorrectPolynomial(f),p=new o(a[u],h.getLength()-1),g=p.mod(h);s[u]=new Array(h.getLength()-1);for(d=0;d<s[u].length;d++){var y=d+g.getLength()-s[u].length;s[u][d]=y>=0?g.get(y):0}}var _=0;for(d=0;d<t.length;d++)_+=t[d].totalCount;var b=new Array(_),v=0;for(d=0;d<n;d++)for(u=0;u<t.length;u++)d<a[u].length&&(b[v++]=a[u][d]);for(d=0;d<i;d++)for(u=0;u<t.length;u++)d<s[u].length&&(b[v++]=s[u][d]);return b};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},l={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(e){for(var t=e<<10;l.getBCHDigit(t)-l.getBCHDigit(l.G15)>=0;)t^=l.G15<<l.getBCHDigit(t)-l.getBCHDigit(l.G15);return(e<<10|t)^l.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;l.getBCHDigit(t)-l.getBCHDigit(l.G18)>=0;)t^=l.G18<<l.getBCHDigit(t)-l.getBCHDigit(l.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return l.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case c.PATTERN000:return(t+r)%2==0;case c.PATTERN001:return t%2==0;case c.PATTERN010:return r%3==0;case c.PATTERN011:return(t+r)%3==0;case c.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case c.PATTERN101:return t*r%2+t*r%3==0;case c.PATTERN110:return(t*r%2+t*r%3)%2==0;case c.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),r=0;r<e;r++)t=t.multiply(new o([1,f.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:return 8;case s.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(n,o),s=-1;s<=1;s++)if(!(n+s<0||t<=n+s))for(var u=-1;u<=1;u++)o+u<0||t<=o+u||0==s&&0==u||a==e.isDark(n+s,o+u)&&i++;i>5&&(r+=3+i-5)}for(n=0;n<t-1;n++)for(o=0;o<t-1;o++){var c=0;e.isDark(n,o)&&c++,e.isDark(n+1,o)&&c++,e.isDark(n,o+1)&&c++,e.isDark(n+1,o+1)&&c++,0!=c&&4!=c||(r+=3)}for(n=0;n<t;n++)for(o=0;o<t-6;o++)e.isDark(n,o)&&!e.isDark(n,o+1)&&e.isDark(n,o+2)&&e.isDark(n,o+3)&&e.isDark(n,o+4)&&!e.isDark(n,o+5)&&e.isDark(n,o+6)&&(r+=40);for(o=0;o<t;o++)for(n=0;n<t-6;n++)e.isDark(n,o)&&!e.isDark(n+1,o)&&e.isDark(n+2,o)&&e.isDark(n+3,o)&&e.isDark(n+4,o)&&!e.isDark(n+5,o)&&e.isDark(n+6,o)&&(r+=40);var l=0;for(o=0;o<t;o++)for(n=0;n<t;n++)e.isDark(n,o)&&l++;var f=Math.abs(100*l/t/t-50)/5;return r+10*f}},f={glog:function(e){if(e<1)throw new Error("glog("+e+")");return f.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return f.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)f.EXP_TABLE[d]=1<<d;for(d=8;d<256;d++)f.EXP_TABLE[d]=f.EXP_TABLE[d-4]^f.EXP_TABLE[d-5]^f.EXP_TABLE[d-6]^f.EXP_TABLE[d-8];for(d=0;d<255;d++)f.LOG_TABLE[f.EXP_TABLE[d]]=d;o.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<e.getLength();n++)t[r+n]^=f.gexp(f.glog(this.get(r))+f.glog(e.get(n)));return new o(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=f.glog(this.get(0))-f.glog(e.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(n=0;n<e.getLength();n++)r[n]^=f.gexp(f.glog(e.get(n))+t);return new o(r,0).mod(e)}},i.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]],i.getRSBlocks=function(e,t){var r=i.getRsBlockTable(e,t);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,o=new Array,a=0;a<n;a++)for(var s=r[3*a+0],u=r[3*a+1],c=r[3*a+2],l=0;l<s;l++)o.push(new i(u,c));return o},i.getRsBlockTable=function(e,t){switch(t){case u.L:return i.RS_BLOCK_TABLE[4*(e-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(e-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(e-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},a.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},window.QRCode=n,window.QRErrorCorrectLevel=u;try{e.exports={QRCode:n,QRErrorCorrectLevel:u}}catch(e){}}])}))},"4a7b":function(e,t,r){"use strict";var n=r("c532");e.exports=function(e,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function c(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=u(void 0,e[o])):r[o]=u(e[o],t[o])}n.forEach(o,(function(e){n.isUndefined(t[e])||(r[e]=u(void 0,t[e]))})),n.forEach(i,c),n.forEach(a,(function(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=u(void 0,e[o])):r[o]=u(void 0,t[o])})),n.forEach(s,(function(n){n in t?r[n]=u(e[n],t[n]):n in e&&(r[n]=u(void 0,e[n]))}));var l=o.concat(i).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(f,c),r}},"4b23":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=s(o),a=r("f08e");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.substring(1),r));return n.bytes=e.split("").map((function(e){return e.charCodeAt(0)})),n}return l(t,e),n(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var e=this.bytes,r=e.shift()-105,n=a.SET_BY_CODE[r];if(void 0===n)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&e.unshift(a.FNC1);var o=t.next(e,1,n);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(r)+o.result+t.getBar((o.checksum+r)%a.MODULO)+t.getBar(a.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var e=this.options.ean128||!1;return"string"===typeof e&&(e="true"===e.toLowerCase()),e}}],[{key:"getBar",value:function(e){return a.BARS[e]?a.BARS[e].toString():""}},{key:"correctIndex",value:function(e,t){if(t===a.SET_A){var r=e.shift();return r<32?r+64:r-32}return t===a.SET_B?e.shift()-32:10*(e.shift()-48)+e.shift()-48}},{key:"next",value:function(e,r,n){if(!e.length)return{result:"",checksum:0};var o=void 0,i=void 0;if(e[0]>=200){i=e.shift()-105;var s=a.SWAP[i];void 0!==s?o=t.next(e,r+1,s):(n!==a.SET_A&&n!==a.SET_B||i!==a.SHIFT||(e[0]=n===a.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),o=t.next(e,r+1,n))}else i=t.correctIndex(e,n),o=t.next(e,r+1,n);var u=t.getBar(i),c=i*r;return{result:u+o.result,checksum:c+o.checksum}}}]),t}(i.default);t.default=f},"4ced":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,r,n){o(this,e),this.object=t,this.encodings=r,this.options=n}return n(e,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),e}();t.default=i},"4f50":function(e,t,r){var n=r("b760"),o=r("e538"),i=r("c8fe"),a=r("4359"),s=r("fa21"),u=r("d370"),c=r("6747"),l=r("dcbe"),f=r("0d24"),d=r("9520"),h=r("1a8c"),p=r("60ed"),g=r("73ac"),y=r("8adb"),_=r("8de2");function b(e,t,r,b,v,m,w){var E=y(e,r),O=y(t,r),x=w.get(O);if(x)n(e,r,x);else{var T=m?m(E,O,r+"",e,t,w):void 0,S=void 0===T;if(S){var A=c(O),j=!A&&f(O),P=!A&&!j&&g(O);T=O,A||j||P?c(E)?T=E:l(E)?T=a(E):j?(S=!1,T=o(O,!0)):P?(S=!1,T=i(O,!0)):T=[]:p(O)||u(O)?(T=E,u(E)?T=_(E):h(E)&&!d(E)||(T=s(O))):S=!1}S&&(w.set(O,T),v(T,O,b,m,w),w["delete"](O)),n(e,r,T)}}e.exports=b},"50d8":function(e,t){function r(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}e.exports=r},5261:function(e,t,r){"use strict";function n(e){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in t)t.hasOwnProperty(r)&&(r=t[r],"string"===typeof e[r]&&(e[r]=parseInt(e[r],10)));return"string"===typeof e["displayValue"]&&(e["displayValue"]="false"!=e["displayValue"]),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},5270:function(e,t,r){"use strict";var n=r("c532"),o=r("c401"),i=r("2e67"),a=r("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"54eb":function(e,t,r){var n=r("8eeb"),o=r("32f4");function i(e,t){return n(e,o(e),t)}e.exports=i},"55a3":function(e,t){function r(e){return this.__data__.has(e)}e.exports=r},5726:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("c243"),o=function(e,t,r){var o=e.split("").map((function(e,r){return n.BINARIES[t[r]]})).map((function(t,r){return t?t[e[r]]:""}));if(r){var i=e.length-1;o=o.map((function(e,t){return t<i?e+r:e}))}return o.join("")};t.default=o},"57a5":function(e,t,r){var n=r("91e9"),o=n(Object.keys,Object);e.exports=o},"583f":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("c243"),i=r("5726"),a=c(i),s=r("e762"),u=c(s);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){var t=e.split("").map((function(e){return+e})).reduce((function(e,t,r){return r%2?e+9*t:e+3*t}),0);return t%10},p=function(e){function t(e,r){return l(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return d(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var e=o.EAN5_STRUCTURE[h(this.data)];return{data:"1011"+(0,a.default)(this.data,e,"01"),text:this.text}}}]),t}(u.default);t.default=p},"585a":function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r("c8ba"))},"5b01":function(e,t,r){var n=r("8eeb"),o=r("ec69");function i(e,t){return e&&n(t,o(t),e)}e.exports=i},"5d89":function(e,t,r){var n=r("f8af");function o(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}e.exports=o},"5e2e":function(e,t,r){var n=r("28c9"),o=r("69d5"),i=r("b4c0"),a=r("fba5"),s=r("67ca");function u(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},"5f72":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__5f72__},6044:function(e,t,r){var n=r("0b07"),o=n(Object,"create");e.exports=o},"60ed":function(e,t,r){var n=r("3729"),o=r("2dcb"),i=r("1310"),a="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,l=u.hasOwnProperty,f=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=o(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==f}e.exports=d},6220:function(e,t,r){var n=r("b1d2"),o=r("b047"),i=r("99d3"),a=i&&i.isDate,s=a?o(a):n;e.exports=s},"62c5":function(e,t,r){"use strict";var n=r("ff84"),o=m(n),i=r("fd7c"),a=m(i),s=r("a2b0"),u=m(s),c=r("79f1"),l=m(c),f=r("b1d8"),d=m(f),h=r("5261"),p=m(h),g=r("bd8a"),y=m(g),_=r("dca2"),b=r("ca32"),v=m(b);function m(e){return e&&e.__esModule?e:{default:e}}var w=function(){},E=function(e,t,r){var n=new w;if("undefined"===typeof e)throw Error("No element to render on was provided.");return n._renderProperties=(0,d.default)(e),n._encodings=[],n._options=v.default,n._errorHandler=new y.default(n),"undefined"!==typeof t&&(r=r||{},r.format||(r.format=S()),n.options(r)[r.format](t,r).render()),n};for(var O in E.getModule=function(e){return o.default[e]},o.default)o.default.hasOwnProperty(O)&&x(o.default,O);function x(e,t){w.prototype[t]=w.prototype[t.toUpperCase()]=w.prototype[t.toLowerCase()]=function(r,n){var o=this;return o._errorHandler.wrapBarcodeCall((function(){n.text="undefined"===typeof n.text?void 0:""+n.text;var i=(0,a.default)(o._options,n);i=(0,p.default)(i);var s=e[t],u=T(r,s,i);return o._encodings.push(u),o}))}}function T(e,t,r){e=""+e;var n=new t(e,r);if(!n.valid())throw new _.InvalidInputException(n.constructor.name,e);var o=n.encode();o=(0,u.default)(o);for(var i=0;i<o.length;i++)o[i].options=(0,a.default)(r,o[i].options);return o}function S(){return o.default["CODE128"]?"CODE128":Object.keys(o.default)[0]}function A(e,t,r){t=(0,u.default)(t);for(var n=0;n<t.length;n++)t[n].options=(0,a.default)(r,t[n].options),(0,l.default)(t[n].options);(0,l.default)(r);var o=e.renderer,i=new o(e.element,t,r);i.render(),e.afterRender&&e.afterRender()}w.prototype.options=function(e){return this._options=(0,a.default)(this._options,e),this},w.prototype.blank=function(e){var t=new Array(e+1).join("0");return this._encodings.push({data:t}),this},w.prototype.init=function(){var e;if(this._renderProperties)for(var t in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){e=this._renderProperties[t];var r=(0,a.default)(this._options,e.options);"auto"==r.format&&(r.format=S()),this._errorHandler.wrapBarcodeCall((function(){var t=r.value,n=o.default[r.format.toUpperCase()],i=T(t,n,r);A(e,i,r)}))}},w.prototype.render=function(){if(!this._renderProperties)throw new _.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)A(this._renderProperties[e],this._encodings,this._options);else A(this._renderProperties,this._encodings,this._options);return this},w.prototype._defaults=v.default,"undefined"!==typeof window&&(window.JsBarcode=E),"undefined"!==typeof jQuery&&(jQuery.fn.JsBarcode=function(e,t){var r=[];return jQuery(this).each((function(){r.push(this)})),E(r,e,t)}),e.exports=E},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6747:function(e,t){var r=Array.isArray;e.exports=r},"67ca":function(e,t,r){var n=r("cb5a");function o(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}e.exports=o},"69d5":function(e,t,r){var n=r("cb5a"),o=Array.prototype,i=o.splice;function a(e){var t=this.__data__,r=n(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():i.call(t,r,1),--this.size,!0}e.exports=a},"6e53":function(e,t,r){"use strict";function n(e){for(var t=0,r=0;r<e.length;r++){var n=parseInt(e[r]);(r+e.length)%2===0?t+=n:t+=2*n%10+Math.floor(2*n/10)}return(10-t%10)%10}function o(e){for(var t=0,r=[2,3,4,5,6,7],n=0;n<e.length;n++){var o=parseInt(e[e.length-1-n]);t+=r[n%r.length]*o}return(11-t%11)%11}Object.defineProperty(t,"__esModule",{value:!0}),t.mod10=n,t.mod11=o},"6f24":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("4b23"),o=s(n),i=r("bb5d"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){if(u(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,a.default)(e),r));else n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return c(n)}return l(t,e),t}(o.default);t.default=f},"6f6c":function(e,t){var r=/\w*$/;function n(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}e.exports=n},"6fcd":function(e,t,r){var n=r("50d8"),o=r("d370"),i=r("6747"),a=r("0d24"),s=r("c098"),u=r("73ac"),c=Object.prototype,l=c.hasOwnProperty;function f(e,t){var r=i(e),c=!r&&o(e),f=!r&&!c&&a(e),d=!r&&!c&&!f&&u(e),h=r||c||f||d,p=h?n(e.length,String):[],g=p.length;for(var y in e)!t&&!l.call(e,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||p.push(y);return p}e.exports=f},"70b0":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("4b23"),i=s(o),a=r("f08e");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a.B_START_CHAR+e,r))}return l(t,e),n(t,[{key:"valid",value:function(){return new RegExp("^"+a.B_CHARS+"+$").test(this.data)}}]),t}(i.default);t.default=f},"721a":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("fd7c"),i=s(o),a=r("ab5b");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(t,r,n){u(this,e),this.canvas=t,this.encodings=r,this.options=n}return n(e,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,i.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var e=this.canvas.getContext("2d");e.save(),(0,a.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,a.getTotalWidthOfEncodings)(this.encodings),r=(0,a.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=r,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(e,t){var r,n=this.canvas.getContext("2d"),o=t.data;r="top"==e.textPosition?e.marginTop+e.fontSize+e.textMargin:e.marginTop,n.fillStyle=e.lineColor;for(var i=0;i<o.length;i++){var a=i*e.width+t.barcodePadding;"1"===o[i]?n.fillRect(a,r,e.width,e.height):o[i]&&n.fillRect(a,r,e.width,e.height*o[i])}}},{key:"drawCanvasText",value:function(e,t){var r,n,o=this.canvas.getContext("2d"),i=e.fontOptions+" "+e.fontSize+"px "+e.font;e.displayValue&&(n="top"==e.textPosition?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize,o.font=i,"left"==e.textAlign||t.barcodePadding>0?(r=0,o.textAlign="left"):"right"==e.textAlign?(r=t.width-1,o.textAlign="right"):(r=t.width/2,o.textAlign="center"),o.fillText(t.text,r,n))}},{key:"moveCanvasDrawing",value:function(e){var t=this.canvas.getContext("2d");t.translate(e.width,0)}},{key:"restoreCanvas",value:function(){var e=this.canvas.getContext("2d");e.restore()}}]),e}();t.default=c},"72af":function(e,t,r){var n=r("99cd"),o=n();e.exports=o},"72f0":function(e,t){function r(e){return function(){return e}}e.exports=r},"73ac":function(e,t,r){var n=r("743f"),o=r("b047"),i=r("99d3"),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},"743f":function(e,t,r){var n=r("3729"),o=r("b218"),i=r("1310"),a="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",g="[object RegExp]",y="[object Set]",_="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",m="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",O="[object Int8Array]",x="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",j="[object Uint16Array]",P="[object Uint32Array]",I={};function C(e){return i(e)&&o(e.length)&&!!I[n(e)]}I[w]=I[E]=I[O]=I[x]=I[T]=I[S]=I[A]=I[j]=I[P]=!0,I[a]=I[s]=I[v]=I[u]=I[m]=I[c]=I[l]=I[f]=I[d]=I[h]=I[p]=I[g]=I[y]=I[_]=I[b]=!1,e.exports=C},"752b":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("721a"),o=c(n),i=r("be5e"),a=c(i),s=r("4ced"),u=c(s);function c(e){return e&&e.__esModule?e:{default:e}}t.default={CanvasRenderer:o.default,SVGRenderer:a.default,ObjectRenderer:u.default}},7530:function(e,t,r){var n=r("1a8c"),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},"76dd":function(e,t,r){var n=r("ce86");function o(e){return null==e?"":n(e)}e.exports=o},7948:function(e,t){function r(e,t){var r=-1,n=null==e?0:e.length,o=Array(n);while(++r<n)o[r]=t(e[r],r,e);return o}e.exports=r},"79bc":function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"Map");e.exports=i},"79f1":function(e,t,r){"use strict";function n(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},"7a48":function(e,t,r){var n=r("6044"),o=Object.prototype,i=o.hasOwnProperty;function a(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}e.exports=a},"7a77":function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},"7aac":function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b83":function(e,t,r){var n=r("7c64"),o=r("93ed"),i=r("2478"),a=r("a524"),s=r("1fc8");function u(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},"7c64":function(e,t,r){var n=r("e24b"),o=r("5e2e"),i=r("79bc");function a(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}e.exports=a},"7cb9":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pharmacode=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.number=parseInt(e,10),n}return c(t,e),n(t,[{key:"encode",value:function(){var e=this.number,t="";while(!isNaN(e)&&0!=e)e%2===0?(t="11100"+t,e=(e-2)/2):(t="100"+t,e=(e-1)/2);return t=t.slice(0,-2),{data:t,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(i.default);t.pharmacode=l},"7d1f":function(e,t,r){var n=r("087d"),o=r("6747");function i(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}e.exports=i},"7e64":function(e,t,r){var n=r("5e2e"),o=r("efb6"),i=r("2fcc"),a=r("802a"),s=r("55a3"),u=r("d02c");function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype["delete"]=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},"802a":function(e,t){function r(e){return this.__data__.get(e)}e.exports=r},8057:function(e,t){function r(e,t){var r=-1,n=null==e?0:e.length;while(++r<n)if(!1===t(e[r],r,e))break;return e}e.exports=r},"805f":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("124f"),o=a(n),i=r("6e53");function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),e+=(0,i.mod11)(e),e+=(0,i.mod10)(e),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),t}(o.default);t.default=l},8237:function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__; /** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===typeof module&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var r=OUTPUT_TYPES[t];e[r]=createOutputMethod(r)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"===typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null===e||void 0===e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"!==r)throw ERROR;if(null===e)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw ERROR;t=!0}var n,o,i=0,a=e.length,s=this.blocks,u=this.buffer8;while(i<a){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)u[o++]=e[i];else for(o=this.start;i<a&&o<64;++i)s[o>>2]|=e[i]<<SHIFT[3&o++];else if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)n=e.charCodeAt(i),n<128?u[o++]=n:n<2048?(u[o++]=192|n>>6,u[o++]=128|63&n):n<55296||n>=57344?(u[o++]=224|n>>12,u[o++]=128|n>>6&63,u[o++]=128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),u[o++]=240|n>>18,u[o++]=128|n>>12&63,u[o++]=128|n>>6&63,u[o++]=128|63&n);else for(o=this.start;i<a&&o<64;++i)n=e.charCodeAt(i),n<128?s[o>>2]|=n<<SHIFT[3&o++]:n<2048?(s[o>>2]|=(192|n>>6)<<SHIFT[3&o++],s[o>>2]|=(128|63&n)<<SHIFT[3&o++]):n<55296||n>=57344?(s[o>>2]|=(224|n>>12)<<SHIFT[3&o++],s[o>>2]|=(128|n>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&n)<<SHIFT[3&o++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),s[o>>2]|=(240|n>>18)<<SHIFT[3&o++],s[o>>2]|=(128|n>>12&63)<<SHIFT[3&o++],s[o>>2]|=(128|n>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&n)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,r,n,o,i,a=this.blocks;this.first?(e=a[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,n=(-1732584194^2004318071&e)+a[1]-117830708,n=(n<<12|n>>>20)+e<<0,r=(-271733879^n&(-271733879^e))+a[2]-1126478375,r=(r<<17|r>>>15)+n<<0,t=(e^r&(n^e))+a[3]-1316259209,t=(t<<22|t>>>10)+r<<0):(e=this.h0,t=this.h1,r=this.h2,n=this.h3,e+=(n^t&(r^n))+a[0]-680876936,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[1]-389564586,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[2]+606105819,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[3]-1044525330,t=(t<<22|t>>>10)+r<<0),e+=(n^t&(r^n))+a[4]-176418897,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[5]+1200080426,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[6]-1473231341,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[7]-45705983,t=(t<<22|t>>>10)+r<<0,e+=(n^t&(r^n))+a[8]+1770035416,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[9]-1958414417,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[10]-42063,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[11]-1990404162,t=(t<<22|t>>>10)+r<<0,e+=(n^t&(r^n))+a[12]+1804603682,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[13]-40341101,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[14]-1502002290,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[15]+1236535329,t=(t<<22|t>>>10)+r<<0,e+=(r^n&(t^r))+a[1]-165796510,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[6]-1069501632,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[11]+643717713,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[0]-373897302,t=(t<<20|t>>>12)+r<<0,e+=(r^n&(t^r))+a[5]-701558691,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[10]+38016083,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[15]-660478335,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[4]-405537848,t=(t<<20|t>>>12)+r<<0,e+=(r^n&(t^r))+a[9]+568446438,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[14]-1019803690,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[3]-187363961,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[8]+1163531501,t=(t<<20|t>>>12)+r<<0,e+=(r^n&(t^r))+a[13]-1444681467,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[2]-51403784,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[7]+1735328473,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[12]-1926607734,t=(t<<20|t>>>12)+r<<0,o=t^r,e+=(o^n)+a[5]-378558,e=(e<<4|e>>>28)+t<<0,n+=(o^e)+a[8]-2022574463,n=(n<<11|n>>>21)+e<<0,i=n^e,r+=(i^t)+a[11]+1839030562,r=(r<<16|r>>>16)+n<<0,t+=(i^r)+a[14]-35309556,t=(t<<23|t>>>9)+r<<0,o=t^r,e+=(o^n)+a[1]-1530992060,e=(e<<4|e>>>28)+t<<0,n+=(o^e)+a[4]+1272893353,n=(n<<11|n>>>21)+e<<0,i=n^e,r+=(i^t)+a[7]-155497632,r=(r<<16|r>>>16)+n<<0,t+=(i^r)+a[10]-1094730640,t=(t<<23|t>>>9)+r<<0,o=t^r,e+=(o^n)+a[13]+681279174,e=(e<<4|e>>>28)+t<<0,n+=(o^e)+a[0]-358537222,n=(n<<11|n>>>21)+e<<0,i=n^e,r+=(i^t)+a[3]-722521979,r=(r<<16|r>>>16)+n<<0,t+=(i^r)+a[6]+76029189,t=(t<<23|t>>>9)+r<<0,o=t^r,e+=(o^n)+a[9]-640364487,e=(e<<4|e>>>28)+t<<0,n+=(o^e)+a[12]-421815835,n=(n<<11|n>>>21)+e<<0,i=n^e,r+=(i^t)+a[15]+530742520,r=(r<<16|r>>>16)+n<<0,t+=(i^r)+a[2]-995338651,t=(t<<23|t>>>9)+r<<0,e+=(r^(t|~n))+a[0]-198630844,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[7]+1126891415,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[14]-1416354905,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[5]-57434055,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~n))+a[12]+1700485571,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[3]-1894986606,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[10]-1051523,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[1]-2054922799,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~n))+a[8]+1873313359,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[15]-30611744,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[6]-1560198380,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[13]+1309151649,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~n))+a[4]-145523070,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[11]-1120210379,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[2]+718787259,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[9]-343485551,t=(t<<21|t>>>11)+r<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=r-1732584194<<0,this.h3=n+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+r<<0,this.h3=this.h3+n<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,r,n="",o=this.array(),i=0;i<15;)e=o[i++],t=o[i++],r=o[i++],n+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return e=o[i],n+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"==",n};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("4362"),__webpack_require__("c8ba"))},"83b9":function(e,t,r){"use strict";var n=r("d925"),o=r("e683");e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},"852e":function(e,t,r){(function(t,r){e.exports=r()})(0,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var t={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function r(t,n){function o(r,o,i){if("undefined"!==typeof document){i=e({},n,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=r+"="+t.write(o,r)+a}}function i(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=t.read(a,s),e===s)break}catch(u){}}return e?n[e]:n}}return Object.create({set:o,get:i,remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(t){return r(this.converter,e({},this.attributes,t))},withConverter:function(t){return r(e({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}var n=r(t,{path:"/"});return n}))},"85e3":function(e,t){function r(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}e.exports=r},"872a":function(e,t,r){var n=r("3b4a");function o(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}e.exports=o},8861:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("124f"),o=a(n),i=r("6e53");function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),e+=(0,i.mod10)(e),e+=(0,i.mod10)(e),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),t}(o.default);t.default=l},8875:function(e,t,r){var n,o,i;(function(r,a){o=[],n=a,i="function"===typeof n?n.apply(t,o):n,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(h.stack)||a.exec(h.stack),u=s&&s[1]||!1,c=s&&s[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");u===l&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===u)return f[d];if(u===l&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}return null}}return e}))},"89a2":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r("c243"),a=r("bdfe"),s=u(a);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){var t=e.substr(0,12).split("").map((function(e){return+e})).reduce((function(e,t,r){return r%2?e+3*t:e+t}),0);return(10-t%10)%10},h=function(e){function t(e,r){c(this,t),-1!==e.search(/^[0-9]{12}$/)&&(e+=d(e));var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.lastChar=r.lastChar,n}return f(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===d(this.data)}},{key:"leftText",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var e=this.data.substr(1,6),r=i.EAN13_STRUCTURE[this.data[0]];return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,e,r)}},{key:"rightText",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var e=this.data.substr(7,6);return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,e,"RRRRRR")}},{key:"encodeGuarded",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(e.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:"00"}),e.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),t}(s.default);t.default=h},"8adb":function(e,t){function r(e,t){if("__proto__"!=t)return e[t]}e.exports=r},"8de2":function(e,t,r){var n=r("8eeb"),o=r("9934");function i(e){return n(e,o(e))}e.exports=i},"8df4":function(e,t,r){"use strict";var n=r("7a77");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},"8e51":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSI1110=t.MSI1010=t.MSI11=t.MSI10=t.MSI=void 0;var n=r("124f"),o=h(n),i=r("4727"),a=h(i),s=r("4461"),u=h(s),c=r("8861"),l=h(c),f=r("805f"),d=h(f);function h(e){return e&&e.__esModule?e:{default:e}}t.MSI=o.default,t.MSI10=a.default,t.MSI11=u.default,t.MSI1010=l.default,t.MSI1110=d.default},"8eeb":function(e,t,r){var n=r("32b3"),o=r("872a");function i(e,t,r,i){var a=!r;r||(r={});var s=-1,u=t.length;while(++s<u){var c=t[s],l=i?i(r[c],e[c],c,r,e):void 0;void 0===l&&(l=e[c]),a?o(r,c,l):n(r,c,l)}return r}e.exports=i},"91e9":function(e,t){function r(e,t){return function(r){return e(t(r))}}e.exports=r},"93ed":function(e,t,r){var n=r("4245");function o(e){var t=n(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=o},9520:function(e,t,r){var n=r("3729"),o=r("1a8c"),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function c(e){if(!o(e))return!1;var t=n(e);return t==a||t==s||t==i||t==u}e.exports=c},9638:function(e,t){function r(e,t){return e===t||e!==e&&t!==t}e.exports=r},"96f3":function(e,t){var r=Object.prototype,n=r.hasOwnProperty;function o(e,t){return null!=e&&n.call(e,t)}e.exports=o},9934:function(e,t,r){var n=r("6fcd"),o=r("41c3"),i=r("30c9");function a(e){return i(e)?n(e,!0):o(e)}e.exports=a},"99cd":function(e,t){function r(e){return function(t,r,n){var o=-1,i=Object(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++o];if(!1===r(i[u],u,i))break}return t}}e.exports=r},"99d3":function(e,t,r){(function(e){var n=r("585a"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a&&n.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=u}).call(this,r("62e4")(e))},"9aff":function(e,t,r){var n=r("9638"),o=r("30c9"),i=r("c098"),a=r("1a8c");function s(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}e.exports=s},"9e69":function(e,t,r){var n=r("2b3e"),o=n.Symbol;e.exports=o},"9ffa":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITF14=t.ITF=void 0;var n=r("3c7c"),o=s(n),i=r("07df"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}t.ITF=o.default,t.ITF14=a.default},a029:function(e,t,r){var n=r("087d"),o=r("2dcb"),i=r("32f4"),a=r("d327"),s=Object.getOwnPropertySymbols,u=s?function(e){var t=[];while(e)n(t,i(e)),e=o(e);return t}:a;e.exports=u},a2b0:function(e,t,r){"use strict";function n(e){var t=[];function r(e){if(Array.isArray(e))for(var n=0;n<e.length;n++)r(e[n]);else e.text=e.text||"",e.data=e.data||"",t.push(e)}return r(e),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},a2db:function(e,t,r){var n=r("9e69"),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}e.exports=a},a454:function(e,t,r){var n=r("72f0"),o=r("3b4a"),i=r("cd9d"),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},a524:function(e,t,r){var n=r("4245");function o(e){return n(this,e).has(e)}e.exports=o},a5d2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("c243"),i=r("5726"),a=c(i),s=r("e762"),u=c(s);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(e,r){return l(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return d(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var e=o.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,a.default)(this.data,e,"01"),text:this.text}}}]),t}(u.default);t.default=h},a994:function(e,t,r){var n=r("7d1f"),o=r("32f4"),i=r("ec69");function a(e){return n(e,i,o)}e.exports=a},aab3:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("5261"),o=s(n),i=r("ca32"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){var t={};for(var r in a.default)a.default.hasOwnProperty(r)&&(e.hasAttribute("jsbarcode-"+r.toLowerCase())&&(t[r]=e.getAttribute("jsbarcode-"+r.toLowerCase())),e.hasAttribute("data-"+r.toLowerCase())&&(t[r]=e.getAttribute("data-"+r.toLowerCase())));return t["value"]=e.getAttribute("jsbarcode-value")||e.getAttribute("data-value"),t=(0,o.default)(t),t}t.default=u},ab5b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTotalWidthOfEncodings=t.calculateEncodingAttributes=t.getBarcodePadding=t.getEncodingHeight=t.getMaximumHeightOfEncodings=void 0;var n=r("fd7c"),o=i(n);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function s(e,t,r){if(r.displayValue&&t<e){if("center"==r.textAlign)return Math.floor((e-t)/2);if("left"==r.textAlign)return 0;if("right"==r.textAlign)return Math.floor(e-t)}return 0}function u(e,t,r){for(var n=0;n<e.length;n++){var i,u=e[n],c=(0,o.default)(t,u.options);i=c.displayValue?f(u.text,c,r):0;var l=u.data.length*c.width;u.width=Math.ceil(Math.max(i,l)),u.height=a(u,c),u.barcodePadding=s(i,l,c)}}function c(e){for(var t=0,r=0;r<e.length;r++)t+=e[r].width;return t}function l(e){for(var t=0,r=0;r<e.length;r++)e[r].height>t&&(t=e[r].height);return t}function f(e,t,r){var n;if(r)n=r;else{if("undefined"===typeof document)return 0;n=document.createElement("canvas").getContext("2d")}n.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var o=n.measureText(e);if(!o)return 0;var i=o.width;return i}t.getMaximumHeightOfEncodings=l,t.getEncodingHeight=a,t.getBarcodePadding=s,t.calculateEncodingAttributes=u,t.getTotalWidthOfEncodings=c},b047:function(e,t){function r(e){return function(t){return e(t)}}e.exports=r},b1d2:function(e,t,r){var n=r("3729"),o=r("1310"),i="[object Date]";function a(e){return o(e)&&n(e)==i}e.exports=a},b1d8:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r("aab3"),i=c(o),a=r("752b"),s=c(a),u=r("dca2");function c(e){return e&&e.__esModule?e:{default:e}}function l(e){if("string"===typeof e)return f(e);if(Array.isArray(e)){for(var t=[],r=0;r<e.length;r++)t.push(l(e[r]));return t}if("undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLImageElement)return d(e);if(e&&e.nodeName&&"svg"===e.nodeName.toLowerCase()||"undefined"!==typeof SVGElement&&e instanceof SVGElement)return{element:e,options:(0,i.default)(e),renderer:s.default.SVGRenderer};if("undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement)return{element:e,options:(0,i.default)(e),renderer:s.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:s.default.CanvasRenderer};if(e&&"object"===("undefined"===typeof e?"undefined":n(e))&&!e.nodeName)return{element:e,renderer:s.default.ObjectRenderer};throw new u.InvalidElementException}function f(e){var t=document.querySelectorAll(e);if(0!==t.length){for(var r=[],n=0;n<t.length;n++)r.push(l(t[n]));return r}}function d(e){var t=document.createElement("canvas");return{element:t,options:(0,i.default)(e),renderer:s.default.CanvasRenderer,afterRender:function(){e.setAttribute("src",t.toDataURL())}}}t.default=l},b218:function(e,t){var r=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}e.exports=n},b4c0:function(e,t,r){var n=r("cb5a");function o(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}e.exports=o},b50d:function(e,t,r){"use strict";var n=r("c532"),o=r("467f"),i=r("7aac"),a=r("30b5"),s=r("83b9"),u=r("c345"),c=r("3934"),l=r("2d83");e.exports=function(e){return new Promise((function(t,r){var f=e.data,d=e.headers;n.isFormData(f)&&delete d["Content-Type"],(n.isBlob(f)||n.isFile(f))&&f.type&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=unescape(encodeURIComponent(e.auth.password))||"";d.Authorization="Basic "+btoa(p+":"+g)}var y=s(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,i=e.responseType&&"text"!==e.responseType?h.response:h.responseText,a={data:i,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};o(t,r,a),h=null}},h.onabort=function(){h&&(r(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var _=(e.withCredentials||c(y))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;_&&(d[e.xsrfHeaderName]=_)}if("setRequestHeader"in h&&n.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),r(e),h=null)})),f||(f=null),h.send(f)}))}},b5a7:function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"DataView");e.exports=i},b760:function(e,t,r){var n=r("872a"),o=r("9638");function i(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}e.exports=i},bb5d:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("f08e"),o=function(e){return e.match(new RegExp("^"+n.A_CHARS+"*"))[0].length},i=function(e){return e.match(new RegExp("^"+n.B_CHARS+"*"))[0].length},a=function(e){return e.match(new RegExp("^"+n.C_CHARS+"*"))[0]};function s(e,t){var r=t?n.A_CHARS:n.B_CHARS,o=e.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+u(e.substring(o[1].length));var i=e.match(new RegExp("^"+r+"+"))[0];return i.length===e.length?e:i+String.fromCharCode(t?205:206)+s(e.substring(i.length),!t)}function u(e){var t=a(e),r=t.length;if(r===e.length)return e;e=e.substring(r);var n=o(e)>=i(e);return t+String.fromCharCode(n?206:205)+s(e,n)}t.default=function(e){var t=void 0,r=a(e).length;if(r>=2)t=n.C_START_CHAR+u(e);else{var c=o(e)>i(e);t=(c?n.A_START_CHAR:n.B_START_CHAR)+s(e,c)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(e,t){return String.fromCharCode(203)+t}))}},bbc0:function(e,t,r){var n=r("6044"),o="__lodash_hash_undefined__",i=Object.prototype,a=i.hasOwnProperty;function s(e){var t=this.__data__;if(n){var r=t[e];return r===o?void 0:r}return a.call(t,e)?t[e]:void 0}e.exports=s},bc3a:function(e,t,r){e.exports=r("cee4")},bd8a:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t){o(this,e),this.api=t}return n(e,[{key:"handleCatch",value:function(e){if("InvalidInputException"!==e.name)throw e;if(this.api._options.valid===this.api._defaults.valid)throw e.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(r){return this.handleCatch(r),this.api}}}]),e}();t.default=i},bdfe:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("c243"),i=r("5726"),a=c(i),s=r("e762"),u=c(s);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(e,r){l(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.fontSize=!r.flat&&r.fontSize>10*r.width?10*r.width:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return d(t,e),n(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(e,t){return this.text.substr(e,t)}},{key:"leftEncode",value:function(e,t){return(0,a.default)(e,t)}},{key:"rightText",value:function(e,t){return this.text.substr(e,t)}},{key:"rightEncode",value:function(e,t){return(0,a.default)(e,t)}},{key:"encodeGuarded",value:function(){var e={fontSize:this.fontSize},t={height:this.guardHeight};return[{data:o.SIDE_BIN,options:t},{data:this.leftEncode(),text:this.leftText(),options:e},{data:o.MIDDLE_BIN,options:t},{data:this.rightEncode(),text:this.rightText(),options:e},{data:o.SIDE_BIN,options:t}]}},{key:"encodeFlat",value:function(){var e=[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.SIDE_BIN];return{data:e.join(""),text:this.text}}}]),t}(u.default);t.default=h},be5e:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("fd7c"),i=s(o),a=r("ab5b");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c="http://www.w3.org/2000/svg",l=function(){function e(t,r,n){u(this,e),this.svg=t,this.encodings=r,this.options=n,this.document=n.xmlDocument||document}return n(e,[{key:"render",value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var r=this.encodings[t],n=(0,i.default)(this.options,r.options),o=this.createGroup(e,n.marginTop,this.svg);this.setGroupOptions(o,n),this.drawSvgBarcode(o,n,r),this.drawSVGText(o,n,r),e+=r.width}}},{key:"prepareSVG",value:function(){while(this.svg.firstChild)this.svg.removeChild(this.svg.firstChild);(0,a.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,a.getTotalWidthOfEncodings)(this.encodings),t=(0,a.getMaximumHeightOfEncodings)(this.encodings),r=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(r,t),this.options.background&&this.drawRect(0,0,r,t,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(e,t,r){var n,o=r.data;n="top"==t.textPosition?t.fontSize+t.textMargin:0;for(var i=0,a=0,s=0;s<o.length;s++)a=s*t.width+r.barcodePadding,"1"===o[s]?i++:i>0&&(this.drawRect(a-t.width*i,n,t.width*i,t.height,e),i=0);i>0&&this.drawRect(a-t.width*(i-1),n,t.width*i,t.height,e)}},{key:"drawSVGText",value:function(e,t,r){var n,o,i=this.document.createElementNS(c,"text");t.displayValue&&(i.setAttribute("style","font:"+t.fontOptions+" "+t.fontSize+"px "+t.font),o="top"==t.textPosition?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,"left"==t.textAlign||r.barcodePadding>0?(n=0,i.setAttribute("text-anchor","start")):"right"==t.textAlign?(n=r.width-1,i.setAttribute("text-anchor","end")):(n=r.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",n),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(r.text)),e.appendChild(i))}},{key:"setSvgAttributes",value:function(e,t){var r=this.svg;r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("x","0px"),r.setAttribute("y","0px"),r.setAttribute("viewBox","0 0 "+e+" "+t),r.setAttribute("xmlns",c),r.setAttribute("version","1.1"),r.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(e,t,r){var n=this.document.createElementNS(c,"g");return n.setAttribute("transform","translate("+e+", "+t+")"),r.appendChild(n),n}},{key:"setGroupOptions",value:function(e,t){e.setAttribute("style","fill:"+t.lineColor+";")}},{key:"drawRect",value:function(e,t,r,n,o){var i=this.document.createElementNS(c,"rect");return i.setAttribute("x",e),i.setAttribute("y",t),i.setAttribute("width",r),i.setAttribute("height",n),o.appendChild(i),i}}]),e}();t.default=l},be98:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("5726"),i=c(o),a=r("e762"),s=c(a),u=r("e8b2");function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],p=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],g=function(e){function t(e,r){l(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(n.isValid=!1,-1!==e.search(/^[0-9]{6}$/))n.middleDigits=e,n.upcA=y(e,"0"),n.text=r.text||""+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(-1===e.search(/^[01][0-9]{7}$/))return f(n);if(n.middleDigits=e.substring(1,e.length-1),n.upcA=y(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]!==e[e.length-1])return f(n);n.isValid=!0}return n.displayValue=r.displayValue,r.fontSize>10*r.width?n.fontSize=10*r.width:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return d(t,e),n(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=this.encodeMiddleDigits(),e+="010101",{data:e,text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101",options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),e}},{key:"encodeMiddleDigits",value:function(){var e=this.upcA[0],t=this.upcA[this.upcA.length-1],r=p[parseInt(t)][parseInt(e)];return(0,i.default)(this.middleDigits,r)}}]),t}(s.default);function y(e,t){for(var r=parseInt(e[e.length-1]),n=h[r],o="",i=0,a=0;a<n.length;a++){var s=n[a];o+="X"===s?e[i++]:s}return o=""+t+o,""+o+(0,u.checksum)(o)}t.default=g},c098:function(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(e,t){var o=typeof e;return t=null==t?r:t,!!t&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<t}e.exports=o},c17b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codabar=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){s(this,t),0===e.search(/^[0-9\-\$\:\.\+\/]+$/)&&(e="A"+e+"A");var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return c(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var e=[],t=this.getEncodings(),r=0;r<this.data.length;r++)e.push(t[this.data.charAt(r)]),r!==this.data.length-1&&e.push("0");return{text:this.text,data:e.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),t}(i.default);t.codabar=l},c1c9:function(e,t,r){var n=r("a454"),o=r("f3c1"),i=o(n);e.exports=i},c243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SIDE_BIN="101",t.MIDDLE_BIN="01010",t.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},t.EAN2_STRUCTURE=["LL","LG","GL","GG"],t.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],t.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},c2b6:function(e,t,r){var n=r("f8af"),o=r("5d89"),i=r("6f6c"),a=r("a2db"),s=r("c8fe"),u="[object Boolean]",c="[object Date]",l="[object Map]",f="[object Number]",d="[object RegExp]",h="[object Set]",p="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",_="[object DataView]",b="[object Float32Array]",v="[object Float64Array]",m="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",x="[object Uint8ClampedArray]",T="[object Uint16Array]",S="[object Uint32Array]";function A(e,t,r){var A=e.constructor;switch(t){case y:return n(e);case u:case c:return new A(+e);case _:return o(e,r);case b:case v:case m:case w:case E:case O:case x:case T:case S:return s(e,r);case l:return new A;case f:case p:return new A(e);case d:return i(e);case h:return new A;case g:return a(e)}}e.exports=A},c345:function(e,t,r){"use strict";var n=r("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},c3fc:function(e,t,r){var n=r("42a2"),o=r("1310"),i="[object Set]";function a(e){return o(e)&&n(e)==i}e.exports=a},c401:function(e,t,r){"use strict";var n=r("c532");e.exports=function(e,t,r){return n.forEach(r,(function(r){e=r(e,t)})),e}},c532:function(e,t,r){"use strict";var n=r("1d2b"),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function u(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===o.call(e)}function y(e){return"[object File]"===o.call(e)}function _(e){return"[object Blob]"===o.call(e)}function b(e){return"[object Function]"===o.call(e)}function v(e){return h(e)&&b(e.pipe)}function m(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function E(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function O(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function x(){var e={};function t(t,r){p(e[r])&&p(t)?e[r]=x(e[r],t):p(t)?e[r]=x({},t):i(t)?e[r]=t.slice():e[r]=t}for(var r=0,n=arguments.length;r<n;r++)O(arguments[r],t);return e}function T(e,t,r){return O(t,(function(t,o){e[o]=r&&"function"===typeof t?n(t,r):t})),e}function S(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:i,isArrayBuffer:u,isBuffer:s,isFormData:c,isArrayBufferView:l,isString:f,isNumber:d,isObject:h,isPlainObject:p,isUndefined:a,isDate:g,isFile:y,isBlob:_,isFunction:b,isStream:v,isURLSearchParams:m,isStandardBrowserEnv:E,forEach:O,merge:x,extend:T,trim:w,stripBOM:S}},c869:function(e,t,r){var n=r("0b07"),o=r("2b3e"),i=n(o,"Set");e.exports=i},c87c:function(e,t){var r=Object.prototype,n=r.hasOwnProperty;function o(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}e.exports=o},c8af:function(e,t,r){"use strict";var n=r("c532");e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},c8fe:function(e,t,r){var n=r("f8af");function o(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}e.exports=o},ca32:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};t.default=n},cb5a:function(e,t,r){var n=r("9638");function o(e,t){var r=e.length;while(r--)if(n(e[r][0],t))return r;return-1}e.exports=o},cc45:function(e,t,r){var n=r("1a2d"),o=r("b047"),i=r("99d3"),a=i&&i.isMap,s=a?o(a):n;e.exports=s},cd9d:function(e,t){function r(e){return e}e.exports=r},ce86:function(e,t,r){var n=r("9e69"),o=r("7948"),i=r("6747"),a=r("ffd6"),s=1/0,u=n?n.prototype:void 0,c=u?u.toString:void 0;function l(e){if("string"==typeof e)return e;if(i(e))return o(e,l)+"";if(a(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=l},cee4:function(e,t,r){"use strict";var n=r("c532"),o=r("1d2b"),i=r("0a06"),a=r("4a7b"),s=r("2444");function u(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var c=u(s);c.Axios=i,c.create=function(e){return u(a(c.defaults,e))},c.Cancel=r("7a77"),c.CancelToken=r("8df4"),c.isCancel=r("2e67"),c.all=function(e){return Promise.all(e)},c.spread=r("0df6"),e.exports=c,e.exports.default=c},d02c:function(e,t,r){var n=r("5e2e"),o=r("79bc"),i=r("7b83"),a=200;function s(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(e,t),this.size=r.size,this}e.exports=s},d327:function(e,t){function r(){return[]}e.exports=r},d370:function(e,t,r){var n=r("253c"),o=r("1310"),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},d7ee:function(e,t,r){var n=r("c3fc"),o=r("b047"),i=r("99d3"),a=i&&i.isSet,s=a?o(a):n;e.exports=s},d925:function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},da03:function(e,t,r){var n=r("2b3e"),o=n["__core-js_shared__"];e.exports=o},da3d:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CODE128C=t.CODE128B=t.CODE128A=t.CODE128=void 0;var n=r("6f24"),o=f(n),i=r("e8c9"),a=f(i),s=r("70b0"),u=f(s),c=r("ed3f"),l=f(c);function f(e){return e&&e.__esModule?e:{default:e}}t.CODE128=o.default,t.CODE128A=a.default,t.CODE128B=u.default,t.CODE128C=l.default},dc57:function(e,t){var r=Function.prototype,n=r.toString;function o(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=o},dca2:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(e,r){n(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="InvalidInputException",i.symbology=e,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return i(t,e),t}(Error),s=function(e){function t(){n(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="InvalidElementException",e.message="Not supported type to render on",e}return i(t,e),t}(Error),u=function(e){function t(){n(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="NoElementException",e.message="No element to render on.",e}return i(t,e),t}(Error);t.InvalidInputException=a,t.InvalidElementException=s,t.NoElementException=u},dcbe:function(e,t,r){var n=r("30c9"),o=r("1310");function i(e){return o(e)&&n(e)}e.exports=i},df7c:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){r=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":e.slice(r,n)}function o(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,n="/"===a.charAt(0))}return t=r(o(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),a="/"===i(e,-1);return e=r(o(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&a&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var r=e.length-1;r>=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}var c=[];for(u=s;u<o.length;u++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=n(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(o=!1,n=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){r=a+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("4362"))},e031:function(e,t,r){var n=r("f909"),o=r("1a8c");function i(e,t,r,a,s,u){return o(e)&&o(t)&&(u.set(t,e),n(e,t,void 0,i,u),u["delete"](t)),e}e.exports=i},e24b:function(e,t,r){var n=r("49f4"),o=r("1efc"),i=r("bbc0"),a=r("7a48"),s=r("2524");function u(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},e2c0:function(e,t,r){var n=r("e2e4"),o=r("d370"),i=r("6747"),a=r("c098"),s=r("b218"),u=r("f4d6");function c(e,t,r){t=n(t,e);var c=-1,l=t.length,f=!1;while(++c<l){var d=u(t[c]);if(!(f=null!=e&&r(e,d)))break;e=e[d]}return f||++c!=l?f:(l=null==e?0:e.length,!!l&&s(l)&&a(d,l)&&(i(e)||o(e)))}e.exports=c},e2e4:function(e,t,r){var n=r("6747"),o=r("f608"),i=r("18d8"),a=r("76dd");function s(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}e.exports=s},e380:function(e,t,r){var n=r("7b83"),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},e538:function(e,t,r){(function(e){var n=r("2b3e"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var r=e.length,n=u?u(r):new e.constructor(r);return e.copy(n),n}e.exports=c}).call(this,r("62e4")(e))},e683:function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e762:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function e(t,r){n(this,e),this.data=t,this.text=r.text||t,this.options=r};t.default=o},e8b2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.checksum=h;var o=r("5726"),i=u(o),a=r("e762"),s=u(a);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e,r){c(this,t),-1!==e.search(/^[0-9]{11}$/)&&(e+=h(e));var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.displayValue=r.displayValue,r.fontSize>10*r.width?n.fontSize=10*r.width:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return f(t,e),n(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==h(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=(0,i.default)(this.data.substr(0,6),"LLLLLL"),e+="01010",e+=(0,i.default)(this.data.substr(6,6),"RRRRRR"),e+="101",{data:e,text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101"+(0,i.default)(this.data[0],"L"),options:{height:this.guardHeight}}),e.push({data:(0,i.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:"01010",options:{height:this.guardHeight}}),e.push({data:(0,i.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,i.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),e}}]),t}(s.default);function h(e){var t,r=0;for(t=1;t<11;t+=2)r+=parseInt(e[t]);for(t=0;t<11;t+=2)r+=3*parseInt(e[t]);return(10-r%10)%10}t.default=d},e8c9:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("4b23"),i=s(o),a=r("f08e");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a.A_START_CHAR+e,r))}return l(t,e),n(t,[{key:"valid",value:function(){return new RegExp("^"+a.A_CHARS+"+$").test(this.data)}}]),t}(i.default);t.default=f},eac5:function(e,t){var r=Object.prototype;function n(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||r;return e===n}e.exports=n},ec69:function(e,t,r){var n=r("6fcd"),o=r("03dd"),i=r("30c9");function a(e){return i(e)?n(e):o(e)}e.exports=a},ec8c:function(e,t){function r(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}e.exports=r},ed27:function(e){e.exports=JSON.parse('{"name":"hi-eap","version":"1.2.87","description":"A utils Library for hi-eap. Smart Client Platform","main":"eap.umd.min.js","homepage":"http://hieap.cn","scripts":{"build:eap":"cross-env NODE_LIB=eap vue-cli-service build --target lib --name eap --dest hi-eap ./src/eap/index.js"},"dependencies":{},"devDependencies":{},"eslintIgnore":["**/*.md"]}')},ed3f:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("4b23"),i=s(o),a=r("f08e");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,r){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a.C_START_CHAR+e,r))}return l(t,e),n(t,[{key:"valid",value:function(){return new RegExp("^"+a.C_CHARS+"+$").test(this.data)}}]),t}(i.default);t.default=f},efb6:function(e,t,r){var n=r("5e2e");function o(){this.__data__=new n,this.size=0}e.exports=o},f08e:function(e,t,r){"use strict";var n;function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0});var i=t.SET_A=0,a=t.SET_B=1,s=t.SET_C=2,u=(t.SHIFT=98,t.START_A=103),c=t.START_B=104,l=t.START_C=105;t.MODULO=103,t.STOP=106,t.FNC1=207,t.SET_BY_CODE=(n={},o(n,u,i),o(n,c,a),o(n,l,s),n),t.SWAP={101:i,100:a,99:s},t.A_START_CHAR=String.fromCharCode(208),t.B_START_CHAR=String.fromCharCode(209),t.C_START_CHAR=String.fromCharCode(210),t.A_CHARS="[\0-_È-Ï]",t.B_CHARS="[ -È-Ï]",t.C_CHARS="(Ï*[0-9]{2}Ï*)",t.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},f3c1:function(e,t){var r=800,n=16,o=Date.now;function i(e){var t=0,i=0;return function(){var a=o(),s=n-(a-i);if(i=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}e.exports=i},f4d6:function(e,t,r){var n=r("ffd6"),o=1/0;function i(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}e.exports=i},f608:function(e,t,r){var n=r("6747"),o=r("ffd6"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}e.exports=s},f6b4:function(e,t,r){"use strict";var n=r("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f8af:function(e,t,r){var n=r("2474");function o(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}e.exports=o},f909:function(e,t,r){var n=r("7e64"),o=r("b760"),i=r("72af"),a=r("4f50"),s=r("1a8c"),u=r("9934"),c=r("8adb");function l(e,t,r,f,d){e!==t&&i(t,(function(i,u){if(s(i))d||(d=new n),a(e,t,u,r,l,f,d);else{var h=f?f(c(e,u),i,u+"",e,t,d):void 0;void 0===h&&(h=i),o(e,u,h)}}),u)}e.exports=l},fa21:function(e,t,r){var n=r("7530"),o=r("2dcb"),i=r("eac5");function a(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}e.exports=a},fb15:function(e,t,r){"use strict";if(r.r(t),r.d(t,"user",(function(){return Ke})),r.d(t,"ajax",(function(){return Ge})),r.d(t,"request",(function(){return Fe})),r.d(t,"mergeConfig",(function(){return at})),r.d(t,"lang",(function(){return st})),r.d(t,"utils",(function(){return Le})),r.d(t,"page",(function(){return Qe})),r.d(t,"dataHelper",(function(){return rt})),"undefined"!==typeof window){var n=window.document.currentScript,o=r("8875");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a=r("bc3a"),s=r.n(a),u=r("852e"),c=r.n(u),l="d23290d0-f840-46d4-8401-ae815cc05c9a";const f="EAP-Token";function d(){let e=c.a.get(f),t=Object({NODE_ENV:"production",VUE_APP_BASE_API:"http://192.168.4.106:7777",BASE_URL:"/"});return e||"development"!=t.NODE_ENV?e:l}function h(e){return c.a.set(f,e)}function p(){return c.a.remove(f)}var g={getToken:d,setToken:h,removeToken:p},y=r("5f72"),_={string:"dbString",int:"dbInt",float:"dbFloat",double:"dbDouble",text:"dbText ",boolean:"dbBoolean ",datetime:"dbDatetime ",timestamp:"dbTimestamp "},b={pageIndex:"pageNum",pageSize:"pageSize",body:"__body",funcpath:"__funcpath",returnTotal:"__returnCount",zcQuery:"__zcQuery",slaveEntities:"__slaveEntities",modelFilePath:"modelFilePath",slaveExport:"__slaveExport",sheetStyle:"__sheetStyle",sheetDatas:"__sheetDatas",viewItemId:"viewItemId"},v=r("3852"),m=r.n(v),w=r("6220"),E=r.n(w);const O={projectName:"eap5csxm/admin",pName:"eap5csxm",pUser:"admin",messageType:"msgBox",deployDir:"",url:"http://192.168.4.105:7777",editorResDir:"",serverName:"",serverUrl:"",userInfo:"/sys/user/detail",loginUrl:"/login.html",miniLoginUrl:"/login.html",mainPageUrl:"/main.html",saveWsUrl:"/ws/progress/{id}",saveUrl:"/data/save",queryUrl:"/data/query",exportExcelHeartbeatUrl:"/export/dataexcel/status",excelImportUrl:"/import/exceldata",wsExcelImportUrl:"/ws/import/exceldata",exportUrl:"/export/dataexcel",exportPathUrl:"/export/dataexcel/path",exportNewUrl:"/export/dataexcelnew",pageInitUrl:"/data/page/permit",policyUrl:"/data/policy",flowUrlByPush:"/sys/auth/query-flowux",upload:"/file/upload",download:"/file/download",review:"/file/static/preview",publicupload:"/file/public/upload",publicdownload:"/file/public/download",publicreview:"/file/public/preview",getFlowInfo:"/flow/open",getApprovalInfo:"/flow/getApprovalInfo",processFlow:"/flow/processFlow",umpireOrder:"/flow/umpireOrder",queryTask:"/flow/queryTask",withdrawtask:"/flow/withdrawtask",taskDiagram:"/flow/taskDiagram",ganttChart:"/flow/ganttChart",openOrdernumber:"/flow/openOrdernumber",queryOperate:"like",requestTimeout:14e4,isSingleLogin:!1,singleLoginUrl:"",singleLogoutUrl:""};var x=O;const T={timeSchemeKey:{today:"today",yesterday:"yesterday",week:"week",month:"month",premonth:"premonth",quarter:"quarter",year:"year",days7:"days7",days28:"days28",days84:"days84",halfyear:"halfyear",oneyear:"oneyear"},format:function(e,t){if(!e)return"";"string"==typeof e&&(e=T.strToDate(e)),t=t.replace(/HH/,"hh");var r={"M+":e.getMonth()+1,"d+":e.getDate(),"D+":e.getDate(),"h+":e.getHours(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[n]:("00"+r[n]).substr((""+r[n]).length)));return t},getServerTimeNow(){let e="";return window.eap.ajax({url:window.HIVUI_SETTING.getNowTimeUrl,method:"GET",async:!1,success:function(t){e=t.dataPack},fail:function(){}}),e},milliSecondsBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),Math.abs(e.getTime()-t.getTime())},secondsBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.abs((e.getTime()-t.getTime())/1e3):null},minutesBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.floor(Math.abs((e.getTime()-t.getTime())/6e4)):null},hoursBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.floor(Math.abs((e.getTime()-t.getTime())/36e5)):null},daysBetween:function(e,t,r){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?(e=this.strFormatDate(this.format(e,"yyyy-MM-dd")),t=this.strFormatDate(this.format(t,"yyyy-MM-dd")),r?Math.floor(Math.abs((e.getTime()-t.getTime())/864e5)):Math.floor((e.getTime()-t.getTime())/864e5)):null},monthsBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.abs(12*(e.getFullYear()-t.getFullYear()))+Math.abs(e.getMonth()-t.getMonth()):null},yearsBetween:function(e,t){return"string"==typeof e&&(e=T.strToDate(e)),"string"==typeof t&&(t=T.strToDate(t)),e&&t?Math.abs(e.getFullYear()-t.getFullYear()):null},getWeekCn:function(e){var t=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");return"string"==typeof e&&(e=T.strToDate(e)),t[e.getDay()]},getWeek:function(e){return"string"==typeof e&&(e=T.strToDate(e)),e.getDay()},isDateTime:function(e){if(""==e.trim())return!1;var t=e.match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/),r=e.match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}).(\d{1,6})$/),n=e.match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2})$/);if(null==t&&null==r&&null==n)return!1;if(t=t||r||n,6==t.length){var o=new Date(t[1],t[2]-1,t[3],t[4],t[5]);let e=o.getFullYear()==t[1]&&o.getMonth()+1==t[2]&&o.getDate()==t[3]&&o.getHours()==t[4]&&o.getMinutes()==t[5];return 0!=e}var i=new Date(t[1],t[2]-1,t[3],t[4],t[5],t[6]);let a=i.getFullYear()==t[1]&&i.getMonth()+1==t[2]&&i.getDate()==t[3]&&i.getHours()==t[4]&&i.getMinutes()==t[5]&&i.getSeconds()==t[6];return 0!=a&&0!=a},isDate:function(e){if(""==e)return!0;var t=e.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(null==t)return!1;var r=new Date(t[1],t[3]-1,t[4]);let n=r.getFullYear()==t[1]&&r.getMonth()+1==t[3]&&r.getDate()==t[4];return 0!=n&&0!=n},dateof:function(e,t){let r;if(!e)return"";switch("string"==typeof e&&(e=T.strToDate(e)),t){case"y":r=e.getFullYear();break;case"m":r=e.getMonth()+1;break;case"min":r=e.getMinutes();break;case"time":r=T.format("yyyy-MM-dd hh:mm:ss");break;case"date":r=T.format("yyyy-MM-dd");break;case"weekCn":r=e.week();break;case"week":r=e.getDay();break;case"weekInYear":var n=new Date(e.getFullYear(),0,1),o=parseInt("1065432".charAt(n.getDay()));o=e.getTime()-n.getTime()-24*o*60*60*1e3,o=Math.ceil(o/6048e5),r=1!=n.getDay()?o+1:o;break;default:r=""}return r},strFormatDate:function(e,t){if(""==e||null==e)return"";let r=T.strToDate(e);return t?r.format(t):r},strToDate:function(e){if(!e)return"";if(e&&e.constructor===Date)return e;"string"==typeof e&&(e.indexOf(".")>-1&&(e=e.split(".")[0]),e=e.replace(/-/g,"/")),-1==e.indexOf("-")&&-1==e.indexOf("/")&&-1==e.indexOf(".")&&-1!=e.indexOf(":")&&(e=T.dateOf(new Date)+" "+e);var t=e.split(/[- :]/),r=e.split(/[/ :]/);return""!=e&&1==t.length&&1==r.length?(console.log(e+" Invalid Date"),""):new Date(Date.parse(e))},getQuarterStartDate:function(){var e=new Date,t="";return e.getMonth()<3?(t=new Date(e.getFullYear(),0,1),this.format(t,"yyyy-MM-dd")):e.getMonth()>2&&e.getMonth()<6?(t=new Date(e.getFullYear(),3,1),this.format(t,"yyyy-MM-dd")):e.getMonth()>5&&e.getMonth()<9?(t=new Date(e.getFullYear(),6,1),this.format(t,"yyyy-MM-dd")):e.getMonth()>8?(t=new Date(e.getFullYear(),9,1),this.format(t,"yyyy-MM-dd")):void 0},getQuarterEndDate:function(){var e=new Date,t="";return e.getMonth()<3?(t=new Date(e.getFullYear(),2,31),this.format(t,"yyyy-MM-dd")):e.getMonth()>2&&e.getMonth()<6?(t=new Date(e.getFullYear(),6,30),this.format(t,"yyyy-MM-dd")):e.getMonth()>5&&e.getMonth()<9?(t=new Date(e.getFullYear(),8,30),this.format(t,"yyyy-MM-dd")):e.getMonth()>8?(t=new Date(e.getFullYear(),11,31),this.format(t,"yyyy-MM-dd")):void 0},getYearStartDate:function(){var e=new Date,t=new Date(e.getFullYear(),0,1);return this.format(t,"yyyy-MM-dd")},getYearEndDate:function(){var e=new Date,t=new Date(e.getFullYear(),11,31);return this.format(t,"yyyy-MM-dd")},getMonthDays:function(e,t){if(void 0==t){var r=new Date;t=r.getFullYear()}e--;var n=new Date(t,e,1);return n.setDate(n.getDate()+32-n.getDate()),32-n.getDate()},getWeekStartDate:function(){var e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());return this.format(t,"yyyy-MM-dd")},getWeekEndDate:function(){var e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()+(6-e.getDay()));return this.format(t,"yyyy-MM-dd")},getMonthStartDate:function(e){var t=new Date;e&&"string"==typeof e&&(t=T.strToDate(e));var r=new Date(t.getFullYear(),t.getMonth(),1);return this.format(r,"yyyy-MM-dd")},getMonthEndDate:function(e){var t=new Date;e&&"string"==typeof e&&(t=T.strToDate(e));let r=t.getFullYear(),n=t.getMonth();var o=new Date(new Date(r,n+1,1).getTime()-864e5);return this.format(o,"yyyy-MM-dd")},now:function(){let e="yyyy-MM-dd hh:mm:ss";return this.format(new Date,e)},currentNow:function(){return new Date},TimeScheme:function(e,t){t=t||"到";var r=" 00:00:00"+t,n=" 23:59:59";switch(e){case"today":return this.format(this.strToDate(this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"yesterday":return this.format(this.dateAdd("d",-1,this.now()),"yyyy-MM-dd")+r+this.format(this.dateAdd("d",-1,this.now()),"yyyy-MM-dd")+n;case"week":return this.getWeekStartDate()+r+this.getWeekEndDate()+n;case"month":return this.getMonthStartDate()+r+this.getMonthEndDate()+n;case"quarter":return this.getQuarterStartDate()+r+this.getQuarterEndDate()+n;case"year":return this.getYearStartDate()+r+this.getYearEndDate()+n;case"days7":return this.format(this.dateAdd("d",-7,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"days28":return this.format(this.dateAdd("d",-28,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"days84":return this.format(this.dateAdd("d",-84,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"halfyear":return this.format(this.dateAdd("d",-180,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n;case"oneyear":return this.format(this.dateAdd("d",-365,this.now()),"yyyy-MM-dd")+r+this.format(this.strToDate(this.now()),"yyyy-MM-dd")+n}},daysInMonth:function(e,t){return 1==t?e%4==0&&e%100!=0?29:28:t<=6&&t%2==0||(t=t%2==1)?31:30},dateAdd:function(e,t,r){"string"==typeof r&&(r=T.strToDate(r));var n=new Date(r);e=(e||"d").toLowerCase();let o,i=parseInt(t);switch(e){case"y":o=n.setYear(n.getFullYear()+i);break;case"q":o=n.setMonth(n.getMonth()+3*i);break;case"m":var a=n.getFullYear(),s=n.getMonth(),u=a,c=s;s+i>11?(u=a+1,c=parseInt(s+i)-12):c=n.getMonth()+i;var l=this.daysInMonth(u,c),f=n.getDate();f>l&&(f=l),o=new Date(u,c,f);break;case"d":o=n.setDate(n.getDate()+i);break;case"h":o=n.setHours(n.getHours()+i);break;case"mi":o=n.setMinutes(n.getMinutes()+i);break;case"s":o=n.setSeconds(n.getSeconds()+i);break;default:o=n.setDate(n.getDate()+i);break}return new Date(o)}};var S=T;const A={accDiv:function(e,t){var r,n,o=0,i=0;try{o=e.toString().split(".")[1].length}catch(a){o=0}try{i=t.toString().split(".")[1].length}catch(a){i=0}return r=Number(e.toString().replace(".","")),n=Number(t.toString().replace(".","")),r/n*Math.pow(10,i-o)},accMul:function(e,t){var r=0,n=e.toString(),o=t.toString();try{r+=n.split(".")[1].length}catch(i){r=0}try{r+=o.split(".")[1].length}catch(i){r+=0}return Number(n.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,r)},accAdd:function(e,t){var r,n,o;try{r=e.toString().split(".")[1].length}catch(i){r=0}try{n=t.toString().split(".")[1].length}catch(i){n=0}return o=Math.pow(10,Math.max(r,n)),(A.accMul(e,o)+A.accMul(t,o))/o},toFixed(e,t){var r,n,o=0,i=e+"",a=i.indexOf(".");i.substr(a+t+1,1)>=5&&(o=1),n=Math.pow(10,t),r=Math.floor(e*n)+o;var s=r/n+"";a=s.indexOf("."),a<0&&(s+=".",a=s.indexOf("."));var u=s.length-(a+1);if(u<t)for(var c=0;c<t-u;c++)s+=0;return s},formatCn(e){let t=["角","分"],r=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],n=[["元","万","亿"],["","拾","佰","仟"]],o=e<0?"欠":"";e=Math.abs(e);let i="";for(let a=0;a<t.length;a++)i+=(r[Math.floor(10*e*Math.pow(10,a))%10]+t[a]).replace(/零./,"");i=i||"整",e=Math.floor(e);for(let a=0;a<n[0].length&&e>0;a++){let t="";for(let o=0;o<n[1].length&&e>0;o++)t=r[e%10]+n[1][o]+t,e=Math.floor(e/10);i=t.replace(/(零.)*零$/,"").replace(/^$/,"零")+n[0][a]+i}return o+i.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")},format:function(e,t){if(t||(t="000,0.00"),t.indexOf("¥")>-1&&(t="¥000,0.00"),isFinite(e)&&(e=parseFloat(e)),t.indexOf("%")>-1&&(e*=100),e=isNaN(e)?NaN:e,isNaN(e))return"";let r,n,o,i,a,s,u,c,l,f=/[^\d\.]/g,d=",",h=".",p=e<0;if(e=Math.abs(e),r=-1!=t.indexOf(","),n=t.replace(f,"").split("."),n.length>2)alert("对比格式无效");else if(n.length>1){let t=n[1].length||0,r=Math.pow(10,t);e=Number(Math.round(e*r)/r).toFixed(t)}else{let t=n[0].length||0,r=Math.pow(10,t);e=Number(Math.round(e*r)/r).toFixed(0)}if(o=e.toString(),n=o.split("."),r){for(i=n[0],a=[],s=i.length,u=Math.floor(s/3),c=i.length%3||3,l=0;l<s;l+=c)0!==l&&(c=3),a[a.length]=i.substr(l,c),u-=1;o=a.join(d),n[1]&&(o+=h+n[1])}else n[1]&&(o=n[0]+h+n[1]);return p&&(p=""!==o.replace(/[^1-9]/g,"")),(p?"-":"")+t.replace(/[\d,?\.?]+/,o)}};var j=A,P=r("8237"),I=r.n(P);const C={a:"啊阿锕",ai:"埃挨哎唉哀皑癌蔼矮艾碍爱隘诶捱嗳嗌嫒瑷暧砹锿霭",an:"鞍氨安俺按暗岸胺案谙埯揞犴庵桉铵鹌顸黯",ang:"肮昂盎",ao:"凹敖熬翱袄傲奥懊澳坳拗嗷噢岙廒遨媪骜聱螯鏊鳌鏖",ba:"芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸茇菝萆捭岜灞杷钯粑鲅魃",bai:"白柏百摆佰败拜稗薜掰鞴",ban:"斑班搬扳般颁板版扮拌伴瓣半办绊阪坂豳钣瘢癍舨",bang:"邦帮梆榜膀绑棒磅蚌镑傍谤蒡螃",bao:"苞胞包褒雹保堡饱宝抱报暴豹鲍爆勹葆宀孢煲鸨褓趵龅",bo:"剥薄玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳亳蕃啵饽檗擘礴钹鹁簸跛",bei:"杯碑悲卑北辈背贝钡倍狈备惫焙被孛陂邶埤蓓呗怫悖碚鹎褙鐾",ben:"奔苯本笨畚坌锛",beng:"崩绷甭泵蹦迸唪嘣甏",bi:"逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛匕仳俾芘荜荸吡哔狴庳愎滗濞弼妣婢嬖璧贲畀铋秕裨筚箅篦舭襞跸髀",bian:"鞭边编贬扁便变卞辨辩辫遍匾弁苄忭汴缏煸砭碥稹窆蝙笾鳊",biao:"标彪膘表婊骠飑飙飚灬镖镳瘭裱鳔",bie:"鳖憋别瘪蹩鳘",bin:"彬斌濒滨宾摈傧浜缤玢殡膑镔髌鬓",bing:"兵冰柄丙秉饼炳病并禀邴摒绠枋槟燹",bu:"捕卜哺补埠不布步簿部怖拊卟逋瓿晡钚醭",ca:"擦嚓礤",cai:"猜裁材才财睬踩采彩菜蔡",can:"餐参蚕残惭惨灿骖璨粲黪",cang:"苍舱仓沧藏伧",cao:"操糙槽曹草艹嘈漕螬艚",ce:"厕策侧册测刂帻恻",ceng:"层蹭噌",cha:"插叉茬茶查碴搽察岔差诧猹馇汊姹杈楂槎檫钗锸镲衩",chai:"拆柴豺侪茈瘥虿龇",chan:"搀掺蝉馋谗缠铲产阐颤冁谄谶蒇廛忏潺澶孱羼婵嬗骣觇禅镡裣蟾躔",chang:"昌猖场尝常长偿肠厂敞畅唱倡伥鬯苌菖徜怅惝阊娼嫦昶氅鲳",chao:"超抄钞朝嘲潮巢吵炒怊绉晁耖",che:"车扯撤掣彻澈坼屮砗",chen:"郴臣辰尘晨忱沉陈趁衬称谌抻嗔宸琛榇肜胂碜龀",cheng:"撑城橙成呈乘程惩澄诚承逞骋秤埕嵊徵浈枨柽樘晟塍瞠铖裎蛏酲",chi:"吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽傺墀芪茌搋叱哧啻嗤彳饬沲媸敕胝眙眵鸱瘛褫蚩螭笞篪豉踅踟魑",chong:"充冲虫崇宠茺忡憧铳艟",chou:"抽酬畴踌稠愁筹仇绸瞅丑俦圳帱惆溴妯瘳雠鲋",chu:"臭初出橱厨躇锄雏滁除楚础储矗搐触处亍刍憷绌杵楮樗蜍蹰黜",chuan:"揣川穿椽传船喘串掾舛惴遄巛氚钏镩舡",chuang:"疮窗幢床闯创怆",chui:"吹炊捶锤垂陲棰槌",chun:"春椿醇唇淳纯蠢促莼沌肫朐鹑蝽",chuo:"戳绰蔟辶辍镞踔龊",ci:"疵茨磁雌辞慈瓷词此刺赐次荠呲嵯鹚螅糍趑",cong:"聪葱囱匆从丛偬苁淙骢琮璁枞",cu:"凑粗醋簇猝殂蹙",cuan:"蹿篡窜汆撺昕爨",cui:"摧崔催脆瘁粹淬翠萃悴璀榱隹",cun:"村存寸磋忖皴",cuo:"撮搓措挫错厝脞锉矬痤鹾蹉躜",da:"搭达答瘩打大耷哒嗒怛妲疸褡笪靼鞑",dai:"呆歹傣戴带殆代贷袋待逮怠埭甙呔岱迨逯骀绐玳黛",dan:"耽担丹单郸掸胆旦氮但惮淡诞弹蛋亻儋卩萏啖澹檐殚赕眈瘅聃箪",dang:"当挡党荡档谠凼菪宕砀铛裆",dao:"刀捣蹈倒岛祷导到稻悼道盗叨啁忉洮氘焘忑纛",de:"德得的锝",deng:"蹬灯登等瞪凳邓噔嶝戥磴镫簦",di:"堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔氐籴诋谛邸坻莜荻嘀娣柢棣觌砥碲睇镝羝骶",dian:"颠掂滇碘点典靛垫电佃甸店惦奠淀殿丶阽坫埝巅玷癜癫簟踮",diao:"碉叼雕凋刁掉吊钓调轺铞蜩粜貂",die:"跌爹碟蝶迭谍叠佚垤堞揲喋渫轶牒瓞褶耋蹀鲽鳎",ding:"丁盯叮钉顶鼎锭定订丢仃啶玎腚碇町铤疔耵酊",dong:"东冬董懂动栋侗恫冻洞垌咚岽峒夂氡胨胴硐鸫",dou:"兜抖斗陡豆逗痘蔸钭窦窬蚪篼酡",du:"都督毒犊独读堵睹赌杜镀肚度渡妒芏嘟渎椟橐牍蠹笃髑黩",duan:"端短锻段断缎彖椴煅簖",dui:"堆兑队对怼憝碓",dun:"墩吨蹲敦顿囤钝盾遁炖砘礅盹镦趸",duo:"掇哆多夺垛躲朵跺舵剁惰堕咄哚缍柁铎裰踱",e:"蛾峨鹅俄额讹娥恶厄扼遏鄂饿噩谔垩垭苊莪萼呃愕屙婀轭曷腭硪锇锷鹗颚鳄",en:"恩蒽摁唔嗯",er:"而儿耳尔饵洱二贰迩珥铒鸸鲕",fa:"发罚筏伐乏阀法珐垡砝",fan:"藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛蘩幡犭梵攵燔畈蹯",fang:"坊芳方肪房防妨仿访纺放匚邡彷钫舫鲂",fei:"菲非啡飞肥匪诽吠肺废沸费芾狒悱淝妃绋绯榧腓斐扉祓砩镄痱蜚篚翡霏鲱",fen:"芬酚吩氛分纷坟焚汾粉奋份忿愤粪偾瀵棼愍鲼鼢",feng:"丰封枫蜂峰锋风疯烽逢冯缝讽奉凤俸酆葑沣砜",fu:"佛否夫敷肤孵扶拂辐幅氟符伏俘服浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐匐凫郛芙苻茯莩菔呋幞滏艴孚驸绂桴赙黻黼罘稃馥虍蚨蜉蝠蝮麸趺跗鳆",ga:"噶嘎蛤尬呷尕尜旮钆",gai:"该改概钙盖溉丐陔垓戤赅胲",gan:"干甘杆柑竿肝赶感秆敢赣坩苷尴擀泔淦澉绀橄旰矸疳酐",gang:"冈刚钢缸肛纲岗港戆罡颃筻",gong:"杠工攻功恭龚供躬公宫弓巩汞拱贡共蕻廾咣珙肱蚣蛩觥",gao:"篙皋高膏羔糕搞镐稿告睾诰郜蒿藁缟槔槁杲锆",ge:"哥歌搁戈鸽胳疙割革葛格阁隔铬个各鬲仡哿塥嗝纥搿膈硌铪镉袼颌虼舸骼髂",gei:"给",gen:"根跟亘茛哏艮",geng:"耕更庚羹埂耿梗哽赓鲠",gou:"钩勾沟苟狗垢构购够佝诟岣遘媾缑觏彀鸲笱篝鞲",gu:"辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇嘏诂菰哌崮汩梏轱牯牿胍臌毂瞽罟钴锢瓠鸪鹄痼蛄酤觚鲴骰鹘",gua:"刮瓜剐寡挂褂卦诖呱栝鸹",guai:"乖拐怪哙",guan:"棺关官冠观管馆罐惯灌贯倌莞掼涫盥鹳鳏",guang:"光广逛犷桄胱疒",gui:"瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽匦刿庋宄妫桧炅晷皈簋鲑鳜",gun:"辊滚棍丨衮绲磙鲧",guo:"锅郭国果裹过馘蠃埚掴呙囗帼崞猓椁虢锞聒蜮蜾蝈",ha:"哈",hai:"骸孩海氦亥害骇咴嗨颏醢",han:"酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉邗菡撖阚瀚晗焓颔蚶鼾",hen:"夯痕很狠恨",hang:"杭航沆绗珩桁",hao:"壕嚎豪毫郝好耗号浩薅嗥嚆濠灏昊皓颢蚝",he:"呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺诃劾壑藿嗑嗬阖盍蚵翮",hei:"嘿黑",heng:"哼亨横衡恒訇蘅",hong:"轰哄烘虹鸿洪宏弘红黉讧荭薨闳泓",hou:"喉侯猴吼厚候后堠後逅瘊篌糇鲎骺",hu:"呼乎忽瑚壶葫胡蝴狐糊湖弧虎唬护互沪户冱唿囫岵猢怙惚浒滹琥槲轷觳烀煳戽扈祜鹕鹱笏醐斛",hua:"花哗华猾滑画划化话劐浍骅桦铧稞",huai:"槐徊怀淮坏还踝",huan:"欢环桓缓换患唤痪豢焕涣宦幻郇奂垸擐圜洹浣漶寰逭缳锾鲩鬟",huang:"荒慌黄磺蝗簧皇凰惶煌晃幌恍谎隍徨湟潢遑璜肓癀蟥篁鳇",hui:"灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘诙茴荟蕙哕喙隳洄彗缋珲晖恚虺蟪麾",hun:"荤昏婚魂浑混诨馄阍溷缗",huo:"豁活伙火获或惑霍货祸攉嚯夥钬锪镬耠蠖",ji:"击圾基机畸稽积箕肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪居丌乩剞佶佴脔墼芨芰萁蒺蕺掎叽咭哜唧岌嵴洎彐屐骥畿玑楫殛戟戢赍觊犄齑矶羁嵇稷瘠瘵虮笈笄暨跻跽霁鲚鲫髻麂",jia:"嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁伽郏拮岬浃迦珈戛胛恝铗镓痂蛱笳袈跏",jian:"歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件健舰剑饯渐溅涧建僭谏谫菅蒹搛囝湔蹇謇缣枧柙楗戋戬牮犍毽腱睑锏鹣裥笕箴翦趼踺鲣鞯",jiang:"僵姜将浆江疆蒋桨奖讲匠酱降茳洚绛缰犟礓耩糨豇",jiao:"蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫佼僬茭挢噍峤徼姣纟敫皎鹪蛟醮跤鲛",jie:"窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届偈讦诘喈嗟獬婕孑桀獒碣锴疖袷颉蚧羯鲒骱髫",jin:"巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸尽卺荩堇噤馑廑妗缙瑾槿赆觐钅锓衿矜",jing:"劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净刭儆阱菁獍憬泾迳弪婧肼胫腈旌",jiong:"炯窘冂迥扃",jiu:"揪究纠玖韭久灸九酒厩救旧臼舅咎就疚僦啾阄柩桕鹫赳鬏",ju:"鞠拘狙疽驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧倨讵苣苴莒掬遽屦琚枸椐榘榉橘犋飓钜锔窭裾趄醵踽龃雎鞫",juan:"捐鹃娟倦眷卷绢鄄狷涓桊蠲锩镌隽",jue:"撅攫抉掘倔爵觉决诀绝厥劂谲矍蕨噘崛獗孓珏桷橛爝镢蹶觖",jun:"均菌钧军君峻俊竣浚郡骏捃狻皲筠麇",ka:"喀咖卡佧咔胩",ke:"咯坷苛柯棵磕颗科壳咳可渴克刻客课岢恪溘骒缂珂轲氪瞌钶疴窠蝌髁",kai:"开揩楷凯慨剀垲蒈忾恺铠锎",kan:"刊堪勘坎砍看侃凵莰莶戡龛瞰",kang:"康慷糠扛抗亢炕坑伉闶钪",kao:"考拷烤靠尻栲犒铐",ken:"肯啃垦恳垠裉颀",keng:"吭忐铿",kong:"空恐孔控倥崆箜",kou:"抠口扣寇芤蔻叩眍筘",ku:"枯哭窟苦酷库裤刳堀喾绔骷",kua:"夸垮挎跨胯侉",kuai:"块筷侩快蒯郐蒉狯脍",kuan:"宽款髋",kuang:"匡筐狂框矿眶旷况诓诳邝圹夼哐纩贶",kui:"亏盔岿窥葵奎魁傀馈愧溃馗匮夔隗揆喹喟悝愦阕逵暌睽聩蝰篑臾跬",kun:"坤昆捆困悃阃琨锟醌鲲髡",kuo:"括扩廓阔蛞",la:"垃拉喇蜡腊辣啦剌摺邋旯砬瘌",lai:"莱来赖崃徕涞濑赉睐铼癞籁",lan:"蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥啉岚懔漤榄斓罱镧褴",lang:"琅榔狼廊郎朗浪莨蒗啷阆锒稂螂",lao:"捞劳牢老佬姥酪烙涝唠崂栳铑铹痨醪",le:"勒乐肋仂叻嘞泐鳓",lei:"雷镭蕾磊累儡垒擂类泪羸诔荽咧漯嫘缧檑耒酹",ling:"棱冷拎玲菱零龄铃伶羚凌灵陵岭领另令酃塄苓呤囹泠绫柃棂瓴聆蛉翎鲮",leng:"楞愣",li:"厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐痢立粒沥隶力璃哩俪俚郦坜苈莅蓠藜捩呖唳喱猁溧澧逦娌嫠骊缡珞枥栎轹戾砺詈罹锂鹂疠疬蛎蜊蠡笠篥粝醴跞雳鲡鳢黧",lian:"俩联莲连镰廉怜涟帘敛脸链恋炼练挛蔹奁潋濂娈琏楝殓臁膦裢蠊鲢",liang:"粮凉梁粱良两辆量晾亮谅墚椋踉靓魉",liao:"撩聊僚疗燎寥辽潦了撂镣廖料蓼尥嘹獠寮缭钌鹩耢",lie:"列裂烈劣猎冽埒洌趔躐鬣",lin:"琳林磷霖临邻鳞淋凛赁吝蔺嶙廪遴檩辚瞵粼躏麟",liu:"溜琉榴硫馏留刘瘤流柳六抡偻蒌泖浏遛骝绺旒熘锍镏鹨鎏",long:"龙聋咙笼窿隆垄拢陇弄垅茏泷珑栊胧砻癃",lou:"楼娄搂篓漏陋喽嵝镂瘘耧蝼髅",lu:"芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮垆摅撸噜泸渌漉璐栌橹轳辂辘氇胪镥鸬鹭簏舻鲈",lv:"驴吕铝侣旅履屡缕虑氯律率滤绿捋闾榈膂稆褛",luan:"峦孪滦卵乱栾鸾銮",lue:"掠略锊",lun:"轮伦仑沦纶论囵",luo:"萝螺罗逻锣箩骡裸落洛骆络倮荦摞猡泺椤脶镙瘰雒",ma:"妈麻玛码蚂马骂嘛吗唛犸嬷杩麽",mai:"埋买麦卖迈脉劢荬咪霾",man:"瞒馒蛮满蔓曼慢漫谩墁幔缦熳镘颟螨鳗鞔",mang:"芒茫盲忙莽邙漭朦硭蟒",meng:"氓萌蒙檬盟锰猛梦孟勐甍瞢懵礞虻蜢蠓艋艨黾",miao:"猫苗描瞄藐秒渺庙妙喵邈缈缪杪淼眇鹋蜱",mao:"茅锚毛矛铆卯茂冒帽貌贸侔袤勖茆峁瑁昴牦耄旄懋瞀蛑蝥蟊髦",me:"么",mei:"玫枚梅酶霉煤没眉媒镁每美昧寐妹媚坶莓嵋猸浼湄楣镅鹛袂魅",men:"门闷们扪玟焖懑钔",mi:"眯醚靡糜迷谜弥米秘觅泌蜜密幂芈冖谧蘼嘧猕獯汨宓弭脒敉糸縻麋",mian:"棉眠绵冕免勉娩缅面沔湎腼眄",mie:"蔑灭咩蠛篾",min:"民抿皿敏悯闽苠岷闵泯珉",ming:"明螟鸣铭名命冥茗溟暝瞑酩",miu:"谬",mo:"摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谟茉蓦馍嫫镆秣瘼耱蟆貊貘",mou:"谋牟某厶哞婺眸鍪",mu:"拇牡亩姆母墓暮幕募慕木目睦牧穆仫苜呒沐毪钼",na:"拿哪呐钠那娜纳内捺肭镎衲箬",nai:"氖乃奶耐奈鼐艿萘柰",nan:"南男难囊喃囡楠腩蝻赧",nao:"挠脑恼闹孬垴猱瑙硇铙蛲",ne:"淖呢讷",nei:"馁",nen:"嫩能枘恁",ni:"妮霓倪泥尼拟你匿腻逆溺伲坭猊怩滠昵旎祢慝睨铌鲵",nian:"蔫拈年碾撵捻念廿辇黏鲇鲶",niang:"娘酿",niao:"鸟尿茑嬲脲袅",nie:"捏聂孽啮镊镍涅乜陧蘖嗫肀颞臬蹑",nin:"您柠",ning:"狞凝宁拧泞佞蓥咛甯聍",niu:"牛扭钮纽狃忸妞蚴",nong:"脓浓农侬",nu:"奴努怒呶帑弩胬孥驽",nv:"女恧钕衄",nuan:"暖",nuenue:"虐",nue:"疟谑",nuo:"挪懦糯诺傩搦喏锘",ou:"哦欧鸥殴藕呕偶沤怄瓯耦",pa:"啪趴爬帕怕琶葩筢",pai:"拍排牌徘湃派俳蒎",pan:"攀潘盘磐盼畔判叛爿泮袢襻蟠蹒",pang:"乓庞旁耪胖滂逄",pao:"抛咆刨炮袍跑泡匏狍庖脬疱",pei:"呸胚培裴赔陪配佩沛掊辔帔淠旆锫醅霈",pen:"喷盆湓",peng:"砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯堋嘭怦蟛",pi:"砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬丕陴邳郫圮鼙擗噼庀媲纰枇甓睥罴铍痦癖疋蚍貔",pian:"篇偏片骗谝骈犏胼褊翩蹁",piao:"飘漂瓢票剽嘌嫖缥殍瞟螵",pie:"撇瞥丿苤氕",pin:"拼频贫品聘拚姘嫔榀牝颦",ping:"乒坪苹萍平凭瓶评屏俜娉枰鲆",po:"坡泼颇婆破魄迫粕叵鄱溥珀钋钷皤笸",pou:"剖裒踣",pu:"扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑匍噗濮璞氆镤镨蹼",qi:"期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫亟亓圻芑萋葺嘁屺岐汔淇骐绮琪琦杞桤槭欹祺憩碛蛴蜞綦綮趿蹊鳍麒",qia:"掐恰洽葜",qian:"牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉佥阡芊芡荨掮岍悭慊骞搴褰缱椠肷愆钤虔箝",qiang:"枪呛腔羌墙蔷强抢嫱樯戗炝锖锵镪襁蜣羟跫跄",qiao:"橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍劁诮谯荞愀憔缲樵毳硗跷鞒",qie:"切茄且怯窃郄唼惬妾挈锲箧",qin:"钦侵亲秦琴勤芹擒禽寝沁芩蓁蕲揿吣嗪噙溱檎螓衾",qing:"青轻氢倾卿清擎晴氰情顷请庆倩苘圊檠磬蜻罄箐謦鲭黥",qiong:"琼穷邛茕穹筇銎",qiu:"秋丘邱球求囚酋泅俅氽巯艽犰湫逑遒楸赇鸠虬蚯蝤裘糗鳅鼽",qu:"趋区蛆曲躯屈驱渠取娶龋趣去诎劬蕖蘧岖衢阒璩觑氍祛磲癯蛐蠼麴瞿黢",quan:"圈颧权醛泉全痊拳犬券劝诠荃獾悛绻辁畎铨蜷筌鬈",que:"缺炔瘸却鹊榷确雀阙悫",qun:"裙群逡",ran:"然燃冉染苒髯",rang:"瓤壤攘嚷让禳穰",rao:"饶扰绕荛娆桡",ruo:"惹若弱",re:"热偌",ren:"壬仁人忍韧任认刃妊纫仞荏葚饪轫稔衽",reng:"扔仍",ri:"日",rong:"戎茸蓉荣融熔溶容绒冗嵘狨缛榕蝾",rou:"揉柔肉糅蹂鞣",ru:"茹蠕儒孺如辱乳汝入褥蓐薷嚅洳溽濡铷襦颥",ruan:"软阮朊",rui:"蕊瑞锐芮蕤睿蚋",run:"闰润",sa:"撒洒萨卅仨挲飒",sai:"腮鳃塞赛噻",san:"三叁伞散彡馓氵毵糁霰",sang:"桑嗓丧搡磉颡",sao:"搔骚扫嫂埽臊瘙鳋",se:"瑟色涩啬铩铯穑",sen:"森",seng:"僧",sha:"莎砂杀刹沙纱傻啥煞脎歃痧裟霎鲨",shai:"筛晒酾",shan:"珊苫杉山删煽衫闪陕擅赡膳善汕扇缮剡讪鄯埏芟潸姗骟膻钐疝蟮舢跚鳝",shang:"墒伤商赏晌上尚裳垧绱殇熵觞",shao:"梢捎稍烧芍勺韶少哨邵绍劭苕潲蛸笤筲艄",she:"奢赊蛇舌舍赦摄射慑涉社设厍佘猞畲麝",shen:"砷申呻伸身深娠绅神沈审婶甚肾慎渗诜谂吲哂渖椹矧蜃",sheng:"声生甥牲升绳省盛剩胜圣丞渑媵眚笙",shi:"师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试谥埘莳蓍弑唑饣轼耆贳炻礻铈铊螫舐筮豕鲥鲺",shou:"收手首守寿授售受瘦兽扌狩绶艏",shu:"蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱恕倏塾菽忄沭涑澍姝纾毹腧殳镯秫鹬",shua:"刷耍唰涮",shuai:"摔衰甩帅蟀",shuan:"栓拴闩",shuang:"霜双爽孀",shui:"谁水睡税",shun:"吮瞬顺舜恂",shuo:"说硕朔烁蒴搠嗍濯妁槊铄",si:"斯撕嘶思私司丝死肆寺嗣四伺似饲巳厮俟兕菥咝汜泗澌姒驷缌祀祠锶鸶耜蛳笥",song:"松耸怂颂送宋讼诵凇菘崧嵩忪悚淞竦",sou:"搜艘擞嗽叟嗖嗾馊溲飕瞍锼螋",su:"苏酥俗素速粟僳塑溯宿诉肃夙谡蔌嗉愫簌觫稣",suan:"酸蒜算",sui:"虽隋随绥髓碎岁穗遂隧祟蓑冫谇濉邃燧眭睢",sun:"孙损笋荪狲飧榫跣隼",suo:"梭唆缩琐索锁所唢嗦娑桫睃羧",ta:"塌他它她塔獭挞蹋踏闼溻遢榻沓",tai:"胎苔抬台泰酞太态汰邰薹肽炱钛跆鲐",tan:"坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭郯蕈昙钽锬覃",tang:"汤塘搪堂棠膛唐糖傥饧溏瑭铴镗耥螗螳羰醣",thang:"倘躺淌",theng:"趟烫",tao:"掏涛滔绦萄桃逃淘陶讨套挑鼗啕韬饕",te:"特",teng:"藤腾疼誊滕",ti:"梯剔踢锑提题蹄啼体替嚏惕涕剃屉荑悌逖绨缇鹈裼醍",tian:"天添填田甜恬舔腆掭忝阗殄畋钿蚺",tiao:"条迢眺跳佻祧铫窕龆鲦",tie:"贴铁帖萜餮",ting:"厅听烃汀廷停亭庭挺艇莛葶婷梃蜓霆",tong:"通桐酮瞳同铜彤童桶捅筒统痛佟僮仝茼嗵恸潼砼",tou:"偷投头透亠",tu:"凸秃突图徒途涂屠土吐兔堍荼菟钍酴",tuan:"湍团疃",tui:"推颓腿蜕褪退忒煺",tun:"吞屯臀饨暾豚窀",tuo:"拖托脱鸵陀驮驼椭妥拓唾乇佗坨庹沱柝砣箨舄跎鼍",wa:"挖哇蛙洼娃瓦袜佤娲腽",wai:"歪外",wan:"豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕剜芄苋菀纨绾琬脘畹蜿箢",wang:"汪王亡枉网往旺望忘妄罔尢惘辋魍",wei:"威巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫倭偎诿隈葳薇帏帷崴嵬猥猬闱沩洧涠逶娓玮韪軎炜煨熨痿艉鲔",wen:"瘟温蚊文闻纹吻稳紊问刎愠阌汶璺韫殁雯",weng:"嗡翁瓮蓊蕹",wo:"挝蜗涡窝我斡卧握沃莴幄渥杌肟龌",wu:"巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误兀仵阢邬圬芴庑怃忤浯寤迕妩骛牾焐鹉鹜蜈鋈鼯",xi:"昔熙析西硒矽晰嘻吸锡牺稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细僖兮隰郗茜葸蓰奚唏徙饩阋浠淅屣嬉玺樨曦觋欷熹禊禧钸皙穸蜥蟋舾羲粞翕醯鼷",xia:"瞎虾匣霞辖暇峡侠狭下厦夏吓掀葭嗄狎遐瑕硖瘕罅黠",xian:"锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线冼藓岘猃暹娴氙祆鹇痫蚬筅籼酰跹",xiang:"相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象芗葙饷庠骧缃蟓鲞飨",xiao:"萧硝霄削哮嚣销消宵淆晓小孝校肖啸笑效哓咻崤潇逍骁绡枭枵筱箫魈",xie:"楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑偕亵勰燮薤撷廨瀣邂绁缬榭榍歙躞",xin:"薪芯锌欣辛新忻心信衅囟馨莘歆铽鑫",xing:"星腥猩惺兴刑型形邢行醒幸杏性姓陉荇荥擤悻硎",xiong:"兄凶胸匈汹雄熊芎",xiu:"休修羞朽嗅锈秀袖绣莠岫馐庥鸺貅髹",xu:"墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续讴诩圩蓿怵洫溆顼栩煦砉盱胥糈醑",xuan:"轩喧宣悬旋玄选癣眩绚儇谖萱揎馔泫洵渲漩璇楦暄炫煊碹铉镟痃",xue:"靴薛学穴雪血噱泶鳕",xun:"勋熏循旬询寻驯巡殉汛训讯逊迅巽埙荀薰峋徇浔曛窨醺鲟",ya:"压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶伢揠吖岈迓娅琊桠氩砑睚痖",yan:"焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验厣靥赝俨偃兖讠谳郾鄢芫菸崦恹闫阏洇湮滟妍嫣琰晏胭腌焱罨筵酽魇餍鼹",yang:"殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾徉怏泱炀烊恙蛘鞅",yao:"邀腰妖瑶摇尧遥窑谣姚咬舀药要耀夭爻吆崾徭瀹幺珧杳曜肴鹞窈繇鳐",ye:"椰噎耶爷野冶也页掖业叶曳腋夜液谒邺揶馀晔烨铘",yi:"一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎刈劓佾诒圪圯埸懿苡薏弈奕挹弋呓咦咿噫峄嶷猗饴怿怡悒漪迤驿缢殪贻旖熠钇镒镱痍瘗癔翊衤蜴舣羿翳酏黟",yin:"茵荫因殷音阴姻吟银淫寅饮尹引隐印胤鄞堙茚喑狺夤氤铟瘾蚓霪龈",ying:"英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映嬴郢茔莺萦撄嘤膺滢潆瀛瑛璎楹鹦瘿颍罂",yo:"哟唷",yong:"拥佣臃痈庸雍踊蛹咏泳涌永恿勇用俑壅墉慵邕镛甬鳙饔",you:"幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼卣攸侑莸呦囿宥柚猷牖铕疣蝣鱿黝鼬",yu:"迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉浴寓裕预豫驭禺毓伛俣谀谕萸蓣揄喁圄圉嵛狳饫庾阈妪妤纡瑜昱觎腴欤於煜燠聿钰鹆瘐瘀窳蝓竽舁雩龉",yuan:"鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院塬沅媛瑗橼爰眢鸢螈鼋",yue:"曰约越跃钥岳粤月悦阅龠樾刖钺",yun:"耘云郧匀陨允运蕴酝晕韵孕郓芸狁恽纭殒昀氲",za:"匝砸杂拶咂",zai:"栽哉灾宰载再在咱崽甾",zan:"攒暂赞瓒昝簪糌趱錾",zang:"赃脏葬奘戕臧",zao:"遭糟凿藻枣早澡蚤躁噪造皂灶燥唣缫",ze:"责择则泽仄赜啧迮昃笮箦舴",zei:"贼",zen:"怎谮",zeng:"增憎曾赠缯甑罾锃",zha:"扎喳渣札轧铡闸眨栅榨咋乍炸诈揸吒咤哳怍砟痄蚱齄",zhai:"摘斋宅窄债寨砦",zhan:"瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽谵搌旃",zhang:"樟章彰漳张掌涨杖丈帐账仗胀瘴障仉鄣幛嶂獐嫜璋蟑",zhao:"招昭找沼赵照罩兆肇召爪诏棹钊笊",zhe:"遮折哲蛰辙者锗蔗这浙谪陬柘辄磔鹧褚蜇赭",zhen:"珍斟真甄砧臻贞针侦枕疹诊震振镇阵缜桢榛轸赈胗朕祯畛鸩",zheng:"蒸挣睁征狰争怔整拯正政帧症郑证诤峥钲铮筝",zhi:"芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒卮陟郅埴芷摭帙忮彘咫骘栉枳栀桎轵轾攴贽膣祉祗黹雉鸷痣蛭絷酯跖踬踯豸觯",zhong:"中盅忠钟衷终种肿重仲众冢锺螽舂舯踵",zhou:"舟周州洲诌粥轴肘帚咒皱宙昼骤啄着倜诹荮鬻纣胄碡籀舳酎鲷",zhu:"珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑住注祝驻伫侏邾苎茱洙渚潴驺杼槠橥炷铢疰瘃蚰竺箸翥躅麈",zhua:"抓",zhuai:"拽",zhuan:"专砖转撰赚篆抟啭颛",zhuang:"桩庄装妆撞壮状丬",zhui:"椎锥追赘坠缀萑骓缒",zhun:"谆准",zhuo:"捉拙卓桌琢茁酌灼浊倬诼廴蕞擢啜浞涿杓焯禚斫",zi:"兹咨资姿滋淄孜紫仔籽滓子自渍字谘嵫姊孳缁梓辎赀恣眦锱秭耔笫粢觜訾鲻髭",zong:"鬃棕踪宗综总纵腙粽",zou:"邹走奏揍鄹鲰",zu:"租足卒族祖诅阻组俎菹啐徂驵蹴",zuan:"钻纂攥缵",zui:"嘴醉最罪",zun:"尊遵撙樽鳟",zuo:"昨左佐柞做作坐座阝阼胙祚酢",cou:"薮楱辏腠",nang:"攮哝囔馕曩",o:"喔",dia:"嗲",chuai:"嘬膪踹",cen:"岑涔",diu:"铥",nou:"耨",fou:"缶",bia:"髟"};var M={chineseToPinYin:function(e){for(var t=e.length,r="",n=new RegExp("[a-zA-Z0-9]"),o=(new RegExp("[a-zA-Z]"),0);o<t;o++){var i=e.substr(o,1);if(n.test(i))r+=i;else{var a=this.arraySearch(i,C);n.test(i)?r+=i:!1!==a&&(r+=a)}}r=r.replace(/ /g,"-");while(r.indexOf("--")>0)r=r.replace("--","-");return r},arraySearch:function(e,t){for(var r in C)if(-1!==C[r].indexOf(e))return this.ucfirst(r);return!1},ucfirst:function(e){if(e.length>0){var t=e.substr(0,1).toUpperCase(),r=e.substr(1,e.length);return t+r}}},D=r("4a37"),N=r.n(D),L=r("62c5"),k=r.n(L);const R={md5:function(e){return I()(e)},getFirstPY:function(e){if(!e)return"";let t,r="";if(e=e.toUpperCase(),e.constructor==Array){t=[];for(let r=0;r<e.length;r++)t.push(M.chineseToPinYin(e[r]))}else t=M.chineseToPinYin(e);if(t.constructor==Array){let e=[];for(let r=0;r<t.length;r++){let n=t[r],o="";for(let e=0;e<n.length;e++){let t=n.charAt(e);/^[A-Z0-9]+$/.test(t)&&(o+=t)}e.push(o.toLowerCase())}return e}for(let n=0;n<t.length;n++){let e=t.charAt(n);/^[A-Z0-9]+$/.test(e)&&(r+=e)}return r.toLowerCase()},getDownloadUrl(e,t){return window.eap.utils.biz.getDownloadUrl(e,t)},getPinyin:function(e){let t=[];if(!e)return"";if(e.constructor==Array){for(let r=0;r<e.length;r++)t.push(M.chineseToPinYin(e[r]).toLowerCase());return t}return M.chineseToPinYin(e).toLowerCase()},randomInt:function(e,t){var r=t-e,n=Math.random();return e+Math.round(n*r)},getBizUrl(e){return window.eap?window.eap.utils.biz.getUrl(e):e},getUrlValue:function(e,t){var r=t||window.location.href;if(-1!=r.indexOf("&"+e)||-1!=r.indexOf("?"+e)){var n="";n=r.indexOf("?"+e)>-1?r.indexOf("?"+e)+e.length+2:r.indexOf("&"+e)+e.length+2;var o=r.indexOf("&",n);return-1==o?r.substring(n):r.substring(n,o)}return""},setUrlValue:function(e,t,r){if(null==e||""==e)return"";var n=e.split("?");if(n.length<=1)return e+"?"+t+"="+r;for(var o=n[1].split("&"),i=!0,a=0;a<o.length;a++){var s=o[a].split("=");s[0]==t&&(o[a]=t+"="+r,i=!1)}return i&&(o[o.length]=t+"="+r),n[0]+"?"+o.join("&")},id:function(e){return function(e,t){var r,n,o="012abcdefghuwxyz34MNOPQRSTUV567ijklmnopqrst89ABCDEFGHIJKLWXYZ".split(""),i=[];if(t=t||o.length,e)for(r=0;r<e;r++)i[r]=o[0|Math.random()*t];else for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",r=0;r<36;r++)i[r]||(n=0|16*Math.random(),i[r]=o[19==r?3&n|8:n]);return i.join("")}(e||6,61)},guid:function(){var e=new Date,t=this.randomInt(1,1e3),r=this.randomInt(1,1e3),n=this.randomInt(1,1e3),o=e.valueOf()+"-"+e.getMilliseconds()+"-"+t+"-"+r+"-"+n,i=this.md5(o),a=i.substring(0,8)+"-"+i.substring(8,12)+"-"+i.substring(12,16)+"-"+i.substring(16,20)+"-"+i.substring(20,32);return a.toUpperCase()},format:function(){if(0==arguments.length)return"";var e=Array.prototype.slice.call(arguments),t=e.shift();if(1==e.length&&"object"==typeof e[0]){var r=e[0];for(var n in r)if(void 0!=r[n]){let e=new RegExp("({"+n+"})","g");t=t.replace(e,r[n])}}else for(var o=0;o<e.length;o++)if(void 0!=e[o]){let r=new RegExp("({)"+o+"(})","g");t=t.replace(r,e[o])}return t},controlGuid(e){return(e||"").replace(/[.|#|@|*|\?|\(|\)|<|>|\{|\|\^|\$}]/gi,"_")+"_"+R.id(8)},upperMoney(e){e=new String(Math.round(100*Math.abs(e)));var t,r,n,o="",i="零壹贰叁肆伍陆柒捌玖",a="万仟佰拾亿仟佰拾万仟佰拾元角分",s=e.length,u=0;if(s>15)return alert("超出计算范围"),"";if(0==e)return o="零元整",o;a=a.substr(a.length-s,s);for(var c=0;c<s;c++)n=parseInt(e.substr(c,1),10),c!=s-3&&c!=s-7&&c!=s-11&&c!=s-15?0==n?(t="",r="",u+=1):0!=n&&0!=u?(t="零"+i.substr(n,1),r=a.substr(c,1),u=0):(t=i.substr(n,1),r=a.substr(c,1),u=0):(0!=n&&0!=u?(t="零"+i.substr(n,1),r=a.substr(c,1),u=0):0!=n&&0==u?(t=i.substr(n,1),r=a.substr(c,1),u=0):0==n&&u>=3?(t="",r="",u+=1):(t="",r=a.substr(c,1),u+=1),c!=s-11&&c!=s-3||(r=a.substr(c,1))),o=o+t+r;return 0==n&&(o+="整"),o},splitAttach(e){for(var t=[],r=e.split("|"),n=window.HIVUI_SETTING?window.HIVUI_SETTING.review:"",o=0;o<r.length;o++){var i=r[o];i&&t.push({name:r[o].split(";")[0],size:r[o].split(";")[1],path:r[o].split(";")[2],url:`${n}?relativePath=${r[o].split(";")[2]}`})}return t},splitAttachImgUrl(e){if(e){for(var t=[],r=e.split("|"),n=window.HIVUI_SETTING?window.HIVUI_SETTING.review:"",o=0;o<r.length;o++){var i=r[o];if(i){if(r[o].split(";").length>2){t=this.splitAttach(e);break}-1!=r[0].indexOf("http://")?t.push({url:r[0]}):t.push({url:`${n}?relativePath=${r[0]}`})}}return t[0].url}},getQrcode(e,t={}){if(!e)return;let r=N.a.getQrBase64(e,t);return r},getBarcode(e,t={}){if(e){var r=document.createElement("canvas");return k()(r,e,t),r.toDataURL("image/png")}}};var B=R;const U={hi_common_cancel:"取消",hi_common_confirm:"确定",hi_query_all:"全部",hi_query_noempty:"不能为空!",hi_query_sysscheme:"系统方案",hi_query_reset:"重置",hi_query_btnname:"查询",hi_query_more:"更多",hi_order_defaultall:"综合",hi_timescheme_month:"本月",hi_timescheme_yeartonow:"今年至今",hi_timescheme_last6month:"最近六个月",hi_timescheme_today:"本日",hi_timescheme_yesterday:"昨日",hi_timescheme_last7days:"近7天",hi_timescheme_last28days:"近28天",hi_timescheme_last84days:"近84天",hi_timescheme_startdate:"开始日期",hi_timescheme_enddate:"结束日期",hi_timescheme_year:"本年度",hi_timescheme_week:"本周",hi_timescheme_quarter:"本季度",hi_timescheme_split:"到",hi_timescheme_halfyear:"近半年",hi_timescheme_oneyear:"近一年",hi_pushdata_linkSelect:"请选择需要打开的链接!",hi_pushdata_hasAuth:"当前请求功能您没有权限访问!",hi_pushdata_requestError:"请求异常",hi_treequery_placeholder:"输入关键字进行过滤",hi_numberrange_splitstr:"到",hi_datalist_nodata:"暂无数据!",hi_importexcel_uploadname:"Excel上传",hi_importexcel_templatename:"模板下载",hi_importexcel_noallowfile:"不支持上传{0}格式!",hi_importexcel_limitfilesize:"限制上传文件大小为{0}M!",hi_exportexcel_exportname:"Excel导出",hi_exportexcel_buildfile:"文件生成中",hi_exportexcel_isdownload:"是否取消文件下载?",hi_dataRequest_request:"数据请求中",hi_dataRequest_isCacel:"是否取消请求?",hi_dataRequest_tip:"提示",hi_dataRequest_tip:"提示",hi_dataRequest_confirm:"确定",hi_exportexcel_cancel:"取消",hi_exportexcel_confirm:"确定",hi_exportexcel_cancel:"取消",hi_exportexcel_builddatacomplate:"数据生成完成!",hi_expression_close:"关闭",hi_expression_confirm:"关闭",hi_expression_dialogname:"表达式",hi_page_confirm:"确定",hi_page_cancel:"取消",hi_page_prompt:"提示",hi_page_cannotBeNull:"不能为空",hi_page_outOfRange:"输入的字符超出",hi_page_dataPromptNotSubmitted:"检测到有未提交的数据,是否还原",hi_page_dataNotModified:"数据未修改",hi_page_initializing:"正在初始化..",hi_table_file:"个文件",hi_table_index:"序号",hi_table_operate:"操作",hi_table_add:"新增",hi_table_del:"删除",hi_table_addsub:"新增子节点",hi_table_emptyText:"暂无数据",hi_table_confirmFilter:"筛选",hi_table_resetFilter:"重置",hi_table_clearFilter:"全部",hi_table_sumText:"合计",hi_table_lockCol:"锁定列",hi_table_unlockCol:"解锁列",hi_table_fillUp:"向上填充",hi_table_fillDown:"向下填充",hi_table_copy:"复制",hi_table_copyRow:"复制整行",hi_table_copyCol:"复制整列",hi_table_copyCell:"复制单元格",hi_table_download:"下载",hi_table_downloadAll:"下载所有",hi_table_downloadSelect:"选中下载",hi_table_maxAddNode:"最多只能添加{0}级节点",hi_table_yesterday:"昨天",hi_table_today:"今天",hi_table_aweek:"一周",hi_table_paste:"粘贴",hi_table_pasteRow:"指定位整行粘贴",hi_table_pasteCol:"指定位整列粘贴",hi_table_pasteMsg:"navigator.clipboard 仅支持通过 HTTPS 提供的页面",hi_table_colSetting:"字段配置",hi_table_colsConfig:"列表字段配置",hi_messagebox_title:"提示",hi_messagebox_confirm:"确定",hi_messagebox_cancel:"取消",hi_toolbar_add:"添加",hi_toolbar_del:"删除",hi_toolbar_reset:"取消",hi_toolbar_save:"保存",hi_toolbar_submit:"提交",hi_toolbar_callout:"调单",hi_toolbar_nexttache:"流转",hi_toolbar_backtache:"回退",hi_toolbar_signout:"加签",hi_toolbar_processSign:"处理加签",hi_toolbar_turnOut:"转办",hi_toolbar_terminate:"终止",hi_toolbar_umpire:"反审",hi_toolbar_monitor:"流程监控",hi_toolbar_savesuccess:"数据保存成功",hi_toolbar_processflowsuccess:"流程处理成功",hi_toolbar_limitequals:"请选择相同的:",hi_toolbar_limitnoequals:"请选择不同的:",hi_toolbar_limitnoequals1:"相同记录已跳过!",hi_toolbar_finished:"流程结束",hi_toolbar_actors:"下个执行者",hi_toolbar_loader:"数据处理中...",hi_toolbar_agree:"同意",hi_toolbar_disagree:"不同意",hi_toolbar_selectOneError:"至少选择一个执行者!",hi_toolbar_removeallhint:"确定要删除所有记录吗?",hi_toolbar_cancelhint:"确定要取消吗?",hi_toolbar_umpirehint:"确定要启用反审吗?",hi_toolbar_savehint:"数据未保存,是否保存数据?",hi_toolbar_circulationway:"返回方式",hi_toolbar_circulationway_default:"重新流转",hi_toolbar_circulationway_again:"原路返回",hi_toolbar_performType:"原路返回",hi_toolbar_performType1:"独占",hi_toolbar_performType2:"会签",hi_toolbar_performType3:"顺序",hi_toolbar_signType_BeforSign:"前加签",hi_toolbar_signType_AfterSign:"后加签",hi_toolbar_approvecomments:"审批意见",hi_toolbar_assigneeLabel:"额外办理人",hi_toolbar_previousName:"上一节点",hi_toolbar_processor:"处理人",hi_toolbar_previousCount:"节点处理人:共",hi_toolbar_previousCount2:"人审批",hi_toolbar_processortime:"处理时间",hi_toolbar_username:"用户名",hi_toolbar_userid:"用户ID",hi_toolbar_userorgname:"编制名",hi_toolbar_bzid:"编制ID",hi_toolbar_collapse:"收起",hi_toolbar_expand:"展开",hi_form_required:" 必填!",hi_tree_search:"输入关键字进行过滤",hi_tree_addPeerBtn:"添加同级",hi_tree_add:"添加",hi_tree_edit:"编辑",hi_tree_del:"删除",hi_tree_noNode:"节点不存在",hi_tree_removehint:"请先删除子节点!",hi_calendar_add:"新增日程",hi_calendar_refresh:"刷新",hi_calendar_month:"月",hi_calendar_week:"周",hi_calendar_day:"日",hi_calendar_between:"到",hi_calendar_prevMonth:"上个月",hi_calendar_nextMonth:"下个月",hi_calendar_today:"今天",hi_calendar_time:"时间",hi_select_placeholder:"请选择",hi_selectGrid_queryname:"请输入关键词",hi_dataSelect_hasselect:"当前记录已选!",hi_dataSelect_selectOneError:"至少选择一条记录!",hi_dataSelect_Loading:"数据加载中...",hi_dataSelect_selectall:"全选",hi_dataSelect_clear:"清空",hi_dataSelect_selectAdd:"添加选中",hi_dataSelect_selectclear:"删除选中",hi_dataSelect_queryCdionsNull:"明细条件未传!",hi_dataSelect_numberFieldNull:"未配置单号!",hi_dataSelect_nosoucredataset:"来源数据集不存在",hi_dataSelect_noin:"数据不在查找范围内!",hi_upload_deleteTip:"按 delete 键可删除",hi_upload_uploadName:"点击上传",hi_upload_delete:"删除",hi_upload_removeall:"清空",hi_upload_preview:"查看图片",hi_upload_continue:"继续上传",hi_upload_limit:"当前限制选择{0}个文件,本次选择了{1}个文件,共选择了{2}个文件",hi_upload_fileExtension:"后缀为",hi_upload_limitcount:"数量不超过{0}个",hi_upload_fileSize:"大小不超过{0}M",hi_upload_hint:"只能上传[ {0} ]文件",hi_upload_fileExtensionLimit:"不支持上传{0}格式!",hi_upload_files:"个文件",hi_imagecropper_dialogtitle:"切图",hi_imagecropper_select:"选择封面",hi_imagecropper_scalebig:"放大",hi_imagecropper_scalesmall:"缩小",hi_imagecropper_rotateLeft:"左旋转",hi_imagecropper_rotateRight:"右旋转",hi_imagecropper_upload:"上传封面",hi_imagecropper_error:"图片类型要求",hi_mapSelect_translate:"坐标转换失败!",hi_page_pageInit:"没有找到初始化接口配置,请在环境配置中新增pageInitUrl节点配置",hi_page_pagecontrolstate:"页面控件状态",hi_monitor_approvalRecord:"审批记录",hi_monitor_flow:"流程",hi_monitor_displayname:"流程名称",hi_monitor_ordernumber:"流程编号",hi_monitor_createtime:"创建时间",hi_monitor_finishtime:"完成时间",hi_monitor_flowstate:"流程状态",hi_monitor_finish:"已完成",hi_monitor_taskname:"任务名称",hi_monitor_noReceived:"未接收",hi_monitor_timeConsuming:"耗时",hi_monitor_approver:"审批人",hi_monitor_processingStatus:"处理状态",hi_monitor_processe:"需处理",hi_monitor_postscript:"附言",hi_monitor_flowchart:"流程图",hi_monitor_gantt:"甘特图",hi_monitor_processed:"已处理",hi_monitor_back:"回退",hi_monitor_sysAuto:"系统自动流转",hi_monitor_terminate:"终止",hi_monitor_cancel:"取消",hi_monitor_transfer:"转办",hi_monitor_taskWithdraw:"任务撤回",hi_monitor_tsBeforSigning:"前加签中",hi_monitor_tsAfterSigning:"后加签中",hi_monitor_tsBeforSignDW:"前加签处理",hi_monitor_tsAfterSignDW:"后加签处理",hi_monitor_tsBeforSigned:"已前加签",hi_monitor_tsAfterSigned:"已后加签",hi_monitor_day:"天",hi_monitor_hour:"小时",hi_monitor_Min:"分",hi_monitor_second:"秒",hi_monitor_gantt_dept:"所属部门",hi_monitor_gantt_role:"岗位职称",hi_dbType_AuditPoint_0:"已审核",hi_dbType_AuditPoint_1:"运行中",hi_dbType_AuditPoint_2:"审批中",hi_dbType_AuditPoint_99:"终止",hi_dbType_boolean_yes:"是",hi_dbType_boolean_no:"否"};var H=U;const G=function(e){let t=window.GLOBAL_LANG_HIUI||{},r=Object.assign({},H,t);return r[e]||e};let F={dbString:{format:function(e,t){return"function"==typeof t?t.call(window,e):e},formatView:function(e,t){return"function"==typeof t?t.call(window,e):e},type:"dbString",formType:{element:"el-input"}},dbInt:{format:function(e,t){if(e=parseInt(e),"eleAuditPoint"==t){let t="";switch(e){case 0:t=G("hi_dbType_AuditPoint_0");break;case 1:t=G("hi_dbType_AuditPoint_1");break;case 99:t=G("hi_dbType_AuditPoint_99");break;case 2:t=G("hi_dbType_AuditPoint_2");break;default:t=isNaN(e)?"":e}return t}return"function"==typeof t?t.call(window,e):isNaN(e)?"":(e*=1,t?j.format(e,t):e)},formatView:function(e,t){if("function"==typeof t)return t.call(window,e);let r=F.dbInt.format(e,t);return t&&t.indexOf("%")>0?e>0?'<font color="red">'+r+"</font>":'<font color="green">'+r+"</font>":r},defautlVal:0,type:"dbInt",queryType:{element:"HiNumberRange"},formType:{element:"hi-number",props:{precision:0,"controls-position":"right"}}},dbFloat:{format:function(e,t){return"function"==typeof t?t.call(window,e):(e=parseFloat(e),isNaN(e)?"":(e*=1,t?j.format(e,t):e))},formatView:function(e,t){if("function"==typeof t)return t.call(window,e);var r=F.dbFloat.format(e,t);return t&&t.indexOf("%")>0?e>0?'<font color="red">'+r+"</font>":'<font color="green">'+r+"</font>":r},type:"dbFloat",formType:{element:"hi-number",props:{"controls-position":"right"}},queryType:{element:"HiNumberRange"},defautlVal:0},dbDouble:{format:function(e,t){return"function"==typeof t?t.call(window,e):(e=parseFloat(e),isNaN(e)?"":(e*=1,t?j.format(e,t):e))},formatView:function(e,t){if("function"==typeof t)return t.call(window,e);var r=F.dbDouble.format(e,t);return t&&t.indexOf("%")>0?e>0?'<font color="red">'+r+"</font>":'<font color="green">'+r+"</font>":r},type:"dbDouble",formType:{element:"hi-number",props:{"controls-position":"right"}},queryType:{element:"HiNumberRange"},defautlVal:0},dbText:{format:function(e,t){return"function"==typeof t?t.call(window,e):e},formatView:function(e,t){return e},type:"dbText",formType:{element:"el-input",props:{type:"textarea",rows:5}},queryType:{element:"el-input",props:{}},gridType:{element:"hi-textarea",props:{popup:!0,rows:5}}},dbBoolean:{format:function(e,t){return"function"==typeof t?t.call(window,e):""===e?"":("boolean"!=typeof e&&1*e==e&&(e=parseInt(e)),"boolean"==typeof e||"number"==typeof e?G(e?"hi_dbType_boolean_yes":"hi_dbType_boolean_no"):e)},formatView:function(e,t){return F.dbBoolean.format(e,t)},parse:function(e){return"yes"==e||"是"==e||"1"==e||"true"==e||"y"==e},type:"dbBoolean",queryType:{element:"el-checkbox",props:{}},formType:{element:"el-checkbox",props:{}}},dbDatetime:{format:function(e,t){return"function"==typeof t?t.call(window,e):null==e||""==e?e:(t=t||"yyyy-MM-dd hh:mm:ss","string"==typeof e&&(e=S.strToDate(e)),S.format(e,t))},formatView:function(e,t){return F.dbDatetime.format(e,t)},type:"dbDatetime",queryType:{element:"HiTimeScheme"},formType:{element:"el-date-picker",props:{type:"datetime"}}},dbTimestamp:{format:function(e,t){return"function"==typeof t?t.call(window,e):null==e||""==e?e:(t=t||"yyyy-MM-dd hh:mm:ss","string"==typeof e&&(e=S.strToDate(e)),S.format(e,t))},formatView:function(e,t){return F.dbDatetime.format(e,t)},type:"dbTimestamp",formType:{element:"el-date-picker",props:{type:"datetime"}}},dbBasic:{type:"dbBasic"},dbArray:{type:"dbArray"},dbObject:{type:"dbObject"},dbList:{type:"dbList"}};F.dbDate=F.dbDatetime;var z=F;const q={getUrlParam(e){let t=window.location.search;t=t.substring(1,t.length);let r=t.split("&"),n={};for(let o=0;o<r.length;o++){const e=r[o];let t=e.split("=");n[t[0]]=t[1]}return e?n[e]:n},openUrl(e,t={},r="get",n){let o="formid"+(new Date).valueOf();!e.toLowerCase().startsWith("http")&&window.eap&&(e=window.eap.utils.biz.getUrl(e));var i=document.createElement("form");for(var a in i.method=r||"get",document.body.appendChild(i),i.target=n,i.action=e,t)if(!(e.indexOf(a+"=")>-1)){var s=document.getElementById(`${o}_${a}`);if(s)s.value=t[a];else{var u=document.createElement("input");u.type="hidden",u.name=a,u.value=t[a],i.appendChild(u)}}i.submit(),i.parentNode.removeChild(i)},mergeDefaultCfg(e,t){var r=e;for(var n in t)"object"==typeof t[n]&&(t[n]=q.recursionCfg(r,t[n])),"crlName"==n&&void 0!=r[t["crlName"]]&&(t=Object.assign({},r[t["crlName"]],t));return t},recursionCfg(e,t){var r=e;for(var n in t)"object"==typeof t[n]&&(t[n]=q.recursionCfg(r,t[n])),"crlName"==n&&void 0!=r[t["crlName"]]&&(t=Object.assign({},r[t["crlName"]],t));return t}};var V=q;let X=S,$=j,W=B,Y=z,J=V;var K={date:X,number:$,string:W,dbType:Y,bom:J};let Q=class{constructor(e){e=e||{},this.className="WhereCondition",this.enabled=null,this.sign=null,this.name=null,this.dataType=null,this.tablefilter=null,this.value=null,this.enabled=!0,this.setValue(e.name,e.value,e.dataType,e.sign,e.tablefilter)}setValue(e,t,r,n,o){this.sign=n||"eq",this.name=e||"",this.dataType=r||_.string,this.value=t,this.enabled=!0,this.tablefilter=void 0!=o&&o}getValue(){return{sign:this.sign,name:this.name,tablefilter:this.tablefilter,dataType:this.dataType,value:this.value,enabled:!0}}},Z=class e{constructor(e,t=[]){if(e=e||{},this.params=t,this.className="Where",this.join=null,this.items=null,e.junction&&(e.join=e.junction),e.join||(e.join="and"),null==e.criterionData)e.join||(e.join="and"),this.setWhereData(e.join,[]);else{var r=typeof e.criterionData,n={};switch(r){case"string":n=JSON.parse(e.criterionData);break;case"object":n=e.criterionData;break}this.setCriterionData(n)}}setValue(e,t){this.setWhereData(e,t)}setWhereData(e,t){this.join=e||"and",this.items=t||[]}setCriterionData(e){var t=typeof e,r={};switch(t){case"string":r=JSON.parse(e);break;case"object":r=e;break}this.join=r.join||"and",this.items=[],this.recursiveSetCriteria(this,r.items)}recursiveSetCriteria(t,r){var n=this;if(null!=r&&0!=r.length)for(var o=r.length,i=0;i<o;i++){var a=r[i];if(a.join){var s=new e({join:a.join});this.recursiveSetCriteria(s,a.items),t.addWhere(s)}else if(a.sign){var u=a.name.replace("&[","").replace("]","");if(u=u.replace("this.get('","").replace("')",""),"function"==typeof a.value){var c=n.filterValue(a.value);t.addCondition(u,c,a.dataType,a.sign,!1,a.tablefilter)}else t.addCondition(u,a.value,a.dataType,a.sign,!1,a.tablefilter)}}else t.items=[]}filterValue(e){var t;return t=e.call(this,...this.params),t}addWhere(e){if(e){let t=!1;for(let r=0;r<this.items.length;r++){let n=JSON.stringify(this.items[r]);if(n==JSON.stringify(e.toJSON())){t=!0;break}}t||this.items.push(e)}}addCondition(e,t,r,n,o,i){null!==t&&void 0!=t&&"null"!==t||(n="isnull",t="null"),"isnull"===n&&(t="null"),!n&&window.HIVUI_SETTING&&(n=window.HIVUI_SETTING.queryOperate||"eq"),n||(n="eq");let a,s=["in","notIn"];if("function"===typeof t&&(t=t.call()),E()(t)&&(t=X.format(t,"yyyy-MM-dd hh:mm:ss")),a=s.indexOf(n)>-1&&t&&!(t instanceof Array)?(t+"").split(","):t,o)for(var u=0;u<this.items.length;u++)if(e==this.items[u].name)return this.items[u].value=a,this.items[u].tablefilter=i,this.items[u].dataType=r||_.string,void(this.items[u].sign=n);var c=new Q({name:e,tablefilter:i,value:a,sign:n,dataType:r||_.string});this.items.push(c)}add(e,t,r,n,o){this.addEqual(e,t,r,n,o)}_addEqual(e,t,r,n,o){this.addCondition(e,t,r,"eq",n,o)}_addArray(e,t,r,n,o){t instanceof Array||!t.split||(t=t.split(",")),0!=t.length&&this.addCondition(e,t,r,"in",n,o)}_addNotIn(e,t,r,n,o){t instanceof Array||!t.split||(t=t.split(",")),0!=t.length&&this.addCondition(e,t,r,"notIn",n,o)}_addIsNull(e,t,r,n,o){this.addCondition(e,"",r,"isnull",n,o)}_addIsNotNull(e,t,r,n,o){this.addCondition(e,"",r,"isnotnull",n,o)}_addNotEqual(e,t,r,n,o){this.addCondition(e,t,r,"noteq",n,o)}_addGreaterThan(e,t,r,n,o){this.addCondition(e,t,r,"gt",n,o)}_addLessThan(e,t,r,n,o){this.addCondition(e,t,r,"lt",n,o)}_addGreaterThanAndEqual(e,t,r,n,o){this.addCondition(e,t,r,"gteq",n,o)}_addLike(e,t,r,n,o){this.addCondition(e,t,r,"like",n,o)}_addLessThanAndEqual(e,t,r,n,o){this.addCondition(e,t,r,"lteq",n,o)}_addLeftLike(e,t,r,n,o){this.addCondition(e,t,r,"likeLeft",n,o)}_addRightLike(e,t,r,n,o){this.addCondition(e,t,r,"likeRight",n,o)}eq(e,t,r,n,o){this._addEqual(e,t,r,n,o)}def(e,t,r,n,o){this.addCondition(e,t,r,null,n,o)}in(e,t,r,n,o){t instanceof Array||!t.split||(t=t.split(",")),0!=t.length&&this.addCondition(e,t,r,"in",n,o)}notIn(e,t,r,n,o){t instanceof Array||!t.split||(t=t.split(",")),0!=t.length&&this.addCondition(e,t,r,"notIn",n,o)}inRange(e,t,r,n,o){this.addCondition(e,t,r,"inRange",n,o)}outRange(e,t,r,n,o){this.addCondition(e,t,r,"outRange",n,o)}between(e,t,r,n,o){this.addCondition(e,t,r,"between",n,o)}noteq(e,t,r,n,o){this._addNotEqual(e,t,r,n,o)}gt(e,t,r,n,o){this._addGreaterThan(e,t,r,n,o)}gteq(e,t,r,n,o){this._addGreaterThanAndEqual(e,t,r,n,o)}lt(e,t,r,n,o){this._addLessThan(e,t,r,n,o)}lteq(e,t,r,n,o){this._addLessThanAndEqual(e,t,r,n,o)}like(e,t,r,n,o,i){this._addLike(e,t,r,o,i)}leftLike(e,t,r,n,o){this._addLeftLike(e,t,r,n,o)}rightLike(e,t,r,n,o){this._addRightLike(e,t,r,n,o)}getItemByIndex(e){return this.items[e]}deleteItemByIndex(e){this.items.splice(e,1)}getData(){var e=this.items.length;if(0==e)return null;for(var t={join:this.join,items:[]},r=0;r<e;r++){var n=this.items[r];this.recursiveWhereData(t,n)}return t}recursiveWhereData(e,t){if(t.items){var r=t.items.length;if(r>0){for(var n={join:t.join,items:[]},o=0;o<r;o++){var i=t.items[o];this.recursiveWhereData(n,i)}e.items.push(n)}}else{var a=t.getValue();e.items.push(a)}}toJSON(){return this.getData()}toStr(){return JSON.stringify(this.getData())}getConditionByKey(e){for(var t=this.items.length,r=0;r<t;r++){var n=this.items[r];if(n.name&&n.name==e)return n;{if(!n.items||0==n.items.length)return null;let t=this._recursionWhere1(n.items,e);if(null!=t)return t}}return null}_recursionWhere1(e,t){for(var r=0,n=e.length;r<n;r++){let n=e[r];if(n.name&&n.name==t)return n;if(!n.name){if(!n.items||0==n.items.length)return null;n.items.length>0&&this._recursionWhere1(n.items,t)}}}setCustomWhere(t){for(var r=new e({join:t||"and"}),n=0,o=this.items.length;n<o;n++)this.items[n].name?r.addCondition(this.items[n].name,this.items[n].value,this.items[n].dataType,this.items[n].sign,this.items[n].isCover,this.items[n].tablefilter):this._recursionWhere(r,this.items[n].items);this.join=r.join,this.items=r.items}_recursionWhere(e,t){for(var r=0,n=t.length;r<n;r++)t[r].name?e.addCondition(t[r].name,t[r].value,t[r].dataType,t[r].sign,t[r].isCover,t[r].tablefilter):this._recursionWhere(e,t[r].items)}isPaging(){var e=b.pageIndex,t=b.pageSize;return!(!m()(this,e)||!m()(this,t))}setPage(e,t){var r=b.pageIndex,n=b.pageSize;-1!=e&&-1!=t||(e=-1,t=-1),this[r]=e,this[n]=t}getPageIndex(){var e=this[b.pageIndex];return-1==e?1:e}getPageSize(){var e=this[b.pageSize];return-1==e?1e3:e}};Z.prototype.equal=Z.prototype.eq;var ee=Z;class te{constructor(e){e=e||{},this.orderData=[],e.orderData&&(this.orderData=e.orderData)}getOrderItemModel(){return{name:"",desc:"",type:"desc"}}addDesc(e,t){this.addOrder(e,"desc",t)}addAsc(e,t){this.addOrder(e,"asc",t)}addOrder(e,t,r){var n=this.getOrderItemModel();n.name=e,n.desc=r,n.type=t,this.orderData.push(n)}toJSON(){return this.orderData}toStr(){return JSON.stringify(this.orderData)}}class re{constructor(e){e=e||{},this.orders=null,this.className="Params",this.paramKey="queryParam",this.where=e.where||new ee,this.returnTotal=e.returnTotal,this.zcQuery=e.zcQuery,this.modelFilePath=e.modelFilePath||"",this.orders=e.orders,this.slaveEntities=e.slaveEntities||[],e.initData&&this.setJsonParamsData(e.initData),e.paramsData&&this.setJsonParamsData(e.paramsData),e.whereData&&this.setJsonWhereData(e.whereData)}createWhereByModel(e,t){t=t||{};let r=new ee;for(let n in e){let o=t.fields?t.fields[n]:null,i=e[n];null!=i&&""!=i&&void 0!=i&&(o?r[o.operate](n,i):K.isArray(i)?r.in(n,i):r.def(n,i))}return this.where?this.where.addConditions(r):this.where=r,r}setJsonWhereData(e){e&&(this.where=new ee({criterionData:e}))}setJsonParamsData(e){if(e){var t=typeof e,r={};switch(t){case"string":r=JSON.parse(e);break;case"object":r=e;break}r.queryCdions&&(this.where=new ee({criterionData:r.queryCdions})),r.orders&&(this.orders=new te({orderData:r.orders})),r.having&&(this.having=new ee({criterionData:r.having.criterion})),r.groupBy&&(this.groupBy=r.groupBy)}}setGroup(e){this.groupBy=e}getGroup(){return this.groupBy}getWhere(){return this.where}setWhere(e){this.where=e}setHaving(e){this.having=e}getHaving(){return this.having}getOrders(){return this.orders}setOrders(e){this.orders=e}toJSON(){var e={};if(this.where){var t=this.where.toJSON();t&&(e.queryCdions=this.where.toJSON())}return this.groupBy&&(e.groupBy=this.groupBy),this.orders&&(e.orderBy=this.orders.toJSON()),e}decodeStr(e){return unescape(e.replace(/\\(u[0-9a-fA-F]{4})/gm,"%$1"))}setSlaveEntities(e){this.slaveEntities=e}toStringWithKey(){var e={};let t=JSON.stringify(this.toJSON());if(e[b.body]=t,e[b.pageIndex]=this[b.pageIndex]||this.where[b.pageIndex],e[b.pageSize]=this[b.pageSize]||this.where[b.pageSize],e[b.returnTotal]=this.returnTotal,e[b.modelFilePath]=this.modelFilePath,e[b.zcQuery]=this.zcQuery,this.slaveEntities.length>0){for(var r=[],n=0;n<this.slaveEntities.length;n++)r.push(this.slaveEntities[n].toStringWithKey());e[b.slaveEntities]=JSON.stringify(r)}return e}toStr(){return JSON.stringify(this.toJSON())}isPaging(){var e=b.pageIndex,t=b.pageSize;return!(!_has(this,e)||!_has(this,t))}setPage(e,t){var r=b.pageIndex,n=b.pageSize;-1!=e&&-1!=t||(e=-1,t=-1),this[r]=e,this[n]=t}getPageIndex(){var e=this[b.pageIndex];return-1==e?1:e}getPageSize(){var e=this[b.pageSize];return-1==e?1e3:e}}var ne=r("6747"),oe=r.n(ne);let ie=(e,t,r,n)=>{let o=[],i={};if(e.length>0){let a=i[t]=e[0][t];e.forEach(e=>{a!=e[t]&&(o.push(i),i={},a=e[t],i[t]=a),i[e[r]]=e[n]}),o.push(i)}return o},ae=(e,t,r,{request:n,url:o,method:i,pn:a,extParam:s,viewItemId:u,rowToCol:c,async:l,success:f,fail:d})=>{let h,p={queryCdion:"{}"};if(e){let t;if("Where"==e.className)t=new re,t.where=e;else if("Params"==e.className)t=e;else{t=new re;let r=null,n=null,o=new ee;for(let t in e){let i=e[t];"$pageSize"!=t?"$pageIndex"!=t?oe()(i)?E()(i[0])?o.between(t,X.format(i[0],"yyyy-MM-dd hh:mm:ss")+"到"+X.format(i[1],"yyyy-MM-dd hh:mm:ss")):o.in(t,i):o.def(t,i):n=i:r=i}null!==r&&null!==n&&o.setPage(n,r),t.where=o}p=t.toStringWithKey()}p.modelFilePath=t,p[b.funcpath]=r,p[b.viewItemId]=u,s&&Object.assign(p,s);let g=o;return r=r||"",a&&(g=-1==g.indexOf("?")?g+"?pn="+a:g+"&pn="+a),h=n({url:g,method:i||"post",async:l,data:p,success:f,fail:d}),h},se=({request:e,url:t,csv:r})=>{let n={csv:r};return e({url:t,method:"get",params:n})},ue=(e,t,r,{request:n,url:o,method:i,pn:a,viewItemId:s,extParam:u})=>{let c,l,f={};if(e){let t;if("Where"==e.className)t=new re,t.where=e;else if("Params"==e.className)t=e;else{t=new re;let r=null,n=null,o=new ee;for(let t in e){let i=e[t];"$pageSize"!=t?"$pageIndex"!=t?oe()(i)?E()(i[0])?o.between(t,X.format(i[0],"yyyy-MM-dd hh:mm:ss")+"到"+X.format(i[1],"yyyy-MM-dd hh:mm:ss")):o.in(t,i):o.def(t,i):n=i:r=i}null!==r&&null!==n&&o.setPage(n,r),t.where=o}f[b.body]=t.toJSON(),f[b.pageIndex]=t.where[b.pageIndex],f[b.pageSize]=t.where[b.pageSize],f[b.viewItemId]=s}f[b.funcpath]=r,f.modelFilePath=t,u&&(u.sheetStyle&&(f[b.sheetStyle]=u.sheetStyle,delete u.sheetStyle),void 0!==u[b.slaveExport]&&(f[b.slaveExport]=u[b.slaveExport],delete u[b.slaveExport])),void 0==f[b.slaveExport]&&e.zcQuery&&(f[b.slaveExport]=e.zcQuery),r=r||"",l=o,a&&(l=-1==l.indexOf("?")?l+"?pn="+a:l+"&pn="+a);let d={};return f.title&&(d.title=f.title,delete f.title),d[b.sheetDatas]=JSON.stringify([f]),d.__isIntercept=!1,u&&(d=Object.assign(d,u)),c=n({url:l,method:i||"post",data:d}),c};var ce={Param:re,Where:ee,types:_,Orders:te,query:ae,exportData:ue,rowToCol:ie,getExportParam:se},le=r("0644"),fe=r.n(le);const de={root:"__body",version:"__version",data:"data",funcPath:"__funcpath",modelFile:"modelFilePath",funcFile:"fpath",state:"$state",old:"$old",insertStateVal:"rsInsert",updateStateVal:"rsUpdate",removeStateVal:"rsDelete",overrideStateVal:"rsOverride",normalStateVal:"rsNormal",viewItemId:"viewItemId"};class he{constructor(e,t,{request:r,url:n,wsUrl:o,pn:i,viewItemId:a,extParam:s,colToRow:u}){this.className="SavePackHelper",this.modelFile=e,this.request=r,this.colToRow=u,this.viewItemId=a,this._appendSavePack=[],t=t||"",this.url=n,this.wsUrl=o,this.funcPath=t,this.extParam=s,this.pn=i,this.dataPacks={},this.dataPacks[de.data]=[],this.dataPacks[de.modelFile]=this.modelFile}insertOrDeletePackageColToRow(e){let t=this.colToRow,r=[],n=t.colField,o=t.valField,i=t.rowField,a={};a[t.rowField]=e[i]||(new Date).valueOf();for(let s in e)s.startsWith("$")&&(a[s]=e[s]);for(let s in e){if(s.startsWith("$"))continue;let t=fe()(a);t[n]=s,t[o]=e[s],r.push(t)}return r}updatePackageColToRow(e){let t=this.colToRow,r=[],n=t.colField,o=t.valField,i=t.rowField,a={},s={};s[t.rowField]=e[de.old][i];for(let u in e)u.startsWith("$")&&(a[u]=e[u]);for(let u in e){if(u.startsWith("$"))continue;let t=fe()(a),i=fe()(s);t[o]=e[u],i[o]=e[de.old][u],i[n]=u,t[de.old]=i,r.push(t)}return r}conversion(e){if(e){const t={};for(const r in e){const n=e[r];void 0!==n&&(E()(n)?t[r]=X.format(n,"yyyy-MM-dd hh:mm:ss"):null==n||"object"!=typeof n||n[de.modelFile]?t[r]=n:t[r]=JSON.stringify(n))}return t}}normal(e){var t=this;e=this.conversion(e),e[de.state]=de.normalStateVal,this.colToRow&&this.colToRow.rowField?t.dataPacks[de.data]=t.dataPacks[de.data].concat(this.insertOrDeletePackageColToRow(e)):t.dataPacks[de.data].push(e)}add(e){var t=this;e=this.conversion(e),e[de.state]=de.insertStateVal,this.colToRow&&this.colToRow.rowField?t.dataPacks[de.data]=t.dataPacks[de.data].concat(this.insertOrDeletePackageColToRow(e)):t.dataPacks[de.data].push(e)}update(e,t){var r=this,n={};for(var o in t=this.conversion(t),e=this.conversion(e),t)void 0!==t[o]&&(n[o]=t[o]);n[de.state]=de.updateStateVal,n[de.old]=e,this.colToRow&&this.colToRow.rowField?r.dataPacks[de.data]=r.dataPacks[de.data].concat(this.updatePackageColToRow(n)):r.dataPacks[de.data].push(n)}setRedundant(e,t){}override(e,t){t||(t=e,e=null),e&&(e=this.conversion(e)),t=this.conversion(t);var r=this,n={};for(var o in t)void 0!==t[o]&&(n[o]=t[o]);n[de.state]=de.overrideStateVal,e&&(n[de.old]=e),this.colToRow&&this.colToRow.rowField?r.dataPacks[de.data]=r.dataPacks[de.data].concat(this.updatePackageColToRow(n)):r.dataPacks[de.data].push(n)}remove(e){var t=this;e[de.state]=de.removeStateVal,e=this.conversion(e),this.colToRow&&this.colToRow.rowField?t.dataPacks[de.data]=t.dataPacks[de.data].concat(this.insertOrDeletePackageColToRow(e)):t.dataPacks[de.data].push(e)}toString(){return JSON.stringify(this.dataPacks)}clear(){this.dataPacks={}}getDataPack(){return this.dataPacks}isEmpty(){return!(this.dataPacks[de.data]&&this.dataPacks[de.data].length>0)}appendSavePack(e){this._appendSavePack.push(e)}save(e,t){e=e||{};let r={};this._appendSavePack.unshift(this.getDataPack()),r[de.root]=JSON.stringify(this._appendSavePack),r[de.funcPath]=this.funcPath,r[de.viewItemId]=this.viewItemId,this.extParam&&Object.assign(r,this.extParam),Object.assign(r,e),t&&t.call(this,e,r,r[de.root]);let n=this.url;this.pn&&(n=-1==n.indexOf("?")?n+"?pn="+this.pn:n+"&pn="+this.pn),e.wsid&&(n=-1==n.indexOf("?")?n+"?wsid="+e.wsid:n+"&wsid="+e.wsid);let o=e.showError;return delete e.showError,this.request({url:n,method:"post",showError:o,data:r})}wsSave(e={},t){let r=(new Date).valueOf();if(!this.wsUrl)throw new Error("未配置webscoket保存地址[saveWsUrl]");let n=this.wsUrl.replace("{id}",r),o=new WebSocket(n),i=this;return o.addEventListener("open",(function(){e.wsid=r,e.showError=!1,i.save(e,t)})),o}}let pe=({request:e,url:t,ftaskguid:r,flowtype:n})=>{let o,i=t||x.getApprovalInfo;return r&&(i=-1==i.indexOf("?")?i+"?ftaskguid="+r:i+"&ftaskguid="+r),n&&(i=-1==i.indexOf("?")?i+"?flowtype="+n:i+"&flowtype="+n),o=e({url:i,method:"post"}),o},ge=({request:e,url:t,data:r,param:n})=>{let o,i=t||x.processFlow,a={__body:JSON.stringify(r)};return n&&Object.assign(a,n),o=e({url:i,data:a,method:"post"}),o},ye=({request:e,url:t,param:r})=>{let n,o=t||x.queryTask;return n=e({url:o,data:r,method:"post"}),n},_e=({request:e,url:t,data:r})=>{let n;return n=e({url:t||x.getFlowInfo,data:r,method:"post"}),n},be=({request:e,fordernumber:t,url:r})=>{let n,o=r||x.openOrdernumber,i=`${o}?fordernumber=${t}`;return n=e({url:i,method:"get"}),n},ve=({request:e,url:t,ftaskguid:r})=>{let n,o=t||x.withdrawtask,i=`${o}?ftaskguid=${r}`;return n=e({url:i,method:"get"}),n},me=({request:e,url:t,fordernumber:r})=>{let n,o=t||x.umpireOrder,i=`${o}?fordernumber=${r}`;return n=e({url:i,method:"get"}),n},we=({request:e,url:t,forderguid:r,fmodelpath:n,fversion:o})=>{let i,a=t||x.taskDiagram,s=`${a}?fmodelpath=${n}${o?"&fversion="+o:""}`;return r&&(s=s+"&forderguid="+r),i=e({url:s,method:"get"}),i},Ee=({request:e,url:t,fordernumber:r})=>{let n,o,i=t||x.ganttChart;return r&&(o=i+"?fordernumber="+r),n=e({url:o,method:"get"}),n};var Oe={getApprovalInfo:pe,processFlow:ge,queryTask:ye,getFlowInfo:_e,withdrawtask:ve,taskDiagram:we,ganttChart:Ee,openOrdernumber:be,umpireOrder:me};let xe=({request:e,url:t,data:r})=>{let n;return n=e({url:t,data:r,method:"post"}),n};var Te={getFuncInfo:xe},Se={queryHelper:ce,saveHelper:he,flowHelper:Oe,funcHelper:Te},Ae=Se;function je(){return window.eap.userInfo||{}}function Pe(){return window.eap.userInfo&&window.eap.userInfo.main?window.eap.userInfo.main:window.eap.userInfo?window.eap.userInfo:{}}var Ie={userId:function(){return Pe().fuserid||""},userName:function(){return Pe().fusername||""},deptId:function(){return Pe().fdeptid||""},deptName:function(){return Pe().fdeptname||""},roleId:function(){return Pe().froleid||""},roleName:function(){return Pe().frolename||""},orgPath:function(){return Pe().fuserorgpath||""},orgName:function(){return Pe().forgname||""},orgId:function(){return Pe().forgid||""},superId:function(){return je().fsuperuserid||""},superName:function(){return je().fsuperusername||""},bzId:function(){return je().fbzid||""},bzName:function(){return je().fbzname||""},bzDeptId:function(){return je().fdeptid||""},bzDeptName:function(){return je().fdeptname||""},bzRoleId:function(){return je().froleid||""},bzRoleName:function(){return je().frolename||""},bzOrgPath:function(){return je().fuserorgpath||""},bzOrgName:function(){return je().forgname||""},bzOrgId:function(){return je().forgid||""},orgDeptId:function(){return(je().forgid||"")+"."+(je().fdeptid||"")},orgDeptName:function(){return(je().forgname||"")+"."+(je().fdeptname||"")},bzSuperId:function(){return je().fsuperbzid||""},bzSuperName:function(){return je().fsuperbzname||""},saasDeptId:function(){return je().fdeptid.replace(window.eap.userInfo.forgid+"_","").replace(window.eap.userInfo.forgid+"-","")},saasRoleId:function(){return je().froleid.replace(window.eap.userInfo.forgid+"_","").replace(window.eap.userInfo.forgid+"-","")},proxyId:function(){return window.eap.userInfo?window.eap.userInfo.fuserid:""},proxyName:function(){return window.eap.userInfo?window.eap.userInfo.fusername:""},bzProxyId:function(){return window.eap.userInfo?window.eap.userInfo.fbzid:""},bzProxyName:function(){return window.eap.userInfo?window.eap.userInfo.fbzname:""},getBzByRole:function(e){return[]},getBzByDept:function(e){return""},getBzByRole:function(){return getBzByRole(roleId())},getBzByDept:function(){return getBzByDept(deptId())}};const Ce="/platf/useroperate/entity/SysUseroperate.xml";function Me(e){if(!e.toLowerCase().startsWith("ws://")&&!e.toLowerCase().startsWith("wss://")){let t=window.HIVUI_SETTING.url;t=t.replace("https","wss"),t=t.replace("http","ws"),e=e.startsWith("/")?t+e:t+"/"+e}if(window.HIVUI_SETTING.projectName&&-1==e.indexOf("pn=")){let t=window.HIVUI_SETTING.projectName;e=-1==e.indexOf("?")?e+"?pn="+t:e+"&pn="+t}return e}function De(e){let t=window.HIVUI_SETTING.project||window.HIVUI_SETTING.projectName||"";if(-1!=t.indexOf("/")&&(t=t.split("/")[0]),-1!=e.indexOf(".pro")){let t=e,r="";-1!=t.indexOf("?")&&(t=t.substring(0,t.lastIndexOf("?")),r=e.substring(e.lastIndexOf("?")));let n=t.substring(t.lastIndexOf("."));e=t.replace(/\.\w+/g,"")+n+r}if(t){let r=e.split("/");""!=r[0]?r[0]=t:r[1]=t,e=r.join("/")}let r="";return e.startsWith("/")?r+=e:r=r+"/"+e,window.HIVUI_SETTING.projectName&&(r=-1!=e.indexOf("?")?r+"&pn="+window.HIVUI_SETTING.projectName:r+"?pn="+window.HIVUI_SETTING.projectName),r}var Ne={getWsUrl:Me,createNumber(){return"NEW-YYMMDD-9999"},getDownloadUrl(e,t){var r=e.substr(e.lastIndexOf(".")+1),n="";return n=t?`${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${e}&access_token=${window.eap.user.auth.getToken()}&name=${t}.${r}`:`${window.HIVUI_SETTING.download}?pn=${window.HIVUI_SETTING.projectName}&path=${e}&access_token=${window.eap.user.auth.getToken()}`,n},delUserData(e,t){let r=new Ae.saveHelper(Ce,null,{request:window.HIVUI_SETTING.request,url:window.HIVUI_SETTING.saveUrl,pn:window.HIVUI_SETTING.projectName});return r.remove({FKEY:e,FUSERID:Ie.bzId(),FTYPE:t}),r.save()},async getUserData(e,t){var r=new Ae.queryHelper.Where({junction:"and"});r.addCondition("FKEY",e,"dbString"),r.addCondition("FTYPE",t,"dbString"),r.addCondition("FUSERID",Ie.bzId(),"dbString");var n=new Ae.queryHelper.Param({where:r});let o=await Ae.queryHelper.query(n,Ce,null,{request:window.HIVUI_SETTING.request,url:window.HIVUI_SETTING.queryUrl,pn:window.HIVUI_SETTING.projectName});return o.dataPack.rows.length>0?o.dataPack.rows[0].FVALUE:null},saveUserData(e,t,r,n){let o=new Ae.saveHelper(Ce,null,{request:window.HIVUI_SETTING.request,url:window.HIVUI_SETTING.saveUrl,pn:window.HIVUI_SETTING.projectName});return o.override({FKEY:e,FUSERID:Ie.bzId(),FTYPE:r},{FKEY:e,FUSERID:Ie.bzId(),FTYPE:r,FVALUE:"string"==typeof t?t:JSON.stringify(t),FNAME:n||""}),o.save()},getUrl:De,getResUrl(e){return HIVUI_SETTING.deployDir+De(e)}},Le={biz:Ne,FormFunc:Ne,DateFunc:K.date,NumberFunc:K.number,StringFunc:K.string,BomFunc:K.bom,OrgFunc:Ie};const ke=s.a.create({baseURL:"http://192.168.4.106:7777",timeout:3e4});let Re=!0;try{Re=!(!Re||!y["Message"])}catch(ct){Re=!1}function Be(e,t={}){let r=Le.StringFunc.id(8),n={top:15,margin:20,right:15},o="msgBox"==window.HIVUI_SETTING.messageType;e.showClose&&(n.margin+=15,n.right+=25),o&&(n.top=0,n.right=0,n.margin=20);let i=`<div class="zhcDetailMsg" style="max-height:200px;min-height: 20px;padding:3px 0;word-break:break-all;margin-right: ${n.margin}px;overflow:auto;transition:all 0.3s;"><span>${t.msg||t.resmessage}</span><i class="el-icon-caret-right" title="${window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail||"弹出报错详情"}" style="position: absolute;top:${n.top}px;right:${n.right}px;font-size:18px;color:#F56C6C;cursor:pointer;transition:all 0.3s;"></i></div>`,a=null,s=t.detailMsg&&t.detailMsg!=e.message;if(e.customClass=r,o?(e.message=s?i:`<div style="max-height:200px;word-break:break-all;overflow:auto;">${e.message}</div>`,a=Object(y["MessageBox"])({title:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_msgTips||"消息提示",confirmButtonText:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_define||"确定",dangerouslyUseHTMLString:!0,...e})):(s&&(e.message=i,e.dangerouslyUseHTMLString=!0),a=Object(y["Message"])(e)),s){let e=document.querySelector("."+r+" .zhcDetailMsg>i");e.onclick=()=>{"zhcDetailMsg"==e.previousSibling.className?(e.previousSibling.innerText=t.msg||t.resmessage,e.previousSibling.className="",e.title=window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail||"弹出报错详情",e.style.color="#F56C6C",e.style.transform="rotate(0)"):(e.previousSibling.innerText=t.detailMsg,e.previousSibling.className="zhcDetailMsg",e.title=window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_hideErrorDetail||"收起报错详情",e.style.color="",e.style.transform="rotate(90deg)")}}}function Ue(e){if(window.customSysCofig.showMiniLogin&&top.window.SysPage&&top.window.SysPage.openMiniLogin)top.window.SysPage.openMiniLogin();else{let t=window.HIVUI_SETTING.customLoginUrl||window.HIVUI_SETTING.loginUrl;if(window.HIVUI_SETTING.isSingleLogin){if(t=window.HIVUI_SETTING.singleLoginUrl,t.endsWith("=")){let e=window.location.search.slice(1).split("&").filter(e=>{if(-1==e.indexOf("ticket"))return e}),r=window.location.origin+window.location.pathname;-1==window.HIVUI_SETTING.mainPageUrl.indexOf(r)&&(e.push("eapReturnUrl="+r),r=window.HIVUI_SETTING.mainPageUrl),r=r.replace(/#\//g,""),t=t+r+(e.length>0?"?":"")+e.join("&")}}else t.endsWith("#/")||(t+="#/"),t+="?eapReturnUrl="+encodeURIComponent(window.location.href);top.window.mainPageInitErrorJump||e?window.location.href=t:Re&&y["MessageBox"].alert(window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips||"你已被登出,请重新登录",window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut||"登录超时",{confirmButtonText:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist||"重新登录",type:"warning",showClose:!1}).then(()=>{window.location.href=t})}}ke.defaults.headers.post["Content-Type"]="application/json;charset=UTF-8",ke.interceptors.request.use(e=>{void 0===e.headers["Content-Type"]&&(e.headers["Content-Type"]="application/json;charset=UTF-8");const t=d();"undefined"==typeof e.showSuccessTips&&(e.showSuccessTips=!0),"undefined"==typeof e.showError&&(e.showError=!0),!t||e.noToken||e.url.startsWith("http")&&!e.url.startsWith(window.HIVUI_SETTING.url)||(e.headers["Authorization"]="Bearer "+t);let r=c.a.get("locale");if(r&&("post"==e.method?(e.params||(e.params={}),e.params.locale=r):e.url=Le.StringFunc.setUrlValue(e.url,"locale",r)),window.HIVUI_SETTING){let t=window.HIVUI_SETTING.url;if(e.url.toLowerCase().startsWith("http")||(e.url.startsWith("/")?e.url=t+e.url:e.url=t+"/"+e.url),(window.HIVUI_SETTING.requestTimeout||0==window.HIVUI_SETTING.requestTimeout)&&(e.timeout=window.HIVUI_SETTING.requestTimeout),window.HIVUI_SETTING.projectName&&-1==e.url.indexOf("pn=")&&(!e.params||!e.params.pn)){let t=window.HIVUI_SETTING.projectName;-1==e.url.indexOf("?")?e.url=e.url+"?pn="+t:e.url=e.url+"&pn="+t}if(window.scpRequestData&&window.scpRequestData.fbzid){let t=window.scpRequestData.fbzid;"post"==e.method?(e.params||(e.params={}),e.params.fbzid=t):e.url=Le.StringFunc.setUrlValue(e.url,"fbzid",t)}}const n=e.headers["sign"];if(n||void 0===n){const t=(new Date).getTime().toString().substr(0,10);e.headers["timeStamp"]=t}return e.isDownload&&(e.responseType="blob",delete e.isDownload),e},e=>Promise.reject(e)),ke.interceptors.response.use(e=>{if("arraybuffer"==e.config.responseType)return e;if(e.config.normalResult)return e;const t=e.data;if("application/octet-stream"==t.type||"application/octet-stream"==e.headers["content-type"])return e;if("blob"==e.config.responseType){let e=new FileReader;return e.readAsText(t,"utf-8"),e.onload=function(){let r=JSON.parse(e.result);return Re&&Be({message:r.msg||r.message||"Error",type:"error",showClose:!0},t)},Promise.reject(t)}if("200"!=e.status||e.data.status&&"200"!=e.data.status){let n={};try{n=JSON.parse(e.config.data)}catch(r){}if(!1===n.__isIntercept){if(e.config.data)try{t.options=JSON.parse(e.config.data)}catch(ct){}return Promise.reject(t)}return setTimeout(()=>{Re&&Be({message:t.msg||t.message||"Error",type:"error",showClose:!0,duration:5e3},t)},0),401==t.status||t.data&&401==t.data.status?(Ue(e.config.isSkip),Promise.reject(error)):Promise.reject(t,JSON.parse(e.config.data||"{}"))}if(t.dataPack=t.dataPack||t.data,(t.detailMsg||t.msg)&&e.config.showSuccessTips&&Re&&Be({message:t.detailMsg||t.msg||"Error",type:t.popupbox&&t.popupbox.type||"success",showClose:!0,duration:5e3},t),e.config.data)try{t.options=JSON.parse(e.config.data)}catch(ct){}return t},e=>{let t=e.response;if(e.config&&!e.config.showError)return;if(!t)return void(Re&&Be({message:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_responseNull||"后端请求返回出错,请联系开发人员",type:"error",showClose:!0,duration:5e3}));let r={};try{r=JSON.parse(t.config.data)}catch(n){}return!1===r.__isIntercept?Promise.reject(e):401==t.status||t.data&&401==t.data.status?(Ue(t.config.isSkip),Promise.reject(e)):(console.log("err"+e),Promise.reject(e))});var He=ke;function Ge(e){const t=d();if(window.HIVUI_SETTING&&((window.HIVUI_SETTING.requestTimeout||0==window.HIVUI_SETTING.requestTimeout)&&(e.timeout=window.HIVUI_SETTING.requestTimeout),window.HIVUI_SETTING.projectName)){let t=window.HIVUI_SETTING.projectName;-1==e.url.indexOf("?")?e.url=e.url+"?pn="+t:e.url=e.url+"&pn="+t}let r=e.url||"",n=e.method||"GET",o=e.data||{},i=e.success,a=void 0==e.async||e.async,s=e.fail;var u=new XMLHttpRequest;if(u.open(n,r,a),e.timeout&&!0===a&&(u.timeout=e.timeout),u.setRequestHeader("Content-Type","application/json;charset=UTF-8"),!t||e.noToken||r.startsWith("http")&&!r.startsWith(window.HIVUI_SETTING.url)||u.setRequestHeader("Authorization","Bearer "+t),"{}"!=JSON.stringify(o)?u.send(JSON.stringify(o)):u.send(),0==a)if(200==u.status){var c=JSON.parse(u.responseText);i&&i.call(this,c)}else{c=JSON.parse(u.responseText);Re&&Be({message:c.msg||c.message||"Error",type:"error",showClose:!0,duration:5e3},c),401==c.status||c.data&&401==c.data.status?window.customSysCofig.showMiniLogin&&top.window.SysPage&&top.window.SysPage.openMiniLogin?top.window.SysPage.openMiniLogin():Re&&y["MessageBox"].alert(window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips||"你已被登出,请重新登录",window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut||"登录超时",{confirmButtonText:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist||"重新登录",type:"warning",showClose:!1}).then(()=>{let e=window.HIVUI_SETTING.loginUrl;e.endsWith("=")&&(e+=window.location.href),window.location.href=window.HIVUI_SETTING.customLoginUrl||e}):s&&s.call(this,u.responseText)}else u.onreadystatechange=function(){if(4==u.readyState)if(200==u.status||"200"==u.status){var e=JSON.parse(u.responseText);i&&i.call(this,e)}else{e=JSON.parse(u.responseText);Re&&Be({message:e.msg||e.message||"Error",type:"error",showClose:!0,duration:5e3},e),401==e.status||e.data&&401==e.data.status?window.customSysCofig.showMiniLogin&&top.window.SysPage&&top.window.SysPage.openMiniLogin?top.window.SysPage.openMiniLogin():Re&&y["MessageBox"].alert(window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips||"你已被登出,请重新登录",window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut||"登录超时",{confirmButtonText:window.GLOBAL_LANG_TPL&&window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist||"重新登录",type:"warning",showClose:!1}).then(()=>{let e=window.HIVUI_SETTING.loginUrl;e.endsWith("=")&&(e+=window.location.href),window.location.href=window.HIVUI_SETTING.customLoginUrl||e}):s&&s.call(this,u.responseText)}}}var Fe=function(e){var t;if(window.isElectron||top.window.isElectron)for(var r in window.electronCfg&&(t=window.electronCfg.urlCallback),top.window.electronCfg&&(t=top.window.electronCfg.urlCallback),t)if(e.url.indexOf(r)>-1)return t[r](e);return He(e)},ze=Fe;function qe(e,t){var r={username:e.trim(),password:I()(t)};let n=ze({url:window.HIVUI_SETTING.login||window.HIVUI_SETTING.serverUrl+"/login/sso-login",method:"post",data:r});return n.then(e=>{const t=e;t.token&&h(t.token),"#miniLogin"==location.hash&&("ajax"==Le.StringFunc.getUrlValue("questType")?top.window.SysPage&&top.window.SysPage.closeMiniLogin(Le.StringFunc.getUrlValue("isRefresh")):location.reload())}),n}function Ve(){if(!d())return new Promise((e,t)=>{e()});let e=ze({url:window.HIVUI_SETTING.logout||window.HIVUI_SETTING.serverUrl+"/login/sso-logout",method:"post"});return e.then(e=>{p()}),e}function Xe(e){return ze({url:window.HIVUI_SETTING.userInfo,method:"post",data:e})}function $e(e,t){return ze({url:window.HIVUI_SETTING.serverUrl+"/sys/user/update-pwd",method:"post",data:{oldPwd:e,newPwd:t}})}function We(e){return ze({url:window.HIVUI_SETTING.serverUrl+"/sys/auth/func-multi-bz",method:"post",data:e})}function Ye(e,t){var r={userId:e.trim(),password:I()(t)};return ze({url:window.HIVUI_SETTING.serverUrl+"/login/unlock",method:"post",data:r})}var Je={login:qe,logout:Ve,getInfo:Xe,modifyPw:$e,getBzList:We,unlock:Ye},Ke={service:Je,auth:g},Qe={closepage(){top.window.SysPage&&top.window.SysPage.closePage?top.window.SysPage.closePage():window.close()},newPage(e,t,r,n,o){t&&0!=t.indexOf("http")&&(t=location.origin+(top.window.deployDir?"/"+top.window.deployDir:"")+(top.window.pName?"/"+top.window.pName:"")+t),top.window.SysPage&&top.window.SysPage.newPage?top.window.SysPage.newPage(e,t,r,n,o):window.open(t,"_blank")}};let Ze=(e,t,r,n={})=>{let o=window.HIVUI_SETTING;return!n.request&&o&&(n.request=o.request),!n.pn&&o&&(n.pn=o.projectName),!n.url&&o&&(n.url=o.queryUrl),Ae.queryHelper.query(e,t,r,n)},et=(e,t,r,n={})=>{let o=window.HIVUI_SETTING;return!n.request&&o&&(n.request=o.request),!n.pn&&o&&(n.pn=o.projectName),!n.url&&o&&(n.url=o.exportUrl),Ae.queryHelper.exportData(e,t,r,n)};class tt extends Ae.saveHelper{constructor(e,t,r={}){let n=window.HIVUI_SETTING;!r.request&&n&&(r.request=n.request),!r.pn&&n&&(r.pn=n.projectName),!r.url&&n&&(r.url=n.saveUrl),super(e,t,r)}}var rt={query:Ze,exportData:et,Param:Ae.queryHelper.Param,Where:Ae.queryHelper.Where,types:Ae.queryHelper.types,Orders:Ae.queryHelper.Orders,SaveHelper:tt},nt=r("3f84"),ot=r.n(nt),it=r("ed27");function at(){let e=[...arguments];return ot()(...e)}let st={get(e){let t={};return window.lang&&window.lang.keys&&(t=window.lang.keys),t[e]||e}};var ut={user:Ke,ajax:Ge,request:Fe,mergeConfig:at,lang:st,utils:Le,page:Qe,dataHelper:rt};window.HIVUI_SETTING||(window.HIVUI_SETTING=x),window.lang=st,console.log("%c hi-eap-basic %c v".concat(it.version," "),"padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #ff8e15; font-weight: bold;","padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");t["default"]=ut},fba5:function(e,t,r){var n=r("cb5a");function o(e){return n(this.__data__,e)>-1}e.exports=o},fbb2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericBarcode=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r("e762"),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(e,r){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return c(t,e),n(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(i.default);t.GenericBarcode=l},fd7c:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(e,t){return n({},e,t)}},ff84:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("349c"),o=r("da3d"),i=r("241e"),a=r("9ffa"),s=r("8e51"),u=r("7cb9"),c=r("c17b"),l=r("fbb2");t.default={CODE39:n.CODE39,CODE128:o.CODE128,CODE128A:o.CODE128A,CODE128B:o.CODE128B,CODE128C:o.CODE128C,EAN13:i.EAN13,EAN8:i.EAN8,EAN5:i.EAN5,EAN2:i.EAN2,UPC:i.UPC,UPCE:i.UPCE,ITF14:a.ITF14,ITF:a.ITF,MSI:s.MSI,MSI10:s.MSI10,MSI11:s.MSI11,MSI1010:s.MSI1010,MSI1110:s.MSI1110,pharmacode:u.pharmacode,codabar:c.codabar,GenericBarcode:l.GenericBarcode}},ffd6:function(e,t,r){var n=r("3729"),o=r("1310"),i="[object Symbol]";function a(e){return"symbol"==typeof e||o(e)&&n(e)==i}e.exports=a}})})); //# sourceMappingURL=eap.umd.min.js.map
Ignore Space
Show notes
View
package.json
{ "name": "hi-vui-template", "version": "1.1.59", "description": "A hi-vui-template project", "author": "zhcTeam", "scripts": { "rm:vite": "rimraf node_modules/.vite && rimraf node_modules/.cache", "pm2:start": "pm2 -s start processes.json", "dev": "vite --host", "def": "vite --host", "build": "node build/copyBaseAssets.js && cross-env NODE_ENV=production node build/webpack.prod.conf.js", "build:modules": "cross-env NODE_ENV=production node build/webpack.prod.conf.js", "build1": "webpack --mode production --config build/webpack.prod.conf.js", "dll": "webpack --config build/webpack.dll.conf.js", "start": "webpack-dev-server --config build/webpack.dev.conf.js", "copyassets": "node build/copyBaseAssets.js" }, "devDependencies": { "@babel/core": "^7.1.2", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7", "@babel/plugin-proposal-optional-chaining": "^7.16.7", "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/preset-env": "^7.1.0", "@vitejs/plugin-vue-jsx": "^1.3.3", "@vue/babel-helper-vue-jsx-merge-props": "^1.2.1", "@vue/babel-preset-jsx": "^1.2.4", "add-asset-html-webpack-plugin": "^3.2.0", "autoprefixer": "^9.1.5", "babel-loader": "^8.0.4", "babel-plugin-component": "^1.1.1", "babel-plugin-transform-vite-meta-env": "^1.0.3", "caniuse-lite": "^1.0.30001436", "chalk": "^3.0.0", "clean-webpack-plugin": "^0.1.19", "copy-webpack-plugin": "^4.5.3", "cross-env": "^7.0.3", "css-loader": "^1.0.0", "dotenv": "^10.0.0", "file-loader": "^2.0.0", "happypack": "^5.0.1", "html-webpack-plugin": "^4.5.2", "less": "3.0.4", "less-loader": "5.0.0", "mini-css-extract-plugin": "^1.6.2", "node-sass": "4.14.1", "optimize-css-assets-webpack-plugin": "^5.0.1", "parallel-webpack": "^2.6.0", "postcss-import": "^11.1.0", "postcss-loader": "^2.1.6", "postcss-url": "^7.3.2", "progress-bar-webpack-plugin": "^2.1.0", "sass": "1.57.1", "sass-loader": "7.3.1", "style-loader": "^0.23.0", "terser-webpack-plugin": "^4.2.3", "thread-loader": "^3.0.4", "uglifyjs-webpack-plugin": "^2.0.1", "url-loader": "^1.1.1", "vite": "^2.9.15", "vite-plugin-html": "^2.1.1", "vite-plugin-imp": "^2.0.11", "vite-plugin-pagedata": "^1.0.4", "vite-plugin-vue2": "^1.9.0", "vue-loader": "^15.4.2", "vue-template-compiler": "2.6.14", "webpack": "^4.46.0", "webpack-cli": "^4.9.2", "webpack-dev-server": "^3.11.3", "webpack-merge": "^4.1.4" }, "dependencies": { "axios": "0.20.0", "babel-polyfill": "6.26.0", "classnames": "2.3.1", "echarts": "5.2.2", "element-ui": "2.15.3", "enquire.js": "2.1.6", "event-emitter": "^0.3.5", "font-awesome": "4.7.0", "hi-taskcenter": "^1.0.9", "hi-ui": "^1.2.3560", "js-cookie": "3.0.1", "js-md5": "0.7.3", "js-pinyin": "0.1.9", "lodash": "4.17.11", "qrcode": "^1.5.3", "screenfull": "6.0.0", "sortablejs": "1.14.0", "v-clipboard": "2.2.3", "vue": "2.6.14", "vue-draggable-resizable": "2.3.0", "vue-gemini-scrollbar": "2.0.1", "vue-jstree": "2.1.6", "vue-router": "3.3.4", "vuex": "3.6.2", "zhc-birt-cmps": "^3.0.10", "zhc-flowchart": "^1.0.20", "zhc-visualstudio": "^1.0.10" }, "preview": { "autoStopTime": 172800 } }
{ "name": "hi-vui-template", "version": "1.1.58", "description": "A hi-vui-template project", "author": "zhcTeam", "scripts": { "rm:vite": "rimraf node_modules/.vite && rimraf node_modules/.cache", "pm2:start": "pm2 -s start processes.json", "dev": "vite --host", "def": "vite --host", "build": "node build/copyBaseAssets.js && cross-env NODE_ENV=production node build/webpack.prod.conf.js", "build:modules": "cross-env NODE_ENV=production node build/webpack.prod.conf.js", "build1": "webpack --mode production --config build/webpack.prod.conf.js", "dll": "webpack --config build/webpack.dll.conf.js", "start": "webpack-dev-server --config build/webpack.dev.conf.js", "copyassets": "node build/copyBaseAssets.js" }, "devDependencies": { "@babel/core": "^7.1.2", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7", "@babel/plugin-proposal-optional-chaining": "^7.16.7", "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/preset-env": "^7.1.0", "@vitejs/plugin-vue-jsx": "^1.3.3", "@vue/babel-helper-vue-jsx-merge-props": "^1.2.1", "@vue/babel-preset-jsx": "^1.2.4", "add-asset-html-webpack-plugin": "^3.2.0", "autoprefixer": "^9.1.5", "babel-loader": "^8.0.4", "babel-plugin-component": "^1.1.1", "babel-plugin-transform-vite-meta-env": "^1.0.3", "caniuse-lite": "^1.0.30001436", "chalk": "^3.0.0", "clean-webpack-plugin": "^0.1.19", "copy-webpack-plugin": "^4.5.3", "cross-env": "^7.0.3", "css-loader": "^1.0.0", "dotenv": "^10.0.0", "file-loader": "^2.0.0", "happypack": "^5.0.1", "html-webpack-plugin": "^4.5.2", "less": "3.0.4", "less-loader": "5.0.0", "mini-css-extract-plugin": "^1.6.2", "node-sass": "4.14.1", "optimize-css-assets-webpack-plugin": "^5.0.1", "parallel-webpack": "^2.6.0", "postcss-import": "^11.1.0", "postcss-loader": "^2.1.6", "postcss-url": "^7.3.2", "progress-bar-webpack-plugin": "^2.1.0", "sass": "1.57.1", "sass-loader": "7.3.1", "style-loader": "^0.23.0", "terser-webpack-plugin": "^4.2.3", "thread-loader": "^3.0.4", "uglifyjs-webpack-plugin": "^2.0.1", "url-loader": "^1.1.1", "vite": "^2.9.15", "vite-plugin-html": "^2.1.1", "vite-plugin-imp": "^2.0.11", "vite-plugin-pagedata": "^1.0.4", "vite-plugin-vue2": "^1.9.0", "vue-loader": "^15.4.2", "vue-template-compiler": "2.6.14", "webpack": "^4.46.0", "webpack-cli": "^4.9.2", "webpack-dev-server": "^3.11.3", "webpack-merge": "^4.1.4" }, "dependencies": { "axios": "0.20.0", "babel-polyfill": "6.26.0", "classnames": "2.3.1", "echarts": "5.2.2", "element-ui": "2.15.3", "enquire.js": "2.1.6", "event-emitter": "^0.3.5", "font-awesome": "4.7.0", "hi-taskcenter": "^1.0.9", "hi-ui": "^1.2.3560", "js-cookie": "3.0.1", "js-md5": "0.7.3", "js-pinyin": "0.1.9", "lodash": "4.17.11", "qrcode": "^1.5.3", "screenfull": "6.0.0", "sortablejs": "1.14.0", "v-clipboard": "2.2.3", "vue": "2.6.14", "vue-draggable-resizable": "2.3.0", "vue-gemini-scrollbar": "2.0.1", "vue-jstree": "2.1.6", "vue-router": "3.3.4", "vuex": "3.6.2", "zhc-birt-cmps": "^3.0.10", "zhc-flowchart": "^1.0.20", "zhc-visualstudio": "^1.0.10" }, "preview": { "autoStopTime": 172800 } }
Show line notes below