commit 150b39dfea8fd98891293c0b6ab2ddf4639b4e6d Author: root Date: Mon Jun 30 10:21:25 2025 +0800 初次提交 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..40b83b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +/unpackage/dist/* +/unpackage/cache/* +/node_modules/* +/.hbuilderx/* +/.idea/* +/.vscode/* +deploy.sh diff --git a/App.vue b/App.vue new file mode 100644 index 0000000..4b83500 --- /dev/null +++ b/App.vue @@ -0,0 +1,40 @@ + + \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d1e1072 --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +MIT License diff --git a/README.md b/README.md new file mode 100644 index 0000000..e802a2f --- /dev/null +++ b/README.md @@ -0,0 +1,54 @@ + + + +#### 快速体验 + +2、微信小程序端:扫码访问(目前只能用用户名密码方式登录,用户名: 密码:)

+ + +#### 如何使用uni-app端 + +##### 一、导入uniapp项目 + + 1. 首先下载HBuilderX并安装,地址:https://www.dcloud.io/hbuilderx.html + 2. 打开HBuilderX -> 顶部菜单栏 -> 文件 -> 导入 -> 从本地目录导入 -> 选择uniapp端项目目录 + 3. 找到common/config.js文件,找到里面的apiUrl项,填入已搭建的后端url地址 + 4. 打开manifest.json文件,选择微信小程序配置,填写小程序的appid + +##### 二、本地调试 + + 1. 打开HBuilderX -> 顶部菜单栏 -> 运行 -> 运行到浏览器 -> Chrome + 2. 如果请求后端api时 提示跨域错误,可安装Chrome插件:【Allow CORS: Access-Control-Allow-Origin】,地址:https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf + +##### 三、打包发行(H5) + + 1. 打开HBuilderX -> 顶部菜单栏 -> 发行 -> 网站H5-手机版 + 2. 打包后的文件路径:/unpackage/dist/build/h5 + 3. 将打包完成的所有文件 复制到商城后端/pulic目录下,全部替换 + +##### 四、打包发行(微信小程序) + + 1. 下载微信开发者工具并安装,地址:https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html + 2. 打开HBuilderX -> 顶部菜单栏 -> 发行 -> 小程序-微信 + 3. 打包后的文件路径:/unpackage/dist/build/mp-weixin + 5. 打开微信开发者工具 导入 打包完成的项目 + 6. 检查没有运行错误,在右上方上传小程序 + + + +#### uniapp知识 + +1. uni-app介绍 +2. uni-app 官方视频教程 +3. uni-app开发工具 HBuilderX 下载及使用说明 +4. uni-app是什么?能解决什么问题 +5. Vue.js相关文档、视频教程 + +#### 技术手册 + +* uni-app 框架文档 +* uni-app 组件文档 +* uView 组件文档 +* uView JS 文档 + + diff --git a/androidPrivacy.json b/androidPrivacy.json new file mode 100644 index 0000000..6ea7f39 --- /dev/null +++ b/androidPrivacy.json @@ -0,0 +1,38 @@ +{ + "version": "1", + "prompt": "template", + "title": "服务协议和隐私政策", + "message": "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
  你可阅读《服务协议》《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", + "buttonAccept": "同意并接受", + "buttonRefuse": "暂不同意", + "hrefLoader": "system", + "backToExit":"false", + "second": { + "title": "确认提示", + "message": "  进入应用前,你需先同意《服务协议》《隐私政策》,否则将退出应用。", + "buttonAccept": "同意并继续", + "buttonRefuse": "退出应用" + }, + "disagreeMode":{ + "support": false, + "loadNativePlugins": false, + "visitorEntry": false, + "showAlways": false + }, + "styles": { + "backgroundColor": "#fff", + "borderRadius":"5px", + "title": { + "color": "#000000" + }, + "buttonAccept": { + "color": "#009c77" + }, + "buttonRefuse": { + "color": "#999999" + }, + "buttonVisitor": { + "color": "#999999" + } + } +} diff --git a/common/common.js b/common/common.js new file mode 100644 index 0000000..f46fd02 --- /dev/null +++ b/common/common.js @@ -0,0 +1,250 @@ +/** + * 通用js方法封装处理 + */ +import CryptoJS from 'crypto-js' +import JSEncrypt from 'jsencrypt' +export function replaceAll (text, stringToFind, stringToReplace) { + if (stringToFind == stringToReplace) return this + var temp = text + var index = temp.indexOf(stringToFind) + while (index != -1) { + temp = temp.replace(stringToFind, stringToReplace) + index = temp.indexOf(stringToFind) + } + return temp +} + +export function encryptPsd (data) { + const RamKey = getRamNumber() + const RamIv = getRamNumber() + const key = CryptoJS.enc.Utf8.parse(RamKey) + const iv = CryptoJS.enc.Utf8.parse(RamIv) + const srcs = CryptoJS.enc.Utf8.parse(data) + var encrypted = CryptoJS.AES.encrypt(srcs, key, { + iv: iv, + mode: CryptoJS.mode.CBC, + padding: CryptoJS.pad.Pkcs7 + }) + + return { + key: RamKey, + iv: RamIv, + password: CryptoJS.enc.Base64.stringify(encrypted.ciphertext) + } +} +export function encryptUpdatePsd (RamIv,RamKey,data) { + const key = CryptoJS.enc.Utf8.parse(RamKey) + const iv = CryptoJS.enc.Utf8.parse(RamIv) + const srcs = CryptoJS.enc.Utf8.parse(data) + var encrypted = CryptoJS.AES.encrypt(srcs, key, { + iv: iv, + mode: CryptoJS.mode.CBC, + padding: CryptoJS.pad.Pkcs7 + }) + + return CryptoJS.enc.Base64.stringify(encrypted.ciphertext) +} +export function getRamNumber () { + var result = '' + for (var i = 0; i < 16; i++) { + result += Math.floor(Math.random() * 16).toString(16)// 获取0-15并通过toString转16进制 + } + // 默认字母小写,手动转大写 + return result.toUpperCase()// 另toLowerCase()转小写 +} +export function JSEncryptData (iv, key) { + const encrypt = new JSEncrypt() + // 将公钥存入内 + const publicKey = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCuG6ZABNgLQCI9iVPDuJEb7xb5zR9UGKyKXshLuJFZxyNtaEzfpjSMqsshUYA1QpwUvkmZE0lcRE4F4QtZO9rDnH2PoW1FWRbjgg0+MKWOmZr9hSPKM/BIE+knTtTaj4/0TK7QwDd9q/QAIduC1hIyxIIkxfWx0gFuTnxui0waCwIDAQAB' + encrypt.setPublicKey(publicKey) + const ivData = encrypt.encrypt(iv) + const keyData = encrypt.encrypt(key) + return { + ivData: ivData, + keyData: keyData + } +} + +/** + * Parse the time to string + * @param {(Object|string|number)} time + * @param {string} cFormat + * @returns {string | null} + */ +export function parseTime (time, cFormat) { + if (arguments.length === 0 || !time) { + return null + } + const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}' + let date + if (typeof time === 'object') { + date = time + } else { + if ((typeof time === 'string')) { + if ((/^[0-9]+$/.test(time))) { + // support "1548221490638" + time = parseInt(time) + } else { + // support safari + // https://stackoverflow.com/questions/4310953/invalid-date-in-safari + time = time.replace(new RegExp(/-/gm), '/') + } + } + + if ((typeof time === 'number') && (time.toString().length === 10)) { + time = time * 1000 + } + date = new Date(time) + } + const formatObj = { + y: date.getFullYear(), + m: date.getMonth() + 1, + d: date.getDate(), + h: date.getHours(), + i: date.getMinutes(), + s: date.getSeconds(), + a: date.getDay() + } + const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => { + const value = formatObj[key] + // Note: getDay() returns 0 on Sunday + if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value] } + return value.toString().padStart(2, '0') + }) + return time_str +} +export function getLastYear (yearNum = 1) { + const today = new Date() // 当天 + today.setFullYear(today.getFullYear() - yearNum) + return today +} +export function getLastDay (yearNum = 1) { + const today = new Date() // 当天 + today.setDate(today.getDate() - yearNum) + return today +} + + +export function transformTree (array, id_key, parentId_key, isRoot) { + if (!array) return [] + const idsObj = array.reduce((pre, cur) => Object.assign(pre, { [cur[id_key]]: cur }), {}) + return Object.values(idsObj).reduce((pre, cur) => { + const parent = idsObj[cur[parentId_key]] + if (!isRoot(cur, parent)) { + !parent.children && (parent.children = []) + const children = parent.children + !children.includes(cur) && children.push(cur) + } else { + pre.push(cur) + } + return pre + }, []) +} + +//判断值为空的状态 +export function formatValue(type,value){ + if(type === 'number'){ + if(value === null || value === undefined){ + return 0 + } + return value + }else if(type ==='string'){ + if(value === null || value === undefined){ + return '' + } + return value + + } + + return value +} + + +export function dataConversion(target) { + let date = new Date(target); + let y = date.getFullYear(); // 年 + let MM = date.getMonth() + 1; // 月 + MM = MM < 10 ? ('0' + MM) : MM; + let d = date.getDate(); // 日 + d = d < 10 ? ('0' + d) : d; + let h = date.getHours(); // 时 + h = h < 10 ? ('0' + h) : h; + let m = date.getMinutes(); // 分 + m = m < 10 ? ('0' + m) : m; + let s = date.getSeconds(); // 秒 + s = s < 10 ? ('0' + s) : s; + return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s; +} + +export function chartYIndex(value) { + if (value.name.toLowerCase().includes('pcs') || value.name.includes('有功功率')) { + return 0 + } else if (value.name.toLowerCase().includes('bms') || value.name.toLowerCase().includes('soc')) { + return 1 + } else { + return 0 + } +} + +export function beforeDayTime() { + // 获取当前时间 + var now = new Date(); + + // 将时间调整到24小时前 + now.setHours(now.getHours() - 24); + + // 格式化输出开始时间 + var year_start = now.getFullYear(); + var month_start = now.getMonth() + 1; + month_start = month_start < 10 ? "0" + month_start : month_start; + var day_start = now.getDate(); + day_start = day_start < 10 ? "0" + day_start : day_start; + var hours_start = now.getHours(); + hours_start = hours_start < 10 ? "0" + hours_start : hours_start; + var minutes_start = now.getMinutes(); + minutes_start = minutes_start < 10 ? "0" + minutes_start : minutes_start; + var seconds_start = now.getSeconds(); + seconds_start = seconds_start < 10 ? "0" + seconds_start : seconds_start; + var formattedTime_start = + year_start + + "-" + + month_start + + "-" + + day_start + + " " + + hours_start + + ":" + + minutes_start + + ":" + + seconds_start; + + // 获取当前时间 + var now_end = new Date(); + + // 格式化输出结束时间 + var year_end = now_end.getFullYear(); + var month_end = now_end.getMonth() + 1; + month_end = month_end < 10 ? "0" + month_end : month_end; + var day_end = now_end.getDate(); + day_end = day_end < 10 ? "0" + day_end : day_end; + var hours_end = now_end.getHours(); + hours_end = hours_end < 10 ? "0" + hours_end : hours_end; + var minutes_end = now_end.getMinutes(); + minutes_end = minutes_end < 10 ? "0" + minutes_end : minutes_end; + var seconds_end = now_end.getSeconds(); + seconds_end = seconds_end < 10 ? "0" + seconds_end : seconds_end; + var formattedTime_end = + year_end + + "-" + + month_end + + "-" + + day_end + + " " + + hours_end + + ":" + + minutes_end + + ":" + + seconds_end; + return [formattedTime_start, formattedTime_end]; + +} \ No newline at end of file diff --git a/common/config.js b/common/config.js new file mode 100644 index 0000000..3358ea3 --- /dev/null +++ b/common/config.js @@ -0,0 +1,27 @@ + +const config = { + + // 产品名称 + productName: 'Hoenery', + + // 公司名称 + companyName: 'Hoenery', + + // 产品版本号 + productVersion: 'V1.0.0', + + // 版本检查标识 + appCode: 'android', + + // 内部版本号码 + appVersion: '1.0.0', + + // 管理基础路径 + adminPath: '' + +} + +// 设置后台接口服务的基础地址 +config.baseUrl = "https://ecloud.hoenergypower.cn/api" + +export default config \ No newline at end of file diff --git a/common/filters.js b/common/filters.js new file mode 100644 index 0000000..22552eb --- /dev/null +++ b/common/filters.js @@ -0,0 +1,229 @@ +// import parseTime, formatTime and set to filter +// export { parseTime, formatTime } from '@/utils' + +/** + * Show plural label if time is plural number + * @param {number} time + * @param {string} label + * @return {string} + */ +function pluralize(time, label) { + if (time === 1) { + return time + label + } + return time + label + 's' +} + +/** + * @param {number} time + */ +export function timeAgo(time) { + const between = Date.now() / 1000 - Number(time) + if (between < 3600) { + return pluralize(~~(between / 60), ' minute') + } else if (between < 86400) { + return pluralize(~~(between / 3600), ' hour') + } else { + return pluralize(~~(between / 86400), ' day') + } +} + +/** + * Number formatting + * like 10000 => 10k + * @param {number} num + * @param {number} digits + */ +export function numberFormatter(num, digits) { + const si = [ + { value: 1E18, symbol: 'E' }, + { value: 1E15, symbol: 'P' }, + { value: 1E12, symbol: 'T' }, + { value: 1E9, symbol: 'G' }, + { value: 1E6, symbol: 'M' }, + { value: 1E3, symbol: 'k' } + ] + for (let i = 0; i < si.length; i++) { + if (num >= si[i].value) { + return (num / si[i].value).toFixed(digits).replace(/\.0+$|(\.[0-9]*[1-9])0+$/, '$1') + si[i].symbol + } + } + return num.toString() +} + +/** + * 10000 => "10,000" + * @param {number} num + */ +export function toThousandFilter(num) { + return (+num || 0).toString().replace(/^-?\d+/g, m => m.replace(/(?=(?!\b)(\d{3})+$)/g, ',')) +} + +/** + * Upper case first char + * @param {String} string + */ +export function uppercaseFirst(string) { + return string.charAt(0).toUpperCase() + string.slice(1) +} +/** + * Number formatting + * kwh 转化 Mwh + * @param {number} num + * @param {number} digits + */ +export function kwhFormat(num, digits) { + if (!num) { + return 0 + } + if (!digits) { + digits = 2 + } + if(Number(num) >= 1E7){ + return (Number(num) / 1E6).toFixed(digits) + '' + }else if (Number(num) >= 1E4) { + return (Number(num) / 1E3).toFixed(digits) + '' + } + return Number(num).toFixed(digits) + '' +} +/** + * Number formatting + * kwh 转化 Mwh + * @param {number} num + * @param {number} digits + */ +export function kWFormat(num, digits) { + if (!num) { + return 0 + } + if (!digits) { + digits = 2 + } + if (Number(num) >= 1E4) { + return (Number(num) / 1E3).toFixed(digits) + '' + } + return Number(num).toFixed(digits) + '' +} +/** + * unit formatting + * kwh 转化 Mwh + * @param {number} num + * @param {number} digits + */ +export function kwhUnitFormat(num) { + if (!num) { + return 'kWh' + } + if(Number(num) >= 1E7){ + return 'GWh' + }else if (Number(num) >= 1E4) { + return 'MWh' + } + + return 'kWh' +} + +/** + * unit formatting + * kwh 转化 Mwh + * @param {number} num + * @param {number} digits + */ +export function kwpUnitFormat(num) { + if (!num) { + return 'kWp' + } + if (Number(num) >= 1E4) { + return 'Mwp' + } + return 'kWp' +} +/** + * unit formatting + * kwh 转化 Mwh + * @param {number} num + * @param {number} digits + */ +export function kwUnitFormat(num) { + if (!num) { + return 'kW' + } + if (Number(num) >= 1E4) { + return 'MW' + } + return 'kW' +} +/** + * mone formatting + * 元 转化 万元 + * @param {number} num + * @param {number} digits + */ +export function moneyFormat(num, digits) { + if (!num) { + return 0 + } + if (!digits) { + digits = 2 + } + if (Number(num) >= 1E4) { + return (Number(num) / 1E4).toFixed(digits) + } + return Number(num).toFixed(digits) +} +/** + * mone formatting + * kg 转化 吨 + * @param {number} num + * @param {number} digits + */ +export function kgFormat(num, digits) { + if (!num) { + return 0 + '' + } + if (!digits) { + digits = 2 + } + if (Number(num) >= 1E3) { + return (Number(num) / 1E3).toFixed(digits) + '' + } + return Number(num).toFixed(digits) + '' +} +/** + * unit formatting + * 元 转化 万元 + * @param {number} num + * @param {number} digits + */ +export function moneyUnitFormat(num) { + if (!num) { + return '元' + } + if (Number(num) >= 1E4) { + return '万元' + } + return '元' +} +/** + * unit formatting + * kg 转化 吨 + * @param {number} num + * @param {number} digits + */ +export function KgUnitFormat(num) { + if (!num) { + return 'kg' + } + if (Number(num) >= 1E3) { + return '吨' + } + return 'kg' +} + +export function isNull(num){ + if(!num && num !== 0 || num === 'NaN'){ + return '' + }else{ + return num + } +} \ No newline at end of file diff --git a/common/http.api.js b/common/http.api.js new file mode 100644 index 0000000..0e95070 --- /dev/null +++ b/common/http.api.js @@ -0,0 +1,489 @@ +// 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作 +const install = (Vue, vm) => { + // 参数配置对象 + const config = vm.vuex_config + + // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下 + vm.$u.api = { + // 基础服务:登录登出、身份信息、菜单授权、切换系统、字典数据等 + login: (params = {}) => vm.$u.post(config.adminPath + "/sys/user/login", params), + getMenuList: (params = {}) => vm.$u.get(config.adminPath + "/sys/user/get"), + getAllDict: (params = {}) => vm.$u.post(config.adminPath + "/sys/dict/typeAll", params), + getStationByUser: (params = {}) => vm.$u.post(config.adminPath + "/business/station"), + getUserInfo: (params = {}) => vm.$u.get(config.adminPath + "/sys/user/get", params), + changePsd: (params = {}) => vm.$u.put(config.adminPath + "/sys/user/pwd", params), + logout: (params = {}) => vm.$u.get(config.adminPath + "/sys/user/logout", params), + GetDictListByType: (params = {}) => vm.$u.post(config.adminPath + "/sys/dict/typeList", params), + GetNewFile: (params = {}) => vm.$u.post(config.adminPath + "/business/station/selectLastOne?version=" + + params), + + + + lang: (params = {}) => vm.$u.get("/lang/" + params.lang), + index: (params = {}) => vm.$u.get(config.adminPath + "/mobile/index", params), + + sendCode: (params = {}) => + vm.$u.post(config.adminPath + "/mobile/login/sendCode", params), + registerUser: (params = {}) => + vm.$u.post(config.adminPath + "/mobile/user/registerUser", params), + //首页相关api + getIndexCardInfo: (params = {}) => + vm.$u.get(config.adminPath + "/mobile/index/getIndexCardInfo", params), + getM2mOrderFlowList: (params = {}) => + vm.$u.get(config.adminPath + "/mobile/index/getM2mOrderFlowList", params), + //获取卡可购买套餐包 + getM2mOrderPackageList: (params = {}) => + vm.$u.get( + config.adminPath + "/mobile/index/getM2mOrderPackageList", + params + ), + + authInfo: (params = {}) => + vm.$u.get(config.adminPath + "/authInfo", params), + menuTree: (params = {}) => + vm.$u.get(config.adminPath + "/menuTree", params), + switchSys: (params = {}) => + vm.$u.get(config.adminPath + "/switch/" + params.sysCode), + dictData: (params = {}) => + vm.$u.get(config.adminPath + "/system/dict/data/type/" + params.dictType), + + // 账号服务:验证码接口、忘记密码接口、注册账号接口等 + validCode: (params = {}) => vm.$u.getText("/validCode", params), + getFpValidCode: (params = {}) => + vm.$u.post("/account/getFpValidCode", params), + savePwdByValidCode: (params = {}) => + vm.$u.post("/account/savePwdByValidCode", params), + getRegValidCode: (params = {}) => + vm.$u.post("/account/getRegValidCode", params), + saveRegByValidCode: (params = {}) => + vm.$u.post("/account/saveRegByValidCode", params), + + // APP公共服务 + upgradeCheck: () => + vm.$u.post("/app/upgrade/check", { + appCode: config.appCode, + appVersion: config.appVersion, + }), + commentSave: (params = {}) => vm.$u.post("/app/comment/save", params), + + //获取通知 + GetMessage: (params = {}) => + vm.$u.post("/business/messageInfo/selectMessageInfo", params), + UpdateMessageStatus: (params = {}) => + vm.$u.post("/business/messageInfo/updateMessageReadStatus", params), + + GetLanguageConfig:(params = {}) => + vm.$u.post("/business/station/getTermDictionary", params), + + // 个人信息修改 + user: { + saveUserInfo: (params = {}) => + vm.$u.post(config.adminPath + "/mobile/user/saveUserInfo", params), + infoSavePwd: (params = {}) => + vm.$u.put(config.adminPath + "/system/user/profile/updatePwd", params), + infoSavePqa: (params = {}) => + vm.$u.post(config.adminPath + "/sys/user/infoSavePqa", params), + }, + + // 员工用户查询 + empUser: { + listData: (params = {}) => + vm.$u.get(config.adminPath + "/sys/empUser/listData", params), + }, + + // 组织机构查询 + office: { + treeData: (params = {}) => + vm.$u.get(config.adminPath + "/sys/office/treeData", params), + }, + + + //实时告警 + alarm: { + // 获取告警事件列表 + GetAlarmList: (params = {}) => + vm.$u.post(config.adminPath + "/flow/event/page", params), + // 获取告警事件列表 + GetHistoryAlarmList: (params = {}) => + vm.$u.post(config.adminPath + "/flow/event/hispage", params), + + //获取电站数据 + GetStationlist: (params = {}) => + vm.$u.post(config.adminPath + "/business/station", params), + + //获取联级电站数据 + GetNewStationlist: (params = {}) => + vm.$u.post(config.adminPath + "/business/station/nationStation", params), + + // 获取设备类型 + GetDeviceType: (params = {}) => + vm.$u.post(config.adminPath + "/business/device/treeDevices", params), + + // 获取历史告警数据 + GetAlarmHistoryList: (params = {}) => + vm.$u.post(config.adminPath + "/business/event/hispage", params), + + // 确认告警 + SetAlarmConfirm: (params = {}) => + vm.$u.put(config.adminPath + "/flow/event/confirm", params), + + // 告警数量 + GetEventNumber: (params = {}) => + vm.$u.post(config.adminPath + "flow/event/eventNum"), + }, + + // 增删改查例子 + testData: { + form: (params = {}) => + vm.$u.post(config.adminPath + "/test/testData/form", params), + list: (params = {}) => + vm.$u.post(config.adminPath + "/test/testData/listData", params), + save: (params = {}) => + vm.$u.postJson(config.adminPath + "/test/testData/save", params), + disable: (params = {}) => + vm.$u.post(config.adminPath + "/test/testData/disable", params), + enable: (params = {}) => + vm.$u.post(config.adminPath + "/test/testData/enable", params), + delete: (params = {}) => + vm.$u.post(config.adminPath + "/test/testData/delete", params), + }, + + // 工单 + workOrder: { + // 获取工单数量 + GetQueryTodoList: (params = {}) => + vm.$u.post(config.adminPath + "/flow/processFlow/queryTodoList", params), + // 获取单个工单信息 + GetWorkOrderDetail: (params = {}) => + vm.$u.post(config.adminPath + "/flow/processFlow/workOrderDetails", params), + // 保存工单 + saveOrder: (params = {}) => + vm.$u.post(config.adminPath + "/flow/processFlow/saveOrder", params), + // 完成工单 + doTask: (params = {}) => + vm.$u.post(config.adminPath + "/flow/processFlow/doTask", params), + // 文件下载 + FileDownload: (params = {}) => + vm.$u.post(config.adminPath + "/media/currencyFile/download", params), + }, + + //电站 + station: { + //获取电站状态 + GetStationStatus: (params = {}) => + vm.$u.post(config.adminPath + "/business/station/findStationStatus", params), + // 根据电站状态查询电站 + getStationListByStatus: (params = {}) => + vm.$u.post(config.adminPath + "/business/station/findListByStationStatus ", params), + getStationPostionData: (params = {}) => + vm.$u.post(config.adminPath + "/business/dynamicConfig/pointListData", params) + }, + + //设备 + device: { + //按电站查询设备类型,维护设备的设备类型时使用 + GetDeviceType: (params = {}) => + vm.$u.post(config.adminPath + "/business/deviceConfig/queryDeviceTypeByGroup", params), + // 电站下的设备 + GetDeviceByStationId: (id = {}) => + vm.$u.get(config.adminPath + "/business/device/" + id), + // 电站下的设备 + GetDeviceByType: (params = {}) => + vm.$u.post(config.adminPath + "/business/device/page", params), + + + + }, + + //告警 + warning: { + // 设备下的告警 + getWarningListById: (params = {}) => + vm.$u.post(config.adminPath + "/flow/event/dropDownList", params), + }, + + //集团数据 + groupData: { + // 给电站用的大屏数据----总览页面 + getForStationCockpit: (params = {}) => + vm.$u.post(config.adminPath + "/business/pvStation/forStationCockpit", params), + + ///分页查询电站 + getStationPage: (params = {}) => + vm.$u.post(config.adminPath + "/business/station/page", params), + + //根据电站id查询电站详情 + getStationDetailById: (id = {}) => + vm.$u.post(config.adminPath + "/business/station/" + id), + + //根据电站id查询电站数据 + getStationData: (params = {}) => + vm.$u.post(config.adminPath + "/business/pvStation/pvPanel", params), + + //根据电站id查询电站实时曲线 + getStationRealtimeCurve: (params = {}) => + vm.$u.post(config.adminPath + "/business/pvStation/realtimeCurve", params), + + //根据电站id查询电站设备 + getStationDevice: (params = {}) => + vm.$u.post(config.adminPath + "/business/pvStation/inverterList", params), + + //根据设备的数据 + getDevicePanelData: (params = {}) => + vm.$u.post(config.adminPath + "/business/inverter/panelData", params), + //根据设备的功率曲线 + getDeviceCurve: (params = {}) => + vm.$u.post(config.adminPath + "/business/inverter/curve", params), + //根据设备的点 + getDeviceDot: (params = {}) => + vm.$u.post(config.adminPath + "/business/inverter/attribute", params), + }, + + //策略模块 + + policy: { + // 查询下发设备接口 + getIssueDevices: (params = {}) => + vm.$u.post(config.adminPath + "/business/planningIssue/getIssueDevices", params), + + // 查询计划曲线模板接口 + getTemplate: (params = {}) => + vm.$u.post(config.adminPath + "/business/planningIssue/getTemplate", params), + + // 查询下发模型数据(取出data数据发给下发接口) + getIssueDatas: (params = {}) => + vm.$u.post(config.adminPath + "/business/planningIssue/getIssueDatas", params), + + // 查看设备下发状态 + queryIssueStatus: (params = {}) => + vm.$u.post(config.adminPath + "/business/planningIssue/queryIssueStatus", params), + + // 查看设备下发状态 + insertIssueStatus: (params = {}) => + vm.$u.post(config.adminPath + "/business/planningIssue/insertIssueStatus", params), + + // 查看详情 + lookPlanningCurveTemplateDetail: (params = {}) => + vm.$u.post(config.adminPath + "/business/planning/planningCurveTemplateDetail", params), + + // 查看曲线详情 + lookPlanningCurveTemplateChartData: (params = {}) => + vm.$u.post(config.adminPath + "/business/planning/planningCurveTemplateChartData", params), + + // 下发 + SetOrderIssued: (params = {}) => + vm.$u.post(config.adminPath + "/media/orderSend/orderIssued", params), + + // 指令下发 + GetOrderProgressBar: (params = {}) => + vm.$u.post(config.adminPath + "/media/orderSend/progressBar", params), + + // 获取修改值 + GetSubstitutionValueList: (params = {}) => + vm.$u.post(config.adminPath + "/business/substitutionValue/page", params), + // 保存修改值 + SaveSubstitutionValue: (params = {}) => + vm.$u.post(config.adminPath + "/business/substitutionValue/add", params), + // 控制下发 + GetPlanCurveIssueData: (params = {}) => + vm.$u.post(config.adminPath + "/business/planningIssue/getPlanCurveIssueData", params), + }, + + homePageData: { + // 获取电站配置信息 + GetHomePageComponents: (id = {}) => + vm.$u.post(config.adminPath + `/business/homeConfig/${id}`), + + // 充放电量 + GetElecData: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/elecData", params), + + // 数据总览 + GetPcsTotalData: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/pcsTotalData", params), + + + // 运行曲线 + GetRealtimeCurve: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/realtimeCurve", params), + + // 拓扑图--状态监控 + GetOpenStationMiddle: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/middle", params), + + // 拓扑图--状态监控 + GetOpenStationMiddlePart: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/middlePart", params), + + // 环控数据 + GetAirCondition: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/getAirCondition", params), + + // 拓扑图--电表 + GetMiddlePart: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/middlePart", params), + + // 拓扑图--状态监控 + GetbozhouTuopuStatus: (params = {}) => + vm.$u.post(config.adminPath + "/business/bozhou/status", params), + // 上海科技园充放电量 + GetKJYElecData: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/getPCSElecData", params), + + // 上海科技园电站数据 + GetKJYPcsTotalData: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/getEleTotalData", params), + + // 上海科技园空调数据 + GetShanghaiKJYAirData: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/commonAirCondition", params), + + // 查询历史曲线 + GetHistoryData: (params = {}) => + vm.$u.post(config.adminPath + "/business/point/getPointCurve", params), + + // 瑞安汽车 + GetRAPcsTotalData: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/getPcsTotalData", params), + + // 瑞安汽车充放电 + GetPCSElecData: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/getPCSElecData", params), + + // 慈溪环控 + GetCircleCtr: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/circleCtr", params), + // 晶科数据 + GetJingKeData: (params = {}) => + vm.$u.post(config.adminPath + "/business/jingke/status", params), + + // 获取soc曲线 + GetSocCurve: (params = {}) => + vm.$u.post(config.adminPath + "/business/batteryStack/socCurve", params), + + GetJKCurve: (params = {}) => + vm.$u.post(config.adminPath + "/business/jingke/realtimeCurve", params), + GetWSHStatus: (params = {}) => + vm.$u.post(config.adminPath + "/business/weiShanHu/status", params), + + GetZzhbtatus: (params = {}) => + vm.$u.post(config.adminPath + "/business/zhongZiHuanBao/status", params), + // 中自环保光伏数据 + GetZZHBPv: (params = {}) => + vm.$u.post(config.adminPath + "/business/zhongZiHuanBao/getStationData", params), + // 微山湖光伏数据 + GetWSHPv: (params = {}) => + vm.$u.post(config.adminPath + "/business/weiShanHu/getStationData", params), + //获取动态配置 + GetDynamicConfig: (params = {}) => + vm.$u.post(config.adminPath + "/business/dynamicConfig/pointListData", params), + //横沥光伏 + GetMiddlePartInverter: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/middlePartInverter", params), + //并网负载侧电表 + GetElec: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/getElec", params), + //横沥103电表 + GetEleMeter: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/getEleMeter", params), + //横沥103光伏 + GetOpticalStorage: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/getOpticalStorage", params), + // 挚达光伏 + GetZhiDaPv: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/getPVElec", params), + + //获取配置曲线 + GetDynamicRealTimeCurve: (params = {}) => + vm.$u.post(config.adminPath + "/business/openStation/dynamicRealtimeCurve", params), + + GetFireConfig: (params = {}) => + vm.$u.post(config.adminPath + "/business/topologyAttribute/DataConfig", params), + + + }, + + + + //设备列表 + deviceList: { + // 获取设备列表 + GetTreeVirtualDevices: (params = {}) => + vm.$u.post(config.adminPath + "/business/device/treeVirtualDevices", params), + + // 获取设备数据 + GetNewValue: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/newValue", params), + + // 获取组数据 + GetPackTemperatureVoltageData: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/packTemperatureVoltageData", params), + + // 电池包温度电压柱状图以及运行数据 + GetTemVolData: (params = {}) => + vm.$u.post(config.adminPath + "/business/common/packTemperatureVoltageData", params), + + // 温度电压正太分布 + GetTemperatureVoltageData: (params = {}) => + vm.$u.post(config.adminPath + "/business/station/temperatureVoltageData", params), + + //获取电度表曲线 + GetTtackHisData: (params = {}) => + vm.$u.post(config.adminPath + "/business/batteryStack/stackHisData", params), + + + + //获取电站下的设备 + // GetPageDevice: (params = {}) => + // vm.$u.post(config.adminPath + "/business/device/appHomePageDevices", params), + + + GetPageDevice: (params = {}) => + vm.$u.post(config.adminPath + "/business/device/homePageTreeDevices", params), + //功率曲线 + GetPCSCurve: (params = {}) => + vm.$u.post(config.adminPath + "/business/pcs/pcsCurve", params), + + // 遥信遥测数据 + GetPCSPoint: (params = {}) => + vm.$u.post(config.adminPath + "/business/point/page", params), + + + }, + + //收益 + enrnings: { + GetTotal: (params = {}) => + vm.$u.post(config.adminPath + "/business/earningsCalculate/getTotal", params), + }, + + + proxyPrice: { + // 查询区域 + GetIndustrialElecRegionList: (params = {}) => vm.$u.post(config.adminPath + + "/business/industrialElecRegion/list", params), + /** 查询所有代理电价-分页*/ + GetIndustrialElecPricePage: (params = {}) => vm.$u.post(config.adminPath + + "/business/industrialElecPrice/page", params), + //根据id查询分时电价折线图 + GetTouLineById: (id = {}) => vm.$u.get(config.adminPath + + `/business/industrialElecPrice/getTouLineById/${id}`), + //根据id查询分时电价历史数据图表/表格 + GetTouLineHistoryById: (id = {}) => vm.$u.get(config.adminPath + + `/business/industrialElecPrice/getTouLineHistoryById/${id}`), + //根据id查询峰谷电差价折线图/表格 + GetMaxPriceDiffById: (id = {}) => vm.$u.get(config.adminPath + + `/business/industrialElecPrice/getMaxPriceDiffById/${id}`), + + + } + + + } + + +} + +export default { + install, +} \ No newline at end of file diff --git a/common/http.interceptor.js b/common/http.interceptor.js new file mode 100644 index 0000000..afd64d0 --- /dev/null +++ b/common/http.interceptor.js @@ -0,0 +1,104 @@ + + +// 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作 +const install = (Vue, vm) => { + // 通用请求头设定 + const ajaxHeader = "x-ajax"; + const sessionIdHeader = "Authorization"; + const rememberMeHeader = "x-remember"; + const lang = 'lang'; + + // 请求参数默认配置 + Vue.prototype.$u.http.setConfig({ + baseUrl: vm.vuex_config.baseUrl, + originalData: true, + // 默认头部,http2约定header名称统一小写 + header: { + "content-type": "application/json", + "x-requested-with": "XMLHttpRequest", + }, + }); + + // 请求拦截,配置Token等参数 + Vue.prototype.$u.http.interceptor.request = (req) => { + if (!req.header) { + req.header = []; + } + req.header["source"] = "app"; + + // 默认指定返回 JSON 数据 + if (!req.header[ajaxHeader]) { + req.header[ajaxHeader] = "json"; + } + + // 设定传递 Token 认证参数 + if (!req.header[sessionIdHeader] && vm.vuex_token) { + req.header[sessionIdHeader] = vm.vuex_token; + req.header[lang] = vm.vuex_language; + } + + // 为节省流量,记住我数据不是每次都发送的,当会话失效后,尝试重试登录 + if (!req.header[rememberMeHeader] && vm.vuex_remember && req.remember) { + req.header[rememberMeHeader] = vm.vuex_remember; + req.remember = false; + } + return req; + }; + + // 响应拦截,判断状态码是否通过 + Vue.prototype.$u.http.interceptor.response = async (res, req) => { + let data = res.data; + if (!data) { + // vm.$u.toast("未连接到服务器"); + return false; + } + if (res.data.code !== 200) { + if (res.data.code === 401002 || res.data.code === 401001 || res.data.code === 50014) { + uni.showToast({ + title: data.msg ? data.msg : '请重新登陆!', + duration: 3000, + icon:'none' + }) + setTimeout(() => { + uni.reLaunch({ + url: "/pages/login/index" + }); + }, 3000) + }else{ + uni.showToast({ + title: data.msg ? data.msg : '接口报错,请联系管理员!', + duration:3000, + icon:'none' + }) + } + } else { + return res.data + } + }; + + // 封装 get text 请求 + vm.$u.getText = (url, data = {}, header = {}) => { + return vm.$u.http.request({ + dataType: "text", + method: "GET", + url, + header, + data, + }); + }; + + // 封装 post json 请求 + vm.$u.postJson = (url, data = {}, header = {}) => { + header["content-type"] = "application/json"; + return vm.$u.http.request({ + url, + method: "POST", + header, + data, + }); + }; +}; + +export default { + install, +}; diff --git a/common/locales/en_EN.js b/common/locales/en_EN.js new file mode 100644 index 0000000..ae2877e --- /dev/null +++ b/common/locales/en_EN.js @@ -0,0 +1,4 @@ +import homePage from './homePage/en' +export default { + homePage +} diff --git a/common/locales/homePage/en.js b/common/locales/homePage/en.js new file mode 100644 index 0000000..5c26786 --- /dev/null +++ b/common/locales/homePage/en.js @@ -0,0 +1,35 @@ +export default { + home: { + login: 'Login', + account: 'Account', + password: 'Password', + placeAccount: "Place input account", + placePassword: 'Place input password', + noLogin: 'The feature is not available yet', + loadAmmeter: 'Load Meter', + dieselGeneratorMeter: 'Diesel Meter', + energyStorageMeter: 'Cabinet Meter', + alarmTypeList: [{ + name: 'Real-Time Alarm' + }, { + name: 'History Alarm' + }], + lang: 'Switch languages', + ydty: 'Read and agree', + yhxy: 'User Agreement', + and: 'and', + yszc: 'Privacy Policy', + yhxyhyszc: 'User Agreement and Privacy Policy', + msgf: 'Welcome to the "Small Savings and Great Energy" APP, we attach great importance to the protection of your personal information and privacy. Please read this app carefully before you use it', + msgs: 'When you use this application, it means that you have read, understood and agreed to accept all the terms of this agreement. If you do not agree with any of the contents of this Agreement, please stop using this Application immediately.', + agree: 'Agree', + quit: 'Disagree', + guestLogin: 'Guest Login', + checkFirst: 'Please check the box to agree to the User Agreement and Privacy Policy', + stationType:[{ + name:'China Station' + },{ + name:'Overseas Station' + }] + }, +} \ No newline at end of file diff --git a/common/locales/homePage/zh.js b/common/locales/homePage/zh.js new file mode 100644 index 0000000..293abd0 --- /dev/null +++ b/common/locales/homePage/zh.js @@ -0,0 +1,35 @@ +export default { + home: { + login: '登录', + account: '账号', + password: '密码', + placeAccount: "请输入账号", + placePassword: '请输入密码', + noLogin: '功能暂未开放', + loadAmmeter: '负载电表', + dieselGeneratorMeter: '柴发电表', + energyStorageMeter: '储能电表', + alarmTypeList: [{ + name: '实时告警' + }, { + name: '历史告警' + }], + lang:'切换语言', + ydty:'阅读并同意', + yhxy:'用户协议', + and:'和', + yszc:'隐私政策', + yhxyhyszc:'用户协议和隐私政策', + msgf:'欢迎使用“小储大能”APP,我们非常重视您的个人信息和隐私保护。在您使用本应用前请仔细阅读', + msgs:'您在使用本应用时,即表示您已阅读、理解并同意接受本协议的所有条款。如果您不同意本协议的任何内容,请立即停止使用本应用。', + agree:'同意', + quit:'不同意', + guestLogin: '游客登录', + checkFirst:'请先勾选同意用户协议和隐私政策', + stationType:[{ + name:'中国站' + },{ + name:'海外站' + }] + } +}; \ No newline at end of file diff --git a/common/locales/zh_CN.js b/common/locales/zh_CN.js new file mode 100644 index 0000000..be8ef60 --- /dev/null +++ b/common/locales/zh_CN.js @@ -0,0 +1,4 @@ +import homePage from './homePage/zh' +export default { + homePage, +} diff --git a/common/uni.css b/common/uni.css new file mode 100644 index 0000000..76340d7 --- /dev/null +++ b/common/uni.css @@ -0,0 +1,1459 @@ +@font-face { + font-family: uniicons; + font-weight: normal; + font-style: normal; + src: url('~@/static/uni.ttf') format('truetype'); +} + +/* #ifdef H5 */ +.fix-left-window { + padding-left: var(--window-left); +} +.pc-hide { + display: none !important; +} +/* #endif */ + +/*通用 */ + +/* view{ + font-size:28rpx; + line-height:1.8; +} */ +progress, checkbox-group{ + width: 100%; +} +form { + width: 100%; +} +.uni-flex { + display: flex; + flex-direction: row; +} +.uni-flex-item { + flex: 1; +} +.uni-row { + flex-direction: row; +} +.uni-column { + flex-direction: column; +} +.uni-link{ + color:#576B95; + font-size:26rpx; +} +.uni-center{ + text-align:center; +} +.uni-inline-item{ + display: flex; + flex-direction: row; + align-items:center; +} +.uni-inline-item text{ + margin-right: 20rpx; +} +.uni-inline-item text:last-child{ + margin-right: 0rpx; + margin-left: 20rpx; +} + +/* page */ +.common-page-head{ + padding:35rpx; + text-align: center; +} +.common-page-head-title { + display: inline-block; + padding: 0 40rpx; + font-size: 30rpx; + height: 88rpx; + line-height: 88rpx; + color: #BEBEBE; + box-sizing: border-box; + border-bottom: 2rpx solid #D8D8D8; +} + +.uni-padding-wrap{ + /* width:690rpx; */ + padding:0 30rpx; +} +.uni-word { + text-align: center; + padding:200rpx 100rpx; +} +.uni-title { + font-size:30rpx; + font-weight:500; + padding:20rpx 0; + line-height:1.5; +} +.uni-text{ + font-size:28rpx; +} +.uni-title text{ + font-size:24rpx; + color:#888; +} + +.uni-text-gray{ + color: #ccc; +} +.uni-text-small { + font-size:24rpx; +} +.uni-common-mb{ + margin-bottom:30rpx; +} +.uni-common-pb{ + padding-bottom:30rpx; +} +.uni-common-pl{ + padding-left:30rpx; +} +.uni-common-mt{ + margin-top:30rpx; +} +/* 背景色 */ +.uni-bg-red{ + background:#F76260; color:#FFF; +} +.uni-bg-green{ + background:#09BB07; color:#FFF; +} +.uni-bg-blue{ + background:#007AFF; color:#FFF; +} +/* 标题 */ +.uni-h1 {font-size: 80rpx; font-weight:700;} +.uni-h2 {font-size: 60rpx; font-weight:700;} +.uni-h3 {font-size: 48rpx; font-weight:700;} +.uni-h4 {font-size: 36rpx; font-weight:700;} +.uni-h5 {font-size: 28rpx; color: #8f8f94;} +.uni-h6 {font-size: 24rpx; color: #8f8f94;} +.uni-bold{font-weight:bold;} + +/* 文本溢出隐藏 */ +.uni-ellipsis {overflow: hidden; white-space: nowrap; text-overflow: ellipsis;} + +/* 竖向百分百按钮 */ +.uni-btn-v{ + padding:10rpx 0; +} +.uni-btn-v button{margin:20rpx 0;} + +/* 表单 */ +.uni-form-item{ + display:flex; + width:100%; + padding:10rpx 0; +} +.uni-form-item .title{ + padding:10rpx 25rpx; +} +.uni-label { + width: 210rpx; + word-wrap: break-word; + word-break: break-all; + text-indent:20rpx; +} +.uni-input { + height: 50rpx; + padding: 15rpx 25rpx; + line-height:50rpx; + font-size:28rpx; + background:#FFF; + flex: 1; +} +radio-group, checkbox-group{ + width:100%; +} +radio-group label, checkbox-group label{ + padding-right:20rpx; +} +.uni-form-item .with-fun{ + display:flex; + flex-wrap:nowrap; + background:#FFFFFF; +} +.uni-form-item .with-fun .uni-icon{ + width:40px; + height:80rpx; + line-height:80rpx; + flex-shrink:0; +} + +/* loadmore */ +.uni-loadmore{ + height:80rpx; + line-height:80rpx; + text-align:center; + padding-bottom:30rpx; +} +/*数字角标*/ +.uni-badge, +.uni-badge-default { + font-family: 'Helvetica Neue', Helvetica, sans-serif; + font-size: 12px; + line-height: 1; + display: inline-block; + padding: 3px 6px; + color: #333; + border-radius: 100px; + background-color: rgba(0, 0, 0, .15); +} +.uni-badge.uni-badge-inverted { + padding: 0 5px 0 0; + color: #929292; + background-color: transparent +} +.uni-badge-primary { + color: #fff; + background-color: #007aff +} +.uni-badge-blue.uni-badge-inverted, +.uni-badge-primary.uni-badge-inverted { + color: #007aff; + background-color: transparent +} +.uni-badge-green, +.uni-badge-success { + color: #fff; + background-color: #4cd964; +} +.uni-badge-green.uni-badge-inverted, +.uni-badge-success.uni-badge-inverted { + color: #4cd964; + background-color: transparent +} +.uni-badge-warning, +.uni-badge-yellow { + color: #fff; + background-color: #f0ad4e +} +.uni-badge-warning.uni-badge-inverted, +.uni-badge-yellow.uni-badge-inverted { + color: #f0ad4e; + background-color: transparent +} +.uni-badge-danger, +.uni-badge-red { + color: #fff; + background-color: #dd524d +} +.uni-badge-danger.uni-badge-inverted, +.uni-badge-red.uni-badge-inverted { + color: #dd524d; + background-color: transparent +} +.uni-badge-purple, +.uni-badge-royal { + color: #fff; + background-color: #8a6de9 +} +.uni-badge-purple.uni-badge-inverted, +.uni-badge-royal.uni-badge-inverted { + color: #8a6de9; + background-color: transparent +} + +/*折叠面板 */ +.uni-collapse-content { + height: 0; + width: 100%; + overflow: hidden; +} +.uni-collapse-content.uni-active { + height: auto; +} + +/*卡片视图 */ +.uni-card { + background: #fff; + border-radius: 8rpx; + margin:20rpx 0; + position: relative; + box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, .3); +} +.uni-card-content { + font-size: 30rpx; +} +.uni-card-content.image-view{ + width: 100%; + margin: 0; +} +.uni-card-content-inner { + position: relative; + padding: 30rpx; +} +.uni-card-footer, +.uni-card-header { + position: relative; + display: flex; + min-height: 50rpx; + padding: 20rpx 30rpx; + justify-content: space-between; + align-items: center; +} +.uni-card-header { + font-size: 36rpx; +} +.uni-card-footer { + color: #6d6d72; +} +.uni-card-footer:before, +.uni-card-header:after { + position: absolute; + top: 0; + right: 0; + left: 0; + height: 2rpx; + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + background-color: #c8c7cc; +} +.uni-card-header:after { + top: auto; + bottom: 0; +} +.uni-card-media { + justify-content: flex-start; +} +.uni-card-media-logo { + height: 84rpx; + width: 84rpx; + margin-right: 20rpx; +} +.uni-card-media-body { + height: 84rpx; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: flex-start; +} +.uni-card-media-text-top { + line-height: 36rpx; + font-size: 34rpx; +} +.uni-card-media-text-bottom { + line-height: 30rpx; + font-size: 28rpx; + color: #8f8f94; +} +.uni-card-link { + color: #007AFF; +} + +/* 列表 */ +.uni-list { + background-color: #FFFFFF; + position: relative; + width: 100%; + display: flex; + flex-direction: column; +} +.uni-list:after { + position: absolute; + z-index: 10; + right: 0; + bottom: 0; + left: 0; + height: 1px; + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + background-color: #dedfe2; +} +.uni-list::before { + position: absolute; + z-index: 10; + right: 0; + top: 0; + left: 0; + height: 1px; + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + background-color: #dedfe2; +} +.uni-list-cell { + position: relative; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; +} +.uni-list-cell-hover { + background-color: #eee; +} +.uni-list-cell-pd { + padding: 22rpx 30rpx; +} +.uni-list-cell-left { + white-space: nowrap; + font-size:28rpx; + padding: 0 30rpx; +} +.uni-list-cell-db, +.uni-list-cell-right { + flex: 1; +} +.uni-list-cell::after { + position: absolute; + z-index: 3; + right: 0; + bottom: 0; + left: 140rpx; + height: 1px; + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + background-color: #dedfe2; +} +.uni-list .uni-list-cell:last-child::after { + height: 0rpx; +} +.uni-list-cell-last.uni-list-cell::after { + height: 0rpx; +} +.uni-list-cell-divider { + position: relative; + display: flex; + color: #999; + background-color: #f7f7f7; + padding:15rpx 20rpx; +} +.uni-list-cell-divider::before { + position: absolute; + right: 0; + top: 0; + left: 0; + height: 1px; + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + background-color: #c8c7cc; +} +.uni-list-cell-divider::after { + position: absolute; + right: 0; + bottom: 0; + left: 0rpx; + height: 1px; + content: ''; + -webkit-transform: scaleY(.5); + transform: scaleY(.5); + background-color: #c8c7cc; +} +.uni-list-cell-navigate { + font-size:30rpx; + padding: 22rpx 30rpx; + line-height: 48rpx; + position: relative; + display: flex; + box-sizing: border-box; + width: 100%; + flex: 1; + justify-content: space-between; + align-items: center; +} +.uni-list-cell-navigate { + padding-right: 36rpx; +} +.uni-navigate-badge { + padding-right: 50rpx; +} +.uni-list-cell-navigate.uni-navigate-right:after { + font-family: uniicons; + content: '\e583'; + position: absolute; + right: 24rpx; + top: 50%; + color: #bbb; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); +} +.uni-list-cell-navigate.uni-navigate-bottom:after { + font-family: uniicons; + content: '\e581'; + position: absolute; + right: 24rpx; + top: 50%; + color: #bbb; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); +} +.uni-list-cell-navigate.uni-navigate-bottom.uni-active::after { + font-family: uniicons; + content: '\e580'; + position: absolute; + right: 24rpx; + top: 50%; + color: #bbb; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); +} +.uni-collapse.uni-list-cell { + flex-direction: column; +} +.uni-list-cell-navigate.uni-active { + background: #eee; +} +.uni-list.uni-collapse { + box-sizing: border-box; + height: 0; + overflow: hidden; +} +.uni-collapse .uni-list-cell { + padding-left: 20rpx; +} +.uni-collapse .uni-list-cell::after { + left: 52rpx; +} +.uni-list.uni-active { + height: auto; +} + +/* 三行列表 */ +.uni-triplex-row { + display: flex; + flex: 1; + width: 100%; + box-sizing: border-box; + flex-direction: row; + padding: 22rpx 30rpx; +} +.uni-triplex-right, +.uni-triplex-left { + display: flex; + flex-direction: column; +} +.uni-triplex-left { + width: 84%; +} +.uni-triplex-left .uni-title{ + padding:8rpx 0; +} +.uni-triplex-left .uni-text, .uni-triplex-left .uni-text-small{color:#999999;} +.uni-triplex-right { + width: 16%; + text-align: right; +} + +/* 图文列表 */ +.uni-media-list { + padding: 22rpx 30rpx; + box-sizing: border-box; + display: flex; + width: 100%; + flex-direction: row; +} +.uni-navigate-right.uni-media-list { + padding-right: 74rpx; +} +.uni-pull-right { + flex-direction: row-reverse; +} +.uni-pull-right>.uni-media-list-logo { + margin-right: 0rpx; + margin-left: 20rpx; +} +.uni-media-list-logo { + height: 84rpx; + width: 84rpx; + margin-right: 20rpx; +} +.uni-media-list-logo image { + height: 100%; + width: 100%; +} +.uni-media-list-body { + height: 84rpx; + display: flex; + flex: 1; + flex-direction: column; + justify-content: space-between; + align-items: flex-start; + overflow: hidden; +} +.uni-media-list-text-top { + width: 100%; + line-height: 36rpx; + font-size: 30rpx; + color: #202328; +} +.uni-media-list-text-bottom { + width: 100%; + line-height: 30rpx; + font-size: 26rpx; + color: #8f8f94; +} + +/* 九宫格 */ +.uni-grid-9 { + background: #f2f2f2; + width: 750rpx; + display: flex; + flex-direction: row; + flex-wrap: wrap; + border-top: 2rpx solid #eee; +} +.uni-grid-9-item { + width: 250rpx; + height: 200rpx; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + border-bottom: 2rpx solid; + border-right: 2rpx solid; + border-color: #eee; + box-sizing: border-box; +} +.no-border-right { + border-right: none; +} +.uni-grid-9-image { + width: 100rpx; + height: 100rpx; +} +.uni-grid-9-text { + width: 250rpx; + line-height: 4rpx; + height: 40rpx; + text-align: center; + font-size: 30rpx; +} +.uni-grid-9-item-hover { + background: rgba(0, 0, 0, 0.1); +} + +/* 上传 */ +.uni-uploader { + flex: 1; + flex-direction: column; +} +.uni-uploader-head { + display: flex; + flex-direction: row; + justify-content: space-between; +} +.uni-uploader-info { + color: #B2B2B2; +} +.uni-uploader-body { + margin-top: 16rpx; +} +.uni-uploader__files { + display: flex; + flex-direction: row; + flex-wrap: wrap; +} +.uni-uploader__file { + margin: 10rpx; + width: 210rpx; + height: 210rpx; +} +.uni-uploader__img { + display: block; + width: 210rpx; + height: 210rpx; +} +.uni-uploader__input-box { + position: relative; + margin:10rpx; + width: 208rpx; + height: 208rpx; + border: 2rpx solid #D9D9D9; +} +.uni-uploader__input-box:before, +.uni-uploader__input-box:after { + content: " "; + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + background-color: #D9D9D9; +} +.uni-uploader__input-box:before { + width: 4rpx; + height: 79rpx; +} +.uni-uploader__input-box:after { + width: 79rpx; + height: 4rpx; +} +.uni-uploader__input-box:active { + border-color: #999999; +} +.uni-uploader__input-box:active:before, +.uni-uploader__input-box:active:after { + background-color: #999999; +} +.uni-uploader__input { + position: absolute; + z-index: 1; + top: 0; + left: 0; + width: 100%; + height: 100%; + opacity: 0; +} + +/*问题反馈*/ +.feedback-title { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 20rpx; + color: #8f8f94; + font-size: 28rpx; +} +.feedback-star-view.feedback-title { + justify-content: flex-start; + margin: 0; +} +.feedback-quick { + position: relative; + padding-right: 40rpx; +} +.feedback-quick:after { + font-family: uniicons; + font-size: 40rpx; + content: '\e581'; + position: absolute; + right: 0; + top: 50%; + color: #bbb; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); +} +.feedback-body { + background: #fff; +} +.feedback-textare { + height: 200rpx; + font-size: 34rpx; + line-height: 50rpx; + width: 100%; + box-sizing: border-box; + padding: 20rpx 30rpx 0; +} +.feedback-input { + font-size: 34rpx; + height: 50rpx; + min-height: 50rpx; + padding: 15rpx 20rpx; + line-height: 50rpx; +} +.feedback-uploader { + padding: 22rpx 20rpx; +} +.feedback-star { + font-family: uniicons; + font-size: 40rpx; + margin-left: 6rpx; +} +.feedback-star-view { + margin-left: 20rpx; +} +.feedback-star:after { + content: '\e408'; +} +.feedback-star.active { + color: #FFB400; +} +.feedback-star.active:after { + content: '\e438'; +} +.feedback-submit { + background: #007AFF; + color: #FFFFFF; + margin: 20rpx; +} + +/* input group */ +.uni-input-group { + position: relative; + padding: 0; + border: 0; + background-color: #fff; +} + +.uni-input-group:before { + position: absolute; + top: 0; + right: 0; + left: 0; + height: 2rpx; + content: ''; + transform: scaleY(.5); + background-color: #c8c7cc; +} + +.uni-input-group:after { + position: absolute; + right: 0; + bottom: 0; + left: 0; + height: 2rpx; + content: ''; + transform: scaleY(.5); + background-color: #c8c7cc; +} + +.uni-input-row { + position: relative; + display: flex; + flex-direction: row; + font-size:28rpx; + padding: 22rpx 30rpx; + justify-content: space-between; +} + +.uni-input-group .uni-input-row:after { + position: absolute; + right: 0; + bottom: 0; + left: 30rpx; + height: 2rpx; + content: ''; + transform: scaleY(.5); + background-color: #c8c7cc; +} + +.uni-input-row label { + line-height: 70rpx; +} + +/* textarea */ +.uni-textarea{ + width:100%; + background:#FFF; +} +.uni-textarea textarea{ + width:96%; + padding:18rpx 2%; + line-height:1.6; + font-size:28rpx; + height:150rpx; +} + +/* tab bar */ +.uni-tab-bar { + display: flex; + flex: 1; + flex-direction: column; + overflow: hidden; + height: 100%; +} + +.uni-tab-bar .list { + width: 750rpx; + height: 100%; +} + +.uni-swiper-tab { + width: 100%; + white-space: nowrap; + line-height: 100rpx; + height: 100rpx; + border-bottom: 1px solid #c8c7cc; +} + +.swiper-tab-list { + font-size: 30rpx; + width: 150rpx; + display: inline-block; + text-align: center; + color: #555; +} + +.uni-tab-bar .active { + color: #007AFF; +} + +.uni-tab-bar .swiper-box { + flex: 1; + width: 100%; + height: calc(100% - 100rpx); +} + +.uni-tab-bar-loading{ + padding:20rpx 0; +} + +/* comment */ +.uni-comment{padding:5rpx 0; display: flex; flex-grow:1; flex-direction: column;} +.uni-comment-list{flex-wrap:nowrap; padding:10rpx 0; margin:10rpx 0; width:100%; display: flex;} +.uni-comment-face{width:70rpx; height:70rpx; border-radius:100%; margin-right:20rpx; flex-shrink:0; overflow:hidden;} +.uni-comment-face image{width:100%; border-radius:100%;} +.uni-comment-body{width:100%;} +.uni-comment-top{line-height:1.5em; justify-content:space-between;} +.uni-comment-top text{color:#0A98D5; font-size:24rpx;} +.uni-comment-date{line-height:38rpx; flex-direction:row; justify-content:space-between; display:flex !important; flex-grow:1;} +.uni-comment-date view{color:#666666; font-size:24rpx; line-height:38rpx;} +.uni-comment-content{line-height:1.6em; font-size:28rpx; padding:8rpx 0;} +.uni-comment-replay-btn{background:#FFF; font-size:24rpx; line-height:28rpx; padding:5rpx 20rpx; border-radius:30rpx; color:#333 !important; margin:0 10rpx;} + +/* swiper msg */ +.uni-swiper-msg{width:100%; padding:12rpx 0; flex-wrap:nowrap; display:flex;} +.uni-swiper-msg-icon{width:50rpx; margin-right:20rpx;} +.uni-swiper-msg-icon image{width:100%; flex-shrink:0;} +.uni-swiper-msg swiper{width:100%; height:50rpx;} +.uni-swiper-msg swiper-item{line-height:50rpx;} + +/* product */ +.uni-product-list { + display: flex; + width: 100%; + flex-wrap: wrap; + flex-direction: row; +} + +.uni-product { + padding: 20rpx; + display: flex; + flex-direction: column; +} + +.image-view { + height: 330rpx; + width: 330rpx; + margin:12rpx 0; +} + +.uni-product-image { + height: 330rpx; + width: 330rpx; +} + +.uni-product-title { + width: 300rpx; + word-break: break-all; + display: -webkit-box; + overflow: hidden; + line-height:1.5; + text-overflow: ellipsis; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; +} + +.uni-product-price { + margin-top:10rpx; + font-size: 28rpx; + line-height:1.5; + position: relative; +} + +.uni-product-price-original { + color: #e80080; +} + +.uni-product-price-favour { + color: #888888; + text-decoration: line-through; + margin-left: 10rpx; +} + +.uni-product-tip { + position: absolute; + right: 10rpx; + background-color: #ff3333; + color: #ffffff; + padding: 0 10rpx; + border-radius: 5rpx; +} + +/* timeline */ +.uni-timeline { + margin: 35rpx 0; + display: flex; + flex-direction: column; + position: relative; + } + + + .uni-timeline-item { + display: flex; + flex-direction: row; + position: relative; + padding-bottom: 20rpx; + box-sizing: border-box; + overflow: hidden; + + } + + .uni-timeline-item .uni-timeline-item-keynode { + width: 160rpx; + flex-shrink: 0; + box-sizing: border-box; + padding-right: 20rpx; + text-align: right; + line-height: 65rpx; + } + + .uni-timeline-item .uni-timeline-item-divider { + flex-shrink: 0; + position: relative; + width: 30rpx; + height: 30rpx; + top: 15rpx; + border-radius: 50%; + background-color: #bbb; + } + + + + .uni-timeline-item-divider::before, + .uni-timeline-item-divider::after { + position: absolute; + left: 15rpx; + width: 1rpx; + height: 100vh; + content: ''; + background: inherit; + } + + .uni-timeline-item-divider::before { + bottom: 100%; + } + + .uni-timeline-item-divider::after { + top: 100%; + } + + + .uni-timeline-last-item .uni-timeline-item-divider:after { + display: none; + } + + .uni-timeline-first-item .uni-timeline-item-divider:before { + display: none; + } + + .uni-timeline-item .uni-timeline-item-content { + padding-left: 20rpx; + } + + .uni-timeline-last-item .bottom-border::after{ + display: none; + } + + .uni-timeline-item-content .datetime{ + color: #CCCCCC; + } + + /* 自定义节点颜色 */ + .uni-timeline-last-item .uni-timeline-item-divider{ + background-color: #1AAD19; + } + + +/* uni-icon */ + +.uni-icon { + font-family: uniicons; + font-size: 24px; + font-weight: normal; + font-style: normal; + line-height: 1; + display: inline-block; + text-decoration: none; + -webkit-font-smoothing: antialiased; +} + +.uni-icon.uni-active { + color: #007aff; +} + +.uni-icon-contact:before { + content: '\e100'; +} + +.uni-icon-person:before { + content: '\e101'; +} + +.uni-icon-personadd:before { + content: '\e102'; +} + +.uni-icon-contact-filled:before { + content: '\e130'; +} + +.uni-icon-person-filled:before { + content: '\e131'; +} + +.uni-icon-personadd-filled:before { + content: '\e132'; +} + +.uni-icon-phone:before { + content: '\e200'; +} + +.uni-icon-email:before { + content: '\e201'; +} + +.uni-icon-chatbubble:before { + content: '\e202'; +} + +.uni-icon-chatboxes:before { + content: '\e203'; +} + +.uni-icon-phone-filled:before { + content: '\e230'; +} + +.uni-icon-email-filled:before { + content: '\e231'; +} + +.uni-icon-chatbubble-filled:before { + content: '\e232'; +} + +.uni-icon-chatboxes-filled:before { + content: '\e233'; +} + +.uni-icon-weibo:before { + content: '\e260'; +} + +.uni-icon-weixin:before { + content: '\e261'; +} + +.uni-icon-pengyouquan:before { + content: '\e262'; +} + +.uni-icon-chat:before { + content: '\e263'; +} + +.uni-icon-qq:before { + content: '\e264'; +} + +.uni-icon-videocam:before { + content: '\e300'; +} + +.uni-icon-camera:before { + content: '\e301'; +} + +.uni-icon-mic:before { + content: '\e302'; +} + +.uni-icon-location:before { + content: '\e303'; +} + +.uni-icon-mic-filled:before, +.uni-icon-speech:before { + content: '\e332'; +} + +.uni-icon-location-filled:before { + content: '\e333'; +} + +.uni-icon-micoff:before { + content: '\e360'; +} + +.uni-icon-image:before { + content: '\e363'; +} + +.uni-icon-map:before { + content: '\e364'; +} + +.uni-icon-compose:before { + content: '\e400'; +} + +.uni-icon-trash:before { + content: '\e401'; +} + +.uni-icon-upload:before { + content: '\e402'; +} + +.uni-icon-download:before { + content: '\e403'; +} + +.uni-icon-close:before { + content: '\e404'; +} + +.uni-icon-redo:before { + content: '\e405'; +} + +.uni-icon-undo:before { + content: '\e406'; +} + +.uni-icon-refresh:before { + content: '\e407'; +} + +.uni-icon-star:before { + content: '\e408'; +} + +.uni-icon-plus:before { + content: '\e409'; +} + +.uni-icon-minus:before { + content: '\e410'; +} + +.uni-icon-circle:before, +.uni-icon-checkbox:before { + content: '\e411'; +} + +.uni-icon-close-filled:before, +.uni-icon-clear:before { + content: '\e434'; +} + +.uni-icon-refresh-filled:before { + content: '\e437'; +} + +.uni-icon-star-filled:before { + content: '\e438'; +} + +.uni-icon-plus-filled:before { + content: '\e439'; +} + +.uni-icon-minus-filled:before { + content: '\e440'; +} + +.uni-icon-circle-filled:before { + content: '\e441'; +} + +.uni-icon-checkbox-filled:before { + content: '\e442'; +} + +.uni-icon-closeempty:before { + content: '\e460'; +} + +.uni-icon-refreshempty:before { + content: '\e461'; +} + +.uni-icon-reload:before { + content: '\e462'; +} + +.uni-icon-starhalf:before { + content: '\e463'; +} + +.uni-icon-spinner:before { + content: '\e464'; +} + +.uni-icon-spinner-cycle:before { + content: '\e465'; +} + +.uni-icon-search:before { + content: '\e466'; +} + +.uni-icon-plusempty:before { + content: '\e468'; +} + +.uni-icon-forward:before { + content: '\e470'; +} + +.uni-icon-back:before, +.uni-icon-left-nav:before { + content: '\e471'; +} + +.uni-icon-checkmarkempty:before { + content: '\e472'; +} + +.uni-icon-home:before { + content: '\e500'; +} + +.uni-icon-navigate:before { + content: '\e501'; +} + +.uni-icon-gear:before { + content: '\e502'; +} + +.uni-icon-paperplane:before { + content: '\e503'; +} + +.uni-icon-info:before { + content: '\e504'; +} + +.uni-icon-help:before { + content: '\e505'; +} + +.uni-icon-locked:before { + content: '\e506'; +} + +.uni-icon-more:before { + content: '\e507'; +} + +.uni-icon-flag:before { + content: '\e508'; +} + +.uni-icon-home-filled:before { + content: '\e530'; +} + +.uni-icon-gear-filled:before { + content: '\e532'; +} + +.uni-icon-info-filled:before { + content: '\e534'; +} + +.uni-icon-help-filled:before { + content: '\e535'; +} + +.uni-icon-more-filled:before { + content: '\e537'; +} + +.uni-icon-settings:before { + content: '\e560'; +} + +.uni-icon-list:before { + content: '\e562'; +} + +.uni-icon-bars:before { + content: '\e563'; +} + +.uni-icon-loop:before { + content: '\e565'; +} + +.uni-icon-paperclip:before { + content: '\e567'; +} + +.uni-icon-eye:before { + content: '\e568'; +} + +.uni-icon-arrowup:before { + content: '\e580'; +} + +.uni-icon-arrowdown:before { + content: '\e581'; +} + +.uni-icon-arrowleft:before { + content: '\e582'; +} + +.uni-icon-arrowright:before { + content: '\e583'; +} + +.uni-icon-arrowthinup:before { + content: '\e584'; +} + +.uni-icon-arrowthindown:before { + content: '\e585'; +} + +.uni-icon-arrowthinleft:before { + content: '\e586'; +} + +.uni-icon-arrowthinright:before { + content: '\e587'; +} + +.uni-icon-pulldown:before { + content: '\e588'; +} + +.uni-icon-scan:before { + content: "\e612"; +} + +/* 分界线 */ +.uni-divider{ + height: 110rpx; + display: flex; + align-items:center; + justify-content: center; + position: relative; +} +.uni-divider__content{ + font-size: 28rpx; + color: #999; + padding: 0 20rpx; + position: relative; + z-index: 101; + background: #F4F5F6; +} +.uni-divider__line{ + background-color: #CCCCCC; + height: 1px; + width: 100%; + position: absolute; + z-index: 100; + top: 50%; + left: 0; + transform: translateY(50%); +} + +.left-win-active text{ + color: #007AFF !important; +} diff --git a/common/vue-i18n.min.js b/common/vue-i18n.min.js new file mode 100644 index 0000000..ae0e89a --- /dev/null +++ b/common/vue-i18n.min.js @@ -0,0 +1,1022 @@ +/*! + * vue-i18n v8.20.0 + * (c) 2020 kazuya kawaguchi + * Released under the MIT License. + */ +var t, e; +t = this, e = function() { + "use strict"; + var t = ["style", "currency", "currencyDisplay", "useGrouping", "minimumIntegerDigits", "minimumFractionDigits", + "maximumFractionDigits", "minimumSignificantDigits", "maximumSignificantDigits", "localeMatcher", + "formatMatcher", "unit" + ]; + + function e(t, e) { + "undefined" != typeof console && (console.warn("[vue-i18n] " + t), e && console.warn(e.stack)) + } + var n = Array.isArray; + + function r(t) { + return null !== t && "object" == typeof t + } + + function a(t) { + return "string" == typeof t + } + var i = Object.prototype.toString, + o = "[object Object]"; + + function s(t) { + return i.call(t) === o + } + + function l(t) { + return null == t + } + + function c() { + for (var t = [], e = arguments.length; e--;) t[e] = arguments[e]; + var n = null, + a = null; + return 1 === t.length ? r(t[0]) || Array.isArray(t[0]) ? a = t[0] : "string" == typeof t[0] && (n = t[0]) : + 2 === t.length && ("string" == typeof t[0] && (n = t[0]), (r(t[1]) || Array.isArray(t[1])) && (a = t[ + 1])), { + locale: n, + params: a + } + } + + function u(t) { + return JSON.parse(JSON.stringify(t)) + } + + function h(t, e) { + return !!~t.indexOf(e) + } + var f = Object.prototype.hasOwnProperty; + + function p(t, e) { + return f.call(t, e) + } + + function m(t) { + for (var e = arguments, n = Object(t), a = 1; a < arguments.length; a++) { + var i = e[a]; + if (null != i) { + var o = void 0; + for (o in i) p(i, o) && (r(i[o]) ? n[o] = m(n[o], i[o]) : n[o] = i[o]) + } + } + return n + } + + function _(t, e) { + if (t === e) return !0; + var n = r(t), + a = r(e); + if (!n || !a) return !n && !a && String(t) === String(e); + try { + var i = Array.isArray(t), + o = Array.isArray(e); + if (i && o) return t.length === e.length && t.every(function(t, n) { + return _(t, e[n]) + }); + if (i || o) return !1; + var s = Object.keys(t), + l = Object.keys(e); + return s.length === l.length && s.every(function(n) { + return _(t[n], e[n]) + }) + } catch (t) { + return !1 + } + } + var g = { + beforeCreate: function() { + var t = this.$options; + if (t.i18n = t.i18n || (t.__i18n ? {} : null), t.i18n) { + if (t.i18n instanceof et) { + if (t.__i18n) try { + var e = {}; + t.__i18n.forEach(function(t) { + e = m(e, JSON.parse(t)) + }), Object.keys(e).forEach(function(n) { + t.i18n.mergeLocaleMessage(n, e[n]) + }) + } catch (t) {} + this._i18n = t.i18n, this._i18nWatcher = this._i18n.watchI18nData() + } else if (s(t.i18n)) { + var n = this.$root && this.$root.$i18n && this.$root.$i18n instanceof et ? this.$root + .$i18n : null; + if (n && (t.i18n.root = this.$root, t.i18n.formatter = n.formatter, t.i18n + .fallbackLocale = n.fallbackLocale, t.i18n.formatFallbackMessages = n + .formatFallbackMessages, t.i18n.silentTranslationWarn = n.silentTranslationWarn, + t.i18n.silentFallbackWarn = n.silentFallbackWarn, t.i18n.pluralizationRules = n + .pluralizationRules, t.i18n.preserveDirectiveContent = n + .preserveDirectiveContent), t.__i18n) try { + var r = {}; + t.__i18n.forEach(function(t) { + r = m(r, JSON.parse(t)) + }), t.i18n.messages = r + } catch (t) {} + var a = t.i18n.sharedMessages; + a && s(a) && (t.i18n.messages = m(t.i18n.messages, a)), this._i18n = new et(t.i18n), + this._i18nWatcher = this._i18n.watchI18nData(), (void 0 === t.i18n.sync || t.i18n + .sync) && (this._localeWatcher = this.$i18n.watchLocale()), n && n + .onComponentInstanceCreated(this._i18n) + } + } else this.$root && this.$root.$i18n && this.$root.$i18n instanceof et ? this._i18n = this + .$root.$i18n : t.parent && t.parent.$i18n && t.parent.$i18n instanceof et && (this._i18n = t + .parent.$i18n) + }, + beforeMount: function() { + var t = this.$options; + t.i18n = t.i18n || (t.__i18n ? {} : null), t.i18n ? t.i18n instanceof et ? (this._i18n + .subscribeDataChanging(this), this._subscribing = !0) : s(t.i18n) && (this._i18n + .subscribeDataChanging(this), this._subscribing = !0) : this.$root && this.$root + .$i18n && this.$root.$i18n instanceof et ? (this._i18n.subscribeDataChanging(this), this + ._subscribing = !0) : t.parent && t.parent.$i18n && t.parent.$i18n instanceof et && ( + this._i18n.subscribeDataChanging(this), this._subscribing = !0) + }, + beforeDestroy: function() { + if (this._i18n) { + var t = this; + this.$nextTick(function() { + t._subscribing && (t._i18n.unsubscribeDataChanging(t), delete t._subscribing), t + ._i18nWatcher && (t._i18nWatcher(), t._i18n.destroyVM(), delete t + ._i18nWatcher), t._localeWatcher && (t._localeWatcher(), delete t + ._localeWatcher) + }) + } + } + }, + v = { + name: "i18n", + functional: !0, + props: { + tag: { + type: [String, Boolean, Object], + default: "span" + }, + path: { + type: String, + required: !0 + }, + locale: { + type: String + }, + places: { + type: [Array, Object] + } + }, + render: function(t, e) { + var n = e.data, + r = e.parent, + a = e.props, + i = e.slots, + o = r.$i18n; + if (o) { + var s = a.path, + l = a.locale, + c = a.places, + u = i(), + h = o.i(s, l, function(t) { + var e; + for (e in t) + if ("default" !== e) return !1; + return Boolean(e) + }(u) || c ? function(t, e) { + var n = e ? function(t) { + return Array.isArray(t) ? t.reduce(d, {}) : Object.assign({}, t) + }(e) : {}; + if (!t) return n; + var r = (t = t.filter(function(t) { + return t.tag || "" !== t.text.trim() + })).every(y); + return t.reduce(r ? b : d, n) + }(u.default, c) : u), + f = a.tag && !0 !== a.tag || !1 === a.tag ? a.tag : "span"; + return f ? t(f, n, h) : h + } + } + }; + + function b(t, e) { + return e.data && e.data.attrs && e.data.attrs.place && (t[e.data.attrs.place] = e), t + } + + function d(t, e, n) { + return t[n] = e, t + } + + function y(t) { + return Boolean(t.data && t.data.attrs && t.data.attrs.place) + } + var F, k = { + name: "i18n-n", + functional: !0, + props: { + tag: { + type: [String, Boolean, Object], + default: "span" + }, + value: { + type: Number, + required: !0 + }, + format: { + type: [String, Object] + }, + locale: { + type: String + } + }, + render: function(e, n) { + var i = n.props, + o = n.parent, + s = n.data, + l = o.$i18n; + if (!l) return null; + var c = null, + u = null; + a(i.format) ? c = i.format : r(i.format) && (i.format.key && (c = i.format.key), u = Object + .keys(i.format).reduce(function(e, n) { + var r; + return h(t, n) ? Object.assign({}, e, ((r = {})[n] = i.format[n], r)) : e + }, null)); + var f = i.locale || l.locale, + p = l._ntp(i.value, f, c, u), + m = p.map(function(t, e) { + var n, r = s.scopedSlots && s.scopedSlots[t.type]; + return r ? r(((n = {})[t.type] = t.value, n.index = e, n.parts = p, n)) : t.value + }), + _ = i.tag && !0 !== i.tag || !1 === i.tag ? i.tag : "span"; + return _ ? e(_, { + attrs: s.attrs, + class: s.class, + staticClass: s.staticClass + }, m) : m + } + }; + + function w(t, e, n) { + C(t, n) && T(t, e, n) + } + + function $(t, e, n, r) { + if (C(t, n)) { + var a = n.context.$i18n; + (function(t, e) { + var n = e.context; + return t._locale === n.$i18n.locale + })(t, n) && _(e.value, e.oldValue) && _(t._localeMessage, a.getLocaleMessage(a.locale)) || T(t, e, n) + } + } + + function M(t, n, r, a) { + if (r.context) { + var i = r.context.$i18n || {}; + n.modifiers.preserve || i.preserveDirectiveContent || (t.textContent = ""), t._vt = void 0, delete t + ._vt, t._locale = void 0, delete t._locale, t._localeMessage = void 0, delete t._localeMessage + } else e("Vue instance does not exists in VNode context") + } + + function C(t, n) { + var r = n.context; + return r ? !!r.$i18n || (e("VueI18n instance does not exists in Vue instance"), !1) : (e( + "Vue instance does not exists in VNode context"), !1) + } + + function T(t, n, r) { + var i, o, l = function(t) { + var e, n, r, i; + a(t) ? e = t : s(t) && (e = t.path, n = t.locale, r = t.args, i = t.choice); + return { + path: e, + locale: n, + args: r, + choice: i + } + }(n.value), + c = l.path, + u = l.locale, + h = l.args, + f = l.choice; + if (c || u || h) + if (c) { + var p = r.context; + t._vt = t.textContent = null != f ? (i = p.$i18n).tc.apply(i, [c, f].concat(L(u, h))) : (o = p + .$i18n).t.apply(o, [c].concat(L(u, h))), t._locale = p.$i18n.locale, t._localeMessage = p + .$i18n.getLocaleMessage(p.$i18n.locale) + } else e("`path` is required in v-t directive"); + else e("value type not supported") + } + + function L(t, e) { + var n = []; + return t && n.push(t), e && (Array.isArray(e) || s(e)) && n.push(e), n + } + + function I(t) { + I.installed = !0; + (F = t).version && Number(F.version.split(".")[0]); + ! function(t) { + t.prototype.hasOwnProperty("$i18n") || Object.defineProperty(t.prototype, "$i18n", { + get: function() { + return this._i18n + } + }), t.prototype.$t = function(t) { + for (var e = [], n = arguments.length - 1; n-- > 0;) e[n] = arguments[n + 1]; + var r = this.$i18n; + return r._t.apply(r, [t, r.locale, r._getMessages(), this].concat(e)) + }, t.prototype.$tc = function(t, e) { + for (var n = [], r = arguments.length - 2; r-- > 0;) n[r] = arguments[r + 2]; + var a = this.$i18n; + return a._tc.apply(a, [t, a.locale, a._getMessages(), this, e].concat(n)) + }, t.prototype.$te = function(t, e) { + var n = this.$i18n; + return n._te(t, n.locale, n._getMessages(), e) + }, t.prototype.$d = function(t) { + for (var e, n = [], r = arguments.length - 1; r-- > 0;) n[r] = arguments[r + 1]; + return (e = this.$i18n).d.apply(e, [t].concat(n)) + }, t.prototype.$n = function(t) { + for (var e, n = [], r = arguments.length - 1; r-- > 0;) n[r] = arguments[r + 1]; + return (e = this.$i18n).n.apply(e, [t].concat(n)) + } + }(F), F.mixin(g), F.directive("t", { + bind: w, + update: $, + unbind: M + }), F.component(v.name, v), F.component(k.name, k), F.config.optionMergeStrategies.i18n = function(t, + e) { + return void 0 === e ? t : e + } + } + var D = function() { + this._caches = Object.create(null) + }; + D.prototype.interpolate = function(t, e) { + if (!e) return [t]; + var n = this._caches[t]; + return n || (n = function(t) { + var e = [], + n = 0, + r = ""; + for (; n < t.length;) { + var a = t[n++]; + if ("{" === a) { + r && e.push({ + type: "text", + value: r + }), r = ""; + var i = ""; + for (a = t[n++]; void 0 !== a && "}" !== a;) i += a, a = t[n++]; + var o = "}" === a, + s = O.test(i) ? "list" : o && x.test(i) ? "named" : "unknown"; + e.push({ + value: i, + type: s + }) + } else "%" === a ? "{" !== t[n] && (r += a) : r += a + } + return r && e.push({ + type: "text", + value: r + }), e + }(t), this._caches[t] = n), + function(t, e) { + var n = [], + a = 0, + i = Array.isArray(e) ? "list" : r(e) ? "named" : "unknown"; + if ("unknown" === i) return n; + for (; a < t.length;) { + var o = t[a]; + switch (o.type) { + case "text": + n.push(o.value); + break; + case "list": + n.push(e[parseInt(o.value, 10)]); + break; + case "named": + "named" === i && n.push(e[o.value]) + } + a++ + } + return n + }(n, e) + }; + var O = /^(?:\d)+/, + x = /^(?:\w)+/, + W = 0, + j = 1, + N = 2, + A = 3, + S = 0, + R = 4, + H = 5, + P = 6, + V = 7, + E = 8, + z = []; + z[S] = { + ws: [S], + ident: [3, W], + "[": [R], + eof: [V] + }, z[1] = { + ws: [1], + ".": [2], + "[": [R], + eof: [V] + }, z[2] = { + ws: [2], + ident: [3, W], + 0: [3, W], + number: [3, W] + }, z[3] = { + ident: [3, W], + 0: [3, W], + number: [3, W], + ws: [1, j], + ".": [2, j], + "[": [R, j], + eof: [V, j] + }, z[R] = { + "'": [H, W], + '"': [P, W], + "[": [R, N], + "]": [1, A], + eof: E, + else: [R, W] + }, z[H] = { + "'": [R, W], + eof: E, + else: [H, W] + }, z[P] = { + '"': [R, W], + eof: E, + else: [P, W] + }; + var B = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; + + function U(t) { + if (null == t) return "eof"; + switch (t.charCodeAt(0)) { + case 91: + case 93: + case 46: + case 34: + case 39: + return t; + case 95: + case 36: + case 45: + return "ident"; + case 9: + case 10: + case 13: + case 160: + case 65279: + case 8232: + case 8233: + return "ws" + } + return "ident" + } + + function J(t) { + var e, n, r, a = t.trim(); + return ("0" !== t.charAt(0) || !isNaN(t)) && (r = a, B.test(r) ? (n = (e = a).charCodeAt(0)) !== e + .charCodeAt(e.length - 1) || 34 !== n && 39 !== n ? e : e.slice(1, -1) : "*" + a) + } + var q = function() { + this._cache = Object.create(null) + }; + q.prototype.parsePath = function(t) { + var e = this._cache[t]; + return e || (e = function(t) { + var e, n, r, a, i, o, s, l = [], + c = -1, + u = S, + h = 0, + f = []; + + function p() { + var e = t[c + 1]; + if (u === H && "'" === e || u === P && '"' === e) return c++, r = "\\" + e, f[W](), !0 + } + for (f[j] = function() { + void 0 !== n && (l.push(n), n = void 0) + }, f[W] = function() { + void 0 === n ? n = r : n += r + }, f[N] = function() { + f[W](), h++ + }, f[A] = function() { + if (h > 0) h--, u = R, f[W](); + else { + if (h = 0, void 0 === n) return !1; + if (!1 === (n = J(n))) return !1; + f[j]() + } + }; null !== u;) + if ("\\" !== (e = t[++c]) || !p()) { + if (a = U(e), (i = (s = z[u])[a] || s.else || E) === E) return; + if (u = i[0], (o = f[i[1]]) && (r = void 0 === (r = i[2]) ? e : r, !1 === o())) + return; + if (u === V) return l + } + }(t)) && (this._cache[t] = e), e || [] + }, q.prototype.getPathValue = function(t, e) { + if (!r(t)) return null; + var n = this.parsePath(e); + if (0 === n.length) return null; + for (var a = n.length, i = t, o = 0; o < a;) { + var s = i[n[o]]; + if (void 0 === s) return null; + i = s, o++ + } + return i + }; + var G, X = /<\/?[\w\s="/.':;#-\/]+>/, + Z = /(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g, + K = /^@(?:\.([a-z]+))?:/, + Q = /[()]/g, + Y = { + upper: function(t) { + return t.toLocaleUpperCase() + }, + lower: function(t) { + return t.toLocaleLowerCase() + }, + capitalize: function(t) { + return "" + t.charAt(0).toLocaleUpperCase() + t.substr(1) + } + }, + tt = new D, + et = function(t) { + var e = this; + void 0 === t && (t = {}), !F && "undefined" != typeof window && window.Vue && I(window.Vue); + var n = t.locale || "en-US", + r = !1 !== t.fallbackLocale && (t.fallbackLocale || "en-US"), + a = t.messages || {}, + i = t.dateTimeFormats || {}, + o = t.numberFormats || {}; + this._vm = null, this._formatter = t.formatter || tt, this._modifiers = t.modifiers || {}, this + ._missing = t.missing || null, this._root = t.root || null, this._sync = void 0 === t.sync || !!t + .sync, this._fallbackRoot = void 0 === t.fallbackRoot || !!t.fallbackRoot, this + ._formatFallbackMessages = void 0 !== t.formatFallbackMessages && !!t.formatFallbackMessages, this + ._silentTranslationWarn = void 0 !== t.silentTranslationWarn && t.silentTranslationWarn, this + ._silentFallbackWarn = void 0 !== t.silentFallbackWarn && !!t.silentFallbackWarn, this + ._dateTimeFormatters = {}, this._numberFormatters = {}, this._path = new q, this + ._dataListeners = [], this._componentInstanceCreatedListener = t.componentInstanceCreatedListener || + null, this._preserveDirectiveContent = void 0 !== t.preserveDirectiveContent && !!t + .preserveDirectiveContent, this.pluralizationRules = t.pluralizationRules || {}, this + ._warnHtmlInMessage = t.warnHtmlInMessage || "off", this._postTranslation = t.postTranslation || + null, this.getChoiceIndex = function(t, n) { + var r = Object.getPrototypeOf(e); + if (r && r.getChoiceIndex) return r.getChoiceIndex.call(e, t, n); + var a, i; + return e.locale in e.pluralizationRules ? e.pluralizationRules[e.locale].apply(e, [t, n]) : (a = + t, i = n, a = Math.abs(a), 2 === i ? a ? a > 1 ? 1 : 0 : 1 : a ? Math.min(a, 2) : 0) + }, this._exist = function(t, n) { + return !(!t || !n) && (!l(e._path.getPathValue(t, n)) || !!t[n]) + }, "warn" !== this._warnHtmlInMessage && "error" !== this._warnHtmlInMessage || Object.keys(a) + .forEach(function(t) { + e._checkLocaleMessage(t, e._warnHtmlInMessage, a[t]) + }), this._initVM({ + locale: n, + fallbackLocale: r, + messages: a, + dateTimeFormats: i, + numberFormats: o + }) + }, + nt = { + vm: { + configurable: !0 + }, + messages: { + configurable: !0 + }, + dateTimeFormats: { + configurable: !0 + }, + numberFormats: { + configurable: !0 + }, + availableLocales: { + configurable: !0 + }, + locale: { + configurable: !0 + }, + fallbackLocale: { + configurable: !0 + }, + formatFallbackMessages: { + configurable: !0 + }, + missing: { + configurable: !0 + }, + formatter: { + configurable: !0 + }, + silentTranslationWarn: { + configurable: !0 + }, + silentFallbackWarn: { + configurable: !0 + }, + preserveDirectiveContent: { + configurable: !0 + }, + warnHtmlInMessage: { + configurable: !0 + }, + postTranslation: { + configurable: !0 + } + }; + return et.prototype._checkLocaleMessage = function(t, n, r) { + var i = function(t, n, r, o) { + if (s(r)) Object.keys(r).forEach(function(e) { + var a = r[e]; + s(a) ? (o.push(e), o.push("."), i(t, n, a, o), o.pop(), o.pop()) : (o.push(e), i(t, + n, a, o), o.pop()) + }); + else if (Array.isArray(r)) r.forEach(function(e, r) { + s(e) ? (o.push("[" + r + "]"), o.push("."), i(t, n, e, o), o.pop(), o.pop()) : (o + .push("[" + r + "]"), i(t, n, e, o), o.pop()) + }); + else if (a(r)) { + if (X.test(r)) { + var l = "Detected HTML in message '" + r + "' of keypath '" + o.join("") + "' at '" + + n + + "'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp"; + "warn" === t ? e(l) : "error" === t && function(t, e) { + "undefined" != typeof console && (console.error("[vue-i18n] " + t), e && console + .error(e.stack)) + }(l) + } + } + }; + i(n, t, r, []) + }, et.prototype._initVM = function(t) { + var e = F.config.silent; + F.config.silent = !0, this._vm = new F({ + data: t + }), F.config.silent = e + }, et.prototype.destroyVM = function() { + this._vm.$destroy() + }, et.prototype.subscribeDataChanging = function(t) { + this._dataListeners.push(t) + }, et.prototype.unsubscribeDataChanging = function(t) { + ! function(t, e) { + if (t.length) { + var n = t.indexOf(e); + if (n > -1) t.splice(n, 1) + } + }(this._dataListeners, t) + }, et.prototype.watchI18nData = function() { + var t = this; + return this._vm.$watch("$data", function() { + for (var e = t._dataListeners.length; e--;) F.nextTick(function() { + t._dataListeners[e] && t._dataListeners[e].$forceUpdate() + }) + }, { + deep: !0 + }) + }, et.prototype.watchLocale = function() { + if (!this._sync || !this._root) return null; + var t = this._vm; + return this._root.$i18n.vm.$watch("locale", function(e) { + t.$set(t, "locale", e), t.$forceUpdate() + }, { + immediate: !0 + }) + }, et.prototype.onComponentInstanceCreated = function(t) { + this._componentInstanceCreatedListener && this._componentInstanceCreatedListener(t, this) + }, nt.vm.get = function() { + return this._vm + }, nt.messages.get = function() { + return u(this._getMessages()) + }, nt.dateTimeFormats.get = function() { + return u(this._getDateTimeFormats()) + }, nt.numberFormats.get = function() { + return u(this._getNumberFormats()) + }, nt.availableLocales.get = function() { + return Object.keys(this.messages).sort() + }, nt.locale.get = function() { + return this._vm.locale + }, nt.locale.set = function(t) { + this._vm.$set(this._vm, "locale", t) + }, nt.fallbackLocale.get = function() { + return this._vm.fallbackLocale + }, nt.fallbackLocale.set = function(t) { + this._localeChainCache = {}, this._vm.$set(this._vm, "fallbackLocale", t) + }, nt.formatFallbackMessages.get = function() { + return this._formatFallbackMessages + }, nt.formatFallbackMessages.set = function(t) { + this._formatFallbackMessages = t + }, nt.missing.get = function() { + return this._missing + }, nt.missing.set = function(t) { + this._missing = t + }, nt.formatter.get = function() { + return this._formatter + }, nt.formatter.set = function(t) { + this._formatter = t + }, nt.silentTranslationWarn.get = function() { + return this._silentTranslationWarn + }, nt.silentTranslationWarn.set = function(t) { + this._silentTranslationWarn = t + }, nt.silentFallbackWarn.get = function() { + return this._silentFallbackWarn + }, nt.silentFallbackWarn.set = function(t) { + this._silentFallbackWarn = t + }, nt.preserveDirectiveContent.get = function() { + return this._preserveDirectiveContent + }, nt.preserveDirectiveContent.set = function(t) { + this._preserveDirectiveContent = t + }, nt.warnHtmlInMessage.get = function() { + return this._warnHtmlInMessage + }, nt.warnHtmlInMessage.set = function(t) { + var e = this, + n = this._warnHtmlInMessage; + if (this._warnHtmlInMessage = t, n !== t && ("warn" === t || "error" === t)) { + var r = this._getMessages(); + Object.keys(r).forEach(function(t) { + e._checkLocaleMessage(t, e._warnHtmlInMessage, r[t]) + }) + } + }, nt.postTranslation.get = function() { + return this._postTranslation + }, nt.postTranslation.set = function(t) { + this._postTranslation = t + }, et.prototype._getMessages = function() { + return this._vm.messages + }, et.prototype._getDateTimeFormats = function() { + return this._vm.dateTimeFormats + }, et.prototype._getNumberFormats = function() { + return this._vm.numberFormats + }, et.prototype._warnDefault = function(t, e, n, r, i, o) { + if (!l(n)) return n; + if (this._missing) { + var s = this._missing.apply(null, [t, e, r, i]); + if (a(s)) return s + } + if (this._formatFallbackMessages) { + var u = c.apply(void 0, i); + return this._render(e, o, u.params, e) + } + return e + }, et.prototype._isFallbackRoot = function(t) { + return !t && !l(this._root) && this._fallbackRoot + }, et.prototype._isSilentFallbackWarn = function(t) { + return this._silentFallbackWarn instanceof RegExp ? this._silentFallbackWarn.test(t) : this + ._silentFallbackWarn + }, et.prototype._isSilentFallback = function(t, e) { + return this._isSilentFallbackWarn(e) && (this._isFallbackRoot() || t !== this.fallbackLocale) + }, et.prototype._isSilentTranslationWarn = function(t) { + return this._silentTranslationWarn instanceof RegExp ? this._silentTranslationWarn.test(t) : this + ._silentTranslationWarn + }, et.prototype._interpolate = function(t, e, n, r, i, o, c) { + if (!e) return null; + var u, h = this._path.getPathValue(e, n); + if (Array.isArray(h) || s(h)) return h; + if (l(h)) { + if (!s(e)) return null; + if (!a(u = e[n])) return null + } else { + if (!a(h)) return null; + u = h + } + return (u.indexOf("@:") >= 0 || u.indexOf("@.") >= 0) && (u = this._link(t, e, u, r, "raw", o, c)), this + ._render(u, i, o, n) + }, et.prototype._link = function(t, e, n, r, a, i, o) { + var s = n, + l = s.match(Z); + for (var c in l) + if (l.hasOwnProperty(c)) { + var u = l[c], + f = u.match(K), + p = f[0], + m = f[1], + _ = u.replace(p, "").replace(Q, ""); + if (h(o, _)) return s; + o.push(_); + var g = this._interpolate(t, e, _, r, "raw" === a ? "string" : a, "raw" === a ? void 0 : i, o); + if (this._isFallbackRoot(g)) { + if (!this._root) throw Error("unexpected error"); + var v = this._root.$i18n; + g = v._translate(v._getMessages(), v.locale, v.fallbackLocale, _, r, a, i) + } + g = this._warnDefault(t, _, g, r, Array.isArray(i) ? i : [i], a), this._modifiers + .hasOwnProperty(m) ? g = this._modifiers[m](g) : Y.hasOwnProperty(m) && (g = Y[m](g)), o + .pop(), s = g ? s.replace(u, g) : s + } return s + }, et.prototype._render = function(t, e, n, r) { + var i = this._formatter.interpolate(t, n, r); + return i || (i = tt.interpolate(t, n, r)), "string" !== e || a(i) ? i : i.join("") + }, et.prototype._appendItemToChain = function(t, e, n) { + var r = !1; + return h(t, e) || (r = !0, e && (r = "!" !== e[e.length - 1], e = e.replace(/!/g, ""), t.push(e), n && + n[e] && (r = n[e]))), r + }, et.prototype._appendLocaleToChain = function(t, e, n) { + var r, a = e.split("-"); + do { + var i = a.join("-"); + r = this._appendItemToChain(t, i, n), a.splice(-1, 1) + } while (a.length && !0 === r); + return r + }, et.prototype._appendBlockToChain = function(t, e, n) { + for (var r = !0, i = 0; i < e.length && "boolean" == typeof r; i++) { + var o = e[i]; + a(o) && (r = this._appendLocaleToChain(t, o, n)) + } + return r + }, et.prototype._getLocaleChain = function(t, e) { + if ("" === t) return []; + this._localeChainCache || (this._localeChainCache = {}); + var i = this._localeChainCache[t]; + if (!i) { + e || (e = this.fallbackLocale), i = []; + for (var o, s = [t]; n(s);) s = this._appendBlockToChain(i, s, e); + (s = a(o = n(e) ? e : r(e) ? e.default ? e.default : null : e) ? [o] : o) && this + ._appendBlockToChain(i, s, null), this._localeChainCache[t] = i + } + return i + }, et.prototype._translate = function(t, e, n, r, a, i, o) { + for (var s, c = this._getLocaleChain(e, n), u = 0; u < c.length; u++) { + var h = c[u]; + if (!l(s = this._interpolate(h, t[h], r, a, i, o, [r]))) return s + } + return null + }, et.prototype._t = function(t, e, n, r) { + for (var a, i = [], o = arguments.length - 4; o-- > 0;) i[o] = arguments[o + 4]; + if (!t) return ""; + var s = c.apply(void 0, i), + l = s.locale || e, + u = this._translate(n, l, this.fallbackLocale, t, r, "string", s.params); + if (this._isFallbackRoot(u)) { + if (!this._root) throw Error("unexpected error"); + return (a = this._root).$t.apply(a, [t].concat(i)) + } + return u = this._warnDefault(l, t, u, r, i, "string"), this._postTranslation && null != u && (u = this + ._postTranslation(u, t)), u + }, et.prototype.t = function(t) { + for (var e, n = [], r = arguments.length - 1; r-- > 0;) n[r] = arguments[r + 1]; + return (e = this)._t.apply(e, [t, this.locale, this._getMessages(), null].concat(n)) + }, et.prototype._i = function(t, e, n, r, a) { + var i = this._translate(n, e, this.fallbackLocale, t, r, "raw", a); + if (this._isFallbackRoot(i)) { + if (!this._root) throw Error("unexpected error"); + return this._root.$i18n.i(t, e, a) + } + return this._warnDefault(e, t, i, r, [a], "raw") + }, et.prototype.i = function(t, e, n) { + return t ? (a(e) || (e = this.locale), this._i(t, e, this._getMessages(), null, n)) : "" + }, et.prototype._tc = function(t, e, n, r, a) { + for (var i, o = [], s = arguments.length - 5; s-- > 0;) o[s] = arguments[s + 5]; + if (!t) return ""; + void 0 === a && (a = 1); + var l = { + count: a, + n: a + }, + u = c.apply(void 0, o); + return u.params = Object.assign(l, u.params), o = null === u.locale ? [u.params] : [u.locale, u.params], + this.fetchChoice((i = this)._t.apply(i, [t, e, n, r].concat(o)), a) + }, et.prototype.fetchChoice = function(t, e) { + if (!t && !a(t)) return null; + var n = t.split("|"); + return n[e = this.getChoiceIndex(e, n.length)] ? n[e].trim() : t + }, et.prototype.tc = function(t, e) { + for (var n, r = [], a = arguments.length - 2; a-- > 0;) r[a] = arguments[a + 2]; + return (n = this)._tc.apply(n, [t, this.locale, this._getMessages(), null, e].concat(r)) + }, et.prototype._te = function(t, e, n) { + for (var r = [], a = arguments.length - 3; a-- > 0;) r[a] = arguments[a + 3]; + var i = c.apply(void 0, r).locale || e; + return this._exist(n[i], t) + }, et.prototype.te = function(t, e) { + return this._te(t, this.locale, this._getMessages(), e) + }, et.prototype.getLocaleMessage = function(t) { + return u(this._vm.messages[t] || {}) + }, et.prototype.setLocaleMessage = function(t, e) { + "warn" !== this._warnHtmlInMessage && "error" !== this._warnHtmlInMessage || this._checkLocaleMessage(t, + this._warnHtmlInMessage, e), this._vm.$set(this._vm.messages, t, e) + }, et.prototype.mergeLocaleMessage = function(t, e) { + "warn" !== this._warnHtmlInMessage && "error" !== this._warnHtmlInMessage || this._checkLocaleMessage(t, + this._warnHtmlInMessage, e), this._vm.$set(this._vm.messages, t, m({}, this._vm.messages[t] || + {}, e)) + }, et.prototype.getDateTimeFormat = function(t) { + return u(this._vm.dateTimeFormats[t] || {}) + }, et.prototype.setDateTimeFormat = function(t, e) { + this._vm.$set(this._vm.dateTimeFormats, t, e), this._clearDateTimeFormat(t, e) + }, et.prototype.mergeDateTimeFormat = function(t, e) { + this._vm.$set(this._vm.dateTimeFormats, t, m(this._vm.dateTimeFormats[t] || {}, e)), this + ._clearDateTimeFormat(t, e) + }, et.prototype._clearDateTimeFormat = function(t, e) { + for (var n in e) { + var r = t + "__" + n; + this._dateTimeFormatters.hasOwnProperty(r) && delete this._dateTimeFormatters[r] + } + }, et.prototype._localizeDateTime = function(t, e, n, r, a) { + for (var i = e, o = r[i], s = this._getLocaleChain(e, n), c = 0; c < s.length; c++) { + var u = s[c]; + if (i = u, !l(o = r[u]) && !l(o[a])) break + } + if (l(o) || l(o[a])) return null; + var h = o[a], + f = i + "__" + a, + p = this._dateTimeFormatters[f]; + return p || (p = this._dateTimeFormatters[f] = new Intl.DateTimeFormat(i, h)), p.format(t) + }, et.prototype._d = function(t, e, n) { + if (!n) return new Intl.DateTimeFormat(e).format(t); + var r = this._localizeDateTime(t, e, this.fallbackLocale, this._getDateTimeFormats(), n); + if (this._isFallbackRoot(r)) { + if (!this._root) throw Error("unexpected error"); + return this._root.$i18n.d(t, n, e) + } + return r || "" + }, et.prototype.d = function(t) { + for (var e = [], n = arguments.length - 1; n-- > 0;) e[n] = arguments[n + 1]; + var i = this.locale, + o = null; + return 1 === e.length ? a(e[0]) ? o = e[0] : r(e[0]) && (e[0].locale && (i = e[0].locale), e[0].key && ( + o = e[0].key)) : 2 === e.length && (a(e[0]) && (o = e[0]), a(e[1]) && (i = e[1])), this._d(t, i, + o) + }, et.prototype.getNumberFormat = function(t) { + return u(this._vm.numberFormats[t] || {}) + }, et.prototype.setNumberFormat = function(t, e) { + this._vm.$set(this._vm.numberFormats, t, e), this._clearNumberFormat(t, e) + }, et.prototype.mergeNumberFormat = function(t, e) { + this._vm.$set(this._vm.numberFormats, t, m(this._vm.numberFormats[t] || {}, e)), this + ._clearNumberFormat(t, e) + }, et.prototype._clearNumberFormat = function(t, e) { + for (var n in e) { + var r = t + "__" + n; + this._numberFormatters.hasOwnProperty(r) && delete this._numberFormatters[r] + } + }, et.prototype._getNumberFormatter = function(t, e, n, r, a, i) { + for (var o = e, s = r[o], c = this._getLocaleChain(e, n), u = 0; u < c.length; u++) { + var h = c[u]; + if (o = h, !l(s = r[h]) && !l(s[a])) break + } + if (l(s) || l(s[a])) return null; + var f, p = s[a]; + if (i) f = new Intl.NumberFormat(o, Object.assign({}, p, i)); + else { + var m = o + "__" + a; + (f = this._numberFormatters[m]) || (f = this._numberFormatters[m] = new Intl.NumberFormat(o, p)) + } + return f + }, et.prototype._n = function(t, e, n, r) { + if (!et.availabilities.numberFormat) return ""; + if (!n) return (r ? new Intl.NumberFormat(e, r) : new Intl.NumberFormat(e)).format(t); + var a = this._getNumberFormatter(t, e, this.fallbackLocale, this._getNumberFormats(), n, r), + i = a && a.format(t); + if (this._isFallbackRoot(i)) { + if (!this._root) throw Error("unexpected error"); + return this._root.$i18n.n(t, Object.assign({}, { + key: n, + locale: e + }, r)) + } + return i || "" + }, et.prototype.n = function(e) { + for (var n = [], i = arguments.length - 1; i-- > 0;) n[i] = arguments[i + 1]; + var o = this.locale, + s = null, + l = null; + return 1 === n.length ? a(n[0]) ? s = n[0] : r(n[0]) && (n[0].locale && (o = n[0].locale), n[0].key && ( + s = n[0].key), l = Object.keys(n[0]).reduce(function(e, r) { + var a; + return h(t, r) ? Object.assign({}, e, ((a = {})[r] = n[0][r], a)) : e + }, null)) : 2 === n.length && (a(n[0]) && (s = n[0]), a(n[1]) && (o = n[1])), this._n(e, o, s, l) + }, et.prototype._ntp = function(t, e, n, r) { + if (!et.availabilities.numberFormat) return []; + if (!n) return (r ? new Intl.NumberFormat(e, r) : new Intl.NumberFormat(e)).formatToParts(t); + var a = this._getNumberFormatter(t, e, this.fallbackLocale, this._getNumberFormats(), n, r), + i = a && a.formatToParts(t); + if (this._isFallbackRoot(i)) { + if (!this._root) throw Error("unexpected error"); + return this._root.$i18n._ntp(t, e, n, r) + } + return i || [] + }, Object.defineProperties(et.prototype, nt), Object.defineProperty(et, "availabilities", { + get: function() { + if (!G) { + var t = "undefined" != typeof Intl; + G = { + dateTimeFormat: t && void 0 !== Intl.DateTimeFormat, + numberFormat: t && void 0 !== Intl.NumberFormat + } + } + return G + } + }), et.install = I, et.version = "8.20.0", et + }, "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == + typeof define && define.amd ? define(e) : t.VueI18n = e(); \ No newline at end of file diff --git a/components/.DS_Store b/components/.DS_Store new file mode 100644 index 0000000..526feb1 Binary files /dev/null and b/components/.DS_Store differ diff --git a/components/Search/index.vue b/components/Search/index.vue new file mode 100644 index 0000000..a5f137b --- /dev/null +++ b/components/Search/index.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/components/charts/index.vue b/components/charts/index.vue new file mode 100644 index 0000000..c94d17e --- /dev/null +++ b/components/charts/index.vue @@ -0,0 +1,213 @@ + + + + \ No newline at end of file diff --git a/components/echarts/echarts.min.js b/components/echarts/echarts.min.js new file mode 100644 index 0000000..a4bc7a0 --- /dev/null +++ b/components/echarts/echarts.min.js @@ -0,0 +1,17 @@ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");cm(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}function i(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;ni;i++)e[i]=s(t[i])}}else if(Mm[n]){if(!X(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=t[i]}}}else if(!Sm[n]&&!X(t)&&!L(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==Om&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!k(e)||!k(t))return n?s(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Om){var r=t[i],o=e[i];!k(o)||!k(r)||M(o)||M(r)||L(o)||L(r)||A(o)||A(r)||X(o)||X(r)?!n&&i in t||(t[i]=s(e[i])):l(r,o,n)}return t}function u(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=l(n,t[i],e);return n}function h(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Om&&(t[n]=e[n]);return t}function c(t,e,n){for(var i=w(e),r=0;rn;n++)if(t[n]===e)return n}return-1}function d(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function f(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;ri;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function v(t,e,n){if(!t)return[];if(!e)return V(t);if(t.map&&t.map===Am)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function m(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function _(t,e,n){if(!t)return[];if(!e)return V(t);if(t.filter&&t.filter===Dm)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function x(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function w(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function b(t,e){for(var n=[],i=2;in;n++)if(null!=t[n])return t[n]}function B(t,e){return null!=t?t:e}function F(t,e,n){return null!=t?t:null!=e?e:n}function V(t){for(var e=[],n=1;np;p++){var f=1<a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*_e(n,7,0===a?1:0,1<o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function Me(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?xe(s,a):xe(a,s))}function Te(t){return"CANVAS"===t.nodeName.toUpperCase()}function Ce(t){return null==t?"":(t+"").replace(Qm,function(t,e){return Jm[e]})}function Ie(t,e,n,i){return n=n||{},i?De(t,e,n):n_&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):De(t,e,n),n}function De(t,e,n){if(fm.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Te(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(be(e_,t,i,r))return n.zrX=e_[0],void(n.zrY=e_[1])}n.zrX=n.zrY=0}function ke(t){return t||window.event}function Ae(t,e,n){if(e=ke(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&Ie(t,o,e,n)}else{Ie(t,e,e,n);var a=Pe(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&t_.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Pe(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=Math.abs(0!==i?i:n),o=i>0?-1:0>i?1:n>0?-1:1;return 3*r*o}function Le(t,e,n,i){t.addEventListener(e,n,i)}function Oe(t,e,n,i){t.removeEventListener(e,n,i)}function Re(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Ee(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function ze(){return[1,0,0,1,0,0]}function Ne(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Be(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Fe(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ve(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function He(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function We(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ge(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ue(t){var e=ze();return Be(e,t),e}function Xe(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ye}}function Ye(){i_(this.event)}function qe(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s?s:i.parent}return r?v_:!0}return!1}function je(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=qe(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==v_)){e.target=a;break}}}function Ze(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function Ke(t){for(var e=0;t>=M_;)e|=1&t,t>>=1;return t+e}function $e(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;Qe(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function Qe(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function Je(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function tn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function en(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function nn(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function i(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]=r?a(i,r,o,h):s(i,r,o,h)))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)p[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!==--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var c,d,f,g=h;;){c=0,d=0,f=!1;do if(e(t[l],p[s])<0){if(t[u++]=t[l++],d++,c=0,0===--o){f=!0;break}}else if(t[u++]=p[s++],c++,d=0,1===--i){f=!0;break}while(g>(c|d));if(f)break;do{if(c=en(t[l],p,s,i,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,i-=c,1>=i){f=!0;break}}if(t[u++]=t[l++],0===--o){f=!0;break}if(d=tn(p[s],t,l,o,0,e),0!==d){for(a=0;d>a;a++)t[u+a]=t[l+a];if(u+=d,l+=d,o-=d,0===o){f=!0;break}}if(t[u++]=p[s++],1===--i){f=!0;break}g--}while(c>=T_||d>=T_);if(f)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[u+a]=p[s+a]}}else for(a=0;i>a;a++)t[u+a]=p[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,c=0,d=0;if(t[u--]=t[s--],0!==--i){if(1===o){for(u-=i,s-=i,d=u+1,c=s+1,a=i-1;a>=0;a--)t[d+a]=t[c+a];return void(t[u]=p[l])}for(var f=h;;){var g=0,y=0,v=!1;do if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0===--i){v=!0;break}}else if(t[u--]=p[l--],y++,g=0,1===--o){v=!0;break}while(f>(g|y));if(v)break;do{if(g=i-en(p[l],t,n,i,i-1,e),0!==g){for(u-=g,s-=g,i-=g,d=u+1,c=s+1,a=g-1;a>=0;a--)t[d+a]=t[c+a];if(0===i){v=!0;break}}if(t[u--]=p[l--],1===--o){v=!0;break}if(y=o-tn(t[s],p,0,o,o-1,e),0!==y){for(u-=y,l-=y,o-=y,d=u+1,c=l+1,a=0;y>a;a++)t[d+a]=p[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0===--i){v=!0;break}f--}while(g>=T_||y>=T_);if(v)break;0>f&&(f=0),f+=2}if(h=f,1>h&&(h=1),1===o){for(u-=i,s-=i,d=u+1,c=s+1,a=i-1;a>=0;a--)t[d+a]=t[c+a];t[u]=p[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}var l,u,h=T_,c=0,p=[];return l=[],u=[],{mergeRuns:i,forceMergeRuns:r,pushRun:n}}function rn(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(M_>r)return o=$e(t,n,i,e),void Je(t,n,i,n+o,e);var a=nn(t,e),s=Ke(r);do{if(o=$e(t,n,i,e),s>o){var l=r;l>s&&(l=s),Je(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function on(){k_||(k_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function an(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function sn(t){return t>-E_&&E_>t}function ln(t){return t>E_||-E_>t}function un(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function hn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function cn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(sn(h)&&sn(c))if(sn(s))o[0]=0;else{var f=-l/s;f>=0&&1>=f&&(o[d++]=f)}else{var g=c*c-4*h*p;if(sn(g)){var y=c/h,f=-s/a+y,v=-y/2;f>=0&&1>=f&&(o[d++]=f),v>=0&&1>=v&&(o[d++]=v)}else if(g>0){var m=R_(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-O_(-_,B_):O_(_,B_),x=0>x?-O_(-x,B_):O_(x,B_);var f=(-s-(_+x))/(3*a);f>=0&&1>=f&&(o[d++]=f)}else{var w=(2*h*s-3*a*c)/(2*R_(h*h*h)),b=Math.acos(w)/3,S=R_(h),M=Math.cos(b),f=(-s-2*S*M)/(3*a),v=(-s+S*(M+N_*Math.sin(b)))/(3*a),T=(-s+S*(M-N_*Math.sin(b)))/(3*a);f>=0&&1>=f&&(o[d++]=f),v>=0&&1>=v&&(o[d++]=v),T>=0&&1>=T&&(o[d++]=T)}}return d}function pn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(sn(a)){if(ln(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(sn(h))r[0]=-o/(2*a);else if(h>0){var c=R_(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function dn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function fn(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;F_[0]=l,F_[1]=u;for(var m=0;1>m;m+=.05)V_[0]=un(t,n,r,a,m),V_[1]=un(e,i,o,s,m),f=Um(F_,V_),v>f&&(c=m,v=f);v=1/0;for(var _=0;32>_&&!(z_>y);_++)p=c-y,d=c+y,V_[0]=un(t,n,r,a,p),V_[1]=un(e,i,o,s,p),f=Um(V_,F_),p>=0&&v>f?(c=p,v=f):(H_[0]=un(t,n,r,a,d),H_[1]=un(e,i,o,s,d),g=Um(H_,F_),1>=d&&v>g?(c=d,v=g):y*=.5);return h&&(h[0]=un(t,n,r,a,c),h[1]=un(e,i,o,s,c)),R_(v)}function gn(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;l>=d;d++){var f=d*p,g=un(t,n,r,a,f),y=un(e,i,o,s,f),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function yn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function vn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function mn(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(sn(o)){if(ln(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(sn(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=R_(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function _n(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function xn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function wn(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;F_[0]=a,F_[1]=s;for(var p=0;1>p;p+=.05){V_[0]=yn(t,n,r,p),V_[1]=yn(e,i,o,p);var d=Um(F_,V_);c>d&&(u=p,c=d)}c=1/0;for(var f=0;32>f&&!(z_>h);f++){var g=u-h,y=u+h;V_[0]=yn(t,n,r,g),V_[1]=yn(e,i,o,g);var d=Um(V_,F_);if(g>=0&&c>d)u=g,c=d;else{H_[0]=yn(t,n,r,y),H_[1]=yn(e,i,o,y);var v=Um(H_,F_);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=yn(t,n,r,u),l[1]=yn(e,i,o,u)),R_(c)}function bn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,d=yn(t,n,r,p),f=yn(e,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}function Sn(t){var e=t&&W_.exec(t);if(e){var n=e[1].split(","),i=+G(n[0]),r=+G(n[1]),o=+G(n[2]),a=+G(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:cn(0,i,o,1,t,s)&&un(0,r,a,1,s[0])}}}function Mn(t){return t=Math.round(t),0>t?0:t>255?255:t}function Tn(t){return t=Math.round(t),0>t?0:t>360?360:t}function Cn(t){return 0>t?0:t>1?1:t}function In(t){var e=t;return Mn(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Dn(t){var e=t;return Cn(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function kn(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function An(t,e,n){return t+(e-t)*n}function Pn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Ln(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function On(t,e){Z_&&Ln(Z_,e),Z_=j_.put(t,Z_||e.slice())}function Rn(t,e){if(t){e=e||[];var n=j_.get(t);if(n)return Ln(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in q_)return Ln(e,q_[i]),On(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Pn(e,+l[0],+l[1],+l[2],1):Pn(e,0,0,0,1);u=Dn(l.pop());case"rgb":return l.length>=3?(Pn(e,In(l[0]),In(l[1]),In(l[2]),3===l.length?u:Dn(l[3])),On(t,e),e):void Pn(e,0,0,0,1);case"hsla":return 4!==l.length?void Pn(e,0,0,0,1):(l[3]=Dn(l[3]),En(l,e),On(t,e),e);case"hsl":return 3!==l.length?void Pn(e,0,0,0,1):(En(l,e),On(t,e),e);default:return}}Pn(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(i.slice(1,4),16);return h>=0&&4095>=h?(Pn(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(i.slice(4),16)/15:1),On(t,e),e):void Pn(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(i.slice(1,7),16);return h>=0&&16777215>=h?(Pn(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(i.slice(7),16)/255:1),On(t,e),e):void Pn(e,0,0,0,1)}}}}function En(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Dn(t[1]),r=Dn(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],Pn(e,Mn(255*kn(a,o,n+1/3)),Mn(255*kn(a,o,n)),Mn(255*kn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function zn(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function Nn(t,e){var n=Rn(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Gn(n,4===n.length?"rgba":"rgb")}}function Bn(t){var e=Rn(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Fn(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Mn(An(a[0],s[0],l)),n[1]=Mn(An(a[1],s[1],l)),n[2]=Mn(An(a[2],s[2],l)),n[3]=Cn(An(a[3],s[3],l)),n}}function Vn(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Rn(e[r]),s=Rn(e[o]),l=i-r,u=Gn([Mn(An(a[0],s[0],l)),Mn(An(a[1],s[1],l)),Mn(An(a[2],s[2],l)),Cn(An(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function Hn(t,e,n,i){var r=Rn(t);return t?(r=zn(r),null!=e&&(r[0]=Tn(e)),null!=n&&(r[1]=Dn(n)),null!=i&&(r[2]=Dn(i)),Gn(En(r),"rgba")):void 0}function Wn(t,e){var n=Rn(t);return n&&null!=e?(n[3]=Cn(e),Gn(n,"rgba")):void 0}function Gn(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function Un(t,e){var n=Rn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Xn(){return Gn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function Yn(t){return"linear"===t.type}function qn(t){return"radial"===t.type}function jn(t,e,n){return(e-t)*n+t}function Zn(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=jn(e[o],n[o],i);return t}function Kn(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=jn(e[a][s],n[a][s],i)}return t}function $n(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function Qn(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Jn(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;a>l;l++)i.push(1===n?r[l]:J_.call(r[l]))}for(var u=i[0]&&i[0].length,l=0;lh;h++)isNaN(i[l][h])&&(i[l][h]=r[l][h])}}function ei(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],i=0;e>i;i++)n.push(J_.call(t[i]));return n}return J_.call(t)}return t}function ni(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function ii(t){return g(t&&t[0])?2:1}function ri(t){return t===rx||t===ox}function oi(t){return t===ex||t===nx}function ai(){return(new Date).getTime()}function si(t){var e=t.pointerType;return"pen"===e||"touch"===e}function li(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function ui(t){t&&(t.zrByTouch=!0)}function hi(t,e){return Ae(t.dom,new yx(t,e),!0)}function ci(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function pi(t,e){var n=e.domHandlers;fm.pointerEventsSupported?y(dx.pointer,function(i){fi(e,i,function(e){n[i].call(t,e)})}):(fm.touchEventsSupported&&y(dx.touch,function(i){fi(e,i,function(r){n[i].call(t,r),li(e)})}),y(dx.mouse,function(i){fi(e,i,function(r){r=ke(r),e.touching||n[i].call(t,r)})}))}function di(t,e){function n(n){function i(i){i=ke(i),ci(t,i.target)||(i=hi(t,i),e.domHandlers[n].call(t,i))}fi(e,n,i,{capture:!0})}fm.pointerEventsSupported?y(fx.pointer,n):fm.touchEventsSupported||y(fx.mouse,n)}function fi(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Le(t.domTarget,e,n,i)}function gi(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Oe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function yi(t){return t>kx||-kx>t}function vi(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Ti(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Mi(i[0],n.width),u+=Mi(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function Ci(t,e,n,i,r){n=n||{};var o=[];Li(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,a--,0>=a&&(s?l&&l():u&&u())},c=function(){a--,0>=a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;pi;i++)t[i]=e[i]}function Di(t){return g(t[0])}function ki(t,e,n){if(g(e[n]))if(g(t[n])||(t[n]=[]),P(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Ii(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(Di(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?Ii(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Ii(o,r,a);o.length=r.length}else t[n]=e[n]}function Ai(t,e){return t===e||g(t)&&g(e)&&Pi(t,e)}function Pi(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function Li(t,e,n,i,r,o,a,s){for(var l=w(i),u=r.duration,h=r.delay,c=r.additive,d=r.setToFinal,f=!k(o),y=t.animators,v=[],m=0;m0||r.force&&!a.length){var D=void 0,A=void 0,P=void 0;if(s){A={},d&&(D={});for(var M=0;S>M;M++){var x=v[M];A[x]=n[x],d?D[x]=i[x]:n[x]=i[x]}}else if(d){P={};for(var M=0;S>M;M++){var x=v[M];P[x]=ei(n[x]),ki(n,i,x)}}var T=new ux(n,!1,!1,c?_(y,function(t){return t.targetName===e}):null);T.targetName=e,r.scope&&(T.scope=r.scope),d&&D&&T.whenWithKeys(0,D,v),P&&T.whenWithKeys(0,P,v),T.whenWithKeys(null==u?500:u,s?A:i,v).delay(h||0),t.addAnimator(T,e),a.push(T)}}function Oi(t){delete Xx[t]}function Ri(t){if(!t)return!1;if("string"==typeof t)return Un(t,1)r;r++)n+=Un(e[r].color,1);return n/=i,Mx>n}return!1}function Ei(t,e){var n=new Yx(o(),t,e);return Xx[n.id]=n,n}function zi(t){t.dispose()}function Ni(){for(var t in Xx)Xx.hasOwnProperty(t)&&Xx[t].dispose();Xx={}}function Bi(t){return Xx[t]}function Fi(t,e){Ux[t]=e}function Vi(t){return t.replace(/^\s+|\s+$/g,"")}function Hi(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Wi(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return C(t)?Vi(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function Gi(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Kx),t=(+t).toFixed(e),n?t:+t}function Ui(t){return t.sort(function(t,e){return t-e}),t}function Xi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Yi(t)}function Yi(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-i)}function qi(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function ji(t,e,n){if(!t[e])return 0;var i=Zi(t,n);return i[e]||0}function Zi(t,e){var n=m(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=v(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=v(r,function(t){return Math.floor(t)}),s=m(a,function(t,e){return t+e},0),l=v(r,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;p>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return v(a,function(t){return t/i})}function Ki(t,e){var n=Math.max(Xi(t),Xi(e)),i=t+e;return n>Kx?i:Gi(i,n)}function $i(t){var e=2*Math.PI;return(t%e+e)%e}function Qi(t){return t>-Zx&&Zx>t}function Ji(t){if(t instanceof Date)return t;if(C(t)){var e=Qx.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0; +return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?0/0:Math.round(t))}function tr(t){return Math.pow(10,er(t))}function er(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function nr(t,e){var n,i=er(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function ir(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function rr(t){function e(t,n,i){return t.interval[i]s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t}function or(t){var e=parseFloat(t);return e==t&&(0!==e||!C(t)||t.indexOf("x")<=0)?e:0/0}function ar(t){return!isNaN(or(t))}function sr(){return Math.round(9*Math.random())}function lr(t,e){return 0===e?t:lr(e,t%e)}function ur(t,e){return null==t?e:null==e?t:t*e/lr(t,e)}function hr(t){throw new Error(t)}function cr(t,e,n){return(e-t)*n+t}function pr(t){return t instanceof Array?t:null==t?[]:[t]}function dr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function fr(t){return!k(t)||M(t)||t instanceof Date?t:t.value}function gr(t){return k(t)&&!(t instanceof Array)}function yr(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Y();y(e,function(t,n){return k(t)?void 0:void(e[n]=null)});var s=vr(t,a,n);return(i||r)&&mr(s,t,a,e),i&&_r(s,e),i||r?xr(s,e,r):o&&wr(s,e),br(s),s}function vr(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;rr?n:i;for(var s=[],l=n,u=i,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getDimensionInfo(c);if(p&&"ordinal"===p.type)s[c]=(1>r&&l?l:u)[c];else{var d=l&&l[c]?l[c]:0,f=u[c],a=cr(d,f,r);s[c]=Gi(a,o?Math.max(Xi(d),Xi(f)):e)}}return s}function Fr(t){var e={main:"",sub:""};if(t){var n=t.split(rw);e.main=n[0]||"",e.sub=n[1]||""}return e}function Vr(t){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Hr(t){return!(!t||!t[aw])}function Wr(t){t.$constructor=t,t.extend=function(t){var n,i=this;return Gr(i)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},d(n,this)),h(n.prototype,t),n[aw]=!0,n.extend=this.extend,n.superCall=Yr,n.superApply=qr,n.superClass=i,n}}function Gr(t){return T(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Ur(t,e){t.extend=e.extend}function Xr(t){var e=["__\x00is_clz",sw++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Yr(t,e){for(var n=[],i=2;i=0||r&&p(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function Kr(t){if("string"==typeof t){var e=cw.get(t);return e&&e.image}return t}function $r(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=cw.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!Jr(e)&&o.pending.push(a)):(e=bm.loadImage(t,Qr,Qr),e.__zrImageSrc=t,cw.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Qr(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;ea;a++)o[a]=no(o[a],r);return o.join("\n")}function eo(t,e,n,i){i=i||{};var r=h({},i);r.font=e,n=B(n,"..."),r.maxIterations=B(i.maxIterations,2);var o=r.minChar=B(i.minChar,0);r.cnCharWidth=mi("国",e);var a=r.ascCharWidth=mi("a",e);r.placeholder=B(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=mi(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function no(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=mi(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?io(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=mi(t,i)}return""===t&&(t=e.placeholder),t}function io(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?n:i}return o}function ro(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=Si(o),l=B(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width;n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?uo(t,e.font,c,"breakAll"===i,0).lines:[];var p=n.length*l,d=B(e.height,p);if(p>d&&h){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=c)for(var g=eo(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;yu&&ao(i,t.substring(u,h),e,l),ao(i,r[2],e,l,r[1]),u=pw.lastIndex}ua){w>0?(m.tokens=m.tokens.slice(0,w),n(m,x,_),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var D=S.width,k=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))b.percentWidth=D,c.push(b),b.contentWidth=mi(b.text,C);else{if(k){var A=S.backgroundColor,P=A&&A.image;P&&(P=Kr(P),Jr(P)&&(b.width=Math.max(b.width,P.width*I/P.height)))}var L=g&&null!=o?o-x:null;null!=L&&LL?(b.text="",b.width=b.contentWidth=0):(b.text=to(b.text,L-T,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=mi(b.text,C)):b.contentWidth=mi(b.text,C)}b.width+=T,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}n(m,x,_)}i.outerWidth=i.width=B(o,d),i.outerHeight=i.height=B(a,p),i.contentHeight=p,i.contentWidth=d,f&&(i.outerWidth+=f[1]+f[3],i.outerHeight+=f[0]+f[2]);for(var v=0;v0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=uo(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y=33&&383>=e}function lo(t){return so(t)?yw[t]?!0:!1:!0}function uo(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+d>n)?h?(s||l)&&(f?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=d,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function ho(t,e,n){return Sw.copy(t.getBoundingRect()),t.transform&&Sw.applyTransform(t.transform),Mw.width=e,Mw.height=n,!Sw.intersect(Mw)}function co(t,e,n,i,r,o){r[0]=Tw(t,n),r[1]=Tw(e,i),o[0]=Cw(t,n),o[1]=Cw(e,i)}function po(t,e,n,i,r,o,a,s,l,u){var h=pn,c=un,p=h(t,n,r,a,Ow);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;p>d;d++){var f=c(t,n,r,a,Ow[d]);l[0]=Tw(f,l[0]),u[0]=Cw(f,u[0])}p=h(e,i,o,s,Rw);for(var d=0;p>d;d++){var g=c(e,i,o,s,Rw[d]);l[1]=Tw(g,l[1]),u[1]=Cw(g,u[1])}l[0]=Tw(t,l[0]),u[0]=Cw(t,u[0]),l[0]=Tw(a,l[0]),u[0]=Cw(a,u[0]),l[1]=Tw(e,l[1]),u[1]=Cw(e,u[1]),l[1]=Tw(s,l[1]),u[1]=Cw(s,u[1])}function fo(t,e,n,i,r,o,a,s){var l=_n,u=yn,h=Cw(Tw(l(t,n,r),1),0),c=Cw(Tw(l(e,i,o),1),0),p=u(t,n,r,h),d=u(e,i,o,c);a[0]=Tw(t,r,p),a[1]=Tw(e,o,d),s[0]=Cw(t,r,p),s[1]=Cw(e,o,d)}function go(t,e,n,i,r,o,a,s,l){var u=ve,h=me,c=Math.abs(r-o);if(1e-4>c%kw&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Aw[0]=Dw(r)*n+t,Aw[1]=Iw(r)*i+e,Pw[0]=Dw(o)*n+t,Pw[1]=Iw(o)*i+e,u(s,Aw,Pw),h(l,Aw,Pw),r%=kw,0>r&&(r+=kw),o%=kw,0>o&&(o+=kw),r>o&&!a?o+=kw:o>r&&a&&(r+=kw),a){var p=o;o=r,r=p}for(var d=0;o>d;d+=Math.PI/2)d>r&&(Lw[0]=Dw(d)*n+t,Lw[1]=Iw(d)*i+e,u(s,Lw,s),h(l,Lw,l))}function yo(t){var e=Math.round(t/qw*1e8)/1e8;return e%2*qw}function vo(t,e){var n=yo(t[0]);0>n&&(n+=jw);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=jw?r=n+jw:e&&n-r>=jw?r=n-jw:!e&&n>r?r=n+(jw-yo(n-r)):e&&r>n&&(r=n-(jw-yo(r-n))),t[0]=n,t[1]=r}function mo(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||e-s>a&&i-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function _o(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>i+c&&h>o+c&&h>s+c||e-c>h&&i-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>r+c&&u>a+c||t-c>u&&n-c>u&&r-c>u&&a-c>u)return!1;var p=fn(t,e,n,i,r,o,a,s,u,h,null);return c/2>=p}function xo(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||e-u>l&&i-u>l&&o-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)return!1;var h=wn(t,e,n,i,r,o,s,l,null);return u/2>=h}function wo(t){return t%=Qw,0>t&&(t+=Qw),t}function bo(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||n>h+u)return!1;if(Math.abs(i-r)%Jw<1e-4)return!0;if(o){var c=i;i=wo(r),r=wo(c)}else i=wo(i),r=wo(r);i>r&&(r+=Jw);var p=Math.atan2(l,s);return 0>p&&(p+=Jw),p>=i&&r>=p||p+Jw>=i&&r>=p+Jw}function So(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=e>i?1:-1;(1===a||0===a)&&(s=e>i?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}function Mo(t,e){return Math.abs(t-e)e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var h=cn(e,i,o,s,u,ib);if(0===h)return 0;for(var c=0,p=-1,d=void 0,f=void 0,g=0;h>g;g++){var y=ib[g],v=0===y||1===y?.5:1,m=un(t,n,r,a,y);l>m||(0>p&&(p=pn(e,i,o,s,rb),rb[1]1&&To(),d=un(e,i,o,s,rb[0]),p>1&&(f=un(e,i,o,s,rb[1]))),c+=2===p?yd?v:-v:yf?v:-v:f>s?v:-v:yd?v:-v:d>s?v:-v)}return c}function Io(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=mn(e,i,o,s,ib);if(0===l)return 0;var u=_n(e,i,o);if(u>=0&&1>=u){for(var h=0,c=yn(e,i,o,u),p=0;l>p;p++){var d=0===ib[p]||1===ib[p]?.5:1,f=yn(t,n,r,ib[p]);a>f||(h+=ib[p]c?d:-d:c>o?d:-d)}return h}var d=0===ib[0]||1===ib[0]?.5:1,f=yn(t,n,r,ib[0]);return a>f?0:e>o?d:-d}function Do(t,e,n,i,r,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);ib[0]=-l,ib[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(u>=eb-1e-4){i=0,r=eb;var h=o?1:-1;return a>=ib[0]+t&&a<=ib[1]+t?h:0}if(i>r){var c=i;i=r,r=c}0>i&&(i+=eb,r+=eb);for(var p=0,d=0;2>d;d++){var f=ib[d];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;0>g&&(g=eb+g),(g>=i&&r>=g||g+eb>=i&&r>=g+eb)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function ko(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,d=0,f=0;l>f;){var g=s[f++],y=1===f;switch(g===tb.M&&f>1&&(n||(u+=So(h,c,p,d,i,r))),y&&(h=s[f],c=s[f+1],p=h,d=c),g){case tb.M:p=s[f++],d=s[f++],h=p,c=d;break;case tb.L:if(n){if(mo(h,c,s[f],s[f+1],e,i,r))return!0}else u+=So(h,c,s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case tb.C:if(n){if(_o(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=Co(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case tb.Q:if(n){if(xo(h,c,s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=Io(h,c,s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case tb.A:var v=s[f++],m=s[f++],_=s[f++],x=s[f++],w=s[f++],b=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(w)*_+v,a=Math.sin(w)*x+m,y?(p=o,d=a):u+=So(h,c,o,a,i,r);var M=(i-v)*x/_+v;if(n){if(bo(v,m,x,w,w+b,S,e,M,r))return!0}else u+=Do(v,m,x,w,w+b,S,M,r);h=Math.cos(w+b)*_+v,c=Math.sin(w+b)*x+m;break;case tb.R:p=h=s[f++],d=c=s[f++];var T=s[f++],C=s[f++];if(o=p+T,a=d+C,n){if(mo(p,d,o,d,e,i,r)||mo(o,d,o,a,e,i,r)||mo(o,a,p,a,e,i,r)||mo(p,a,p,d,e,i,r))return!0}else u+=So(o,d,o,a,i,r),u+=So(p,a,p,d,i,r);break;case tb.Z:if(n){if(mo(h,c,p,d,e,i,r))return!0}else u+=So(h,c,p,d,i,r);h=p,c=d}}return n||Mo(c,d)||(u+=So(h,c,p,d,i,r)||0),0!==u}function Ao(t,e,n){return ko(t,0,!1,e,n)}function Po(t,e,n,i){return ko(t,e,!0,n,i)}function Lo(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Oo(t,e){var n,i,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),i+r>u&&(c=i+r,i*=u/c,r*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.arc(a+l-i,s+i,i,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function Ro(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(fb(2*i)===fb(2*r)&&(t.x1=t.x2=zo(i,s,!0)),fb(2*o)===fb(2*a)&&(t.y1=t.y2=zo(o,s,!0)),t):t}}function Eo(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=zo(i,s,!0),t.y=zo(r,s,!0),t.width=Math.max(zo(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(zo(r+a,s,!1)-t.y,0===a?0:1),t):t}}function zo(t,e,n){if(!e)return t;var i=fb(2*t);return(i+fb(e))%2===0?i/2:(i+(n?1:-1))/2}function No(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?gm+"px":t+"px":t}function Bo(t,e){for(var n=0;n=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Go(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Uo(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Xo(t){var e=t.text;return null!=e&&(e+=""),e}function Yo(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function qo(t){return null!=t&&"none"!==t}function jo(t){if(C(t)){var e=Gb.get(t);return e||(e=Nn(t,-.1),Gb.put(t,e)),e}if(O(t)){var n=h({},t);return n.colorStops=v(t.colorStops,function(t){return{offset:t.offset,color:Nn(t.color,-.1)}}),n}return t}function Zo(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Ko(t){Zo(t,"emphasis",Ob)}function $o(t){t.hoverState===Ob&&Zo(t,"normal",Pb)}function Qo(t){Zo(t,"blur",Lb)}function Jo(t){t.hoverState===Lb&&Zo(t,"normal",Pb)}function ta(t){t.selected=!0}function ea(t){t.selected=!1}function na(t,e,n){e(t,n)}function ia(t,e,n){na(t,e,n),t.isGroup&&t.traverse(function(t){na(t,e,n)})}function ra(t,e){switch(e){case"emphasis":t.hoverState=Ob;break;case"normal":t.hoverState=Pb;break;case"blur":t.hoverState=Lb;break;case"select":t.selected=!0}}function oa(t,e,n,i){for(var r=t.style,o={},a=0;a=0,o=!1;if(t instanceof lb){var a=kb(t),s=r?a.selectFill||a.normalFill:a.normalFill,l=r?a.selectStroke||a.normalStroke:a.normalStroke;if(qo(s)||qo(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=h({},i),u=h({},u),u.fill=s):!qo(u.fill)&&qo(s)?(o=!0,i=h({},i),u=h({},u),u.fill=jo(s)):!qo(u.stroke)&&qo(l)&&(o||(i=h({},i),u=h({},u)),u.stroke=jo(l)),i.style=u}}if(i&&null==i.z2){o||(i=h({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:zb)}return i}function sa(t,e,n){if(n&&null==n.z2){n=h({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Nb)}return n}function la(t,e,n){var i=p(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:oa(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=h({},n),a=h({opacity:i?r:.1*o.opacity},a),n.style=a),n}function ua(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return aa(this,t,e,n);if("blur"===t)return la(this,t,n);if("select"===t)return sa(this,t,n)}return n}function ha(t){t.stateProxy=ua;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ua),n&&(n.stateProxy=ua)}function ca(t,e){!_a(t,e)&&!t.__highByOuter&&ia(t,Ko)}function pa(t,e){!_a(t,e)&&!t.__highByOuter&&ia(t,$o)}function da(t,e){t.__highByOuter|=1<<(e||0),ia(t,Ko)}function fa(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ia(t,$o)}function ga(t){ia(t,Qo)}function ya(t){ia(t,Jo)}function va(t){ia(t,ta)}function ma(t){ia(t,ea)}function _a(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function xa(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=Ab(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){Jo(t)}),a&&n.push(r)),o.isBlured=!1}),y(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function wa(t,e,n,i){function r(t,e){for(var n=0;nl;)a=r.getItemGraphicEl(l++);if(a){var u=Tb(a);wa(i,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&wa(i,h,c,n)}}}function Ma(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function Aa(t,e,n){Ea(t,!0),ia(t,ha),Oa(t,e,n)}function Pa(t){Ea(t,!1)}function La(t,e,n,i){i?Pa(t):Aa(t,e,n)}function Oa(t,e,n){var i=Tb(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}function Ra(t,e,n,i){n=n||"itemStyle";for(var r=0;r=Ib&&(e=Db[t]=Ib++),e}function Ba(t){var e=t.type;return e===Vb||e===Hb||e===Wb}function Fa(t){var e=t.type;return e===Bb||e===Fb}function Va(t){var e=kb(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function Ha(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=Yb.M,c=Yb.C,p=Yb.L,d=Yb.R,f=Yb.A,g=Yb.Q;for(r=0,o=0;u>r;){switch(n=l[r++],o=r,i=0,n){case h:i=1;break;case p:i=1;break;case c:i=3;break;case g:i=2;break;case f:var y=e[4],v=e[5],m=jb(e[0]*e[0]+e[1]*e[1]),_=jb(e[2]*e[2]+e[3]*e[3]),x=Zb(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=y,l[r]*=_,l[r++]+=v,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var w=qb[a];w[0]=l[r++],w[1]=l[r++],ye(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}function Wa(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ga(t,e){return(t[0]*e[0]+t[1]*e[1])/(Wa(t)*Wa(e))}function Ua(t,e){return(t[0]*e[1]1&&(a*=Kb(f),s*=Kb(f));var g=(r===o?-1:1)*Kb((a*a*s*s-a*a*d*d-s*s*p*p)/(a*a*d*d+s*s*p*p))||0,y=g*a*d/s,v=g*-s*p/a,m=(t+n)/2+Qb(c)*y-$b(c)*v,_=(e+i)/2+$b(c)*y+Qb(c)*v,x=Ua([1,0],[(p-y)/a,(d-v)/s]),w=[(p-y)/a,(d-v)/s],b=[(-1*p-y)/a,(-1*d-v)/s],S=Ua(w,b);if(Ga(w,b)<=-1&&(S=Jb),Ga(w,b)>=1&&(S=0),0>S){var M=Math.round(S/Jb*1e6)/1e6;S=2*Jb+M%2*Jb}h.addData(u,m,_,a,s,x,S,c,o)}function Ya(t){var e=new $w;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=$w.CMD,l=t.match(tS);if(!l)return e;for(var u=0;ug;g++)d[g]=parseFloat(d[g]);for(var y=0;f>y;){var v=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=i,T=r,C=void 0,I=void 0;switch(c){case"l":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case"L":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,r);break;case"H":i=d[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,i,r);break;case"V":r=d[y++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"S":v=i,m=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],m+=r-I[C-3]),p=s.C,M=d[y++],T=d[y++],i=d[y++],r=d[y++],e.addData(p,v,m,M,T,i,r);break;case"s":v=i,m=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],m+=r-I[C-3]),p=s.C,M=i+d[y++],T=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,v,m,M,T,i,r);break;case"Q":M=d[y++],T=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"q":M=d[y++]+i,T=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"T":v=i,m=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],m+=r-I[C-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,v,m,i,r);break;case"t":v=i,m=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],m+=r-I[C-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,v,m,i,r);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],M=i,T=r,i=d[y++],r=d[y++],p=s.A,Xa(M,T,i,r,b,S,_,x,w,p,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],M=i,T=r,i+=d[y++],r+=d[y++],p=s.A,Xa(M,T,i,r,b,S,_,x,w,p,e)}}("z"===c||"Z"===c)&&(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}function qa(t){return null!=t.setData}function ja(t,e){var n=Ya(t),i=h({},e);return i.buildPath=function(t){if(qa(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){Ha(n,t),this.dirtyShape()},i}function Za(t,e){return new nS(ja(t,e))}function Ka(t,n){var i=ja(t,n),r=function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return e(n,t),n}(nS);return r}function $a(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new lb(e);return a.createPathProxy(),a.buildPath=function(t){if(qa(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Qa(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=c*l-h*u; +return vS>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function Ja(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/fS(s*s+l*l),h=u*l,c=-u*s,p=t+h,d=e+c,f=n+h,g=i+c,y=(p+f)/2,v=(d+g)/2,m=f-p,_=g-d,x=m*m+_*_,w=r-o,b=p*g-f*d,S=(0>_?-1:1)*fS(gS(0,w*w*x-b*b)),M=(b*_-m*S)/x,T=(-b*m-_*S)/x,C=(b*_+m*S)/x,I=(-b*m+_*S)/x,D=M-y,k=T-v,A=C-y,P=I-v;return D*D+k*k>A*A+P*P&&(M=C,T=I),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/w-1),y1:T*(r/w-1)}}function ts(t){var e;if(M(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function es(t,e){var n,i=gS(e.r,0),r=gS(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,p=!!e.clockwise,d=dS(u-l),f=d>lS&&d%lS;if(f>vS&&(d=f),i>vS)if(d>lS-vS)t.moveTo(h+i*hS(l),c+i*uS(l)),t.arc(h,c,i,l,u,!p),r>vS&&(t.moveTo(h+r*hS(u),c+r*uS(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,y=void 0,v=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=void 0,T=void 0,C=void 0,I=void 0,D=void 0,k=void 0,A=void 0,P=i*hS(l),L=i*uS(l),O=r*hS(u),R=r*uS(u),E=d>vS;if(E){var z=e.cornerRadius;z&&(n=ts(z),g=n[0],y=n[1],v=n[2],m=n[3]);var N=dS(i-r)/2;if(_=yS(N,v),x=yS(N,m),w=yS(N,g),b=yS(N,y),T=S=gS(_,x),C=M=gS(w,b),(S>vS||M>vS)&&(I=i*hS(u),D=i*uS(u),k=r*hS(l),A=r*uS(l),sS>d)){var B=Qa(P,L,k,A,I,D,O,R);if(B){var F=P-B[0],V=L-B[1],H=I-B[0],W=D-B[1],G=1/uS(cS((F*H+V*W)/(fS(F*F+V*V)*fS(H*H+W*W)))/2),U=fS(B[0]*B[0]+B[1]*B[1]);T=yS(S,(i-U)/(G+1)),C=yS(M,(r-U)/(G-1))}}}if(E)if(T>vS){var X=yS(v,T),Y=yS(m,T),q=Ja(k,A,P,L,i,X,p),j=Ja(I,D,O,R,i,Y,p);t.moveTo(h+q.cx+q.x0,c+q.cy+q.y0),S>T&&X===Y?t.arc(h+q.cx,c+q.cy,T,pS(q.y0,q.x0),pS(j.y0,j.x0),!p):(X>0&&t.arc(h+q.cx,c+q.cy,X,pS(q.y0,q.x0),pS(q.y1,q.x1),!p),t.arc(h,c,i,pS(q.cy+q.y1,q.cx+q.x1),pS(j.cy+j.y1,j.cx+j.x1),!p),Y>0&&t.arc(h+j.cx,c+j.cy,Y,pS(j.y1,j.x1),pS(j.y0,j.x0),!p))}else t.moveTo(h+P,c+L),t.arc(h,c,i,l,u,!p);else t.moveTo(h+P,c+L);if(r>vS&&E)if(C>vS){var X=yS(g,C),Y=yS(y,C),q=Ja(O,R,I,D,r,-Y,p),j=Ja(P,L,k,A,r,-X,p);t.lineTo(h+q.cx+q.x0,c+q.cy+q.y0),M>C&&X===Y?t.arc(h+q.cx,c+q.cy,C,pS(q.y0,q.x0),pS(j.y0,j.x0),!p):(Y>0&&t.arc(h+q.cx,c+q.cy,Y,pS(q.y0,q.x0),pS(q.y1,q.x1),!p),t.arc(h,c,r,pS(q.cy+q.y1,q.cx+q.x1),pS(j.cy+j.y1,j.cx+j.x1),p),X>0&&t.arc(h+j.cx,c+j.cy,X,pS(j.y1,j.x1),pS(j.y0,j.x0),!p))}else t.lineTo(h+O,c+R),t.arc(h,c,r,u,l,p);else t.lineTo(h+O,c+R)}else t.moveTo(h,c);t.closePath()}}}function ns(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;d>p;p++)ve(a,a,t[p]),me(s,s,t[p]);ve(a,a,i[0]),me(s,s,i[1])}for(var p=0,d=t.length;d>p;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(te(t[p]));continue}r=t[p-1],o=t[p+1]}re(u,o,r),he(u,u,e);var g=pe(f,r),y=pe(f,o),v=g+y;0!==v&&(g/=v,y/=v),he(h,u,-g),he(c,u,y);var m=ne([],f,h),_=ne([],f,c);i&&(me(m,m,a),ve(m,m,s),me(_,_,a),ve(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function is(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=ns(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function rs(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?hn:un)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?hn:un)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?vn:yn)(t.x1,t.cpx1,t.x2,e),(n?vn:yn)(t.y1,t.cpy1,t.y2,e)]}function os(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;i?(u=B(i.duration,200),h=B(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),T(c)&&(c=c(n,r)),T(u)&&(u=u(n));var p={duration:u||0,delay:c,easing:h};return p}return null}function as(t,e,n,i,r,o,a){var s,l=!1;T(r)?(a=o,o=r,r=null):k(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=os(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,d=h.easing,f={duration:c,delay:p||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function ss(t,e,n,i,r,o){as("update",t,e,n,i,r,o)}function ls(t,e,n,i,r,o){as("enter",t,e,n,i,r,o)}function us(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Is(t){return!t.isGroup}function Ds(t){return null!=t.shape}function ks(t,e,n){function i(t){var e={};return t.traverse(function(t){Is(t)&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ds(t)&&(e.shape=h({},t.shape)),e}if(t&&e){var o=i(t);e.traverse(function(t){if(Is(t)&&t.anid){var e=o[t.anid];if(e){var i=r(t);t.attr(r(e)),ss(t,i,n,Tb(t).dataIndex)}}})}}function As(t,e){return v(t,function(t){var n=t[0];n=YS(n,e.x),n=qS(n,e.x+e.width);var i=t[1];return i=YS(i,e.y),i=qS(i,e.y+e.height),[n,i]})}function Ps(t,e){var n=YS(t.x,e.x),i=qS(t.x+t.width,e.x+e.width),r=YS(t.y,e.y),o=qS(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function Ls(t,e,n){var i=h({rectHover:!0},e),r=i.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),c(r,n),new db(i)):ms(t.replace("path://",""),i,n,"center"):void 0}function Os(t,e,n,i,r){for(var o=0,a=r[r.length-1];og||g>1)return!1;var y=Es(d,f,h,c)/p;return 0>y||y>1?!1:!0}function Es(t,e,n,i){return t*i-n*e}function zs(t){return 1e-6>=t&&t>=-1e-6}function Ns(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=C(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&y(w(l),function(t){K(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=Tb(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:c({content:i,formatterParams:s},r)}}function Bs(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Fs(t,e){if(t)if(M(t))for(var n=0;n=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,h={};for(y(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(i.call(r,c,p.originalDeps.slice()),delete h[c]),y(p.successor,d?a:o)}y(h,function(){var t="";throw new Error(t)})}}}function el(t,e){return l(l({},t,!0),e,!0)}function nl(t,e){t=t.toUpperCase(),bM[t]=new fM(e),wM[t]=e}function il(t){if(C(t)){var e=wM[t.toUpperCase()]||{};return t===mM||t===_M?s(e):l(s(e),s(wM[xM]),!1)}return l(s(t),s(wM[xM]),!1)}function rl(t){return bM[t]}function ol(){return bM[xM]}function al(t,e){return t+="","0000".substr(0,e-t.length)+t}function sl(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function ll(t){return t===sl(t)}function ul(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function hl(t,e,n,i){var r=Ji(t),o=r[fl(n)](),a=r[gl(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[yl(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[vl(n)](),c=(h-1)%12+1,p=r[ml(n)](),d=r[_l(n)](),f=r[xl(n)](),g=i instanceof fM?i:rl(i||SM)||ol(),y=g.getModel("time"),v=y.get("month"),m=y.get("monthAbbr"),_=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,al(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,al(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,al(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,al(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,al(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,al(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,al(f,3)).replace(/{S}/g,f+"")}function cl(t,e,n,i,r){var o=null;if(C(n))o=n;else if(T(n))o=n(t.value,e,{level:t.level});else{var a=h({},kM);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(M(o)){var d=null==t.level?0:t.level>=0?t.level:o.length+t.level;d=Math.min(d,o.length-1),o=o[d]}}return hl(new Date(t.value),o,r,i)}function pl(t,e){var n=Ji(t),i=n[gl(e)]()+1,r=n[yl(e)](),o=n[vl(e)](),a=n[ml(e)](),s=n[_l(e)](),l=n[xl(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,d=p&&1===r,f=d&&1===i;return f?"year":d?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function dl(t,e,n){var i=D(t)?Ji(t):t;switch(e=e||pl(t,n)){case"year":return i[fl(n)]();case"half-year":return i[gl(n)]()>=6?1:0;case"quarter":return Math.floor((i[gl(n)]()+1)/4);case"month":return i[gl(n)]();case"day":return i[yl(n)]();case"half-day":return i[vl(n)]()/24;case"hour":return i[vl(n)]();case"minute":return i[ml(n)]();case"second":return i[_l(n)]();case"millisecond":return i[xl(n)]()}}function fl(t){return t?"getUTCFullYear":"getFullYear"}function gl(t){return t?"getUTCMonth":"getMonth"}function yl(t){return t?"getUTCDate":"getDate"}function vl(t){return t?"getUTCHours":"getHours"}function ml(t){return t?"getUTCMinutes":"getMinutes"}function _l(t){return t?"getUTCSeconds":"getSeconds"}function xl(t){return t?"getUTCMilliseconds":"getMilliseconds"}function wl(t){return t?"setUTCFullYear":"setFullYear"}function bl(t){return t?"setUTCMonth":"setMonth"}function Sl(t){return t?"setUTCDate":"setDate"}function Ml(t){return t?"setUTCHours":"setHours"}function Tl(t){return t?"setUTCMinutes":"setMinutes"}function Cl(t){return t?"setUTCSeconds":"setSeconds"}function Il(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Dl(t,e,n,i,r,o,a,s){var l=new wb({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function kl(t){if(!ar(t))return C(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Al(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Pl(t,e,n){function i(t){return t&&G(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",a="time"===e,s=t instanceof Date;if(a||s){var l=a?Ji(t):t;if(!isNaN(+l))return hl(l,o,n);if(s)return"-"}if("ordinal"===e)return I(t)?i(t):D(t)&&r(t)?t+"":"-";var u=or(t);return r(u)?kl(u):I(t)?i(t):"boolean"==typeof t?t+"":"-"}function Ll(t,e,n){M(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;os;s++)for(var l=0;l':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Rl(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=Ji(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return t=t.replace("MM",al(a,2)).replace("M",a).replace("yyyy",o).replace("yy",al(o%100+"",2)).replace("dd",al(s,2)).replace("d",s).replace("hh",al(l,2)).replace("h",l).replace("mm",al(u,2)).replace("m",u).replace("ss",al(h,2)).replace("s",h).replace("SSS",al(c,3))}function El(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function zl(t,e){return e=e||"transparent",C(t)?t:k(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function Nl(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}function Bl(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);h=o+g,h>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);c=a+y,c>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function Fl(t,e,n){n=RM(n||0);var i=e.width,r=e.height,o=Wi(t.left,i),a=Wi(t.top,r),s=Wi(t.right,i),l=Wi(t.bottom,r),u=Wi(t.width,i),h=Wi(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new y_(o+n[3],a+n[0],u,h);return f.margin=n,f}function Vl(t){var e=t.layoutMode||t.constructor.layoutMode;return k(e)?e:e?{type:e}:null}function Hl(t,e,n){function i(n,i){var a={},l=0,u={},h=0,c=2;if(NM(n,function(e){u[e]=t[e]}),NM(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(h!==c&&l){if(l>=c)return a;for(var p=0;pi;i++)t.push(e+i)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=jl(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=rT(c).datasetMap,d=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),y(t,function(e,n){var i=k(e)?e:t[n]={name:e};"ordinal"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var f=p.get(d)||p.set(d,{categoryWayDim:l,valueWayDim:0});return y(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=f.valueWayDim;i(o[n],l,a),i(h,l,a),f.valueWayDim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=f.categoryWayDim;i(o[n],l,a),i(h,l,a),f.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function ql(t,e,n){var i={},r=jl(t);if(!r)return i;var o,a=e.sourceFormat,s=e.dimensionsDefine;(a===$M||a===QM)&&y(s,function(t,e){"name"===(k(t)?t.name:t)&&(o=e)});var l=function(){function t(t){return null!=t.v&&null!=t.n}for(var i={},r={},l=[],u=0,h=Math.min(5,n);h>u;u++){var c=$l(e.data,a,e.seriesLayoutBy,s,e.startIndex,u);l.push(c);var p=c===iT.Not;if(p&&null==i.v&&u!==o&&(i.v=u),(null==i.n||i.n===i.v||!p&&l[i.n]===iT.Not)&&(i.n=u),t(i)&&l[i.n]!==iT.Not)return i;p||(c===iT.Might&&null==r.v&&u!==o&&(r.v=u),(null==r.n||r.n===r.v)&&(r.n=u))}return t(i)?i:t(r)?r:null}();if(l){i.value=[l.v];var u=null!=o?o:l.n;i.itemName=[u],i.seriesName=[u]}return i}function jl(t){var e=t.get("data",!0);return e?void 0:Rr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},iw).models[0]}function Zl(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Rr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},iw).models:[]}function Kl(t,e){return $l(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function $l(t,e,n,i,r,o){function a(t){var e=C(t);return null!=t&&isFinite(t)&&""!==t?e?iT.Might:iT.Not:e&&"-"!==t?iT.Must:void 0}var s,l=5;if(P(t))return iT.Not;var u,h;if(i){var c=i[o];k(c)?(u=c.name,h=c.type):C(c)&&(u=c)}if(null!=h)return"ordinal"===h?iT.Must:iT.Not;if(e===KM){var p=t;if(n===nT){for(var d=p[o],f=0;f<(d||[]).length&&l>f;f++)if(null!=(s=a(d[r+f])))return s}else for(var f=0;ff;f++){var g=p[r+f];if(g&&null!=(s=a(g[o])))return s}}else if(e===$M){var y=t;if(!u)return iT.Not;for(var f=0;ff;f++){var v=y[f];if(v&&null!=(s=a(v[u])))return s}}else if(e===QM){var m=t;if(!u)return iT.Not;var d=m[u];if(!d||P(d))return iT.Not;for(var f=0;ff;f++)if(null!=(s=a(d[f])))return s}else if(e===ZM)for(var _=t,f=0;f<_.length&&l>f;f++){var v=_[f],x=fr(v);if(!M(x))return iT.Not;if(null!=(s=a(x[o])))return s}return iT.Not}function Ql(t,e,n){var i=oT.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}function Jl(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function tu(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?Jl(i,a):n;if(h=h||n,h&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function eu(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function nu(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function iu(t,e){var n=t.color&&!t.colorLayer;y(e,function(e,i){"colorLayer"===i&&n||WM.hasClass(i)||("object"==typeof e?t[i]=t[i]?l(t[i],e,!1):s(e):null==t[i]&&(t[i]=e))})}function ru(t,e,n){if(M(e)){var i=Y();return y(e,function(t){if(null!=t){var e=Tr(t,null);null!=e&&i.set(t,!0)}}),_(n,function(e){return e&&i.get(e[t])})}var r=Tr(e,null);return _(n,function(e){return e&&null!=r&&e[t]===r})}function ou(t,e){return e.hasOwnProperty("subType")?_(t,function(t){return t&&t.subType===e.subType}):t}function au(t){var e=Y();return t&&y(pr(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function su(t,e,n){function i(t){y(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||c)&&(t.options=t.media=null),o=t),c&&M(h)&&y(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),i(o),y(u,function(t){return i(t)}),y(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function lu(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return y(t,function(t,e){var n=e.match(wT);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();uu(i[a],t,o)||(r=!1)}}),r}function uu(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function hu(t,e){return t.join(",")===e.join(",")}function cu(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=TT.length;i>n;n++){var r=TT[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?l(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?l(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function pu(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,c(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function du(t){pu(t,"itemStyle"),pu(t,"lineStyle"),pu(t,"areaStyle"),pu(t,"label"),pu(t,"labelLine"),pu(t,"upperLabel"),pu(t,"edgeLabel")}function fu(t,e){var n=MT(t)&&t[e],i=MT(n)&&n.textStyle;if(i)for(var r=0,o=ew.length;o>r;r++){var a=ew[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function gu(t){t&&(du(t),fu(t,"label"),t.emphasis&&fu(t.emphasis,"label"))}function yu(t){if(MT(t)){cu(t),du(t),fu(t,"label"),fu(t,"upperLabel"),fu(t,"edgeLabel"),t.emphasis&&(fu(t.emphasis,"label"),fu(t.emphasis,"upperLabel"),fu(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(cu(e),gu(e));var n=t.markLine;n&&(cu(n),gu(n));var i=t.markArea;i&&gu(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!P(o))for(var a=0;a=0;g--){var y=t[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,p)),d>=0){var v=y.data.getByRawIndex(y.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&0>v||"samesign"===l&&c>=0&&v>0||"samesign"===l&&0>=c&&0>v){c=Ki(c,v),f=v;break}}}return i[0]=c,i[1]=f,i})})}function Pu(t){return t instanceof kT}function Lu(t,e,n){n=n||Eu(t);var i=e.seriesLayoutBy,r=zu(t,n,i,e.sourceHeader,e.dimensions),o=new kT({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:s(e)});return o}function Ou(t){return new kT({data:t,sourceFormat:P(t)?JM:ZM})}function Ru(t){return new kT({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:s(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Eu(t){var e=tT;if(P(t))e=JM;else if(M(t)){0===t.length&&(e=KM);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(M(r)){e=KM;break}if(k(r)){e=$M;break}}}}else if(k(t))for(var o in t)if(K(t,o)&&g(t[o])){e=QM;break}return e}function zu(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Bu(r),startIndex:a,dimensionsDetectedCount:o};if(e===KM){var s=t;"auto"===i||null==i?Fu(function(t){null!=t&&"-"!==t&&(C(t)?null==a&&(a=1):a=0)},n,s,10):a=D(i)?i:i?1:0,r||1!==a||(r=[],Fu(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===nT?s.length:s[0]?s[0].length:null}else if(e===$M)r||(r=Nu(t));else if(e===QM)r||(r=[],y(t,function(t,e){r.push(e)}));else if(e===ZM){var l=fr(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Bu(r),dimensionsDetectedCount:o}}function Nu(t){for(var e,n=0;nr;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;rr;r++)t(o[r],r)}function Vu(t){var e=t.sourceFormat;return e===$M||e===QM}function Hu(t,e){var n=LT[Uu(t,e)];return n}function Wu(t,e){var n=RT[Uu(t,e)];return n}function Gu(t){var e=zT[t];return e}function Uu(t,e){return t===KM?t+"_"+e:t}function Xu(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return Gu(o)(i,a,s)}var l=i;return o===ZM&&(l=fr(i)),l}}}function Yu(t){var e,n;return k(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function qu(t){return new FT(t)}function ju(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||D(t)||null==t||"-"===t||(t=+Ji(t)),null==t||""===t?0/0:+t)}function Zu(t,e){var n=new GT,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==eT&&hr(a);var s=[],l={},u=t.dimensionsDefine;if(u)y(u,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r="";K(l,n)&&hr(r),l[n]=i}});else for(var h=0;ho;o++)r.push(n[o].slice());return r}if(e===$M){for(var r=[],o=0,a=n.length;a>o;o++)r.push(h({},n[o]));return r}}function Qu(t,e,n){return null!=n?D(n)||!isNaN(n)&&!K(e,n)?t[n]:K(e,n)?e[n]:void 0:void 0}function Ju(t){return s(t)}function th(t){t=s(t);var e=t.type,n="";e||hr(n);var i=e.split(":");2!==i.length&&hr(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,UT.set(e,t)}function eh(t,e,n){var i=pr(t),r=i.length,o="";r||hr(o);for(var a=0,s=r;s>a;a++){var l=i[a];e=nh(l,e,n,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function nh(t,e){var n="";e.length||hr(n),k(t)||hr(n);var i=t.type,r=UT.get(i);r||hr(n);var o=v(e,function(t){return Zu(t,r)}),a=pr(r.transform({upstream:o[0],upstreamList:o,config:s(t.config)}));return v(a,function(t,n){var i="";k(t)||hr(i),t.data||hr(i);var r=Eu(t.data);ih(r)||hr(i);var o,a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={seriesLayoutBy:eT,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:eT,sourceHeader:0,dimensions:t.dimensions};return Lu(t.data,o,null)})}function ih(t){return t===KM||t===$M}function rh(t){return t>65535?YT:qT}function oh(){return[1/0,-1/0]}function ah(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function sh(t,e,n,i,r){var o=KT[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}function lh(t){var e=t.option.transform;e&&U(t.option.transform)}function uh(t){return"series"===t.mainType}function hh(t){throw new Error(t)}function ch(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Ce(i+"")+"px;color:"+Ce(n)+";font-weight:"+Ce(r+""),valueStyle:"font-size:"+Ce(a+"")+"px;color:"+Ce(o)+";font-weight:"+Ce(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function ph(t,e){return e.type=t,e}function dh(t){return"section"===t.type}function fh(t){return dh(t)?yh:vh}function gh(t){if(dh(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return y(t.blocks,function(t){var n=gh(t);n>=e&&(e=n+ +(i&&(!n||dh(t)&&!t.noHeader)))}),e}return 0}function yh(t,e,n,i){var r=e.noHeader,o=_h(gh(e)),a=[],s=e.blocks||[];W(!s||M(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(K(u,l)){var c=new WT(u[l],null);s.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===l&&s.reverse()}y(s,function(n,r){var s=e.valueFormatter,l=fh(n)(s?h(h({},t),{valueFormatter:s}):t,n,r>0?o.html:0,i);null!=l&&a.push(l)});var p="richText"===t.renderMode?a.join(o.richText):xh(a.join(""),r?n:o.html);if(r)return p;var d=Pl(e.header,"ordinal",t.useUTC),f=ch(i,t.renderMode).nameStyle;return"richText"===t.renderMode?Sh(t,d,f)+o.richText+p:xh('
'+Ce(d)+"
"+p,n)}function vh(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=M(t)?t:[t],v(t,function(t,e){return Pl(t,M(d)?d[e]:d,u)})};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Pl(l,"ordinal",u),d=e.valueType,f=a?[]:h(e.value),g=!s||!o,y=!s&&o,m=ch(i,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":Sh(t,p,_))+(a?"":Mh(t,f,g,y,x)):xh((s?"":c)+(o?"":wh(p,!s,_))+(a?"":bh(f,g,y,x)),n)}}function mh(t,e,n,i,r,o){if(t){var a=fh(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function _h(t){return{html:tC[t],richText:eC[t]}}function xh(t,e){var n='
',i="margin: "+e+"px 0 0";return'
'+t+n+"
"}function wh(t,e,n){var i=e?"margin-left:2px":"";return''+Ce(t)+""}function bh(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=M(t)?t:[t],''+v(t,function(t){return Ce(t)}).join("  ")+""}function Sh(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Mh(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(M(e)?e.join(" "):e,o)}function Th(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return zl(i)}function Ch(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}function Ih(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=M(c),d=Th(o,a);if(h>1||p&&!h){var f=Dh(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Xu(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=Cr(o),v=y&&o.name||"",m=l.getName(a),_=s?v:m;return ph("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[ph("nameValue",{markerType:"item",markerColor:d,name:_,noName:!G(_),value:e,valueType:n})].concat(i||[])})}function Dh(t,e,n,i,r){function o(t,e){var n=a.getDimensionInfo(e);n&&n.otherDims.tooltip!==!1&&(s?h.push(ph("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=m(t,function(t,e,n){var i=a.getDimensionInfo(n);return t=t||i&&i.tooltip!==!1&&null!=i.displayName},!1),l=[],u=[],h=[];return i.length?y(i,function(t){o(Xu(a,n,t),t)}):y(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function kh(t,e){return t.getName(e)||t.getId(e)}function Ah(t){var e=t.name;Cr(t)||(t.name=Ph(t)||e)}function Ph(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return y(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function Lh(t){return t.model.getRawData().count()}function Oh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Rh}function Rh(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Eh(t,e){y(q(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,S(zh,e))})}function zh(t,e){var n=Nh(t);return n&&n.setOutputEnd((e||this).count()),e}function Nh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function Bh(){var t=Pr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}function Fh(t,e,n){t&&za(t)&&("emphasis"===e?da:fa)(t,n)}function Vh(t,e,n){var i=Ar(t,e),r=e&&null!=e.highlightKey?Na(e.highlightKey):null;null!=i?y(pr(i),function(e){Fh(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Fh(t,n,r)})}function Hh(t){return lC(t.model)}function Wh(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&sC(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),cC[l]}function Gh(t,e,n){function i(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=null;e=e||0;var p=function(){for(var t=[],p=0;p=0?i():c=setTimeout(i,-o),u=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){l=t},p}function Uh(t,e,n,i){var r=t[e];if(r){var o=r[pC]||r,a=r[fC],s=r[dC];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=Gh(o,n,"debounce"===i),r[pC]=o,r[fC]=i,r[dC]=n}return r}}function Xh(t,e){var n=t[e];n&&n[pC]&&(n.clear&&n.clear(),t[e]=n[pC])}function Yh(t,e){var n=t.visualStyleMapper||yC[e];return n?n:(console.warn("Unkown style type '"+e+"'."),yC.itemStyle)}function qh(t,e){var n=t.visualDrawType||vC[e];return n?n:(console.warn("Unkown style type '"+e+"'."),"fill")}function jh(t,e){e=e||{},c(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Gx,i=new vb({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r=new wb({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new vb({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new OS({shape:{startAngle:-bC/2,endAngle:-bC/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:3*bC/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*bC/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function Zh(t){t.overallReset(t.ecModel,t.api,t.payload)}function Kh(t){return t.overallProgress&&$h}function $h(){this.agent.dirty(),this.getDownstream().dirty()}function Qh(){this.agent&&this.agent.dirty()}function Jh(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function tc(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=pr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?v(e,function(t,e){return ec(e)}):MC}function ec(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o=0&&gc(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function mc(t,e,n){for(var i="radial"===e.type?vc(t,e,n):yc(t,e,n),r=e.colorStops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:D(t)?[t]:M(t)?t:null:null}function Sc(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&bc(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=v(n,function(t){return t/r}),i/=r)}return[n,i]}function Mc(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Tc(t){return"string"==typeof t&&"none"!==t}function Cc(t){var e=t.fill;return null!=e&&"none"!==e}function Ic(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Dc(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function kc(t,e,n){var i=$r(e.image,e.__image,n);if(Jr(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Fm),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function Ac(t,e,n,i){var r,o=Mc(n),a=Cc(n),s=n.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||KC,c=e.__dirty;if(!i){var p=n.fill,d=n.stroke,f=a&&!!p.colorStops,g=o&&!!d.colorStops,y=a&&!!p.image,v=o&&!!d.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(f||g)&&(b=e.getBoundingRect()),f&&(m=c?mc(t,p,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=c?mc(t,d,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),y&&(x=c||!e.__canvasFillPattern?kc(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),v&&(w=c||!e.__canvasStrokePattern?kc(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),f?t.fillStyle=m:y&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:v&&(w?t.strokeStyle=w:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,T;t.setLineDash&&n.lineDash&&(r=Sc(e),M=r[0],T=r[1]);var C=!0;(u||c&D_)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=T),i||(n.strokeFirst?(o&&Dc(t,n),a&&Ic(t,n)):(a&&Ic(t,n),o&&Dc(t,n))),M&&t.setLineDash([])}function Pc(t,e,n){var i=e.__image=$r(n.image,e.__image,e,e.onload);if(i&&Jr(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(i,u,h,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,p=s-h;t.drawImage(i,u,h,c,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function Lc(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||vm,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=Sc(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Mc(n)&&t.strokeText(r,n.x,n.y),Cc(n)&&t.fillText(r,n.x,n.y)):(Cc(n)&&t.fillText(r,n.x,n.y),Mc(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}function Oc(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){Vc(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?mw.opacity:a}(i||e.blend!==n.blend)&&(o||(Vc(t,r),o=!0),t.globalCompositeOperation=e.blend||mw.blend);for(var s=0;s<$C.length;s++){var l=$C[s];(i||e[l]!==n[l])&&(o||(Vc(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Vc(t,r),o=!0),t.shadowColor=e.shadowColor||mw.shadowColor),o}function Rc(t,e,n,i,r){var o=Hc(e,r.inHover),a=i?null:n&&Hc(n,r.inHover)||{};if(o===a)return!1;var s=Oc(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Vc(t,r),s=!0),Tc(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Vc(t,r),s=!0),Tc(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Vc(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Vc(t,r),s=!0),t.lineWidth=u)}for(var h=0;ho;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Gc(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Gc(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function Xc(t,e){function n(t){function e(){for(var t=1,e=0,n=v.length;n>e;++e)t=ur(t,v[e]);for(var i=1,e=0,n=y.length;n>e;++e)i=ur(i,y[e].length);t*=i;var r=m*v.length*y.length;return{width:Math.max(1,Math.min(t,s.maxTileWidth)),height:Math.max(1,Math.min(r,s.maxTileHeight))}}function n(){function t(t,e,n,a,l){var u=o?1:i,h=pc(l,t*u,e*u,n*u,a*u,s.color,s.symbolKeepAspect);if(o){var c=r.painter.renderOneToVNode(h);c&&x.children.push(c)}else Wc(d,h)}d&&(d.clearRect(0,0,_.width,_.height),s.backgroundColor&&(d.fillStyle=s.backgroundColor,d.fillRect(0,0,_.width,_.height)));for(var e=0,n=0;n=e))for(var a=-m,l=0,u=0,h=0;a=S)break;if(v%2===0){var M=.5*(1-s.symbolSize),T=p+f[h][v]*M,C=a+g[l]*M,I=f[h][v]*s.symbolSize,D=g[l]*s.symbolSize,k=b/2%y[c].length;t(T,C,I,D,y[c][k])}p+=f[h][v],++b,++v,v===f[h].length&&(v=0)}++h,h===f.length&&(h=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[i],l=!0,u=0;u=0)){mD.push(n);var o=SC.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function wp(t,e){cD[t]=e}function bp(t){r({createCanvas:t})}function Sp(t,e,n){var i=Jc("registerMap");i&&i(t,e,n)}function Mp(t){var e=Jc("getMap");return e&&e(t)}function Tp(t){return null==t?0:t.length||1}function Cp(t){return t}function Ip(t,e){var n={},i=n.encode={},r=Y(),o=[],a=[],s={};y(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;Dp(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),Ap(n.type)&&(o[0]=e),Dp(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}jM.each(function(t,e){var r=Dp(i,e),o=n.otherDims[e];null!=o&&o!==!1&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=v(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new kD(s,e),n}function Dp(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function kp(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Ap(t){return!("ordinal"===t||"time"===t)}function Pp(t){return t instanceof OD}function Lp(t){for(var e=Y(),n=0;n<(t||[]).length;n++){var i=t[n],r=k(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function Op(t){var e=PD(t);return e.dimNameMap||(e.dimNameMap=Lp(t.dimensionsDefine))}function Rp(t){return t>30}function Ep(t,e){return zp(t,e).dimensions}function zp(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=k(n)?n:{name:n},r=new AD,o=i.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var s=l.length;return m[t]=s,r.storeDimIndex=t,l.push(r),r}return l[e]}function i(t,e,n){null!=jM.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}Pu(t)||(t=Ou(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=Y(),l=[],u=Bp(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&Rp(u),d=a===t.dimensionsDefine,f=d?Op(t):Lp(a),g=e.encodeDefine; +!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,u));for(var v=Y(g),m=new jT(u),_=0;__;_++)n(_);v.each(function(t,e){var r=pr(t).slice();if(1===r.length&&!C(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);y(r,function(t,r){var a=C(t)?f.get(t):t;null!=a&&u>a&&(o[r]=a,i(n(a),e,r))})});var x=0;y(o,function(t){var e,r,o,a;if(C(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=h({},a),a.ordinalMeta=s,r=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var l=v.get(e);if(l!==!1){if(l=pr(l),!l.length)for(var p=0;p<(r&&r.length||1);p++){for(;u>x&&null!=n(x).coordDim;)x++;u>x&&l.push(x++)}y(l,function(t,s){var l=n(t);if(d&&null!=a.type&&(l.type=a.type),i(c(l,a),e,s),null==l.name&&r){var u=r[s];!k(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&c(l.otherDims,o)})}});var w=e.generateCoord,b=e.generateCoordCount,S=null!=b;b=w?b||1:0;var M=w||"value";if(p)y(l,function(t){r(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var T=0;u>T;T++){var I=n(T),D=I.coordDim;null==D&&(I.coordDim=Fp(M,s,S),I.coordDimIndex=0,(!w||0>=b)&&(I.isExtraCoord=!0),b--),r(I),null!=I.type||Kl(t,T)!==iT.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}return Np(l),new OD({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:p})}function Np(t){for(var e=Y(),n=0;n0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function Bp(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return y(e,function(t){var e;k(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Fp(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var r=0;i.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}function Vp(t){var e=t.get("coordinateSystem"),n=new WD(e),i=GD[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function Hp(t){return"category"===t.get("type")}function Wp(t,e,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;Gp(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get("stack"));if(y(i,function(t,e){C(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\x00ecstackresult_"+t.id,c="__\x00ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;y(i,function(t){t.coordDim===d&&g++});var v={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,f),m.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Gp(t){return!Pp(t.schema)}function Up(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Xp(t,e){return Up(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Yp(t,e){var n,i=t.get("coordinateSystem"),r=xT.get(i);return e&&e.coordSysDims&&(n=v(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=kp(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function qp(t,e,n){var i,r;return n&&y(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}function jp(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=Ou(t)):(i=r.getSource(),o=i.sourceFormat===ZM);var a=Vp(e),s=Yp(e,a),l=n.useEncodeDefaulter,u=T(l)?l:l?S(Yl,s,e):null,h={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=zp(i,h),p=qp(c.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),f=Wp(e,{schema:c,store:d}),g=new HD(c,e);g.setCalculationInfo(f);var y=null!=p&&Zp(i)?function(t,e,n,i){return i===p?n:this.defaultDimValueGetter(t,e,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:d,null,y),g}function Zp(t){if(t.sourceFormat===ZM){var e=Kp(t.data||[]);return!M(fr(e))}}function Kp(t){for(var e=0;ea&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=ed(a),l=r.niceTickExtent=[Gi(Math.ceil(t[0]/a)*a,s),Gi(Math.floor(t[1]/a)*a,s)];return id(l,t),r}function td(t){var e=Math.pow(10,er(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Gi(n*e)}function ed(t){return Xi(t)+2}function nd(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function id(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),nd(t,0,e),nd(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function rd(t,e){return t>=e[0]&&t<=e[1]}function od(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function ad(t,e){return t*(e[1]-e[0])+e[0]}function sd(t){return M(t)?KD?new Float32Array(t):t:new $D(t)}function ld(t){return t.get("stack")||QD+t.seriesIndex}function ud(t){return t.dim+t.index}function hd(t,e){var n=[];return e.eachSeriesByType(t,function(t){vd(t)&&n.push(t)}),n}function cd(t){var e={};y(t,function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function pd(t){var e=cd(t),n=[];return y(t,function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);i=l?u/c*l:u}else{var p=t.getData();i=Math.abs(a[1]-a[0])/p.count()}var d=Wi(t.get("barWidth"),i),f=Wi(t.get("barMaxWidth"),i),g=Wi(t.get("barMinWidth")||(md(t)?.5:1),i),y=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:f,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:ud(o),stackId:ld(t)})}),dd(n)}function dd(t){var e={};y(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var n={};return y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=w(i).length;o=Math.max(35-4*a,15)+"%"}var s=Wi(o,r),l=Wi(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),y(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&i>e&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,d=0;y(i,function(t){t.width||(t.width=c),p=t,d+=t.width*(1+l)}),p&&(d-=p.width*l);var f=-d/2;y(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)})}),n}function fd(t,e,n){if(t&&e){var i=t[ud(e)];return null!=i&&null!=n?i[ld(n)]:i}}function gd(t,e){var n=hd(t,e),i=pd(n);y(n,function(t){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),o=ld(t),a=i[ud(r)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})})}function yd(t){return{seriesType:t,plan:Bh(),reset:function(t){if(vd(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=Up(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=_d(i,r),d=md(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&sd(3*r),u=d&&s&&sd(3*r),m=d&&sd(r),_=n.master.getRect(),x=c?_.width:_.height,w=e.getStore(),b=0;null!=(i=t.next());){var S=w.get(h?g:o,i),M=w.get(a,i),T=p,C=void 0;h&&(C=+S-w.get(o,i));var I=void 0,D=void 0,k=void 0,A=void 0;if(c){var P=n.dataToPoint([S,M]);if(h){var L=n.dataToPoint([C,M]);T=L[0]}I=T,D=P[1]+v,k=P[0]-T,A=y,Math.abs(k)k?-1:1)*f)}else{var P=n.dataToPoint([M,S]);if(h){var L=n.dataToPoint([M,C]);T=L[1]}I=P[0]+v,D=T,k=y,A=P[1]-T,Math.abs(A)=A?-1:1)*f)}d?(l[b]=I,l[b+1]=D,l[b+2]=c?k:A,u&&(u[b]=c?_.x:I,u[b+1]=c?D:_.y,u[b+2]=x),m[i]=i):e.setItemLayout(i,{x:I,y:D,width:k,height:A}),b+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:c})}}}}}}function vd(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function md(t){return t.pipelineContext&&t.pipelineContext.large}function _d(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function xd(t,e,n,i){var r=Ji(e),o=Ji(n),a=function(t){return dl(r,t,i)===dl(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},p=function(){return c()&&a("second")},d=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return p();case"millisecond":return d()}}function wd(t){return t/=IM,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function bd(t){var e=30*IM;return t/=e,t>6?6:t>3?3:t>2?2:1}function Sd(t){return t/=CM,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Md(t,e){return t/=e?TM:MM,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Td(t){return nr(t,!0)}function Cd(t,e,n){var i=new Date(t);switch(sl(e)){case"year":case"month":i[bl(n)](0);case"day":i[Sl(n)](1);case"hour":i[Ml(n)](0);case"minute":i[Tl(n)](0);case"second":i[Cl(n)](0),i[Il(n)](0)}return i.getTime()}function Id(t,e,n,i){function r(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();n>u&&u<=i[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!xd(sl(t),i[0],i[1],n)){l&&(o=[{value:Cd(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u1&&0===u&&a.unshift({value:a[0].value-p})}}for(var u=0;u=i[0]&&x<=i[1]&&c++)}var w=(i[1]-i[0])/e;if(c>1.5*w&&p>w/1.5)break;if(u.push(y),c>w||t===s[d])break}h=[]}}}for(var b=_(v(u,function(t){return _(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),S=[],M=b.length-1,d=0;d0&&i>0||0>n&&0>i)}function zd(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):C(e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):T(e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(Nd(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Nd(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Bd(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof qD?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=zd(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=i?i[h]:{value:o[0]+h},p=l(c,h),d=s.getTextRect(p),f=Fd(d,s.get("rotate")||0);a?a.union(f):a=f}return a}}function Fd(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new y_(t.x,t.y,o,a);return s}function Vd(t){var e=t.get("interval");return null==e?"auto":e}function Hd(t){return"category"===t.type&&0===Vd(t.getLabelModel())}function Wd(t,e){var n={};return y(t.mapDimensionsAll(e),function(e){n[Xp(t,e)]=!0}),w(n)}function Gd(t){return jp(null,t)}function Ud(t,e){var n=e;e instanceof fM||(n=new fM(e));var i=Rd(n);return i.setExtent(t[0],t[1]),Od(i,n),i}function Xd(t){f(t,fk)}function Yd(t,e){return e=e||{},Us(t,null,null,"normal"!==e.state)}function qd(t){return M(t)?void y(t,function(t){qd(t)}):void(p(vk,t)>=0||(vk.push(t),T(t)&&(t={install:t}),t.install(mk)))}function jd(t,e){return Math.abs(t-e)<_k}function Zd(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;os;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,i+=(a+u)*h,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}function Jd(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return y(i,function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=ef(r,i,n);break;case"Polygon":tf(r,i,n);break;case"MultiLineString":tf(r,i,n);break;case"MultiPolygon":y(r,function(t,e){return tf(t,i[e],n)})}}),e.UTF8Encoding=!1,e}function tf(t,e,n){for(var i=0;i>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function nf(t,e){return t=Jd(t),v(_(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new bk(o[0],o.slice(1)));break;case"MultiPolygon":y(i.coordinates,function(t){t[0]&&r.push(new bk(t[0],t.slice(1)))});break;case"LineString":r.push(new Sk([i.coordinates]));break;case"MultiLineString":r.push(new Sk(i.coordinates))}var a=new Mk(n[e||"name"],r,n.cp);return a.properties=n,a})}function rf(t){return"category"===t.type?af(t):uf(t)}function of(t,e){return"category"===t.type?lf(t,e):{ticks:v(t.scale.getTicks(),function(t){return t.value})}}function af(t){var e=t.getLabelModel(),n=sf(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function sf(t,e){var n=hf(t,"labels"),i=Vd(e),r=cf(n,i);if(r)return r;var o,a;return T(i)?o=vf(t,i):(a="auto"===i?df(t):i,o=yf(t,a)),pf(n,i,{labels:o,labelCategoryInterval:a})}function lf(t,e){var n=hf(t,"ticks"),i=Vd(e),r=cf(n,i);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),T(i))o=vf(t,i,!0);else if("auto"===i){var s=sf(t,t.getLabelModel());a=s.labelCategoryInterval,o=v(s.labels,function(t){return t.tickValue})}else a=i,o=yf(t,a,!0);return pf(n,i,{ticks:o,tickCategoryInterval:a})}function uf(t){var e=t.scale.getTicks(),n=zd(t);return{labels:v(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function hf(t,e){return Ak(t)[e]||(Ak(t)[e]=[])}function cf(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f=0,g=0,y=xi(n({value:l}),e.font,"center","top");f=1.3*y.width,g=1.3*y.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var v=p/h,m=d/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(v,m))),x=Ak(t.model),w=t.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return null!=b&&null!=S&&Math.abs(b-_)<=1&&Math.abs(S-a)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function gf(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function yf(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=zd(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var p=Hd(t),d=s.get("showMinLabel")||p,f=s.get("showMaxLabel")||p;d&&h!==a[0]&&i(a[0]);for(var g=h;g<=a[1];g+=u)i(g);return f&&g-u!==a[1]&&i(a[1]),l}function vf(t,e,n){var i=t.scale,r=zd(t),o=[];return y(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function mf(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function _f(t,e,n,i){function r(t,e){return t=Gi(t),e=Gi(e),p?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;y(e,function(t){t.coord-=h/2});var c=t.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var p=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function xf(t){var e=WM.extend(t);return WM.registerClass(e),e}function wf(t){var e=aC.extend(t);return aC.registerClass(e),e}function bf(t){var e=oC.extend(t);return oC.registerClass(e),e}function Sf(t){var e=uC.extend(t);return uC.registerClass(e),e}function Mf(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function Tf(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*n+t,c=s*n+e;if(Math.abs(i-r)%Ok<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=wo(r),r=wo(p)}else i=wo(i),r=wo(r);i>r&&(r+=Ok);var d=Math.atan2(s,a);if(0>d&&(d+=Ok),d>=i&&r>=d||d+Ok>=i&&r>=d+Ok)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),_=(y-a)*(y-a)+(v-s)*(v-s);return _>m?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(_))}function Cf(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,h=n-t,c=i-e,p=Math.sqrt(h*h+c*c);h/=p,c/=p;var d=l*h+u*c,f=d/p;s&&(f=Math.min(Math.max(f,0),1)),f*=p;var g=a[0]=t+f*h,y=a[1]=e+f*c;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function If(t,e,n,i,r,o,a){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function Df(t,e,n){var i=If(e.x,e.y,e.width,e.height,t.x,t.y,zk);return n.set(zk[0],zk[1]),i}function kf(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,d=0;d=d&&(s=i,l=r);var S=(c-y)*_/m+y;g=Tf(y,v,_,x,x+w,b,S,p,zk),o=Math.cos(x+w)*m+y,a=Math.sin(x+w)*_+v;break;case Rk.R:s=o=h[d++],l=a=h[d++];var M=h[d++],T=h[d++];g=If(s,l,M,T,c,p,zk);break;case Rk.Z:g=Cf(o,a,s,l,c,p,zk,!0),o=s,a=l}u>g&&(u=g,n.set(zk[0],zk[1]))}return u}function Af(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||Ek,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Ge([],h),p=e.get("length2")||0;u&&Fk.copy(u);for(var d=0;dy&&(l=y,Bk.transform(h),Fk.transform(h),Fk.toArray(o[0]),Bk.toArray(o[1]),Nk.toArray(o[2]))}Pf(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function Pf(t,e){if(180>=e&&e>0){e=e/180*Math.PI,Nk.fromArray(t[0]),Bk.fromArray(t[1]),Fk.fromArray(t[2]),s_.sub(Vk,Nk,Bk),s_.sub(Hk,Fk,Bk);var n=Vk.len(),i=Hk.len();if(!(.001>n||.001>i)){Vk.scale(1/n),Hk.scale(1/i);var r=Vk.dot(Hk),o=Math.cos(e);if(r>o){var a=Cf(Bk.x,Bk.y,Fk.x,Fk.y,Nk.x,Nk.y,Wk,!1);Gk.fromArray(Wk),Gk.scaleAndAdd(Hk,a/Math.tan(Math.PI-e));var s=Fk.x!==Bk.x?(Gk.x-Bk.x)/(Fk.x-Bk.x):(Gk.y-Bk.y)/(Fk.y-Bk.y);if(isNaN(s))return;0>s?s_.copy(Gk,Bk):s>1&&s_.copy(Gk,Fk),Gk.toArray(t[1])}}}}function Lf(t,e,n){if(180>=n&&n>0){n=n/180*Math.PI,Nk.fromArray(t[0]),Bk.fromArray(t[1]),Fk.fromArray(t[2]),s_.sub(Vk,Bk,Nk),s_.sub(Hk,Fk,Bk);var i=Vk.len(),r=Hk.len();if(!(.001>i||.001>r)){Vk.scale(1/i),Hk.scale(1/r);var o=Vk.dot(e),a=Math.cos(n);if(a>o){var s=Cf(Bk.x,Bk.y,Fk.x,Fk.y,Nk.x,Nk.y,Wk,!1);Gk.fromArray(Wk);var l=Math.PI/2,u=Math.acos(Hk.dot(e)),h=l+u-n;if(h>=l)s_.copy(Gk,Fk);else{Gk.scaleAndAdd(Hk,s/Math.tan(Math.PI/2-h));var c=Fk.x!==Bk.x?(Gk.x-Bk.x)/(Fk.x-Bk.x):(Gk.y-Bk.y)/(Fk.y-Bk.y);if(isNaN(c))return;0>c?s_.copy(Gk,Bk):c>1&&s_.copy(Gk,Fk)}Gk.toArray(t[1])}}}}function Of(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function Rf(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Gm(i[0],i[1]),o=Gm(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=ge([],i[1],i[0],a/r),l=ge([],i[1],i[2],a/o),u=ge([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;ht){var i=Math.min(e,-t);if(i>0){l(i*n,0,c);var r=i+t;0>r&&u(-r*n,1)}else u(-t*n,1)}}function l(n,i,r){0!==n&&(f=!0);for(var o=i;r>o;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(h),a+=h}if(a){var p=Math.min(Math.abs(i)/a,r);if(i>0)for(var s=0;c-1>s;s++){var d=o[s]*p;l(d,0,s+1)}else for(var s=c-1;s>0;s--){var d=o[s-1]*p;l(-d,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(c-1)),i=0;c-1>i;i++)if(e>0?l(n,0,i+1):l(-n,c-i-1,c),t-=n,0>=t)return}var c=t.length;if(!(2>c)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p,d=0,f=!1,g=[],y=0,v=0;c>v;v++){var m=t[v],_=m.rect;p=_[e]-d,0>p&&(_[e]-=p,m.label[e]-=p,f=!0);var x=Math.max(-p,0);g.push(x),y+=x,d=_[e]+_[n]}y>0&&o&&l(-y/c,0,c);var w,b,S=t[0],M=t[c-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&h(-w),0>b&&h(b),f}}function Ff(t,e,n,i){return Bf(t,"x","width",e,n,i)}function Vf(t,e,n,i){return Bf(t,"y","height",e,n,i)}function Hf(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var i=new y_(0,0,0,0),r=0;r10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;C(r)?d=oA[r]:T(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,aA))}}}}}function Qf(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new vb({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=T(r)?function(t){r(t,c)}:null;ls(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function Jf(t,e,n){var i=t.getArea(),r=Gi(i.r0,1),o=Gi(i.r,1),a=new _S({shape:{cx:Gi(t.cx,1),cy:Gi(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,ls(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function tg(t,e,n,i,r){return t?"polar"===t.type?Jf(t,e,n):"cartesian2d"===t.type?Qf(t,e,n,i,r):null:null}function eg(t,e){return t.type===e}function ng(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Xu(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}function rg(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,r){var o=i.position;if(!o||o instanceof Array)return Ti(e,i,r);var a=t(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,h=l.cy,c=l.r,p=l.r0,d=(c+p)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,v=n?Math.abs(c-p)/2:0,m=Math.cos,_=Math.sin,x=u+c*m(f),w=h+c*_(f),b="left",S="top";switch(a){case"startArc":x=u+(p-s)*m(y),w=h+(p-s)*_(y),b="center",S="top";break;case"insideStartArc":x=u+(p+s)*m(y),w=h+(p+s)*_(y),b="center",S="bottom";break;case"startAngle":x=u+d*m(f)+ag(f,s+v,!1),w=h+d*_(f)+sg(f,s+v,!1),b="right",S="middle";break;case"insideStartAngle":x=u+d*m(f)+ag(f,-s+v,!1),w=h+d*_(f)+sg(f,-s+v,!1),b="left",S="middle";break;case"middle":x=u+d*m(y),w=h+d*_(y),b="center",S="middle";break;case"endArc":x=u+(c+s)*m(y),w=h+(c+s)*_(y),b="center",S="bottom";break;case"insideEndArc":x=u+(c-s)*m(y),w=h+(c-s)*_(y),b="center",S="top";break;case"endAngle":x=u+d*m(g)+ag(g,s+v,!0),w=h+d*_(g)+sg(g,s+v,!0),b="left",S="middle";break;case"insideEndAngle":x=u+d*m(g)+ag(g,-s+v,!0),w=h+d*_(g)+sg(g,-s+v,!0),b="right",S="middle";break;default:return Ti(e,i,r)}return e=e||{},e.x=x,e.y=w,e.align=b,e.verticalAlign=S,e}}function og(t,e,n,i){if(D(i))return void t.setTextConfig({rotation:i});if(M(e))return void t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}function ag(t,e,n){return e*Math.sin(t)*(n?-1:1)}function sg(t,e,n){return e*Math.cos(t)*(n?1:-1)}function lg(t,e){var n=t.getArea&&t.getArea();if(eg(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}function ug(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();return n&&"category"===i.type&&"cartesian2d"===e.type?{baseAxis:i,otherAxis:e.getOtherAxis(i)}:void 0}function hg(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?ss:ls)(n,{shape:l},e,r,null);var h=e?t.baseAxis.model:null;(a?ss:ls)(n,{shape:u},h,r)}function cg(t,e){for(var n=0;n=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",c=Gs(i);Ws(t,c,{labelFetcher:o,labelDataIndex:n,defaultText:ng(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var d=i.get(["label","position"]);t.textConfig.inside="middle"===d?!0:null,og(t,"outside"===d?h:d,dg(a),i.get(["label","rotate"]))}Ks(p,c,o.getRawValue(n),function(t){return ig(e,t)});var f=i.getModel(["emphasis"]);La(t,f.get("focus"),f.get("blurScope"),f.get("disabled")),Ra(t,i),pg(r)&&(t.style.fill="none",t.style.stroke="none",y(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}function gg(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}function yg(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var h=new wA({shape:{points:u},incremental:!!i,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var c=new wA({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,e.add(c),c.useStyle(r.getVisual("style")),Tb(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",bA),c.on("mousemove",bA)),n&&n.push(c)}function vg(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;c>h;h++){var p=3*h;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}function mg(t,e,n){if(eg(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var r=n.getArea(),o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function _g(t,e,n){var i="polar"===t.type?_S:vb;return new i({shape:mg(e,n,t),silent:!0,z2:0})}function xg(t){t.registerChartView(dA),t.registerSeriesModel(lA),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,S(gd,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yd("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$f("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})}function wg(t,e){this.parent.drift(t,e)}function bg(t,e,n,i){return!(!e||isNaN(e[0])||isNaN(e[1])||i.isIgnore&&i.isIgnore(n)||i.clipShape&&!i.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(n,"symbol"))}function Sg(t){return null==t||k(t)||(t={isIgnore:t}),t||{}}function Mg(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Gs(e),cursorStyle:e.get("cursor")}}function Tg(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=Cg(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=v(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,d=e.getCalculationInfo("stackResultDimension");return Up(e,c[0])&&(p=!0,c[0]=d),Up(e,c[1])&&(p=!0,c[1]=d),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Cg(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:D(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function Ig(t,e,n,i){var r=0/0;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function Dg(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}function kg(t,e,n,i,r,o,a){for(var s=Dg(t,e),l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Tg(r,e,a),y=t.getLayout("points")||[],v=e.getLayout("points")||[],m=0;my;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(Ag(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var _=v-u,x=m-h;if(.5>_*_+x*x){g+=o;continue}if(a>0){for(var w=g+o,b=e[2*w],S=e[2*w+1];b===v&&S===m&&i>y;)y++,w+=o,g+=o,b=e[2*w],S=e[2*w+1],v=e[2*g],m=e[2*g+1],_=v-u,x=m-h;var M=y+1;if(l)for(;Ag(b,S)&&i>M;)M++,w+=o,b=e[2*w],S=e[2*w+1];var T=.5,C=0,I=0,D=void 0,k=void 0;if(M>=i||Ag(b,S))d=v,f=m;else{C=b-u,I=S-h;var A=v-u,P=b-v,L=m-h,O=S-m,R=void 0,E=void 0;if("x"===s){R=Math.abs(A),E=Math.abs(P);var z=C>0?1:-1;d=v-z*R*a,f=m,D=v+z*E*a,k=m}else if("y"===s){R=Math.abs(L),E=Math.abs(O);var N=I>0?1:-1;d=v,f=m-N*R*a,D=v,k=m+N*E*a}else R=Math.sqrt(A*A+L*L),E=Math.sqrt(P*P+O*O),T=E/(E+R),d=v-C*a*(1-T),f=m-I*a*(1-T),D=v+C*a*T,k=m+I*a*T,D=CA(D,IA(b,v)),k=CA(k,IA(S,m)),D=IA(D,CA(b,v)),k=IA(k,CA(S,m)),C=D-v,I=k-m,d=v-C*R/E,f=m-I*R/E,d=CA(d,IA(u,v)),f=CA(f,IA(h,m)),d=IA(d,CA(u,v)),f=IA(f,CA(h,m)),C=v-d,I=m-f,D=v+C*E/R,k=m+I*E/R}t.bezierCurveTo(c,p,d,f,v,m),c=D,p=k}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}function Lg(t,e){if(t.length===e.length){for(var n=0;no;o++){var a=Ig(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function Ng(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;ss;s++){var l=t[s],u=l.coord;if(0>u)i=l;else{if(u>e){r?o.push(n(r,l,e)):i&&o.push(n(i,l,0),n(i,l,e));break}i&&(o.push(n(i,l,0)),i=null),o.push(l),r=l}}return o}function Fg(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=v(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=Bg(u,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=10,g=p[0].coord-f,m=p[d-1].coord+f,_=m-g;if(.001>_)return"transparent";y(p,function(t){t.offset=(t.coord-g)/_}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var x=new zS(0,0,0,0,p,!0);return x[r]=g,x[r+"2"]=m,x}}}function Vg(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!Hg(o,e))){var a=e.mapDimension(o.dim),s={};return y(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Hg(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*MA.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function Wg(t,e){return isNaN(t)||isNaN(e)}function Gg(t){for(var e=t.length/2;e>0&&Wg(t[2*e-2],t[2*e-1]);e--);return e-1}function Ug(t,e){return[t[2*e],t[2*e+1]]}function Xg(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=i&&r>=e||i>=e&&e>=r){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function Yg(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;ei?(i=c,_-=c):x+=t;var r=w+b*i;e.setItemLayout(n,{angle:i,startAngle:w,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:y?Hi(t,m,[u,l]):l}),w=r}),OA>_&&p)if(.001>=_){var S=OA/p;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=S,i.startAngle=h+b*n*S,i.endAngle=h+b*(n+1)*S}})}else f=_/x,w=h,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===c?c:t*f;i.startAngle=w,i.endAngle=w+b*r,w+=b*r}})})}function ty(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;rn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var p=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(p)d;d++)if("outer"===t[d].position&&"labelLine"===t[d].labelAlignTo){var f=t[d].label.x-u;t[d].linePoints[1][0]+=f,t[d].label.x=u}Vf(t,l,l+a)&&c(t)}}function ny(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;pe||n){var c=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=e-l,f=h>e?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function ry(t){return"center"===t.position}function oy(t){function e(t){t.ignore=!0}function n(t){if(!t.ignore)return!0;for(var e in t.states)if(t.states[e].ignore===!1)return!0;return!1}var i,r,o=t.getData(),a=[],s=!1,l=(t.get("minShowLabelAngle")||0)*EA,u=o.getLayout("viewRect"),h=o.getLayout("r"),c=u.width,p=u.x,d=u.y,f=u.height;o.each(function(t){var u=o.getItemGraphicEl(t),d=u.shape,f=u.getTextContent(),g=u.getTextGuideLine(),v=o.getItemModel(t),m=v.getModel("label"),_=m.get("position")||v.get(["emphasis","label","position"]),x=m.get("distanceToLabelLine"),w=m.get("alignTo"),b=Wi(m.get("edgeDistance"),c),S=m.get("bleedMargin"),M=v.getModel("labelLine"),T=M.get("length");T=Wi(T,c);var C=M.get("length2");if(C=Wi(C,c),Math.abs(d.endAngle-d.startAngle)O?-1:1)*C,H=F;I="edge"===w?0>O?p+b:p+c-b:V+(0>O?-x:x),k=H,A=[[z,N],[B,F],[V,H]]}P=E?"center":"edge"===w?O>0?"right":"left":O>0?"left":"right"}var W=Math.PI,G=0,U=m.get("rotate");if(D(U))G=U*(W/180);else if("center"===_)G=0;else if("radial"===U||U===!0){var X=0>O?-L+W:-L;G=X}else if("tangential"===U&&"outside"!==_&&"outer"!==_){var Y=Math.atan2(O,R);0>Y&&(Y=2*W+Y);var q=R>0;q&&(Y=W+Y),G=Y-W}if(s=!!G,f.x=I,f.y=k,f.rotation=G,f.setStyle({verticalAlign:"middle"}),E){f.setStyle({align:P});var j=f.states.select;j&&(j.x+=f.x,j.y+=f.y)}else{var Z=f.getBoundingRect().clone();Z.applyTransform(f.getComputedTransform());var K=(f.style.margin||0)+2.1;Z.y-=K/2,Z.height+=K,a.push({label:f,labelLine:g,position:_,len:T,len2:C,minTurnAngle:M.get("minTurnAngle"),maxSurfaceAngle:M.get("maxSurfaceAngle"),surfaceNormal:new s_(O,R),linePoints:A,textAlign:P,labelDistance:x,labelAlignTo:w,edgeDistance:b,bleedMargin:S,rect:Z,unconstrainedWidth:Z.width,labelStyleWidth:f.style.width})}u.setTextConfig({inside:E})}}),!s&&t.get("avoidLabelOverlap")&&ny(a,i,r,h,c,f,p,d);for(var g=0;gi?!1:!0})}}}function uy(t){t.registerChartView(NA),t.registerSeriesModel(FA),sc("pie",t.registerAction),t.registerLayout(S(Jg,"pie")),t.registerProcessor(ty("pie")),t.registerProcessor(ly("pie"))}function hy(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=Wi(n[0],e.getWidth()),s=Wi(n[1],e.getHeight()),l=Wi(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function cy(t,e){var n=null==t?"":t+"";return e&&(C(e)?n=e.replace("{value}",n):T(e)&&(n=e(t))),n}function py(t){t.registerChartView(WA),t.registerSeriesModel(GA)}function dy(t,n,i,r){y(QA,function(o,a){var s=l(l({},$A[a],!0),r,!0),u=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+"Axis."+a,e}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Vl(this),i=n?Wl(t):{},r=e.getTheme();l(t,r.get(a+"Axis")),l(t,this.getDefaultOption()),t.type=fy(t),n&&Hl(t,i,n)},i.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=YD.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+"Axis."+a,i.defaultOption=s,i}(i);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(n+"Axis",fy)}function fy(t){return t.type||(t.data?"category":"value")}function gy(t){return"interval"===t.type||"time"===t.type}function yy(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:c[0],"x"===u?f[p[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),N(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function vy(t){return"cartesian2d"===t.get("coordinateSystem")}function my(t){var e={xAxisModel:null,yAxisModel:null};return y(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,iw).models[0];e[i]=o}),e}function _y(t,e,n){var i=ZD.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=Pd(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var p=iP(t.base);u=[iP(u[0])/p,iP(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=td(f),g=u[1]-f*a;else{var v=t.getTicks().length-1;v>a&&(f=td(f));var m=f*a;y=Math.ceil(u[1]/f)*f,g=Gi(y-m),0>g&&u[0]>=0?(g=0,y=Gi(m)):y>0&&u[1]<=0&&(y=0,g=-Gi(m))}var _=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*_,y+f*x),i.setInterval.call(t,f),(_||x)&&i.setNiceExtent.call(t,g+f,y-f)}function xy(t,e){return t.getCoordSysModel()===e}function wy(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)by(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&by(a[h])&&!i[r(a[h])]){o=a[h];break}o&&(i[r(o)]=!0)}}function by(t){return t&&"category"!==t.type&&"time"!==t.type&&Ed(t)}function Sy(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function My(t,e,n,i){var r,o,a=$i(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Qi(a-oP/2)?(o=l?"bottom":"top",r="center"):Qi(a-1.5*oP)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*oP>a&&a>oP/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Ty(t,e,n){if(!Hd(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],p=n[n.length-2];i===!1?(Cy(o),Cy(u)):Iy(o,a)&&(i?(Cy(a),Cy(h)):(Cy(o),Cy(u))),r===!1?(Cy(s),Cy(c)):Iy(l,s)&&(r?(Cy(l),Cy(p)):(Cy(s),Cy(c)))}}function Cy(t){t&&(t.ignore=!0)}function Iy(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Ne([]);return He(r,r,-t.rotation),n.applyTransform(Fe([],r,t.getLocalTransform())),i.applyTransform(Fe([],r,e.getLocalTransform())),n.intersect(i)}}function Dy(t){return"middle"===t||"center"===t}function ky(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e +}function Fy(t){var e=Vy(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Wy(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0?2:0),MP(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?Xc(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function Ky(t){var e=t.icon||"roundRect",n=pc(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function $y(t,e,n,i){tv(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Jy(t,e,n,i)}function Qy(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;r>i&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function Jy(t,e,n,i){Qy(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function tv(t,e,n,i){Qy(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function ev(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;na||M(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,p=u.dim,d="x"===c||"radius"===c?1:0,f=o.mapDimension(p),g=[];g[d]=o.get(f,a),g[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(v(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),i=[y.x+y.width/2,y.y+y.height/2]}return{point:i,el:s}}function Pv(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||zm(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Hv(r)&&(r=Av({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Hv(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||Hv(r),p={},d={},f={list:[],map:{}},g={showPointer:S(Rv,d),showTooltip:S(Ev,f)};y(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);y(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=Fv(u,t);if(!c&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointToData(r)),null!=o&&Lv(t,o,g,!1,p)}})});var v={};return y(h,function(t,e){var n=t.linkGroup;n&&!d[e]&&y(n.axesInfo,function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,Vv(e),Vv(t)))),v[t.key]=o}})}),y(v,function(t,e){Lv(h[e],t,g,!0,p)}),zv(d,h,p),Nv(f,r,t,a),Bv(h,a,n),p}}function Lv(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a=Ov(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&h(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}}function Ov(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return y(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,n);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var p=t-l,d=Math.abs(p);a>=d&&((a>d||p>=0&&0>s)&&(a=d,s=p,r=l,o.length=0),y(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function Rv(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Ev(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Gy(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function zv(t,e,n){var i=n.axesInfo=[];y(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function Nv(t,e,n,i){if(Hv(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function Bv(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=WP(i)[r]||{},a=WP(i)[r]={};y(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&y(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];y(o,function(t,e){!a[e]&&l.push(t)}),y(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Fv(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function Vv(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function Hv(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Wv(t){uP.registerAxisPointerClass("CartesianAxisPointer",zP),t.registerComponentModel(BP),t.registerComponentView(HP),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!M(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Oy(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Pv)}function Gv(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Uv(t){if(fm.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;i>n;n++)if(t[n]in e)return t[n]}function Xv(t,e){if(!t)return e;e=Al(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function Yv(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}function qv(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function jv(t,e,n){if(!C(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=zl(e);var o,a=qv(n),s=Math.max(1.5*Math.round(r),6),l="",u=qP+":";p(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var h=o*Math.PI/180,c=s+r,d=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),f=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-c)/2))/100;l+=";"+a+":-"+f+"px";var g=e+" solid "+r+"px;",y=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'
'}function Zv(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=fm.transformSupported?","+qP+i:",left"+i+",top"+i),YP+":"+r}function Kv(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!fm.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=fm.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+qP+":"+a+";":[["top",0],["left",0],[UP,a]]}function $v(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),y(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function Qv(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=Ch(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push(Zv(r,n)),o&&i.push("background-color:"+o),y(["width","color","radius"],function(e){var n="border-"+e,r=Al(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push($v(h)),null!=c&&i.push("padding:"+RM(c).join("px ")+"px"),i.join(";")+";"}function Jv(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&we(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function tm(t){return Math.max(0,t)}function em(t){var e=tm(t.shadowBlur||0),n=tm(t.shadowOffsetX||0),i=tm(t.shadowOffsetY||0);return{left:tm(e-n),right:tm(e+n),top:tm(e-i),bottom:tm(e+i)}}function nm(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function im(t,e,n){var i,r=e.ecModel;n?(i=new fM(n,r,r),i=new fM(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof fM&&(a=a.get("tooltip",!0)),C(a)&&(a={formatter:a}),a&&(i=new fM(a,i,r)))}return i}function rm(t,e){return t.dispatchAction||zm(e.dispatchAction,e)}function om(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function am(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function sm(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function lm(t){return"center"===t||"middle"===t}function um(t,e,n){var i=Or(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Rr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse(function(e){var n=Tb(e).tooltipConfig;return n&&n.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function hm(t){qd(Wv),t.registerComponentModel(GP),t.registerComponentView(QP),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$)}var cm=function(t,e){return(cm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},pm=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),dm=function(){function t(){this.browser=new pm,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}return t}(),fm=new dm;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(fm.wxa=!0,fm.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?fm.worker=!0:"undefined"==typeof navigator?(fm.node=!0,fm.svgSupported=!0):n(navigator.userAgent,fm);var gm=12,ym="sans-serif",vm=gm+"px "+ym,mm=20,_m=100,xm="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N",wm=i(xm),bm={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var r=bm.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==i&&(e=t.font=i||vm),t.measureText(n);n=n||"",i=i||vm;var o=/^([0-9]*?)px$/.exec(i),a=+(o&&o[1])||gm,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;lr;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;ns;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;nl;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),Zm=Math.log(2),Km="___zrEVENTSAVED",$m=[],Qm=/([&<>"'])/g,Jm={"&":"&","<":"<",">":">",'"':""","'":"'"},t_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,e_=[],n_=fm.browser.firefox&&+fm.browser.version.split(".")[0]<39,i_=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},r_=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=Ie(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in o_)if(o_.hasOwnProperty(e)){var n=o_[e](this._track,t);if(n)return n}},t}(),o_={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Re(i)/Re(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Ee(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},a_=(Object.freeze||Object)({create:ze,identity:Ne,copy:Be,mul:Fe,translate:Ve,rotate:He,scale:We,invert:Ge,clone:Ue}),s_=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),l_=Math.min,u_=Math.max,h_=new s_,c_=new s_,p_=new s_,d_=new s_,f_=new s_,g_=new s_,y_=function(){function t(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=l_(t.x,this.x),n=l_(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?u_(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?u_(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=ze();return Ve(r,r,[-e.x,-e.y]),We(r,r,[n,i]),Ve(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(n){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,y),x=Math.min(v,m);l>o||r>u?_>f&&(f=_,y>g?s_.set(g_,-g,0):s_.set(g_,y,0)):d>_&&(d=_,y>g?s_.set(f_,g,0):s_.set(f_,-y,0)),h>s||a>c?x>f&&(f=x,m>v?s_.set(g_,0,-v):s_.set(g_,0,m)):d>_&&(d=_,m>v?s_.set(f_,0,v):s_.set(f_,0,-m))}return n&&s_.copy(n,p?f_:g_),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i)return void(e!==n&&t.copy(e,n));if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}h_.x=p_.x=n.x,h_.y=d_.y=n.y,c_.x=d_.x=n.x+n.width,c_.y=p_.y=n.y+n.height,h_.transform(i),d_.transform(i),c_.transform(i),p_.transform(i),e.x=l_(h_.x,c_.x,p_.x,d_.x),e.y=l_(h_.y,c_.y,p_.y,d_.y);var l=u_(h_.x,c_.x,p_.x,d_.x),u=u_(h_.y,c_.y,p_.y,d_.y);e.width=l-e.x,e.height=u-e.y},t}(),v_="silent",m_=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(jm),__=function(){function t(t,e){this.x=t,this.y=e}return t}(),x_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],w_=new y_(0,0,0,0),b_=function(t){function n(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new __(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new m_,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new qm(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(y(x_,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Ze(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new __(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t) +},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new __(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,o=Xe(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new __(t,e);if(je(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new y_(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(w_.copy(h.getBoundingRect()),h.transform&&w_.applyTransform(h.transform),w_.intersect(l)&&o.push(h))}if(o.length)for(var c=4,p=Math.PI/12,d=2*Math.PI,f=0;s>f;f+=c)for(var g=0;d>g;g+=p){var y=t+f*Math.cos(g),v=e+f*Math.sin(g);if(je(o,r,y,v,n),r.target)return r}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new r_);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new __;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(jm);y(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){b_.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Ze(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Gm(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var S_,M_=32,T_=7,C_=1,I_=2,D_=4,k_=!1,A_=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=an}return t.prototype.traverse=function(t,e){for(var n=0;ni;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,rn(n,an)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s0&&(u.__clipPaths=[]),isNaN(u.z)&&(on(),u.z=0),isNaN(u.z2)&&(on(),u.z2=0),isNaN(u.zlevel)&&(on(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var i=p(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();S_=fm.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var P_=S_,L_={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-L_.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*L_.bounceIn(2*t):.5*L_.bounceOut(2*t-1)+.5}},O_=Math.pow,R_=Math.sqrt,E_=1e-8,z_=1e-4,N_=R_(3),B_=1/3,F_=Q(),V_=Q(),H_=Q(),W_=/cubic-bezier\(([0-9,\.e ]+)\)/,G_=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||$,this.ondestroy=t.ondestroy||$,this.onrestart=t.onrestart||$,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;0>r&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=T(t)?t:L_[t]||Sn(t)},t}(),U_=function(){function t(t){this.value=t}return t}(),X_=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new U_(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Y_=function(){function t(t){this._list=new X_,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new U_(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),q_={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},j_=new Y_(20),Z_=null,K_=Fn,$_=Vn,Q_=(Object.freeze||Object)({parse:Rn,lift:Nn,toHex:Bn,fastLerp:Fn,fastMapToColor:K_,lerp:Vn,mapToColor:$_,modifyHSL:Hn,modifyAlpha:Wn,stringify:Gn,lum:Un,random:Xn}),J_=(function(){return fm.hasGlobalWindow&&T(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(){return null}}(),Array.prototype.slice),tx=0,ex=1,nx=2,ix=3,rx=4,ox=5,ax=6,sx=[0,0,0,0],lx=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=ax,s=e;if(g(e)){var l=ii(e);a=l,(1===l&&!D(e[0])||2===l&&!D(e[0][0]))&&(o=!0)}else if(D(e)&&!z(e))a=tx;else if(C(e))if(isNaN(+e)){var u=Rn(e);u&&(s=u,a=ix)}else a=tx;else if(O(e)){var c=h({},s);c.colorStops=v(e.colorStops,function(t){return{offset:t.offset,color:Rn(t.color)}}),Yn(e)?a=rx:qn(e)&&(a=ox),s=c}0===r?this.valType=a:(a!==this.valType||a===ax)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return n&&(p.easing=n,p.easingFunc=T(n)?n:L_[n]||Sn(n)),i.push(p),p},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=oi(i),l=ri(i),u=0;r>u;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==r-1?ti(c,p,i):l&&Jn(c.colorStops,p.colorStops))}if(!a&&i!==ox&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,u=0;r>u;u++)i===tx?n[u].additiveValue=n[u].value-d:i===ix?n[u].additiveValue=$n([],n[u].value,d,-1):oi(i)&&(n[u].additiveValue=i===ex?$n([],n[u].value,d,-1):Qn([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=s===ix,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(0>e)n=0;else if(e=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;u>n&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var g=r.percent-i.percent,y=0===g?1:d((e-i.percent)/g,1);r.easingFunc&&(y=r.easingFunc(y));var m=o?this._additiveValue:c?sx:t[h];if(!oi(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>y?i.rawValue:r.rawValue;else if(oi(s))s===ex?Zn(m,i[a],r[a],y):Kn(m,i[a],r[a],y);else if(ri(s)){var _=i[a],x=r[a],w=s===rx;t[h]={type:w?"linear":"radial",x:jn(_.x,x.x,y),y:jn(_.y,x.y,y),colorStops:v(_.colorStops,function(t,e){var n=x.colorStops[e];return{offset:jn(t.offset,n.offset,y),color:ni(Zn([],t.color,n.color,y))}}),global:x.global},w?(t[h].x2=jn(_.x2,x.x2,y),t[h].y2=jn(_.y2,x.y2,y)):t[h].r=jn(_.r,x.r,y)}else if(c)Zn(m,i[a],r[a],y),o||(t[h]=ni(m));else{var b=jn(i[a],r[a],y);o?this._additiveValue=b:t[h]=b}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===tx?t[n]=t[n]+i:e===ix?(Rn(t[n],sx),$n(sx,sx,i,1),t[n]=ni(sx)):e===ex?$n(t[n],t[n],i,1):e===nx&&Qn(t[n],t[n],i,1)},t}(),ux=function(){function t(t,e,n,i){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?void a("Can' use additive animation on looped animation."):(this._additiveAnimators=i,void(this._allowDiscrete=n))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,w(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,ei(l),i),this._trackKeys.push(a)}s.addKeyframe(t,ei(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),hx=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=ai()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(P_(t),!e._paused&&e.update())}var e=this;this._running=!0,P_(t)},n.prototype.start=function(){this._running||(this._time=ai(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=ai(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=ai()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new ux(t,e.loop);return this.addAnimator(n),n},n}(jm),cx=300,px=fm.domSupported,dx=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=v(t,function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:i}}(),fx={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gx=!1,yx=function(){function t(t,e){this.stopPropagation=$,this.stopImmediatePropagation=$,this.preventDefault=$,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),vx={mousedown:function(t){t=Ae(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ae(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Ae(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ae(this.dom,t);var e=t.toElement||t.relatedTarget;ci(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){gx=!0,t=Ae(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){gx||(t=Ae(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ae(this.dom,t),ui(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),vx.mousemove.call(this,t),vx.mousedown.call(this,t)},touchmove:function(t){t=Ae(this.dom,t),ui(t),this.handler.processGesture(t,"change"),vx.mousemove.call(this,t)},touchend:function(t){t=Ae(this.dom,t),ui(t),this.handler.processGesture(t,"end"),vx.mouseup.call(this,t),+new Date-+this.__lastTouchMoment1e-10&&Ox(t[3]-1)>1e-10?Math.sqrt(Ox(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){vi(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&He(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Ex=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],zx={},Nx="__zr_normal__",Bx=Ex.concat(["ignore"]),Fx=m(Ex,function(t,e){return t[e]=!0,t},{ignore:!1}),Vx={},Hx=new y_(0,0,0,0),Wx=function(){function t(t){this.id=o(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=Hx;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Vx,n,u):Ti(Vx,n,u),r.x=Vx.x,r.y=Vx.y,o=Vx.align,a=Vx.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=Mi(h[0],u.width),p=Mi(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,(null==y||"auto"===y)&&(y=this.getInsideTextFill()),(null==v||"auto"===v)&&(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,(null==y||"auto"===y)&&(y=this.getOutsideFill()),(null==v||"auto"===v)&&(v=this.getOutsideStroke(y),m=!0)),y=y||"#000",(y!==g.fill||v!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=C_,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cx:Tx},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&Rn(t);e||(e=[255,255,255,1]);for(var n=e[3],i=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*n+(i?0:255)*(1-n);return e[3]=1,Gn(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},h(this.extra,e)):this[t]=e +},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(k(t))for(var n=t,i=w(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Nx,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Nx,o=this.hasState();if(o||!r){var s=this.currentStates,l=this.stateTransition;if(!(p(s,t)>=0)||!e&&1!==s.length){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!r)return void a("State "+t+" not exists.");r||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,e,n,h),d&&d.useState(t,e,n,h),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~C_),u}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~C_)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=p(i,t),o=p(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;i>o;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Ci(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Ci(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Ci(this,e,n,i),o=0;o=0&&(n.splice(i,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=p(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=p(n,t);return 0>i?this:(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0&&(this._ux=Yw(n/Sx/t)||0,this._uy=Yw(n/Sx/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ew.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Yw(t-this._xi),i=Yw(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ew.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Ew.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ew.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Kw[0]=i,Kw[1]=r,vo(Kw,o),i=Kw[0],r=Kw[1];var a=r-i;return this.addData(Ew.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Uw(r)*n+t,this._yi=Xw(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ew.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ew.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Zw||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();Zw&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;at.length&&(this._expandData(),t=this.data);for(var e=0;e0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Bw[0]=Bw[1]=Vw[0]=Vw[1]=Number.MAX_VALUE,Fw[0]=Fw[1]=Hw[0]=Hw[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tc;){var p=t[c++],d=1===c;d&&(r=t[c],o=t[c+1],a=r,s=o);var f=-1;switch(p){case Ew.M:r=a=t[c++],o=s=t[c++];break;case Ew.L:var g=t[c++],y=t[c++],v=g-r,m=y-o;(Yw(v)>n||Yw(m)>i||c===e-1)&&(f=Math.sqrt(v*v+m*m),r=g,o=y);break;case Ew.C:var _=t[c++],x=t[c++],g=t[c++],y=t[c++],w=t[c++],b=t[c++];f=gn(r,o,_,x,g,y,w,b,10),r=w,o=b;break;case Ew.Q:var _=t[c++],x=t[c++],g=t[c++],y=t[c++];f=bn(r,o,_,x,g,y,10),r=g,o=y;break;case Ew.A:var S=t[c++],M=t[c++],T=t[c++],C=t[c++],I=t[c++],D=t[c++],k=D+I;c+=1;{!t[c++]}d&&(a=Uw(I)*T+S,s=Xw(I)*C+M),f=Gw(T,C)*Ww(jw,Math.abs(D)),r=Uw(k)*T+S,o=Xw(k)*C+M;break;case Ew.R:a=r=t[c++],s=o=t[c++];var A=t[c++],P=t[c++];f=2*A+2*P;break;case Ew.Z:var v=a-r,m=s-o;f=Math.sqrt(v*v+m*m),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d=this.data,f=this._ux,g=this._uy,y=this._len,v=1>e,m=0,_=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var w=0;y>w;){var b=d[w++],S=1===w;switch(S&&(r=d[w],o=d[w+1],n=r,i=o),b!==Ew.L&&x>0&&(t.lineTo(c,p),x=0),b){case Ew.M:n=r=d[w++],i=o=d[w++],t.moveTo(r,o);break;case Ew.L:a=d[w++],s=d[w++];var M=Yw(a-r),T=Yw(s-o);if(M>f||T>g){if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=C}t.lineTo(a,s),r=a,o=s,x=0}else{var D=M*M+T*T;D>x&&(c=a,p=s,x=D)}break;case Ew.C:var k=d[w++],A=d[w++],P=d[w++],L=d[w++],O=d[w++],R=d[w++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;dn(r,k,P,O,I,zw),dn(o,A,L,R,I,Nw),t.bezierCurveTo(zw[1],Nw[1],zw[2],Nw[2],zw[3],Nw[3]);break t}m+=C}t.bezierCurveTo(k,A,P,L,O,R),r=O,o=R;break;case Ew.Q:var k=d[w++],A=d[w++],P=d[w++],L=d[w++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;xn(r,k,P,I,zw),xn(o,A,L,I,Nw),t.quadraticCurveTo(zw[1],Nw[1],zw[2],Nw[2]);break t}m+=C}t.quadraticCurveTo(k,A,P,L),r=P,o=L;break;case Ew.A:var E=d[w++],z=d[w++],N=d[w++],B=d[w++],F=d[w++],V=d[w++],H=d[w++],W=!d[w++],G=N>B?N:B,U=Yw(N-B)>.001,X=F+V,Y=!1;if(v){var C=l[_++];m+C>h&&(X=F+V*(h-m)/C,Y=!0),m+=C}if(U&&t.ellipse?t.ellipse(E,z,N,B,H,F,X,W):t.arc(E,z,G,F,X,W),Y)break t;S&&(n=Uw(F)*N+E,i=Xw(F)*B+z),r=Uw(X)*N+E,o=Xw(X)*B+z;break;case Ew.R:n=r=d[w],i=o=d[w+1],a=d[w++],s=d[w++];var q=d[w++],j=d[w++];if(v){var C=l[_++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+Ww(Z,q),s),Z-=q,Z>0&&t.lineTo(a+q,s+Ww(Z,j)),Z-=j,Z>0&&t.lineTo(a+Gw(q-Z,0),s+j),Z-=q,Z>0&&t.lineTo(a,s+Gw(j-Z,0));break t}m+=C}t.rect(a,s,q,j);break;case Ew.Z:if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=C}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Ew,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Qw=2*Math.PI,Jw=2*Math.PI,tb=$w.CMD,eb=2*Math.PI,nb=1e-4,ib=[-1,-1,-1],rb=[-1,-1],ob=c({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},mw),ab={style:c({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},_w.style)},sb=Ex.concat(["invisible","culling","z","z2","zlevel","parent"]),lb=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Tx:e>.2?Ix:Cx}if(t)return Cx}return Tx},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(C(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Un(t,0)0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&D_)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Po(o,a/s,t,e)))return!0}if(this.hasFill())return Ao(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=D_,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:h(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&D_)},n.prototype.createStyle=function(t){return j(ob,t) +},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=h({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=h({},i.shape),h(s,n.shape)):(s=h({},r?this.shape:i.shape),h(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=h({},this.shape);for(var u={},c=w(s),p=0;p0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createStyle=function(t){return j(ub,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=xi(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},n.initDefaultProps=function(){var t=n.prototype;t.dirtyRectTolerance=10}(),n}(bw);hb.prototype.type="tspan";var cb=c({x:0,y:0},mw),pb={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},_w.style)},db=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return j(cb,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=Lo(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return pb},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new y_(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(bw);db.prototype.type="image";var fb=Math.round,gb=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),yb={},vb=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new gb},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Eo(yb,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?Oo(t,e):t.rect(n,i,r,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(lb);vb.prototype.type="rect";var mb={fill:"#000"},_b=2,xb={style:c({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},_w.style)},wb=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=mb,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=r.calculatedLineHeight,D=0;DM&&(D=x[M],!D.align||"left"===D.align);)this._placeToken(D,t,b,g,T,"left",v),S-=D.width,T+=D.width,M++;for(;I>=0&&(D=x[I],"right"===D.align);)this._placeToken(D,t,b,g,C,"right",v),S-=D.width,C-=D.width,I--;for(T+=(i-(T-f)-(y-C)-S)/2;I>=M;)D=x[M],this._placeToken(D,t,b,g,T+D.width/2,"center",v),T+=D.width,M++;g+=b}},n.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2);var h=!t.isLineHolder&&Yo(s);h&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,p=t.textPadding;p&&(r=Uo(r,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(hb),f=d.createStyle();d.useStyle(f);var g=this._defaultStyle,y=!1,v=0,m=Go("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,g.fill)),_=Wo("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||g.autoStroke&&!y?null:(v=_b,g.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,x&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||vm,f.opacity=F(s.opacity,e.opacity,1),Bo(f,s),_&&(f.lineWidth=F(s.lineWidth,e.lineWidth,v),f.lineDash=B(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=_),m&&(f.fill=m);var w=t.contentWidth,b=t.contentHeight;d.setBoundingRect(new y_(wi(f.x,w,f.textAlign),bi(f.y,b,f.textBaseline),w,b))},n.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,d=t.borderRadius,f=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(vb),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=d,a.dirtyShape()}if(p){var y=a.style;y.fill=l||null,y.fillOpacity=B(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(db),s.onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&h){var y=a.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=B(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=F(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";return Fo(t)&&(e=[t.fontStyle,t.fontWeight,No(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&G(e)||t.textFont||t.font},n}(bw),bb={left:!0,right:1,center:1},Sb={top:1,bottom:1,middle:1},Mb=["fontStyle","fontWeight","fontSize","fontFamily"],Tb=Pr(),Cb=function(t,e,n,i){if(i){var r=Tb(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,"group"===i.type&&i.traverse(function(i){var r=Tb(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e})}},Ib=1,Db={},kb=Pr(),Ab=Pr(),Pb=0,Lb=1,Ob=2,Rb=["emphasis","blur","select"],Eb=["normal","emphasis","blur","select"],zb=10,Nb=9,Bb="highlight",Fb="downplay",Vb="select",Hb="unselect",Wb="toggleSelect",Gb=new Y_(100),Ub=["emphasis","blur","select"],Xb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Yb=$w.CMD,qb=[[],[],[]],jb=Math.sqrt,Zb=Math.atan2,Kb=Math.sqrt,$b=Math.sin,Qb=Math.cos,Jb=Math.PI,tS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,eS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,nS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(lb),iS=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),rS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new iS},n.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n}(lb);rS.prototype.type="circle";var oS=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),aS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new oS},n.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},n}(lb);aS.prototype.type="ellipse";var sS=Math.PI,lS=2*sS,uS=Math.sin,hS=Math.cos,cS=Math.acos,pS=Math.atan2,dS=Math.abs,fS=Math.sqrt,gS=Math.max,yS=Math.min,vS=1e-4,mS=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),_S=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new mS},n.prototype.buildPath=function(t,e){es(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(lb);_S.prototype.type="sector";var xS=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),wS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new xS},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},n}(lb);wS.prototype.type="ring";var bS=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),SS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new bS},n.prototype.buildPath=function(t,e){is(t,e,!0)},n}(lb);SS.prototype.type="polygon";var MS=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),TS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new MS},n.prototype.buildPath=function(t,e){is(t,e,!1)},n}(lb);TS.prototype.type="polyline";var CS={},IS=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),DS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new IS},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Ro(CS,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),1>s&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(lb);DS.prototype.type="line";var kS=[],AS=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),PS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new AS},n.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,i),null==l||null==u?(1>h&&(xn(n,a,r,h,kS),a=kS[1],r=kS[2],xn(i,s,o,h,kS),s=kS[1],o=kS[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(dn(n,a,l,r,h,kS),a=kS[1],l=kS[2],r=kS[3],dn(i,s,u,o,h,kS),s=kS[1],u=kS[2],o=kS[3]),t.bezierCurveTo(a,s,l,u,r,o)))},n.prototype.pointAt=function(t){return rs(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=rs(this.shape,t,!0);return ce(e,e)},n}(lb);PS.prototype.type="bezier-curve";var LS=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),OS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new LS},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},n}(lb);OS.prototype.type="arc";var RS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(n,t),n.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;nn;n++)this._corners[n]=new s_;for(var n=0;2>n;n++)this._axes[n]=new s_;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;4>l;l++)n[l].transform(e);s_.sub(i[0],n[1],n[0]),s_.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;2>l;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return VS.set(1/0,1/0),HS.set(0,0),!this._intersectCheckOneSide(this,t,VS,HS,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(t,this,VS,HS,i,-1)&&(n=!1,i)?n:(i||s_.copy(e,n?VS:HS),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,BS),this._getProjMinMaxOnAxis(s,e._corners,FS),BS[1]FS[1]){if(a=!1,r)return a;var u=Math.abs(FS[0]-BS[1]),h=Math.abs(BS[0]-FS[1]);Math.min(u,h)>i.len()&&(h>u?s_.scale(i,l,-u*o):s_.scale(i,l,h*o))}else if(n){var u=Math.abs(FS[0]-BS[1]),h=Math.abs(BS[0]-FS[1]);Math.min(u,h)u?s_.scale(n,l,u*o):s_.scale(n,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l-1?mM:xM}():xM;nl(_M,yM),nl(mM,vM);var MM=1e3,TM=60*MM,CM=60*TM,IM=24*CM,DM=365*IM,kM={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},AM="{yyyy}-{MM}-{dd}",PM={year:"{yyyy}",month:"{yyyy}-{MM}",day:AM,hour:AM+" "+kM.hour,minute:AM+" "+kM.minute,second:AM+" "+kM.second,millisecond:kM.none},LM=["year","month","day","hour","minute","second","millisecond"],OM=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],RM=H,EM=["a","b","c","d","e","f","g"],zM=function(t,e){return"{"+t+(null==e?"":e)+"}"},NM=y,BM=["left","right","top","bottom","width","height"],FM=[["width","left","right"],["height","top","bottom"]],VM=Bl,HM=(S(Bl,"vertical"),S(Bl,"horizontal"),Pr()),WM=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Qs("ec_cpt_model"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Vl(this),i=n?Wl(t):{},r=e.getTheme();l(t,r.get(this.mainType)),l(t,this.getDefaultOption()),n&&Hl(t,i,n)},n.prototype.mergeOption=function(t){l(this.option,t,!0);var e=Vl(this);e&&Hl(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!Hr(t))return t.defaultOption;var e=HM(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=l(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Rr(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(fM);Ur(WM,fM),jr(WM),Js(WM),tl(WM,Ul);var GM="";"undefined"!=typeof navigator&&(GM=navigator.platform||"");var UM,XM,YM="rgba(0, 0, 0, 0.2)",qM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:YM,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:YM,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:YM,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:YM,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:YM,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:YM,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:GM.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},jM=Y(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ZM="original",KM="arrayRows",$M="objectRows",QM="keyedColumns",JM="typedArray",tT="unknown",eT="column",nT="row",iT={Must:1,Might:2,Not:3},rT=Pr(),oT=Y(),aT=Pr(),sT=(Pr(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=pr(this.get("color",!0)),r=this.get("colorLayer",!0); +return tu(this,aT,i,r,t,e,n)},t.prototype.clearColorPalette=function(){eu(this,aT)},t}()),lT="\x00_ec_inner",uT=1,hT=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new fM(i),this._locale=new fM(r),this._optionManager=o},n.prototype.setOption=function(t,e,n){var i=au(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},n.prototype.resetOption=function(t,e){return this._resetOption(t,au(e))},n.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):XM(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&y(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){function n(e){var n=Ql(this,e,pr(t[e])),a=r.get(e),s=a?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",l=yr(a,n,s);Dr(l,e,WM),i[e]=null,r.set(e,null),o.set(e,0);var u,p=[],d=[],f=0;y(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=WM.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=h({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),h(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(p.push(i.option),d.push(i),f++):(p.push(void 0),d.push(void 0))},this),i[e]=p,r.set(e,d),o.set(e,f),"series"===e&&UM(this)}var i=this.option,r=this._componentsMap,o=this._componentsCount,a=[],u=Y(),c=e&&e.replaceMergeMainTypeMap;Xl(this),y(t,function(t,e){null!=t&&(WM.hasClass(e)?e&&(a.push(e),u.set(e,!0)):i[e]=null==i[e]?s(t):l(i[e],t,!0))}),c&&c.each(function(t,e){WM.hasClass(e)&&!u.get(e)&&(a.push(e),u.set(e,!0))}),WM.topologicalTravel(a,WM.getAllClassMainTypes(),n,this),this._seriesIndices||UM(this)},n.prototype.getOption=function(){var t=s(this.option);return y(t,function(e,n){if(WM.hasClass(n)){for(var i=pr(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Ir(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[lT],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;ra;a++)lu(n[a].query,t,e)&&r.push(a);return!r.length&&i&&(r=[-1]),r.length&&!hu(r,this._currentMediaIndices)&&(o=v(r,function(t){return s(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,o},t}(),ST=y,MT=k,TT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],CT=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],IT=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],DT=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],kT=function(){function t(t){this.data=t.data||(t.sourceFormat===QM?{}:[]),this.sourceFormat=t.sourceFormat||tT,this.seriesLayoutBy=t.seriesLayoutBy||eT,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;no;o++)e[o]=n[r+o];return e},i=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;h>p;p++){var d=r[p*o+a];c[t+p]=d,l>d&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};e={},e[KM+"_"+eT]={pure:!0,appendData:t},e[KM+"_"+nT]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[$M]={pure:!0,appendData:t},e[QM]={pure:!0,appendData:function(t){var e=this._data;y(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},e[ZM]={appendData:t},e[JM]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},fT=e}(),t}(),PT=function(t,e,n,i){return t[i]},LT=(cT={},cT[KM+"_"+eT]=function(t,e,n,i){return t[i+e]},cT[KM+"_"+nT]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})}},t.prototype.getRawValue=function(t,e){return Xu(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),FT=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");var h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||d>p)){var f=this._progress;if(M(f))for(var g=0;gi?i++:null}function e(){var t=i%a*r+Math.ceil(i/a),e=i>=n?null:o>t?t:i;return i++,e}var n,i,r,o,a,s={reset:function(l,u,h,c){i=l,n=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),HT=(Y({number:function(t){return parseFloat(t)},time:function(t){return+Ji(t)},trim:function(t){return C(t)?G(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),WT=(function(){function t(t,e){if(!D(e)){var n="";hr(n)}this._opFn=HT[t],this._rvalFloat=or(e)}return t.prototype.evaluate=function(t){return D(t)?this._opFn(t,this._rvalFloat):this._opFn(or(t),this._rvalFloat)},t}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=D(t)?t:or(t),i=D(e)?e:or(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=C(t),s=C(e);a&&(n=s?t:0),s&&(i=a?e:0)}return i>n?this._resultLT:n>i?-this._resultLT:0},t}()),GT=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=or(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=or(t)===this._rvalFloat)}return this._isEQ?e:!e},t}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return ju(t,e)},t}()),UT=Y(),XT="undefined",YT=typeof Uint32Array===XT?Array:Uint32Array,qT=typeof Uint16Array===XT?Array:Uint16Array,jT=typeof Int32Array===XT?Array:Int32Array,ZT=typeof Float64Array===XT?Array:Float64Array,KT={"float":ZT,"int":jT,ordinal:Array,number:Array,time:ZT},$T=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=yT[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];Vu(i);this._dimensions=v(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new KT[e||"float"](this._rawCount),this._rawExtent[r]=oh(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=oh());for(var s=r[t],l=o;a>l;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),i>n&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=i[l];sh(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,d=0;r>d;d++){var u=i[d],f=yT.arrayRows.call(this,t[p]||h,u.property,p,d);n[d][c]=f;var g=o[d];fg[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=v(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=oh()),sh(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;e>p;p++){c=i.getItem(p,c);for(var d=0;a>d;d++){var f=r[d],g=this._dimValueGetter(c,l[d],p,d);f[p]=g;var y=s[d];gy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&er;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&ei;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n=i;){var o=(i+r)/2|0;if(e[o]t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),p=e-r[c],d=Math.abs(p);n>=d&&((a>d||d===a&&p>=0&&0>s)&&(a=d,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=rh(this._rawCount);t=new n(this.count());for(var r=0;rc;c++){var p=void 0,d=n.getRawIndex(c);if(0===s)p=e(c);else if(1===s){var f=h[u][d];p=e(f,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][d];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=d)}return i>l&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=w(t),r=i.length;if(!r)return this;var o=e.count(),a=rh(e._rawCount),s=new a(o),l=0,u=i[0],h=t[u][0],c=t[u][1],p=e._chunks,d=!1;if(!e._indices){var f=0;if(1===r){for(var g=p[i[0]],y=0;n>y;y++){var v=g[y];(v>=h&&c>=v||isNaN(v))&&(s[l++]=f),f++}d=!0}else if(2===r){for(var g=p[i[0]],m=p[i[1]],_=t[i[1]][0],x=t[i[1]][1],y=0;n>y;y++){var v=g[y],b=m[y];(v>=h&&c>=v||isNaN(v))&&(b>=_&&x>=b||isNaN(b))&&(s[l++]=f),f++}d=!0}}if(!d)if(1===r)for(var y=0;o>y;y++){var S=e.getRawIndex(y),v=p[i[0]][S];(v>=h&&c>=v||isNaN(v))&&(s[l++]=S)}else for(var y=0;o>y;y++){for(var M=!0,S=e.getRawIndex(y),T=0;r>T;T++){var C=i[T],v=p[C][S];(vt[C][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(y))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;uh;h++){for(var c=t.getRawIndex(h),p=0;o>p;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(var u=0;uy[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(rh(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));p[u++]=c;for(var d=1;l-1>d;d+=h){for(var f=Math.min(d+h,l-1),g=Math.min(d+2*h,l),y=(g+f)/2,v=0,m=f;g>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(v+=x)}v/=g-f;var w=d,b=Math.min(d+h,l),S=d-1,M=s[c];n=-1,r=w;for(var T=-1,C=0,m=w;b>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)?(C++,0>T&&(T=_)):(i=Math.abs((S-y)*(x-M)-(S-m)*(v-M)),i>n&&(n=i,r=_))}C>0&&b-w>C&&(p[u++]=Math.min(T,r),r=Math.max(T,r)),p[u++]=r,c=r}return p[u++]=this.getRawIndex(l-1),o._count=u,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=oh(),c=new(rh(this._rawCount))(Math.ceil(u/s)),p=0,d=0;u>d;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;s>f;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));l[v]=y,yh[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];n>s;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=oh();if(!e)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();i=n;for(var a=i[0],s=i[1],l=0;r>l;l++){var u=this.getRawIndex(l),h=e[u];a>h&&(a=h),h>s&&(s=h)}return i=[a,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;ri;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return ju(t[i],this._dimensions[i])}yT={arrayRows:t,objectRows:function(t,e,n,i){return ju(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return ju(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),QT=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(uh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=P(a)?JM:ZM,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=B(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=B(h.sourceHeader,c.sourceHeader),f=B(h.dimensions,c.dimensions),g=p!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||f;t=g?[Lu(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var y=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{var m=y.get("source",!0);t=[Lu(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(null!=i){var r="";1!==t.length&&hh(r)}var o,a=[],s=[];return y(t,function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||hh(n),a.push(e),s.push(t._getVersionSign())}),n?o=eh(n,a,{datasetIndex:e.componentIndex}):null!=i&&(o=[Ru(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;ethis.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=sT.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[kh(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[rC])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){k(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;a>l;l++){var u=e[l],h=kh(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||o===!0){var c=e[a-1],h=kh(t,c);r.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(c),i)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return WM.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(WM);f(oC,BT),f(oC,sT),Ur(oC,WM);var aC=function(){function t(){this.group=new Gx,this.uid=Qs("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Wr(aC),jr(aC);var sC=Pr(),lC=Bh(),uC=function(){function t(){this.group=new Gx,this.uid=Qs("viewChart"),this.renderTask=qu({plan:Hh,reset:Wh}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Vh(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Vh(r,i,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Fs(this.group,t)},t.markUpdateMethod=function(t,e){sC(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();Wr(uC,["dispose"]),jr(uC);var hC,cC={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},pC="\x00__throttleOriginMethod",dC="\x00__throttleRate",fC="\x00__throttleType",gC=Pr(),yC={itemStyle:Zr(cM,!0),lineStyle:Zr(lM,!0)},vC={lineStyle:"stroke",itemStyle:"fill"},mC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=Yh(t,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=qh(t,i),u=a[l],c=T(u)?u:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||p){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||T(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||T(a.stroke)?d:a.stroke}return n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c?(n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=h({},a);r[l]=c(i),e.setItemVisual(n,"style",r)}}):void 0}},_C=new fM,xC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Yh(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){_C.option=n[i];var a=r(_C),s=t.ensureUniqueItemVisual(e,"style");h(s,a),_C.option.decal&&(t.setItemVisual(e,"decal",_C.option.decal),_C.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},wC={performRawSeries:!0,overallReset:function(t){var e=Y();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),gC(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=gC(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=qh(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),h=n.getName(t)||t+"",c=n.count();u[s]=e.getColorFromPalette(h,o,c)}})}})}},bC=Math.PI,SC=function(){function t(t,e,n,i){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Y();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;y(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";W(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;y(t,function(t){if(!i.visualType||i.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,i.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(i,s)&&s.dirty();var l=a.getPerformArgs(s,i.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||qu({plan:Jh,reset:tc,count:nc}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):l?n.eachRawSeriesByType(l,r):u&&u(n,i).each(r)},t.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(p=!0,qu({reset:Kh,onDirty:Qh})));n.context={model:t,overallProgress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||qu({reset:Zh});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Y(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1,d="";W(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,r):h?h(n,i).each(r):(c=!1,y(n.getSeries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return T(t)&&(t={overallReset:t,seriesType:ic(t)}),t.uid=Qs("stageHandler"),e&&(t.visualType=e),t},t}(),MC=ec(0),TC={},CC={};rc(TC,hT),rc(CC,mT),TC.eachSeriesByType=TC.eachRawSeriesByType=function(t){hC=t},TC.eachComponent=function(t){"series"===t.mainType&&t.subType&&(hC=t.subType)};var IC=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],DC={color:IC,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],IC]},kC="#B9B8CE",AC="#100C2A",PC=function(){return{axisLine:{lineStyle:{color:kC}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},LC=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],OC={darkMode:!0,color:LC,backgroundColor:AC,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:kC}},textStyle:{color:kC},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:kC}},dataZoom:{borderColor:"#71708A",textStyle:{color:kC},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:kC}},timeline:{lineStyle:{color:kC},label:{color:kC},controlStyle:{color:kC,borderColor:kC}},calendar:{itemStyle:{color:AC},dayLabel:{color:kC},monthLabel:{color:kC},yearLabel:{color:kC}},timeAxis:PC(),logAxis:PC(),valueAxis:PC(),categoryAxis:PC(),line:{symbol:"circle"},graph:{color:LC},gauge:{title:{color:kC},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:kC},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};OC.categoryAxis.splitLine.show=!1;var RC=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(C(t)){var r=Fr(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};y(t,function(t,r){for(var s=!1,l=0;l0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,"mainType")&&n(l,a,"subType")&&n(l,a,"index","componentIndex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataIndex")&&n(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),EC=["symbol","symbolSize","symbolRotate","symbolOffset"],zC=EC.concat(["symbolKeepAspect"]),NC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){for(var i=t.getRawValue(n),r=t.getDataParams(n),a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this[DI]&&!this._disposed){var i,r,o;if(k(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[DI]=!0,!this._model||e){var a=new bT(this._api),s=this._theme,l=this._model=new hT;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},lD);var u={seriesTransition:o,optionChanged:!0};if(n)this[kI]={silent:i,updateParams:u},this[DI]=!1,this.getZr().wakeUp();else{try{BI(this),HI.update.call(this,null,u)}catch(h){throw this[kI]=null,this[DI]=!1,h}this._ssr||this._zr.flush(),this[kI]=null,this[DI]=!1,XI.call(this,i),YI.call(this,i)}}},n.prototype.setTheme=function(){},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||lI&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(fm.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return y(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;y(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return y(i,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(dD[n]){var a=o,l=o,u=-o,h=-o,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();y(pD,function(o){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(s(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),l=i(d.top,l),u=r(d.right,u),h=r(d.bottom,h),c.push({dom:p,left:d.left,top:d.top})}}),a*=p,l*=p,u*=p,h*=p;var d=u-a,f=h-l,g=bm.createCanvas(),v=Ei(g,{renderer:e?"svg":"canvas"});if(v.resize({width:d,height:f}),e){var m="";return y(c,function(t){var e=t.left-a,n=t.top-l;m+=''+t.dom+""}),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new vb({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),y(c,function(t){var e=new db({style:{x:t.left*p-a,y:t.top*p-l,image:t.dom}});v.add(e)}),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return WI(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return WI(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=Lr(i,t);return y(r,function(t,i){i.indexOf("Models")>=0&&y(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n}},n.prototype.getVisual=function(t,e){var n=this._model,i=Lr(n,t,{defaultMainType:"series"}),r=i.seriesModel,o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?oc(o,a,e):ac(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;y(rD,function(e){var n=function(n){var i,r=t.getModel(),o=n.target,a="globalout"===e;if(a?i={}:o&&hc(o,function(t){var e=Tb(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(i=h({},e.eventData),!0):void 0},!0),i){var s=i.componentType,l=i.componentIndex;("markLine"===s||"markPoint"===s||"markArea"===s)&&(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),y(aD,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),y(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),uc(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this.getDom();t&&Er(this.getDom(),yD,"");var e=this,n=e._api,i=e._model;y(e._componentsViews,function(t){t.dispose(i,n)}),y(e._chartsViews,function(t){t.dispose(i,n)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete pD[e.id]}},n.prototype.resize=function(t){if(!this[DI]&&!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[kI]&&(null==i&&(i=this[kI].silent),n=!0,this[kI]=null),this[DI]=!0;try{n&&BI(this),HI.update.call(this,{type:"resize",animation:h({duration:0},t&&t.animation)})}catch(r){throw this[DI]=!1,r}this[DI]=!1,XI.call(this,i),YI.call(this,i)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(k(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),cD[t])){var n=cD[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=h({},t);return e.type=aD[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(k(e)||(e={silent:!!e}),oD[t.type]&&this._model)){if(this[DI])return void this._pendingActions.push(t);var n=e.silent;UI.call(this,t,n);var i=e.flush;i?this._zr.flush():i!==!1&&fm.browser.weChat&&this._throttledZrFlush(),XI.call(this,n),YI.call(this,n)}},n.prototype.updateLabelLayout=function(){aI.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function n(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);rn(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),y(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}function i(t){for(var e=[],n=t.currentStates,i=0;ie.get("hoverLayerThreshold")&&!fm.node&&!fm.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}function a(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered(function(t){return s(t,n,i,-1/0),!0})}}function s(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(us(t))return;if(t instanceof lb&&Va(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&i(t)}})}BI=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),FI(t,!0),FI(t,!1),e.plan()},FI=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!n&&a[u];if(!h){var c=Fr(t.type),p=e?aC.getClass(c.main,c.sub):uC.getClass(c.sub);h=new p,h.init(i,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;h>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;oo;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=LD[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source,d=[p.seriesLayoutBy,p.startIndex,i].join("$$");return{dimensions:r,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;ea;a++){var s=a-i;this._nameList[a]=e[s],o&&CD(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===ZM;if(s&&!i.pure)for(var l=[],u=t;e>u;u++){var h=i.getItem(u,l);if(!this.hasItemOption&&gr(h)&&(this.hasItemOption=!0),h){var c=h.name;null==r[u]&&null!=c&&(r[u]=Tr(c,null));var p=h.id;null==o[u]&&null!=p&&(o[u]=Tr(p,null))}}if(this._shouldMakeIdFromName())for(var u=t;e>u;u++)CD(this,u);xD(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){RD(t)?h(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=bD(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return wD(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.get(i.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.getByRawIndex(i.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return M(t)?i.getValues(ED(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?BD:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){T(t)&&(n=e,e=t,t=[]);var i=n||this,r=ED(SD(t),this._getStoreDimIndex,this);this._store.each(r,i?zm(e,i):e)},t.prototype.filterSelf=function(t,e,n){T(t)&&(n=e,e=t,t=[]);var i=n||this,r=ED(SD(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?zm(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=w(t),r=[];return y(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){T(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=ED(SD(t),this._getStoreDimIndex,this),a=TD(this);return a._store=this._store.map(o,r?zm(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=ED(SD(t),this._getStoreDimIndex,this);this._store.modify(o,r?zm(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=TD(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=TD(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new fM(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new DD(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return wD(t,e)},function(t){return wD(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},RD(t)?h(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),M(r)?r=r.slice():RD(r)&&(r=h({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,RD(e)?h(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){RD(t)?h(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?h(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Cb(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){y(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ED(this.dimensions,this._getDimInfo,this),this.hostModel)),MD(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];T(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(V(arguments)))})},t.internalField=function(){xD=function(t){var e=t._invertedIndicesMap;y(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new zD(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),WD=function(){function t(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return t}(),GD={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",iw).models[0],o=t.getReferringComponents("yAxis",iw).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Hp(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Hp(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",iw).models[0];e.coordSysDims=["single"],n.set("single",r),Hp(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",iw).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Hp(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Hp(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();y(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Hp(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},UD=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();jr(UD);var XD=0,YD=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++XD}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&v(i,$p);return new t({categories:r,needCollect:!r,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!C(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=0/0),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},t}(),qD=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new YD({})),M(i)&&(i=new YD({categories:v(i,function(t){return k(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?0/0:C(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),rd(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),od(t,this._extent)},n.prototype.scale=function(t){return t=Math.round(ad(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;o>r;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t=0&&t=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type="ordinal",n}(UD);UD.registerClass(qD);var jD=Gi,ZD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return rd(t,this._extent)},n.prototype.normalize=function(t){return od(t,this._extent)},n.prototype.scale=function(t){return ad(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ed(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[];var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&o.push(t?{value:jD(l+e,r)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;rs;){var c=jD(a.value+(s+1)*h);c>i[0]&&cr&&(r=-r,i.reverse());var o=Jp(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=jD(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=jD(Math.ceil(e[1]/r)*r))},n.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n.type="interval",n}(UD);UD.registerClass(ZD);var KD="undefined"!=typeof Float32Array,$D=KD?Float32Array:Array,QD="__ec_stack_",JD=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]n&&(this._approxInterval=n);var o=ek.length,a=Math.min(JD(ek,this._approxInterval,0,o),o-1);this._interval=ek[a][1],this._minLevelUnit=ek[Math.max(a-1,0)][0] +},n.prototype.parse=function(t){return D(t)?t:+Ji(t)},n.prototype.contain=function(t){return rd(this.parse(t),this._extent)},n.prototype.normalize=function(t){return od(this.parse(t),this._extent)},n.prototype.scale=function(t){return ad(t,this._extent)},n.type="time",n}(ZD),ek=[["second",MM],["minute",TM],["hour",CM],["quarter-day",6*CM],["half-day",12*CM],["day",1.2*IM],["half-week",3.5*IM],["week",7*IM],["month",31*IM],["quarter",95*IM],["half-year",DM/2],["year",DM]];UD.registerClass(tk);var nk=UD.prototype,ik=ZD.prototype,rk=Gi,ok=Math.floor,ak=Math.ceil,sk=Math.pow,lk=Math.log,uk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ZD,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),r=ik.getTicks.call(this,t);return v(r,function(t){var e=t.value,r=Gi(sk(this.base,e));return r=e===n[0]&&this._fixMin?Dd(r,i[0]):r,r=e===n[1]&&this._fixMax?Dd(r,i[1]):r,{value:r}},this)},n.prototype.setExtent=function(t,e){var n=lk(this.base);t=lk(Math.max(0,t))/n,e=lk(Math.max(0,e))/n,ik.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=nk.getExtent.call(this);e[0]=sk(t,e[0]),e[1]=sk(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=Dd(e[0],i[0])),this._fixMax&&(e[1]=Dd(e[1],i[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=lk(t[0])/lk(e),t[1]=lk(t[1])/lk(e),nk.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=tr(n),r=t/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Gi(ak(e[0]/i)*i),Gi(ok(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},n.prototype.calcNiceExtent=function(t){ik.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=lk(t)/lk(this.base),rd(t,this._extent)},n.prototype.normalize=function(t){return t=lk(t)/lk(this.base),od(t,this._extent)},n.prototype.scale=function(t){return t=ad(t,this._extent),sk(this.base,t)},n.type="log",n}(UD),hk=uk.prototype;hk.getMinorTicks=ik.getMinorTicks,hk.getLabel=ik.getLabel,UD.registerClass(uk);var ck=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[dk[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=pk[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),pk={min:"_determinedMin",max:"_determinedMax"},dk={min:"_dataMin",max:"_dataMax"},fk=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),gk={isDimensionStacked:Up,enableDataStack:Wp,getStackedDimension:Xp},yk=(Object.freeze||Object)({createList:Gd,getLayoutRect:Fl,dataStack:gk,createScale:Ud,mixinAxisModelCommonMethods:Xd,getECData:Tb,createTextStyle:Yd,createDimensions:Ep,createSymbol:pc,enableHoverEmphasis:Aa}),vk=[],mk={registerPreprocessor:hp,registerProcessor:cp,registerPostInit:pp,registerPostUpdate:dp,registerUpdateLifecycle:fp,registerAction:gp,registerCoordinateSystem:yp,registerLayout:mp,registerVisual:_p,registerTransform:_D,registerLoading:wp,registerMap:Sp,registerImpl:Qc,PRIORITY:II,ComponentModel:WM,ComponentView:aC,SeriesModel:oC,ChartView:uC,registerComponentModel:function(t){WM.registerClass(t)},registerComponentView:function(t){aC.registerClass(t)},registerSeriesModel:function(t){oC.registerClass(t)},registerChartView:function(t){uC.registerClass(t)},registerSubTypeDefaulter:function(t,e){WM.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Fi(t,e)}},_k=1e-8,xk=[],wk=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),bk=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),Sk=function(){function t(t){this.type="linestring",this.points=t}return t}(),Mk=function(t){function n(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return e(n,t),n.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;in&&(t=r,n=a)}if(t)return Qd(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return y(r,function(e){"polygon"===e.type?$d(e.exterior,n,i,t):y(e.points,function(e){$d(e,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new y_(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},n.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Zd(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Zd(s[l],t[0],t[1]))continue t;return!0}}}return!1},n.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new y_(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u=n&&i>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return qi(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),mf(n,i.count())),Hi(t,Pk,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),mf(n,i.count()));var r=Hi(t,n,Pk,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=of(this,e),i=n.ticks,r=v(i,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),o=e.get("alignWithLabel");return _f(this,r,o,t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&100>e||(e=5);var n=this.scale.getMinorTicks(e),i=v(n,function(t){return v(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this);return i},t.prototype.getViewLabels=function(){return rf(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return ff(this)},t}(),Ok=2*Math.PI,Rk=$w.CMD,Ek=["top","right","bottom","left"],zk=[],Nk=new s_,Bk=new s_,Fk=new s_,Vk=new s_,Hk=new s_,Wk=[],Gk=new s_,Uk=["align","verticalAlign","width","height","fontSize"],Xk=new Rx,Yk=Pr(),qk=Pr(),jk=["x","y","rotation"],Zk=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();y_.applyTransform(u,u,l),l?Xk.setLocalTransform(l):(Xk.x=Xk.y=Xk.rotation=Xk.originX=Xk.originY=0,Xk.scaleX=Xk.scaleY=1);var h,c=i.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();y_.applyTransform(h,h,p)}var d=h&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Xk.x,y:Xk.y,scaleX:Xk.scaleX,scaleY:Xk.scaleY,rotation:Xk.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(T(i)||w(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=Tb(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)})},t.prototype.updateLayoutConfig=function(t){function e(t,e){return function(){Af(t,e)}}for(var n=t.getWidth(),i=t.getHeight(),r=0;r=0&&n.attr(r.oldLayoutSelect),p(h,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),ss(n,l,e,s)}else if(n.attr(l),!iM(n).valueAnimation){var c=B(n.style.opacity,1);n.style.opacity=0,ls(n,{style:{opacity:c}},e,s)}if(r.oldLayout=l,n.states.select){var d=r.oldLayoutSelect={};Uf(d,l,jk),Uf(d,n.states.select,jk)}if(n.states.emphasis){var f=r.oldLayoutEmphasis={};Uf(f,l,jk),Uf(f,n.states.emphasis,jk)}$s(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=qk(i),o=r.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),ss(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,ls(i,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),Kk=Pr();qd(Xf);var $k=function(t){function n(e,n,i){var r=t.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var o;i=i||Sx,"string"==typeof e?o=Yf(e,n,i):k(e)&&(o=e,e=o.id),r.id=e,r.dom=o;var a=o.style;return a&&(Z(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),r.painter=n,r.dpr=i,r}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Yf("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new y_(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;ug&&(i=g,r=u)}}if(s&&(o[r].union(t),n=!0),!n){var e=new y_(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new y_(0,0,0,0),u=this.__startIndex;uo;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Qk)),i||(i=n.ctx,i.save()),Gc(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(Qk)},t.prototype.paintOne=function(t,e){Wc(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;P_(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(Jk).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a15)break}}n.prevElClipPaths&&l.restore()};if(c)if(0===c.length)m=s.__endIndex;else for(var x=p.dpr,w=0;w0&&t>i[0]){for(s=0;r-1>s&&!(i[s]t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?tA:0),this._needsManuallyCompositing),h.__builtin__||a("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.__drawIndex=h.incremental?-1:o,e(o),s=h),i.__dirty&C_&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,y(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?l(n[t],e,!0):n[t]=e;for(var i=0;is;s++){var u=a[s];Gc(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),iA=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new QT(this),lh(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),lh(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type="dataset",n.defaultOption={seriesLayoutBy:eT},n}(WM),rA=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.type="dataset",n}(aC);qd([Zf,Kf]),qd(Xf);var oA={average:function(t){for(var e=0,n=0,i=0;ie&&(e=t[n]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;nt&&(t=e),t},n.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},n.type="series.bar",n.dependencies=["grid","polar"],n.defaultOption=el(sA.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),n}(sA),uA=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),hA=function(t){function n(e){var n=t.call(this,e)||this;return n.type="sausage",n}return e(n,t),n.prototype.getDefaultShape=function(){return new uA},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?c>u-l:c>l-u;p||(l=u-(h?c:-c));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!h)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!h),t.arc(g*s+n,y*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&t.arc(n,i,r,u,l,h)},n}(lb),cA=Math.max,pA=Math.min,dA=function(t){function n(){var e=t.call(this)||this;return e.type=n.type,e._isFirstFrame=!0,e}return e(n,t),n.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},n.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},n.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},n.prototype.eachRendered=function(t){Fs(this._progressiveEls||this.group,t)},n.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},n.prototype._renderNormal=function(t,e,n,i){function r(t){var e=_A[u.type](s,t),n=_g(u,o,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===u.type&&n.setShape("r",m),_[t]=n,n}var o,a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis(); +"cartesian2d"===u.type?o=h.isHorizontal():"polar"===u.type&&(o="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,p=ug(t,u);p&&this._enableRealtimeSort(p,s,n);var d=t.get("clip",!0)||p,f=lg(u,s);a.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("borderRadius")||0,_=[],x=this._backgroundEls,w=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;s.diff(l).add(function(e){var n=s.getItemModel(e),i=_A[u.type](s,e,n);if(y&&r(e),s.hasValue(e)&&mA[u.type](i)){var l=!1;d&&(l=fA[u.type](f,i));var v=gA[u.type](t,s,e,i,o,c,h.model,!1,g);p&&(v.forceLabelAnimation=!0),fg(v,s,e,n,i,t,o,"polar"===u.type),w?v.attr({shape:i}):p?hg(p,c,v,i,e,o,!1,!1):ls(v,{shape:i},t,e),s.setItemGraphicEl(e,v),a.add(v),v.ignore=l}}).update(function(e,n){var i=s.getItemModel(e),S=_A[u.type](s,e,i);if(y){var M=void 0;0===x.length?M=r(n):(M=x[n],M.useStyle(v.getItemStyle()),"cartesian2d"===u.type&&M.setShape("r",m),_[e]=M);var T=_A[u.type](s,e),C=mg(o,T,u);ss(M,{shape:C},c,e)}var I=l.getItemGraphicEl(n);if(!s.hasValue(e)||!mA[u.type](S))return void a.remove(I);var D=!1;if(d&&(D=fA[u.type](f,S),D&&a.remove(I)),I?ds(I):I=gA[u.type](t,s,e,S,o,c,h.model,!!I,g),p&&(I.forceLabelAnimation=!0),b){var k=I.getTextContent();if(k){var A=iM(k);null!=A.prevValue&&(A.prevValue=A.value)}}else fg(I,s,e,i,S,t,o,"polar"===u.type);w?I.attr({shape:S}):p?hg(p,c,I,S,e,o,!0,b):ss(I,{shape:S},t,e,null),s.setItemGraphicEl(e,I),I.ignore=D,a.add(I)}).remove(function(e){var n=l.getItemGraphicEl(e);n&&ps(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Gx);S.removeAll();for(var M=0;M<_.length;++M)S.add(_[M]);a.add(S),this._backgroundEls=_,this._data=s},n.prototype._renderLarge=function(t){this._clear(),yg(t,this.group),this._updateLargeClip(t)},n.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),yg(e,this.group,this._progressiveEls,!0)},n.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&tg(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},n.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},n.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),function(t,e){var r=n(e);r=null==r?0/0:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})}),i.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:v(i,function(t){return t.ordinalNumber})}},n.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;s>a;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=0>l?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},n.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o>=r;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},n.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},n.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},n.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},n.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},n.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},n.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){ps(e,t,Tb(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},n.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},n.type="bar",n}(uC),fA={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=cA(e.x,t.x),s=pA(e.x+e.width,r),l=cA(e.y,t.y),u=pA(e.y+e.height,o),h=a>s,c=l>u;return e.x=h&&a>r?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(0>n){var i=e.r;e.r=e.r0,e.r0=i}var r=pA(e.r,t.r),o=cA(e.r0,t.r0);e.r=r,e.r0=o;var a=0>r-o;if(0>n){var i=e.r;e.r=e.r0,e.r0=i}return a}},gA={cartesian2d:function(t,e,n,i,r,o){var a=new vb({shape:h({},i),z2:1});if(a.__dataIndex=n,a.name="item",o){var s=a.shape,l=r?"height":"width";s[l]=0}return a},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?hA:_S,h=new u({shape:i,z2:1});h.name="item";var c=dg(r);if(h.calculateTextPosition=rg(c,{isRoundCap:u===hA}),o){var p=h.shape,d=r?"r":"endAngle",f={};p[d]=r?0:i.startAngle,f[d]=i[d],(s?ss:ls)(h,{shape:f},o)}return h}},yA=["x","y","width","height"],vA=["cx","cy","r","startAngle","endAngle"],mA={cartesian2d:function(t){return!cg(t,yA)},polar:function(t){return!cg(t,vA)}},_A={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?gg(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}},xA=function(){function t(){}return t}(),wA=function(t){function n(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return e(n,t),n.prototype.getDefaultShape=function(){return new xA},n.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null},30,!1);qd(xg);var SA=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(){return jp(null,this,{useEncodeDefaulter:!0})},n.prototype.getLegendIcon=function(t){var e=new Gx,n=pc("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=pc(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},n.type="series.line",n.dependencies=["grid","polar"],n.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},n}(oC),MA=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=pc(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=wg,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){da(this.childAt(0))},n.prototype.downplay=function(){fa(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},n.prototype.updateData=function(t,e,i,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(p):ss(c,p,a,e),ds(c)}if(this._updateCommon(t,e,s,i,r),l){var c=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ls(c,p,a,e)}}u&&this.childAt(0).stopAnimation("leave")},n.prototype._updateCommon=function(t,e,n,i,r){function o(e){return I?t.getName(e):ng(t,e)}var a,s,l,u,c,p,d,f,g,y=this.childAt(0),v=t.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,l=i.selectItemStyle,u=i.focus,c=i.blurScope,d=i.labelStatesModels,f=i.hoverScale,g=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e),_=m.getModel("emphasis");a=_.getModel("itemStyle").getItemStyle(),l=m.getModel(["select","itemStyle"]).getItemStyle(),s=m.getModel(["blur","itemStyle"]).getItemStyle(),u=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=Gs(m),f=_.getShallow("scale"),g=m.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");y.attr("rotation",(x||0)*Math.PI/180||0);var w=fc(t.getItemVisual(e,"symbolOffset"),n);w&&(y.x=w[0],y.y=w[1]),g&&y.attr("cursor",g);var b=t.getItemVisual(e,"style"),S=b.fill;if(y instanceof db){var M=y.style;y.useStyle(h({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else y.useStyle(y.__isEmptyBrush?h({},b):b),y.style.decal=null,y.setColor(S,r&&r.symbolInnerColor),y.style.strokeNoScale=!0;var T=t.getItemVisual(e,"liftZ"),C=this._z2;null!=T?null==C&&(this._z2=y.z2,y.z2+=T):null!=C&&(y.z2=C,this._z2=null);var I=r&&r.useNameLabel;Ws(y,d,{labelFetcher:v,labelDataIndex:e,defaultText:o,inheritColor:S,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=y.ensureState("emphasis");D.style=a,y.ensureState("select").style=l,y.ensureState("blur").style=s;var k=null==f||f===!0?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*k,D.scaleY=this._sizeY*k,this.setSymbolScale(1),La(this,u,c,p)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Tb(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&hs(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();hs(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){return dc(t.getItemVisual(e,"symbolSize"))},n}(Gx),TA=function(){function t(t){this.group=new Gx,this._SymbolCtor=t||MA}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Sg(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Mg(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(bg(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(!bg(t,d,h,e))return void n.remove(p);var f=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),p=new o(t,h,s,l),p.setPosition(d);else{p.updateData(t,h,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):ss(p,y,i)}n.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Mg(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Sg(n);for(var r=t.start;r0&&Ag(n[2*r-2],n[2*r-1]);r--);for(;r>i&&Ag(n[2*i],n[2*i+1]);i++);}for(;r>i;)i+=Pg(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},n.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=$w.CMD,s="x"===e,l=[],u=0;u=v&&v>=0){var m=s?(p-i)*v+i:(c-n)*v+n;return s?[t,m]:[m,t]}n=c,i=p;break;case a.C:c=o[u++],p=o[u++],d=o[u++],f=o[u++],g=o[u++],y=o[u++];var _=s?cn(n,c,d,g,t,l):cn(i,p,f,y,t,l);if(_>0)for(var x=0;_>x;x++){var w=l[x];if(1>=w&&w>=0){var m=s?un(i,p,f,y,w):un(n,c,d,g,w);return s?[t,m]:[m,t]}}n=g,i=y}}},n}(lb),AA=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(DA),PA=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return e(n,t),n.prototype.getDefaultShape=function(){return new AA},n.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Ag(n[2*o-2],n[2*o-1]);o--);for(;o>r&&Ag(n[2*r],n[2*r+1]);r++);}for(;o>r;){var s=Pg(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Pg(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},n}(lb),LA=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new Gx,e=new TA;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],h="polar"===r.type,p=this._coordSys,d=this._symbolDraw,f=this._polyline,g=this._polygon,y=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),_=l.get("origin"),x=Tg(r,a,_),w=m&&zg(r,a,x),b=t.get("showSymbol"),S=t.get("connectNulls"),M=b&&!h&&Vg(t,a,r),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),T.setItemGraphicEl(e,null))}),b||d.remove(),o.add(y);var C,I=h?!1:t.get("step");r&&r.getArea&&t.get("clip",!0)&&(C=r.getArea(),null!=C.width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var D=Fg(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(f&&p.type===r.type&&I===this._step){m&&!g?g=this._newPolygon(u,w):g&&!m&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,zl(D));var k=y.getClipPath();if(k){var A=qg(this,r,!1,t);ls(k,{shape:A.shape},t)}else y.setClipPath(qg(this,r,!0,t));b&&d.updateData(a,{isIgnore:M,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Lg(this._stackedOnPoints,w)&&Lg(this._points,u)||(v?this._doUpdateAnimation(a,w,r,n,I,_,S):(I&&(u=Ng(u,r,I,S),w&&(w=Ng(w,r,I,S))),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:w})))}else b&&d.updateData(a,{isIgnore:M,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,C),I&&(u=Ng(u,r,I,S),w&&(w=Ng(w,r,I,S))),f=this._newPolyline(u),m?g=this._newPolygon(u,w):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,zl(D)),y.setClipPath(qg(this,r,!0,t));var P=t.getModel("emphasis"),L=P.get("focus"),O=P.get("blurScope"),R=P.get("disabled");if(f.useStyle(c(s.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Ra(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var E=f.getState("emphasis").style;E.lineWidth=+f.style.lineWidth+1}Tb(f).seriesIndex=t.seriesIndex,La(f,L,O,R);var z=Eg(t.get("smooth")),N=t.get("smoothMonotone");if(f.setShape({smooth:z,smoothMonotone:N,connectNulls:S}),g){var B=a.getCalculationInfo("stackedOnSeries"),F=0;g.useStyle(c(l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(F=Eg(B.get("smooth"))),g.setShape({smooth:z,stackedOnSmooth:F,smoothMonotone:N,connectNulls:S}),Ra(g,t,"areaStyle"),Tb(g).seriesIndex=t.seriesIndex,La(g,L,O,R)}var V=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=V)}),this._polyline.onHoverStateChange=V,this._data=a,this._coordSys=r,this._stackedOnPoints=w,this._points=u,this._step=I,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,f),g&&this.packEventData(t,g))},n.prototype.packEventData=function(t,e){Tb(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Ar(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;s=new MA(r,o),s.x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else uC.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Ar(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else uC.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;ra(this._polyline,t),e&&ra(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new kA({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new PA({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");T(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=T(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(p=g.startAngle,d=g.endAngle,f=-y[1]/180*Math.PI):(p=g.r0,d=g.r,f=y[0])}else{var v=n;i?(p=v.x,d=v.x+v.width,f=t.x):(p=v.y+v.height,d=v.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var _=T(u)?u(o):l*m+h,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(Yg(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new wb({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=Gg(a);l>=0&&(Ws(o,Gs(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?ig(r,n):ng(r,t)},enableTextSetter:!0},jg(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?d:0)*(y?-1:1),x=(g?0:-d)*(y?-1:1),w=g?"x":"y",b=Xg(u,m,w),S=b.range,M=S[1]-S[0],T=void 0;if(M>=1){if(M>1&&!c){var C=Ug(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),r&&(T=h.getRawValue(S[0]))}else{var C=l.getPointOn(m,w);C&&s.attr({x:C[0]+_,y:C[1]+x});var I=h.getRawValue(S[0]),D=h.getRawValue(S[1]);r&&(T=Br(n,p,I,D,b.t))}i.lastFrameIndex=S[0]}else{var k=1===t||i.lastFrameIndex>0?S[0]:0,C=Ug(u,k);r&&(T=h.getRawValue(k)),s.attr({x:C[0]+_,y:C[1]+x})}r&&iM(s).setLabelText(T)}},n.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=kg(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),c=h.current,p=h.stackedOnCurrent,d=h.next,f=h.stackedOnNext;if(r&&(c=Ng(h.current,n,r,a),p=Ng(h.stackedOnCurrent,n,r,a),d=Ng(h.next,n,r,a),f=Ng(h.stackedOnNext,n,r,a)),Rg(c,d)>3e3||l&&Rg(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),ss(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),ss(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;m0){for(var s=r.getItemLayout(0),l=1;isNaN(s&&s.startAngle)&&l=i.r0}},n.type="pie",n}(uC),BA=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),FA=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new BA(zm(this.getData,this),zm(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},n.prototype.getInitialData=function(){var t=sy(this,{coordDimensions:["value"],encodeDefaulter:S(ql,this)}),e=[];return t.each(t.mapDimension("value"),function(t){e.push(t)}),this.seats=Zi(e,t.hostModel.get("percentPrecision")),t},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},n.prototype._defaultLabelLine=function(t){dr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},n.type="series.pie",n.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},n}(oC);qd(uy);var VA=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),HA=function(t){function n(e){var n=t.call(this,e)||this;return n.type="pointer",n}return e(n,t),n.prototype.getDefaultShape=function(){return new VA},n.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},n}(lb),WA=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=hy(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},n.prototype.dispose=function(){},n.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap"),c=h?hA:_S,p=u.get("show"),d=u.getModel("lineStyle"),f=d.get("width"),g=[s,l];vo(g,!a),s=g[0],l=g[1];for(var y=l-s,v=s,m=0;p&&m=t)return i[0][1];var e;for(e=0;e=t&&(0===e?0:i[e-1][0])=P;P++){if(u=Math.cos(M),h=Math.sin(M),v.get("show")){var L=A?A+l:l,O=new DS({shape:{x1:u*(f-L)+p,y1:h*(f-L)+d,x2:u*(f-b-L)+p,y2:h*(f-b-L)+d},style:I,silent:!0});"auto"===I.stroke&&O.setStyle({stroke:i(P/x)}),c.add(O)}if(_.get("show")){var L=_.get("distance")+A,R=cy(Gi(P/x*(y-g)+g),_.get("formatter")),E=i(P/x),z=u*(f-b-L)+p,N=h*(f-b-L)+d,B=_.get("rotate"),F=0;"radial"===B?(F=-M+2*Math.PI,F>Math.PI/2&&(F+=Math.PI)):"tangential"===B?F=-M-Math.PI/2:D(B)&&(F=B*Math.PI/180),c.add(0===F?new wb({style:Us(_,{text:R,x:z,y:N,verticalAlign:-.8>h?"top":h>.8?"bottom":"middle",align:-.4>u?"left":u>.4?"right":"center"},{inheritColor:E}),silent:!0}):new wb({style:Us(_,{text:R,x:z,y:N,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:z,originY:N,rotation:F})) +}if(m.get("show")&&P!==x){var L=m.get("distance");L=L?L+l:l;for(var V=0;w>=V;V++){u=Math.cos(M),h=Math.sin(M);var H=new DS({shape:{x1:u*(f-L)+p,y1:h*(f-L)+d,x2:u*(f-S-L)+p,y2:h*(f-S-L)+d},silent:!0,style:k});"auto"===k.stroke&&H.setStyle({stroke:i((P+V/w)/x)}),c.add(H),M+=C}M-=C}else M+=T}},n.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){function u(e,n){var i,o=_.getItemModel(e),a=o.getModel("pointer"),s=Wi(a.get("width"),r.r),l=Wi(a.get("length"),r.r),u=t.get(["pointer","icon"]),h=a.get("offsetCenter"),c=Wi(h[0],r.r),p=Wi(h[1],r.r),d=a.get("keepAspect");return i=u?pc(u,c-s/2,p-l,s,l,null,d):new HA({shape:{angle:-Math.PI/2,width:s,r:l,x:c,y:p}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function c(t,e){var n=v.get("roundCap"),i=n?hA:_S,a=v.get("overlap"),u=a?v.get("width"):l/_.count(),h=a?r.r-u:r.r-(t+1)*u,c=a?r.r:r.r-t*u,p=new i({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:h,r:c}});return a&&(p.z2=b-_.get(x,t)%b),p}var p=this.group,d=this._data,f=this._progressEls,g=[],y=t.get(["pointer","show"]),v=t.getModel("progress"),m=v.get("show"),_=t.getData(),x=_.mapDimension("value"),w=+t.get("min"),b=+t.get("max"),S=[w,b],M=[o,a];(m||y)&&(_.diff(d).add(function(e){var n=_.get(x,e);if(y){var i=u(e,o);ls(i,{rotation:-((isNaN(+n)?M[0]:Hi(n,S,M,!0))+Math.PI/2)},t),p.add(i),_.setItemGraphicEl(e,i)}if(m){var r=c(e,o),a=v.get("clip");ls(r,{shape:{endAngle:Hi(n,S,M,a)}},t),p.add(r),Cb(t.seriesIndex,_.dataType,e,r),g[e]=r}}).update(function(e,n){var i=_.get(x,e);if(y){var r=d.getItemGraphicEl(n),a=r?r.rotation:o,s=u(e,a);s.rotation=a,ss(s,{rotation:-((isNaN(+i)?M[0]:Hi(i,S,M,!0))+Math.PI/2)},t),p.add(s),_.setItemGraphicEl(e,s)}if(m){var l=f[n],h=l?l.shape.endAngle:o,w=c(e,h),b=v.get("clip");ss(w,{shape:{endAngle:Hi(i,S,M,b)}},t),p.add(w),Cb(t.seriesIndex,_.dataType,e,w),g[e]=w}}).execute(),_.each(function(t){var e=_.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(y){var s=_.getItemGraphicEl(t),l=_.getItemVisual(t,"style"),u=l.fill;if(s instanceof db){var c=s.style;s.useStyle(h({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Hi(_.get(x,t),S,[0,1],!0))),s.z2EmphasisLift=0,Ra(s,e),La(s,r,o,a)}if(m){var p=g[t];p.useStyle(_.getItemVisual(t,"style")),p.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),p.z2EmphasisLift=0,Ra(p,e),La(p,r,o,a)}}),this._progressEls=g)},n.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=pc(o,e.cx-r/2+Wi(a[0],e.r),e.cy-r/2+Wi(a[1],e.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},n.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),h=new Gx,c=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){c[t]=new wb({silent:!0}),p[t]=new wb({silent:!0})}).update(function(t,e){c[t]=o._titleEls[e],p[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new Gx,y=i(Hi(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),_=r.cx+Wi(m[0],r.r),x=r.cy+Wi(m[1],r.r),w=c[e];w.attr({z2:f?0:2,style:Us(v,{x:_,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(w)}var b=n.getModel("detail");if(b.get("show")){var S=b.get("offsetCenter"),M=r.cx+Wi(S[0],r.r),T=r.cy+Wi(S[1],r.r),C=Wi(b.get("width"),r.r),I=Wi(b.get("height"),r.r),D=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,w=p[e],k=b.get("formatter");w.attr({z2:f?0:2,style:Us(b,{x:M,y:T,text:cy(o,k),width:isNaN(C)?null:C,height:isNaN(I)?null:I,align:"center",verticalAlign:"middle"},{inheritColor:D})}),Ks(w,{normal:b},o,function(t){return cy(t,k)}),d&&$s(w,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return cy(a?a.interpolatedValue:o,k)}}),g.add(w)}h.add(g)}),this.group.add(h),this._titleEls=c,this._detailEls=p},n.type="gauge",n}(uC),GA=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.visualStyleAccessPath="itemStyle",e}return e(n,t),n.prototype.getInitialData=function(){return sy(this,["value"])},n.type="series.gauge",n.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},n}(oC);qd(py);var UA=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xAxis","yAxis"],n.layoutMode="box",n.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},n}(WM),XA=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",iw).models[0]},n.type="cartesian2dAxis",n}(WM);f(XA,fk);var YA={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},qA=l({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},YA),jA=l({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},YA),ZA=l({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jA),KA=c({logBase:10},jA),$A={category:qA,value:jA,time:ZA,log:KA},QA={value:1,category:1,time:1,log:1},JA=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return v(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),_(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),tP=["x","y"],eP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=tP,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(gy(t)&&gy(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Ge([],p)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},n.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},n.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},n.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new y_(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},n.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return ye(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},n.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return ye(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},n.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},n.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new y_(n,i,r,o)},n}(JA),nP=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},n.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){return"category"!==this.type?!1:(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},n}(Lk),iP=Math.log,rP=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tP,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){function n(t){var e,n=w(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;Qp(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(Od(u,l),Qp(u)&&(e=s))}r.length&&(e||(e=r.pop(),Od(e.scale,e.model)),y(r,function(t){_y(t.scale,t.model,e.scale)}))}}var i=this._axesMap;this._updateScale(t,this.model),n(i.x),n(i.y);var r={};y(i.x,function(t){wy(i,"y",t,r)}),y(i.y,function(t){wy(i,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){function i(){y(s,function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Sy(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=Fl(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;i(),o&&(y(s,function(t){if(!t.model.get(["axisLabel","inside"])){var e=Bd(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}}),i()),y(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];return null!=n?n[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}k(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i0?"top":"bottom",i="center"):Qi(o-oP)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&oP>o?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),sP={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ye(s,s,a),ye(l,l,a));var c=h({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new DS({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});bs(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var d=e.get(["axisLine","symbol"]);if(null!=d){var f=e.get(["axisLine","symbolSize"]);C(d)&&(d=[d,d]),(C(f)||D(f))&&(f=[f,f]);var g=fc(e.get(["axisLine","symbolOffset"])||0,f),v=f[0],m=f[1];y([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==d[i]&&null!=d[i]){var r=pc(d[i],-v/2,-m/2,v,m,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=Ay(n,i,e,t),o=Ly(n,i,e,t);if(Ty(e,o,r),Py(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Nf(v(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}));Hf(a)}},axisName:function(t,e,n,i){var r=N(t.axisName,e.get("name"));if(r){var o,a=e.get("nameLocation"),s=t.nameDirection,l=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),c=h[0]>h[1]?-1:1,p=["start"===a?h[0]-c*u:"end"===a?h[1]+c*u:(h[0]+h[1])/2,Dy(a)?t.labelOffset+s*u:0],d=e.get("nameRotate");null!=d&&(d=d*oP/180);var f;Dy(a)?o=aP.innerTextLayout(t.rotation,null!=d?d:t.rotation,s):(o=My(t.rotation,a,d||0,h),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(o.rotation)),!isFinite(f)&&(f=null)));var g=l.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=N(t.nameTruncateMaxWidth,y.maxWidth,f),_=new wb({x:p[0],y:p[1],rotation:o.rotation,silent:aP.isLabelSilent(e),style:Us(l,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:l.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:l.get("align")||o.textAlign,verticalAlign:l.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ns({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=aP.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,Tb(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}},lP={},uP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(e,n,i){this.axisPointerClass&&Fy(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},n.prototype.updateAxisPointer=function(t,e,n){this._doUpdateAxisPointerClass(t,n,!1)},n.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},n.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},n.prototype._doUpdateAxisPointerClass=function(t,e,i){var r=n.getAxisPointerClass(this.axisPointerClass);if(r){var o=Hy(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,i):this._disposeAxisPointer(e)}},n.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},n.registerAxisPointerClass=function(t,e){lP[t]=e},n.getAxisPointerClass=function(t){return t&&lP[t]},n.type="axis",n}(aC),hP=Pr(),cP=["axisLine","axisTickLabel","axisName"],pP=["splitArea","splitLine","minorSplitLine"],dP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass="CartesianAxisPointer",e}return e(n,t),n.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Gx,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=yy(a,e),l=new aP(e,h({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),n=0;n=0},n.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},n.type="legend.plain",n.dependencies=["series"],n.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},n}(WM),SP=S,MP=y,TP=Gx,CP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!1,e}return e(n,t),n.prototype.init=function(){this.group.add(this._contentGroup=new TP),this.group.add(this._selectorGroup=new TP),this._isFirstRender=!0},n.prototype.getContentGroup=function(){return this._contentGroup},n.prototype.getSelectorGroup=function(){return this._selectorGroup},n.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=Fl(l,u,h),d=this.layoutInner(t,r,p,i,a,s),f=Fl(c({width:d.width,height:d.height},l),u,h);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jy(d,t))}},n.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},n.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=Y(),u=e.get("selectedMode"),c=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&c.push(t.id)}),MP(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new TP;return p.newline=!0,void s.add(p)}var d=n.getSeriesByName(a)[0];if(!l.get(a))if(d){var f=d.getData(),g=f.getVisual("legendLineStyle")||{},y=f.getVisual("legendIcon"),v=f.getVisual("style"),m=this._createItem(d,a,o,r,e,t,g,v,y,u,i);m.on("click",SP($y,a,null,i,c)).on("mouseover",SP(Jy,d.name,null,i,c)).on("mouseout",SP(tv,d.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries(function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var p=s.indexOfName(a),d=s.getItemVisual(p,"style"),f=s.getItemVisual(p,"legendIcon"),g=Rn(d.fill);g&&0===g[3]&&(g[3]=.2,d=h(h({},d),{fill:Gn(g,"rgba")}));var y=this._createItem(n,a,o,r,e,t,{},d,f,u,i);y.on("click",SP($y,null,a,i,c)).on("mouseover",SP(Jy,null,a,i,c)).on("mouseout",SP(tv,null,a,i,c)),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},n.prototype._createSelector=function(t,e,n){var i=this.getSelectorGroup();MP(t,function(t){var r=t.type,o=new wb({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});i.add(o);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Ws(o,{normal:a,emphasis:s},{defaultText:t.title}),Aa(o)})},n.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),v=i.get("icon");l=v||l||"roundRect";var m=Zy(l,i,a,s,c,f,h),_=new TP,x=i.getModel("textStyle");if(!T(t.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(Ky({itemWidth:p,itemHeight:d,icon:l,iconRotate:w,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}))}else _.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y})); +var b="left"===o?p+5:-5,S=o,M=r.get("formatter"),I=e;C(M)&&M?I=M.replace("{name}",null!=e?e:""):T(M)&&(I=M(e));var D=i.get("inactiveColor");_.add(new wb({style:Us(x,{text:I,x:b,y:d/2,fill:f?x.getTextColor():D,align:S,verticalAlign:"middle"})}));var k=new vb({shape:_.getBoundingRect(),invisible:!0}),A=i.getModel("tooltip");return A.get("show")&&Ns({el:k,componentModel:r,itemName:e,itemTooltipOption:A.option}),_.add(k),_.eachChild(function(t){t.silent=!0}),k.silent=!u,this.getContentGroup().add(_),Aa(_),_.__legendDataIndex=n,_},n.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();VM(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){VM("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+h[f],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-d]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type="legend.plain",n}(aC),IP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},n.prototype.init=function(e,n,i){var r=Wl(e);t.prototype.init.call(this,e,n,i),ov(this,e,r)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),ov(this,this.option,e)},n.type="legend.scroll",n.defaultOption=el(bP.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),n}(bP),DP=Gx,kP=["width","height"],AP=["x","y"],PP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!0,e._currentIndex=0,e}return e(n,t),n.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new DP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new DP)},n.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},n.prototype.renderInner=function(e,n,i,r,o,a,s){function l(t,e){var i=t+"DataIndex",o=Ls(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:zm(u._pageGo,u,i,n,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,h.add(o)}var u=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var h=this._controllerGroup,c=n.get("pageIconSize",!0),p=M(c)?c:[c,c];l("pagePrev",0);var d=n.getModel("pageTextStyle");h.add(new wb({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),l("pageNext",1)},n.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),l=t.getOrient().index,u=kP[l],h=AP[l],c=kP[1-l],p=AP[1-l];r&&VM("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),f=a.getBoundingRect(),g=[-f.x,-f.y],y=s(n);r&&(y[u]=n[u]-f[u]-d);var v=this._layoutContentAndController(t,i,y,l,u,c,p,h);if(r){if("end"===o)g[l]+=v[u]+d;else{var m=f[u]+d;g[l]-=m,v[h]-=m}v[u]+=f[u]+d,g[1-l]+=v[p]+v[c]/2-f[c]/2,v[c]=Math.max(v[c],f[c]),v[p]=Math.min(v[p],f[p]+g[1-l]),a.x=g[0],a.y=g[1],a.markRedraw()}return v},n.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;VM(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),VM("horizontal",h,t.get("pageButtonItemGap",!0));var c=l.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=B(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var m=t.get("pageButtonPosition",!0);"end"===m?y[i]+=n[r]-p[r]:g[i]+=p[r]+v}y[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(y);var _={x:0,y:0};if(_[r]=d?n[r]:c[r],_[o]=Math.max(c[o],p[o]),_[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[r],d){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-v,0),x[o]=_[o],u.setClipPath(new vb({shape:x})),u.__rectSize=x[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return null!=w.pageIndex&&ss(l,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),_},n.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},n.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;y(["pagePrev","pageNext"],function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",C(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},n.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),n=e[l]+t[l];return{s:n,e:n+e[s],i:t.__legendDataIndex}}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=kP[a],l=AP[a],u=this._findTargetItemIndex(i),h=r.children(),c=h[u],p=h.length,d=p?1:0,f={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=e(c);f.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,_=null;p>=y;++y)_=e(h[y]),(!_&&m.e>v.s+o||_&&!n(_,v.s))&&(v=m.i>v.i?m:_,v&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=v.i),++f.pageCount)),m=_;for(var y=u-1,v=g,m=g,_=null;y>=-1;--y)_=e(h[y]),_&&n(m,_.s)||!(v.ia)return!0;if(o){var s=Vy(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return n===!0},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var n=e.pointer;if(n){var i=LP(t).pointerEl=new QS[n.type](OP(e.pointer));t.add(i)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=LP(t).labelEl=new wb(OP(e.label));t.add(r),hv(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=LP(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=LP(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),hv(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return i&&n.remove(i),void(this._handle=null);var a;this._handle||(a=!0,i=this._handle=Ls(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){i_(t.event)},onmousedown:RP(this._onHandleDragMove,this,0,0),drift:RP(this._onHandleDragMove,this),ondragend:RP(this._onHandleDragEnd,this)}),n.add(i)),pv(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");M(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Uh(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},t.prototype._moveHandleToValue=function(t,e){lv(this._axisPointerModel,!e&&this._moveAnimation,this._handle,cv(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(cv(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(cv(i)),LP(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Xh(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}(),zP=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=wv(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=dv(i),c=NP[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}var p=yy(a.model,n);mv(e,t,p,n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=yy(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=vv(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var i=n.axis,r=i.grid,o=i.getGlobalExtent(!0),a=wv(r,i).getOtherAxis(i).getGlobalExtent(),s="x"===i.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}},n}(EP),NP={line:function(t,e,n){var i=_v([e,n[0]],[e,n[1]],bv(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:xv([e-i/2,n[0]],[i,r],bv(t))}}},BP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="axisPointer",n.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},n}(WM),FP=Pr(),VP=y,HP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Sv("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},n.prototype.remove=function(t,e){kv("axisPointer",e)},n.prototype.dispose=function(t,e){kv("axisPointer",e)},n.type="axisPointer",n}(aC),WP=Pr(),GP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="tooltip",n.dependencies=["axisPointer"],n.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},n}(WM),UP=Uv(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),XP=Uv(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),YP=Xv(XP,"transition"),qP=Xv(UP,"transform"),jP="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(fm.transform3dSupported?"will-change:transform;":""),ZP=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,fm.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Jv(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();Ae(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=Yv(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=jP+Qv(t,!this._firstShow,this._longHide)+Kv(r[0],r[1],!0)+("border-color:"+zl(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)return void(o.innerHTML="");var a="";if(C(r)&&"item"===n.get("trigger")&&!Gv(n)&&(a=jv(n,i,r)),C(t))o.innerHTML=t+a;else if(t){o.innerHTML="",M(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},n.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},n.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!fm.node&&n.getDom()){var r=rm(i,n);this._ticket="";var o=i.dataByCoordSys,a=um(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=$P;l.x=i.x,l.y=i.y,l.update(),Tb(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=Av(i,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},n.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(rm(i,n))},n.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=im([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},n.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){this._lastDataByCoordSys=null;var o,a;hc(n,function(t){return null!=Tb(t).dataIndex?(o=t,!0):null!=Tb(t).tooltipConfig?(a=t,!0):void 0},!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},n.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=zm(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},n.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=im([e.tooltipOption],i),a=this._renderMode,s=[],l=ph("section",{blocks:[],noHeader:!0}),u=[],c=new nC;y(t,function(t){y(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=yv(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),p=ph("section",{header:o,noHeader:!G(o),sortBlocks:!0,blocks:[]});l.blocks.push(p),y(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,g=d.getDataParams(f);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Nd(e.axis,{value:r}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker("item",zl(g.color),a);var y=Yu(d.formatTooltip(f,!0,null)),v=y.frag;if(v){var m=im([d],i).get("valueFormatter");p.blocks.push(m?h({valueFormatter:m},v):v)}y.text&&u.push(y.text),s.push(g)}})}})}),l.blocks.reverse(),u.reverse();var p=e.position,d=o.get("order"),f=mh(l,c,a,d,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var g="richText"===a?"\n\n":"
",v=u.join(g);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",r[0],r[1],p,null,c)})},n.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Tb(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),p=this._renderMode,d=t.positionDefault,f=im([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=f.get("trigger");if(null==g||"item"===g){var y=s.getDataParams(l,u),v=new nC;y.marker=v.makeTooltipMarker("item",zl(y.color),p);var m=Yu(s.formatTooltip(l,!1,u)),_=f.get("order"),x=f.get("valueFormatter"),w=m.frag,b=w?mh(x?h({valueFormatter:x},w):w,v,p,_,i.get("useUTC"),f.get("textStyle")):m.text,S="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,b,y,S,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},n.prototype._showComponentItemTooltip=function(t,e,n){var i=Tb(e),r=i.tooltipConfig,o=r.option||{};if(C(o)){var a=o;o={content:a,formatter:a}}var l=[o],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=im(l,this._tooltipModel,h?{position:h}:null),p=c.get("content"),d=Math.random()+"",f=new nC;this._showOrMove(c,function(){var n=s(c.get("formatterParams")||{});this._showTooltipContent(c,p,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},n.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(h)if(C(h)){var f=t.ecModel.get("useUTC"),g=M(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=h,y&&(c=hl(g.axisValue,c,f)),c=Ll(c,n,!0)}else if(T(h)){var v=zm(function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,v)}else c=h;u.setContent(c,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},n.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||M(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:M(e)?void 0:{color:i||e.color||e.borderColor}},n.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),T(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),M(e))n=Wi(e[0],s),i=Wi(e[1],l);else if(k(e)){var d=e;d.width=u[0],d.height=u[1];var f=Fl(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(C(e)&&a){var g=sm(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{var g=om(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=lm(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=lm(c)?u[1]/2:"bottom"===c?u[1]:0),Gv(t)){var g=am(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},n.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&y(n,function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&y(a,function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&y(a,function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&y(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},n.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},n.prototype.dispose=function(t,e){!fm.node&&e.getDom()&&(Xh(this,"_updatePosition"),this._tooltipContent.dispose(),kv("itemTooltip",e))},n.type="tooltip",n}(aC);qd(hm),t.version=uI,t.dependencies=hI,t.PRIORITY=II,t.init=ip,t.connect=rp,t.disConnect=op,t.disconnect=vD,t.dispose=ap,t.getInstanceByDom=sp,t.getInstanceById=lp,t.registerTheme=up,t.registerPreprocessor=hp,t.registerProcessor=cp,t.registerPostInit=pp,t.registerPostUpdate=dp,t.registerUpdateLifecycle=fp,t.registerAction=gp,t.registerCoordinateSystem=yp,t.getCoordinateSystemDimensions=vp,t.registerLayout=mp,t.registerVisual=_p,t.registerLoading=wp,t.setCanvasCreator=bp,t.registerMap=Sp,t.getMap=Mp,t.registerTransform=_D,t.dataTool=ID,t.registerLocale=nl,t.zrender=jx,t.matrix=a_,t.vector=Xm,t.zrUtil=Vm,t.color=Q_,t.helper=yk,t.number=Tk,t.time=Ck,t.graphic=Ik,t.format=Dk,t.util=kk,t.List=HD,t.ComponentModel=WM,t.ComponentView=aC,t.SeriesModel=oC,t.ChartView=uC,t.extendComponentModel=xf,t.extendComponentView=wf,t.extendSeriesModel=bf,t.extendChartView=Sf,t.throttle=Gh,t.use=qd,t.setPlatformAPI=r,t.parseGeoJSON=nf,t.parseGeoJson=nf,t.env=fm,t.Model=fM,t.Axis=Lk,t.innerDrawElementOnCanvas=Wc}); \ No newline at end of file diff --git a/components/history-modal/index.vue b/components/history-modal/index.vue new file mode 100644 index 0000000..fc5d830 --- /dev/null +++ b/components/history-modal/index.vue @@ -0,0 +1,330 @@ + + + \ No newline at end of file diff --git a/components/new-canvas/index.vue b/components/new-canvas/index.vue new file mode 100644 index 0000000..708b0bc --- /dev/null +++ b/components/new-canvas/index.vue @@ -0,0 +1,361 @@ + + + + + \ No newline at end of file diff --git a/components/new-search/index.vue b/components/new-search/index.vue new file mode 100644 index 0000000..9b55a6a --- /dev/null +++ b/components/new-search/index.vue @@ -0,0 +1,79 @@ + + + + + \ No newline at end of file diff --git a/components/section/index.vue b/components/section/index.vue new file mode 100644 index 0000000..487e6ad --- /dev/null +++ b/components/section/index.vue @@ -0,0 +1,52 @@ + + + + + \ No newline at end of file diff --git a/components/station-dropdow/index.vue b/components/station-dropdow/index.vue new file mode 100644 index 0000000..b006036 --- /dev/null +++ b/components/station-dropdow/index.vue @@ -0,0 +1,133 @@ + + + \ No newline at end of file diff --git a/h5.html b/h5.html new file mode 100644 index 0000000..7cab347 --- /dev/null +++ b/h5.html @@ -0,0 +1,50 @@ + + + + + + + + + + <%= htmlWebpackPlugin.options.title %> + + + + + + + + + + + + + + +
+ + + + diff --git a/locales/en_EN.js b/locales/en_EN.js new file mode 100644 index 0000000..3670bd5 --- /dev/null +++ b/locales/en_EN.js @@ -0,0 +1,60 @@ +import homePage from './homePage/en' +export default { + homePage, + common: { + title: 'Aidex', + }, + nav: { + home: 'Home page', + run:"Run", + energyStorage: 'Energy storage', + user: 'Mine', + }, + login: { + title: 'Login', + account:"Account", + placeholderAccount: 'Enter Account', + pwd:"Password", + placeholderPassword: 'Enter Password', + code:"Verification code", + codeTip:"Please enter the verification code", + autoLogin: 'Auto Login', + loginButton: 'Login', + logoutButton: 'Logout', + forget: 'Forget Password', + reg: 'Resister Account', + noLogin: 'No Login', + privacyPolicy:"Privacy Policy", + userAgreement:"User agreement", + codeLoading:"Getting verification code", + noStation:"No power station", + noFunction:"The function is not yet open.", + lang:'EN' + }, + home: { + title: 'Home' + }, + user: { + title: 'User', + privacyPolicy:"Privacy Policy", + userAgreement:"User agreement", + edition:"Version", + language:"Language", + loginOut:"Log out", + chinese:"Chinese", + english:"English", + german:'German', + italian:'Italian', + spanish:'Spanish', + changeSuccess:"The switch was successful", + languageChange:"Language Switch", + privacy:"Privacy Policy", + agreement:"User Agreement" + }, + msg: { + title: 'Message' + }, + tips:{ + noData:"No data available" + } +} diff --git a/locales/homePage/en.js b/locales/homePage/en.js new file mode 100644 index 0000000..2cd69ae --- /dev/null +++ b/locales/homePage/en.js @@ -0,0 +1,461 @@ +export default { + home: { + esiCab: 'Cabinet', + gridCab: 'Grid-con Cabinet', + grid: 'Grid', + workStatus: 'Work Status:', + activePower: 'Ac-Power(kW):', + charge: 'Charge', + disCharge: 'Discharge', + standing: 'Standing', + load: 'Load', + gridCabSwitch: 'Grid-con Switch:', + dCCabin: 'DC Cabin', + PCSCab: 'PCS Cabin', + legend: 'Lengend', + normal: 'Normal', + fault: 'Fault', + overhaul: 'Overhaul', + shutStan: 'Standby/Shutdown', + reactivePower: 'Re-Power(kW):', + totalV: 'Total Voltage(V):', + current: 'Current(A):', + maxCellVol: 'Maximum cell voltage:', + minCellVol: 'Maximum voltage difference:', + shutdown: 'Shutdown', + standby: 'Standby', + run: 'Run', + allActivePower: 'All Ac-Power(kW):', + cabinet: 'Cabinet', + gridMeter: 'Grid Meter', + photovoltaic: 'Photovoltaic', + battery: 'Battery', + status: 'Status:', + busbar: 'Busbar', + dieselGenerator: 'Diesel Generator', + ammeter: 'Ammeter', + device: 'Device', + earning: 'Earning', + alarm: 'Alarm', + policy: 'Policy', + stationTopo: 'Site Topology', + deviceMonitor: 'Device Monitor', + runCurve: 'Run Time Curve', + chargeDisData: 'Charge/Discharge Data', + stationData: 'stationData', + environmentalData: 'Environmental Control Data', + sevenDay: 'Seven', + monthDay: 'Month', + yearDay: 'Year', + monthThree: 'three Months', + tip: 'Tip', + loading: 'Loading...', + power: 'Power(kW)', + photovoltaicCharge: 'Photovoltaic Charge', + chargingandDischarging: 'Electricity(kWh)', + safeDaysUnit: 'Safe Operation Days(Day)', + totalCapacity: 'Total Installed Capacity', + systemConversionEfficiency: 'System Conversion Efficiency', + currentPower: 'Current Power', + totalCharge: 'Total Charge', + totalDischarge: 'Total Discharge', + dailyCharge: 'Daily Charge', + dailyDischarge: 'Daily Discharge', + dayPhotovoltaic: 'Photovoltaic Power Generation', + noData: 'No Data', + login:'Login', + account:'Account', + password:'Password', + placeAccount:"Place input account", + placePassword:'Place input password', + noLogin:'The feature is not available yet', + station:'Station', + electricityPrice:'National electricity price', + mine:'Mine', + on: 'On', + off: 'Off', + lang:'EN', + noPermission: "No access permission", + contactAdmin: "Group system is not open to the public yet. Please contact the administrator to activate an account", + title: "Guest Mode" + }, + price: { + elePriceQuery: 'Electricity Price Query', + queryCriteria: 'Query criteria', + sift: 'sift', + provinceRegion: 'Province Region', + selectProvinceRegion: 'Please select province region', + customerType: 'Electricity Customer', + selectEleCustomers: 'Please select electricity customer', + eleType: 'Electricity Type', + selectEleType: 'Please select electricity type', + volLevel: 'Voltage Level', + selectVoltageLevel: 'Please select voltage level', + exeTime: 'Execute Time', + selectExeTime: 'selectExeTime', + noData: 'No Data', + eleLevel: 'Electricity Price Level', + fsdd: 'The price of time-of-use electricity', + dietailUnit: '(RMB/kWh)', + eleprice: 'The price of electricity and electricity', + nonTime: 'Non-time-of-use Electricity Price', + proxyPrice: 'Proxy power purchase price', + transmission: 'transmission', + attachPrice: 'Government funds and surcharges', + curve: 'Curve', + list: 'List', + noMoreData: 'No More Data', + spike: 'Spike', + speak: 'Speak', + regular: 'Regular', + lowValley: 'Low Valley', + deepValley: 'Deep Valley', + peakDifference: 'Maximum peak-to-valley difference', + peakDifferencePrice: 'Maximum peak-to-valley spread', + dayHighPrice: 'The highest daily electricity price', + dayLowtPrice: 'The lowest daily electricity price', + historytrend: 'Historical trends', + reset: 'Reset', + sure: 'Sure', + sharp: 'Sharp', + peak: 'Peak', + flat: 'Flat', + valley: 'Valley', + + }, + mine: { + // accountSec: 'Account security', + // aboutUs: 'About us', + // message: 'Message notifications', + // changeLanguage: 'Switch languages', + // sysSetting: 'System settings', + // messageAlerts: 'Message alerts', + // acceptMessageAlerts: 'Accept Message alerts', + // messageDetail: 'The notification bar displays the message details', + // closeMessage: 'After disabling, when a message is received, only a prompt is displayed, and the message content is not displayed.', + // sound: 'Sound & Vibration', + // acceptSound: 'Play a sound or vibration when you receive a message', + // settingSound: 'Go to System Settings and modify the sound and vibration', + // update: 'Software update alerts', + // updateAlerts: 'Alerts are given when a new version of the software is released', + // noUpdate: 'The Mini Program or H5 is already the latest version, so there is no need to check for updates!', + // general: 'General', + // version: 'Current version', + // Privacy: 'Privacy Policy', + // UserAgreement: 'User Agreement', + // logOut: 'Log Out', + // notAva: 'This feature is not available at this time', + // setPassword: 'Please set a login password', + // passwordService: 'Update your passwords regularly to improve security', + // oldPassword: 'Old passwords', + // inputOldPossword: 'Please enter your old password', + // newPassword: 'New passwords', + // inputNewPassword: 'Please enter a new password', + // surePassword: 'Confirm your password', + // inputSurePassword: 'Please confirm your password', + // PasswordError: 'The password must be a 6-12 digit number, a combination of characters (not a pure number)', + // submit: 'Submit', + // resetSubmit: 'Please re-enter your password', + // passwordEqual: 'The passwords entered twice are not equal', + // tip: 'Tip', + // updateSuccess: 'The password is successfully changed, please log in again.', + // inputError: 'The information you filled in is incorrect, please correct it according to the prompts.', + // hoenergypower: 'Hoenergy', + // companyHomepage: 'Company homepage', + // technicalServices: 'Technical services', + // termsOfService: 'Terms of Service', + // downUpdate: 'Whether or not to download the update?', + // appTitle: 'Control platform', + // lookDetail: 'Detail', + // noMessage: 'No Message', + // sureRead: 'Confirm Read', + // cancel: 'Cancel', + // messageDetail: 'Message Detail', + // operateSuccess: 'Operate Success', + // messageReaded: 'The message has already been read and does not need to be repeated' + }, + device: { + inputNameQuery: 'Input name to search', + query: 'Search', + all: 'All', + queryResult:'Search results', + pcsTopu:'PCS Topology', + totalAcReaPower:'Total ac/re power', + timeGranularity:'Time granularity', + deviceData: 'Device Data', + acPower: 'Ac Power', + acRecPower: 'Ac Re-Power', + gridFrequency: 'Grid frequency', + abLineVol: 'AB line voltage', + bcLineVol: 'BC line voltage', + caLineVol: 'CA line voltage', + acur:'A phase current', + bcur:'B phase current', + ccur:'C phase current', + DCPower: 'DC power', + DCVol: 'DC voltage', + DCCurrent: 'DC current', + acbreaker:'AC Breaker', + dcbreaker:'DC Breaker', + runState: 'Run state', + rsState: 'Distance/Local State', + gridMode: 'And in off-grid mode', + deviceState: 'Device state', + totalActivePower: 'Total Power', + totalReactivePower: 'Total Re-Power', + local: 'Local', + distance: 'Distance', + grid: 'Grid', + offGrid: 'Off-grid', + standby: 'Standby', + shutdown: 'Shutdown', + run: 'Run', + fault: 'Fault', + charge: 'Charge', + discharge: 'Discharge', + standing: 'Standing', + localAutomatic:'Local automatic', + localManual:'Local manual', + timesArr: [{ + label: '1 Minutes', + value: 1 + }, + { + label: '5 Minutes', + value: 5 + }, + { + label: '10 Minutes', + value: 10 + }, + { + label: '15 Minutes', + value: 15 + }, + { + label: '20 Minutes', + value: 20 + }, + { + label: '30 Minutes', + value: 30 + } + ], + yx: 'TS', + yc: 'TM', + data:'Data', + noData:'No Data', + loadText: { + loadmore: 'load More', + loading: 'loading', + nomore: 'No more', + }, + clusterTotalVol: 'Cluster Total Voltage/SOC', + runData: 'runData', + cumCharge: 'Cumulative charge', + cumDischarge: 'Cumulative discharge', + avgTem: 'Average temperature', + avgVol: 'Average voltage', + maxCellVol: 'Maximum cell voltage', + minCellVol: 'Minimum cell voltage', + maxCellTem: 'Maximum cell temperature', + minCellTem: 'Minimum cell temperature', + maxvolDiff: 'Maximum voltage difference', + maxTemDiff: 'Maximum temperature difference', + batteryGroupNum: 'Battery number', + cellPostion: 'CELL Position', + vol: 'Voltage', + volqua: 'Voltage quality', + curqua: 'Current quality', + acRea: 'Active/Reactive', + avol: 'A phase voltage', + bvol: 'B phase voltage', + cvol: 'C phase voltage', + zxygzdl:'Forward total ac-power', + dlj:'Electricity(sharp)', + dlf:'Electricity(peak)', + dlp:'Electricity(flat)', + dlg:'Electricity(valley)', + fxygzdl:'Reverse total ac-power', + hxyggl:'Conjunct ac-power', + hxwggl:'Conjunct re-power', + hxglys:'Conjunct power factor', + a:'A phase', + b:'B phase', + c:'C phase', + active:'Active', + reactive:'Reactive', + current:'Current', + EMU: 'EMU Run Data', + on: 'On', + off: 'Off', + emuSwitchPosition: 'EMU Switch position', + emuRemoteOperation: 'EMU Remote operation', + emuKnifePosition: 'EMU Ground knife position', + online: 'Online', + offline: 'Offline', + temConCabRunData: 'Tem-control box Run Data', + aTem: 'A phase temperature', + bTem: 'B phase temperature', + cTem: 'C phase temperature', + dehumidifierRunData: 'Dehumidifier Run Data', + tem: 'temperature', + hum: 'humidity', + humStartValue:'Humidity start value', + humStopValue:'Humidity stop value', + ammeterRunData:'Ammeter Run Data', + frequency:'Frequency', + perceptualPower:'Perceptual power', + CapacitivePower:'Capacitive power', + volRatio: 'Voltage size distribution ratio', + maxVol: 'Maximum voltage', + cellPostion: 'CELL Position', + minVol: 'Minimum voltage', + maxTem: 'Maximum temperature', + minTem: 'Minimum temperature', + cellVolChart: 'Cell voltage histogram', + cellTemChart: 'Cell Temperature histogram', + volUnit: 'Voltage/Number', + temUnit: 'Temperature/Number', + num:'number', + stackTotalVol:'Stack Total Voltage/SOC', + leftTemCabin:'Left Side Temperature', + leftHubCabin:'Left Side Humidity', + rightTemCabin:'Right Side Temperature', + rightHubCabin:'Right Side Humidity', + stackCurrent:'Stack Current', + stackTotalVol:'Stack Voltage', + stackTotalCurrent:'Stack Total Current', + stackSoc:'Stack SOC', + CumulativeCharge:'Cumulative charge', + CumulativeDischarge:'Cumulative discharge', + zdz:'Insulation positive resistance', + fdz:'Insulation negative resistance', + rechargeCapacity:'Rechargeable capacity', + dischargeCapacity:'Discharging capacity', + totalMaxVolData:'Highest total cluster pressure', + stackCell:'Cluster number', + totalMinVolData:'Lowest total cluster pressure', + stackNum:'Battery cluster number', + groupNum:'Battery pack number', + cellLocation:'Cell location', + historyData:'History Data' + }, + earning: { + changeDischargePro: 'Charging/Discharging Project', + capacity: 'Capacity', + monthTotalCharge: 'Total Charging Volume Monthly', + monthTotalDischarge: 'Total Discharging Volume Monthly', + monthEff: 'Monthly Conversion Efficiency', + chargeVol: 'Cumulative Charging Volume', + dischargeVol: 'Cumulative Discharging Volume', + totalEff: 'Cumulative Conversion Efficiency', + projectRevenue: 'Project Revenue', + monthTotalChargePrice: 'Total Charging Price Monthly(RMB)', + monthTotalDisChargePrice: 'Total Discharging Price Monthly(RMB)', + earnings: 'Revenue(RMB)', + earningsDetail: 'Revenue Detail', + charge: 'Charge', + ele: 'Electricity(kWh)', + expend: 'Spend(RMB)', + noChargeData: 'No Charge Data', + disCharge: 'Discharge', + noDisChargeData: 'No Discharge Data', + year:'Year', + month:'Month', + day:'Day', + hour:'Hour', + minute:'Minute', + second:'Second' + }, + alarm: { + sift: 'sift', + device: 'Device', + placeSelect: 'Place Select', + event: 'Events', + level: 'Alarm Level', + timeRange: 'Time Range', + placeholderDate: 'placeholder select date', + reset: 'Reset', + sure: 'Sure', + noData: 'No Data', + confirm: 'Confirmed', + noConfirmed: 'Not Confirmed', + alarmTypeList: [{ + name: 'Real-Time Alarm' + }, + { + name: 'History Alarm' + } + ], + // realTimeAlarm: 'Real-Time Alarm', + // HistoryAlarm: 'History Alarm', + loadText: { + loadmore: 'load More', + loading: 'loading', + nomore: 'No more', + }, + allStation:'All Station', + alarm:'Alarm', + noDevice:'No Device Data', + placeholderInput:'Please Input Alarm Content', + status:'Status', + station:'Station', + alarmTime:'Alarm Time', + confirmer:'Confirmer', + confirmTime:'Confirm Time' + }, + policy: { + planCurve: 'Plan Curve', + planCurveTem: 'Plan Curve Template', + IssueDevice: 'Command Distribution Device', + operateOrNot: 'Operate Or Not', + socUplimit: 'SOC Upper Limit', + socDownlimit: 'SOC Lower Limit', + effectiveTime: 'Effective Time', + selectEffectiveTime: 'Please select effective time', + distributeResult: 'Distribute Result', + notDelivered: 'Not Delivered', + commandDistribution: 'Command Distribution', + controlDistribution: 'Control Distribution', + genSetting: 'General settings', + save: 'Save', + pleaseInputValue: 'Please input value', + pleaseInputPassword: 'Please input password', + password: 'Password', + policyTypeList: [{ + name: 'Command Distribution' + }, + { + name: 'General settings' + } + ], + radioList: [{ + name: "Operate", + disabled: false, + }, + { + name: "Not Operate", + disabled: false, + }, + ], + + selectIssueDevice: 'Command Distribution device', + deliverErrorNewTip: 'Mapping relationship is misconfigured or not configured, confirm and try again!', + passwordSuccess: 'Password Success', + passwordError: 'Password Error', + isOpen: 'isOpen', + isClose: 'isClose', + distributeSuccess: 'Distribute Succeeded', + distributeFail: 'Distribute Failed', + isNum: 'Please check that the value you enter is a number', + saveSuccess: 'Save Succeeded', + saveError: 'Save Failed', + delivered: 'Delivered', + selectPlanCurveTem: 'Please select plan curve template', + deliverErrorTip: 'Charging and discharging power is greater than the rated power, please confirm the plan curve setting', + deliverTip: 'Are you sure you want to delivery of the command?', + + } + +} \ No newline at end of file diff --git a/locales/homePage/zh.js b/locales/homePage/zh.js new file mode 100644 index 0000000..f19f877 --- /dev/null +++ b/locales/homePage/zh.js @@ -0,0 +1,462 @@ +export default { + home: { + esiCab: '储能一体柜', + gridCab: '并网柜', + grid: '用户配电', + workStatus: '工作状态:', + activePower: '有功功率(kW):', + charge: '充电', + disCharge: '放电', + standing: '静置', + load: '负载', + gridCabSwitch: '并网柜开关:', + dCCabin: '直流舱', + PCSCab: 'PCS升压一体舱', + legend: '图例', + normal: '正常运行', + fault: '故障', + overhaul: '检修', + shutStan: '待机/停机', + reactivePower: '无功功率(kW):', + totalV: '总电压(V):', + current: '电流(A):', + maxCellVol: '单体最高电压:', + minCellVol: '单体最低电压:', + shutdown: '停机', + standby: '待机', + run: '运行', + allActivePower: '总有功功率(kW):', + cabinet: '储能柜', + gridMeter: '电网侧电表', + photovoltaic: '光伏', + battery: '电池', + status: '状态:', + busbar: '母线', + dieselGenerator: '柴油发电机', + ammeter: '电表', + device: '设备', + earning: '收益', + alarm: '告警', + policy: '策略', + stationTopo: '电站拓扑', + deviceMonitor: '设备监控', + runCurve: '运行曲线', + chargeDisData: '充放电数据', + stationData: '电站数据', + environmentalData: '环控数据', + sevenDay: '近七天', + monthDay: '近一月', + monthThree: '近三月', + yearDay: '近一年', + tip: '提示', + loading: '资源加载中...', + power: '功率(kW)', + photovoltaicCharge: '光伏充电', + chargingandDischarging: '充放电量', + safeDaysUnit: '安全运行天数(天)', + totalCapacity: '装机总容量', + systemConversionEfficiency: '系统转化效率', + currentPower: '当前功率', + totalCharge: '总充电量', + totalDischarge: '总放电量', + dailyCharge: '日充电量', + dailyDischarge: '日放电量', + dayPhotovoltaic: '光伏发电量', + noData: '暂无数据', + login:'登录', + account:'账号', + password:'密码', + placeAccount:"请输入账号", + placePassword:'请输入密码', + noLogin:'功能暂未开放', + station:'电站', + electricityPrice:'全国电价', + mine:'我的', + on: '合位', + off: '分位', + lang:'ZH', + noPermission: "暂无权限访问", + contactAdmin: "集团系统,暂未对外开放,请联系管理员开通账号", + title: "游客模式" + }, + price: { + elePriceQuery: '电价查询', + queryCriteria: '查询条件', + sift: '筛选', + provinceRegion: '省市区域', + selectProvinceRegion: '请选择省市区域', + customerType: '用电客户', + selectEleCustomers: '请选择用电客户', + eleType: '用电部制/分类', + selectEleType: '请选择用电部制/分类', + volLevel: '电压等级', + selectVoltageLevel: '请选择电压等级', + exeTime: '执行日期', + selectExeTime: '请选择执行日期', + noData: '数据为空', + eleLevel: '电价水平', + fsdd: '分时电度用电价格', + dietailUnit: '(元/千瓦时)', + eleprice: '电度用电价格', + nonTime: '非分时电价', + proxyPrice: '代理购电价格', + transmission: '输电电价', + attachPrice: '政府性基金及附加电价', + curve: '曲线', + list: '列表', + noMoreData: '暂无更多数据', + spike: '尖峰', + speak: '高峰', + regular: '平时', + lowValley: '低谷', + deepValley: '深谷', + peakDifference: '最大峰谷差', + peakDifferencePrice: '最大峰谷差价', + dayHighPrice: '日最高电价', + dayLowtPrice: '日最低电价', + historytrend: '历史趋势', + reset: '重置', + sure: '确认', + sharp: '尖', + peak: '峰', + flat: '平', + valley: '谷', + + }, + mine: { + // accountSec: '账号安全', + // aboutUs: '关于我们', + // message: '消息通知', + // changeLanguage: '切换语言', + // sysSetting: '系统设置', + // messageAlerts: '消息提醒', + // acceptMessageAlerts: '接受消息提醒', + // messageDetail: '通知栏显示消息详情', + // closeMessage: '关闭后,当收到消息的时候,只显示有提示,不显示消息内容。', + // sound: '声音与振动', + // acceptSound: '收到消息后播放声音或振动', + // settingSound: '前往系统设置中,修改声音与振动', + // update: '软件更新提醒', + // updateAlerts: '当本软件有新版本发布时,给予提醒', + // noUpdate: '小程序端或H5端已是最新版,无需检查更新!', + // general: '通用', + // version: '当前版本', + // Privacy: '隐私政策', + // UserAgreement: '用户协议', + // logOut: '退出登录', + // notAva: '此功能暂未开放', + // setPassword: '请设置登录密码', + // passwordService: '定期更新密码提高安全性', + // oldPassword: '旧密码', + // inputOldPossword: '请输入旧密码', + // newPassword: '新密码', + // inputNewPassword: '请输入新密码', + // surePassword: '确认密码', + // inputSurePassword: '请确认密码', + // PasswordError: '密码必须是6-12位的数字,字符组合(不能是纯数字)', + // submit: '提交', + // resetSubmit: '请重新输入密码', + // passwordEqual: '两次输入的密码不相等', + // tip: '提示', + // updateSuccess: '密码修改成功,请重新登录。', + // inputError: '您填写的信息有误,请根据提示修正。', + // hoenergypower: '弘正储能', + // companyHomepage: '公司首页', + // technicalServices: '技术服务', + // termsOfService: '服务条款', + // downUpdate: '是否下载更新?', + // appTitle: '智慧储能管控平台', + // lookDetail: '查看详情', + // noMessage: '暂无消息', + // sureRead: '确认已读', + // cancel: '取消', + // messageDetail: '消息详情', + // operateSuccess: '操作成功', + // messageReaded: '该消息已读,无需重复操作' + }, + device: { + inputNameQuery: '输入名称搜索', + query: '搜索', + all: '全部', + queryResult: '搜索结果', + pcsTopu: 'PCS拓扑图', + totalAcReaPower: '总有功/总无功功率', + timeGranularity: '时间粒度', + deviceData: '设备数据', + acPower: '交流有功', + acRecPower: '交流无功', + gridFrequency: '电网频率', + abLineVol: 'AB线电压', + bcLineVol: 'BC线电压', + caLineVol: 'CA线电压', + acur: 'A相电流', + bcur: 'B相电流', + ccur: 'C相电流', + DCPower: '直流功率', + DCVol: '直流电压', + DCCurrent: '直流电流', + acbreaker: '交流断路器', + dcbreaker: '直流断路器', + runState: '运行状态', + rsState: '远方/就地状态', + gridMode: '并离网状态', + deviceState: '设备状态', + totalActivePower: '总有功功率', + totalReactivePower: '总无功功率', + local: '就地', + distance: '远方', + grid: '并网', + offGrid: '离网', + standby: '待机', + shutdown: '停机', + run: '运行', + fault: '故障', + charge: '充电', + discharge: '放电', + standing: '静置', + localAutomatic: '本地自动', + localManual: '本地手动', + timesArr: [{ + label: '1分钟', + value: 1 + }, + { + label: '5分钟', + value: 5 + }, + { + label: '10分钟', + value: 10 + }, + { + label: '15分钟', + value: 15 + }, + { + label: '20分钟', + value: 20 + }, + { + label: '30分钟', + value: 30 + } + ], + yx: '遥信', + yc: '遥测', + data: '数据', + noData: '暂无数据', + loadText: { + loadmore: '轻轻上拉', + loading: '努力加载中', + nomore: '实在没有了', + }, + clusterTotalVol: '簇总压/SOC', + runData: '运行数据', + cumCharge: '累计充电量', + cumDischarge: '累计放电量', + avgTem: '平均温度', + avgVol: '平均电压', + maxCellVol: '单体最高电压', + minCellVol: '单体最低电压', + maxCellTem: '单体最高温度', + minCellTem: '单体最低温度', + maxvolDiff: '最大电压差', + maxTemDiff: '最大温度差', + batteryGroupNum: '电池组号', + cellPostion: '电芯位置', + vol: '电压', + volqua: '电压质量', + curqua: '电流质量', + acRea: '有功/无功', + avol: 'A相电压', + bvol: 'B相电压', + cvol: 'C相电压', + zxygzdl: '正向有功总电量', + dlj: '电量(尖)', + dlf: '电量(峰)', + dlp: '电量(平)', + dlg: '电量(谷)', + fxygzdl: '反向有功总电量', + hxyggl: '合相有功功率', + hxwggl: '合相无功功率', + hxglys: '合相功率因数', + a: 'A相', + b: 'B相', + c: 'C相', + active: '有功', + reactive: '无功', + current: '电流', + EMU: '并网柜运行数据', + on: '合位', + off: '分位', + emuSwitchPosition: '并网柜开关位置', + emuRemoteOperation: '并网柜远方操作', + emuKnifePosition: '并网柜地刀位置', + online: '在线', + offline: '离线', + temConCabRunData: '温控箱运行数据', + aTem: 'A相温度', + bTem: 'B相温度', + cTem: 'C相温度', + dehumidifierRunData: '除湿仪运行数据', + tem: '温度', + hum: '湿度', + humStartValue: '湿度启动值', + humStopValue: '湿度停止值', + ammeterRunData: '电表运行数据', + frequency: '频率', + perceptualPower: '感性功电量', + CapacitivePower: '容性功电量', + volRatio: '电压大小分布比例', + maxVol: '最高电压', + cellPostion: 'CELL位置', + minVol: '最低电压', + maxTem: '最高温度', + minTem: '最低温度', + cellVolChart: '单体电压柱状图', + cellTemChart: '单体温度柱状图', + volUnit: '电压/个', + temUnit: '温度/个', + num: '个', + stackTotalVol: '堆总压/SOC', + leftTemCabin: '舱左侧温度', + leftHubCabin: '舱左侧湿度', + rightTemCabin: '舱右侧温度', + rightHubCabin: '舱右侧湿度', + stackCurrent: '堆电流', + stackTotalVol: '堆总压', + stackTotalCurrent: '堆总电流', + stackSoc: '堆SOC', + CumulativeCharge: '累积充电量', + CumulativeDischarge: '累计放电量', + zdz: '绝缘正电阻', + fdz: '绝缘负电阻', + rechargeCapacity: '可充电量', + dischargeCapacity: '可放电量', + totalMaxVolData: '最高簇总压', + stackCell: '簇号', + totalMinVolData: '最低簇总压', + stackNum: '电池簇号', + groupNum: '电池组号', + cellLocation: '电芯位置', + historyData: '历史数据' + }, + earning: { + changeDischargePro: '项目充放电概况', + capacity: '装机容量', + monthTotalCharge: '本月总充电量', + monthTotalDischarge: '本月总放电量', + monthEff: '月系统转换效率', + chargeVol: '累计充电量', + dischargeVol: '累计放电量', + totalEff: '累计系统转换效率', + projectRevenue: '项目收益情况', + monthTotalChargePrice: '本月总充电量总价(元)', + monthTotalDisChargePrice: '本月总放电量总价(元)', + earnings: '收益(元)', + earningsDetail: '收益详情', + charge: '充电', + ele: '电量(kWh)', + expend: '支出(元)', + noChargeData: '暂无充电数据', + disCharge: '放电', + noDisChargeData: '暂无放电数据', + year: '年', + month: '月', + day: '日', + hour: '时', + minute: '分', + second: '秒' + + }, + alarm: { + sift: '筛选', + device: '所属设备', + placeSelect: '请选择', + event: '事件', + level: '告警等级', + timeRange: '时间范围', + placeholderDate: '请选择时间范围', + reset: '重置', + sure: '确认', + noData: '数据为空', + confirm: '已确认', + noConfirmed: '未确认', + alarmTypeList: [{ + name: '实时告警' + }, + { + name: '历史告警' + } + ], + // realTimeAlarm: '实时告警', + // HistoryAlarm: '历史告警', + loadText: { + loadmore: '轻轻上拉', + loading: '努力加载中', + nomore: '实在没有了', + }, + allStation: '所有电站', + alarm: '告警', + noDevice: '暂无设备数据', + placeholderInput: '请输入告警内容', + status: '状态', + station: '所属电站', + alarmTime: '告警时间', + confirmer: '确认人', + confirmTime: '确认时间', + + }, + policy: { + planCurve: '计划曲线', + planCurveTem: '计划曲线模板', + IssueDevice: '命令下发设备', + operateOrNot: '是否投运', + socUplimit: 'SOC上限', + socDownlimit: 'SOC下限', + effectiveTime: '生效时间', + selectEffectiveTime: '请选择生效时间', + distributeResult: '下发结果', + notDelivered: '未下发', + commandDistribution: '命令下发', + controlDistribution: '控制下发', + genSetting: '通用设置', + save: '保存', + pleaseInputValue: '请输入值', + pleaseInputPassword: '请输入密码', + password: '密码', + policyTypeList: [{ + name: '命令下发' + }, + { + name: '通用设置' + } + ], + radioList: [{ + name: "投运", + disabled: false, + }, + { + name: "不投运", + disabled: false, + }, + ], + + selectIssueDevice: '请选择命令下发设备', + deliverErrorNewTip: '映射关系配置错误或未配置,请确认后重试!', + passwordSuccess: '密码正确', + passwordError: '密码错误', + isOpen: '是否开启', + isClose: '是否关闭', + distributeSuccess: '下发成功', + distributeFail: '下发失败', + isNum: '请检查输入的值是否为数字', + saveSuccess: '保存成功', + saveError: '保存失败', + delivered: '已下发', + selectPlanCurveTem: '请选择计划曲线模板', + deliverErrorTip: '充放电功率大于额定功率,请确认计划曲线设置!', + deliverTip: '是否确定下发命令?', + + } +}; \ No newline at end of file diff --git a/locales/zh_CN.js b/locales/zh_CN.js new file mode 100644 index 0000000..69eed67 --- /dev/null +++ b/locales/zh_CN.js @@ -0,0 +1,63 @@ +import homePage from './homePage/zh' +export default { + homePage, + common: { + title: 'Aidex', + }, + nav: { + home: '首页', + run:"运行", + energyStorage: '储能', + user: '我的', + }, + login: { + title: '登录', + account:"账号", + placeholderAccount: '请输入账号', + pwd:"密码", + placeholderPassword: '请输入密码', + code:"验证码", + codeTip:"请输入验证码", + autoLogin: '自动登录', + loginButton: '登录', + logoutButton: '退出登录', + forget: '忘记密码', + reg: '注册账号', + noLogin: '未登录', + privacyPolicy:"隐私政策", + userAgreement:"用户协议", + codeLoading:"正在获取验证码", + noStation:"无电站", + noFunction:"功能暂未开放", + lang:'ZH' + }, + home: { + title: '消息' + }, + workbench: { + title: '工作台' + }, + user: { + title: '用户中心', + privacyPolicy:"隐私政策", + userAgreement:"用户协议", + edition:"版本", + language:"语言", + loginOut:"退出登录", + chinese:"中文", + english:"英文", + german:'德语', + italian:'意大利语', + spanish:'西班牙语', + changeSuccess:"切换成功", + languageChange:"语言切换", + privacy:"隐私政策", + agreement:"用户协议", + }, + msg: { + title: '消息' + }, + tips:{ + noData:"暂无数据" + } +} diff --git a/main.js b/main.js new file mode 100644 index 0000000..6c1c4fd --- /dev/null +++ b/main.js @@ -0,0 +1,69 @@ + +import Vue from 'vue' +import App from './App' + +Vue.config.productionTip = false + +App.mpType = 'app' +// 引入全局 uView 框架 +import uView from 'uview-ui' +Vue.use(uView) + + +// 全局存储 vuex 的封装 +import store from '@/store' + +// 引入 uView 提供的对 vuex 的简写法文件 +let vuexStore = require('@/store/$u.mixin.js') +Vue.mixin(vuexStore) + +// 引入 uView 对小程序分享的 mixin 封装 +let mpShare = require('uview-ui/libs/mixin/mpShare.js') +Vue.mixin(mpShare) + +// Vue i18n 国际化 +import VueI18n from '@/common/vue-i18n.min.js' +Vue.use(VueI18n) + +// i18n 部分的配置,引入语言包,注意路径 +import lang_zh from '@/common/locales/zh_CN.js' +import lang_en from '@/common/locales/en_EN.js' + +const i18n = new VueI18n({ + // 默认语言 + locale: store.state.vuex_language, + // 引入语言文件 + messages: { + 'zh_CN': lang_zh, + 'en_US': lang_en, + } +}) + +// 由于微信小程序的运行机制问题,需声明如下一行,H5和APP非必填 +// Vue.prototype._i18n = i18n +const app = new Vue({ + i18n, + store, + ...App +}) +import * as echarts from "@/components/echarts/echarts.min.js" +Vue.prototype.$echarts = echarts +import { replaceAll } from '@/common/common.js' +Vue.prototype.replaceAll = replaceAll + +// http 拦截器,将此部分放在 new Vue() 和 app.$mount() 之间,才能 App.vue 中正常使用 +import httpInterceptor from '@/common/http.interceptor.js' +Vue.use(httpInterceptor, app) + +// http 接口 API 抽离,免于写 url 或者一些固定的参数 +import httpApi from '@/common/http.api.js' +Vue.use(httpApi, app) + +import {formatValue} from '@/common/common.js' +Vue.prototype.$formatValue = formatValue +import * as filters from '@/common/filters.js' +// 定义全局自定义过滤器 +Object.keys(filters).forEach(key => { + Vue.filter(key, filters[key]) +}) +app.$mount() diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..be723a7 --- /dev/null +++ b/manifest.json @@ -0,0 +1,145 @@ +{ + "name" : "弘正储能", + "appid" : "__UNI__6826034", + "description" : "Hoenergy", + "versionName" : "2.0.0", + "versionCode" : 200, + "transformPx" : false, + "app-plus" : { + // APP-VUE分包,可提APP升启动速度,2.7.12开始支持,兼容微信小程序分包方案,默认关闭 + "optimization" : { + "subPackages" : true + }, + "safearea" : { + "bottom" : { + "offset" : "none" + } + }, + "splashscreen" : { + "alwaysShowBeforeRender" : false, + "waiting" : true, + "autoclose" : true, + "delay" : 3 + }, + "usingComponents" : true, + "nvueCompiler" : "uni-app", + "compilerVersion" : 3, + "modules" : {}, + "distribute" : { + "android" : { + "permissions" : [], + "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ] + }, + "ios" : { + "dSYMs" : false + }, + "sdkConfigs" : { + "ad" : {}, + "payment" : { + "alipay" : { + "__platform__" : [ "ios", "android" ] + }, + "weixin" : { + "__platform__" : [ "ios", "android" ], + "appid" : "wxdf11ec8626d8a2cb", + "UniversalLinks" : "" + }, + "appleiap" : {} + }, + "push" : {} + }, + "icons" : { + "android" : { + "hdpi" : "unpackage/res/icons/72x72.png", + "xhdpi" : "unpackage/res/icons/96x96.png", + "xxhdpi" : "unpackage/res/icons/144x144.png", + "xxxhdpi" : "unpackage/res/icons/192x192.png" + }, + "ios" : { + "appstore" : "unpackage/res/icons/1024x1024.png", + "ipad" : { + "app" : "unpackage/res/icons/76x76.png", + "app@2x" : "unpackage/res/icons/152x152.png", + "notification" : "unpackage/res/icons/20x20.png", + "notification@2x" : "unpackage/res/icons/40x40.png", + "proapp@2x" : "unpackage/res/icons/167x167.png", + "settings" : "unpackage/res/icons/29x29.png", + "settings@2x" : "unpackage/res/icons/58x58.png", + "spotlight" : "unpackage/res/icons/40x40.png", + "spotlight@2x" : "unpackage/res/icons/80x80.png" + }, + "iphone" : { + "app@2x" : "unpackage/res/icons/120x120.png", + "app@3x" : "unpackage/res/icons/180x180.png", + "notification@2x" : "unpackage/res/icons/40x40.png", + "notification@3x" : "unpackage/res/icons/60x60.png", + "settings@2x" : "unpackage/res/icons/58x58.png", + "settings@3x" : "unpackage/res/icons/87x87.png", + "spotlight@2x" : "unpackage/res/icons/80x80.png", + "spotlight@3x" : "unpackage/res/icons/120x120.png" + } + } + }, + "splashscreen" : { + "androidStyle" : "default", + "androidTranslucent" : true, + "android" : { + "hdpi" : "C:/Users/Administrator/Desktop/res2/res2/drawable-hdpi/d00fdfa1ad04f98a7f655c8808770b5.9.png", + "xhdpi" : "C:/Users/Administrator/Desktop/res2/res2/drawable-xhdpi/d00fdfa1ad04f98a7f655c8808770b5.9.png", + "xxhdpi" : "C:/Users/Administrator/Desktop/res2/res2/drawable-xxhdpi/d00fdfa1ad04f98a7f655c8808770b5.9.png" + }, + "iosStyle" : "common", + "ios" : { + "storyboard" : "C:/Users/shangchen/Desktop/CustomStoryboard.zip" + }, + "useOriginalMsgbox" : true + } + } + }, + "quickapp" : {}, + "mp-weixin" : { + "appid" : "wx2a63288f87abf1de", + "setting" : { + "urlCheck" : false, + "es6" : true, + "minified" : true, + "postcss" : false + }, + "optimization" : { + "subPackages" : true + }, + "lazyCodeLoading" : "requiredComponents", + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true, + "component2" : true + }, + "mp-qq" : { + "optimization" : { + "subPackages" : true + }, + "appid" : "" + }, + "mp-baidu" : { + "usingComponents" : true, + "appid" : "" + }, + "mp-toutiao" : { + "usingComponents" : true, + "appid" : "" + }, + "h5" : { + "template" : "template.h5.html", + "router" : { + "mode" : "hash", + "base" : "" + }, + "optimization" : { + "treeShaking" : { + "enable" : false + } + }, + "title" : "uView UI" + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..73a6241 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3808 @@ +{ + "name": "honenery", + "version": "2.3.2", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@dcloudio/uni-helper-json": { + "version": "1.0.13", + "resolved": "https://registry.npmmirror.com/@dcloudio/uni-helper-json/-/uni-helper-json-1.0.13.tgz", + "integrity": "sha512-FO9Iu4zW4td3Tr+eiCDWuele2ehkJ4qxQ/UhpAMLjso+ZdWz6NagK5Syh6cdy1hoDqbxpNoqnLynuJXe81Ereg==" + }, + "@gar/promisify": { + "version": "1.1.3", + "resolved": "https://registry.npmmirror.com/@gar/promisify/-/promisify-1.1.3.tgz", + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", + "dev": true + }, + "@npmcli/fs": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/@npmcli/fs/-/fs-1.1.1.tgz", + "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", + "dev": true, + "requires": { + "@gar/promisify": "^1.0.1", + "semver": "^7.3.5" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmmirror.com/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "@npmcli/move-file": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/@npmcli/move-file/-/move-file-1.1.2.tgz", + "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", + "dev": true, + "requires": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + }, + "dependencies": { + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } + } + }, + "@types/json-schema": { + "version": "7.0.14", + "resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.14.tgz", + "integrity": "sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw==", + "dev": true + }, + "@webassemblyjs/ast": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/ast/-/ast-1.9.0.tgz", + "integrity": "sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA==", + "dev": true, + "requires": { + "@webassemblyjs/helper-module-context": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/wast-parser": "1.9.0" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz", + "integrity": "sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA==", + "dev": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz", + "integrity": "sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw==", + "dev": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz", + "integrity": "sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA==", + "dev": true + }, + "@webassemblyjs/helper-code-frame": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz", + "integrity": "sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA==", + "dev": true, + "requires": { + "@webassemblyjs/wast-printer": "1.9.0" + } + }, + "@webassemblyjs/helper-fsm": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz", + "integrity": "sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw==", + "dev": true + }, + "@webassemblyjs/helper-module-context": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz", + "integrity": "sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz", + "integrity": "sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw==", + "dev": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz", + "integrity": "sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz", + "integrity": "sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg==", + "dev": true, + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/leb128/-/leb128-1.9.0.tgz", + "integrity": "sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw==", + "dev": true, + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/utf8/-/utf8-1.9.0.tgz", + "integrity": "sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w==", + "dev": true + }, + "@webassemblyjs/wasm-edit": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz", + "integrity": "sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/helper-wasm-section": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0", + "@webassemblyjs/wasm-opt": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0", + "@webassemblyjs/wast-printer": "1.9.0" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz", + "integrity": "sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/ieee754": "1.9.0", + "@webassemblyjs/leb128": "1.9.0", + "@webassemblyjs/utf8": "1.9.0" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz", + "integrity": "sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz", + "integrity": "sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-api-error": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/ieee754": "1.9.0", + "@webassemblyjs/leb128": "1.9.0", + "@webassemblyjs/utf8": "1.9.0" + } + }, + "@webassemblyjs/wast-parser": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz", + "integrity": "sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/floating-point-hex-parser": "1.9.0", + "@webassemblyjs/helper-api-error": "1.9.0", + "@webassemblyjs/helper-code-frame": "1.9.0", + "@webassemblyjs/helper-fsm": "1.9.0", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz", + "integrity": "sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/wast-parser": "1.9.0", + "@xtuc/long": "4.2.2" + } + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmmirror.com/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "acorn": { + "version": "6.4.2", + "resolved": "https://registry.npmmirror.com/acorn/-/acorn-6.4.2.tgz", + "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", + "dev": true + }, + "aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "requires": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + } + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/ajv-errors/-/ajv-errors-1.0.1.tgz", + "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", + "dev": true + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmmirror.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "optional": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmmirror.com/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==", + "dev": true + }, + "asn1.js": { + "version": "5.4.1", + "resolved": "https://registry.npmmirror.com/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmmirror.com/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, + "assert": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/assert/-/assert-1.5.1.tgz", + "integrity": "sha512-zzw1uCAgLbsKwBfFc8CX78DDg+xZeBksSO3vwVIDDN5i94eOrPsSSyiVhmsSABFDM/OcpE2aagCat9dnWQLG1A==", + "dev": true, + "requires": { + "object.assign": "^4.1.4", + "util": "^0.10.4" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, + "util": { + "version": "0.10.4", + "resolved": "https://registry.npmmirror.com/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + } + } + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", + "dev": true + }, + "async-each": { + "version": "1.0.6", + "resolved": "https://registry.npmmirror.com/async-each/-/async-each-1.0.6.tgz", + "integrity": "sha512-c646jH1avxr+aVpndVMeAfYw7wAa6idufrlN3LPA4PmKS0QEGp6PIC9nwz0WQkkvBGAMEki3pFdtxaF39J9vvg==", + "dev": true, + "optional": true + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmmirror.com/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "requires": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmmirror.com/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true + }, + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "optional": true + }, + "bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmmirror.com/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true + }, + "bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmmirror.com/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", + "dev": true + }, + "browserify-aes": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "dev": true, + "requires": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "browserify-cipher": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", + "dev": true, + "requires": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "browserify-des": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "browserify-rsa": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/browserify-rsa/-/browserify-rsa-4.1.0.tgz", + "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", + "dev": true, + "requires": { + "bn.js": "^5.0.0", + "randombytes": "^2.0.1" + } + }, + "browserify-sign": { + "version": "4.2.1", + "resolved": "https://registry.npmmirror.com/browserify-sign/-/browserify-sign-4.2.1.tgz", + "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", + "dev": true, + "requires": { + "bn.js": "^5.1.1", + "browserify-rsa": "^4.0.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.5.3", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.5", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, + "browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmmirror.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, + "requires": { + "pako": "~1.0.5" + } + }, + "buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmmirror.com/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", + "dev": true + }, + "builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", + "dev": true + }, + "cacache": { + "version": "12.0.4", + "resolved": "https://registry.npmmirror.com/cacache/-/cacache-12.0.4.tgz", + "integrity": "sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ==", + "dev": true, + "requires": { + "bluebird": "^3.5.5", + "chownr": "^1.1.1", + "figgy-pudding": "^3.5.1", + "glob": "^7.1.4", + "graceful-fs": "^4.1.15", + "infer-owner": "^1.0.3", + "lru-cache": "^5.1.1", + "mississippi": "^3.0.0", + "mkdirp": "^0.5.1", + "move-concurrently": "^1.0.1", + "promise-inflight": "^1.0.1", + "rimraf": "^2.6.3", + "ssri": "^6.0.1", + "unique-filename": "^1.1.1", + "y18n": "^4.0.0" + } + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "requires": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + } + }, + "call-bind": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "dev": true, + "requires": { + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" + } + }, + "chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "optional": true, + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "dependencies": { + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "optional": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "optional": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "optional": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "optional": true, + "requires": { + "is-number": "^7.0.0" + } + } + } + }, + "chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true + }, + "cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmmirror.com/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", + "dev": true, + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "compression-webpack-plugin": { + "version": "6.1.1", + "resolved": "https://registry.npmmirror.com/compression-webpack-plugin/-/compression-webpack-plugin-6.1.1.tgz", + "integrity": "sha512-BEHft9M6lwOqVIQFMS/YJGmeCYXVOakC5KzQk05TFpMBlODByh1qNsZCWjUBxCQhUP9x0WfGidxTbGkjbWO/TQ==", + "dev": true, + "requires": { + "cacache": "^15.0.5", + "find-cache-dir": "^3.3.1", + "schema-utils": "^3.0.0", + "serialize-javascript": "^5.0.1", + "webpack-sources": "^1.4.3" + }, + "dependencies": { + "cacache": { + "version": "15.3.0", + "resolved": "https://registry.npmmirror.com/cacache/-/cacache-15.3.0.tgz", + "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", + "dev": true, + "requires": { + "@npmcli/fs": "^1.0.0", + "@npmcli/move-file": "^1.0.1", + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "glob": "^7.1.4", + "infer-owner": "^1.0.4", + "lru-cache": "^6.0.0", + "minipass": "^3.1.1", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", + "mkdirp": "^1.0.3", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.0.2", + "unique-filename": "^1.1.1" + } + }, + "chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "dev": true + }, + "find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmmirror.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + } + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmmirror.com/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + }, + "ssri": { + "version": "8.0.1", + "resolved": "https://registry.npmmirror.com/ssri/-/ssri-8.0.1.tgz", + "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", + "dev": true, + "requires": { + "minipass": "^3.1.1" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmmirror.com/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "console-browserify": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", + "dev": true + }, + "constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", + "dev": true + }, + "copy-concurrently": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/copy-concurrently/-/copy-concurrently-1.0.5.tgz", + "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", + "dev": true, + "requires": { + "aproba": "^1.1.1", + "fs-write-stream-atomic": "^1.0.8", + "iferr": "^0.1.5", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.0" + } + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==", + "dev": true + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "create-ecdh": { + "version": "4.0.4", + "resolved": "https://registry.npmmirror.com/create-ecdh/-/create-ecdh-4.0.4.tgz", + "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "elliptic": "^6.5.3" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmmirror.com/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, + "create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmmirror.com/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "crypto-browserify": { + "version": "3.12.0", + "resolved": "https://registry.npmmirror.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz", + "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "dev": true, + "requires": { + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" + } + }, + "crypto-js": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz", + "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + }, + "cyclist": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/cyclist/-/cyclist-1.0.2.tgz", + "integrity": "sha512-0sVXIohTfLqVIW3kb/0n6IiWF3Ifj5nm2XaSrLq2DI6fKIGa2fYAZdk917rUneaeLVpYfFcyXE2ft0fe3remsA==", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmmirror.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true + }, + "define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dev": true, + "requires": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + } + }, + "define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "requires": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "des.js": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/des.js/-/des.js-1.1.0.tgz", + "integrity": "sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "diffie-hellman": { + "version": "5.0.3", + "resolved": "https://registry.npmmirror.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmmirror.com/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, + "domain-browser": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true + }, + "duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmmirror.com/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "dev": true, + "requires": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "elliptic": { + "version": "6.5.4", + "resolved": "https://registry.npmmirror.com/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", + "dev": true, + "requires": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmmirror.com/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, + "emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmmirror.com/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "enhanced-resolve": { + "version": "4.5.0", + "resolved": "https://registry.npmmirror.com/enhanced-resolve/-/enhanced-resolve-4.5.0.tgz", + "integrity": "sha512-Nv9m36S/vxpsI+Hc4/ZGRs0n9mXqSWGGq49zxb/cJfPAQMbUtttJAlNPS4AQzaBdw/pKskw5bMbekT/Y7W/Wlg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "memory-fs": "^0.5.0", + "tapable": "^1.0.0" + }, + "dependencies": { + "memory-fs": { + "version": "0.5.0", + "resolved": "https://registry.npmmirror.com/memory-fs/-/memory-fs-0.5.0.tgz", + "integrity": "sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==", + "dev": true, + "requires": { + "errno": "^0.1.3", + "readable-stream": "^2.0.1" + } + } + } + }, + "errno": { + "version": "0.1.8", + "resolved": "https://registry.npmmirror.com/errno/-/errno-0.1.8.tgz", + "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", + "dev": true, + "requires": { + "prr": "~1.0.1" + } + }, + "eslint-scope": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-4.0.3.tgz", + "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", + "dev": true, + "requires": { + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmmirror.com/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true + }, + "evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, + "requires": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmmirror.com/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", + "dev": true, + "requires": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "figgy-pudding": { + "version": "3.5.2", + "resolved": "https://registry.npmmirror.com/figgy-pudding/-/figgy-pudding-3.5.2.tgz", + "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==", + "dev": true + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "find-cache-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz", + "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^2.0.0", + "pkg-dir": "^3.0.0" + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "flush-write-stream": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz", + "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "readable-stream": "^2.3.6" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmmirror.com/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", + "dev": true, + "requires": { + "map-cache": "^0.2.2" + } + }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/from2/-/from2-2.3.0.tgz", + "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, + "fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dev": true, + "requires": { + "minipass": "^3.0.0" + } + }, + "fs-write-stream-atomic": { + "version": "1.0.10", + "resolved": "https://registry.npmmirror.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", + "integrity": "sha512-gehEzmPn2nAwr39eay+x3X34Ra+M2QlVUTLhkXPjWdeO8RF9kszk116avgBJM3ZyNHgHXBNx+VmPaFC36k0PzA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "iferr": "^0.1.5", + "imurmurhash": "^0.1.4", + "readable-stream": "1 || 2" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true + }, + "get-intrinsic": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", + "dev": true, + "requires": { + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + } + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmmirror.com/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", + "dev": true + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "optional": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.3" + } + }, + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "dev": true, + "requires": { + "get-intrinsic": "^1.2.2" + } + }, + "has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", + "dev": true, + "requires": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "hash-base": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/hash-base/-/hash-base-3.1.0.tgz", + "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", + "dev": true, + "requires": { + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, + "hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmmirror.com/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "requires": { + "function-bind": "^1.1.2" + } + }, + "hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "dev": true, + "requires": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", + "dev": true + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true + }, + "iferr": { + "version": "0.1.5", + "resolved": "https://registry.npmmirror.com/iferr/-/iferr-0.1.5.tgz", + "integrity": "sha512-DUNFN5j7Tln0D+TxzloUjKB+CtVu6myn0JEFak6dG18mNt9YkQ6lzGCdafwofISZ1lLF3xRHJ98VKy9ynkcFaA==", + "dev": true + }, + "image-tools": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/image-tools/-/image-tools-1.4.0.tgz", + "integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ==" + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true + }, + "infer-owner": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/infer-owner/-/infer-owner-1.0.4.tgz", + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmmirror.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "optional": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "optional": true + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "optional": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, + "is-wsl": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true + }, + "jsencrypt": { + "version": "3.3.1", + "resolved": "https://registry.npmmirror.com/jsencrypt/-/jsencrypt-3.3.1.tgz", + "integrity": "sha512-dVvV54GdFuJgmEKn+oBiaifDMen4p6o6j/lJh0OVMcouME8sST0bJ7bldIgKBQk4za0zyGn0/pm4vOznR25mLw==" + }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json5": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "loader-runner": { + "version": "2.4.0", + "resolved": "https://registry.npmmirror.com/loader-runner/-/loader-runner-2.4.0.tgz", + "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", + "dev": true + }, + "loader-utils": { + "version": "1.4.2", + "resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-1.4.2.tgz", + "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmmirror.com/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", + "dev": true, + "requires": { + "object-visit": "^1.0.0" + } + }, + "md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmmirror.com/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "memory-fs": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/memory-fs/-/memory-fs-0.4.1.tgz", + "integrity": "sha512-cda4JKCxReDXFXRqOHPQscuIYg1PvxbE2S2GP45rnwfEK+vZaXC8C1OFvdHIbgw0DLzowXGVoxLaAmlgRy14GQ==", + "dev": true, + "requires": { + "errno": "^0.1.3", + "readable-stream": "^2.0.1" + } + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmmirror.com/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmmirror.com/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", + "dev": true + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true + }, + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmmirror.com/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + }, + "dependencies": { + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "minipass-collect": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/minipass-collect/-/minipass-collect-1.0.2.tgz", + "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", + "dev": true, + "requires": { + "minipass": "^3.0.0" + } + }, + "minipass-flush": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/minipass-flush/-/minipass-flush-1.0.5.tgz", + "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", + "dev": true, + "requires": { + "minipass": "^3.0.0" + } + }, + "minipass-pipeline": { + "version": "1.2.4", + "resolved": "https://registry.npmmirror.com/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", + "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", + "dev": true, + "requires": { + "minipass": "^3.0.0" + } + }, + "minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dev": true, + "requires": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "dependencies": { + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "mississippi": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/mississippi/-/mississippi-3.0.0.tgz", + "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==", + "dev": true, + "requires": { + "concat-stream": "^1.5.0", + "duplexify": "^3.4.2", + "end-of-stream": "^1.1.0", + "flush-write-stream": "^1.0.0", + "from2": "^2.1.0", + "parallel-transform": "^1.1.0", + "pump": "^3.0.0", + "pumpify": "^1.3.3", + "stream-each": "^1.1.0", + "through2": "^2.0.0" + } + }, + "mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmmirror.com/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "requires": { + "minimist": "^1.2.6" + } + }, + "move-concurrently": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/move-concurrently/-/move-concurrently-1.0.1.tgz", + "integrity": "sha512-hdrFxZOycD/g6A6SoI2bB5NA/5NEqD0569+S47WZhPvm46sD50ZHdYaFmnua5lndde9rCHGjmfK7Z8BuCt/PcQ==", + "dev": true, + "requires": { + "aproba": "^1.1.1", + "copy-concurrently": "^1.0.0", + "fs-write-stream-atomic": "^1.0.8", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.3" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmmirror.com/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmmirror.com/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node-libs-browser": { + "version": "2.2.1", + "resolved": "https://registry.npmmirror.com/node-libs-browser/-/node-libs-browser-2.2.1.tgz", + "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", + "dev": true, + "requires": { + "assert": "^1.1.1", + "browserify-zlib": "^0.2.0", + "buffer": "^4.3.0", + "console-browserify": "^1.1.0", + "constants-browserify": "^1.0.0", + "crypto-browserify": "^3.11.0", + "domain-browser": "^1.1.1", + "events": "^3.0.0", + "https-browserify": "^1.0.0", + "os-browserify": "^0.3.0", + "path-browserify": "0.0.1", + "process": "^0.11.10", + "punycode": "^1.2.4", + "querystring-es3": "^0.2.0", + "readable-stream": "^2.3.3", + "stream-browserify": "^2.0.1", + "stream-http": "^2.7.2", + "string_decoder": "^1.0.0", + "timers-browserify": "^2.0.4", + "tty-browserify": "0.0.0", + "url": "^0.11.0", + "util": "^0.11.0", + "vm-browserify": "^1.0.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmmirror.com/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + } + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "optional": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", + "dev": true, + "requires": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "dev": true + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", + "dev": true, + "requires": { + "isobject": "^3.0.0" + } + }, + "object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmmirror.com/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==", + "dev": true + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "requires": { + "aggregate-error": "^3.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "pako": { + "version": "1.0.11", + "resolved": "https://registry.npmmirror.com/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "dev": true + }, + "parallel-transform": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/parallel-transform/-/parallel-transform-1.2.0.tgz", + "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==", + "dev": true, + "requires": { + "cyclist": "^1.0.1", + "inherits": "^2.0.3", + "readable-stream": "^2.1.5" + } + }, + "parse-asn1": { + "version": "5.1.6", + "resolved": "https://registry.npmmirror.com/parse-asn1/-/parse-asn1-5.1.6.tgz", + "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", + "dev": true, + "requires": { + "asn1.js": "^5.2.0", + "browserify-aes": "^1.0.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3", + "safe-buffer": "^5.1.1" + } + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", + "dev": true + }, + "path-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmmirror.com/path-browserify/-/path-browserify-0.0.1.tgz", + "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", + "dev": true + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q==", + "dev": true, + "optional": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true + }, + "pbkdf2": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/pbkdf2/-/pbkdf2-3.1.2.tgz", + "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", + "dev": true, + "requires": { + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "optional": true + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmmirror.com/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + }, + "pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, + "requires": { + "find-up": "^3.0.0" + } + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", + "dev": true + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmmirror.com/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", + "dev": true + }, + "prr": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/prr/-/prr-1.0.1.tgz", + "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", + "dev": true + }, + "public-encrypt": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmmirror.com/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "pumpify": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/pumpify/-/pumpify-1.5.1.tgz", + "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "dev": true, + "requires": { + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" + }, + "dependencies": { + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + } + } + }, + "punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true + }, + "qs": { + "version": "6.11.2", + "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.2.tgz", + "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", + "dev": true, + "requires": { + "side-channel": "^1.0.4" + } + }, + "querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmmirror.com/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==", + "dev": true + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "dev": true, + "requires": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" + } + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "optional": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", + "dev": true, + "optional": true + }, + "repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmmirror.com/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmmirror.com/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", + "dev": true + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmmirror.com/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "ripemd160": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, + "run-queue": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/run-queue/-/run-queue-1.0.3.tgz", + "integrity": "sha512-ntymy489o0/QQplUDnpYAYUsO50K9SBrIVaKCWDOJzYJts0f9WH9RFJkyagebkw5+y1oi00R7ynNW/d12GBumg==", + "dev": true, + "requires": { + "aproba": "^1.1.1" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "dev": true, + "requires": { + "ret": "~0.1.10" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmmirror.com/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true + }, + "serialize-javascript": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/serialize-javascript/-/serialize-javascript-5.0.1.tgz", + "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, + "set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dev": true, + "requires": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + } + }, + "set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", + "dev": true + }, + "sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmmirror.com/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmmirror.com/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "requires": { + "kind-of": "^3.2.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "source-list-map": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/source-list-map/-/source-list-map-2.0.1.tgz", + "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true + }, + "source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmmirror.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "dev": true, + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "dev": true + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.0" + } + }, + "ssri": { + "version": "6.0.2", + "resolved": "https://registry.npmmirror.com/ssri/-/ssri-6.0.2.tgz", + "integrity": "sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==", + "dev": true, + "requires": { + "figgy-pudding": "^3.5.1" + } + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", + "dev": true, + "requires": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "stream-browserify": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/stream-browserify/-/stream-browserify-2.0.2.tgz", + "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", + "dev": true, + "requires": { + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" + } + }, + "stream-each": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/stream-each/-/stream-each-1.2.3.tgz", + "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "stream-shift": "^1.0.0" + } + }, + "stream-http": { + "version": "2.8.3", + "resolved": "https://registry.npmmirror.com/stream-http/-/stream-http-2.8.3.tgz", + "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", + "dev": true, + "requires": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.3.6", + "to-arraybuffer": "^1.0.0", + "xtend": "^4.0.0" + } + }, + "stream-shift": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/stream-shift/-/stream-shift-1.0.1.tgz", + "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "tapable": { + "version": "1.1.3", + "resolved": "https://registry.npmmirror.com/tapable/-/tapable-1.1.3.tgz", + "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", + "dev": true + }, + "tar": { + "version": "6.2.0", + "resolved": "https://registry.npmmirror.com/tar/-/tar-6.2.0.tgz", + "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==", + "dev": true, + "requires": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "dependencies": { + "chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "dev": true + }, + "minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "dev": true + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "terser": { + "version": "4.8.1", + "resolved": "https://registry.npmmirror.com/terser/-/terser-4.8.1.tgz", + "integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==", + "dev": true, + "requires": { + "commander": "^2.20.0", + "source-map": "~0.6.1", + "source-map-support": "~0.5.12" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "terser-webpack-plugin": { + "version": "1.4.5", + "resolved": "https://registry.npmmirror.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.5.tgz", + "integrity": "sha512-04Rfe496lN8EYruwi6oPQkG0vo8C+HT49X687FZnpPF0qMAIHONI6HEXYPKDOE8e5HjXTyKfqRd/agHtH0kOtw==", + "dev": true, + "requires": { + "cacache": "^12.0.2", + "find-cache-dir": "^2.1.0", + "is-wsl": "^1.1.0", + "schema-utils": "^1.0.0", + "serialize-javascript": "^4.0.0", + "source-map": "^0.6.1", + "terser": "^4.1.2", + "webpack-sources": "^1.4.0", + "worker-farm": "^1.7.0" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmmirror.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + }, + "serialize-javascript": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz", + "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "timers-browserify": { + "version": "2.0.12", + "resolved": "https://registry.npmmirror.com/timers-browserify/-/timers-browserify-2.0.12.tgz", + "integrity": "sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==", + "dev": true, + "requires": { + "setimmediate": "^1.0.4" + } + }, + "to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA==", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, + "tty-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmmirror.com/tty-browserify/-/tty-browserify-0.0.0.tgz", + "integrity": "sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==", + "dev": true + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmmirror.com/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true + }, + "union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + } + }, + "unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "dev": true, + "requires": { + "unique-slug": "^2.0.0" + } + }, + "unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4" + } + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", + "dev": true, + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmmirror.com/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", + "dev": true, + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", + "dev": true + } + } + }, + "upath": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", + "dev": true, + "optional": true + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/urix/-/urix-0.1.0.tgz", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", + "dev": true + }, + "url": { + "version": "0.11.3", + "resolved": "https://registry.npmmirror.com/url/-/url-0.11.3.tgz", + "integrity": "sha512-6hxOLGfZASQK/cijlZnZJTq8OXAkt/3YGfQX45vvMYXpZoo8NdWZcY73K108Jf759lS1Bv/8wXnHDTSz17dSRw==", + "dev": true, + "requires": { + "punycode": "^1.4.1", + "qs": "^6.11.2" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmmirror.com/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + } + } + }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true + }, + "util": { + "version": "0.11.1", + "resolved": "https://registry.npmmirror.com/util/-/util-0.11.1.tgz", + "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", + "dev": true, + "requires": { + "inherits": "2.0.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + } + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "vm-browserify": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", + "dev": true + }, + "watchpack": { + "version": "1.7.5", + "resolved": "https://registry.npmmirror.com/watchpack/-/watchpack-1.7.5.tgz", + "integrity": "sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTPxPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==", + "dev": true, + "requires": { + "chokidar": "^3.4.1", + "graceful-fs": "^4.1.2", + "neo-async": "^2.5.0", + "watchpack-chokidar2": "^2.0.1" + } + }, + "watchpack-chokidar2": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/watchpack-chokidar2/-/watchpack-chokidar2-2.0.1.tgz", + "integrity": "sha512-nCFfBIPKr5Sh61s4LPpy1Wtfi0HE8isJ3d2Yb5/Ppw2P2B/3eVSEBjKfN0fmHJSK14+31KwMKmcrzs2GM4P0Ww==", + "dev": true, + "optional": true, + "requires": { + "chokidar": "^2.1.8" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "optional": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + }, + "dependencies": { + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "optional": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + } + } + }, + "binary-extensions": { + "version": "1.13.1", + "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-1.13.1.tgz", + "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", + "dev": true, + "optional": true + }, + "chokidar": { + "version": "2.1.8", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-2.1.8.tgz", + "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "dev": true, + "optional": true, + "requires": { + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "fsevents": "^1.2.7", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" + } + }, + "fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "dev": true, + "optional": true + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", + "dev": true, + "optional": true, + "requires": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "dev": true, + "optional": true, + "requires": { + "is-extglob": "^2.1.0" + } + } + } + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha512-9fRVlXc0uCxEDj1nQzaWONSpbTfx0FmJfzHF7pwlI8DkWGoHBBea4Pg5Ky0ojwwxQmnSifgbKkI06Qv0Ljgj+Q==", + "dev": true, + "optional": true, + "requires": { + "binary-extensions": "^1.0.0" + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "optional": true, + "requires": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + } + } + } + }, + "webpack": { + "version": "4.46.0", + "resolved": "https://registry.npmmirror.com/webpack/-/webpack-4.46.0.tgz", + "integrity": "sha512-6jJuJjg8znb/xRItk7bkT0+Q7AHCYjjFnvKIWQPkNIOyRqoCGvkOs0ipeQzrqz4l5FtN5ZI/ukEHroeX/o1/5Q==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-module-context": "1.9.0", + "@webassemblyjs/wasm-edit": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0", + "acorn": "^6.4.1", + "ajv": "^6.10.2", + "ajv-keywords": "^3.4.1", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^4.5.0", + "eslint-scope": "^4.0.3", + "json-parse-better-errors": "^1.0.2", + "loader-runner": "^2.4.0", + "loader-utils": "^1.2.3", + "memory-fs": "^0.4.1", + "micromatch": "^3.1.10", + "mkdirp": "^0.5.3", + "neo-async": "^2.6.1", + "node-libs-browser": "^2.2.1", + "schema-utils": "^1.0.0", + "tapable": "^1.1.3", + "terser-webpack-plugin": "^1.4.3", + "watchpack": "^1.7.4", + "webpack-sources": "^1.4.1" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmmirror.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + } + } + }, + "webpack-sources": { + "version": "1.4.3", + "resolved": "https://registry.npmmirror.com/webpack-sources/-/webpack-sources-1.4.3.tgz", + "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", + "dev": true, + "requires": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "worker-farm": { + "version": "1.7.0", + "resolved": "https://registry.npmmirror.com/worker-farm/-/worker-farm-1.7.0.tgz", + "integrity": "sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw==", + "dev": true, + "requires": { + "errno": "~0.1.7" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..8803ec6 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "honenery", + "version": "2.3.2", + "description": "Honenery 移动端快速开发框架", + "main": "main.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "", + "url": "" + }, + "keywords": [], + "author": "bpchow", + "license": "MIT", + "homepage": "", + "dependencies": { + "@dcloudio/uni-helper-json": "^1.0.13", + "crypto-js": "^4.1.1", + "image-tools": "^1.4.0", + "jsencrypt": "^3.3.1" + }, + "devDependencies": { + "compression-webpack-plugin": "^6.1.1", + "webpack": "^4.46.0" + } +} diff --git a/pages.json b/pages.json new file mode 100644 index 0000000..845a8ba --- /dev/null +++ b/pages.json @@ -0,0 +1,186 @@ +{ + "easycom": { + "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" + }, + "pages": [{ + "path": "pages/login/index", + "style": { + "navigationBarTitleText": "登录", + "navigationStyle": "custom" + } + }, + { + "path": "pages/tabbar/dashboard", + "style": { + "navigationBarTitleText": "电站", + "navigationStyle": "custom" + } + }, + { + "path": "pages/tabbar/electricityPrice", + "style": { + "navigationBarTitleText": "全国电价", + "navigationStyle": "custom" + } + }, + { + "path": "pages/tabbar/mine", + "style": { + "navigationBarTitleText": "我", + "navigationStyle": "custom" + } + }, + { + "path": "pages/guest/index", + "style": { + "navigationBarTitleText": "游客模式", + "navigationStyle": "custom" + } + } + ], + "subPackages": [{ + "root": "pages/home-page", + "pages": [{ + "path": "alarm/index", + "style": { + "navigationBarTitleText": "告警", + "navigationStyle": "custom" + } + }, + { + "path": "device-detail/index", + "style": { + "navigationBarTitleText": "设备", + "navigationStyle": "custom" + } + }, + { + "path": "device-list/index", + "style": { + "navigationBarTitleText": "设备", + "navigationStyle": "custom" + } + }, + { + "path": "earnings/index", + "style": { + "navigationBarTitleText": "收益报表", + "navigationStyle": "custom" + } + }, + { + "path": "policy-management/index", + "style": { + "navigationBarTitleText": "策略", + "navigationStyle": "custom" + } + } + ] + }, + + { + "root": "pages/sys/user", + "pages": [{ + "path": "setting", + "style": { + "navigationBarTitleText": "系统设置", + "navigationBarBackgroundColor": "#0ea17e", + "navigationBarTextStyle": "white", + "enablePullDownRefresh": false, + "disableScroll": true + } + }, + { + "path": "pwd", + "style": { + "navigationBarTitleText": "账号安全", + "navigationBarBackgroundColor": "#0ea17e", + "navigationBarTextStyle": "white", + "enablePullDownRefresh": false, + "disableScroll": true + } + }, + { + "path": "about", + "style": { + "navigationBarTitleText": "关于我们", + "navigationBarBackgroundColor": "#0ea17e", + "navigationBarTextStyle": "white", + "enablePullDownRefresh": false, + "disableScroll": true + } + }, + { + "path": "currency", + "style": { + "navigationBarTitleText": "通用", + "navigationBarBackgroundColor": "#0ea17e", + "navigationBarTextStyle": "white", + "enablePullDownRefresh": false, + "disableScroll": true + } + }, + { + "path": "message", + "style": { + "navigationBarTitleText": "消息通知", + "navigationBarBackgroundColor": "#0ea17e", + "navigationBarTextStyle": "white", + "enablePullDownRefresh": false, + "disableScroll": true + } + } + ] + } + ], + "preloadRule": { + "pages/tabbar/dashboard": { + "network": "all", + "packages": [ + "__APP__" + ] + }, + "pages/tabbar/mine": { + "network": "all", + "packages": [ + "__APP__" + ] + }, + "pages/tabbar/electricityPrice": { + "network": "all", + "packages": [ + "__APP__" + ] + } + }, + "globalStyle": { + "navigationBarTextStyle": "white", + "navigationBarTitleText": "Aidex", + "navigationBarBackgroundColor": "#4094ff" + }, + "tabBar": { + "color": "#909399", + "selectedColor": "#303133", + "backgroundColor": "#FFFFFF", + "borderStyle": "black", + "list": [{ + "pagePath": "pages/tabbar/dashboard", + "iconPath": "static/aidex/images/Data.png", + "selectedIconPath": "static/aidex/images/Data-fill.png", + "text": "电站" + }, + { + "pagePath": "pages/tabbar/electricityPrice", + "iconPath": "static/aidex/images/Price.png", + "selectedIconPath": "static/aidex/images/Price-fill.png", + "text": "全国电价" + }, + { + "pagePath": "pages/tabbar/mine", + "iconPath": "static/aidex/images/My.png", + "selectedIconPath": "static/aidex/images/My-fill.png", + "text": "我" + } + ] + } +} \ No newline at end of file diff --git a/pages/guest/index.vue b/pages/guest/index.vue new file mode 100644 index 0000000..c296034 --- /dev/null +++ b/pages/guest/index.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/pages/home-page/alarm/components/alarmevent.vue b/pages/home-page/alarm/components/alarmevent.vue new file mode 100644 index 0000000..3e3d231 --- /dev/null +++ b/pages/home-page/alarm/components/alarmevent.vue @@ -0,0 +1,152 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/alarm/components/tki-tree/style.css b/pages/home-page/alarm/components/tki-tree/style.css new file mode 100644 index 0000000..cb997b8 --- /dev/null +++ b/pages/home-page/alarm/components/tki-tree/style.css @@ -0,0 +1,151 @@ +.tki-tree-mask { + position: fixed; + top: 0rpx; + right: 0rpx; + bottom: 0rpx; + left: 0rpx; + z-index: 9998; + background-color: rgba(0, 0, 0, 0.6); + opacity: 0; + transition: all 0.3s ease; + visibility: hidden; +} +.tki-tree-mask.show { + visibility: visible; + opacity: 1; +} +.tki-tree-cnt { + position: fixed; + top: 0rpx; + right: 0rpx; + bottom: 0rpx; + left: 0rpx; + z-index: 9999; + top: 160rpx; + transition: all 0.3s ease; + transform: translateY(100%); +} +.tki-tree-cnt.show { + transform: translateY(0); +} +.tki-tree-bar { + background-color: #fff; + height: 72rpx; + padding-left: 20rpx; + padding-right: 20rpx; + display: flex; + justify-content: space-between; + align-items: center; + box-sizing: border-box; + border-bottom-width: 1rpx !important; + border-bottom-style: solid; + border-bottom-color: #f5f5f5; + font-size: 32rpx; + color: #757575; + line-height: 1; +} +.tki-tree-bar-confirm { + color: #07bb07; +} +.tki-tree-view { + position: absolute; + top: 0rpx; + right: 0rpx; + bottom: 0rpx; + left: 0rpx; + top: 72rpx; + background-color: #fff; + padding-top: 20rpx; + padding-right: 20rpx; + padding-bottom: 20rpx; + padding-left: 20rpx; +} +.tki-tree-view-sc { + height: 100%; + overflow: hidden; +} +.tki-tree-item { + display: flex; + justify-content: space-between; + align-items: center; + font-size: 26rpx; + color: #757575; + line-height: 1; + height: 0; + opacity: 0; + transition: 0.2s; + position: relative; + overflow: hidden; +} +.tki-tree-item.show { + height: 80rpx; + opacity: 1; +} +.tki-tree-item.showchild:before { + transform: rotate(90deg); +} +.tki-tree-item.last:before { + opacity: 0; +} +.tki-tree-icon { + width: 26rpx; + height: 26rpx; + margin-right: 8rpx; +} +.tki-tree-label { + flex: 1; + display: flex; + align-items: center; + height: 100%; + line-height: 1.2; +} +.tki-tree-check { + width: 40px; + height: 40px; + display: flex; + justify-content: center; + align-items: center; +} +.tki-tree-check-yes, +.tki-tree-check-no { + width: 20px; + height: 20px; + border-top-left-radius: 20%; + border-top-right-radius: 20%; + border-bottom-right-radius: 20%; + border-bottom-left-radius: 20%; + border-top-width: 1rpx; + border-left-width: 1rpx; + border-bottom-width: 1rpx; + border-right-width: 1rpx; + border-style: solid; + border-color: #07bb07; + display: flex; + justify-content: center; + align-items: center; + box-sizing: border-box; +} +.tki-tree-check-yes-b { + width: 12px; + height: 12px; + border-top-left-radius: 20%; + border-top-right-radius: 20%; + border-bottom-right-radius: 20%; + border-bottom-left-radius: 20%; + background-color: #07bb07; +} +.tki-tree-check .radio { + border-top-left-radius: 50%; + border-top-right-radius: 50%; + border-bottom-right-radius: 50%; + border-bottom-left-radius: 50%; +} +.tki-tree-check .radio .tki-tree-check-yes-b { + border-top-left-radius: 50%; + border-top-right-radius: 50%; + border-bottom-right-radius: 50%; + border-bottom-left-radius: 50%; +} +.hover-c { + opacity: 0.6; +} diff --git a/pages/home-page/alarm/components/tki-tree/tki-tree.vue b/pages/home-page/alarm/components/tki-tree/tki-tree.vue new file mode 100644 index 0000000..d88496e --- /dev/null +++ b/pages/home-page/alarm/components/tki-tree/tki-tree.vue @@ -0,0 +1,329 @@ + + + + + diff --git a/pages/home-page/alarm/index.vue b/pages/home-page/alarm/index.vue new file mode 100644 index 0000000..4bebda3 --- /dev/null +++ b/pages/home-page/alarm/index.vue @@ -0,0 +1,723 @@ + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/air.vue b/pages/home-page/device-detail/components/air.vue new file mode 100644 index 0000000..1969e79 --- /dev/null +++ b/pages/home-page/device-detail/components/air.vue @@ -0,0 +1,660 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/ammeter.vue b/pages/home-page/device-detail/components/ammeter.vue new file mode 100644 index 0000000..3c613e1 --- /dev/null +++ b/pages/home-page/device-detail/components/ammeter.vue @@ -0,0 +1,1358 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/cluster.vue b/pages/home-page/device-detail/components/cluster.vue new file mode 100644 index 0000000..ea3572f --- /dev/null +++ b/pages/home-page/device-detail/components/cluster.vue @@ -0,0 +1,899 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/emu.vue b/pages/home-page/device-detail/components/emu.vue new file mode 100644 index 0000000..b924431 --- /dev/null +++ b/pages/home-page/device-detail/components/emu.vue @@ -0,0 +1,849 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/jingke-pcs.vue b/pages/home-page/device-detail/components/jingke-pcs.vue new file mode 100644 index 0000000..851bccf --- /dev/null +++ b/pages/home-page/device-detail/components/jingke-pcs.vue @@ -0,0 +1,963 @@ + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/jingke-stack.vue b/pages/home-page/device-detail/components/jingke-stack.vue new file mode 100644 index 0000000..b42c2d8 --- /dev/null +++ b/pages/home-page/device-detail/components/jingke-stack.vue @@ -0,0 +1,856 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/pack.vue b/pages/home-page/device-detail/components/pack.vue new file mode 100644 index 0000000..ee78fab --- /dev/null +++ b/pages/home-page/device-detail/components/pack.vue @@ -0,0 +1,747 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/pcs.vue b/pages/home-page/device-detail/components/pcs.vue new file mode 100644 index 0000000..4e7bfc0 --- /dev/null +++ b/pages/home-page/device-detail/components/pcs.vue @@ -0,0 +1,994 @@ + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/stack.vue b/pages/home-page/device-detail/components/stack.vue new file mode 100644 index 0000000..1f9dbc2 --- /dev/null +++ b/pages/home-page/device-detail/components/stack.vue @@ -0,0 +1,962 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/yc.vue b/pages/home-page/device-detail/components/yc.vue new file mode 100644 index 0000000..4e72fc1 --- /dev/null +++ b/pages/home-page/device-detail/components/yc.vue @@ -0,0 +1,166 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/components/yx.vue b/pages/home-page/device-detail/components/yx.vue new file mode 100644 index 0000000..5fc1fed --- /dev/null +++ b/pages/home-page/device-detail/components/yx.vue @@ -0,0 +1,165 @@ + + + + + \ No newline at end of file diff --git a/pages/home-page/device-detail/index.vue b/pages/home-page/device-detail/index.vue new file mode 100644 index 0000000..d034c19 --- /dev/null +++ b/pages/home-page/device-detail/index.vue @@ -0,0 +1,344 @@ + + + + + + \ No newline at end of file diff --git a/pages/home-page/device-list/index.vue b/pages/home-page/device-list/index.vue new file mode 100644 index 0000000..387eada --- /dev/null +++ b/pages/home-page/device-list/index.vue @@ -0,0 +1,147 @@ + + + + + + \ No newline at end of file diff --git a/pages/home-page/earnings/index.vue b/pages/home-page/earnings/index.vue new file mode 100644 index 0000000..53b559c --- /dev/null +++ b/pages/home-page/earnings/index.vue @@ -0,0 +1,801 @@ + + + \ No newline at end of file diff --git a/pages/home-page/policy-management/index.vue b/pages/home-page/policy-management/index.vue new file mode 100644 index 0000000..4cfa938 --- /dev/null +++ b/pages/home-page/policy-management/index.vue @@ -0,0 +1,823 @@ + + + + + \ No newline at end of file diff --git a/pages/login/components/dialog.vue b/pages/login/components/dialog.vue new file mode 100644 index 0000000..e137005 --- /dev/null +++ b/pages/login/components/dialog.vue @@ -0,0 +1,194 @@ + + + + + \ No newline at end of file diff --git a/pages/login/index.scss b/pages/login/index.scss new file mode 100644 index 0000000..fa3dbdb --- /dev/null +++ b/pages/login/index.scss @@ -0,0 +1,162 @@ +.wrap { + width: 100%; + height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + .EnglishFont{ + font-size: 36rpx; + font-weight: 600; + margin-top: 60rpx; + margin-bottom: 40rpx; + // display: flex; + // align-items: center; + } +} + + + +.list-call-password { + padding-top: 10rpx; + height: 120rpx; + font-weight: normal; + color: #333333; + position: relative; +} + + + +.list-call-user .u-input { + + font-size: 30rpx; + width: 100%; + height: 110rpx; + text-indent: 2%; + border: 1px solid #00CA9A; +} + +.zhanghao{ + color: #282828; + margin-bottom: 10rpx; +} + +.list-call-password .u-input { + + font-size: 30rpx; + width: 100%; + height: 110rpx; + text-indent: 2%; + border: 1px solid #00CA9A; + +} + + +.list-call-password .u-icon-right { + position: absolute; + right: 20rpx; + color: #aaaaaa; + width: 40rpx; + height: 40rpx; + // z-index: 3; +} + +.button { + color: #fff; + font-size: 35rpx; + width: 603rpx; + height: 95rpx; + background: #009C77; + box-shadow: 0rpx 0rpx 13rpx 0rpx rgba(15, 168, 250, 0.4); + border-radius: 10rpx; + line-height: 95rpx; + text-align: center; + margin: 50rpx 75rpx 0rpx 75rpx; +} + +.logo { + width: 100%; + height: 400rpx; + border-radius: 0 0 50% 50%; + background-color: #069E7A; + +} +.center-logo{ + width: 410rpx; + height: 230rpx; + top: 100rpx; + position: absolute; + +} + +.user-card { + width: 80%; + padding: 30rpx 0; + // box-shadow: 10rpx 10rpx 45rpx #888888; + border-radius: 8px; + display: flex; + flex-direction: column; + justify-content: space-evenly; +} + +.list { + color: #939393; + + .list-call-user { + display: flex; + align-items: center; + border-bottom: 1rpx solid #f5f5f5; + width: 100%; + height: 89rpx; + position: relative; + margin-bottom: 30rpx; + .u-icon-delete { + position: absolute; + right: 20rpx; + color: #aaaaaa; + width: 40rpx; + height: 40rpx; + } + input { + height: 90rpx; + border-radius: 10rpx; + padding-left: 10rpx; + box-shadow: 0px 4px 16rpx rgba(0, 0, 0, 0.1); + } + .user-icon { + width: 36rpx; + height: 39rpx; + } + } + .list-call-password { + display: flex; + align-items: center; + border-bottom: 1rpx solid #f5f5f5; + width: 100%; + height: 89rpx; + position: relative; + + + input { + height: 90rpx; + color: #939393; + border-radius: 10rpx; + padding-left: 10rpx; + box-shadow: 0px 4px 16rpx rgba(0, 0, 0, 0.1); + } + + .password-icon { + width: 36rpx; + height: 42rpx; + } + } +} + + +.list-call-icon { + color: #ff0000; +} + + +.u-tabs { + padding: 0 70rpx; +} diff --git a/pages/login/index.vue b/pages/login/index.vue new file mode 100644 index 0000000..5092291 --- /dev/null +++ b/pages/login/index.vue @@ -0,0 +1,546 @@ + + + \ No newline at end of file diff --git a/pages/sys/user/about.vue b/pages/sys/user/about.vue new file mode 100644 index 0000000..7140eba --- /dev/null +++ b/pages/sys/user/about.vue @@ -0,0 +1,114 @@ + + + diff --git a/pages/sys/user/currency.vue b/pages/sys/user/currency.vue new file mode 100644 index 0000000..9fb97f7 --- /dev/null +++ b/pages/sys/user/currency.vue @@ -0,0 +1,98 @@ + + + diff --git a/pages/sys/user/info.vue b/pages/sys/user/info.vue new file mode 100644 index 0000000..af90958 --- /dev/null +++ b/pages/sys/user/info.vue @@ -0,0 +1,205 @@ + + + diff --git a/pages/sys/user/message.vue b/pages/sys/user/message.vue new file mode 100644 index 0000000..78b7da6 --- /dev/null +++ b/pages/sys/user/message.vue @@ -0,0 +1,180 @@ + + + + + \ No newline at end of file diff --git a/pages/sys/user/pwd.vue b/pages/sys/user/pwd.vue new file mode 100644 index 0000000..e37b595 --- /dev/null +++ b/pages/sys/user/pwd.vue @@ -0,0 +1,176 @@ + + + diff --git a/pages/sys/user/setting.vue b/pages/sys/user/setting.vue new file mode 100644 index 0000000..5de7b75 --- /dev/null +++ b/pages/sys/user/setting.vue @@ -0,0 +1,116 @@ + + + diff --git a/pages/tabbar/components/dischargeChart/index.vue b/pages/tabbar/components/dischargeChart/index.vue new file mode 100644 index 0000000..bc209be --- /dev/null +++ b/pages/tabbar/components/dischargeChart/index.vue @@ -0,0 +1,244 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/environmentalControl/index.vue b/pages/tabbar/components/environmentalControl/index.vue new file mode 100644 index 0000000..0e2f793 --- /dev/null +++ b/pages/tabbar/components/environmentalControl/index.vue @@ -0,0 +1,186 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/environmentalControl/position.vue b/pages/tabbar/components/environmentalControl/position.vue new file mode 100644 index 0000000..c9f79ad --- /dev/null +++ b/pages/tabbar/components/environmentalControl/position.vue @@ -0,0 +1,186 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/runChart/index.vue b/pages/tabbar/components/runChart/index.vue new file mode 100644 index 0000000..8c89eda --- /dev/null +++ b/pages/tabbar/components/runChart/index.vue @@ -0,0 +1,351 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/stationData/common.vue b/pages/tabbar/components/stationData/common.vue new file mode 100644 index 0000000..d15b892 --- /dev/null +++ b/pages/tabbar/components/stationData/common.vue @@ -0,0 +1,211 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/stationData/style/index.css b/pages/tabbar/components/stationData/style/index.css new file mode 100644 index 0000000..02b7606 --- /dev/null +++ b/pages/tabbar/components/stationData/style/index.css @@ -0,0 +1,96 @@ +.warp { + width: 100%; + display: flex; + flex-wrap: wrap; + position: relative; + + + +} + +.group-box { + display: flex; + flex-direction: column; + align-items: center; + width: 199rpx; + justify-content: center; + padding: 10rpx; + background: #d7e9e548; + border-radius: 10rpx; + margin: 10rpx 10rpx; + +} + +.group-item { + display: flex; + flex-direction: column; + align-items: center; + width: 199rpx; + + justify-content: center; + background: #d7e9e548; + border-radius: 10rpx; + margin: 10rpx 10rpx; + position: relative; + padding: 10rpx 0; + +} + + + + +.history-icon { + position: absolute; + right: 0rpx; + top: 0rpx; +} + +.item-con { + display: flex; + flex-direction: column; + align-items: center; + // margin-left: 15rpx; + width: 100%; + +} + +.item-title { + width: 100%; + font-size: 24rpx; + color: #2a2a2a; + margin-top: 10rpx; + text-align: center; + /* white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; */ +} + +image { + width: 40rpx; + height: 40rpx; +} + +.item-num { + font-size: 36rpx; + color: #282828; + font-weight: bold; + max-width: 90%; + text-align: center; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.item-unit { + color: #cccccc; + font-size: 16rpx; + padding-left: 10rpx; +} + +.padding-top-30 { + padding-top: 30rpx; +} + +.padding-bottom-30 { + padding-bottom: 30rpx; +} \ No newline at end of file diff --git a/pages/tabbar/components/stationData/wsh.vue b/pages/tabbar/components/stationData/wsh.vue new file mode 100644 index 0000000..771b131 --- /dev/null +++ b/pages/tabbar/components/stationData/wsh.vue @@ -0,0 +1,205 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/stationData/zzhb.vue b/pages/tabbar/components/stationData/zzhb.vue new file mode 100644 index 0000000..6268bf1 --- /dev/null +++ b/pages/tabbar/components/stationData/zzhb.vue @@ -0,0 +1,206 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/cixi.vue b/pages/tabbar/components/topology/cixi.vue new file mode 100644 index 0000000..2690a85 --- /dev/null +++ b/pages/tabbar/components/topology/cixi.vue @@ -0,0 +1,1071 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/devicemonitoring.vue b/pages/tabbar/components/topology/devicemonitoring.vue new file mode 100644 index 0000000..ffee902 --- /dev/null +++ b/pages/tabbar/components/topology/devicemonitoring.vue @@ -0,0 +1,347 @@ + + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/fire.vue b/pages/tabbar/components/topology/fire.vue new file mode 100644 index 0000000..d847713 --- /dev/null +++ b/pages/tabbar/components/topology/fire.vue @@ -0,0 +1,253 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/jingke.vue b/pages/tabbar/components/topology/jingke.vue new file mode 100644 index 0000000..6ac8e75 --- /dev/null +++ b/pages/tabbar/components/topology/jingke.vue @@ -0,0 +1,406 @@ + + + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/kejiyuan.vue b/pages/tabbar/components/topology/kejiyuan.vue new file mode 100644 index 0000000..7fd2805 --- /dev/null +++ b/pages/tabbar/components/topology/kejiyuan.vue @@ -0,0 +1,418 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/lingchao.vue b/pages/tabbar/components/topology/lingchao.vue new file mode 100644 index 0000000..6fd3239 --- /dev/null +++ b/pages/tabbar/components/topology/lingchao.vue @@ -0,0 +1,1094 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/mdPvdieseTopCenter.vue b/pages/tabbar/components/topology/mdPvdieseTopCenter.vue new file mode 100644 index 0000000..6567bfc --- /dev/null +++ b/pages/tabbar/components/topology/mdPvdieseTopCenter.vue @@ -0,0 +1,771 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/runda100.vue b/pages/tabbar/components/topology/runda100.vue new file mode 100644 index 0000000..83d863d --- /dev/null +++ b/pages/tabbar/components/topology/runda100.vue @@ -0,0 +1,616 @@ + + + + + diff --git a/pages/tabbar/components/topology/runda215.vue b/pages/tabbar/components/topology/runda215.vue new file mode 100644 index 0000000..4481ad8 --- /dev/null +++ b/pages/tabbar/components/topology/runda215.vue @@ -0,0 +1,597 @@ + + + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/runda230.vue b/pages/tabbar/components/topology/runda230.vue new file mode 100644 index 0000000..f397a4e --- /dev/null +++ b/pages/tabbar/components/topology/runda230.vue @@ -0,0 +1,448 @@ + + + + + diff --git a/pages/tabbar/components/topology/sanmenxia.vue b/pages/tabbar/components/topology/sanmenxia.vue new file mode 100644 index 0000000..8d10eeb --- /dev/null +++ b/pages/tabbar/components/topology/sanmenxia.vue @@ -0,0 +1,1371 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/second.vue b/pages/tabbar/components/topology/second.vue new file mode 100644 index 0000000..b78f901 --- /dev/null +++ b/pages/tabbar/components/topology/second.vue @@ -0,0 +1,502 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/standard.vue b/pages/tabbar/components/topology/standard.vue new file mode 100644 index 0000000..fed6cc3 --- /dev/null +++ b/pages/tabbar/components/topology/standard.vue @@ -0,0 +1,426 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/third.vue b/pages/tabbar/components/topology/third.vue new file mode 100644 index 0000000..3489814 --- /dev/null +++ b/pages/tabbar/components/topology/third.vue @@ -0,0 +1,601 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/weishanhu.vue b/pages/tabbar/components/topology/weishanhu.vue new file mode 100644 index 0000000..6e8bc61 --- /dev/null +++ b/pages/tabbar/components/topology/weishanhu.vue @@ -0,0 +1,599 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/components/topology/zhongzihuanbao.vue b/pages/tabbar/components/topology/zhongzihuanbao.vue new file mode 100644 index 0000000..a103d07 --- /dev/null +++ b/pages/tabbar/components/topology/zhongzihuanbao.vue @@ -0,0 +1,589 @@ + + + \ No newline at end of file diff --git a/pages/tabbar/dashboard.vue b/pages/tabbar/dashboard.vue new file mode 100644 index 0000000..d197ebd --- /dev/null +++ b/pages/tabbar/dashboard.vue @@ -0,0 +1,472 @@ + + + + + \ No newline at end of file diff --git a/pages/tabbar/electricityPrice.vue b/pages/tabbar/electricityPrice.vue new file mode 100644 index 0000000..b6d14a3 --- /dev/null +++ b/pages/tabbar/electricityPrice.vue @@ -0,0 +1,1248 @@ + + + + + \ No newline at end of file diff --git a/pages/tabbar/mine.vue b/pages/tabbar/mine.vue new file mode 100644 index 0000000..4e7eff3 --- /dev/null +++ b/pages/tabbar/mine.vue @@ -0,0 +1,494 @@ + + + diff --git a/static/aidex/device/air.png b/static/aidex/device/air.png new file mode 100644 index 0000000..7ae413e Binary files /dev/null and b/static/aidex/device/air.png differ diff --git a/static/aidex/device/battery.png b/static/aidex/device/battery.png new file mode 100644 index 0000000..336b03c Binary files /dev/null and b/static/aidex/device/battery.png differ diff --git a/static/aidex/device/bms.png b/static/aidex/device/bms.png new file mode 100644 index 0000000..b82824c Binary files /dev/null and b/static/aidex/device/bms.png differ diff --git a/static/aidex/device/cluster.png b/static/aidex/device/cluster.png new file mode 100644 index 0000000..f2f1b25 Binary files /dev/null and b/static/aidex/device/cluster.png differ diff --git a/static/aidex/device/emu.png b/static/aidex/device/emu.png new file mode 100644 index 0000000..56e3b15 Binary files /dev/null and b/static/aidex/device/emu.png differ diff --git a/static/aidex/device/fire.png b/static/aidex/device/fire.png new file mode 100644 index 0000000..69ff579 Binary files /dev/null and b/static/aidex/device/fire.png differ diff --git a/static/aidex/device/gui.png b/static/aidex/device/gui.png new file mode 100644 index 0000000..3bb055a Binary files /dev/null and b/static/aidex/device/gui.png differ diff --git a/static/aidex/device/other.png b/static/aidex/device/other.png new file mode 100644 index 0000000..47d267c Binary files /dev/null and b/static/aidex/device/other.png differ diff --git a/static/aidex/device/pack.png b/static/aidex/device/pack.png new file mode 100644 index 0000000..dcd5db5 Binary files /dev/null and b/static/aidex/device/pack.png differ diff --git a/static/aidex/device/pcs.png b/static/aidex/device/pcs.png new file mode 100644 index 0000000..ff4bd17 Binary files /dev/null and b/static/aidex/device/pcs.png differ diff --git a/static/aidex/device/unit.png b/static/aidex/device/unit.png new file mode 100644 index 0000000..4ae662b Binary files /dev/null and b/static/aidex/device/unit.png differ diff --git a/static/aidex/images/Data-fill.png b/static/aidex/images/Data-fill.png new file mode 100644 index 0000000..0a3301e Binary files /dev/null and b/static/aidex/images/Data-fill.png differ diff --git a/static/aidex/images/Data.png b/static/aidex/images/Data.png new file mode 100644 index 0000000..49354f1 Binary files /dev/null and b/static/aidex/images/Data.png differ diff --git a/static/aidex/images/My-fill.png b/static/aidex/images/My-fill.png new file mode 100644 index 0000000..7efe796 Binary files /dev/null and b/static/aidex/images/My-fill.png differ diff --git a/static/aidex/images/My.png b/static/aidex/images/My.png new file mode 100644 index 0000000..3618c1c Binary files /dev/null and b/static/aidex/images/My.png differ diff --git a/static/aidex/images/Price-fill.png b/static/aidex/images/Price-fill.png new file mode 100644 index 0000000..1d2cfb3 Binary files /dev/null and b/static/aidex/images/Price-fill.png differ diff --git a/static/aidex/images/Price.png b/static/aidex/images/Price.png new file mode 100644 index 0000000..20c56a7 Binary files /dev/null and b/static/aidex/images/Price.png differ diff --git a/static/aidex/images/about.png b/static/aidex/images/about.png new file mode 100644 index 0000000..a0d485b Binary files /dev/null and b/static/aidex/images/about.png differ diff --git a/static/aidex/images/account-security.png b/static/aidex/images/account-security.png new file mode 100644 index 0000000..186b7d6 Binary files /dev/null and b/static/aidex/images/account-security.png differ diff --git a/static/aidex/images/arrow-right.png b/static/aidex/images/arrow-right.png new file mode 100644 index 0000000..580e612 Binary files /dev/null and b/static/aidex/images/arrow-right.png differ diff --git a/static/aidex/images/check.png b/static/aidex/images/check.png new file mode 100644 index 0000000..6c6c04b Binary files /dev/null and b/static/aidex/images/check.png differ diff --git a/static/aidex/images/checked.png b/static/aidex/images/checked.png new file mode 100644 index 0000000..209d820 Binary files /dev/null and b/static/aidex/images/checked.png differ diff --git a/static/aidex/images/dqgl.png b/static/aidex/images/dqgl.png new file mode 100644 index 0000000..0e30145 Binary files /dev/null and b/static/aidex/images/dqgl.png differ diff --git a/static/aidex/images/edit.png b/static/aidex/images/edit.png new file mode 100644 index 0000000..7f0c7f9 Binary files /dev/null and b/static/aidex/images/edit.png differ diff --git a/static/aidex/images/history-icon.png b/static/aidex/images/history-icon.png new file mode 100644 index 0000000..667e405 Binary files /dev/null and b/static/aidex/images/history-icon.png differ diff --git a/static/aidex/images/item.png b/static/aidex/images/item.png new file mode 100644 index 0000000..3500483 Binary files /dev/null and b/static/aidex/images/item.png differ diff --git a/static/aidex/images/lang.png b/static/aidex/images/lang.png new file mode 100644 index 0000000..146f360 Binary files /dev/null and b/static/aidex/images/lang.png differ diff --git a/static/aidex/images/language.png b/static/aidex/images/language.png new file mode 100644 index 0000000..6e880c3 Binary files /dev/null and b/static/aidex/images/language.png differ diff --git a/static/aidex/images/list-icon.png b/static/aidex/images/list-icon.png new file mode 100644 index 0000000..8d424b7 Binary files /dev/null and b/static/aidex/images/list-icon.png differ diff --git a/static/aidex/images/login-bg.png b/static/aidex/images/login-bg.png new file mode 100644 index 0000000..12b9fcf Binary files /dev/null and b/static/aidex/images/login-bg.png differ diff --git a/static/aidex/images/menu-alarm.png b/static/aidex/images/menu-alarm.png new file mode 100644 index 0000000..fd9be2e Binary files /dev/null and b/static/aidex/images/menu-alarm.png differ diff --git a/static/aidex/images/menu-device.png b/static/aidex/images/menu-device.png new file mode 100644 index 0000000..53de493 Binary files /dev/null and b/static/aidex/images/menu-device.png differ diff --git a/static/aidex/images/menu-earnings.png b/static/aidex/images/menu-earnings.png new file mode 100644 index 0000000..2c5035d Binary files /dev/null and b/static/aidex/images/menu-earnings.png differ diff --git a/static/aidex/images/menu-policy.png b/static/aidex/images/menu-policy.png new file mode 100644 index 0000000..236cd8f Binary files /dev/null and b/static/aidex/images/menu-policy.png differ diff --git a/static/aidex/images/message-icon.png b/static/aidex/images/message-icon.png new file mode 100644 index 0000000..62db952 Binary files /dev/null and b/static/aidex/images/message-icon.png differ diff --git a/static/aidex/images/nav-bg.png b/static/aidex/images/nav-bg.png new file mode 100644 index 0000000..c4dcec6 Binary files /dev/null and b/static/aidex/images/nav-bg.png differ diff --git a/static/aidex/images/next.png b/static/aidex/images/next.png new file mode 100644 index 0000000..5f93d58 Binary files /dev/null and b/static/aidex/images/next.png differ diff --git a/static/aidex/images/pcs-energy.png b/static/aidex/images/pcs-energy.png new file mode 100644 index 0000000..07e1ab2 Binary files /dev/null and b/static/aidex/images/pcs-energy.png differ diff --git a/static/aidex/images/rcdl.png b/static/aidex/images/rcdl.png new file mode 100644 index 0000000..a3ae3f0 Binary files /dev/null and b/static/aidex/images/rcdl.png differ diff --git a/static/aidex/images/rfdl.png b/static/aidex/images/rfdl.png new file mode 100644 index 0000000..262522a Binary files /dev/null and b/static/aidex/images/rfdl.png differ diff --git a/static/aidex/images/setting.png b/static/aidex/images/setting.png new file mode 100644 index 0000000..24e44c1 Binary files /dev/null and b/static/aidex/images/setting.png differ diff --git a/static/aidex/images/sy-byzc.png b/static/aidex/images/sy-byzc.png new file mode 100644 index 0000000..346e817 Binary files /dev/null and b/static/aidex/images/sy-byzc.png differ diff --git a/static/aidex/images/sy-byzf.png b/static/aidex/images/sy-byzf.png new file mode 100644 index 0000000..3877fe2 Binary files /dev/null and b/static/aidex/images/sy-byzf.png differ diff --git a/static/aidex/images/sy-ljc.png b/static/aidex/images/sy-ljc.png new file mode 100644 index 0000000..35bcf5a Binary files /dev/null and b/static/aidex/images/sy-ljc.png differ diff --git a/static/aidex/images/sy-ljf.png b/static/aidex/images/sy-ljf.png new file mode 100644 index 0000000..a734341 Binary files /dev/null and b/static/aidex/images/sy-ljf.png differ diff --git a/static/aidex/images/sy-yxtzhl.png b/static/aidex/images/sy-yxtzhl.png new file mode 100644 index 0000000..b10840f Binary files /dev/null and b/static/aidex/images/sy-yxtzhl.png differ diff --git a/static/aidex/images/sy-zjrl.png b/static/aidex/images/sy-zjrl.png new file mode 100644 index 0000000..dad307a Binary files /dev/null and b/static/aidex/images/sy-zjrl.png differ diff --git a/static/aidex/images/sy-zxtzhl.png b/static/aidex/images/sy-zxtzhl.png new file mode 100644 index 0000000..4db0fdb Binary files /dev/null and b/static/aidex/images/sy-zxtzhl.png differ diff --git a/static/aidex/images/time.png b/static/aidex/images/time.png new file mode 100644 index 0000000..3c9297d Binary files /dev/null and b/static/aidex/images/time.png differ diff --git a/static/aidex/images/total-swdl.png b/static/aidex/images/total-swdl.png new file mode 100644 index 0000000..63e2db2 Binary files /dev/null and b/static/aidex/images/total-swdl.png differ diff --git a/static/aidex/images/total-sy.png b/static/aidex/images/total-sy.png new file mode 100644 index 0000000..447b760 Binary files /dev/null and b/static/aidex/images/total-sy.png differ diff --git a/static/aidex/images/total-zfdl.png b/static/aidex/images/total-zfdl.png new file mode 100644 index 0000000..4fdf515 Binary files /dev/null and b/static/aidex/images/total-zfdl.png differ diff --git a/static/aidex/images/total-zybl.png b/static/aidex/images/total-zybl.png new file mode 100644 index 0000000..a123e2d Binary files /dev/null and b/static/aidex/images/total-zybl.png differ diff --git a/static/aidex/images/total-zydl.png b/static/aidex/images/total-zydl.png new file mode 100644 index 0000000..ff48f63 Binary files /dev/null and b/static/aidex/images/total-zydl.png differ diff --git a/static/aidex/images/user07.png b/static/aidex/images/user07.png new file mode 100644 index 0000000..6a049dd Binary files /dev/null and b/static/aidex/images/user07.png differ diff --git a/static/aidex/images/xtzhl.png b/static/aidex/images/xtzhl.png new file mode 100644 index 0000000..2e3c82f Binary files /dev/null and b/static/aidex/images/xtzhl.png differ diff --git a/static/aidex/images/yxts.png b/static/aidex/images/yxts.png new file mode 100644 index 0000000..7ae9777 Binary files /dev/null and b/static/aidex/images/yxts.png differ diff --git a/static/aidex/images/zcdl.png b/static/aidex/images/zcdl.png new file mode 100644 index 0000000..4b4d2ec Binary files /dev/null and b/static/aidex/images/zcdl.png differ diff --git a/static/aidex/images/zfdl.png b/static/aidex/images/zfdl.png new file mode 100644 index 0000000..4a402c0 Binary files /dev/null and b/static/aidex/images/zfdl.png differ diff --git a/static/aidex/images/zjrl.png b/static/aidex/images/zjrl.png new file mode 100644 index 0000000..77e40d5 Binary files /dev/null and b/static/aidex/images/zjrl.png differ diff --git a/static/aidex/login/bg-logo.png b/static/aidex/login/bg-logo.png new file mode 100644 index 0000000..6b085f1 Binary files /dev/null and b/static/aidex/login/bg-logo.png differ diff --git a/static/aidex/login/eye_close.png b/static/aidex/login/eye_close.png new file mode 100644 index 0000000..40da6ae Binary files /dev/null and b/static/aidex/login/eye_close.png differ diff --git a/static/aidex/login/eye_open.png b/static/aidex/login/eye_open.png new file mode 100644 index 0000000..df65e8e Binary files /dev/null and b/static/aidex/login/eye_open.png differ diff --git a/static/aidex/login/password.png b/static/aidex/login/password.png new file mode 100644 index 0000000..f2defa9 Binary files /dev/null and b/static/aidex/login/password.png differ diff --git a/static/aidex/login/user-delete.png b/static/aidex/login/user-delete.png new file mode 100644 index 0000000..e34cbf2 Binary files /dev/null and b/static/aidex/login/user-delete.png differ diff --git a/static/aidex/login/user.png b/static/aidex/login/user.png new file mode 100644 index 0000000..c560c7c Binary files /dev/null and b/static/aidex/login/user.png differ diff --git a/static/aidex/login/warning.png b/static/aidex/login/warning.png new file mode 100644 index 0000000..976f1f0 Binary files /dev/null and b/static/aidex/login/warning.png differ diff --git a/static/topology/DC.png b/static/topology/DC.png new file mode 100644 index 0000000..429ff0e Binary files /dev/null and b/static/topology/DC.png differ diff --git a/static/topology/DCDC.png b/static/topology/DCDC.png new file mode 100644 index 0000000..5f95889 Binary files /dev/null and b/static/topology/DCDC.png differ diff --git a/static/topology/MPPT.png b/static/topology/MPPT.png new file mode 100644 index 0000000..d1b1186 Binary files /dev/null and b/static/topology/MPPT.png differ diff --git a/static/topology/STS.png b/static/topology/STS.png new file mode 100644 index 0000000..3315967 Binary files /dev/null and b/static/topology/STS.png differ diff --git a/static/topology/ammeter.png b/static/topology/ammeter.png new file mode 100644 index 0000000..065cad7 Binary files /dev/null and b/static/topology/ammeter.png differ diff --git a/static/topology/battary.png b/static/topology/battary.png new file mode 100644 index 0000000..42e3aae Binary files /dev/null and b/static/topology/battary.png differ diff --git a/static/topology/byq.png b/static/topology/byq.png new file mode 100644 index 0000000..9e920b3 Binary files /dev/null and b/static/topology/byq.png differ diff --git a/static/topology/cang.png b/static/topology/cang.png new file mode 100644 index 0000000..9a3ebd2 Binary files /dev/null and b/static/topology/cang.png differ diff --git a/static/topology/device-monitoring.png b/static/topology/device-monitoring.png new file mode 100644 index 0000000..0637685 Binary files /dev/null and b/static/topology/device-monitoring.png differ diff --git a/static/topology/dianchi.png b/static/topology/dianchi.png new file mode 100644 index 0000000..3e4d180 Binary files /dev/null and b/static/topology/dianchi.png differ diff --git a/static/topology/dianwang.png b/static/topology/dianwang.png new file mode 100644 index 0000000..fdc1c39 Binary files /dev/null and b/static/topology/dianwang.png differ diff --git a/static/topology/electric.png b/static/topology/electric.png new file mode 100644 index 0000000..eae7233 Binary files /dev/null and b/static/topology/electric.png differ diff --git a/static/topology/fire.png b/static/topology/fire.png new file mode 100644 index 0000000..d665889 Binary files /dev/null and b/static/topology/fire.png differ diff --git a/static/topology/fuzai.png b/static/topology/fuzai.png new file mode 100644 index 0000000..4bd325f Binary files /dev/null and b/static/topology/fuzai.png differ diff --git a/static/topology/load.png b/static/topology/load.png new file mode 100644 index 0000000..5989439 Binary files /dev/null and b/static/topology/load.png differ diff --git a/static/topology/none.png b/static/topology/none.png new file mode 100644 index 0000000..d097e39 Binary files /dev/null and b/static/topology/none.png differ diff --git a/static/topology/pv.png b/static/topology/pv.png new file mode 100644 index 0000000..bb83573 Binary files /dev/null and b/static/topology/pv.png differ diff --git a/static/topology/yiticang.png b/static/topology/yiticang.png new file mode 100644 index 0000000..a3e1bd4 Binary files /dev/null and b/static/topology/yiticang.png differ diff --git a/static/topology/yitigui.png b/static/topology/yitigui.png new file mode 100644 index 0000000..16e9480 Binary files /dev/null and b/static/topology/yitigui.png differ diff --git a/static/uni.ttf b/static/uni.ttf new file mode 100644 index 0000000..60a1968 Binary files /dev/null and b/static/uni.ttf differ diff --git a/store/$u.mixin.js b/store/$u.mixin.js new file mode 100644 index 0000000..61ae187 --- /dev/null +++ b/store/$u.mixin.js @@ -0,0 +1,27 @@ +import { mapState } from 'vuex' +import store from "@/store" + +// 尝试将用户在根目录中的store/index.js的vuex的state变量,全部加载到全局变量中 +let $uStoreKey = []; +try{ + $uStoreKey = store.state ? Object.keys(store.state) : []; +}catch(e){ + +} + +module.exports = { + beforeCreate() { + // 将vuex方法挂在到$u中 + // 使用方法为:如果要修改vuex的state中的user.name变量为"史诗" => this.$u.vuex('user.name', '史诗') + // 如果要修改vuex的state的version变量为1.0.1 => this.$u.vuex('version', '1.0.1') + this.$u.vuex = (name, value) => { + this.$store.commit('$uStore', { + name,value + }) + } + }, + computed: { + // 将vuex的state中的所有变量,解构到全局混入的mixin中 + ...mapState($uStoreKey) + } +} \ No newline at end of file diff --git a/store/index.js b/store/index.js new file mode 100644 index 0000000..5ac520c --- /dev/null +++ b/store/index.js @@ -0,0 +1,117 @@ + +import config from '@/common/config.js'; +import Vue from 'vue' +import Vuex from 'vuex' +Vue.use(Vuex) + +let lifeData = {}; + +try{ + // 尝试获取本地是否存在lifeData变量,第一次启动APP时是不存在的 + lifeData = uni.getStorageSync('lifeData'); +}catch(e){ + +} + +// 需要永久存储,且下次APP启动需要取出的,在state中的变量名 +let saveStateKeys = ['vuex_user', 'vuex_token', 'vuex_remember', 'vuex_locale','vuex_isAgent','vuex_language','vuex_stationValue']; + +// 保存变量到本地存储中 +const saveLifeData = function(key, value){ + // 判断变量名是否在需要存储的数组中 + if(saveStateKeys.indexOf(key) != -1) { + // 获取本地存储的lifeData对象,将变量添加到对象中 + let tmp = uni.getStorageSync('lifeData'); + // 第一次打开APP,不存在lifeData变量,故放一个{}空对象 + tmp = tmp ? tmp : {}; + tmp[key] = value; + // 执行这一步后,所有需要存储的变量,都挂载在本地的lifeData对象中 + uni.setStorageSync('lifeData', tmp); + } +} +// 简化 vuex 操作,文档:https://uviewui.com/components/vuexDetail.html +const store = new Vuex.Store({ + state: { + // 如果上面从本地获取的lifeData对象下有对应的属性,就赋值给state中对应的变量 + // 加上vuex_前缀,是防止变量名冲突,也让人一目了然 + vuex_username: lifeData.vuex_username ? lifeData.vuex_username : '', + vuex_password: lifeData.vuex_password ? lifeData.vuex_password : '', + vuex_user: lifeData.vuex_user ? lifeData.vuex_user : '', + vuex_token: lifeData.vuex_token ? lifeData.vuex_token : '', + vuex_menu: lifeData.vuex_menu ? lifeData.vuex_menu : [], + vuex_permissions: lifeData.vuex_permissions ? lifeData.vuex_permissions : [], + vuex_dicts: lifeData.vuex_menu ? lifeData.vuex_dicts : [], + vuex_station: lifeData.vuex_menu ? lifeData.vuex_station : [], + vuex_provinceStation: lifeData.vuex_provinceStation ? lifeData.vuex_provinceStation : [], + vuex_currentStation: lifeData.vuex_currentStation ? lifeData.vuex_currentStation : '', + vuex_remember: lifeData.vuex_remember ? lifeData.vuex_remember : '', + vuex_locale: lifeData.vuex_locale ? lifeData.vuex_locale : '', + vuex_isAgent: lifeData.vuex_isAgent ? lifeData.vuex_isAgent : '', + vuex_iv: lifeData.vuex_iv ? lifeData.vuex_iv : '', + vuex_psdkey: lifeData.vuex_psdkey ? lifeData.vuex_psdkey : '', + vuex_StationShow:lifeData.vuex_StationShow ? lifeData.vuex_StationShow : [0,0,0], + tabbar_current: 0, + vuex_stationValue:lifeData.vuex_stationValue ? lifeData.vuex_stationValue : '', + tabbarList: [ + { + "icon": "warning", + "text": "告警", + 'name': 'Alarm' + }, + // { + // "icon": "order", + // "text": "设备", + // 'name': 'Device' + + // }, + { + "icon": "moments", + "text": "数据", + 'name': 'Data' + }, + { + "icon": "attach", + "text": "收益", + 'name': 'Earnings' + }, + { + "icon": "attach", + "text": "策略", + 'name': 'Policy' + }, + { + "icon": "account", + "text": "我的", + 'name': 'My' + }, + ], + vuex_language:"zh_CN", + // 如果vuex_version无需保存到本地永久存储,无需lifeData.vuex_version方式 + vuex_config: config, + vuex_currentComponent:'Data' + }, + mutations: { + $uStore(state, payload) { + // 判断是否多层级调用,state中为对象存在的情况,诸如user.info.score = 1 + let nameArr = payload.name.split('.'); + let saveKey = ''; + let len = nameArr.length; + if(len >= 2) { + let obj = state[nameArr[0]]; + for(let i = 1; i < len - 1; i ++) { + obj = obj[nameArr[i]]; + } + obj[nameArr[len - 1]] = payload.value; + saveKey = nameArr[0]; + } else { + // 单层级变量,在state就是一个普通变量的情况 + state[payload.name] = payload.value; + saveKey = payload.name; + } + // 保存变量到本地,见顶部函数定义 + saveLifeData(saveKey, state[saveKey]) + } + } +}) + +export default store diff --git a/uni.scss b/uni.scss new file mode 100644 index 0000000..2fe6465 --- /dev/null +++ b/uni.scss @@ -0,0 +1,40 @@ +/** + * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量 + * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可 + * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 + */ + +$u-main-color: #303133; +$u-content-color: #505256; +$u-tips-color: #909399; +$u-light-color: #c0c4cc; +$u-border-color: #dedfe2; +$u-bg-color: #f3f4f6; + +$u-type-primary: #2979ff; +$u-type-primary-light: #ecf5ff; +$u-type-primary-disabled: #a0cfff; +$u-type-primary-dark: #2b85e4; + +$u-type-warning: #ff9900; +$u-type-warning-disabled: #fcbd71; +$u-type-warning-dark: #f29100; +$u-type-warning-light: #fdf6ec; + +$u-type-success: #19be6b; +$u-type-success-disabled: #71d5a1; +$u-type-success-dark: #18b566; +$u-type-success-light: #dbf1e1; + +$u-type-error: #fa3534; +$u-type-error-disabled: #fab6b6; +$u-type-error-dark: #dd6161; +$u-type-error-light: #fef0f0; + +$u-type-info: #909399; +$u-type-info-disabled: #c8c9cc; +$u-type-info-dark: #82848a; +$u-type-info-light: #f4f4f5; + +$u-form-item-height: 70rpx; +$u-form-item-border-color: #dcdfe6; diff --git a/uni_modules/lime-echart/changelog.md b/uni_modules/lime-echart/changelog.md new file mode 100644 index 0000000..ef6d837 --- /dev/null +++ b/uni_modules/lime-echart/changelog.md @@ -0,0 +1,132 @@ +## 0.6.5(2022-11-03) +- fix: 某些手机touches为对象,导致无法交互。 +## 0.6.4(2022-10-28) +- fix: 优化点击事件的触发条件 +## 0.6.3(2022-10-26) +- fix: 修复 dataZoom 拖动问题 +## 0.6.2(2022-10-23) +- fix: 修复 飞书小程序 尺寸问题 +## 0.6.1(2022-10-19) +- fix: 修复 PC mousewheel 事件 鼠标位置不准确的BUG,不兼容火狐! +- feat: showLoading 增加传参 +## 0.6.0(2022-09-16) +- feat: 增加PC的mousewheel事件 +## 0.5.4(2022-09-16) +- fix: 修复 nvue 动态数据不显示问题 +## 0.5.3(2022-09-16) +- feat: 增加enableHover属性, 在PC端时当鼠标进入显示tooltip,不必按下。 +- chore: 更新文档 +## 0.5.2(2022-09-16) +- feat: 增加enableHover属性, 在PC端时当鼠标进入显示tooltip,不必按下。 +## 0.5.1(2022-09-16) +- fix: 修复nvue报错 +## 0.5.0(2022-09-15) +- feat: init(echarts, theme?:string, opts?:{}, callback: function(chart)) +## 0.4.8(2022-09-11) +- feat: 增加 @finished +## 0.4.7(2022-08-24) +- chore: 去掉 stylus +## 0.4.6(2022-08-24) +- feat: 增加 beforeDelay +## 0.4.5(2022-08-12) +- chore: 更新文档 +## 0.4.4(2022-08-12) +- fix: 修复 resize 无参数时报错 +## 0.4.3(2022-08-07) +# 评论有说本插件对新手不友好,让我做不好就不要发出来。 还有的说跟官网一样,发出来做什么,给我整无语了。 +# 所以在此提醒一下准备要下载的你,如果你从未使用过 echarts 请不要下载 或 谨慎下载。 +# 如果你确认要下载,麻烦看完文档。还有请注意插件是让echarts在uniapp能运行,API 配置请自行去官网查阅! +# 如果你不会echarts 但又需要图表,市场上有个很优秀的图表插件 uchart 你可以去使用这款插件,uchart的作者人很好,也热情。 +# 每个人都有自己的本职工作,如果你能力强可以自行兼容,如果使用了他人的插件也麻烦尊重他人的成果和劳动时间。谢谢。 +# 为了心情愉悦,本人已经使用插件屏蔽差评。 +- chore: 更新文档 +## 0.4.2(2022-07-20) +- feat: 增加 resize +## 0.4.1(2022-06-07) +- fix: 修复 canvasToTempFilePath 不生效问题 +## 0.4.0(2022-06-04) +- chore 为了词云 增加一个canvas 标签 +- 词云下载地址[echart-wordcloud](https://ext.dcloud.net.cn/plugin?id=8430) +## 0.3.9(2022-06-02) +- chore: 更新文档 +- tips: lines 不支持 `trailLength` +## 0.3.8(2022-05-31) +- fix: 修复 因mouse事件冲突tooltip跳动问题 +## 0.3.7(2022-05-26) +- chore: 更新文档 +- chore: 设置默认宽高300px +- fix: 修复 vue3 微信小程序 拖影BUG +- chore: 支持PC +## 0.3.5(2022-04-28) +- chore: 更新使用方式 +- 🔔 必须使用hbuilderx 3.4.8-alpha以上 +## 0.3.4(2021-08-03) +- chore: 增加 setOption的参数值 +## 0.3.3(2021-07-22) +- fix: 修复 径向渐变报错的问题 +## 0.3.2(2021-07-09) +- chore: 统一命名规范,无须主动引入组件 +## [代码示例站点1](https://limeui.qcoon.cn/#/echart-example) +## [代码示例站点2](http://liangei.gitee.io/limeui/#/echart-example) +## 0.3.1(2021-06-21) +- fix: 修复 app-nvue ios is-enable 无效的问题 +## [代码示例站点1](https://limeui.qcoon.cn/#/echart-example) +## [代码示例站点2](http://liangei.gitee.io/limeui/#/echart-example) +## 0.3.0(2021-06-14) +- fix: 修复 头条系小程序 2d 报 JSON.stringify 的问题 +- 目前 头条系小程序 2d 无法在开发工具上预览,划动图表页面无法滚动,axisLabel 字体颜色无法更改,建议使用非2d。 +## 0.2.9(2021-06-06) +- fix: 修复 头条系小程序 2d 放大的BUG +- 头条系小程序 2d 无法在开发工具上预览,也存在划动图表页面无法滚动的问题。 +## [代码示例:http://liangei.gitee.io/limeui/#/echart-example](http://liangei.gitee.io/limeui/#/echart-example) +## 0.2.8(2021-05-19) +- fix: 修复 微信小程序 PC 显示过大的问题 +## 0.2.7(2021-05-19) +- fix: 修复 微信小程序 PC 不显示问题 +## [代码示例:http://liangei.gitee.io/limeui/#/echart-example](http://liangei.gitee.io/limeui/#/echart-example) +## 0.2.6(2021-05-14) +- feat: 支持 `image` +- feat: props 增加 `ec.clear`,更新时是否先删除图表样式 +- feat: props 增加 `isDisableScroll` ,触摸图表时是否禁止页面滚动 +- feat: props 增加 `webviewStyles` ,webview 的样式, 仅nvue有效 +## 0.2.5(2021-05-13) +- docs: 插件用到了css 预编译器 [stylus](https://ext.dcloud.net.cn/plugin?name=compile-stylus) 请安装它 +## 0.2.4(2021-05-12) +- fix: 修复 百度平台 多个图表ctx 和 渐变色 bug +- ## [代码示例:http://liangei.gitee.io/limeui/#/echart-example](http://liangei.gitee.io/limeui/#/echart-example) +## 0.2.3(2021-05-10) +- feat: 增加 `canvasToTempFilePath` 方法,用于生成图片 +```js +this.$refs.chart.canvasToTempFilePath({success: (res) => { + console.log('tempFilePath:', res.tempFilePath) +}}) +``` +## 0.2.2(2021-05-10) +- feat: 增加 `dispose` 方法,用于销毁实例 +- feat: 增加 `isClickable` 是否派发点击 +- feat: 实验性的支持 `nvue` 使用要慎重考虑 +- ## [代码示例:http://liangei.gitee.io/limeui/#/echart-example](http://liangei.gitee.io/limeui/#/echart-example) +## 0.2.1(2021-05-06) +- fix:修复 微信小程序 json 报错 +- chore: `reset` 更改为 `setChart` +- feat: 增加 `isEnable` 开启初始化 启用这个后 无须再使用`init`方法 +```html + +``` +```js +// 显示加载 +this.$refs.chart.showLoading() +// 使用实例回调 +this.$refs.chart.setChart(chart => ...code) +// 直接设置图表配置 +this.$refs.chart.setOption(data) +``` +## 0.2.0(2021-05-05) +- fix:修复 头条 百度 偏移的问题 +- docs: 更新文档 +## [代码示例:http://liangei.gitee.io/limeui/#/echart-example](http://liangei.gitee.io/limeui/#/echart-example) +## 0.1.0(2021-05-02) +- chore: 第一次上传,基本全端兼容,使用方法与官网一致。 +- 已知BUG:非2d 无法使用背景色,已反馈官方 +- 已知BUG:头条 百度 有许些偏移 +- 后期计划:兼容nvue diff --git a/uni_modules/lime-echart/components/l-echart/canvas.js b/uni_modules/lime-echart/components/l-echart/canvas.js new file mode 100644 index 0000000..4affc21 --- /dev/null +++ b/uni_modules/lime-echart/components/l-echart/canvas.js @@ -0,0 +1,372 @@ +const cacheChart = {} +const fontSizeReg = /([\d\.]+)px/; +class EventEmit { + constructor() { + this.__events = {}; + } + on(type, listener) { + if (!type || !listener) { + return; + } + const events = this.__events[type] || []; + events.push(listener); + this.__events[type] = events; + } + emit(type, e) { + if (type.constructor === Object) { + e = type; + type = e && e.type; + } + if (!type) { + return; + } + const events = this.__events[type]; + if (!events || !events.length) { + return; + } + events.forEach((listener) => { + listener.call(this, e); + }); + } + off(type, listener) { + const __events = this.__events; + const events = __events[type]; + if (!events || !events.length) { + return; + } + if (!listener) { + delete __events[type]; + return; + } + for (let i = 0, len = events.length; i < len; i++) { + if (events[i] === listener) { + events.splice(i, 1); + i--; + } + } + } +} +class Image { + constructor() { + this.currentSrc = null + this.naturalHeight = 0 + this.naturalWidth = 0 + this.width = 0 + this.height = 0 + this.tagName = 'IMG' + } + set src(src) { + this.currentSrc = src + uni.getImageInfo({ + src, + success: (res) => { + this.naturalWidth = this.width = res.width + this.naturalHeight = this.height = res.height + this.onload() + }, + fail: () => { + this.onerror() + } + }) + } + get src() { + return this.currentSrc + } +} +class OffscreenCanvas { + constructor(ctx, com, canvasId) { + this.tagName = 'canvas' + this.com = com + this.canvasId = canvasId + this.ctx = ctx + } + set width(w) { + this.com.offscreenWidth = w + } + set height(h) { + this.com.offscreenHeight = h + } + get width() { + return this.com.offscreenWidth || 0 + } + get height() { + return this.com.offscreenHeight || 0 + } + getContext(type) { + return this.ctx + } + getImageData() { + return new Promise((resolve, reject) => { + this.com.$nextTick(() => { + uni.canvasGetImageData({ + x:0, + y:0, + width: this.com.offscreenWidth, + height: this.com.offscreenHeight, + canvasId: this.canvasId, + success: (res) => { + resolve(res) + }, + fail: (err) => { + reject(err) + }, + }, this.com) + }) + }) + } +} +export class Canvas { + constructor(ctx, com, isNew, canvasNode={}) { + cacheChart[com.canvasId] = {ctx} + this.canvasId = com.canvasId; + this.chart = null; + this.isNew = isNew + this.tagName = 'canvas' + this.canvasNode = canvasNode; + this.com = com; + if (!isNew) {this._initStyle(ctx)} + this._initEvent(); + this._ee = new EventEmit() + } + getContext(type) { + if (type === '2d') { + return this.ctx; + } + } + setChart(chart) { + this.chart = chart; + } + createOffscreenCanvas(param){ + if(!this.children) { + this.com.isOffscreenCanvas = true + this.com.offscreenWidth = param.width||300 + this.com.offscreenHeight = param.height||300 + const com = this.com + const canvasId = this.com.offscreenCanvasId + const context = uni.createCanvasContext(canvasId, this.com) + this._initStyle(context) + this.children = new OffscreenCanvas(context, com, canvasId) + } + return this.children + } + appendChild(child) { + console.log('child', child) + } + dispatchEvent(type, e) { + if(typeof type == 'object') { + this._ee.emit(type.type, type); + } else { + this._ee.emit(type, e); + } + return true + } + attachEvent() { + } + detachEvent() { + } + addEventListener(type, listener) { + this._ee.on(type, listener) + } + removeEventListener(type, listener) { + this._ee.off(type, listener) + } + _initCanvas(zrender, ctx) { + zrender.util.getContext = function() { + return ctx; + }; + zrender.util.$override('measureText', function(text, font) { + ctx.font = font || '12px sans-serif'; + return ctx.measureText(text, font); + }); + } + _initStyle(ctx, child) { + const styles = [ + 'fillStyle', + 'strokeStyle', + 'fontSize', + 'globalAlpha', + 'opacity', + 'textAlign', + 'textBaseline', + 'shadow', + 'lineWidth', + 'lineCap', + 'lineJoin', + 'lineDash', + 'miterLimit', + 'font' + ]; + const colorReg = /#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])\b/g; + styles.forEach(style => { + Object.defineProperty(ctx, style, { + set: value => { + if (style === 'font' && fontSizeReg.test(value)) { + const match = fontSizeReg.exec(value); + ctx.setFontSize(match[1]); + return; + } + if (style === 'opacity') { + ctx.setGlobalAlpha(value) + return; + } + if (style !== 'fillStyle' && style !== 'strokeStyle' || value !== 'none' && value !== null) { + // #ifdef H5 || APP-PLUS || MP-BAIDU + if(typeof value == 'object') { + if (value.hasOwnProperty('colorStop') || value.hasOwnProperty('colors')) { + ctx['set' + style.charAt(0).toUpperCase() + style.slice(1)](value); + } + return + } + // #endif + // #ifdef MP-TOUTIAO + if(colorReg.test(value)) { + value = value.replace(colorReg, '#$1$1$2$2$3$3') + } + // #endif + ctx['set' + style.charAt(0).toUpperCase() + style.slice(1)](value); + } + } + }); + }); + if(!this.isNew && !child) { + ctx.uniDrawImage = ctx.drawImage + ctx.drawImage = (...a) => { + a[0] = a[0].src + ctx.uniDrawImage(...a) + } + } + if(!ctx.createRadialGradient) { + ctx.createRadialGradient = function() { + return ctx.createCircularGradient(...[...arguments].slice(-3)) + }; + } + // 字节不支持 + if (!ctx.strokeText) { + ctx.strokeText = (...a) => { + ctx.fillText(...a) + } + } + // 钉钉不支持 + if (!ctx.measureText) { + const strLen = (str) => { + let len = 0; + for (let i = 0; i < str.length; i++) { + if (str.charCodeAt(i) > 0 && str.charCodeAt(i) < 128) { + len++; + } else { + len += 2; + } + } + return len; + } + ctx.measureText = (text, font) => { + let fontSize = 12; + if (font) { + fontSize = parseInt(font.match(/([\d\.]+)px/)[1]) + } + fontSize /= 2; + return { + width: strLen(text) * fontSize + }; + } + } + } + + _initEvent(e) { + this.event = {}; + const eventNames = [{ + wxName: 'touchStart', + ecName: 'mousedown' + }, { + wxName: 'touchMove', + ecName: 'mousemove' + }, { + wxName: 'touchEnd', + ecName: 'mouseup' + }, { + wxName: 'touchEnd', + ecName: 'click' + }]; + + eventNames.forEach(name => { + this.event[name.wxName] = e => { + const touch = e.touches[0]; + this.chart.getZr().handler.dispatch(name.ecName, { + zrX: name.wxName === 'tap' ? touch.clientX : touch.x, + zrY: name.wxName === 'tap' ? touch.clientY : touch.y + }); + }; + }); + } + + set width(w) { + this.canvasNode.width = w + } + set height(h) { + this.canvasNode.height = h + } + + get width() { + return this.canvasNode.width || 0 + } + get height() { + return this.canvasNode.height || 0 + } + get ctx() { + return cacheChart[this.canvasId]['ctx'] || null + } + set chart(chart) { + cacheChart[this.canvasId]['chart'] = chart + } + get chart() { + return cacheChart[this.canvasId]['chart'] || null + } +} + +export function dispatch(name, {x,y, wheelDelta}) { + this.dispatch(name, { + zrX: x, + zrY: y, + zrDelta: wheelDelta, + preventDefault: () => {}, + stopPropagation: () =>{} + }); +} +export function setCanvasCreator(echarts, {canvas, node}) { + // echarts.setCanvasCreator(() => canvas); + echarts.registerPreprocessor(option => { + if (option && option.series) { + if (option.series.length > 0) { + option.series.forEach(series => { + series.progressive = 0; + }); + } else if (typeof option.series === 'object') { + option.series.progressive = 0; + } + } + }); + function loadImage(src, onload, onerror) { + let img = null + if(node && node.createImage) { + img = node.createImage() + img.onload = onload.bind(img); + img.onerror = onerror.bind(img); + img.src = src; + return img + } else { + img = new Image() + img.onload = onload.bind(img) + img.onerror = onerror.bind(img); + img.src = src + return img + } + } + if(echarts.setPlatformAPI) { + echarts.setPlatformAPI({ + loadImage: canvas.setChart ? loadImage : null, + createCanvas(){ + return canvas + } + }) + } +} \ No newline at end of file diff --git a/uni_modules/lime-echart/components/l-echart/l-echart.vue b/uni_modules/lime-echart/components/l-echart/l-echart.vue new file mode 100644 index 0000000..37e5450 --- /dev/null +++ b/uni_modules/lime-echart/components/l-echart/l-echart.vue @@ -0,0 +1,516 @@ + + + + diff --git a/uni_modules/lime-echart/components/l-echart/utils.js b/uni_modules/lime-echart/components/l-echart/utils.js new file mode 100644 index 0000000..5ff66c5 --- /dev/null +++ b/uni_modules/lime-echart/components/l-echart/utils.js @@ -0,0 +1,74 @@ +// #ifndef APP-NVUE +// 计算版本 +export function compareVersion(v1, v2) { + v1 = v1.split('.') + v2 = v2.split('.') + const len = Math.max(v1.length, v2.length) + while (v1.length < len) { + v1.push('0') + } + while (v2.length < len) { + v2.push('0') + } + for (let i = 0; i < len; i++) { + const num1 = parseInt(v1[i], 10) + const num2 = parseInt(v2[i], 10) + + if (num1 > num2) { + return 1 + } else if (num1 < num2) { + return -1 + } + } + return 0 +} + +export function wrapTouch(event) { + for (let i = 0; i < event.touches.length; ++i) { + const touch = event.touches[i]; + touch.offsetX = touch.x; + touch.offsetY = touch.y; + } + return event; +} +export const devicePixelRatio = wx.getSystemInfoSync().pixelRatio +// #endif +// #ifdef APP-NVUE +export function base64ToPath(base64) { + return new Promise((resolve, reject) => { + const [, format, bodyData] = /data:image\/(\w+);base64,(.*)/.exec(base64) || []; + const bitmap = new plus.nativeObj.Bitmap('bitmap' + Date.now()) + bitmap.loadBase64Data(base64, () => { + if (!format) { + reject(new Error('ERROR_BASE64SRC_PARSE')) + } + const time = new Date().getTime(); + const filePath = `_doc/uniapp_temp/${time}.${format}` + + bitmap.save(filePath, {}, + () => { + bitmap.clear() + resolve(filePath) + }, + (error) => { + bitmap.clear() + console.error(`${JSON.stringify(error)}`) + reject(error) + }) + }, (error) => { + bitmap.clear() + console.error(`${JSON.stringify(error)}`) + reject(error) + }) + }) +} +// #endif + + +export function sleep(time) { + return new Promise((resolve) => { + setTimeout(() => { + resolve(true) + },time) + }) +} \ No newline at end of file diff --git a/uni_modules/lime-echart/components/lime-echart/index.vue b/uni_modules/lime-echart/components/lime-echart/index.vue new file mode 100644 index 0000000..e69de29 diff --git a/uni_modules/lime-echart/package.json b/uni_modules/lime-echart/package.json new file mode 100644 index 0000000..8632494 --- /dev/null +++ b/uni_modules/lime-echart/package.json @@ -0,0 +1,84 @@ +{ + "id": "lime-echart", + "displayName": "百度图表 echarts", + "version": "0.6.5", + "description": "echarts 全端兼容,一款使echarts图表能跑在uniapp各端中的插件", + "keywords": [ + "echarts", + "canvas", + "图表", + "可视化" +], + "repository": "https://gitee.com/liangei/lime-echart", + "engines": { + "HBuilderX": "^3.6.4" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "u", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/lime-echart/readme.md b/uni_modules/lime-echart/readme.md new file mode 100644 index 0000000..83fe3b9 --- /dev/null +++ b/uni_modules/lime-echart/readme.md @@ -0,0 +1,245 @@ +# echarts 图表 👑👑👑👑👑 全端 +> 一个基于 JavaScript 的开源可视化图表库 [查看更多 站点1](https://limeui.qcoon.cn/#/echart) | [查看更多 站点2](http://liangei.gitee.io/limeui/#/echart)
+> 基于 echarts 做了兼容处理,更多示例请访问 [uni示例 站点1](https://limeui.qcoon.cn/#/echart-example) | [uni示例 站点2](http://liangei.gitee.io/limeui/#/echart-example) | [官方示例](https://echarts.apache.org/examples/zh/index.html)
+> Q群:1046793420
+ +## 平台兼容 + +| H5 | 微信小程序 | 支付宝小程序 | 百度小程序 | 头条小程序 | QQ 小程序 | App | +| --- | ---------- | ------------ | ---------- | ---------- | --------- | ---- | +| √ | √ | √ | √ | √ | √ | √ | + + +## 安装 +- 第一步、在uniapp 插件市场 找到 [百度图表](https://ext.dcloud.net.cn/plugin?id=4899) 导入 +- 第二步、安装 echarts 或者直接使用插件内的echarts.min文件 +```cmd +pnpm add echarts + -or- +npm install echarts +``` + + +**注意** +* 🔔 必须使用hbuilderx 3.4.8-alpha及以上 +* 🔔 echarts 5.3.0及以上 +* 🔔 如果是 `cli` 项目需要主动 `import` 插件 +```js +import LEchart from '@/uni_modules/lime-echart/components/l-echart/l-echart.vue'; +export default { + components: {LEchart} +} +``` + +## 代码演示 +### 基础用法 +```html + +``` + +```js +// 如果你使用插件内提供的echarts.min +// 也可以自行去官网下载自定义覆盖 +// 这种方式仅限于vue2 +import * as echarts from '@/uni_modules/lime-echart/static/echarts.min' +//---or---------------------------------- + +// 如果你使用 npm 安装了 echarts --------- 使用以下方式 +// 引入全量包 +import * as echarts from 'echarts' +//---or---------------------------------- + +// 按需引入 开始 +import * as echarts from 'echarts/core'; +import {LineChart, BarChart} from 'echarts/charts'; +import {TitleComponent,TooltipComponent,GridComponent, DatasetComponent, TransformComponent, LegendComponent } from 'echarts/components'; +// 标签自动布局,全局过渡动画等特性 +import {LabelLayout,UniversalTransition} from 'echarts/features'; +// 引入 Canvas 渲染器,注意引入 CanvasRenderer 是必须的一步 +import {CanvasRenderer} from 'echarts/renderers'; + +// 注册必须的组件 +echarts.use([ + LegendComponent, + TitleComponent, + TooltipComponent, + GridComponent, + DatasetComponent, + TransformComponent, + LineChart, + BarChart, + LabelLayout, + UniversalTransition, + CanvasRenderer +]); +//-------------按需引入结束------------------------ + + +export default { + data() { + return { + option: { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + }, + confine: true + }, + legend: { + data: ['热度', '正面', '负面'] + }, + grid: { + left: 20, + right: 20, + bottom: 15, + top: 40, + containLabel: true + }, + xAxis: [ + { + type: 'value', + axisLine: { + lineStyle: { + color: '#999999' + } + }, + axisLabel: { + color: '#666666' + } + } + ], + yAxis: [ + { + type: 'category', + axisTick: { show: false }, + data: ['汽车之家', '今日头条', '百度贴吧', '一点资讯', '微信', '微博', '知乎'], + axisLine: { + lineStyle: { + color: '#999999' + } + }, + axisLabel: { + color: '#666666' + } + } + ], + series: [ + { + name: '热度', + type: 'bar', + label: { + normal: { + show: true, + position: 'inside' + } + }, + data: [300, 270, 340, 344, 300, 320, 310], + }, + { + name: '正面', + type: 'bar', + stack: '总量', + label: { + normal: { + show: true + } + }, + data: [120, 102, 141, 174, 190, 250, 220] + }, + { + name: '负面', + type: 'bar', + stack: '总量', + label: { + normal: { + show: true, + position: 'left' + } + }, + data: [-20, -32, -21, -34, -90, -130, -110] + } + ] + }, + }; + }, + // 组件能被调用必须是组件的节点已经被渲染到页面上 + // 1、在页面mounted里调用,有时候mounted 组件也未必渲染完成 + mounted() { + // init(echarts, theme?:string, opts?:{}, chart => {}) + // echarts 必填, 非nvue必填,nvue不用填 + // theme 可选,应用的主题,目前只支持名称,如:'dark' + // opts = { // 可选 + // locale?: string // 从 `5.0.0` 开始支持 + // } + // chart => {} , callback 必填,返回图表实例 + this.$refs.chart.init(echarts, chart => { + chart.setOption(this.option); + }); + }, + // 2、或者使用组件的finished事件里调用 + methods: { + init() { + this.$refs.chart.init(echarts, chart => { + chart.setOption(this.option); + }); + } + } +} +``` + +## 数据更新 +- 使用 `ref` 可获取`setOption`设置更新 + +```js +this.$refs.chart.setOption(data) +``` + +## 图表大小 +- 在有些场景下,我们希望当容器大小改变时,图表的大小也相应地改变。 + +```js +// 默认获取容器尺寸 +this.$refs.chart.resize() +// 指定尺寸 +this.$refs.chart.resize({width: 375, height: 375}) +``` + + +## 常见问题 +- 微信小程序 `2d` 只支持 真机调试2.0 +- 微信开发工具会出现canvas不跟随页面的情况,真机不影响 +- toolbox 不支持 `saveImage` +- echarts 5.3.0 的 lines 不支持 trailLength,故需设置为 `0` +- dataZoom H5不要设置 `showDetail` + + +## Props + +| 参数 | 说明 | 类型 | 默认值 | 版本 | +| --------------- | -------- | ------- | ------------ | ----- | +| custom-style | 自定义样式 | `string` | - | - | +| type | 指定 canvas 类型 | `string` | `2d` | | +| is-disable-scroll | 触摸图表时是否禁止页面滚动 | `boolean` | `false` | | +| beforeDelay | 延迟初始化 (毫秒) | `number` | `30` | | +| enableHover | PC端使用鼠标悬浮 | `boolean` | `false` | | + +## 事件 + +| 参数 | 说明 | +| --------------- | --------------- | +| init(echarts, chart => {}) | 初始化调用函数,第一个参数是传入`echarts`,第二个参数是回调函数,回调函数的参数是 `chart` 实例 | +| setChart(chart => {}) | 已经初始化后,请使用这个方法,是个回调函数,参数是 `chart` 实例 | +| setOption(data) | [图表配置项](https://echarts.apache.org/zh/option.html#title),用于更新 ,传递是数据 `option` | +| clear() | 清空当前实例,会移除实例中所有的组件和图表。 | +| dispose() | 销毁实例 | +| showLoading() | 显示加载 | +| hideLoading() | 隐藏加载 | +| [canvasToTempFilePath](https://uniapp.dcloud.io/api/canvas/canvasToTempFilePath.html#canvastotempfilepath)(opt) | 用于生成图片,与官方使用方法一致,但不需要传`canvasId` | + + +## 打赏 +如果你觉得本插件,解决了你的问题,赠人玫瑰,手留余香。 + +![输入图片说明](https://static-6d65bd90-8508-4d6c-abbc-a4ef5c8e49e7.bspapp.com/image/222521_bb543f96_518581.jpeg "微信图片编辑_20201122220352.jpg") +![输入图片说明](https://static-6d65bd90-8508-4d6c-abbc-a4ef5c8e49e7.bspapp.com/image/wxplay.jpg "wxplay.jpg") \ No newline at end of file diff --git a/uni_modules/luyj-tree/changelog.md b/uni_modules/luyj-tree/changelog.md new file mode 100644 index 0000000..11cdc5e --- /dev/null +++ b/uni_modules/luyj-tree/changelog.md @@ -0,0 +1,67 @@ +## 1.4.11(2021-10-13) +当前选项是否选中的回显问题。 +## 1.4.10(2021-09-29) +默认树的显示样式 +## 1.4.9(2021-09-13) +1. luyj-tree参数中移除props.hasChildren , luyj-tree-item移除参数comparison.hasChilren。 +2. luyj-tree 参数nodes默认值改为false, luyj-tree-item 默认值改为false +3. luyj-tree-item 修改选中框的默认大小。 +4. 修改luyj-tree-item 插槽 的默认样式 +5. 修改luyj-tree 插槽的默认样式 +6. 修改一些必要的说明 +## 1.4.8(2021-09-09) +1. 修改了一些说明 +2. 不包含下一级时,点击页面部分,选中当前的项 +3. 修改默认选中事件bug +4. 自定义slot 默认展示时与 单选框、复选框重叠问题 +## 1.4.7(2021-09-08) +添加一些必要的说明。 +## 1.4.6(2021-09-03) +展示和不显示搜索按钮时位置问题。 +## 1.4.5(2021-09-02) +展示和不显示搜索按钮时位置问题。 +## 1.4.4(2021-09-01) +区分"选项修改"和"确认"事件,分别对应@change 和 @sendValue。 +## 1.4.3(2021-09-01) +变量tree_Stack的名称问题 +## 1.4.2(2021-08-27) +为树添加导航栏事件 +## 1.4.1(2021-08-26) +一些bug +懒加载后重新加载数据,显示问题。 +## 1.4.0(2021-08-25) +添加允许多次渲染item的方法(默认每次50条)。当数据量过大时使用 +## 1.3.2(2021-08-25) +搜索时,没有显示名称列,中止报错问题。(改为提醒,跳过后继续执行) +## 1.3.1(2021-08-24) +添加一些简单的说明 +## 1.3.(2021-08-24) +更新了一些bug。 +暂时令参数checkStrictly 关联失效。添加了一些参数。文档会后续陆续补充。 +独立出luyj-tree-item项。 +修复了(可能未完全修复)自定义插件的问题。 +移除了一些无效的参数,如max、scrollLeft。 +## 1.2.1(2021-08-20) +解决。数据不包含数据,点击项报错问题。 +## 1.2.0(2021-08-20) +将面包屑导航分开 +## 1.1.8(2021-08-19) +更新不能检测传入数据变动(tree变动)问题 +## 1.1.7(2021-08-14) +简单整理了一下代码,没有什么实质性的改变。 +## 1.1.6(2021-08-07) +展示状态下显示确认 +## 1.1.5(2021-07-29) +更新搜索框在微信开发者工具模拟器不能输入问题 +## 1.1.4(2021-07-27) +read.md说明 +## 1.1.3(2021-07-27) +read.md更新 +## 1.1.2(2021-07-27) +更新说明文档 +## 1.1.1(2021-07-27) +更新一些插件说明 +## 1.1.0(2021-07-27) +为树的输入框,添加更多样式参数 +## 1.0.0(2021-07-25) +无限树形结构组件。支持搜索、面包屑类型导航、选择。 diff --git a/uni_modules/luyj-tree/components/luyj-tree-item/icon.css b/uni_modules/luyj-tree/components/luyj-tree-item/icon.css new file mode 100644 index 0000000..cf1929d --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree-item/icon.css @@ -0,0 +1,346 @@ +@font-face { + font-family: "iconfont"; /* Project id 2009600 */ + src: url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff2?t=1620633089023') format('woff2'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff?t=1620633089023') format('woff'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.ttf?t=1620633089023') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +/* 清除图标 */ +.icon-clear:before{ + content: '\e606'; +} + +.icon-banxuanzhongshousuo1-shi:before { + content: "\e682"; +} + +.icon-xuanzhong3:before { + content: "\e6bb"; +} + +.icon-weixuanzhong2:before { + content: "\e62e"; +} + +.icon-danxuanxuanzhong:before { + content: "\e631"; +} + +.icon-xuanzhong4:before { + content: "\e63e"; +} + +.icon-xuanzhong1:before { + content: "\e62d"; +} +.icon-xuanzhong2:before { + content: "\e656"; +} + +.icon-selected:before { + content: "\e615"; +} + +.icon-weixuanzhong1:before { + content: "\e614"; +} + +.icon-xingzhuang6kaobei3-copy-copy:before { + content: "\e613"; +} + +.icon-radio-checked:before { + content: "\e63f"; +} + +.icon-huifu:before { + content: "\e619"; +} + +.icon-dizhi:before { + content: "\e64a"; +} + +.icon-kuaijiecaidan:before { + content: "\e60a"; +} + +.icon-z043:before { + content: "\e62f"; +} + +.icon-guanbi:before { + content: "\e607"; +} + +.icon-xuanze:before { + content: "\e623"; +} + +.icon-caidanzhaolinggan:before { + content: "\e616"; +} + +.icon-xitongshezhi:before { + content: "\e60c"; +} + +.icon-xitongshezhi1:before { + content: "\e633"; +} + +.icon-lunbo:before { + content: "\e692"; +} + +.icon-shuping:before { + content: "\e659"; +} + +.icon-tongzhi:before { + content: "\e641"; +} + +.icon-pinglunguanlishezhi:before { + content: "\e6ac"; +} + +.icon-icon:before { + content: "\e600"; +} + +.icon-liuyanguanli:before { + content: "\e61d"; +} + +.icon-xuanzhong:before { + content: "\e669"; +} + +.icon--:before { + content: "\e622"; +} + +.icon-tushu:before { + content: "\e604"; +} + +.icon-huishouzhan:before { + content: "\e61c"; +} + +.icon-yonghutouxiang:before { + content: "\e617"; +} + +.icon-liebiao:before { + content: "\e630"; +} + +.icon-fenlei:before { + content: "\e621"; +} + +.icon-tushu1:before { + content: "\e605"; +} + +.icon-tubiao-:before { + content: "\e620"; +} + +.icon-weixuanze:before { + content: "\e624"; +} + +.icon-tushujieyue:before { + content: "\e690"; +} + +.icon-lunbo1:before { + content: "\e6c5"; +} + +.icon-shanchu:before { + content: "\e67b"; +} + +.icon-lunbo2:before { + content: "\e61e"; +} + +.icon-huaban:before { + content: "\e663"; +} + +.icon-kehuan:before { + content: "\e608"; +} + +.icon-icon02:before { + content: "\e601"; +} + +.icon-huishouzhan1:before { + content: "\e612"; +} + +.icon-huishouzhan2:before { + content: "\e63d"; +} + +.icon-sousuo:before { + content: "\e62c"; +} + +.icon-xingzhuang:before { + content: "\e625"; +} + +.icon-lunbobankuai:before { + content: "\e61f"; +} + +.icon-shangchuan:before { + content: "\e602"; +} + +.icon-yonghu:before { + content: "\e761"; +} + +.icon-tongzhi1:before { + content: "\e603"; +} + +.icon-jingsong:before { + content: "\e65c"; +} + +.icon-fenlei1:before { + content: "\e6c6"; +} + +.icon-xieshupingicon:before { + content: "\e72d"; +} + +.icon-liuyan:before { + content: "\e626"; +} + +.icon-weixuanzhong:before { + content: "\e627"; +} + +.icon-youxiang:before { + content: "\e646"; +} + +.icon-lunboguanggao:before { + content: "\e6b3"; +} + +.icon-xuanze1:before { + content: "\e60d"; +} + +.icon-chushaixuanxiang:before { + content: "\e606"; +} + +.icon-liuyanguanli1:before { + content: "\e61a"; +} + +.icon-shanchu1:before { + content: "\e609"; +} + +.icon-huishouzhan3:before { + content: "\e642"; +} + +.icon-shangchuan1:before { + content: "\e823"; +} + +.icon-huishouzhan4:before { + content: "\e61b"; +} + +.icon-chuangzuo:before { + content: "\e8ad"; +} + +.icon-dianzan:before { + content: "\e8ae"; +} + +.icon-paihangbang:before { + content: "\e8b3"; +} + +.icon-shouye:before { + content: "\e8b9"; +} + +.icon-shoucang:before { + content: "\e8c6"; +} + +.icon-addApp:before { + content: "\e60b"; +} + +.icon-huishouzhan5:before { + content: "\e63a"; +} + +.icon-add1:before { + content: "\e60e"; +} + +.icon-shoucang1:before { + content: "\e60f"; +} + +.icon-canshutongji:before { + content: "\e618"; +} + +.icon-rizhiguanli:before { + content: "\e628"; +} + +.icon-shanchu2:before { + content: "\e629"; +} + +.icon-xinzeng:before { + content: "\e62a"; +} + +.icon-zhankailiebiao:before { + content: "\e62b"; +} + +.icon-xiala-copy:before { + content: "\e610"; +} + +.icon-shangla:before { + content: "\e64e"; +} + +.icon-xianxingshezhi:before { + content: "\e611"; +} diff --git a/uni_modules/luyj-tree/components/luyj-tree-item/luyj-tree-item.scss b/uni_modules/luyj-tree/components/luyj-tree-item/luyj-tree-item.scss new file mode 100644 index 0000000..2e8069a --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree-item/luyj-tree-item.scss @@ -0,0 +1,76 @@ +.container-list-item { + background-color: #fff; + border-bottom: 1rpx solid #f4f4f4; + border-radius: 20rpx; + margin:0 30rpx 20rpx 30rpx; + .content +{ + display: flex; + align-items: center; + // min-height: 60rpx; + width: 100%; + padding:30rpx 15rpx ; + position: relative; + font-size: 32rpx; + // 默认文本显示内容(默认的slot) + .slot { + // position:absolute; + right: 64rpx; + font-size: 32rpx; + color: #5b5757; + .word { + width:100%; + word-break: break-all; + } + } + // 默认箭头显示样式 + .right { + position: absolute; + text-align: center; + width: 80rpx; + right: 30rpx; + color: #babdc3; + font-size: 32rpx; + } + + } +} +// 复选框 + .checkbox { + position: relative; + height: 36rpx; + margin-left: 10rpx; + margin-right: 0px; + width: 36rpx; + .txt { + font-size: 35rpx; + line-height: 36rpx; + width: 100%; + height: 100%; + display: flex; + } + } + +.checkBorder { + border: 1px solid #ecdee4; +} + +.text-cut{ + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; +} + +.value_box{ + display: flex; + height: 100%; + .index{ + color: #009C77; + width: 70rpx; + text-align: center; + border-right: 1rpx solid #eeeeee; + } + .value{ + padding-left: 20rpx; + } +} \ No newline at end of file diff --git a/uni_modules/luyj-tree/components/luyj-tree-item/luyj-tree-item.vue b/uni_modules/luyj-tree/components/luyj-tree-item/luyj-tree-item.vue new file mode 100644 index 0000000..9a5ee67 --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree-item/luyj-tree-item.vue @@ -0,0 +1,312 @@ + + + + + \ No newline at end of file diff --git a/uni_modules/luyj-tree/components/luyj-tree-navigation/icon.css b/uni_modules/luyj-tree/components/luyj-tree-navigation/icon.css new file mode 100644 index 0000000..83fda8f --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree-navigation/icon.css @@ -0,0 +1,342 @@ +@font-face { + font-family: "iconfont"; /* Project id 2009600 */ + src: url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff2?t=1620633089023') format('woff2'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff?t=1620633089023') format('woff'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.ttf?t=1620633089023') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-banxuanzhongshousuo1-shi:before { + content: "\e682"; +} + +.icon-xuanzhong3:before { + content: "\e6bb"; +} + +.icon-weixuanzhong2:before { + content: "\e62e"; +} + +.icon-danxuanxuanzhong:before { + content: "\e631"; +} + +.icon-xuanzhong4:before { + content: "\e63e"; +} + +.icon-xuanzhong1:before { + content: "\e62d"; +} + +.icon-xuanzhong2:before { + content: "\e656"; +} + +.icon-selected:before { + content: "\e615"; +} + +.icon-weixuanzhong1:before { + content: "\e614"; +} + +.icon-xingzhuang6kaobei3-copy-copy:before { + content: "\e613"; +} + +.icon-radio-checked:before { + content: "\e63f"; +} + +.icon-huifu:before { + content: "\e619"; +} + +.icon-dizhi:before { + content: "\e64a"; +} + +.icon-kuaijiecaidan:before { + content: "\e60a"; +} + +.icon-z043:before { + content: "\e62f"; +} + +.icon-guanbi:before { + content: "\e607"; +} + +.icon-xuanze:before { + content: "\e623"; +} + +.icon-caidanzhaolinggan:before { + content: "\e616"; +} + +.icon-xitongshezhi:before { + content: "\e60c"; +} + +.icon-xitongshezhi1:before { + content: "\e633"; +} + +.icon-lunbo:before { + content: "\e692"; +} + +.icon-shuping:before { + content: "\e659"; +} + +.icon-tongzhi:before { + content: "\e641"; +} + +.icon-pinglunguanlishezhi:before { + content: "\e6ac"; +} + +.icon-icon:before { + content: "\e600"; +} + +.icon-liuyanguanli:before { + content: "\e61d"; +} + +.icon-xuanzhong:before { + content: "\e669"; +} + +.icon--:before { + content: "\e622"; +} + +.icon-tushu:before { + content: "\e604"; +} + +.icon-huishouzhan:before { + content: "\e61c"; +} + +.icon-yonghutouxiang:before { + content: "\e617"; +} + +.icon-liebiao:before { + content: "\e630"; +} + +.icon-fenlei:before { + content: "\e621"; +} + +.icon-tushu1:before { + content: "\e605"; +} + +.icon-tubiao-:before { + content: "\e620"; +} + +.icon-weixuanze:before { + content: "\e624"; +} + +.icon-tushujieyue:before { + content: "\e690"; +} + +.icon-lunbo1:before { + content: "\e6c5"; +} + +.icon-shanchu:before { + content: "\e67b"; +} + +.icon-lunbo2:before { + content: "\e61e"; +} + +.icon-huaban:before { + content: "\e663"; +} + +.icon-kehuan:before { + content: "\e608"; +} + +.icon-icon02:before { + content: "\e601"; +} + +.icon-huishouzhan1:before { + content: "\e612"; +} + +.icon-huishouzhan2:before { + content: "\e63d"; +} + +.icon-sousuo:before { + content: "\e62c"; +} + +.icon-xingzhuang:before { + content: "\e625"; +} + +.icon-lunbobankuai:before { + content: "\e61f"; +} + +.icon-shangchuan:before { + content: "\e602"; +} + +.icon-yonghu:before { + content: "\e761"; +} + +.icon-tongzhi1:before { + content: "\e603"; +} + +.icon-jingsong:before { + content: "\e65c"; +} + +.icon-fenlei1:before { + content: "\e6c6"; +} + +.icon-xieshupingicon:before { + content: "\e72d"; +} + +.icon-liuyan:before { + content: "\e626"; +} + +.icon-weixuanzhong:before { + content: "\e627"; +} + +.icon-youxiang:before { + content: "\e646"; +} + +.icon-lunboguanggao:before { + content: "\e6b3"; +} + +.icon-xuanze1:before { + content: "\e60d"; +} + +.icon-chushaixuanxiang:before { + content: "\e606"; +} + +.icon-liuyanguanli1:before { + content: "\e61a"; +} + +.icon-shanchu1:before { + content: "\e609"; +} + +.icon-huishouzhan3:before { + content: "\e642"; +} + +.icon-shangchuan1:before { + content: "\e823"; +} + +.icon-huishouzhan4:before { + content: "\e61b"; +} + +.icon-chuangzuo:before { + content: "\e8ad"; +} + +.icon-dianzan:before { + content: "\e8ae"; +} + +.icon-paihangbang:before { + content: "\e8b3"; +} + +.icon-shouye:before { + content: "\e8b9"; +} + +.icon-shoucang:before { + content: "\e8c6"; +} + +.icon-addApp:before { + content: "\e60b"; +} + +.icon-huishouzhan5:before { + content: "\e63a"; +} + +.icon-add1:before { + content: "\e60e"; +} + +.icon-shoucang1:before { + content: "\e60f"; +} + +.icon-canshutongji:before { + content: "\e618"; +} + +.icon-rizhiguanli:before { + content: "\e628"; +} + +.icon-shanchu2:before { + content: "\e629"; +} + +.icon-xinzeng:before { + content: "\e62a"; +} + +.icon-zhankailiebiao:before { + content: "\e62b"; +} + +.icon-xiala-copy:before { + content: "\e610"; +} + +.icon-shangla:before { + content: "\e64e"; +} + +.icon-xianxingshezhi:before { + content: "\e611"; +} diff --git a/uni_modules/luyj-tree/components/luyj-tree-navigation/luyj-tree-navigation.scss b/uni_modules/luyj-tree/components/luyj-tree-navigation/luyj-tree-navigation.scss new file mode 100644 index 0000000..b7c2f0e --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree-navigation/luyj-tree-navigation.scss @@ -0,0 +1,28 @@ +// 导航栏标题 +.title { + height: 90rpx; + padding: 0 32rpx; + line-height: 90rpx; + font-size: 30rpx; + background-color: #f5f5f5; + color: #606064; + // 导航栏图标样式 + .iconclass { + display: inline-block; + margin: 0 12rpx; + color: #D0D4DB; + font-size: 28rpx; + } +} +// 导航栏项样式 +.inline-item { + display: inline-block +} +// 导航栏项-启用状态 +.active { + color: #666666 !important; +} +// 导航栏项-无状态 +.none { + color: #009C77; +} diff --git a/uni_modules/luyj-tree/components/luyj-tree-navigation/luyj-tree-navigation.vue b/uni_modules/luyj-tree/components/luyj-tree-navigation/luyj-tree-navigation.vue new file mode 100644 index 0000000..0d43d67 --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree-navigation/luyj-tree-navigation.vue @@ -0,0 +1,182 @@ + + + + + diff --git a/uni_modules/luyj-tree/components/luyj-tree-search/icon.css b/uni_modules/luyj-tree/components/luyj-tree-search/icon.css new file mode 100644 index 0000000..cf1929d --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree-search/icon.css @@ -0,0 +1,346 @@ +@font-face { + font-family: "iconfont"; /* Project id 2009600 */ + src: url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff2?t=1620633089023') format('woff2'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff?t=1620633089023') format('woff'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.ttf?t=1620633089023') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +/* 清除图标 */ +.icon-clear:before{ + content: '\e606'; +} + +.icon-banxuanzhongshousuo1-shi:before { + content: "\e682"; +} + +.icon-xuanzhong3:before { + content: "\e6bb"; +} + +.icon-weixuanzhong2:before { + content: "\e62e"; +} + +.icon-danxuanxuanzhong:before { + content: "\e631"; +} + +.icon-xuanzhong4:before { + content: "\e63e"; +} + +.icon-xuanzhong1:before { + content: "\e62d"; +} +.icon-xuanzhong2:before { + content: "\e656"; +} + +.icon-selected:before { + content: "\e615"; +} + +.icon-weixuanzhong1:before { + content: "\e614"; +} + +.icon-xingzhuang6kaobei3-copy-copy:before { + content: "\e613"; +} + +.icon-radio-checked:before { + content: "\e63f"; +} + +.icon-huifu:before { + content: "\e619"; +} + +.icon-dizhi:before { + content: "\e64a"; +} + +.icon-kuaijiecaidan:before { + content: "\e60a"; +} + +.icon-z043:before { + content: "\e62f"; +} + +.icon-guanbi:before { + content: "\e607"; +} + +.icon-xuanze:before { + content: "\e623"; +} + +.icon-caidanzhaolinggan:before { + content: "\e616"; +} + +.icon-xitongshezhi:before { + content: "\e60c"; +} + +.icon-xitongshezhi1:before { + content: "\e633"; +} + +.icon-lunbo:before { + content: "\e692"; +} + +.icon-shuping:before { + content: "\e659"; +} + +.icon-tongzhi:before { + content: "\e641"; +} + +.icon-pinglunguanlishezhi:before { + content: "\e6ac"; +} + +.icon-icon:before { + content: "\e600"; +} + +.icon-liuyanguanli:before { + content: "\e61d"; +} + +.icon-xuanzhong:before { + content: "\e669"; +} + +.icon--:before { + content: "\e622"; +} + +.icon-tushu:before { + content: "\e604"; +} + +.icon-huishouzhan:before { + content: "\e61c"; +} + +.icon-yonghutouxiang:before { + content: "\e617"; +} + +.icon-liebiao:before { + content: "\e630"; +} + +.icon-fenlei:before { + content: "\e621"; +} + +.icon-tushu1:before { + content: "\e605"; +} + +.icon-tubiao-:before { + content: "\e620"; +} + +.icon-weixuanze:before { + content: "\e624"; +} + +.icon-tushujieyue:before { + content: "\e690"; +} + +.icon-lunbo1:before { + content: "\e6c5"; +} + +.icon-shanchu:before { + content: "\e67b"; +} + +.icon-lunbo2:before { + content: "\e61e"; +} + +.icon-huaban:before { + content: "\e663"; +} + +.icon-kehuan:before { + content: "\e608"; +} + +.icon-icon02:before { + content: "\e601"; +} + +.icon-huishouzhan1:before { + content: "\e612"; +} + +.icon-huishouzhan2:before { + content: "\e63d"; +} + +.icon-sousuo:before { + content: "\e62c"; +} + +.icon-xingzhuang:before { + content: "\e625"; +} + +.icon-lunbobankuai:before { + content: "\e61f"; +} + +.icon-shangchuan:before { + content: "\e602"; +} + +.icon-yonghu:before { + content: "\e761"; +} + +.icon-tongzhi1:before { + content: "\e603"; +} + +.icon-jingsong:before { + content: "\e65c"; +} + +.icon-fenlei1:before { + content: "\e6c6"; +} + +.icon-xieshupingicon:before { + content: "\e72d"; +} + +.icon-liuyan:before { + content: "\e626"; +} + +.icon-weixuanzhong:before { + content: "\e627"; +} + +.icon-youxiang:before { + content: "\e646"; +} + +.icon-lunboguanggao:before { + content: "\e6b3"; +} + +.icon-xuanze1:before { + content: "\e60d"; +} + +.icon-chushaixuanxiang:before { + content: "\e606"; +} + +.icon-liuyanguanli1:before { + content: "\e61a"; +} + +.icon-shanchu1:before { + content: "\e609"; +} + +.icon-huishouzhan3:before { + content: "\e642"; +} + +.icon-shangchuan1:before { + content: "\e823"; +} + +.icon-huishouzhan4:before { + content: "\e61b"; +} + +.icon-chuangzuo:before { + content: "\e8ad"; +} + +.icon-dianzan:before { + content: "\e8ae"; +} + +.icon-paihangbang:before { + content: "\e8b3"; +} + +.icon-shouye:before { + content: "\e8b9"; +} + +.icon-shoucang:before { + content: "\e8c6"; +} + +.icon-addApp:before { + content: "\e60b"; +} + +.icon-huishouzhan5:before { + content: "\e63a"; +} + +.icon-add1:before { + content: "\e60e"; +} + +.icon-shoucang1:before { + content: "\e60f"; +} + +.icon-canshutongji:before { + content: "\e618"; +} + +.icon-rizhiguanli:before { + content: "\e628"; +} + +.icon-shanchu2:before { + content: "\e629"; +} + +.icon-xinzeng:before { + content: "\e62a"; +} + +.icon-zhankailiebiao:before { + content: "\e62b"; +} + +.icon-xiala-copy:before { + content: "\e610"; +} + +.icon-shangla:before { + content: "\e64e"; +} + +.icon-xianxingshezhi:before { + content: "\e611"; +} diff --git a/uni_modules/luyj-tree/components/luyj-tree-search/luyj-tree-search.vue b/uni_modules/luyj-tree/components/luyj-tree-search/luyj-tree-search.vue new file mode 100644 index 0000000..91e37a4 --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree-search/luyj-tree-search.vue @@ -0,0 +1,165 @@ + + + + + diff --git a/uni_modules/luyj-tree/components/luyj-tree/icon.css b/uni_modules/luyj-tree/components/luyj-tree/icon.css new file mode 100644 index 0000000..83fda8f --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree/icon.css @@ -0,0 +1,342 @@ +@font-face { + font-family: "iconfont"; /* Project id 2009600 */ + src: url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff2?t=1620633089023') format('woff2'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff?t=1620633089023') format('woff'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.ttf?t=1620633089023') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-banxuanzhongshousuo1-shi:before { + content: "\e682"; +} + +.icon-xuanzhong3:before { + content: "\e6bb"; +} + +.icon-weixuanzhong2:before { + content: "\e62e"; +} + +.icon-danxuanxuanzhong:before { + content: "\e631"; +} + +.icon-xuanzhong4:before { + content: "\e63e"; +} + +.icon-xuanzhong1:before { + content: "\e62d"; +} + +.icon-xuanzhong2:before { + content: "\e656"; +} + +.icon-selected:before { + content: "\e615"; +} + +.icon-weixuanzhong1:before { + content: "\e614"; +} + +.icon-xingzhuang6kaobei3-copy-copy:before { + content: "\e613"; +} + +.icon-radio-checked:before { + content: "\e63f"; +} + +.icon-huifu:before { + content: "\e619"; +} + +.icon-dizhi:before { + content: "\e64a"; +} + +.icon-kuaijiecaidan:before { + content: "\e60a"; +} + +.icon-z043:before { + content: "\e62f"; +} + +.icon-guanbi:before { + content: "\e607"; +} + +.icon-xuanze:before { + content: "\e623"; +} + +.icon-caidanzhaolinggan:before { + content: "\e616"; +} + +.icon-xitongshezhi:before { + content: "\e60c"; +} + +.icon-xitongshezhi1:before { + content: "\e633"; +} + +.icon-lunbo:before { + content: "\e692"; +} + +.icon-shuping:before { + content: "\e659"; +} + +.icon-tongzhi:before { + content: "\e641"; +} + +.icon-pinglunguanlishezhi:before { + content: "\e6ac"; +} + +.icon-icon:before { + content: "\e600"; +} + +.icon-liuyanguanli:before { + content: "\e61d"; +} + +.icon-xuanzhong:before { + content: "\e669"; +} + +.icon--:before { + content: "\e622"; +} + +.icon-tushu:before { + content: "\e604"; +} + +.icon-huishouzhan:before { + content: "\e61c"; +} + +.icon-yonghutouxiang:before { + content: "\e617"; +} + +.icon-liebiao:before { + content: "\e630"; +} + +.icon-fenlei:before { + content: "\e621"; +} + +.icon-tushu1:before { + content: "\e605"; +} + +.icon-tubiao-:before { + content: "\e620"; +} + +.icon-weixuanze:before { + content: "\e624"; +} + +.icon-tushujieyue:before { + content: "\e690"; +} + +.icon-lunbo1:before { + content: "\e6c5"; +} + +.icon-shanchu:before { + content: "\e67b"; +} + +.icon-lunbo2:before { + content: "\e61e"; +} + +.icon-huaban:before { + content: "\e663"; +} + +.icon-kehuan:before { + content: "\e608"; +} + +.icon-icon02:before { + content: "\e601"; +} + +.icon-huishouzhan1:before { + content: "\e612"; +} + +.icon-huishouzhan2:before { + content: "\e63d"; +} + +.icon-sousuo:before { + content: "\e62c"; +} + +.icon-xingzhuang:before { + content: "\e625"; +} + +.icon-lunbobankuai:before { + content: "\e61f"; +} + +.icon-shangchuan:before { + content: "\e602"; +} + +.icon-yonghu:before { + content: "\e761"; +} + +.icon-tongzhi1:before { + content: "\e603"; +} + +.icon-jingsong:before { + content: "\e65c"; +} + +.icon-fenlei1:before { + content: "\e6c6"; +} + +.icon-xieshupingicon:before { + content: "\e72d"; +} + +.icon-liuyan:before { + content: "\e626"; +} + +.icon-weixuanzhong:before { + content: "\e627"; +} + +.icon-youxiang:before { + content: "\e646"; +} + +.icon-lunboguanggao:before { + content: "\e6b3"; +} + +.icon-xuanze1:before { + content: "\e60d"; +} + +.icon-chushaixuanxiang:before { + content: "\e606"; +} + +.icon-liuyanguanli1:before { + content: "\e61a"; +} + +.icon-shanchu1:before { + content: "\e609"; +} + +.icon-huishouzhan3:before { + content: "\e642"; +} + +.icon-shangchuan1:before { + content: "\e823"; +} + +.icon-huishouzhan4:before { + content: "\e61b"; +} + +.icon-chuangzuo:before { + content: "\e8ad"; +} + +.icon-dianzan:before { + content: "\e8ae"; +} + +.icon-paihangbang:before { + content: "\e8b3"; +} + +.icon-shouye:before { + content: "\e8b9"; +} + +.icon-shoucang:before { + content: "\e8c6"; +} + +.icon-addApp:before { + content: "\e60b"; +} + +.icon-huishouzhan5:before { + content: "\e63a"; +} + +.icon-add1:before { + content: "\e60e"; +} + +.icon-shoucang1:before { + content: "\e60f"; +} + +.icon-canshutongji:before { + content: "\e618"; +} + +.icon-rizhiguanli:before { + content: "\e628"; +} + +.icon-shanchu2:before { + content: "\e629"; +} + +.icon-xinzeng:before { + content: "\e62a"; +} + +.icon-zhankailiebiao:before { + content: "\e62b"; +} + +.icon-xiala-copy:before { + content: "\e610"; +} + +.icon-shangla:before { + content: "\e64e"; +} + +.icon-xianxingshezhi:before { + content: "\e611"; +} diff --git a/uni_modules/luyj-tree/components/luyj-tree/luyj-tree.scss b/uni_modules/luyj-tree/components/luyj-tree/luyj-tree.scss new file mode 100644 index 0000000..2577ce3 --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree/luyj-tree.scss @@ -0,0 +1,121 @@ +.flex_between_center { + display: flex; + justify-content: space-between; + align-items: center; + } + + .checkbox { + position: relative; + height: 36rpx; + margin-left: 10rpx; + margin-right: 0px; + width: 36rpx; + .color { + color: #00aaff; + background-color: #00aaff; + } + .txt { + // font-size: 30rpx; + line-height: 36rpx; + width: 100%; + height: 100%; + display: flex; + } + } + .checkBorder { + border: 1px solid #ecdee4; + } + .header { + width: 100%; + position: fixed; + background-color: #fff; + z-index: 99; + .title { + height: 90rpx; + padding: 0 32rpx; + line-height: 90rpx; + font-size: 30rpx; + background-color: #f5f5f5; + color: #606064; + .iconclass { + display: inline-block; + margin: 0 12rpx; + color: #D0D4DB; + font-size: 28rpx; + } + } + } + .container-list { + overflow-y: scroll; + overflow-x: hidden; + .common { + background-color: #fff; + border-bottom: 1rpx solid #f4f4f4; + padding-left: 10rpx; + .content { + display: flex; + align-items: center; + min-height: 60rpx; + width: 100%; + padding: 15rpx 0; + position: relative; + font-size: 32rpx; + + .right { + position: absolute; + right: 30rpx; + color: #babdc3; + font-size: 32rpx; + } + } + } + // item的数字样式 + .word { + font-size: 30rpx; + color: #5b5757; + width: 500rpx; + word-break: break-all; + } + } + .active { + color: #4297ED !important; + } + .none { + color: #666666; + } + .icon-selected{ + color: #0095F2!important; + font-size: 40rpx!important; + } + .icons{ + color: #0095F2!important; + font-size: 40rpx!important; + } + .inline-item { + display: inline-block + } + + .content-item{ + display: flex; + position: relative; + align-items: center; + } + + .box_sizing { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + + .btn { + position: fixed; + bottom: 0; + padding: 10px; + background-color: #fff; + width: 100%; + + .sureBtn { + background-color: #0095F2; + color: #fff; + } + } \ No newline at end of file diff --git a/uni_modules/luyj-tree/components/luyj-tree/luyj-tree.vue b/uni_modules/luyj-tree/components/luyj-tree/luyj-tree.vue new file mode 100644 index 0000000..7efdfe2 --- /dev/null +++ b/uni_modules/luyj-tree/components/luyj-tree/luyj-tree.vue @@ -0,0 +1,709 @@ + + + + diff --git a/uni_modules/luyj-tree/lib/css/icon.css b/uni_modules/luyj-tree/lib/css/icon.css new file mode 100644 index 0000000..cf1929d --- /dev/null +++ b/uni_modules/luyj-tree/lib/css/icon.css @@ -0,0 +1,346 @@ +@font-face { + font-family: "iconfont"; /* Project id 2009600 */ + src: url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff2?t=1620633089023') format('woff2'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.woff?t=1620633089023') format('woff'), + url('https://at.alicdn.com/t/font_2009600_gpzp7pxtnw.ttf?t=1620633089023') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +/* 清除图标 */ +.icon-clear:before{ + content: '\e606'; +} + +.icon-banxuanzhongshousuo1-shi:before { + content: "\e682"; +} + +.icon-xuanzhong3:before { + content: "\e6bb"; +} + +.icon-weixuanzhong2:before { + content: "\e62e"; +} + +.icon-danxuanxuanzhong:before { + content: "\e631"; +} + +.icon-xuanzhong4:before { + content: "\e63e"; +} + +.icon-xuanzhong1:before { + content: "\e62d"; +} +.icon-xuanzhong2:before { + content: "\e656"; +} + +.icon-selected:before { + content: "\e615"; +} + +.icon-weixuanzhong1:before { + content: "\e614"; +} + +.icon-xingzhuang6kaobei3-copy-copy:before { + content: "\e613"; +} + +.icon-radio-checked:before { + content: "\e63f"; +} + +.icon-huifu:before { + content: "\e619"; +} + +.icon-dizhi:before { + content: "\e64a"; +} + +.icon-kuaijiecaidan:before { + content: "\e60a"; +} + +.icon-z043:before { + content: "\e62f"; +} + +.icon-guanbi:before { + content: "\e607"; +} + +.icon-xuanze:before { + content: "\e623"; +} + +.icon-caidanzhaolinggan:before { + content: "\e616"; +} + +.icon-xitongshezhi:before { + content: "\e60c"; +} + +.icon-xitongshezhi1:before { + content: "\e633"; +} + +.icon-lunbo:before { + content: "\e692"; +} + +.icon-shuping:before { + content: "\e659"; +} + +.icon-tongzhi:before { + content: "\e641"; +} + +.icon-pinglunguanlishezhi:before { + content: "\e6ac"; +} + +.icon-icon:before { + content: "\e600"; +} + +.icon-liuyanguanli:before { + content: "\e61d"; +} + +.icon-xuanzhong:before { + content: "\e669"; +} + +.icon--:before { + content: "\e622"; +} + +.icon-tushu:before { + content: "\e604"; +} + +.icon-huishouzhan:before { + content: "\e61c"; +} + +.icon-yonghutouxiang:before { + content: "\e617"; +} + +.icon-liebiao:before { + content: "\e630"; +} + +.icon-fenlei:before { + content: "\e621"; +} + +.icon-tushu1:before { + content: "\e605"; +} + +.icon-tubiao-:before { + content: "\e620"; +} + +.icon-weixuanze:before { + content: "\e624"; +} + +.icon-tushujieyue:before { + content: "\e690"; +} + +.icon-lunbo1:before { + content: "\e6c5"; +} + +.icon-shanchu:before { + content: "\e67b"; +} + +.icon-lunbo2:before { + content: "\e61e"; +} + +.icon-huaban:before { + content: "\e663"; +} + +.icon-kehuan:before { + content: "\e608"; +} + +.icon-icon02:before { + content: "\e601"; +} + +.icon-huishouzhan1:before { + content: "\e612"; +} + +.icon-huishouzhan2:before { + content: "\e63d"; +} + +.icon-sousuo:before { + content: "\e62c"; +} + +.icon-xingzhuang:before { + content: "\e625"; +} + +.icon-lunbobankuai:before { + content: "\e61f"; +} + +.icon-shangchuan:before { + content: "\e602"; +} + +.icon-yonghu:before { + content: "\e761"; +} + +.icon-tongzhi1:before { + content: "\e603"; +} + +.icon-jingsong:before { + content: "\e65c"; +} + +.icon-fenlei1:before { + content: "\e6c6"; +} + +.icon-xieshupingicon:before { + content: "\e72d"; +} + +.icon-liuyan:before { + content: "\e626"; +} + +.icon-weixuanzhong:before { + content: "\e627"; +} + +.icon-youxiang:before { + content: "\e646"; +} + +.icon-lunboguanggao:before { + content: "\e6b3"; +} + +.icon-xuanze1:before { + content: "\e60d"; +} + +.icon-chushaixuanxiang:before { + content: "\e606"; +} + +.icon-liuyanguanli1:before { + content: "\e61a"; +} + +.icon-shanchu1:before { + content: "\e609"; +} + +.icon-huishouzhan3:before { + content: "\e642"; +} + +.icon-shangchuan1:before { + content: "\e823"; +} + +.icon-huishouzhan4:before { + content: "\e61b"; +} + +.icon-chuangzuo:before { + content: "\e8ad"; +} + +.icon-dianzan:before { + content: "\e8ae"; +} + +.icon-paihangbang:before { + content: "\e8b3"; +} + +.icon-shouye:before { + content: "\e8b9"; +} + +.icon-shoucang:before { + content: "\e8c6"; +} + +.icon-addApp:before { + content: "\e60b"; +} + +.icon-huishouzhan5:before { + content: "\e63a"; +} + +.icon-add1:before { + content: "\e60e"; +} + +.icon-shoucang1:before { + content: "\e60f"; +} + +.icon-canshutongji:before { + content: "\e618"; +} + +.icon-rizhiguanli:before { + content: "\e628"; +} + +.icon-shanchu2:before { + content: "\e629"; +} + +.icon-xinzeng:before { + content: "\e62a"; +} + +.icon-zhankailiebiao:before { + content: "\e62b"; +} + +.icon-xiala-copy:before { + content: "\e610"; +} + +.icon-shangla:before { + content: "\e64e"; +} + +.icon-xianxingshezhi:before { + content: "\e611"; +} diff --git a/uni_modules/luyj-tree/package.json b/uni_modules/luyj-tree/package.json new file mode 100644 index 0000000..b132148 --- /dev/null +++ b/uni_modules/luyj-tree/package.json @@ -0,0 +1,86 @@ +{ + "id": "luyj-tree", + "displayName": "luyj-tree 无限级树形结构。", + "version": "1.4.11", + "description": "无限极树形结构。支持搜索、面包屑导航、单项选择、多项选择。", + "keywords": [ + "uni-ui", + "uniui", + "", + "tree", + "" +], + "repository": "https://github.com/luyanjie00436/luyj-tree-app", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "category": [ + "前端组件", + "通用组件" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "u", + "Android Browser": "u", + "微信浏览器(Android)": "u", + "QQ浏览器(Android)": "u" + }, + "H5-pc": { + "Chrome": "y", + "IE": "u", + "Edge": "u", + "Firefox": "y", + "Safari": "u" + }, + "小程序": { + "微信": { + "minVersion": "2.18.1" + }, + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "u" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/luyj-tree/readme.md b/uni_modules/luyj-tree/readme.md new file mode 100644 index 0000000..7d064b0 --- /dev/null +++ b/uni_modules/luyj-tree/readme.md @@ -0,0 +1,251 @@ +# luyj-tree +> 代码块 `luyj-tree` 内包含`luyj-tree-search`、`luyj-tree-navigation`、`luyj-tree-item` + +## 说明 + +* 本插件是基于[xiaolu-tree](https://ext.dcloud.net.cn/plugin?id=2423)进行了uni_modules模块化。并进行了一些修改。 +* 本人暂时只在微信小程序端和H5 使用Chrome浏览器测试。更改了一些内容,有可能会有一些错误 或说明与实际不一致,介意者慎用。本人会适当的抽出业余时间,把它完善,毕竟有一定的下载量了,而且自己也需要学习,再次感谢原作者。 +* 暂时,使用自定义插件渲染有问题,会出现``duplication is found under a single shadow root. The first one was accepted`` ,还未找到解决方案。 + +### 安装方式 + +本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。 + +### 基本用法 + +在 ``template`` 中使用组件 + +```html + + + + + + {{item.name}} + + + +``` + +``` javascript +import dataList from '@/common/data.js'; // 引用数据 +export default { + data() { + return { + tree: dataList, + max: 5, + } + }, +} +``` +### 功能说明 + +1. 树形结构展示。 +2. 包含搜索框。能够自定义搜索框的样式,能够直接搜索树形图、子文件的内容。 +3. 包含面包屑导航。 +4. 可以仅仅展示或选择树形的项内容。 +5. 可以显示选择改变,或确认选择的方法。 +6. 只需传checkList字段就可以回显默认选中。 +7. 支持自定义显示内容的插件(slot)。 +8. 支持懒加载。 + +### 属性 + +|属性名 |类型 |默认值 | 说明 | +|:-: |:-: |:-: | :-: | +|search-if |Boolean |true | 是否开启搜索 | +|search-background-color |String |#FFFFFF | 搜索框背景色 | +|search-input-background-color |String |#EEEFF0 | 搜索框的输入框背景色 | +|search-radius |Number |40 | 搜索框的圆角值,单位rpx(默认40) | +|search-placeholder |String |搜索 | 搜索框的内容物空时提示内容 | +|search-placeholder-style |String | | 搜索框的placehoder的样式 | +|search-maxlength |Number |140 | 搜索框的最大输入长度 ,设置为 -1 的时候不限制最大长度 | +|search-iconColor |String | | 搜索框的图标颜色 | +|search-clearable |Boolean |true | 搜索框是否显示清除按钮 | +|trees |Array |[] | trees 传入的树形结构,每个对象必须包含唯一的id值 | +|is-check |Boolean |false | 是否开启选择操作 | +|slot-obj |Object |null | 传入插槽的参数(自定义的slot中不能引用页面的参数,否则样式会出错)| +|check-list |Array |[] | 选中的列表 | +|parent |Boolean |false | 当子级全选时,是否选中父级数据(prop.checkStrictly为true时生效)。此参数占时失效。 | +|parent-list |Array |[] | 父级列表 | +|check-active-color |String |#00AAFF | 选中时单选框/复选框的颜色 | +|check-none-color |String |#B8B8B8 | 未选中时单选框/复选框的颜色 | +|props |Object |{id: 'id',label:'name',children:'children',hasChilren: 'user',multiple: false,checkStrictly: false ,nodes: false} | 参数配置,详细见下表。 | +|step-reload |Boolean |false | 是否懒加载数列 | +|page-size |Number |50 | 每次加载的条数,stepReload = true时生效 | + +#### props 参数说明 +|参数 |类型 |默认值 | 说明 | +|:-: |:-: |:-: | :-: | +|id |String |id | id列的属性名 | +|label |String |name | 指定选项标签为选项对象的某个属性值 | +|children |String |children | 指定选项的子选项为选项对象的某个属性值 | +|multiple |Boolean |true | 值为true时为多选,为false时是单选 | +|checkStrictly |Boolean |false | 需要在多选模式下才传该值,checkStrictly为false时,可让父子节点取消关联,选择任意一级选项。为true时关联子级,可以全选(暂时不可用) | +|nodes |Boolean |true | 在单选模式下,nodes为false时,可以选择任意一级选项,nodes为true时,只能选择叶子节点 | + +### 事件 + +|事件名 |说明 |返回值 | +|:-: |:-: |:-: | +|@clickItem |点击Item列事件 |(item : Object ,realHasChildren : Boolean) | +|@change |选项改变时触发事件 当前选中的值 | +|@sendValue |点击确认按钮时触发事件 | 参数(选中的项值) | + +``@clickItem``,当点击item列时有效。返回值说明如下: + +|返回值 |类型 | 说明 | +|:-: |:-: |:-: | +|item |Object | 当前选中的值 | +|realHasChildren |Boolean| 是否包含子级 | + +``@change`` ,``is-check``为```true```时,当选中的值改变时触发。返回值说明如下: + +|参数 |类型 | 说明 | +|:-: |:-: | :-: | +|e.detail.value |Boolean | 当前项是否选中 | +|item |Object | 当前的Item值 | + +# luyj-tree-search + +### 说明 + +``luyj-tree-search`` 是 ``luyj-tree``内的组件,作为搜索框,可以单独引用。 + +![Image text](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-c07243ab-98a3-4f90-9b4d-2fa60aba2ee9/ba6ace1d-4881-4373-8a8e-b90079d3e290.png) + +### 基本用法 +### +在 ``template`` 中使用组件 + +``` html + +``` + +### 属性 + +|属性名 |类型 |默认值 | 说明 | +|:-: |:-: |:-: | :-: | +|background-color |String |#FFFFFF | 背景色 | +|input-background-color |String |#EEEFF0 | 输入框背景色 | +|radius |Number |40 | 输入框圆角,单位rpx | +|icon-color |String |#B8B8B8 | 图标颜色 | +|placeholder |String |搜索 | 输入框为空时占位符 | +|placeholder-style |String | | placeholder的样式 | +|maxlength |Number |140 | 最大输入长度 ,设置为 -1 的时候不限制最大长度 | + +### 事件 + +|事件名 |说明 |返回值 | +|:-: |:-: |:-: | +|@input |输入框内容变化时,触发事件 | event | +|@focus |输入框获得焦点时,触发事件 | event | +|@blur |输入框失去焦点时,触发事件 | event | +|@confirm |输入框内容提交时,触发事件 | event | +|@clear |清空输入框内容时,触发事件 | '' | + +# luyj-tree-navigation + +``luyj-tree-navigation`` 是 ``luyj-tree``内的组件,作为面包屑导航栏,可以单独引用。 + +# luyj-tree-item + +``luyj-tree-item`` 是 ``luyj-tree``内的组件,是树的选择项。包含单选、多选的样式,可以单独引用。 + +### 基础用法 + +在``template``中使用组件 + +``` html + + + + + + + + + +``` + +对应的数据及方法如下: + +``` javascript +import dataItem from '../../common/item-data.js'; +export default { + data() { + return { + item : dataItem, // 当前item值 + isCheck : true, // 是否可选 + ischecked : true, // 是否选中 + multiple : false, // 是否多选 + comparison :{ + value : 'value', // 选中值 + label : 'label', // 显示名称 + children:'children', // 子级名称 + }, + test :124 + } + }, + onLoad:function(){ + }, + methods: { + // 修改change + change : function(e , item){ + console.log("修改当前值=>" ,e , item); + }, + // 点击当前项目 + clickItem : function(item , hasChildren){ + console.log("点击当前项目"); + } + } +} +``` + +### 属性 + +|属性名 |类型 |默认值 | 说明 | +|:-: |:-: |:-: | :-: | +|item |Object |{} | 当前项的值 | +|is-check |Boolean |false |判断是否可选择,与multiple组合使用。判断显示类型为展示、单选、多选| +|multiple |Boolean |false |是否多选。当isCheck值为true时有效。multiple=false时为单选,multiple=true时多选| +|checked |Boolean |false |当前项是否选中状态| +|nodes |Boolean |false |是否只能选择叶子结点| +|check-active-color |String |#00AAFF |选中状态下,单选框/复选框的颜色| +|check-none-color |String |#B8B8B8 |未选中状态下,单选框/复选框的颜色| +|comparison |Object |{value : 'value',label : 'label',children:'children'}; |当前项的列名称。 | + +#### **comparison**的值 +|参数 |类型 |默认值 | 说明 | +|:-: |:-: |:-: | :-: | +|value |String |value | value值的列名,即选中时单选按钮或复选按钮的值 | +|label |String |label | label值的列名,即当前item默认展示的名称 | +|children |String |children | children对的列名,即当前item的下一级 | + +### 事件 + +|事件名 |说明 |返回值 | +|:-: |:-: |:-: | +|@change |单选框/复选框值改变时执行方法 |(e , item) | +|@clickItem |点击当前选项 |{item , hasChildren} | + +#### **change** 的参数说明 + +|参数 |类型 | 说明 | +|:-: |:-: | :-: | +|e.detail.value |Boolean | 当前项是否选中 | +|item |Object | 当前的Item值 | + +#### **clickItem** 的参数说明 + +|参数 |类型 | 说明 | +|:-: |:-: | :-: | +|item |Object | 当前的Item值 | +|hasChildren |Boolean | 是否包含子级,即children是否包含对象 | + +### 源码地址 + +[代码csdn地址](https://codechina.csdn.net/qq_28624235/luyj-tree-app)
+[代码github地址](https://github.com/luyanjie00436/luyj-tree-app) \ No newline at end of file diff --git a/uni_modules/uni-datetime-picker/changelog.md b/uni_modules/uni-datetime-picker/changelog.md new file mode 100644 index 0000000..1e82f46 --- /dev/null +++ b/uni_modules/uni-datetime-picker/changelog.md @@ -0,0 +1,140 @@ +## 2.2.24(2023-06-02) +- 修复 部分情况修改时间,开始、结束时间显示异常的Bug [详情](https://ask.dcloud.net.cn/question/171146) +- 优化 当前月可以选择上月、下月的日期 +## 2.2.23(2023-05-02) +- 修复 部分情况修改时间,开始时间未更新 [详情](https://github.com/dcloudio/uni-ui/issues/737) +- 修复 部分平台及设备第一次点击无法显示弹框 +- 修复 ios 日期格式未补零显示及使用异常 [详情](https://ask.dcloud.net.cn/question/162979) +## 2.2.22(2023-03-30) +- 修复 日历 picker 修改年月后,自动选中当月1日 [详情](https://ask.dcloud.net.cn/question/165937) +- 修复 小程序端 低版本 ios NaN [详情](https://ask.dcloud.net.cn/question/162979) +## 2.2.21(2023-02-20) +- 修复 firefox 浏览器显示区域点击无法拉起日历弹框的Bug [详情](https://ask.dcloud.net.cn/question/163362) +## 2.2.20(2023-02-17) +- 优化 值为空依然选中当天问题 +- 优化 提供 default-value 属性支持配置选择器打开时默认显示的时间 +- 优化 非范围选择未选择日期时间,点击确认按钮选中当前日期时间 +- 优化 字节小程序日期时间范围选择,底部日期换行问题 +## 2.2.19(2023-02-09) +- 修复 2.2.18 引起范围选择配置 end 选择无效的Bug [详情](https://github.com/dcloudio/uni-ui/issues/686) +## 2.2.18(2023-02-08) +- 修复 移动端范围选择change事件触发异常的Bug [详情](https://github.com/dcloudio/uni-ui/issues/684) +- 优化 PC端输入日期格式错误时返回当前日期时间 +- 优化 PC端输入日期时间超出 start、end 限制的Bug +- 优化 移动端日期时间范围用法时间展示不完整问题 +## 2.2.17(2023-02-04) +- 修复 小程序端绑定 Date 类型报错的Bug [详情](https://github.com/dcloudio/uni-ui/issues/679) +- 修复 vue3 time-picker 无法显示绑定时分秒的Bug +## 2.2.16(2023-02-02) +- 修复 字节小程序报错的Bug +## 2.2.15(2023-02-02) +- 修复 某些情况切换月份错误的Bug +## 2.2.14(2023-01-30) +- 修复 某些情况切换月份错误的Bug [详情](https://ask.dcloud.net.cn/question/162033) +## 2.2.13(2023-01-10) +- 修复 多次加载组件造成内存占用的Bug +## 2.2.12(2022-12-01) +- 修复 vue3 下 i18n 国际化初始值不正确的Bug +## 2.2.11(2022-09-19) +- 修复 支付宝小程序样式错乱的Bug [详情](https://github.com/dcloudio/uni-app/issues/3861) +## 2.2.10(2022-09-19) +- 修复 反向选择日期范围,日期显示异常的Bug [详情](https://ask.dcloud.net.cn/question/153401?item_id=212892&rf=false) +## 2.2.9(2022-09-16) +- 可以使用 uni-scss 控制主题色 +## 2.2.8(2022-09-08) +- 修复 close事件无效的Bug +## 2.2.7(2022-09-05) +- 修复 移动端 maskClick 无效的Bug [详情](https://ask.dcloud.net.cn/question/140824) +## 2.2.6(2022-06-30) +- 优化 组件样式,调整了组件图标大小、高度、颜色等,与uni-ui风格保持一致 +## 2.2.5(2022-06-24) +- 修复 日历顶部年月及底部确认未国际化的Bug +## 2.2.4(2022-03-31) +- 修复 Vue3 下动态赋值,单选类型未响应的Bug +## 2.2.3(2022-03-28) +- 修复 Vue3 下动态赋值未响应的Bug +## 2.2.2(2021-12-10) +- 修复 clear-icon 属性在小程序平台不生效的Bug +## 2.2.1(2021-12-10) +- 修复 日期范围选在小程序平台,必须多点击一次才能取消选中状态的Bug +## 2.2.0(2021-11-19) +- 优化 组件UI,并提供设计资源 [详情](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移 [https://uniapp.dcloud.io/component/uniui/uni-datetime-picker](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker) +## 2.1.5(2021-11-09) +- 新增 提供组件设计资源,组件样式调整 +## 2.1.4(2021-09-10) +- 修复 hide-second 在移动端的Bug +- 修复 单选赋默认值时,赋值日期未高亮的Bug +- 修复 赋默认值时,移动端未正确显示时间的Bug +## 2.1.3(2021-09-09) +- 新增 hide-second 属性,支持只使用时分,隐藏秒 +## 2.1.2(2021-09-03) +- 优化 取消选中时(范围选)直接开始下一次选择, 避免多点一次 +- 优化 移动端支持清除按钮,同时支持通过 ref 调用组件的 clear 方法 +- 优化 调整字号大小,美化日历界面 +- 修复 因国际化导致的 placeholder 失效的Bug +## 2.1.1(2021-08-24) +- 新增 支持国际化 +- 优化 范围选择器在 pc 端过宽的问题 +## 2.1.0(2021-08-09) +- 新增 适配 vue3 +## 2.0.19(2021-08-09) +- 新增 支持作为 uni-forms 子组件相关功能 +- 修复 在 uni-forms 中使用时,选择时间报 NAN 错误的Bug +## 2.0.18(2021-08-05) +- 修复 type 属性动态赋值无效的Bug +- 修复 ‘确认’按钮被 tabbar 遮盖 bug +- 修复 组件未赋值时范围选左、右日历相同的Bug +## 2.0.17(2021-08-04) +- 修复 范围选未正确显示当前值的Bug +- 修复 h5 平台(移动端)报错 'cale' of undefined 的Bug +## 2.0.16(2021-07-21) +- 新增 return-type 属性支持返回 date 日期对象 +## 2.0.15(2021-07-14) +- 修复 单选日期类型,初始赋值后不在当前日历的Bug +- 新增 clearIcon 属性,显示框的清空按钮可配置显示隐藏(仅 pc 有效) +- 优化 移动端移除显示框的清空按钮,无实际用途 +## 2.0.14(2021-07-14) +- 修复 组件赋值为空,界面未更新的Bug +- 修复 start 和 end 不能动态赋值的Bug +- 修复 范围选类型,用户选择后再次选择右侧日历(结束日期)显示不正确的Bug +## 2.0.13(2021-07-08) +- 修复 范围选择不能动态赋值的Bug +## 2.0.12(2021-07-08) +- 修复 范围选择的初始时间在一个月内时,造成无法选择的bug +## 2.0.11(2021-07-08) +- 优化 弹出层在超出视窗边缘定位不准确的问题 +## 2.0.10(2021-07-08) +- 修复 范围起始点样式的背景色与今日样式的字体前景色融合,导致日期字体看不清的Bug +- 优化 弹出层在超出视窗边缘被遮盖的问题 +## 2.0.9(2021-07-07) +- 新增 maskClick 事件 +- 修复 特殊情况日历 rpx 布局错误的Bug,rpx -> px +- 修复 范围选择时清空返回值不合理的bug,['', ''] -> [] +## 2.0.8(2021-07-07) +- 新增 日期时间显示框支持插槽 +## 2.0.7(2021-07-01) +- 优化 添加 uni-icons 依赖 +## 2.0.6(2021-05-22) +- 修复 图标在小程序上不显示的Bug +- 优化 重命名引用组件,避免潜在组件命名冲突 +## 2.0.5(2021-05-20) +- 优化 代码目录扁平化 +## 2.0.4(2021-05-12) +- 新增 组件示例地址 +## 2.0.3(2021-05-10) +- 修复 ios 下不识别 '-' 日期格式的Bug +- 优化 pc 下弹出层添加边框和阴影 +## 2.0.2(2021-05-08) +- 修复 在 admin 中获取弹出层定位错误的bug +## 2.0.1(2021-05-08) +- 修复 type 属性向下兼容,默认值从 date 变更为 datetime +## 2.0.0(2021-04-30) +- 支持日历形式的日期+时间的范围选择 + > 注意:此版本不向后兼容,不再支持单独时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker) +## 1.0.6(2021-03-18) +- 新增 hide-second 属性,时间支持仅选择时、分 +- 修复 选择跟显示的日期不一样的Bug +- 修复 chang事件触发2次的Bug +- 修复 分、秒 end 范围错误的Bug +- 优化 更好的 nvue 适配 diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue new file mode 100644 index 0000000..997e004 --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue new file mode 100644 index 0000000..e2572ad --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue @@ -0,0 +1,931 @@ + + + + + diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json new file mode 100644 index 0000000..024f22f --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json @@ -0,0 +1,22 @@ +{ + "uni-datetime-picker.selectDate": "select date", + "uni-datetime-picker.selectTime": "select time", + "uni-datetime-picker.selectDateTime": "select date and time", + "uni-datetime-picker.startDate": "start date", + "uni-datetime-picker.endDate": "end date", + "uni-datetime-picker.startTime": "start time", + "uni-datetime-picker.endTime": "end time", + "uni-datetime-picker.ok": "ok", + "uni-datetime-picker.clear": "clear", + "uni-datetime-picker.cancel": "cancel", + "uni-datetime-picker.year": "-", + "uni-datetime-picker.month": "", + "uni-calender.MON": "MON", + "uni-calender.TUE": "TUE", + "uni-calender.WED": "WED", + "uni-calender.THU": "THU", + "uni-calender.FRI": "FRI", + "uni-calender.SAT": "SAT", + "uni-calender.SUN": "SUN", + "uni-calender.confirm": "confirm" +} diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js new file mode 100644 index 0000000..de7509c --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js @@ -0,0 +1,8 @@ +import en from './en.json' +import zhHans from './zh-Hans.json' +import zhHant from './zh-Hant.json' +export default { + en, + 'zh-Hans': zhHans, + 'zh-Hant': zhHant +} diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json new file mode 100644 index 0000000..d2df5e7 --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json @@ -0,0 +1,22 @@ +{ + "uni-datetime-picker.selectDate": "选择日期", + "uni-datetime-picker.selectTime": "选择时间", + "uni-datetime-picker.selectDateTime": "选择日期时间", + "uni-datetime-picker.startDate": "开始日期", + "uni-datetime-picker.endDate": "结束日期", + "uni-datetime-picker.startTime": "开始时间", + "uni-datetime-picker.endTime": "结束时间", + "uni-datetime-picker.ok": "确定", + "uni-datetime-picker.clear": "清除", + "uni-datetime-picker.cancel": "取消", + "uni-datetime-picker.year": "年", + "uni-datetime-picker.month": "月", + "uni-calender.SUN": "日", + "uni-calender.MON": "一", + "uni-calender.TUE": "二", + "uni-calender.WED": "三", + "uni-calender.THU": "四", + "uni-calender.FRI": "五", + "uni-calender.SAT": "六", + "uni-calender.confirm": "确认" +} \ No newline at end of file diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json new file mode 100644 index 0000000..d23fa3c --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json @@ -0,0 +1,22 @@ +{ + "uni-datetime-picker.selectDate": "選擇日期", + "uni-datetime-picker.selectTime": "選擇時間", + "uni-datetime-picker.selectDateTime": "選擇日期時間", + "uni-datetime-picker.startDate": "開始日期", + "uni-datetime-picker.endDate": "結束日期", + "uni-datetime-picker.startTime": "開始时间", + "uni-datetime-picker.endTime": "結束时间", + "uni-datetime-picker.ok": "確定", + "uni-datetime-picker.clear": "清除", + "uni-datetime-picker.cancel": "取消", + "uni-datetime-picker.year": "年", + "uni-datetime-picker.month": "月", + "uni-calender.SUN": "日", + "uni-calender.MON": "一", + "uni-calender.TUE": "二", + "uni-calender.WED": "三", + "uni-calender.THU": "四", + "uni-calender.FRI": "五", + "uni-calender.SAT": "六", + "uni-calender.confirm": "確認" +} \ No newline at end of file diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue new file mode 100644 index 0000000..81a042a --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue @@ -0,0 +1,934 @@ + + + + + diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue new file mode 100644 index 0000000..4899863 --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue @@ -0,0 +1,1035 @@ + + + + diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js new file mode 100644 index 0000000..fc98623 --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js @@ -0,0 +1,453 @@ +class Calendar { + constructor({ + selected, + startDate, + endDate, + range, + } = {}) { + // 当前日期 + this.date = this.getDateObj(new Date()) // 当前初入日期 + // 打点信息 + this.selected = selected || []; + // 起始时间 + this.startDate = startDate + // 终止时间 + this.endDate = endDate + // 是否范围选择 + this.range = range + // 多选状态 + this.cleanMultipleStatus() + // 每周日期 + this.weeks = {} + this.lastHover = false + } + /** + * 设置日期 + * @param {Object} date + */ + setDate(date) { + const selectDate = this.getDateObj(date) + this.getWeeks(selectDate.fullDate) + } + + /** + * 清理多选状态 + */ + cleanMultipleStatus() { + this.multipleStatus = { + before: '', + after: '', + data: [] + } + } + + setStartDate(startDate) { + this.startDate = startDate + } + + setEndDate(endDate) { + this.endDate = endDate + } + + getPreMonthObj(date){ + date = fixIosDateFormat(date) + date = new Date(date) + + const oldMonth = date.getMonth() + date.setMonth(oldMonth - 1) + const newMonth = date.getMonth() + if(oldMonth !== 0 && newMonth - oldMonth === 0){ + date.setMonth(newMonth - 1) + } + return this.getDateObj(date) + } + getNextMonthObj(date){ + date = fixIosDateFormat(date) + date = new Date(date) + + const oldMonth = date.getMonth() + date.setMonth(oldMonth + 1) + const newMonth = date.getMonth() + if(newMonth - oldMonth > 1){ + date.setMonth(newMonth - 1) + } + return this.getDateObj(date) + } + + /** + * 获取指定格式Date对象 + */ + getDateObj(date) { + date = fixIosDateFormat(date) + date = new Date(date) + + return { + fullDate: getDate(date), + year: date.getFullYear(), + month: addZero(date.getMonth() + 1), + date: addZero(date.getDate()), + day: date.getDay() + } + } + + /** + * 获取上一个月日期集合 + */ + getPreMonthDays(amount, dateObj) { + const result = [] + for (let i = amount - 1; i >= 0; i--) { + const month = dateObj.month > 1 ? dateObj.month -1 : 12 + const year = month === 12 ? dateObj.year - 1 : dateObj.year + const date = new Date(year,month,-i).getDate() + const fullDate = `${year}-${addZero(month)}-${addZero(date)}` + let multiples = this.multipleStatus.data + let multiplesStatus = -1 + if (this.range && multiples) { + multiplesStatus = multiples.findIndex((item) => { + return this.dateEqual(item, fullDate) + }) + } + const checked = multiplesStatus !== -1 + // 获取打点信息 + const extraInfo = this.selected && this.selected.find((item) => { + if (this.dateEqual(fullDate, item.date)) { + return item + } + }) + result.push({ + fullDate, + year, + month, + date, + multiple: this.range ? checked : false, + beforeMultiple: this.isLogicBefore(fullDate, this.multipleStatus.before, this.multipleStatus.after), + afterMultiple: this.isLogicAfter(fullDate, this.multipleStatus.before, this.multipleStatus.after), + disable: (this.startDate && !dateCompare(this.startDate, fullDate)) || (this.endDate && !dateCompare(fullDate,this.endDate)), + isToday: fullDate === this.date.fullDate, + userChecked: false, + extraInfo + }) + } + return result + } + /** + * 获取本月日期集合 + */ + getCurrentMonthDays(amount, dateObj) { + const result = [] + const fullDate = this.date.fullDate + for (let i = 1; i <= amount; i++) { + const currentDate = `${dateObj.year}-${dateObj.month}-${addZero(i)}` + const isToday = fullDate === currentDate + // 获取打点信息 + const extraInfo = this.selected && this.selected.find((item) => { + if (this.dateEqual(currentDate, item.date)) { + return item + } + }) + + // 日期禁用 + let disableBefore = true + let disableAfter = true + if (this.startDate) { + disableBefore = dateCompare(this.startDate, currentDate) + } + + if (this.endDate) { + disableAfter = dateCompare(currentDate, this.endDate) + } + + let multiples = this.multipleStatus.data + let multiplesStatus = -1 + if (this.range && multiples) { + multiplesStatus = multiples.findIndex((item) => { + return this.dateEqual(item, currentDate) + }) + } + const checked = multiplesStatus !== -1 + + result.push({ + fullDate: currentDate, + year: dateObj.year, + month: dateObj.month, + date: i, + multiple: this.range ? checked : false, + beforeMultiple: this.isLogicBefore(currentDate, this.multipleStatus.before, this.multipleStatus.after), + afterMultiple: this.isLogicAfter(currentDate, this.multipleStatus.before, this.multipleStatus.after), + disable: (this.startDate && !dateCompare(this.startDate, currentDate)) || (this.endDate && !dateCompare(currentDate,this.endDate)), + isToday, + userChecked: false, + extraInfo + }) + } + return result + } + /** + * 获取下一个月日期集合 + */ + _getNextMonthDays(amount, dateObj) { + const result = [] + const month = dateObj.month + 1 + for (let i = 1; i <= amount; i++) { + const month = dateObj.month === 12 ? 1 : dateObj.month*1 + 1 + const year = month === 1 ? dateObj.year + 1 : dateObj.year + const fullDate = `${year}-${addZero(month)}-${addZero(i)}` + let multiples = this.multipleStatus.data + let multiplesStatus = -1 + if (this.range && multiples) { + multiplesStatus = multiples.findIndex((item) => { + return this.dateEqual(item, fullDate) + }) + } + const checked = multiplesStatus !== -1 + // 获取打点信息 + const extraInfo = this.selected && this.selected.find((item) => { + if (this.dateEqual(fullDate, item.date)) { + return item + } + }) + result.push({ + fullDate, + year, + date: i, + month, + multiple: this.range ? checked : false, + beforeMultiple: this.isLogicBefore(fullDate, this.multipleStatus.before, this.multipleStatus.after), + afterMultiple: this.isLogicAfter(fullDate, this.multipleStatus.before, this.multipleStatus.after), + disable: (this.startDate && !dateCompare(this.startDate, fullDate)) || (this.endDate && !dateCompare(fullDate,this.endDate)), + isToday: fullDate === this.date.fullDate, + userChecked: false, + extraInfo + }) + } + return result + } + + /** + * 获取当前日期详情 + * @param {Object} date + */ + getInfo(date) { + if (!date) { + date = new Date() + } + + return this.calendar.find(item => item.fullDate === this.getDateObj(date).fullDate) + } + + /** + * 比较时间是否相等 + */ + dateEqual(before, after) { + before = new Date(fixIosDateFormat(before)) + after = new Date(fixIosDateFormat(after)) + return before.valueOf() === after.valueOf() + } + + /** + * 比较真实起始日期 + */ + + isLogicBefore(currentDate, before, after) { + let logicBefore = before + if (before && after) { + logicBefore = dateCompare(before, after) ? before : after + } + return this.dateEqual(logicBefore, currentDate) + } + + isLogicAfter(currentDate, before, after) { + let logicAfter = after + if (before && after) { + logicAfter = dateCompare(before, after) ? after : before + } + return this.dateEqual(logicAfter, currentDate) + } + + /** + * 获取日期范围内所有日期 + * @param {Object} begin + * @param {Object} end + */ + geDateAll(begin, end) { + var arr = [] + var ab = begin.split('-') + var ae = end.split('-') + var db = new Date() + db.setFullYear(ab[0], ab[1] - 1, ab[2]) + var de = new Date() + de.setFullYear(ae[0], ae[1] - 1, ae[2]) + var unixDb = db.getTime() - 24 * 60 * 60 * 1000 + var unixDe = de.getTime() - 24 * 60 * 60 * 1000 + for (var k = unixDb; k <= unixDe;) { + k = k + 24 * 60 * 60 * 1000 + arr.push(this.getDateObj(new Date(parseInt(k))).fullDate) + } + return arr + } + + /** + * 获取多选状态 + */ + setMultiple(fullDate) { + if (!this.range) return + + let { + before, + after + } = this.multipleStatus + if (before && after) { + if (!this.lastHover) { + this.lastHover = true + return + } + this.multipleStatus.before = fullDate + this.multipleStatus.after = '' + this.multipleStatus.data = [] + this.multipleStatus.fulldate = '' + this.lastHover = false + } else { + if (!before) { + this.multipleStatus.before = fullDate + this.lastHover = false + } else { + this.multipleStatus.after = fullDate + if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus + .after); + } else { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus + .before); + } + this.lastHover = true + } + } + this.getWeeks(fullDate) + } + + /** + * 鼠标 hover 更新多选状态 + */ + setHoverMultiple(fullDate) { + if (!this.range || this.lastHover) return + + const { before } = this.multipleStatus + + if (!before) { + this.multipleStatus.before = fullDate + } else { + this.multipleStatus.after = fullDate + if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after); + } else { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before); + } + } + this.getWeeks(fullDate) + } + + /** + * 更新默认值多选状态 + */ + setDefaultMultiple(before, after) { + this.multipleStatus.before = before + this.multipleStatus.after = after + if (before && after) { + if (dateCompare(before, after)) { + this.multipleStatus.data = this.geDateAll(before, after); + this.getWeeks(after) + } else { + this.multipleStatus.data = this.geDateAll(after, before); + this.getWeeks(before) + } + } + } + + /** + * 获取每周数据 + * @param {Object} dateData + */ + getWeeks(dateData) { + const { + year, + month, + } = this.getDateObj(dateData) + + const preMonthDayAmount = new Date(year, month - 1, 1).getDay() + const preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData)) + + const currentMonthDayAmount = new Date(year, month, 0).getDate() + const currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData)) + + const nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount + const nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData)) + + const calendarDays = [...preMonthDays, ...currentMonthDays, ...nextMonthDays] + + const weeks = new Array(6) + for (let i = 0; i < calendarDays.length; i++) { + const index = Math.floor(i / 7) + if(!weeks[index]){ + weeks[index] = new Array(7) + } + weeks[index][i % 7] = calendarDays[i] + } + + this.calendar = calendarDays + this.weeks = weeks + } +} + +function getDateTime(date, hideSecond){ + return `${getDate(date)} ${getTime(date, hideSecond)}` +} + +function getDate(date) { + date = fixIosDateFormat(date) + date = new Date(date) + const year = date.getFullYear() + const month = date.getMonth()+1 + const day = date.getDate() + return `${year}-${addZero(month)}-${addZero(day)}` +} + +function getTime(date, hideSecond){ + date = fixIosDateFormat(date) + date = new Date(date) + const hour = date.getHours() + const minute = date.getMinutes() + const second = date.getSeconds() + return hideSecond ? `${addZero(hour)}:${addZero(minute)}` : `${addZero(hour)}:${addZero(minute)}:${addZero(second)}` +} + +function addZero(num) { + if(num < 10){ + num = `0${num}` + } + return num +} + +function getDefaultSecond(hideSecond) { + return hideSecond ? '00:00' : '00:00:00' +} + +function dateCompare(startDate, endDate) { + startDate = new Date(fixIosDateFormat(startDate)) + endDate = new Date(fixIosDateFormat(endDate)) + return startDate <= endDate +} + +function checkDate(date){ + const dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g + return date.match(dateReg) +} + +const dateTimeReg = /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])?$/ +function fixIosDateFormat(value) { + if (typeof value === 'string' && dateTimeReg.test(value)) { + value = value.replace(/-/g, '/') + } + return value +} + +export {Calendar, getDateTime, getDate, getTime, addZero, getDefaultSecond, dateCompare, checkDate, fixIosDateFormat} \ No newline at end of file diff --git a/uni_modules/uni-datetime-picker/package.json b/uni_modules/uni-datetime-picker/package.json new file mode 100644 index 0000000..cabb668 --- /dev/null +++ b/uni_modules/uni-datetime-picker/package.json @@ -0,0 +1,87 @@ +{ + "id": "uni-datetime-picker", + "displayName": "uni-datetime-picker 日期选择器", + "version": "2.2.24", + "description": "uni-datetime-picker 日期时间选择器,支持日历,支持范围选择", + "keywords": [ + "uni-datetime-picker", + "uni-ui", + "uniui", + "日期时间选择器", + "日期时间" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [ + "uni-scss", + "uni-icons" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-datetime-picker/readme.md b/uni_modules/uni-datetime-picker/readme.md new file mode 100644 index 0000000..162fbef --- /dev/null +++ b/uni_modules/uni-datetime-picker/readme.md @@ -0,0 +1,21 @@ + + +> `重要通知:组件升级更新 2.0.0 后,支持日期+时间范围选择,组件 ui 将使用日历选择日期,ui 变化较大,同时支持 PC 和 移动端。此版本不向后兼容,不再支持单独的时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker)。若仍需使用旧版本,可在插件市场下载*非uni_modules版本*,旧版本将不再维护` + +## DatetimePicker 时间选择器 + +> **组件名:uni-datetime-picker** +> 代码块: `uDatetimePicker` + + +该组件的优势是,支持**时间戳**输入和输出(起始时间、终止时间也支持时间戳),可**同时选择**日期和时间。 + +若只是需要单独选择日期和时间,不需要时间戳输入和输出,可使用原生的 picker 组件。 + +**_点击 picker 默认值规则:_** + +- 若设置初始值 value, 会显示在 picker 显示框中 +- 若无初始值 value,则初始值 value 为当前本地时间 Date.now(), 但不会显示在 picker 显示框中 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-scss/changelog.md b/uni_modules/uni-scss/changelog.md new file mode 100644 index 0000000..b863bb0 --- /dev/null +++ b/uni_modules/uni-scss/changelog.md @@ -0,0 +1,8 @@ +## 1.0.3(2022-01-21) +- 优化 组件示例 +## 1.0.2(2021-11-22) +- 修复 / 符号在 vue 不同版本兼容问题引起的报错问题 +## 1.0.1(2021-11-22) +- 修复 vue3中scss语法兼容问题 +## 1.0.0(2021-11-18) +- init diff --git a/uni_modules/uni-scss/index.scss b/uni_modules/uni-scss/index.scss new file mode 100644 index 0000000..1744a5f --- /dev/null +++ b/uni_modules/uni-scss/index.scss @@ -0,0 +1 @@ +@import './styles/index.scss'; diff --git a/uni_modules/uni-scss/package.json b/uni_modules/uni-scss/package.json new file mode 100644 index 0000000..7cc0ccb --- /dev/null +++ b/uni_modules/uni-scss/package.json @@ -0,0 +1,82 @@ +{ + "id": "uni-scss", + "displayName": "uni-scss 辅助样式", + "version": "1.0.3", + "description": "uni-sass是uni-ui提供的一套全局样式 ,通过一些简单的类名和sass变量,实现简单的页面布局操作,比如颜色、边距、圆角等。", + "keywords": [ + "uni-scss", + "uni-ui", + "辅助样式" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "category": [ + "JS SDK", + "通用 SDK" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "n", + "联盟": "n" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-scss/readme.md b/uni_modules/uni-scss/readme.md new file mode 100644 index 0000000..b7d1c25 --- /dev/null +++ b/uni_modules/uni-scss/readme.md @@ -0,0 +1,4 @@ +`uni-sass` 是 `uni-ui`提供的一套全局样式 ,通过一些简单的类名和`sass`变量,实现简单的页面布局操作,比如颜色、边距、圆角等。 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-sass) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-scss/styles/index.scss b/uni_modules/uni-scss/styles/index.scss new file mode 100644 index 0000000..ffac4fe --- /dev/null +++ b/uni_modules/uni-scss/styles/index.scss @@ -0,0 +1,7 @@ +@import './setting/_variables.scss'; +@import './setting/_border.scss'; +@import './setting/_color.scss'; +@import './setting/_space.scss'; +@import './setting/_radius.scss'; +@import './setting/_text.scss'; +@import './setting/_styles.scss'; diff --git a/uni_modules/uni-scss/styles/setting/_border.scss b/uni_modules/uni-scss/styles/setting/_border.scss new file mode 100644 index 0000000..12a11c3 --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_border.scss @@ -0,0 +1,3 @@ +.uni-border { + border: 1px $uni-border-1 solid; +} \ No newline at end of file diff --git a/uni_modules/uni-scss/styles/setting/_color.scss b/uni_modules/uni-scss/styles/setting/_color.scss new file mode 100644 index 0000000..1ededd9 --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_color.scss @@ -0,0 +1,66 @@ + +// TODO 暂时不需要 class ,需要用户使用变量实现 ,如果使用类名其实并不推荐 +// @mixin get-styles($k,$c) { +// @if $k == size or $k == weight{ +// font-#{$k}:#{$c} +// }@else{ +// #{$k}:#{$c} +// } +// } +$uni-ui-color:( + // 主色 + primary: $uni-primary, + primary-disable: $uni-primary-disable, + primary-light: $uni-primary-light, + // 辅助色 + success: $uni-success, + success-disable: $uni-success-disable, + success-light: $uni-success-light, + warning: $uni-warning, + warning-disable: $uni-warning-disable, + warning-light: $uni-warning-light, + error: $uni-error, + error-disable: $uni-error-disable, + error-light: $uni-error-light, + info: $uni-info, + info-disable: $uni-info-disable, + info-light: $uni-info-light, + // 中性色 + main-color: $uni-main-color, + base-color: $uni-base-color, + secondary-color: $uni-secondary-color, + extra-color: $uni-extra-color, + // 背景色 + bg-color: $uni-bg-color, + // 边框颜色 + border-1: $uni-border-1, + border-2: $uni-border-2, + border-3: $uni-border-3, + border-4: $uni-border-4, + // 黑色 + black:$uni-black, + // 白色 + white:$uni-white, + // 透明 + transparent:$uni-transparent +) !default; +@each $key, $child in $uni-ui-color { + .uni-#{"" + $key} { + color: $child; + } + .uni-#{"" + $key}-bg { + background-color: $child; + } +} +.uni-shadow-sm { + box-shadow: $uni-shadow-sm; +} +.uni-shadow-base { + box-shadow: $uni-shadow-base; +} +.uni-shadow-lg { + box-shadow: $uni-shadow-lg; +} +.uni-mask { + background-color:$uni-mask; +} diff --git a/uni_modules/uni-scss/styles/setting/_radius.scss b/uni_modules/uni-scss/styles/setting/_radius.scss new file mode 100644 index 0000000..9a0428b --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_radius.scss @@ -0,0 +1,55 @@ +@mixin radius($r,$d:null ,$important: false){ + $radius-value:map-get($uni-radius, $r) if($important, !important, null); + // Key exists within the $uni-radius variable + @if (map-has-key($uni-radius, $r) and $d){ + @if $d == t { + border-top-left-radius:$radius-value; + border-top-right-radius:$radius-value; + }@else if $d == r { + border-top-right-radius:$radius-value; + border-bottom-right-radius:$radius-value; + }@else if $d == b { + border-bottom-left-radius:$radius-value; + border-bottom-right-radius:$radius-value; + }@else if $d == l { + border-top-left-radius:$radius-value; + border-bottom-left-radius:$radius-value; + }@else if $d == tl { + border-top-left-radius:$radius-value; + }@else if $d == tr { + border-top-right-radius:$radius-value; + }@else if $d == br { + border-bottom-right-radius:$radius-value; + }@else if $d == bl { + border-bottom-left-radius:$radius-value; + } + }@else{ + border-radius:$radius-value; + } +} + +@each $key, $child in $uni-radius { + @if($key){ + .uni-radius-#{"" + $key} { + @include radius($key) + } + }@else{ + .uni-radius { + @include radius($key) + } + } +} + +@each $direction in t, r, b, l,tl, tr, br, bl { + @each $key, $child in $uni-radius { + @if($key){ + .uni-radius-#{"" + $direction}-#{"" + $key} { + @include radius($key,$direction,false) + } + }@else{ + .uni-radius-#{$direction} { + @include radius($key,$direction,false) + } + } + } +} diff --git a/uni_modules/uni-scss/styles/setting/_space.scss b/uni_modules/uni-scss/styles/setting/_space.scss new file mode 100644 index 0000000..3c89528 --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_space.scss @@ -0,0 +1,56 @@ + +@mixin fn($space,$direction,$size,$n) { + @if $n { + #{$space}-#{$direction}: #{$size*$uni-space-root}px + } @else { + #{$space}-#{$direction}: #{-$size*$uni-space-root}px + } +} +@mixin get-styles($direction,$i,$space,$n){ + @if $direction == t { + @include fn($space, top,$i,$n); + } + @if $direction == r { + @include fn($space, right,$i,$n); + } + @if $direction == b { + @include fn($space, bottom,$i,$n); + } + @if $direction == l { + @include fn($space, left,$i,$n); + } + @if $direction == x { + @include fn($space, left,$i,$n); + @include fn($space, right,$i,$n); + } + @if $direction == y { + @include fn($space, top,$i,$n); + @include fn($space, bottom,$i,$n); + } + @if $direction == a { + @if $n { + #{$space}:#{$i*$uni-space-root}px; + } @else { + #{$space}:#{-$i*$uni-space-root}px; + } + } +} + +@each $orientation in m,p { + $space: margin; + @if $orientation == m { + $space: margin; + } @else { + $space: padding; + } + @for $i from 0 through 16 { + @each $direction in t, r, b, l, x, y, a { + .uni-#{$orientation}#{$direction}-#{$i} { + @include get-styles($direction,$i,$space,true); + } + .uni-#{$orientation}#{$direction}-n#{$i} { + @include get-styles($direction,$i,$space,false); + } + } + } +} \ No newline at end of file diff --git a/uni_modules/uni-scss/styles/setting/_styles.scss b/uni_modules/uni-scss/styles/setting/_styles.scss new file mode 100644 index 0000000..689afec --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_styles.scss @@ -0,0 +1,167 @@ +/* #ifndef APP-NVUE */ + +$-color-white:#fff; +$-color-black:#000; +@mixin base-style($color) { + color: #fff; + background-color: $color; + border-color: mix($-color-black, $color, 8%); + &:not([hover-class]):active { + background: mix($-color-black, $color, 10%); + border-color: mix($-color-black, $color, 20%); + color: $-color-white; + outline: none; + } +} +@mixin is-color($color) { + @include base-style($color); + &[loading] { + @include base-style($color); + &::before { + margin-right:5px; + } + } + &[disabled] { + &, + &[loading], + &:not([hover-class]):active { + color: $-color-white; + border-color: mix(darken($color,10%), $-color-white); + background-color: mix($color, $-color-white); + } + } + +} +@mixin base-plain-style($color) { + color:$color; + background-color: mix($-color-white, $color, 90%); + border-color: mix($-color-white, $color, 70%); + &:not([hover-class]):active { + background: mix($-color-white, $color, 80%); + color: $color; + outline: none; + border-color: mix($-color-white, $color, 50%); + } +} +@mixin is-plain($color){ + &[plain] { + @include base-plain-style($color); + &[loading] { + @include base-plain-style($color); + &::before { + margin-right:5px; + } + } + &[disabled] { + &, + &:active { + color: mix($-color-white, $color, 40%); + background-color: mix($-color-white, $color, 90%); + border-color: mix($-color-white, $color, 80%); + } + } + } +} + + +.uni-btn { + margin: 5px; + color: #393939; + border:1px solid #ccc; + font-size: 16px; + font-weight: 200; + background-color: #F9F9F9; + // TODO 暂时处理边框隐藏一边的问题 + overflow: visible; + &::after{ + border: none; + } + + &:not([type]),&[type=default] { + color: #999; + &[loading] { + background: none; + &::before { + margin-right:5px; + } + } + + + + &[disabled]{ + color: mix($-color-white, #999, 60%); + &, + &[loading], + &:active { + color: mix($-color-white, #999, 60%); + background-color: mix($-color-white,$-color-black , 98%); + border-color: mix($-color-white, #999, 85%); + } + } + + &[plain] { + color: #999; + background: none; + border-color: $uni-border-1; + &:not([hover-class]):active { + background: none; + color: mix($-color-white, $-color-black, 80%); + border-color: mix($-color-white, $-color-black, 90%); + outline: none; + } + &[disabled]{ + &, + &[loading], + &:active { + background: none; + color: mix($-color-white, #999, 60%); + border-color: mix($-color-white, #999, 85%); + } + } + } + } + + &:not([hover-class]):active { + color: mix($-color-white, $-color-black, 50%); + } + + &[size=mini] { + font-size: 16px; + font-weight: 200; + border-radius: 8px; + } + + + + &.uni-btn-small { + font-size: 14px; + } + &.uni-btn-mini { + font-size: 12px; + } + + &.uni-btn-radius { + border-radius: 999px; + } + &[type=primary] { + @include is-color($uni-primary); + @include is-plain($uni-primary) + } + &[type=success] { + @include is-color($uni-success); + @include is-plain($uni-success) + } + &[type=error] { + @include is-color($uni-error); + @include is-plain($uni-error) + } + &[type=warning] { + @include is-color($uni-warning); + @include is-plain($uni-warning) + } + &[type=info] { + @include is-color($uni-info); + @include is-plain($uni-info) + } +} +/* #endif */ diff --git a/uni_modules/uni-scss/styles/setting/_text.scss b/uni_modules/uni-scss/styles/setting/_text.scss new file mode 100644 index 0000000..a34d08f --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_text.scss @@ -0,0 +1,24 @@ +@mixin get-styles($k,$c) { + @if $k == size or $k == weight{ + font-#{$k}:#{$c} + }@else{ + #{$k}:#{$c} + } +} + +@each $key, $child in $uni-headings { + /* #ifndef APP-NVUE */ + .uni-#{$key} { + @each $k, $c in $child { + @include get-styles($k,$c) + } + } + /* #endif */ + /* #ifdef APP-NVUE */ + .container .uni-#{$key} { + @each $k, $c in $child { + @include get-styles($k,$c) + } + } + /* #endif */ +} diff --git a/uni_modules/uni-scss/styles/setting/_variables.scss b/uni_modules/uni-scss/styles/setting/_variables.scss new file mode 100644 index 0000000..557d3d7 --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_variables.scss @@ -0,0 +1,146 @@ +// @use "sass:math"; +@import '../tools/functions.scss'; +// 间距基础倍数 +$uni-space-root: 2 !default; +// 边框半径默认值 +$uni-radius-root:5px !default; +$uni-radius: () !default; +// 边框半径断点 +$uni-radius: map-deep-merge( + ( + 0: 0, + // TODO 当前版本暂时不支持 sm 属性 + // 'sm': math.div($uni-radius-root, 2), + null: $uni-radius-root, + 'lg': $uni-radius-root * 2, + 'xl': $uni-radius-root * 6, + 'pill': 9999px, + 'circle': 50% + ), + $uni-radius +); +// 字体家族 +$body-font-family: 'Roboto', sans-serif !default; +// 文本 +$heading-font-family: $body-font-family !default; +$uni-headings: () !default; +$letterSpacing: -0.01562em; +$uni-headings: map-deep-merge( + ( + 'h1': ( + size: 32px, + weight: 300, + line-height: 50px, + // letter-spacing:-0.01562em + ), + 'h2': ( + size: 28px, + weight: 300, + line-height: 40px, + // letter-spacing: -0.00833em + ), + 'h3': ( + size: 24px, + weight: 400, + line-height: 32px, + // letter-spacing: normal + ), + 'h4': ( + size: 20px, + weight: 400, + line-height: 30px, + // letter-spacing: 0.00735em + ), + 'h5': ( + size: 16px, + weight: 400, + line-height: 24px, + // letter-spacing: normal + ), + 'h6': ( + size: 14px, + weight: 500, + line-height: 18px, + // letter-spacing: 0.0125em + ), + 'subtitle': ( + size: 12px, + weight: 400, + line-height: 20px, + // letter-spacing: 0.00937em + ), + 'body': ( + font-size: 14px, + font-weight: 400, + line-height: 22px, + // letter-spacing: 0.03125em + ), + 'caption': ( + 'size': 12px, + 'weight': 400, + 'line-height': 20px, + // 'letter-spacing': 0.03333em, + // 'text-transform': false + ) + ), + $uni-headings +); + + + +// 主色 +$uni-primary: #2979ff !default; +$uni-primary-disable:lighten($uni-primary,20%) !default; +$uni-primary-light: lighten($uni-primary,25%) !default; + +// 辅助色 +// 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 +$uni-success: #18bc37 !default; +$uni-success-disable:lighten($uni-success,20%) !default; +$uni-success-light: lighten($uni-success,25%) !default; + +$uni-warning: #f3a73f !default; +$uni-warning-disable:lighten($uni-warning,20%) !default; +$uni-warning-light: lighten($uni-warning,25%) !default; + +$uni-error: #e43d33 !default; +$uni-error-disable:lighten($uni-error,20%) !default; +$uni-error-light: lighten($uni-error,25%) !default; + +$uni-info: #8f939c !default; +$uni-info-disable:lighten($uni-info,20%) !default; +$uni-info-light: lighten($uni-info,25%) !default; + +// 中性色 +// 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 +$uni-main-color: #3a3a3a !default; // 主要文字 +$uni-base-color: #6a6a6a !default; // 常规文字 +$uni-secondary-color: #909399 !default; // 次要文字 +$uni-extra-color: #c7c7c7 !default; // 辅助说明 + +// 边框颜色 +$uni-border-1: #F0F0F0 !default; +$uni-border-2: #EDEDED !default; +$uni-border-3: #DCDCDC !default; +$uni-border-4: #B9B9B9 !default; + +// 常规色 +$uni-black: #000000 !default; +$uni-white: #ffffff !default; +$uni-transparent: rgba($color: #000000, $alpha: 0) !default; + +// 背景色 +$uni-bg-color: #f7f7f7 !default; + +/* 水平间距 */ +$uni-spacing-sm: 8px !default; +$uni-spacing-base: 15px !default; +$uni-spacing-lg: 30px !default; + +// 阴影 +$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5) !default; +$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2) !default; +$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5) !default; + +// 蒙版 +$uni-mask: rgba($color: #000000, $alpha: 0.4) !default; diff --git a/uni_modules/uni-scss/styles/tools/functions.scss b/uni_modules/uni-scss/styles/tools/functions.scss new file mode 100644 index 0000000..ac6f63e --- /dev/null +++ b/uni_modules/uni-scss/styles/tools/functions.scss @@ -0,0 +1,19 @@ +// 合并 map +@function map-deep-merge($parent-map, $child-map){ + $result: $parent-map; + @each $key, $child in $child-map { + $parent-has-key: map-has-key($result, $key); + $parent-value: map-get($result, $key); + $parent-type: type-of($parent-value); + $child-type: type-of($child); + $parent-is-map: $parent-type == map; + $child-is-map: $child-type == map; + + @if (not $parent-has-key) or ($parent-type != $child-type) or (not ($parent-is-map and $child-is-map)){ + $result: map-merge($result, ( $key: $child )); + }@else { + $result: map-merge($result, ( $key: map-deep-merge($parent-value, $child) )); + } + } + @return $result; +}; diff --git a/uni_modules/uni-scss/theme.scss b/uni_modules/uni-scss/theme.scss new file mode 100644 index 0000000..80ee62f --- /dev/null +++ b/uni_modules/uni-scss/theme.scss @@ -0,0 +1,31 @@ +// 间距基础倍数 +$uni-space-root: 2; +// 边框半径默认值 +$uni-radius-root:5px; +// 主色 +$uni-primary: #2979ff; +// 辅助色 +$uni-success: #4cd964; +// 警告色 +$uni-warning: #f0ad4e; +// 错误色 +$uni-error: #dd524d; +// 描述色 +$uni-info: #909399; +// 中性色 +$uni-main-color: #303133; +$uni-base-color: #606266; +$uni-secondary-color: #909399; +$uni-extra-color: #C0C4CC; +// 背景色 +$uni-bg-color: #f5f5f5; +// 边框颜色 +$uni-border-1: #DCDFE6; +$uni-border-2: #E4E7ED; +$uni-border-3: #EBEEF5; +$uni-border-4: #F2F6FC; + +// 常规色 +$uni-black: #000000; +$uni-white: #ffffff; +$uni-transparent: rgba($color: #000000, $alpha: 0); diff --git a/uni_modules/uni-scss/variables.scss b/uni_modules/uni-scss/variables.scss new file mode 100644 index 0000000..1c062d4 --- /dev/null +++ b/uni_modules/uni-scss/variables.scss @@ -0,0 +1,62 @@ +@import './styles/setting/_variables.scss'; +// 间距基础倍数 +$uni-space-root: 2; +// 边框半径默认值 +$uni-radius-root:5px; + +// 主色 +$uni-primary: #2979ff; +$uni-primary-disable:mix(#fff,$uni-primary,50%); +$uni-primary-light: mix(#fff,$uni-primary,80%); + +// 辅助色 +// 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 +$uni-success: #18bc37; +$uni-success-disable:mix(#fff,$uni-success,50%); +$uni-success-light: mix(#fff,$uni-success,80%); + +$uni-warning: #f3a73f; +$uni-warning-disable:mix(#fff,$uni-warning,50%); +$uni-warning-light: mix(#fff,$uni-warning,80%); + +$uni-error: #e43d33; +$uni-error-disable:mix(#fff,$uni-error,50%); +$uni-error-light: mix(#fff,$uni-error,80%); + +$uni-info: #8f939c; +$uni-info-disable:mix(#fff,$uni-info,50%); +$uni-info-light: mix(#fff,$uni-info,80%); + +// 中性色 +// 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 +$uni-main-color: #3a3a3a; // 主要文字 +$uni-base-color: #6a6a6a; // 常规文字 +$uni-secondary-color: #909399; // 次要文字 +$uni-extra-color: #c7c7c7; // 辅助说明 + +// 边框颜色 +$uni-border-1: #F0F0F0; +$uni-border-2: #EDEDED; +$uni-border-3: #DCDCDC; +$uni-border-4: #B9B9B9; + +// 常规色 +$uni-black: #000000; +$uni-white: #ffffff; +$uni-transparent: rgba($color: #000000, $alpha: 0); + +// 背景色 +$uni-bg-color: #f7f7f7; + +/* 水平间距 */ +$uni-spacing-sm: 8px; +$uni-spacing-base: 15px; +$uni-spacing-lg: 30px; + +// 阴影 +$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5); +$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2); +$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5); + +// 蒙版 +$uni-mask: rgba($color: #000000, $alpha: 0.4); diff --git a/uni_modules/uni-table/changelog.md b/uni_modules/uni-table/changelog.md new file mode 100644 index 0000000..842211c --- /dev/null +++ b/uni_modules/uni-table/changelog.md @@ -0,0 +1,29 @@ +## 1.2.4(2023-12-19) +- 修复 uni-tr只有一列时minWidth计算错误,列变化实时计算更新 +## 1.2.3(2023-03-28) +- 修复 在vue3模式下可能会出现错误的问题 +## 1.2.2(2022-11-29) +- 优化 主题样式 +## 1.2.1(2022-06-06) +- 修复 微信小程序存在无使用组件的问题 +## 1.2.0(2021-11-19) +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-table](https://uniapp.dcloud.io/component/uniui/uni-table) +## 1.1.0(2021-07-30) +- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 1.0.7(2021-07-08) +- 新增 uni-th 支持 date 日期筛选范围 +## 1.0.6(2021-07-05) +- 新增 uni-th 支持 range 筛选范围 +## 1.0.5(2021-06-28) +- 新增 uni-th 筛选功能 +## 1.0.4(2021-05-12) +- 新增 示例地址 +- 修复 示例项目缺少组件的Bug +## 1.0.3(2021-04-16) +- 新增 sortable 属性,是否开启单列排序 +- 优化 表格多选逻辑 +## 1.0.2(2021-03-22) +- uni-tr 添加 disabled 属性,用于 type=selection 时,设置某行是否可由全选按钮控制 +## 1.0.1(2021-02-05) +- 调整为uni_modules目录规范 diff --git a/uni_modules/uni-table/components/uni-table/uni-table.vue b/uni_modules/uni-table/components/uni-table/uni-table.vue new file mode 100644 index 0000000..a60559d --- /dev/null +++ b/uni_modules/uni-table/components/uni-table/uni-table.vue @@ -0,0 +1,455 @@ + + + + + diff --git a/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue b/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue new file mode 100644 index 0000000..fbe1bdc --- /dev/null +++ b/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/uni_modules/uni-table/components/uni-td/uni-td.vue b/uni_modules/uni-table/components/uni-td/uni-td.vue new file mode 100644 index 0000000..9ce93e9 --- /dev/null +++ b/uni_modules/uni-table/components/uni-td/uni-td.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/uni_modules/uni-table/components/uni-th/filter-dropdown.vue b/uni_modules/uni-table/components/uni-th/filter-dropdown.vue new file mode 100644 index 0000000..df22a71 --- /dev/null +++ b/uni_modules/uni-table/components/uni-th/filter-dropdown.vue @@ -0,0 +1,511 @@ + + + + + diff --git a/uni_modules/uni-table/components/uni-th/uni-th.vue b/uni_modules/uni-table/components/uni-th/uni-th.vue new file mode 100644 index 0000000..14889dd --- /dev/null +++ b/uni_modules/uni-table/components/uni-th/uni-th.vue @@ -0,0 +1,285 @@ + + + + + diff --git a/uni_modules/uni-table/components/uni-thead/uni-thead.vue b/uni_modules/uni-table/components/uni-thead/uni-thead.vue new file mode 100644 index 0000000..0dd18cd --- /dev/null +++ b/uni_modules/uni-table/components/uni-thead/uni-thead.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/uni_modules/uni-table/components/uni-tr/table-checkbox.vue b/uni_modules/uni-table/components/uni-tr/table-checkbox.vue new file mode 100644 index 0000000..1089187 --- /dev/null +++ b/uni_modules/uni-table/components/uni-tr/table-checkbox.vue @@ -0,0 +1,179 @@ + + + + + diff --git a/uni_modules/uni-table/components/uni-tr/uni-tr.vue b/uni_modules/uni-table/components/uni-tr/uni-tr.vue new file mode 100644 index 0000000..4cb85f5 --- /dev/null +++ b/uni_modules/uni-table/components/uni-tr/uni-tr.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/uni_modules/uni-table/i18n/en.json b/uni_modules/uni-table/i18n/en.json new file mode 100644 index 0000000..e32023c --- /dev/null +++ b/uni_modules/uni-table/i18n/en.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "Reset", + "filter-dropdown.search": "Search", + "filter-dropdown.submit": "Submit", + "filter-dropdown.filter": "Filter", + "filter-dropdown.gt": "Greater or equal to", + "filter-dropdown.lt": "Less than or equal to", + "filter-dropdown.date": "Date" +} diff --git a/uni_modules/uni-table/i18n/es.json b/uni_modules/uni-table/i18n/es.json new file mode 100644 index 0000000..9afd04b --- /dev/null +++ b/uni_modules/uni-table/i18n/es.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "Reiniciar", + "filter-dropdown.search": "Búsqueda", + "filter-dropdown.submit": "Entregar", + "filter-dropdown.filter": "Filtrar", + "filter-dropdown.gt": "Mayor o igual a", + "filter-dropdown.lt": "Menos que o igual a", + "filter-dropdown.date": "Fecha" +} diff --git a/uni_modules/uni-table/i18n/fr.json b/uni_modules/uni-table/i18n/fr.json new file mode 100644 index 0000000..b006237 --- /dev/null +++ b/uni_modules/uni-table/i18n/fr.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "Réinitialiser", + "filter-dropdown.search": "Chercher", + "filter-dropdown.submit": "Soumettre", + "filter-dropdown.filter": "Filtre", + "filter-dropdown.gt": "Supérieur ou égal à", + "filter-dropdown.lt": "Inférieur ou égal à", + "filter-dropdown.date": "Date" +} diff --git a/uni_modules/uni-table/i18n/index.js b/uni_modules/uni-table/i18n/index.js new file mode 100644 index 0000000..2469dd0 --- /dev/null +++ b/uni_modules/uni-table/i18n/index.js @@ -0,0 +1,12 @@ +import en from './en.json' +import es from './es.json' +import fr from './fr.json' +import zhHans from './zh-Hans.json' +import zhHant from './zh-Hant.json' +export default { + en, + es, + fr, + 'zh-Hans': zhHans, + 'zh-Hant': zhHant +} diff --git a/uni_modules/uni-table/i18n/zh-Hans.json b/uni_modules/uni-table/i18n/zh-Hans.json new file mode 100644 index 0000000..862af17 --- /dev/null +++ b/uni_modules/uni-table/i18n/zh-Hans.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "重置", + "filter-dropdown.search": "搜索", + "filter-dropdown.submit": "确定", + "filter-dropdown.filter": "筛选", + "filter-dropdown.gt": "大于等于", + "filter-dropdown.lt": "小于等于", + "filter-dropdown.date": "日期范围" +} diff --git a/uni_modules/uni-table/i18n/zh-Hant.json b/uni_modules/uni-table/i18n/zh-Hant.json new file mode 100644 index 0000000..64f8061 --- /dev/null +++ b/uni_modules/uni-table/i18n/zh-Hant.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "重置", + "filter-dropdown.search": "搜索", + "filter-dropdown.submit": "確定", + "filter-dropdown.filter": "篩選", + "filter-dropdown.gt": "大於等於", + "filter-dropdown.lt": "小於等於", + "filter-dropdown.date": "日期範圍" +} diff --git a/uni_modules/uni-table/package.json b/uni_modules/uni-table/package.json new file mode 100644 index 0000000..a52821b --- /dev/null +++ b/uni_modules/uni-table/package.json @@ -0,0 +1,83 @@ +{ + "id": "uni-table", + "displayName": "uni-table 表格", + "version": "1.2.4", + "description": "表格组件,多用于展示多条结构类似的数据,如", + "keywords": [ + "uni-ui", + "uniui", + "table", + "表格" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": ["uni-scss","uni-datetime-picker"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "n", + "QQ": "y" + }, + "快应用": { + "华为": "n", + "联盟": "n" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/uni-table/readme.md b/uni_modules/uni-table/readme.md new file mode 100644 index 0000000..bb08c79 --- /dev/null +++ b/uni_modules/uni-table/readme.md @@ -0,0 +1,13 @@ + + +## Table 表单 +> 组件名:``uni-table``,代码块: `uTable`。 + +用于展示多条结构类似的数据 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-table) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 + + + + diff --git a/uni_modules/zero-loading/changelog.md b/uni_modules/zero-loading/changelog.md new file mode 100644 index 0000000..c8191fe --- /dev/null +++ b/uni_modules/zero-loading/changelog.md @@ -0,0 +1,12 @@ +## 1.2.1(2022-09-09) +增加齿轮动画 type=gear +## 1.2.0(2022-05-27) +1. 增加加载类型-剑气(sword),原子(atom) +2. 默认类型改为 atom +3. 遮罩透明度调整 +## 1.1.1(2022-04-02) +更新使用说明 +## 1.1.0(2022-02-23) +增加 type="love" 的心形加载动画 +## 1.0.0(2022-01-28) +首次发布 diff --git a/uni_modules/zero-loading/components/zero-loading/static/loading-atom.vue b/uni_modules/zero-loading/components/zero-loading/static/loading-atom.vue new file mode 100644 index 0000000..ef922d6 --- /dev/null +++ b/uni_modules/zero-loading/components/zero-loading/static/loading-atom.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/uni_modules/zero-loading/components/zero-loading/zero-loading.vue b/uni_modules/zero-loading/components/zero-loading/zero-loading.vue new file mode 100644 index 0000000..96e9bc1 --- /dev/null +++ b/uni_modules/zero-loading/components/zero-loading/zero-loading.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/uni_modules/zero-loading/package.json b/uni_modules/zero-loading/package.json new file mode 100644 index 0000000..3caf422 --- /dev/null +++ b/uni_modules/zero-loading/package.json @@ -0,0 +1,80 @@ +{ + "id": "zero-loading", + "displayName": "zero-loading(加载动画)", + "version": "1.2.1", + "description": "纯css加载动画, 一个标签元素即可实现炫酷的全屏loading效果", + "keywords": [ + "loading", + "加载动画", + "css动画", + "加载" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "插件不采集任何数据", + "permissions": "无" + }, + "npmurl": "", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "u" + }, + "App": { + "app-vue": "u", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "u", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "u" + }, + "H5-pc": { + "Chrome": "y", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "y", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/zero-loading/readme.md b/uni_modules/zero-loading/readme.md new file mode 100644 index 0000000..c8a160e --- /dev/null +++ b/uni_modules/zero-loading/readme.md @@ -0,0 +1,50 @@ +# zero-loading + +## 使用方法 + +导入 `uni_modules` 后直接使用即可 + +提供多种加载动画类型,传入 type 改变 loading 样式,不传默认 circle + +### 全屏使用 + +```html + +``` + +### 局部使用 + +**父元素的 `position` 记得改为 `relative` 哦** + +```html + +``` + +## 参数说明 + +| 参数 | 类型 | 默认值 | 描述 | +| -------- | ------- | ------ | ------------ | +| type | String | atom | 样式 | +| position | String | fixed | 定位方式 | +| zIndex | Number | 9 | | +| mask | Boolean | false | 是否需要遮罩 | + +### type 可选值: + +| type 值 | 描述 | +| -------- | ---- | +| gear | 齿轮 | +| sword | 剑气 | +| atom | 原子 | +| circle | 圆环 | +| love | 爱心 | +| pulse | 脉冲 | +| sun | 太阳 | +| eyes | 眼睛 | +| triangle | 三角 | +| bounce | 弹跳 | + +插件预览: +![code](https://img.jszero.cn/mweb/we_code.jpg) + +> 预览的小程序不一定能及时更新当前插件 diff --git a/uview-ui/LICENSE b/uview-ui/LICENSE new file mode 100644 index 0000000..8e39ead --- /dev/null +++ b/uview-ui/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 www.uviewui.com + +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. \ No newline at end of file diff --git a/uview-ui/README.md b/uview-ui/README.md new file mode 100644 index 0000000..06d5676 --- /dev/null +++ b/uview-ui/README.md @@ -0,0 +1,106 @@ +

+ logo +

+

uView

+

多平台快速开发的UI框架

+ + +## 说明 + +uView UI,是[uni-app](https://uniapp.dcloud.io/)生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水 + +## 特性 + +- 兼容安卓,iOS,微信小程序,H5,QQ小程序,百度小程序,支付宝小程序,头条小程序 +- 60+精选组件,功能丰富,多端兼容,让您快速集成,开箱即用 +- 众多贴心的JS利器,让您飞镖在手,召之即来,百步穿杨 +- 众多的常用页面和布局,让您专注逻辑,事半功倍 +- 详尽的文档支持,现代化的演示效果 +- 按需引入,精简打包体积 + + +## 安装 + +```bash +# npm方式安装 +npm i uview-ui +``` + +## 快速上手 + +1. `main.js`引入uView库 +```js +// main.js +import uView from 'uview-ui'; +Vue.use(uView); +``` + +2. `App.vue`引入基础样式(注意style标签需声明scss属性支持) +```css +/* App.vue */ + +``` + +3. `uni.scss`引入全局scss变量文件 +```css +/* uni.scss */ +@import "uview-ui/theme.scss"; +``` + +4. `pages.json`配置easycom规则(按需引入) + +```js +// pages.json +{ + "easycom": { + // npm安装的方式不需要前面的"@/",下载安装的方式需要"@/" + // npm安装方式 + "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" + // 下载安装方式 + // "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" + }, + // 此为本身已有的内容 + "pages": [ + // ...... + ] +} +``` + +请通过[快速上手](https://uviewui.com/components/quickstart.html)了解更详细的内容 + +## 使用方法 +配置easycom规则后,自动按需引入,无需`import`组件,直接引用即可。 + +```html + +``` + +请通过[快速上手](https://uviewui.com/components/quickstart.html)了解更详细的内容 + +## 链接 + +- [官方文档](https://uviewui.com/) +- [更新日志](https://uviewui.com/components/changelog.html) +- [升级指南](https://uviewui.com/components/changelog.html) +- [关于我们](https://uviewui.com/cooperation/about.html) + +## 预览 + +您可以通过**微信**扫码,查看最佳的演示效果。 +
+
+ + + +## 版权信息 +uView遵循[MIT](https://en.wikipedia.org/wiki/MIT_License)开源协议,意味着您无需支付任何费用,也无需授权,即可将uView应用到您的产品中。 diff --git a/uview-ui/components/u-action-sheet/u-action-sheet.vue b/uview-ui/components/u-action-sheet/u-action-sheet.vue new file mode 100644 index 0000000..722b668 --- /dev/null +++ b/uview-ui/components/u-action-sheet/u-action-sheet.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/uview-ui/components/u-alert-tips/u-alert-tips.vue b/uview-ui/components/u-alert-tips/u-alert-tips.vue new file mode 100644 index 0000000..e81fc37 --- /dev/null +++ b/uview-ui/components/u-alert-tips/u-alert-tips.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/uview-ui/components/u-avatar-cropper/u-avatar-cropper.vue b/uview-ui/components/u-avatar-cropper/u-avatar-cropper.vue new file mode 100644 index 0000000..a48dd54 --- /dev/null +++ b/uview-ui/components/u-avatar-cropper/u-avatar-cropper.vue @@ -0,0 +1,290 @@ + + + + + diff --git a/uview-ui/components/u-avatar-cropper/weCropper.js b/uview-ui/components/u-avatar-cropper/weCropper.js new file mode 100644 index 0000000..df02483 --- /dev/null +++ b/uview-ui/components/u-avatar-cropper/weCropper.js @@ -0,0 +1,1265 @@ +/** + * we-cropper v1.3.9 + * (c) 2020 dlhandsome + * @license MIT + */ +(function(global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global.WeCropper = factory()); +}(this, (function() { + 'use strict'; + + var device = void 0; + var TOUCH_STATE = ['touchstarted', 'touchmoved', 'touchended']; + + function firstLetterUpper(str) { + return str.charAt(0).toUpperCase() + str.slice(1) + } + + function setTouchState(instance) { + var arg = [], + len = arguments.length - 1; + while (len-- > 0) arg[len] = arguments[len + 1]; + + TOUCH_STATE.forEach(function(key, i) { + if (arg[i] !== undefined) { + instance[key] = arg[i]; + } + }); + } + + function validator(instance, o) { + Object.defineProperties(instance, o); + } + + function getDevice() { + if (!device) { + device = uni.getSystemInfoSync(); + } + return device + } + + var tmp = {}; + + var ref = getDevice(); + var pixelRatio = ref.pixelRatio; + + var DEFAULT = { + id: { + default: 'cropper', + get: function get() { + return tmp.id + }, + set: function set(value) { + if (typeof(value) !== 'string') { + console.error(("id:" + value + " is invalid")); + } + tmp.id = value; + } + }, + width: { + default: 750, + get: function get() { + return tmp.width + }, + set: function set(value) { + if (typeof(value) !== 'number') { + console.error(("width:" + value + " is invalid")); + } + tmp.width = value; + } + }, + height: { + default: 750, + get: function get() { + return tmp.height + }, + set: function set(value) { + if (typeof(value) !== 'number') { + console.error(("height:" + value + " is invalid")); + } + tmp.height = value; + } + }, + pixelRatio: { + default: pixelRatio, + get: function get() { + return tmp.pixelRatio + }, + set: function set(value) { + if (typeof(value) !== 'number') { + console.error(("pixelRatio:" + value + " is invalid")); + } + tmp.pixelRatio = value; + } + }, + scale: { + default: 2.5, + get: function get() { + return tmp.scale + }, + set: function set(value) { + if (typeof(value) !== 'number') { + console.error(("scale:" + value + " is invalid")); + } + tmp.scale = value; + } + }, + zoom: { + default: 5, + get: function get() { + return tmp.zoom + }, + set: function set(value) { + if (typeof(value) !== 'number') { + console.error(("zoom:" + value + " is invalid")); + } else if (value < 0 || value > 10) { + console.error("zoom should be ranged in 0 ~ 10"); + } + tmp.zoom = value; + } + }, + src: { + default: '', + get: function get() { + return tmp.src + }, + set: function set(value) { + if (typeof(value) !== 'string') { + console.error(("src:" + value + " is invalid")); + } + tmp.src = value; + } + }, + cut: { + default: {}, + get: function get() { + return tmp.cut + }, + set: function set(value) { + if (typeof(value) !== 'object') { + console.error(("cut:" + value + " is invalid")); + } + tmp.cut = value; + } + }, + boundStyle: { + default: {}, + get: function get() { + return tmp.boundStyle + }, + set: function set(value) { + if (typeof(value) !== 'object') { + console.error(("boundStyle:" + value + " is invalid")); + } + tmp.boundStyle = value; + } + }, + onReady: { + default: null, + get: function get() { + return tmp.ready + }, + set: function set(value) { + tmp.ready = value; + } + }, + onBeforeImageLoad: { + default: null, + get: function get() { + return tmp.beforeImageLoad + }, + set: function set(value) { + tmp.beforeImageLoad = value; + } + }, + onImageLoad: { + default: null, + get: function get() { + return tmp.imageLoad + }, + set: function set(value) { + tmp.imageLoad = value; + } + }, + onBeforeDraw: { + default: null, + get: function get() { + return tmp.beforeDraw + }, + set: function set(value) { + tmp.beforeDraw = value; + } + } + }; + + var ref$1 = getDevice(); + var windowWidth = ref$1.windowWidth; + + function prepare() { + var self = this; + + // v1.4.0 版本中将不再自动绑定we-cropper实例 + self.attachPage = function() { + var pages = getCurrentPages(); + // 获取到当前page上下文 + var pageContext = pages[pages.length - 1]; + // 把this依附在Page上下文的wecropper属性上,便于在page钩子函数中访问 + Object.defineProperty(pageContext, 'wecropper', { + get: function get() { + console.warn( + 'Instance will not be automatically bound to the page after v1.4.0\n\n' + + 'Please use a custom instance name instead\n\n' + + 'Example: \n' + + 'this.mycropper = new WeCropper(options)\n\n' + + '// ...\n' + + 'this.mycropper.getCropperImage()' + ); + return self + }, + configurable: true + }); + }; + + self.createCtx = function() { + var id = self.id; + var targetId = self.targetId; + + if (id) { + self.ctx = self.ctx || uni.createCanvasContext(id); + self.targetCtx = self.targetCtx || uni.createCanvasContext(targetId); + } else { + console.error("constructor: create canvas context failed, 'id' must be valuable"); + } + }; + + self.deviceRadio = windowWidth / 750; + } + + var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== + 'undefined' ? self : {}; + + + + + + function createCommonjsModule(fn, module) { + return module = { + exports: {} + }, fn(module, module.exports), module.exports; + } + + var tools = createCommonjsModule(function(module, exports) { + /** + * String type check + */ + exports.isStr = function(v) { + return typeof v === 'string'; + }; + /** + * Number type check + */ + exports.isNum = function(v) { + return typeof v === 'number'; + }; + /** + * Array type check + */ + exports.isArr = Array.isArray; + /** + * undefined type check + */ + exports.isUndef = function(v) { + return v === undefined; + }; + + exports.isTrue = function(v) { + return v === true; + }; + + exports.isFalse = function(v) { + return v === false; + }; + /** + * Function type check + */ + exports.isFunc = function(v) { + return typeof v === 'function'; + }; + /** + * Quick object check - this is primarily used to tell + * Objects from primitive values when we know the value + * is a JSON-compliant type. + */ + exports.isObj = exports.isObject = function(obj) { + return obj !== null && typeof obj === 'object' + }; + + /** + * Strict object type check. Only returns true + * for plain JavaScript objects. + */ + var _toString = Object.prototype.toString; + exports.isPlainObject = function(obj) { + return _toString.call(obj) === '[object Object]' + }; + + /** + * Check whether the object has the property. + */ + var hasOwnProperty = Object.prototype.hasOwnProperty; + exports.hasOwn = function(obj, key) { + return hasOwnProperty.call(obj, key) + }; + + /** + * Perform no operation. + * Stubbing args to make Flow happy without leaving useless transpiled code + * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/) + */ + exports.noop = function(a, b, c) {}; + + /** + * Check if val is a valid array index. + */ + exports.isValidArrayIndex = function(val) { + var n = parseFloat(String(val)); + return n >= 0 && Math.floor(n) === n && isFinite(val) + }; + }); + + var tools_7 = tools.isFunc; + var tools_10 = tools.isPlainObject; + + var EVENT_TYPE = ['ready', 'beforeImageLoad', 'beforeDraw', 'imageLoad']; + + function observer() { + var self = this; + + self.on = function(event, fn) { + if (EVENT_TYPE.indexOf(event) > -1) { + if (tools_7(fn)) { + event === 'ready' ? + fn(self) : + self[("on" + (firstLetterUpper(event)))] = fn; + } + } else { + console.error(("event: " + event + " is invalid")); + } + return self + }; + } + + function wxPromise(fn) { + return function(obj) { + var args = [], + len = arguments.length - 1; + while (len-- > 0) args[len] = arguments[len + 1]; + + if (obj === void 0) obj = {}; + return new Promise(function(resolve, reject) { + obj.success = function(res) { + resolve(res); + }; + obj.fail = function(err) { + reject(err); + }; + fn.apply(void 0, [obj].concat(args)); + }) + } + } + + function draw(ctx, reserve) { + if (reserve === void 0) reserve = false; + + return new Promise(function(resolve) { + ctx.draw(reserve, resolve); + }) + } + + var getImageInfo = wxPromise(uni.getImageInfo); + + var canvasToTempFilePath = wxPromise(uni.canvasToTempFilePath); + + var base64 = createCommonjsModule(function(module, exports) { + /*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */ + (function(root) { + + // Detect free variables `exports`. + var freeExports = 'object' == 'object' && exports; + + // Detect free variable `module`. + var freeModule = 'object' == 'object' && module && + module.exports == freeExports && module; + + // Detect free variable `global`, from Node.js or Browserified code, and use + // it as `root`. + var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal; + if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) { + root = freeGlobal; + } + + /*--------------------------------------------------------------------------*/ + + var InvalidCharacterError = function(message) { + this.message = message; + }; + InvalidCharacterError.prototype = new Error; + InvalidCharacterError.prototype.name = 'InvalidCharacterError'; + + var error = function(message) { + // Note: the error messages used throughout this file match those used by + // the native `atob`/`btoa` implementation in Chromium. + throw new InvalidCharacterError(message); + }; + + var TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; + // http://whatwg.org/html/common-microsyntaxes.html#space-character + var REGEX_SPACE_CHARACTERS = /[\t\n\f\r ]/g; + + // `decode` is designed to be fully compatible with `atob` as described in the + // HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob + // The optimized base64-decoding algorithm used is based on @atk’s excellent + // implementation. https://gist.github.com/atk/1020396 + var decode = function(input) { + input = String(input) + .replace(REGEX_SPACE_CHARACTERS, ''); + var length = input.length; + if (length % 4 == 0) { + input = input.replace(/==?$/, ''); + length = input.length; + } + if ( + length % 4 == 1 || + // http://whatwg.org/C#alphanumeric-ascii-characters + /[^+a-zA-Z0-9/]/.test(input) + ) { + error( + 'Invalid character: the string to be decoded is not correctly encoded.' + ); + } + var bitCounter = 0; + var bitStorage; + var buffer; + var output = ''; + var position = -1; + while (++position < length) { + buffer = TABLE.indexOf(input.charAt(position)); + bitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer; + // Unless this is the first of a group of 4 characters… + if (bitCounter++ % 4) { + // …convert the first 8 bits to a single ASCII character. + output += String.fromCharCode( + 0xFF & bitStorage >> (-2 * bitCounter & 6) + ); + } + } + return output; + }; + + // `encode` is designed to be fully compatible with `btoa` as described in the + // HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa + var encode = function(input) { + input = String(input); + if (/[^\0-\xFF]/.test(input)) { + // Note: no need to special-case astral symbols here, as surrogates are + // matched, and the input is supposed to only contain ASCII anyway. + error( + 'The string to be encoded contains characters outside of the ' + + 'Latin1 range.' + ); + } + var padding = input.length % 3; + var output = ''; + var position = -1; + var a; + var b; + var c; + var buffer; + // Make sure any padding is handled outside of the loop. + var length = input.length - padding; + + while (++position < length) { + // Read three bytes, i.e. 24 bits. + a = input.charCodeAt(position) << 16; + b = input.charCodeAt(++position) << 8; + c = input.charCodeAt(++position); + buffer = a + b + c; + // Turn the 24 bits into four chunks of 6 bits each, and append the + // matching character for each of them to the output. + output += ( + TABLE.charAt(buffer >> 18 & 0x3F) + + TABLE.charAt(buffer >> 12 & 0x3F) + + TABLE.charAt(buffer >> 6 & 0x3F) + + TABLE.charAt(buffer & 0x3F) + ); + } + + if (padding == 2) { + a = input.charCodeAt(position) << 8; + b = input.charCodeAt(++position); + buffer = a + b; + output += ( + TABLE.charAt(buffer >> 10) + + TABLE.charAt((buffer >> 4) & 0x3F) + + TABLE.charAt((buffer << 2) & 0x3F) + + '=' + ); + } else if (padding == 1) { + buffer = input.charCodeAt(position); + output += ( + TABLE.charAt(buffer >> 2) + + TABLE.charAt((buffer << 4) & 0x3F) + + '==' + ); + } + + return output; + }; + + var base64 = { + 'encode': encode, + 'decode': decode, + 'version': '0.1.0' + }; + + // Some AMD build optimizers, like r.js, check for specific condition patterns + // like the following: + if ( + typeof undefined == 'function' && + typeof undefined.amd == 'object' && + undefined.amd + ) { + undefined(function() { + return base64; + }); + } else if (freeExports && !freeExports.nodeType) { + if (freeModule) { // in Node.js or RingoJS v0.8.0+ + freeModule.exports = base64; + } else { // in Narwhal or RingoJS v0.7.0- + for (var key in base64) { + base64.hasOwnProperty(key) && (freeExports[key] = base64[key]); + } + } + } else { // in Rhino or a web browser + root.base64 = base64; + } + + }(commonjsGlobal)); + }); + + function makeURI(strData, type) { + return 'data:' + type + ';base64,' + strData + } + + function fixType(type) { + type = type.toLowerCase().replace(/jpg/i, 'jpeg'); + var r = type.match(/png|jpeg|bmp|gif/)[0]; + return 'image/' + r + } + + function encodeData(data) { + var str = ''; + if (typeof data === 'string') { + str = data; + } else { + for (var i = 0; i < data.length; i++) { + str += String.fromCharCode(data[i]); + } + } + return base64.encode(str) + } + + /** + * 获取图像区域隐含的像素数据 + * @param canvasId canvas标识 + * @param x 将要被提取的图像数据矩形区域的左上角 x 坐标 + * @param y 将要被提取的图像数据矩形区域的左上角 y 坐标 + * @param width 将要被提取的图像数据矩形区域的宽度 + * @param height 将要被提取的图像数据矩形区域的高度 + * @param done 完成回调 + */ + function getImageData(canvasId, x, y, width, height, done) { + uni.canvasGetImageData({ + canvasId: canvasId, + x: x, + y: y, + width: width, + height: height, + success: function success(res) { + done(res, null); + }, + fail: function fail(res) { + done(null, res); + } + }); + } + + /** + * 生成bmp格式图片 + * 按照规则生成图片响应头和响应体 + * @param oData 用来描述 canvas 区域隐含的像素数据 { data, width, height } = oData + * @returns {*} base64字符串 + */ + function genBitmapImage(oData) { + // + // BITMAPFILEHEADER: http://msdn.microsoft.com/en-us/library/windows/desktop/dd183374(v=vs.85).aspx + // BITMAPINFOHEADER: http://msdn.microsoft.com/en-us/library/dd183376.aspx + // + var biWidth = oData.width; + var biHeight = oData.height; + var biSizeImage = biWidth * biHeight * 3; + var bfSize = biSizeImage + 54; // total header size = 54 bytes + + // + // typedef struct tagBITMAPFILEHEADER { + // WORD bfType; + // DWORD bfSize; + // WORD bfReserved1; + // WORD bfReserved2; + // DWORD bfOffBits; + // } BITMAPFILEHEADER; + // + var BITMAPFILEHEADER = [ + // WORD bfType -- The file type signature; must be "BM" + 0x42, 0x4D, + // DWORD bfSize -- The size, in bytes, of the bitmap file + bfSize & 0xff, bfSize >> 8 & 0xff, bfSize >> 16 & 0xff, bfSize >> 24 & 0xff, + // WORD bfReserved1 -- Reserved; must be zero + 0, 0, + // WORD bfReserved2 -- Reserved; must be zero + 0, 0, + // DWORD bfOffBits -- The offset, in bytes, from the beginning of the BITMAPFILEHEADER structure to the bitmap bits. + 54, 0, 0, 0 + ]; + + // + // typedef struct tagBITMAPINFOHEADER { + // DWORD biSize; + // LONG biWidth; + // LONG biHeight; + // WORD biPlanes; + // WORD biBitCount; + // DWORD biCompression; + // DWORD biSizeImage; + // LONG biXPelsPerMeter; + // LONG biYPelsPerMeter; + // DWORD biClrUsed; + // DWORD biClrImportant; + // } BITMAPINFOHEADER, *PBITMAPINFOHEADER; + // + var BITMAPINFOHEADER = [ + // DWORD biSize -- The number of bytes required by the structure + 40, 0, 0, 0, + // LONG biWidth -- The width of the bitmap, in pixels + biWidth & 0xff, biWidth >> 8 & 0xff, biWidth >> 16 & 0xff, biWidth >> 24 & 0xff, + // LONG biHeight -- The height of the bitmap, in pixels + biHeight & 0xff, biHeight >> 8 & 0xff, biHeight >> 16 & 0xff, biHeight >> 24 & 0xff, + // WORD biPlanes -- The number of planes for the target device. This value must be set to 1 + 1, 0, + // WORD biBitCount -- The number of bits-per-pixel, 24 bits-per-pixel -- the bitmap + // has a maximum of 2^24 colors (16777216, Truecolor) + 24, 0, + // DWORD biCompression -- The type of compression, BI_RGB (code 0) -- uncompressed + 0, 0, 0, 0, + // DWORD biSizeImage -- The size, in bytes, of the image. This may be set to zero for BI_RGB bitmaps + biSizeImage & 0xff, biSizeImage >> 8 & 0xff, biSizeImage >> 16 & 0xff, biSizeImage >> 24 & 0xff, + // LONG biXPelsPerMeter, unused + 0, 0, 0, 0, + // LONG biYPelsPerMeter, unused + 0, 0, 0, 0, + // DWORD biClrUsed, the number of color indexes of palette, unused + 0, 0, 0, 0, + // DWORD biClrImportant, unused + 0, 0, 0, 0 + ]; + + var iPadding = (4 - ((biWidth * 3) % 4)) % 4; + + var aImgData = oData.data; + + var strPixelData = ''; + var biWidth4 = biWidth << 2; + var y = biHeight; + var fromCharCode = String.fromCharCode; + + do { + var iOffsetY = biWidth4 * (y - 1); + var strPixelRow = ''; + for (var x = 0; x < biWidth; x++) { + var iOffsetX = x << 2; + strPixelRow += fromCharCode(aImgData[iOffsetY + iOffsetX + 2]) + + fromCharCode(aImgData[iOffsetY + iOffsetX + 1]) + + fromCharCode(aImgData[iOffsetY + iOffsetX]); + } + + for (var c = 0; c < iPadding; c++) { + strPixelRow += String.fromCharCode(0); + } + + strPixelData += strPixelRow; + } while (--y) + + var strEncoded = encodeData(BITMAPFILEHEADER.concat(BITMAPINFOHEADER)) + encodeData(strPixelData); + + return strEncoded + } + + /** + * 转换为图片base64 + * @param canvasId canvas标识 + * @param x 将要被提取的图像数据矩形区域的左上角 x 坐标 + * @param y 将要被提取的图像数据矩形区域的左上角 y 坐标 + * @param width 将要被提取的图像数据矩形区域的宽度 + * @param height 将要被提取的图像数据矩形区域的高度 + * @param type 转换图片类型 + * @param done 完成回调 + */ + function convertToImage(canvasId, x, y, width, height, type, done) { + if (done === void 0) done = function() {}; + + if (type === undefined) { + type = 'png'; + } + type = fixType(type); + if (/bmp/.test(type)) { + getImageData(canvasId, x, y, width, height, function(data, err) { + var strData = genBitmapImage(data); + tools_7(done) && done(makeURI(strData, 'image/' + type), err); + }); + } else { + console.error('暂不支持生成\'' + type + '\'类型的base64图片'); + } + } + + var CanvasToBase64 = { + convertToImage: convertToImage, + // convertToPNG: function (width, height, done) { + // return convertToImage(width, height, 'png', done) + // }, + // convertToJPEG: function (width, height, done) { + // return convertToImage(width, height, 'jpeg', done) + // }, + // convertToGIF: function (width, height, done) { + // return convertToImage(width, height, 'gif', done) + // }, + convertToBMP: function(ref, done) { + if (ref === void 0) ref = {}; + var canvasId = ref.canvasId; + var x = ref.x; + var y = ref.y; + var width = ref.width; + var height = ref.height; + if (done === void 0) done = function() {}; + + return convertToImage(canvasId, x, y, width, height, 'bmp', done) + } + }; + + function methods() { + var self = this; + + var boundWidth = self.width; // 裁剪框默认宽度,即整个画布宽度 + var boundHeight = self.height; // 裁剪框默认高度,即整个画布高度 + + var id = self.id; + var targetId = self.targetId; + var pixelRatio = self.pixelRatio; + + var ref = self.cut; + var x = ref.x; + if (x === void 0) x = 0; + var y = ref.y; + if (y === void 0) y = 0; + var width = ref.width; + if (width === void 0) width = boundWidth; + var height = ref.height; + if (height === void 0) height = boundHeight; + + self.updateCanvas = function(done) { + if (self.croperTarget) { + // 画布绘制图片 + self.ctx.drawImage( + self.croperTarget, + self.imgLeft, + self.imgTop, + self.scaleWidth, + self.scaleHeight + ); + } + tools_7(self.onBeforeDraw) && self.onBeforeDraw(self.ctx, self); + + self.setBoundStyle(self.boundStyle); // 设置边界样式 + + self.ctx.draw(false, done); + return self + }; + + self.pushOrigin = self.pushOrign = function(src) { + self.src = src; + + tools_7(self.onBeforeImageLoad) && self.onBeforeImageLoad(self.ctx, self); + + return getImageInfo({ + src: src + }) + .then(function(res) { + var innerAspectRadio = res.width / res.height; + var customAspectRadio = width / height; + + self.croperTarget = res.path; + + if (innerAspectRadio < customAspectRadio) { + self.rectX = x; + self.baseWidth = width; + self.baseHeight = width / innerAspectRadio; + self.rectY = y - Math.abs((height - self.baseHeight) / 2); + } else { + self.rectY = y; + self.baseWidth = height * innerAspectRadio; + self.baseHeight = height; + self.rectX = x - Math.abs((width - self.baseWidth) / 2); + } + + self.imgLeft = self.rectX; + self.imgTop = self.rectY; + self.scaleWidth = self.baseWidth; + self.scaleHeight = self.baseHeight; + + self.update(); + + return new Promise(function(resolve) { + self.updateCanvas(resolve); + }) + }) + .then(function() { + tools_7(self.onImageLoad) && self.onImageLoad(self.ctx, self); + }) + }; + + self.removeImage = function() { + self.src = ''; + self.croperTarget = ''; + return draw(self.ctx) + }; + + self.getCropperBase64 = function(done) { + if (done === void 0) done = function() {}; + + CanvasToBase64.convertToBMP({ + canvasId: id, + x: x, + y: y, + width: width, + height: height + }, done); + }; + + self.getCropperImage = function(opt, fn) { + var customOptions = opt; + + var canvasOptions = { + canvasId: id, + x: x, + y: y, + width: width, + height: height + }; + + var task = function() { + return Promise.resolve(); + }; + + if ( + tools_10(customOptions) && + customOptions.original + ) { + // original mode + task = function() { + self.targetCtx.drawImage( + self.croperTarget, + self.imgLeft * pixelRatio, + self.imgTop * pixelRatio, + self.scaleWidth * pixelRatio, + self.scaleHeight * pixelRatio + ); + + canvasOptions = { + canvasId: targetId, + x: x * pixelRatio, + y: y * pixelRatio, + width: width * pixelRatio, + height: height * pixelRatio + }; + + return draw(self.targetCtx) + }; + } + + return task() + .then(function() { + if (tools_10(customOptions)) { + canvasOptions = Object.assign({}, canvasOptions, customOptions); + } + + if (tools_7(customOptions)) { + fn = customOptions; + } + + var arg = canvasOptions.componentContext ? + [canvasOptions, canvasOptions.componentContext] : + [canvasOptions]; + + return canvasToTempFilePath.apply(null, arg) + }) + .then(function(res) { + var tempFilePath = res.tempFilePath; + + return tools_7(fn) ? + fn.call(self, tempFilePath, null) : + tempFilePath + }) + .catch(function(err) { + if (tools_7(fn)) { + fn.call(self, null, err); + } else { + throw err + } + }) + }; + } + + /** + * 获取最新缩放值 + * @param oldScale 上一次触摸结束后的缩放值 + * @param oldDistance 上一次触摸结束后的双指距离 + * @param zoom 缩放系数 + * @param touch0 第一指touch对象 + * @param touch1 第二指touch对象 + * @returns {*} + */ + var getNewScale = function(oldScale, oldDistance, zoom, touch0, touch1) { + var xMove, yMove, newDistance; + // 计算二指最新距离 + xMove = Math.round(touch1.x - touch0.x); + yMove = Math.round(touch1.y - touch0.y); + newDistance = Math.round(Math.sqrt(xMove * xMove + yMove * yMove)); + + return oldScale + 0.001 * zoom * (newDistance - oldDistance) + }; + + function update() { + var self = this; + + if (!self.src) { + return + } + + self.__oneTouchStart = function(touch) { + self.touchX0 = Math.round(touch.x); + self.touchY0 = Math.round(touch.y); + }; + + self.__oneTouchMove = function(touch) { + var xMove, yMove; + // 计算单指移动的距离 + if (self.touchended) { + return self.updateCanvas() + } + xMove = Math.round(touch.x - self.touchX0); + yMove = Math.round(touch.y - self.touchY0); + + var imgLeft = Math.round(self.rectX + xMove); + var imgTop = Math.round(self.rectY + yMove); + + self.outsideBound(imgLeft, imgTop); + + self.updateCanvas(); + }; + + self.__twoTouchStart = function(touch0, touch1) { + var xMove, yMove, oldDistance; + + self.touchX1 = Math.round(self.rectX + self.scaleWidth / 2); + self.touchY1 = Math.round(self.rectY + self.scaleHeight / 2); + + // 计算两指距离 + xMove = Math.round(touch1.x - touch0.x); + yMove = Math.round(touch1.y - touch0.y); + oldDistance = Math.round(Math.sqrt(xMove * xMove + yMove * yMove)); + + self.oldDistance = oldDistance; + }; + + self.__twoTouchMove = function(touch0, touch1) { + var oldScale = self.oldScale; + var oldDistance = self.oldDistance; + var scale = self.scale; + var zoom = self.zoom; + + self.newScale = getNewScale(oldScale, oldDistance, zoom, touch0, touch1); + + // 设定缩放范围 + self.newScale <= 1 && (self.newScale = 1); + self.newScale >= scale && (self.newScale = scale); + + self.scaleWidth = Math.round(self.newScale * self.baseWidth); + self.scaleHeight = Math.round(self.newScale * self.baseHeight); + var imgLeft = Math.round(self.touchX1 - self.scaleWidth / 2); + var imgTop = Math.round(self.touchY1 - self.scaleHeight / 2); + + self.outsideBound(imgLeft, imgTop); + + self.updateCanvas(); + }; + + self.__xtouchEnd = function() { + self.oldScale = self.newScale; + self.rectX = self.imgLeft; + self.rectY = self.imgTop; + }; + } + + var handle = { + // 图片手势初始监测 + touchStart: function touchStart(e) { + var self = this; + var ref = e.touches; + var touch0 = ref[0]; + var touch1 = ref[1]; + + if (!self.src) { + return + } + + setTouchState(self, true, null, null); + + // 计算第一个触摸点的位置,并参照改点进行缩放 + self.__oneTouchStart(touch0); + + // 两指手势触发 + if (e.touches.length >= 2) { + self.__twoTouchStart(touch0, touch1); + } + }, + + // 图片手势动态缩放 + touchMove: function touchMove(e) { + var self = this; + var ref = e.touches; + var touch0 = ref[0]; + var touch1 = ref[1]; + + if (!self.src) { + return + } + + setTouchState(self, null, true); + + // 单指手势时触发 + if (e.touches.length === 1) { + self.__oneTouchMove(touch0); + } + // 两指手势触发 + if (e.touches.length >= 2) { + self.__twoTouchMove(touch0, touch1); + } + }, + + touchEnd: function touchEnd(e) { + var self = this; + + if (!self.src) { + return + } + + setTouchState(self, false, false, true); + self.__xtouchEnd(); + } + }; + + function cut() { + var self = this; + var boundWidth = self.width; // 裁剪框默认宽度,即整个画布宽度 + var boundHeight = self.height; + // 裁剪框默认高度,即整个画布高度 + var ref = self.cut; + var x = ref.x; + if (x === void 0) x = 0; + var y = ref.y; + if (y === void 0) y = 0; + var width = ref.width; + if (width === void 0) width = boundWidth; + var height = ref.height; + if (height === void 0) height = boundHeight; + + /** + * 设置边界 + * @param imgLeft 图片左上角横坐标值 + * @param imgTop 图片左上角纵坐标值 + */ + self.outsideBound = function(imgLeft, imgTop) { + self.imgLeft = imgLeft >= x ? + x : + self.scaleWidth + imgLeft - x <= width ? + x + width - self.scaleWidth : + imgLeft; + + self.imgTop = imgTop >= y ? + y : + self.scaleHeight + imgTop - y <= height ? + y + height - self.scaleHeight : + imgTop; + }; + + /** + * 设置边界样式 + * @param color 边界颜色 + */ + self.setBoundStyle = function(ref) { + if (ref === void 0) ref = {}; + var color = ref.color; + if (color === void 0) color = '#04b00f'; + var mask = ref.mask; + if (mask === void 0) mask = 'rgba(0, 0, 0, 0.3)'; + var lineWidth = ref.lineWidth; + if (lineWidth === void 0) lineWidth = 1; + + var half = lineWidth / 2; + var boundOption = [{ + start: { + x: x - half, + y: y + 10 - half + }, + step1: { + x: x - half, + y: y - half + }, + step2: { + x: x + 10 - half, + y: y - half + } + }, + { + start: { + x: x - half, + y: y + height - 10 + half + }, + step1: { + x: x - half, + y: y + height + half + }, + step2: { + x: x + 10 - half, + y: y + height + half + } + }, + { + start: { + x: x + width - 10 + half, + y: y - half + }, + step1: { + x: x + width + half, + y: y - half + }, + step2: { + x: x + width + half, + y: y + 10 - half + } + }, + { + start: { + x: x + width + half, + y: y + height - 10 + half + }, + step1: { + x: x + width + half, + y: y + height + half + }, + step2: { + x: x + width - 10 + half, + y: y + height + half + } + } + ]; + + // 绘制半透明层 + self.ctx.beginPath(); + self.ctx.setFillStyle(mask); + self.ctx.fillRect(0, 0, x, boundHeight); + self.ctx.fillRect(x, 0, width, y); + self.ctx.fillRect(x, y + height, width, boundHeight - y - height); + self.ctx.fillRect(x + width, 0, boundWidth - x - width, boundHeight); + self.ctx.fill(); + + boundOption.forEach(function(op) { + self.ctx.beginPath(); + self.ctx.setStrokeStyle(color); + self.ctx.setLineWidth(lineWidth); + self.ctx.moveTo(op.start.x, op.start.y); + self.ctx.lineTo(op.step1.x, op.step1.y); + self.ctx.lineTo(op.step2.x, op.step2.y); + self.ctx.stroke(); + }); + }; + } + + var version = "1.3.9"; + + var WeCropper = function WeCropper(params) { + var self = this; + var _default = {}; + + validator(self, DEFAULT); + + Object.keys(DEFAULT).forEach(function(key) { + _default[key] = DEFAULT[key].default; + }); + Object.assign(self, _default, params); + + self.prepare(); + self.attachPage(); + self.createCtx(); + self.observer(); + self.cutt(); + self.methods(); + self.init(); + self.update(); + + return self + }; + + WeCropper.prototype.init = function init() { + var self = this; + var src = self.src; + + self.version = version; + + typeof self.onReady === 'function' && self.onReady(self.ctx, self); + + if (src) { + self.pushOrign(src); + } else { + self.updateCanvas(); + } + setTouchState(self, false, false, false); + + self.oldScale = 1; + self.newScale = 1; + + return self + }; + + Object.assign(WeCropper.prototype, handle); + + WeCropper.prototype.prepare = prepare; + WeCropper.prototype.observer = observer; + WeCropper.prototype.methods = methods; + WeCropper.prototype.cutt = cut; + WeCropper.prototype.update = update; + + return WeCropper; + +}))); diff --git a/uview-ui/components/u-avatar/u-avatar.vue b/uview-ui/components/u-avatar/u-avatar.vue new file mode 100644 index 0000000..289b9b0 --- /dev/null +++ b/uview-ui/components/u-avatar/u-avatar.vue @@ -0,0 +1,244 @@ + + + + + diff --git a/uview-ui/components/u-back-top/u-back-top.vue b/uview-ui/components/u-back-top/u-back-top.vue new file mode 100644 index 0000000..7970fc7 --- /dev/null +++ b/uview-ui/components/u-back-top/u-back-top.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/uview-ui/components/u-badge/u-badge.vue b/uview-ui/components/u-badge/u-badge.vue new file mode 100644 index 0000000..e85b133 --- /dev/null +++ b/uview-ui/components/u-badge/u-badge.vue @@ -0,0 +1,216 @@ + + + + + \ No newline at end of file diff --git a/uview-ui/components/u-button/u-button.vue b/uview-ui/components/u-button/u-button.vue new file mode 100644 index 0000000..82c3a6f --- /dev/null +++ b/uview-ui/components/u-button/u-button.vue @@ -0,0 +1,596 @@ + + + + + diff --git a/uview-ui/components/u-calendar/u-calendar.vue b/uview-ui/components/u-calendar/u-calendar.vue new file mode 100644 index 0000000..2b30184 --- /dev/null +++ b/uview-ui/components/u-calendar/u-calendar.vue @@ -0,0 +1,639 @@ + + + + \ No newline at end of file diff --git a/uview-ui/components/u-car-keyboard/u-car-keyboard.vue b/uview-ui/components/u-car-keyboard/u-car-keyboard.vue new file mode 100644 index 0000000..84b1467 --- /dev/null +++ b/uview-ui/components/u-car-keyboard/u-car-keyboard.vue @@ -0,0 +1,257 @@ + + + + + diff --git a/uview-ui/components/u-card/u-card.vue b/uview-ui/components/u-card/u-card.vue new file mode 100644 index 0000000..a3cb2aa --- /dev/null +++ b/uview-ui/components/u-card/u-card.vue @@ -0,0 +1,299 @@ + + + + + diff --git a/uview-ui/components/u-cell-group/u-cell-group.vue b/uview-ui/components/u-cell-group/u-cell-group.vue new file mode 100644 index 0000000..3fbca72 --- /dev/null +++ b/uview-ui/components/u-cell-group/u-cell-group.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/uview-ui/components/u-cell-item/u-cell-item.vue b/uview-ui/components/u-cell-item/u-cell-item.vue new file mode 100644 index 0000000..10d9b20 --- /dev/null +++ b/uview-ui/components/u-cell-item/u-cell-item.vue @@ -0,0 +1,316 @@ + + + + + diff --git a/uview-ui/components/u-checkbox-group/u-checkbox-group.vue b/uview-ui/components/u-checkbox-group/u-checkbox-group.vue new file mode 100644 index 0000000..6a149b3 --- /dev/null +++ b/uview-ui/components/u-checkbox-group/u-checkbox-group.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/uview-ui/components/u-checkbox/u-checkbox.vue b/uview-ui/components/u-checkbox/u-checkbox.vue new file mode 100644 index 0000000..9414461 --- /dev/null +++ b/uview-ui/components/u-checkbox/u-checkbox.vue @@ -0,0 +1,284 @@ + + + + + diff --git a/uview-ui/components/u-circle-progress/u-circle-progress.vue b/uview-ui/components/u-circle-progress/u-circle-progress.vue new file mode 100644 index 0000000..46e7c18 --- /dev/null +++ b/uview-ui/components/u-circle-progress/u-circle-progress.vue @@ -0,0 +1,220 @@ + + + + + diff --git a/uview-ui/components/u-circle-progress/u-line-progress/u-line-progress.vue b/uview-ui/components/u-circle-progress/u-line-progress/u-line-progress.vue new file mode 100644 index 0000000..77e2da2 --- /dev/null +++ b/uview-ui/components/u-circle-progress/u-line-progress/u-line-progress.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/uview-ui/components/u-col/u-col.vue b/uview-ui/components/u-col/u-col.vue new file mode 100644 index 0000000..3b6cc64 --- /dev/null +++ b/uview-ui/components/u-col/u-col.vue @@ -0,0 +1,156 @@ + + + + + diff --git a/uview-ui/components/u-collapse-item/u-collapse-item.vue b/uview-ui/components/u-collapse-item/u-collapse-item.vue new file mode 100644 index 0000000..ed11778 --- /dev/null +++ b/uview-ui/components/u-collapse-item/u-collapse-item.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/uview-ui/components/u-collapse/u-collapse.vue b/uview-ui/components/u-collapse/u-collapse.vue new file mode 100644 index 0000000..8572957 --- /dev/null +++ b/uview-ui/components/u-collapse/u-collapse.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/uview-ui/components/u-column-notice/u-column-notice.vue b/uview-ui/components/u-column-notice/u-column-notice.vue new file mode 100644 index 0000000..dd8bd31 --- /dev/null +++ b/uview-ui/components/u-column-notice/u-column-notice.vue @@ -0,0 +1,237 @@ + + + + + diff --git a/uview-ui/components/u-count-down/u-count-down.vue b/uview-ui/components/u-count-down/u-count-down.vue new file mode 100644 index 0000000..7285d67 --- /dev/null +++ b/uview-ui/components/u-count-down/u-count-down.vue @@ -0,0 +1,318 @@ + + + + + diff --git a/uview-ui/components/u-count-to/u-count-to.vue b/uview-ui/components/u-count-to/u-count-to.vue new file mode 100644 index 0000000..053dc5f --- /dev/null +++ b/uview-ui/components/u-count-to/u-count-to.vue @@ -0,0 +1,241 @@ + + + + + diff --git a/uview-ui/components/u-divider/u-divider.vue b/uview-ui/components/u-divider/u-divider.vue new file mode 100644 index 0000000..6f8d7e6 --- /dev/null +++ b/uview-ui/components/u-divider/u-divider.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/uview-ui/components/u-dropdown-item/u-dropdown-item.vue b/uview-ui/components/u-dropdown-item/u-dropdown-item.vue new file mode 100644 index 0000000..ba60d8f --- /dev/null +++ b/uview-ui/components/u-dropdown-item/u-dropdown-item.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/uview-ui/components/u-dropdown/u-dropdown.vue b/uview-ui/components/u-dropdown/u-dropdown.vue new file mode 100644 index 0000000..6bf5cf4 --- /dev/null +++ b/uview-ui/components/u-dropdown/u-dropdown.vue @@ -0,0 +1,302 @@ + + + + + diff --git a/uview-ui/components/u-empty/u-empty.vue b/uview-ui/components/u-empty/u-empty.vue new file mode 100644 index 0000000..2c77b24 --- /dev/null +++ b/uview-ui/components/u-empty/u-empty.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/uview-ui/components/u-field/u-field.vue b/uview-ui/components/u-field/u-field.vue new file mode 100644 index 0000000..b562798 --- /dev/null +++ b/uview-ui/components/u-field/u-field.vue @@ -0,0 +1,384 @@ +